configure revision 1.1.1.2 1 1.1 christos #! /bin/sh
2 1.1 christos # Guess values for system-dependent variables and create Makefiles.
3 1.1.1.2 christos # Generated by GNU Autoconf 2.65 for the fast lexical analyser generator 2.5.37.
4 1.1 christos #
5 1.1 christos # Report bugs to <flex-help (at] lists.sourceforge.net>.
6 1.1 christos #
7 1.1.1.2 christos #
8 1.1.1.2 christos # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 1.1.1.2 christos # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 1.1.1.2 christos # Inc.
11 1.1.1.2 christos #
12 1.1.1.2 christos #
13 1.1 christos # This configure script is free software; the Free Software Foundation
14 1.1 christos # gives unlimited permission to copy, distribute and modify it.
15 1.1.1.2 christos ## -------------------- ##
16 1.1.1.2 christos ## M4sh Initialization. ##
17 1.1.1.2 christos ## -------------------- ##
18 1.1 christos
19 1.1.1.2 christos # Be more Bourne compatible
20 1.1.1.2 christos DUALCASE=1; export DUALCASE # for MKS sh
21 1.1.1.2 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 1.1 christos emulate sh
23 1.1 christos NULLCMD=:
24 1.1.1.2 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 1.1 christos # is contrary to our usage. Disable this feature.
26 1.1 christos alias -g '${1+"$@"}'='"$@"'
27 1.1.1.2 christos setopt NO_GLOB_SUBST
28 1.1.1.2 christos else
29 1.1.1.2 christos case `(set -o) 2>/dev/null` in #(
30 1.1.1.2 christos *posix*) :
31 1.1.1.2 christos set -o posix ;; #(
32 1.1.1.2 christos *) :
33 1.1.1.2 christos ;;
34 1.1.1.2 christos esac
35 1.1 christos fi
36 1.1 christos
37 1.1.1.2 christos
38 1.1.1.2 christos as_nl='
39 1.1.1.2 christos '
40 1.1.1.2 christos export as_nl
41 1.1.1.2 christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 1.1.1.2 christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 1.1.1.2 christos # Prefer a ksh shell builtin over an external printf program on Solaris,
46 1.1.1.2 christos # but without wasting forks for bash or zsh.
47 1.1.1.2 christos if test -z "$BASH_VERSION$ZSH_VERSION" \
48 1.1.1.2 christos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 1.1.1.2 christos as_echo='print -r --'
50 1.1.1.2 christos as_echo_n='print -rn --'
51 1.1.1.2 christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 1.1.1.2 christos as_echo='printf %s\n'
53 1.1.1.2 christos as_echo_n='printf %s'
54 1.1.1.2 christos else
55 1.1.1.2 christos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 1.1.1.2 christos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 1.1.1.2 christos as_echo_n='/usr/ucb/echo -n'
58 1.1.1.2 christos else
59 1.1.1.2 christos as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 1.1.1.2 christos as_echo_n_body='eval
61 1.1.1.2 christos arg=$1;
62 1.1.1.2 christos case $arg in #(
63 1.1.1.2 christos *"$as_nl"*)
64 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)$as_nl";
65 1.1.1.2 christos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 1.1.1.2 christos esac;
67 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 1.1.1.2 christos '
69 1.1.1.2 christos export as_echo_n_body
70 1.1.1.2 christos as_echo_n='sh -c $as_echo_n_body as_echo'
71 1.1.1.2 christos fi
72 1.1.1.2 christos export as_echo_body
73 1.1.1.2 christos as_echo='sh -c $as_echo_body as_echo'
74 1.1.1.2 christos fi
75 1.1.1.2 christos
76 1.1.1.2 christos # The user is always right.
77 1.1.1.2 christos if test "${PATH_SEPARATOR+set}" != set; then
78 1.1.1.2 christos PATH_SEPARATOR=:
79 1.1.1.2 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 1.1.1.2 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 1.1.1.2 christos PATH_SEPARATOR=';'
82 1.1.1.2 christos }
83 1.1 christos fi
84 1.1 christos
85 1.1 christos
86 1.1.1.2 christos # IFS
87 1.1.1.2 christos # We need space, tab and new line, in precisely that order. Quoting is
88 1.1.1.2 christos # there to prevent editors from complaining about space-tab.
89 1.1.1.2 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 1.1.1.2 christos # splitting by setting IFS to empty value.)
91 1.1.1.2 christos IFS=" "" $as_nl"
92 1.1.1.2 christos
93 1.1.1.2 christos # Find who we are. Look in the path if we contain no directory separator.
94 1.1.1.2 christos case $0 in #((
95 1.1.1.2 christos *[\\/]* ) as_myself=$0 ;;
96 1.1.1.2 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 1.1.1.2 christos for as_dir in $PATH
98 1.1.1.2 christos do
99 1.1.1.2 christos IFS=$as_save_IFS
100 1.1.1.2 christos test -z "$as_dir" && as_dir=.
101 1.1.1.2 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 1.1.1.2 christos done
103 1.1.1.2 christos IFS=$as_save_IFS
104 1.1.1.2 christos
105 1.1.1.2 christos ;;
106 1.1.1.2 christos esac
107 1.1.1.2 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
108 1.1.1.2 christos # in which case we are not to be found in the path.
109 1.1.1.2 christos if test "x$as_myself" = x; then
110 1.1.1.2 christos as_myself=$0
111 1.1.1.2 christos fi
112 1.1.1.2 christos if test ! -f "$as_myself"; then
113 1.1.1.2 christos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 1.1.1.2 christos exit 1
115 1.1.1.2 christos fi
116 1.1.1.2 christos
117 1.1.1.2 christos # Unset variables that we do not need and which cause bugs (e.g. in
118 1.1.1.2 christos # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 1.1.1.2 christos # suppresses any "Segmentation fault" message there. '((' could
120 1.1.1.2 christos # trigger a bug in pdksh 5.2.14.
121 1.1.1.2 christos for as_var in BASH_ENV ENV MAIL MAILPATH
122 1.1.1.2 christos do eval test x\${$as_var+set} = xset \
123 1.1.1.2 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 1.1.1.2 christos done
125 1.1 christos PS1='$ '
126 1.1 christos PS2='> '
127 1.1 christos PS4='+ '
128 1.1 christos
129 1.1 christos # NLS nuisances.
130 1.1.1.2 christos LC_ALL=C
131 1.1.1.2 christos export LC_ALL
132 1.1.1.2 christos LANGUAGE=C
133 1.1.1.2 christos export LANGUAGE
134 1.1.1.2 christos
135 1.1.1.2 christos # CDPATH.
136 1.1.1.2 christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 1.1.1.2 christos
138 1.1.1.2 christos if test "x$CONFIG_SHELL" = x; then
139 1.1.1.2 christos as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 1.1.1.2 christos emulate sh
141 1.1.1.2 christos NULLCMD=:
142 1.1.1.2 christos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 1.1.1.2 christos # is contrary to our usage. Disable this feature.
144 1.1.1.2 christos alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 1.1.1.2 christos setopt NO_GLOB_SUBST
146 1.1.1.2 christos else
147 1.1.1.2 christos case \`(set -o) 2>/dev/null\` in #(
148 1.1.1.2 christos *posix*) :
149 1.1.1.2 christos set -o posix ;; #(
150 1.1.1.2 christos *) :
151 1.1.1.2 christos ;;
152 1.1.1.2 christos esac
153 1.1.1.2 christos fi
154 1.1.1.2 christos "
155 1.1.1.2 christos as_required="as_fn_return () { (exit \$1); }
156 1.1.1.2 christos as_fn_success () { as_fn_return 0; }
157 1.1.1.2 christos as_fn_failure () { as_fn_return 1; }
158 1.1.1.2 christos as_fn_ret_success () { return 0; }
159 1.1.1.2 christos as_fn_ret_failure () { return 1; }
160 1.1.1.2 christos
161 1.1.1.2 christos exitcode=0
162 1.1.1.2 christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 1.1.1.2 christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 1.1.1.2 christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 1.1.1.2 christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 1.1.1.2 christos if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 1.1.1.2 christos
168 1.1.1.2 christos else
169 1.1.1.2 christos exitcode=1; echo positional parameters were not saved.
170 1.1.1.2 christos fi
171 1.1.1.2 christos test x\$exitcode = x0 || exit 1"
172 1.1.1.2 christos as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 1.1.1.2 christos as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 1.1.1.2 christos eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 1.1.1.2 christos test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 1.1.1.2 christos test \$(( 1 + 1 )) = 2 || exit 1"
177 1.1.1.2 christos if (eval "$as_required") 2>/dev/null; then :
178 1.1.1.2 christos as_have_required=yes
179 1.1.1.2 christos else
180 1.1.1.2 christos as_have_required=no
181 1.1.1.2 christos fi
182 1.1.1.2 christos if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 1.1.1.2 christos
184 1.1.1.2 christos else
185 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 1.1.1.2 christos as_found=false
187 1.1.1.2 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 1.1 christos do
189 1.1.1.2 christos IFS=$as_save_IFS
190 1.1.1.2 christos test -z "$as_dir" && as_dir=.
191 1.1.1.2 christos as_found=:
192 1.1.1.2 christos case $as_dir in #(
193 1.1.1.2 christos /*)
194 1.1.1.2 christos for as_base in sh bash ksh sh5; do
195 1.1.1.2 christos # Try only shells that exist, to save several forks.
196 1.1.1.2 christos as_shell=$as_dir/$as_base
197 1.1.1.2 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 1.1.1.2 christos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 1.1.1.2 christos CONFIG_SHELL=$as_shell as_have_required=yes
200 1.1.1.2 christos if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 1.1.1.2 christos break 2
202 1.1.1.2 christos fi
203 1.1.1.2 christos fi
204 1.1.1.2 christos done;;
205 1.1.1.2 christos esac
206 1.1.1.2 christos as_found=false
207 1.1.1.2 christos done
208 1.1.1.2 christos $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 1.1.1.2 christos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 1.1.1.2 christos CONFIG_SHELL=$SHELL as_have_required=yes
211 1.1.1.2 christos fi; }
212 1.1.1.2 christos IFS=$as_save_IFS
213 1.1.1.2 christos
214 1.1.1.2 christos
215 1.1.1.2 christos if test "x$CONFIG_SHELL" != x; then :
216 1.1.1.2 christos # We cannot yet assume a decent shell, so we have to provide a
217 1.1.1.2 christos # neutralization value for shells without unset; and this also
218 1.1.1.2 christos # works around shells that cannot unset nonexistent variables.
219 1.1.1.2 christos BASH_ENV=/dev/null
220 1.1.1.2 christos ENV=/dev/null
221 1.1.1.2 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 1.1.1.2 christos export CONFIG_SHELL
223 1.1.1.2 christos exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 1.1.1.2 christos fi
225 1.1.1.2 christos
226 1.1.1.2 christos if test x$as_have_required = xno; then :
227 1.1.1.2 christos $as_echo "$0: This script requires a shell more modern than all"
228 1.1.1.2 christos $as_echo "$0: the shells that I found on your system."
229 1.1.1.2 christos if test x${ZSH_VERSION+set} = xset ; then
230 1.1.1.2 christos $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 1.1.1.2 christos $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 1.1.1.2 christos else
233 1.1.1.2 christos $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
234 1.1.1.2 christos $0: flex-help (at] lists.sourceforge.net about your system,
235 1.1.1.2 christos $0: including any error possibly output before this
236 1.1.1.2 christos $0: message. Then install a modern shell, or manually run
237 1.1.1.2 christos $0: the script under such a shell if you do have one."
238 1.1 christos fi
239 1.1.1.2 christos exit 1
240 1.1.1.2 christos fi
241 1.1.1.2 christos fi
242 1.1.1.2 christos fi
243 1.1.1.2 christos SHELL=${CONFIG_SHELL-/bin/sh}
244 1.1.1.2 christos export SHELL
245 1.1.1.2 christos # Unset more variables known to interfere with behavior of common tools.
246 1.1.1.2 christos CLICOLOR_FORCE= GREP_OPTIONS=
247 1.1.1.2 christos unset CLICOLOR_FORCE GREP_OPTIONS
248 1.1.1.2 christos
249 1.1.1.2 christos ## --------------------- ##
250 1.1.1.2 christos ## M4sh Shell Functions. ##
251 1.1.1.2 christos ## --------------------- ##
252 1.1.1.2 christos # as_fn_unset VAR
253 1.1.1.2 christos # ---------------
254 1.1.1.2 christos # Portably unset VAR.
255 1.1.1.2 christos as_fn_unset ()
256 1.1.1.2 christos {
257 1.1.1.2 christos { eval $1=; unset $1;}
258 1.1.1.2 christos }
259 1.1.1.2 christos as_unset=as_fn_unset
260 1.1.1.2 christos
261 1.1.1.2 christos # as_fn_set_status STATUS
262 1.1.1.2 christos # -----------------------
263 1.1.1.2 christos # Set $? to STATUS, without forking.
264 1.1.1.2 christos as_fn_set_status ()
265 1.1.1.2 christos {
266 1.1.1.2 christos return $1
267 1.1.1.2 christos } # as_fn_set_status
268 1.1.1.2 christos
269 1.1.1.2 christos # as_fn_exit STATUS
270 1.1.1.2 christos # -----------------
271 1.1.1.2 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 1.1.1.2 christos as_fn_exit ()
273 1.1.1.2 christos {
274 1.1.1.2 christos set +e
275 1.1.1.2 christos as_fn_set_status $1
276 1.1.1.2 christos exit $1
277 1.1.1.2 christos } # as_fn_exit
278 1.1.1.2 christos
279 1.1.1.2 christos # as_fn_mkdir_p
280 1.1.1.2 christos # -------------
281 1.1.1.2 christos # Create "$as_dir" as a directory, including parents if necessary.
282 1.1.1.2 christos as_fn_mkdir_p ()
283 1.1.1.2 christos {
284 1.1.1.2 christos
285 1.1.1.2 christos case $as_dir in #(
286 1.1.1.2 christos -*) as_dir=./$as_dir;;
287 1.1.1.2 christos esac
288 1.1.1.2 christos test -d "$as_dir" || eval $as_mkdir_p || {
289 1.1.1.2 christos as_dirs=
290 1.1.1.2 christos while :; do
291 1.1.1.2 christos case $as_dir in #(
292 1.1.1.2 christos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 1.1.1.2 christos *) as_qdir=$as_dir;;
294 1.1.1.2 christos esac
295 1.1.1.2 christos as_dirs="'$as_qdir' $as_dirs"
296 1.1.1.2 christos as_dir=`$as_dirname -- "$as_dir" ||
297 1.1.1.2 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 1.1.1.2 christos X"$as_dir" : 'X\(//\)[^/]' \| \
299 1.1.1.2 christos X"$as_dir" : 'X\(//\)$' \| \
300 1.1.1.2 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 1.1.1.2 christos $as_echo X"$as_dir" |
302 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 1.1.1.2 christos s//\1/
304 1.1.1.2 christos q
305 1.1.1.2 christos }
306 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
307 1.1.1.2 christos s//\1/
308 1.1.1.2 christos q
309 1.1.1.2 christos }
310 1.1.1.2 christos /^X\(\/\/\)$/{
311 1.1.1.2 christos s//\1/
312 1.1.1.2 christos q
313 1.1.1.2 christos }
314 1.1.1.2 christos /^X\(\/\).*/{
315 1.1.1.2 christos s//\1/
316 1.1.1.2 christos q
317 1.1.1.2 christos }
318 1.1.1.2 christos s/.*/./; q'`
319 1.1.1.2 christos test -d "$as_dir" && break
320 1.1.1.2 christos done
321 1.1.1.2 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
322 1.1.1.2 christos } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 1.1.1.2 christos
324 1.1.1.2 christos
325 1.1.1.2 christos } # as_fn_mkdir_p
326 1.1.1.2 christos # as_fn_append VAR VALUE
327 1.1.1.2 christos # ----------------------
328 1.1.1.2 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
329 1.1.1.2 christos # advantage of any shell optimizations that allow amortized linear growth over
330 1.1.1.2 christos # repeated appends, instead of the typical quadratic growth present in naive
331 1.1.1.2 christos # implementations.
332 1.1.1.2 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 1.1.1.2 christos eval 'as_fn_append ()
334 1.1.1.2 christos {
335 1.1.1.2 christos eval $1+=\$2
336 1.1.1.2 christos }'
337 1.1.1.2 christos else
338 1.1.1.2 christos as_fn_append ()
339 1.1.1.2 christos {
340 1.1.1.2 christos eval $1=\$$1\$2
341 1.1.1.2 christos }
342 1.1.1.2 christos fi # as_fn_append
343 1.1.1.2 christos
344 1.1.1.2 christos # as_fn_arith ARG...
345 1.1.1.2 christos # ------------------
346 1.1.1.2 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
347 1.1.1.2 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 1.1.1.2 christos # must be portable across $(()) and expr.
349 1.1.1.2 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 1.1.1.2 christos eval 'as_fn_arith ()
351 1.1.1.2 christos {
352 1.1.1.2 christos as_val=$(( $* ))
353 1.1.1.2 christos }'
354 1.1.1.2 christos else
355 1.1.1.2 christos as_fn_arith ()
356 1.1.1.2 christos {
357 1.1.1.2 christos as_val=`expr "$@" || test $? -eq 1`
358 1.1.1.2 christos }
359 1.1.1.2 christos fi # as_fn_arith
360 1.1.1.2 christos
361 1.1.1.2 christos
362 1.1.1.2 christos # as_fn_error ERROR [LINENO LOG_FD]
363 1.1.1.2 christos # ---------------------------------
364 1.1.1.2 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 1.1.1.2 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 1.1.1.2 christos # script with status $?, using 1 if that was 0.
367 1.1.1.2 christos as_fn_error ()
368 1.1.1.2 christos {
369 1.1.1.2 christos as_status=$?; test $as_status -eq 0 && as_status=1
370 1.1.1.2 christos if test "$3"; then
371 1.1.1.2 christos as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 1.1.1.2 christos fi
374 1.1.1.2 christos $as_echo "$as_me: error: $1" >&2
375 1.1.1.2 christos as_fn_exit $as_status
376 1.1.1.2 christos } # as_fn_error
377 1.1 christos
378 1.1.1.2 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
379 1.1.1.2 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 1.1 christos as_expr=expr
381 1.1 christos else
382 1.1 christos as_expr=false
383 1.1 christos fi
384 1.1 christos
385 1.1.1.2 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 1.1 christos as_basename=basename
387 1.1 christos else
388 1.1 christos as_basename=false
389 1.1 christos fi
390 1.1 christos
391 1.1.1.2 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 1.1.1.2 christos as_dirname=dirname
393 1.1.1.2 christos else
394 1.1.1.2 christos as_dirname=false
395 1.1.1.2 christos fi
396 1.1 christos
397 1.1.1.2 christos as_me=`$as_basename -- "$0" ||
398 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 1.1 christos X"$0" : 'X\(//\)$' \| \
400 1.1.1.2 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 1.1.1.2 christos $as_echo X/"$0" |
402 1.1.1.2 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
403 1.1.1.2 christos s//\1/
404 1.1.1.2 christos q
405 1.1.1.2 christos }
406 1.1.1.2 christos /^X\/\(\/\/\)$/{
407 1.1.1.2 christos s//\1/
408 1.1.1.2 christos q
409 1.1.1.2 christos }
410 1.1.1.2 christos /^X\/\(\/\).*/{
411 1.1.1.2 christos s//\1/
412 1.1.1.2 christos q
413 1.1.1.2 christos }
414 1.1.1.2 christos s/.*/./; q'`
415 1.1 christos
416 1.1 christos # Avoid depending upon Character Ranges.
417 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 1.1 christos as_cr_digits='0123456789'
421 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
422 1.1 christos
423 1.1 christos
424 1.1.1.2 christos as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 1.1.1.2 christos as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 1.1.1.2 christos eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 1.1.1.2 christos test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 1.1.1.2 christos # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 1.1.1.2 christos sed -n '
430 1.1.1.2 christos p
431 1.1.1.2 christos /[$]LINENO/=
432 1.1.1.2 christos ' <$as_myself |
433 1.1 christos sed '
434 1.1.1.2 christos s/[$]LINENO.*/&-/
435 1.1.1.2 christos t lineno
436 1.1.1.2 christos b
437 1.1.1.2 christos :lineno
438 1.1 christos N
439 1.1.1.2 christos :loop
440 1.1.1.2 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 1.1 christos t loop
442 1.1.1.2 christos s/-\n.*//
443 1.1 christos ' >$as_me.lineno &&
444 1.1.1.2 christos chmod +x "$as_me.lineno" ||
445 1.1.1.2 christos { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 1.1 christos
447 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
448 1.1 christos # (the dirname of $[0] is not the place where we might find the
449 1.1.1.2 christos # original and so on. Autoconf is especially sensitive to this).
450 1.1.1.2 christos . "./$as_me.lineno"
451 1.1 christos # Exit status is that of the last command.
452 1.1 christos exit
453 1.1 christos }
454 1.1 christos
455 1.1.1.2 christos ECHO_C= ECHO_N= ECHO_T=
456 1.1.1.2 christos case `echo -n x` in #(((((
457 1.1.1.2 christos -n*)
458 1.1.1.2 christos case `echo 'xy\c'` in
459 1.1.1.2 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 1.1.1.2 christos xy) ECHO_C='\c';;
461 1.1.1.2 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 1.1.1.2 christos ECHO_T=' ';;
463 1.1.1.2 christos esac;;
464 1.1.1.2 christos *)
465 1.1.1.2 christos ECHO_N='-n';;
466 1.1 christos esac
467 1.1 christos
468 1.1.1.2 christos rm -f conf$$ conf$$.exe conf$$.file
469 1.1.1.2 christos if test -d conf$$.dir; then
470 1.1.1.2 christos rm -f conf$$.dir/conf$$.file
471 1.1 christos else
472 1.1.1.2 christos rm -f conf$$.dir
473 1.1.1.2 christos mkdir conf$$.dir 2>/dev/null
474 1.1 christos fi
475 1.1.1.2 christos if (echo >conf$$.file) 2>/dev/null; then
476 1.1.1.2 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
477 1.1 christos as_ln_s='ln -s'
478 1.1.1.2 christos # ... but there are two gotchas:
479 1.1.1.2 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 1.1.1.2 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 1.1.1.2 christos # In both cases, we have to default to `cp -p'.
482 1.1.1.2 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 1.1.1.2 christos as_ln_s='cp -p'
484 1.1.1.2 christos elif ln conf$$.file conf$$ 2>/dev/null; then
485 1.1.1.2 christos as_ln_s=ln
486 1.1.1.2 christos else
487 1.1.1.2 christos as_ln_s='cp -p'
488 1.1 christos fi
489 1.1 christos else
490 1.1 christos as_ln_s='cp -p'
491 1.1 christos fi
492 1.1.1.2 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 1.1.1.2 christos rmdir conf$$.dir 2>/dev/null
494 1.1 christos
495 1.1 christos if mkdir -p . 2>/dev/null; then
496 1.1.1.2 christos as_mkdir_p='mkdir -p "$as_dir"'
497 1.1 christos else
498 1.1 christos test -d ./-p && rmdir ./-p
499 1.1 christos as_mkdir_p=false
500 1.1 christos fi
501 1.1 christos
502 1.1.1.2 christos if test -x / >/dev/null 2>&1; then
503 1.1.1.2 christos as_test_x='test -x'
504 1.1.1.2 christos else
505 1.1.1.2 christos if ls -dL / >/dev/null 2>&1; then
506 1.1.1.2 christos as_ls_L_option=L
507 1.1.1.2 christos else
508 1.1.1.2 christos as_ls_L_option=
509 1.1.1.2 christos fi
510 1.1.1.2 christos as_test_x='
511 1.1.1.2 christos eval sh -c '\''
512 1.1.1.2 christos if test -d "$1"; then
513 1.1.1.2 christos test -d "$1/.";
514 1.1.1.2 christos else
515 1.1.1.2 christos case $1 in #(
516 1.1.1.2 christos -*)set "./$1";;
517 1.1.1.2 christos esac;
518 1.1.1.2 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 1.1.1.2 christos ???[sx]*):;;*)false;;esac;fi
520 1.1.1.2 christos '\'' sh
521 1.1.1.2 christos '
522 1.1.1.2 christos fi
523 1.1.1.2 christos as_executable_p=$as_test_x
524 1.1 christos
525 1.1 christos # Sed expression to map a string onto a valid CPP name.
526 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 1.1 christos
528 1.1 christos # Sed expression to map a string onto a valid variable name.
529 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 1.1 christos
531 1.1 christos
532 1.1.1.2 christos test -n "$DJDIR" || exec 7<&0 </dev/null
533 1.1.1.2 christos exec 6>&1
534 1.1 christos
535 1.1 christos # Name of the host.
536 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 1.1 christos # so uname gets run too.
538 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539 1.1 christos
540 1.1 christos #
541 1.1 christos # Initializations.
542 1.1 christos #
543 1.1 christos ac_default_prefix=/usr/local
544 1.1.1.2 christos ac_clean_files=
545 1.1 christos ac_config_libobj_dir=.
546 1.1.1.2 christos LIBOBJS=
547 1.1 christos cross_compiling=no
548 1.1 christos subdirs=
549 1.1 christos MFLAGS=
550 1.1 christos MAKEFLAGS=
551 1.1 christos
552 1.1 christos # Identity of this package.
553 1.1 christos PACKAGE_NAME='the fast lexical analyser generator'
554 1.1 christos PACKAGE_TARNAME='flex'
555 1.1.1.2 christos PACKAGE_VERSION='2.5.37'
556 1.1.1.2 christos PACKAGE_STRING='the fast lexical analyser generator 2.5.37'
557 1.1 christos PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
558 1.1.1.2 christos PACKAGE_URL=''
559 1.1 christos
560 1.1 christos ac_unique_file="scan.l"
561 1.1.1.2 christos ac_config_libobj_dir=lib
562 1.1 christos # Factoring default headers for most tests.
563 1.1 christos ac_includes_default="\
564 1.1 christos #include <stdio.h>
565 1.1.1.2 christos #ifdef HAVE_SYS_TYPES_H
566 1.1 christos # include <sys/types.h>
567 1.1 christos #endif
568 1.1.1.2 christos #ifdef HAVE_SYS_STAT_H
569 1.1 christos # include <sys/stat.h>
570 1.1 christos #endif
571 1.1.1.2 christos #ifdef STDC_HEADERS
572 1.1 christos # include <stdlib.h>
573 1.1 christos # include <stddef.h>
574 1.1 christos #else
575 1.1.1.2 christos # ifdef HAVE_STDLIB_H
576 1.1 christos # include <stdlib.h>
577 1.1 christos # endif
578 1.1 christos #endif
579 1.1.1.2 christos #ifdef HAVE_STRING_H
580 1.1.1.2 christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 1.1 christos # include <memory.h>
582 1.1 christos # endif
583 1.1 christos # include <string.h>
584 1.1 christos #endif
585 1.1.1.2 christos #ifdef HAVE_STRINGS_H
586 1.1 christos # include <strings.h>
587 1.1 christos #endif
588 1.1.1.2 christos #ifdef HAVE_INTTYPES_H
589 1.1 christos # include <inttypes.h>
590 1.1 christos #endif
591 1.1.1.2 christos #ifdef HAVE_STDINT_H
592 1.1.1.2 christos # include <stdint.h>
593 1.1.1.2 christos #endif
594 1.1.1.2 christos #ifdef HAVE_UNISTD_H
595 1.1 christos # include <unistd.h>
596 1.1 christos #endif"
597 1.1 christos
598 1.1.1.2 christos ac_subst_vars='am__EXEEXT_FALSE
599 1.1.1.2 christos am__EXEEXT_TRUE
600 1.1.1.2 christos LTLIBOBJS
601 1.1.1.2 christos LIBOBJS
602 1.1.1.2 christos ALLOCA
603 1.1.1.2 christos EGREP
604 1.1.1.2 christos GREP
605 1.1.1.2 christos CPP
606 1.1.1.2 christos INDENT
607 1.1.1.2 christos M4
608 1.1.1.2 christos HELP2MAN
609 1.1.1.2 christos BISON
610 1.1.1.2 christos RANLIB
611 1.1.1.2 christos LN_S
612 1.1.1.2 christos am__fastdepCXX_FALSE
613 1.1.1.2 christos am__fastdepCXX_TRUE
614 1.1.1.2 christos CXXDEPMODE
615 1.1.1.2 christos ac_ct_CXX
616 1.1.1.2 christos CXXFLAGS
617 1.1.1.2 christos CXX
618 1.1.1.2 christos LEXLIB
619 1.1.1.2 christos LEX_OUTPUT_ROOT
620 1.1.1.2 christos LEX
621 1.1.1.2 christos YFLAGS
622 1.1.1.2 christos YACC
623 1.1.1.2 christos POSUB
624 1.1.1.2 christos LTLIBINTL
625 1.1.1.2 christos LIBINTL
626 1.1.1.2 christos INTLLIBS
627 1.1.1.2 christos LTLIBICONV
628 1.1.1.2 christos LIBICONV
629 1.1.1.2 christos host_os
630 1.1.1.2 christos host_vendor
631 1.1.1.2 christos host_cpu
632 1.1.1.2 christos host
633 1.1.1.2 christos build_os
634 1.1.1.2 christos build_vendor
635 1.1.1.2 christos build_cpu
636 1.1.1.2 christos build
637 1.1.1.2 christos am__fastdepCC_FALSE
638 1.1.1.2 christos am__fastdepCC_TRUE
639 1.1.1.2 christos CCDEPMODE
640 1.1.1.2 christos AMDEPBACKSLASH
641 1.1.1.2 christos AMDEP_FALSE
642 1.1.1.2 christos AMDEP_TRUE
643 1.1.1.2 christos am__quote
644 1.1.1.2 christos am__include
645 1.1.1.2 christos DEPDIR
646 1.1.1.2 christos OBJEXT
647 1.1.1.2 christos EXEEXT
648 1.1.1.2 christos ac_ct_CC
649 1.1.1.2 christos CPPFLAGS
650 1.1.1.2 christos LDFLAGS
651 1.1.1.2 christos CFLAGS
652 1.1.1.2 christos CC
653 1.1.1.2 christos MSGMERGE
654 1.1.1.2 christos XGETTEXT
655 1.1.1.2 christos GMSGFMT
656 1.1.1.2 christos MSGFMT
657 1.1.1.2 christos USE_NLS
658 1.1.1.2 christos MKINSTALLDIRS
659 1.1.1.2 christos am__untar
660 1.1.1.2 christos am__tar
661 1.1.1.2 christos AMTAR
662 1.1.1.2 christos am__leading_dot
663 1.1.1.2 christos SET_MAKE
664 1.1.1.2 christos AWK
665 1.1.1.2 christos mkdir_p
666 1.1.1.2 christos MKDIR_P
667 1.1.1.2 christos INSTALL_STRIP_PROGRAM
668 1.1.1.2 christos STRIP
669 1.1.1.2 christos install_sh
670 1.1.1.2 christos MAKEINFO
671 1.1.1.2 christos AUTOHEADER
672 1.1.1.2 christos AUTOMAKE
673 1.1.1.2 christos AUTOCONF
674 1.1.1.2 christos ACLOCAL
675 1.1.1.2 christos VERSION
676 1.1.1.2 christos PACKAGE
677 1.1.1.2 christos CYGPATH_W
678 1.1.1.2 christos am__isrc
679 1.1.1.2 christos INSTALL_DATA
680 1.1.1.2 christos INSTALL_SCRIPT
681 1.1.1.2 christos INSTALL_PROGRAM
682 1.1.1.2 christos target_alias
683 1.1.1.2 christos host_alias
684 1.1.1.2 christos build_alias
685 1.1.1.2 christos LIBS
686 1.1.1.2 christos ECHO_T
687 1.1.1.2 christos ECHO_N
688 1.1.1.2 christos ECHO_C
689 1.1.1.2 christos DEFS
690 1.1.1.2 christos mandir
691 1.1.1.2 christos localedir
692 1.1.1.2 christos libdir
693 1.1.1.2 christos psdir
694 1.1.1.2 christos pdfdir
695 1.1.1.2 christos dvidir
696 1.1.1.2 christos htmldir
697 1.1.1.2 christos infodir
698 1.1.1.2 christos docdir
699 1.1.1.2 christos oldincludedir
700 1.1.1.2 christos includedir
701 1.1.1.2 christos localstatedir
702 1.1.1.2 christos sharedstatedir
703 1.1.1.2 christos sysconfdir
704 1.1.1.2 christos datadir
705 1.1.1.2 christos datarootdir
706 1.1.1.2 christos libexecdir
707 1.1.1.2 christos sbindir
708 1.1.1.2 christos bindir
709 1.1.1.2 christos program_transform_name
710 1.1.1.2 christos prefix
711 1.1.1.2 christos exec_prefix
712 1.1.1.2 christos PACKAGE_URL
713 1.1.1.2 christos PACKAGE_BUGREPORT
714 1.1.1.2 christos PACKAGE_STRING
715 1.1.1.2 christos PACKAGE_VERSION
716 1.1.1.2 christos PACKAGE_TARNAME
717 1.1.1.2 christos PACKAGE_NAME
718 1.1.1.2 christos PATH_SEPARATOR
719 1.1.1.2 christos SHELL'
720 1.1 christos ac_subst_files=''
721 1.1.1.2 christos ac_user_opts='
722 1.1.1.2 christos enable_option_checking
723 1.1.1.2 christos enable_nls
724 1.1.1.2 christos enable_dependency_tracking
725 1.1.1.2 christos with_gnu_ld
726 1.1.1.2 christos enable_rpath
727 1.1.1.2 christos with_libiconv_prefix
728 1.1.1.2 christos with_libintl_prefix
729 1.1.1.2 christos '
730 1.1.1.2 christos ac_precious_vars='build_alias
731 1.1.1.2 christos host_alias
732 1.1.1.2 christos target_alias
733 1.1.1.2 christos CC
734 1.1.1.2 christos CFLAGS
735 1.1.1.2 christos LDFLAGS
736 1.1.1.2 christos LIBS
737 1.1.1.2 christos CPPFLAGS
738 1.1.1.2 christos YACC
739 1.1.1.2 christos YFLAGS
740 1.1.1.2 christos CXX
741 1.1.1.2 christos CXXFLAGS
742 1.1.1.2 christos CCC
743 1.1.1.2 christos CPP'
744 1.1.1.2 christos
745 1.1 christos
746 1.1 christos # Initialize some variables set by options.
747 1.1 christos ac_init_help=
748 1.1 christos ac_init_version=false
749 1.1.1.2 christos ac_unrecognized_opts=
750 1.1.1.2 christos ac_unrecognized_sep=
751 1.1 christos # The variables have the same names as the options, with
752 1.1 christos # dashes changed to underlines.
753 1.1 christos cache_file=/dev/null
754 1.1 christos exec_prefix=NONE
755 1.1 christos no_create=
756 1.1 christos no_recursion=
757 1.1 christos prefix=NONE
758 1.1 christos program_prefix=NONE
759 1.1 christos program_suffix=NONE
760 1.1 christos program_transform_name=s,x,x,
761 1.1 christos silent=
762 1.1 christos site=
763 1.1 christos srcdir=
764 1.1 christos verbose=
765 1.1 christos x_includes=NONE
766 1.1 christos x_libraries=NONE
767 1.1 christos
768 1.1 christos # Installation directory options.
769 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
770 1.1 christos # and all the variables that are supposed to be based on exec_prefix
771 1.1 christos # by default will actually change.
772 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
773 1.1.1.2 christos # (The list follows the same order as the GNU Coding Standards.)
774 1.1 christos bindir='${exec_prefix}/bin'
775 1.1 christos sbindir='${exec_prefix}/sbin'
776 1.1 christos libexecdir='${exec_prefix}/libexec'
777 1.1.1.2 christos datarootdir='${prefix}/share'
778 1.1.1.2 christos datadir='${datarootdir}'
779 1.1 christos sysconfdir='${prefix}/etc'
780 1.1 christos sharedstatedir='${prefix}/com'
781 1.1 christos localstatedir='${prefix}/var'
782 1.1 christos includedir='${prefix}/include'
783 1.1 christos oldincludedir='/usr/include'
784 1.1.1.2 christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 1.1.1.2 christos infodir='${datarootdir}/info'
786 1.1.1.2 christos htmldir='${docdir}'
787 1.1.1.2 christos dvidir='${docdir}'
788 1.1.1.2 christos pdfdir='${docdir}'
789 1.1.1.2 christos psdir='${docdir}'
790 1.1.1.2 christos libdir='${exec_prefix}/lib'
791 1.1.1.2 christos localedir='${datarootdir}/locale'
792 1.1.1.2 christos mandir='${datarootdir}/man'
793 1.1 christos
794 1.1 christos ac_prev=
795 1.1.1.2 christos ac_dashdash=
796 1.1 christos for ac_option
797 1.1 christos do
798 1.1 christos # If the previous option needs an argument, assign it.
799 1.1 christos if test -n "$ac_prev"; then
800 1.1.1.2 christos eval $ac_prev=\$ac_option
801 1.1 christos ac_prev=
802 1.1 christos continue
803 1.1 christos fi
804 1.1 christos
805 1.1.1.2 christos case $ac_option in
806 1.1.1.2 christos *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 1.1.1.2 christos *) ac_optarg=yes ;;
808 1.1.1.2 christos esac
809 1.1 christos
810 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
811 1.1 christos
812 1.1.1.2 christos case $ac_dashdash$ac_option in
813 1.1.1.2 christos --)
814 1.1.1.2 christos ac_dashdash=yes ;;
815 1.1 christos
816 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 1.1 christos ac_prev=bindir ;;
818 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 1.1 christos bindir=$ac_optarg ;;
820 1.1 christos
821 1.1 christos -build | --build | --buil | --bui | --bu)
822 1.1 christos ac_prev=build_alias ;;
823 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 1.1 christos build_alias=$ac_optarg ;;
825 1.1 christos
826 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
827 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 1.1 christos ac_prev=cache_file ;;
829 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 1.1 christos cache_file=$ac_optarg ;;
832 1.1 christos
833 1.1 christos --config-cache | -C)
834 1.1 christos cache_file=config.cache ;;
835 1.1 christos
836 1.1.1.2 christos -datadir | --datadir | --datadi | --datad)
837 1.1 christos ac_prev=datadir ;;
838 1.1.1.2 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 1.1 christos datadir=$ac_optarg ;;
840 1.1 christos
841 1.1.1.2 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 1.1.1.2 christos | --dataroo | --dataro | --datar)
843 1.1.1.2 christos ac_prev=datarootdir ;;
844 1.1.1.2 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 1.1.1.2 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 1.1.1.2 christos datarootdir=$ac_optarg ;;
847 1.1.1.2 christos
848 1.1 christos -disable-* | --disable-*)
849 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 1.1 christos # Reject names that are not valid shell variable names.
851 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 1.1.1.2 christos as_fn_error "invalid feature name: $ac_useropt"
853 1.1.1.2 christos ac_useropt_orig=$ac_useropt
854 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 1.1.1.2 christos case $ac_user_opts in
856 1.1.1.2 christos *"
857 1.1.1.2 christos "enable_$ac_useropt"
858 1.1.1.2 christos "*) ;;
859 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 1.1.1.2 christos ac_unrecognized_sep=', ';;
861 1.1.1.2 christos esac
862 1.1.1.2 christos eval enable_$ac_useropt=no ;;
863 1.1.1.2 christos
864 1.1.1.2 christos -docdir | --docdir | --docdi | --doc | --do)
865 1.1.1.2 christos ac_prev=docdir ;;
866 1.1.1.2 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 1.1.1.2 christos docdir=$ac_optarg ;;
868 1.1.1.2 christos
869 1.1.1.2 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 1.1.1.2 christos ac_prev=dvidir ;;
871 1.1.1.2 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 1.1.1.2 christos dvidir=$ac_optarg ;;
873 1.1 christos
874 1.1 christos -enable-* | --enable-*)
875 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 1.1 christos # Reject names that are not valid shell variable names.
877 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 1.1.1.2 christos as_fn_error "invalid feature name: $ac_useropt"
879 1.1.1.2 christos ac_useropt_orig=$ac_useropt
880 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 1.1.1.2 christos case $ac_user_opts in
882 1.1.1.2 christos *"
883 1.1.1.2 christos "enable_$ac_useropt"
884 1.1.1.2 christos "*) ;;
885 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 1.1.1.2 christos ac_unrecognized_sep=', ';;
887 1.1 christos esac
888 1.1.1.2 christos eval enable_$ac_useropt=\$ac_optarg ;;
889 1.1 christos
890 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 1.1 christos | --exec | --exe | --ex)
893 1.1 christos ac_prev=exec_prefix ;;
894 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 1.1 christos | --exec=* | --exe=* | --ex=*)
897 1.1 christos exec_prefix=$ac_optarg ;;
898 1.1 christos
899 1.1 christos -gas | --gas | --ga | --g)
900 1.1 christos # Obsolete; use --with-gas.
901 1.1 christos with_gas=yes ;;
902 1.1 christos
903 1.1 christos -help | --help | --hel | --he | -h)
904 1.1 christos ac_init_help=long ;;
905 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 1.1 christos ac_init_help=recursive ;;
907 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 1.1 christos ac_init_help=short ;;
909 1.1 christos
910 1.1 christos -host | --host | --hos | --ho)
911 1.1 christos ac_prev=host_alias ;;
912 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
913 1.1 christos host_alias=$ac_optarg ;;
914 1.1 christos
915 1.1.1.2 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 1.1.1.2 christos ac_prev=htmldir ;;
917 1.1.1.2 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 1.1.1.2 christos | --ht=*)
919 1.1.1.2 christos htmldir=$ac_optarg ;;
920 1.1.1.2 christos
921 1.1 christos -includedir | --includedir | --includedi | --included | --include \
922 1.1 christos | --includ | --inclu | --incl | --inc)
923 1.1 christos ac_prev=includedir ;;
924 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
926 1.1 christos includedir=$ac_optarg ;;
927 1.1 christos
928 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
929 1.1 christos ac_prev=infodir ;;
930 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 1.1 christos infodir=$ac_optarg ;;
932 1.1 christos
933 1.1 christos -libdir | --libdir | --libdi | --libd)
934 1.1 christos ac_prev=libdir ;;
935 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
936 1.1 christos libdir=$ac_optarg ;;
937 1.1 christos
938 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 1.1 christos | --libexe | --libex | --libe)
940 1.1 christos ac_prev=libexecdir ;;
941 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 1.1 christos | --libexe=* | --libex=* | --libe=*)
943 1.1 christos libexecdir=$ac_optarg ;;
944 1.1 christos
945 1.1.1.2 christos -localedir | --localedir | --localedi | --localed | --locale)
946 1.1.1.2 christos ac_prev=localedir ;;
947 1.1.1.2 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 1.1.1.2 christos localedir=$ac_optarg ;;
949 1.1.1.2 christos
950 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
951 1.1.1.2 christos | --localstate | --localstat | --localsta | --localst | --locals)
952 1.1 christos ac_prev=localstatedir ;;
953 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 1.1.1.2 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 1.1 christos localstatedir=$ac_optarg ;;
956 1.1 christos
957 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 1.1 christos ac_prev=mandir ;;
959 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 1.1 christos mandir=$ac_optarg ;;
961 1.1 christos
962 1.1 christos -nfp | --nfp | --nf)
963 1.1 christos # Obsolete; use --without-fp.
964 1.1 christos with_fp=no ;;
965 1.1 christos
966 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 1.1 christos | --no-cr | --no-c | -n)
968 1.1 christos no_create=yes ;;
969 1.1 christos
970 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 1.1 christos no_recursion=yes ;;
973 1.1 christos
974 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 1.1 christos | --oldin | --oldi | --old | --ol | --o)
977 1.1 christos ac_prev=oldincludedir ;;
978 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 1.1 christos oldincludedir=$ac_optarg ;;
982 1.1 christos
983 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 1.1 christos ac_prev=prefix ;;
985 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986 1.1 christos prefix=$ac_optarg ;;
987 1.1 christos
988 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 1.1 christos | --program-pre | --program-pr | --program-p)
990 1.1 christos ac_prev=program_prefix ;;
991 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 1.1 christos program_prefix=$ac_optarg ;;
994 1.1 christos
995 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 1.1 christos | --program-suf | --program-su | --program-s)
997 1.1 christos ac_prev=program_suffix ;;
998 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 1.1 christos program_suffix=$ac_optarg ;;
1001 1.1 christos
1002 1.1 christos -program-transform-name | --program-transform-name \
1003 1.1 christos | --program-transform-nam | --program-transform-na \
1004 1.1 christos | --program-transform-n | --program-transform- \
1005 1.1 christos | --program-transform | --program-transfor \
1006 1.1 christos | --program-transfo | --program-transf \
1007 1.1 christos | --program-trans | --program-tran \
1008 1.1 christos | --progr-tra | --program-tr | --program-t)
1009 1.1 christos ac_prev=program_transform_name ;;
1010 1.1 christos -program-transform-name=* | --program-transform-name=* \
1011 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
1012 1.1 christos | --program-transform-n=* | --program-transform-=* \
1013 1.1 christos | --program-transform=* | --program-transfor=* \
1014 1.1 christos | --program-transfo=* | --program-transf=* \
1015 1.1 christos | --program-trans=* | --program-tran=* \
1016 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
1017 1.1 christos program_transform_name=$ac_optarg ;;
1018 1.1 christos
1019 1.1.1.2 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 1.1.1.2 christos ac_prev=pdfdir ;;
1021 1.1.1.2 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 1.1.1.2 christos pdfdir=$ac_optarg ;;
1023 1.1.1.2 christos
1024 1.1.1.2 christos -psdir | --psdir | --psdi | --psd | --ps)
1025 1.1.1.2 christos ac_prev=psdir ;;
1026 1.1.1.2 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027 1.1.1.2 christos psdir=$ac_optarg ;;
1028 1.1.1.2 christos
1029 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1031 1.1 christos silent=yes ;;
1032 1.1 christos
1033 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 1.1 christos ac_prev=sbindir ;;
1035 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 1.1 christos | --sbi=* | --sb=*)
1037 1.1 christos sbindir=$ac_optarg ;;
1038 1.1 christos
1039 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
1042 1.1 christos | --sha | --sh)
1043 1.1 christos ac_prev=sharedstatedir ;;
1044 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 1.1 christos | --sha=* | --sh=*)
1048 1.1 christos sharedstatedir=$ac_optarg ;;
1049 1.1 christos
1050 1.1 christos -site | --site | --sit)
1051 1.1 christos ac_prev=site ;;
1052 1.1 christos -site=* | --site=* | --sit=*)
1053 1.1 christos site=$ac_optarg ;;
1054 1.1 christos
1055 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 1.1 christos ac_prev=srcdir ;;
1057 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 1.1 christos srcdir=$ac_optarg ;;
1059 1.1 christos
1060 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
1062 1.1 christos ac_prev=sysconfdir ;;
1063 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 1.1 christos sysconfdir=$ac_optarg ;;
1066 1.1 christos
1067 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
1068 1.1 christos ac_prev=target_alias ;;
1069 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 1.1 christos target_alias=$ac_optarg ;;
1071 1.1 christos
1072 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 1.1 christos verbose=yes ;;
1074 1.1 christos
1075 1.1 christos -version | --version | --versio | --versi | --vers | -V)
1076 1.1 christos ac_init_version=: ;;
1077 1.1 christos
1078 1.1 christos -with-* | --with-*)
1079 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 1.1 christos # Reject names that are not valid shell variable names.
1081 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 1.1.1.2 christos as_fn_error "invalid package name: $ac_useropt"
1083 1.1.1.2 christos ac_useropt_orig=$ac_useropt
1084 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 1.1.1.2 christos case $ac_user_opts in
1086 1.1.1.2 christos *"
1087 1.1.1.2 christos "with_$ac_useropt"
1088 1.1.1.2 christos "*) ;;
1089 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 1.1.1.2 christos ac_unrecognized_sep=', ';;
1091 1.1 christos esac
1092 1.1.1.2 christos eval with_$ac_useropt=\$ac_optarg ;;
1093 1.1 christos
1094 1.1 christos -without-* | --without-*)
1095 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 1.1 christos # Reject names that are not valid shell variable names.
1097 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 1.1.1.2 christos as_fn_error "invalid package name: $ac_useropt"
1099 1.1.1.2 christos ac_useropt_orig=$ac_useropt
1100 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 1.1.1.2 christos case $ac_user_opts in
1102 1.1.1.2 christos *"
1103 1.1.1.2 christos "with_$ac_useropt"
1104 1.1.1.2 christos "*) ;;
1105 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 1.1.1.2 christos ac_unrecognized_sep=', ';;
1107 1.1.1.2 christos esac
1108 1.1.1.2 christos eval with_$ac_useropt=no ;;
1109 1.1 christos
1110 1.1 christos --x)
1111 1.1 christos # Obsolete; use --with-x.
1112 1.1 christos with_x=yes ;;
1113 1.1 christos
1114 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
1116 1.1 christos ac_prev=x_includes ;;
1117 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 1.1 christos x_includes=$ac_optarg ;;
1120 1.1 christos
1121 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 1.1 christos ac_prev=x_libraries ;;
1124 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 1.1 christos x_libraries=$ac_optarg ;;
1127 1.1 christos
1128 1.1.1.2 christos -*) as_fn_error "unrecognized option: \`$ac_option'
1129 1.1.1.2 christos Try \`$0 --help' for more information."
1130 1.1 christos ;;
1131 1.1 christos
1132 1.1 christos *=*)
1133 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 1.1 christos # Reject names that are not valid shell variable names.
1135 1.1.1.2 christos case $ac_envvar in #(
1136 1.1.1.2 christos '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 1.1.1.2 christos as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 1.1.1.2 christos esac
1139 1.1.1.2 christos eval $ac_envvar=\$ac_optarg
1140 1.1 christos export $ac_envvar ;;
1141 1.1 christos
1142 1.1 christos *)
1143 1.1 christos # FIXME: should be removed in autoconf 3.0.
1144 1.1.1.2 christos $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 1.1.1.2 christos $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 1.1 christos ;;
1149 1.1 christos
1150 1.1 christos esac
1151 1.1 christos done
1152 1.1 christos
1153 1.1 christos if test -n "$ac_prev"; then
1154 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 1.1.1.2 christos as_fn_error "missing argument to $ac_option"
1156 1.1 christos fi
1157 1.1 christos
1158 1.1.1.2 christos if test -n "$ac_unrecognized_opts"; then
1159 1.1.1.2 christos case $enable_option_checking in
1160 1.1.1.2 christos no) ;;
1161 1.1.1.2 christos fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 1.1.1.2 christos *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 1.1 christos esac
1164 1.1.1.2 christos fi
1165 1.1 christos
1166 1.1.1.2 christos # Check all directory arguments for consistency.
1167 1.1.1.2 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 1.1.1.2 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1169 1.1.1.2 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 1.1.1.2 christos libdir localedir mandir
1171 1.1 christos do
1172 1.1.1.2 christos eval ac_val=\$$ac_var
1173 1.1.1.2 christos # Remove trailing slashes.
1174 1.1.1.2 christos case $ac_val in
1175 1.1.1.2 christos */ )
1176 1.1.1.2 christos ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 1.1.1.2 christos eval $ac_var=\$ac_val;;
1178 1.1.1.2 christos esac
1179 1.1.1.2 christos # Be sure to have absolute directory names.
1180 1.1 christos case $ac_val in
1181 1.1.1.2 christos [\\/$]* | ?:[\\/]* ) continue;;
1182 1.1.1.2 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 1.1 christos esac
1184 1.1.1.2 christos as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185 1.1 christos done
1186 1.1 christos
1187 1.1 christos # There might be people who depend on the old broken behavior: `$host'
1188 1.1 christos # used to hold the argument of --host etc.
1189 1.1 christos # FIXME: To remove some day.
1190 1.1 christos build=$build_alias
1191 1.1 christos host=$host_alias
1192 1.1 christos target=$target_alias
1193 1.1 christos
1194 1.1 christos # FIXME: To remove some day.
1195 1.1 christos if test "x$host_alias" != x; then
1196 1.1 christos if test "x$build_alias" = x; then
1197 1.1 christos cross_compiling=maybe
1198 1.1.1.2 christos $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2
1200 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
1201 1.1 christos cross_compiling=yes
1202 1.1 christos fi
1203 1.1 christos fi
1204 1.1 christos
1205 1.1 christos ac_tool_prefix=
1206 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 1.1 christos
1208 1.1 christos test "$silent" = yes && exec 6>/dev/null
1209 1.1 christos
1210 1.1 christos
1211 1.1.1.2 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 1.1.1.2 christos ac_ls_di=`ls -di .` &&
1213 1.1.1.2 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 1.1.1.2 christos as_fn_error "working directory cannot be determined"
1215 1.1.1.2 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 1.1.1.2 christos as_fn_error "pwd does not report name of working directory"
1217 1.1.1.2 christos
1218 1.1.1.2 christos
1219 1.1 christos # Find the source files, if location was not specified.
1220 1.1 christos if test -z "$srcdir"; then
1221 1.1 christos ac_srcdir_defaulted=yes
1222 1.1.1.2 christos # Try the directory containing this script, then the parent directory.
1223 1.1.1.2 christos ac_confdir=`$as_dirname -- "$as_myself" ||
1224 1.1.1.2 christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 1.1.1.2 christos X"$as_myself" : 'X\(//\)[^/]' \| \
1226 1.1.1.2 christos X"$as_myself" : 'X\(//\)$' \| \
1227 1.1.1.2 christos X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 1.1.1.2 christos $as_echo X"$as_myself" |
1229 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 1.1.1.2 christos s//\1/
1231 1.1.1.2 christos q
1232 1.1.1.2 christos }
1233 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
1234 1.1.1.2 christos s//\1/
1235 1.1.1.2 christos q
1236 1.1.1.2 christos }
1237 1.1.1.2 christos /^X\(\/\/\)$/{
1238 1.1.1.2 christos s//\1/
1239 1.1.1.2 christos q
1240 1.1.1.2 christos }
1241 1.1.1.2 christos /^X\(\/\).*/{
1242 1.1.1.2 christos s//\1/
1243 1.1.1.2 christos q
1244 1.1.1.2 christos }
1245 1.1.1.2 christos s/.*/./; q'`
1246 1.1 christos srcdir=$ac_confdir
1247 1.1.1.2 christos if test ! -r "$srcdir/$ac_unique_file"; then
1248 1.1 christos srcdir=..
1249 1.1 christos fi
1250 1.1 christos else
1251 1.1 christos ac_srcdir_defaulted=no
1252 1.1 christos fi
1253 1.1.1.2 christos if test ! -r "$srcdir/$ac_unique_file"; then
1254 1.1.1.2 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 1.1.1.2 christos as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 1.1.1.2 christos fi
1257 1.1.1.2 christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 1.1.1.2 christos ac_abs_confdir=`(
1259 1.1.1.2 christos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 1.1.1.2 christos pwd)`
1261 1.1.1.2 christos # When building in place, set srcdir=.
1262 1.1.1.2 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 1.1.1.2 christos srcdir=.
1264 1.1.1.2 christos fi
1265 1.1.1.2 christos # Remove unnecessary trailing slashes from srcdir.
1266 1.1.1.2 christos # Double slashes in file names in object file debugging info
1267 1.1.1.2 christos # mess up M-x gdb in Emacs.
1268 1.1.1.2 christos case $srcdir in
1269 1.1.1.2 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 1.1.1.2 christos esac
1271 1.1.1.2 christos for ac_var in $ac_precious_vars; do
1272 1.1.1.2 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 1.1.1.2 christos eval ac_env_${ac_var}_value=\$${ac_var}
1274 1.1.1.2 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 1.1.1.2 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 1.1.1.2 christos done
1277 1.1 christos
1278 1.1 christos #
1279 1.1 christos # Report the --help message.
1280 1.1 christos #
1281 1.1 christos if test "$ac_init_help" = "long"; then
1282 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
1283 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
1284 1.1 christos cat <<_ACEOF
1285 1.1.1.2 christos \`configure' configures the fast lexical analyser generator 2.5.37 to adapt to many kinds of systems.
1286 1.1 christos
1287 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
1288 1.1 christos
1289 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
1291 1.1 christos
1292 1.1 christos Defaults for the options are specified in brackets.
1293 1.1 christos
1294 1.1 christos Configuration:
1295 1.1 christos -h, --help display this help and exit
1296 1.1 christos --help=short display options specific to this package
1297 1.1 christos --help=recursive display the short help of all the included packages
1298 1.1 christos -V, --version display version information and exit
1299 1.1 christos -q, --quiet, --silent do not print \`checking...' messages
1300 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
1301 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
1302 1.1 christos -n, --no-create do not create output files
1303 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 1.1 christos
1305 1.1 christos Installation directories:
1306 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
1307 1.1.1.2 christos [$ac_default_prefix]
1308 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 1.1.1.2 christos [PREFIX]
1310 1.1 christos
1311 1.1 christos By default, \`make install' will install all the files in
1312 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 1.1 christos for instance \`--prefix=\$HOME'.
1315 1.1 christos
1316 1.1 christos For better control, use the options below.
1317 1.1 christos
1318 1.1 christos Fine tuning of the installation directories:
1319 1.1.1.2 christos --bindir=DIR user executables [EPREFIX/bin]
1320 1.1.1.2 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 1.1.1.2 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1322 1.1.1.2 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 1.1.1.2 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 1.1.1.2 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 1.1.1.2 christos --libdir=DIR object code libraries [EPREFIX/lib]
1326 1.1.1.2 christos --includedir=DIR C header files [PREFIX/include]
1327 1.1.1.2 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 1.1.1.2 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 1.1.1.2 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 1.1.1.2 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1331 1.1.1.2 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 1.1.1.2 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1333 1.1.1.2 christos --docdir=DIR documentation root [DATAROOTDIR/doc/flex]
1334 1.1.1.2 christos --htmldir=DIR html documentation [DOCDIR]
1335 1.1.1.2 christos --dvidir=DIR dvi documentation [DOCDIR]
1336 1.1.1.2 christos --pdfdir=DIR pdf documentation [DOCDIR]
1337 1.1.1.2 christos --psdir=DIR ps documentation [DOCDIR]
1338 1.1 christos _ACEOF
1339 1.1 christos
1340 1.1 christos cat <<\_ACEOF
1341 1.1 christos
1342 1.1 christos Program names:
1343 1.1 christos --program-prefix=PREFIX prepend PREFIX to installed program names
1344 1.1 christos --program-suffix=SUFFIX append SUFFIX to installed program names
1345 1.1 christos --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346 1.1 christos
1347 1.1 christos System types:
1348 1.1 christos --build=BUILD configure for building on BUILD [guessed]
1349 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 1.1 christos _ACEOF
1351 1.1 christos fi
1352 1.1 christos
1353 1.1 christos if test -n "$ac_init_help"; then
1354 1.1 christos case $ac_init_help in
1355 1.1.1.2 christos short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.37:";;
1356 1.1 christos esac
1357 1.1 christos cat <<\_ACEOF
1358 1.1 christos
1359 1.1 christos Optional Features:
1360 1.1.1.2 christos --disable-option-checking ignore unrecognized --enable/--with options
1361 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 1.1 christos --disable-nls do not use Native Language Support
1364 1.1 christos --disable-dependency-tracking speeds up one-time build
1365 1.1 christos --enable-dependency-tracking do not reject slow dependency extractors
1366 1.1 christos --disable-rpath do not hardcode runtime library paths
1367 1.1 christos
1368 1.1 christos Optional Packages:
1369 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1370 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1371 1.1 christos --with-gnu-ld assume the C compiler uses GNU ld default=no
1372 1.1 christos --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1373 1.1 christos --without-libiconv-prefix don't search for libiconv in includedir and libdir
1374 1.1 christos --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1375 1.1 christos --without-libintl-prefix don't search for libintl in includedir and libdir
1376 1.1 christos
1377 1.1 christos Some influential environment variables:
1378 1.1 christos CC C compiler command
1379 1.1 christos CFLAGS C compiler flags
1380 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 1.1 christos nonstandard directory <lib dir>
1382 1.1.1.2 christos LIBS libraries to pass to the linker, e.g. -l<library>
1383 1.1.1.2 christos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1384 1.1.1.2 christos you have headers in a nonstandard directory <include dir>
1385 1.1.1.2 christos YACC The `Yet Another C Compiler' implementation to use. Defaults to
1386 1.1.1.2 christos the first program found out of: `bison -y', `byacc', `yacc'.
1387 1.1.1.2 christos YFLAGS The list of arguments that will be passed by default to $YACC.
1388 1.1.1.2 christos This script will default YFLAGS to the empty string to avoid a
1389 1.1.1.2 christos default value of `-d' given by some make applications.
1390 1.1 christos CXX C++ compiler command
1391 1.1 christos CXXFLAGS C++ compiler flags
1392 1.1 christos CPP C preprocessor
1393 1.1 christos
1394 1.1 christos Use these variables to override the choices made by `configure' or to help
1395 1.1 christos it to find libraries and programs with nonstandard names/locations.
1396 1.1 christos
1397 1.1 christos Report bugs to <flex-help (at] lists.sourceforge.net>.
1398 1.1 christos _ACEOF
1399 1.1.1.2 christos ac_status=$?
1400 1.1 christos fi
1401 1.1 christos
1402 1.1 christos if test "$ac_init_help" = "recursive"; then
1403 1.1 christos # If there are subdirs, report their specific --help.
1404 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 1.1.1.2 christos test -d "$ac_dir" ||
1406 1.1.1.2 christos { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 1.1.1.2 christos continue
1408 1.1 christos ac_builddir=.
1409 1.1 christos
1410 1.1.1.2 christos case "$ac_dir" in
1411 1.1.1.2 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 1.1.1.2 christos *)
1413 1.1.1.2 christos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1414 1.1.1.2 christos # A ".." for each directory in $ac_dir_suffix.
1415 1.1.1.2 christos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 1.1.1.2 christos case $ac_top_builddir_sub in
1417 1.1.1.2 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 1.1.1.2 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 1.1.1.2 christos esac ;;
1420 1.1.1.2 christos esac
1421 1.1.1.2 christos ac_abs_top_builddir=$ac_pwd
1422 1.1.1.2 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 1.1.1.2 christos # for backward compatibility:
1424 1.1.1.2 christos ac_top_builddir=$ac_top_build_prefix
1425 1.1 christos
1426 1.1 christos case $srcdir in
1427 1.1.1.2 christos .) # We are building in place.
1428 1.1 christos ac_srcdir=.
1429 1.1.1.2 christos ac_top_srcdir=$ac_top_builddir_sub
1430 1.1.1.2 christos ac_abs_top_srcdir=$ac_pwd ;;
1431 1.1.1.2 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1432 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
1433 1.1.1.2 christos ac_top_srcdir=$srcdir
1434 1.1.1.2 christos ac_abs_top_srcdir=$srcdir ;;
1435 1.1.1.2 christos *) # Relative name.
1436 1.1.1.2 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 1.1.1.2 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 1.1.1.2 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 1.1 christos esac
1440 1.1.1.2 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441 1.1 christos
1442 1.1.1.2 christos cd "$ac_dir" || { ac_status=$?; continue; }
1443 1.1.1.2 christos # Check for guested configure.
1444 1.1.1.2 christos if test -f "$ac_srcdir/configure.gnu"; then
1445 1.1.1.2 christos echo &&
1446 1.1.1.2 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 1.1.1.2 christos elif test -f "$ac_srcdir/configure"; then
1448 1.1.1.2 christos echo &&
1449 1.1.1.2 christos $SHELL "$ac_srcdir/configure" --help=recursive
1450 1.1 christos else
1451 1.1.1.2 christos $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 1.1.1.2 christos fi || ac_status=$?
1453 1.1.1.2 christos cd "$ac_pwd" || { ac_status=$?; break; }
1454 1.1 christos done
1455 1.1 christos fi
1456 1.1 christos
1457 1.1.1.2 christos test -n "$ac_init_help" && exit $ac_status
1458 1.1 christos if $ac_init_version; then
1459 1.1 christos cat <<\_ACEOF
1460 1.1.1.2 christos the fast lexical analyser generator configure 2.5.37
1461 1.1.1.2 christos generated by GNU Autoconf 2.65
1462 1.1 christos
1463 1.1.1.2 christos Copyright (C) 2009 Free Software Foundation, Inc.
1464 1.1 christos This configure script is free software; the Free Software Foundation
1465 1.1 christos gives unlimited permission to copy, distribute and modify it.
1466 1.1 christos _ACEOF
1467 1.1.1.2 christos exit
1468 1.1 christos fi
1469 1.1 christos
1470 1.1.1.2 christos ## ------------------------ ##
1471 1.1.1.2 christos ## Autoconf initialization. ##
1472 1.1.1.2 christos ## ------------------------ ##
1473 1.1.1.2 christos
1474 1.1.1.2 christos # ac_fn_c_try_compile LINENO
1475 1.1.1.2 christos # --------------------------
1476 1.1.1.2 christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 1.1.1.2 christos ac_fn_c_try_compile ()
1478 1.1 christos {
1479 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 1.1.1.2 christos rm -f conftest.$ac_objext
1481 1.1.1.2 christos if { { ac_try="$ac_compile"
1482 1.1.1.2 christos case "(($ac_try" in
1483 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1485 1.1.1.2 christos esac
1486 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1488 1.1.1.2 christos (eval "$ac_compile") 2>conftest.err
1489 1.1.1.2 christos ac_status=$?
1490 1.1.1.2 christos if test -s conftest.err; then
1491 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1492 1.1.1.2 christos cat conftest.er1 >&5
1493 1.1.1.2 christos mv -f conftest.er1 conftest.err
1494 1.1.1.2 christos fi
1495 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 1.1.1.2 christos test $ac_status = 0; } && {
1497 1.1.1.2 christos test -z "$ac_c_werror_flag" ||
1498 1.1.1.2 christos test ! -s conftest.err
1499 1.1.1.2 christos } && test -s conftest.$ac_objext; then :
1500 1.1.1.2 christos ac_retval=0
1501 1.1.1.2 christos else
1502 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1503 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1504 1.1.1.2 christos
1505 1.1.1.2 christos ac_retval=1
1506 1.1.1.2 christos fi
1507 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1508 1.1.1.2 christos as_fn_set_status $ac_retval
1509 1.1.1.2 christos
1510 1.1.1.2 christos } # ac_fn_c_try_compile
1511 1.1.1.2 christos
1512 1.1.1.2 christos # ac_fn_c_try_link LINENO
1513 1.1.1.2 christos # -----------------------
1514 1.1.1.2 christos # Try to link conftest.$ac_ext, and return whether this succeeded.
1515 1.1.1.2 christos ac_fn_c_try_link ()
1516 1.1.1.2 christos {
1517 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 1.1.1.2 christos rm -f conftest.$ac_objext conftest$ac_exeext
1519 1.1.1.2 christos if { { ac_try="$ac_link"
1520 1.1.1.2 christos case "(($ac_try" in
1521 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1523 1.1.1.2 christos esac
1524 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1526 1.1.1.2 christos (eval "$ac_link") 2>conftest.err
1527 1.1.1.2 christos ac_status=$?
1528 1.1.1.2 christos if test -s conftest.err; then
1529 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1530 1.1.1.2 christos cat conftest.er1 >&5
1531 1.1.1.2 christos mv -f conftest.er1 conftest.err
1532 1.1.1.2 christos fi
1533 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 1.1.1.2 christos test $ac_status = 0; } && {
1535 1.1.1.2 christos test -z "$ac_c_werror_flag" ||
1536 1.1.1.2 christos test ! -s conftest.err
1537 1.1.1.2 christos } && test -s conftest$ac_exeext && {
1538 1.1.1.2 christos test "$cross_compiling" = yes ||
1539 1.1.1.2 christos $as_test_x conftest$ac_exeext
1540 1.1.1.2 christos }; then :
1541 1.1.1.2 christos ac_retval=0
1542 1.1.1.2 christos else
1543 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1544 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1545 1.1.1.2 christos
1546 1.1.1.2 christos ac_retval=1
1547 1.1.1.2 christos fi
1548 1.1.1.2 christos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1549 1.1.1.2 christos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1550 1.1.1.2 christos # interfere with the next link command; also delete a directory that is
1551 1.1.1.2 christos # left behind by Apple's compiler. We do this before executing the actions.
1552 1.1.1.2 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1553 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 1.1.1.2 christos as_fn_set_status $ac_retval
1555 1.1.1.2 christos
1556 1.1.1.2 christos } # ac_fn_c_try_link
1557 1.1.1.2 christos
1558 1.1.1.2 christos # ac_fn_cxx_try_compile LINENO
1559 1.1.1.2 christos # ----------------------------
1560 1.1.1.2 christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 1.1.1.2 christos ac_fn_cxx_try_compile ()
1562 1.1.1.2 christos {
1563 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 1.1.1.2 christos rm -f conftest.$ac_objext
1565 1.1.1.2 christos if { { ac_try="$ac_compile"
1566 1.1.1.2 christos case "(($ac_try" in
1567 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1569 1.1.1.2 christos esac
1570 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1572 1.1.1.2 christos (eval "$ac_compile") 2>conftest.err
1573 1.1.1.2 christos ac_status=$?
1574 1.1.1.2 christos if test -s conftest.err; then
1575 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1576 1.1.1.2 christos cat conftest.er1 >&5
1577 1.1.1.2 christos mv -f conftest.er1 conftest.err
1578 1.1.1.2 christos fi
1579 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 1.1.1.2 christos test $ac_status = 0; } && {
1581 1.1.1.2 christos test -z "$ac_cxx_werror_flag" ||
1582 1.1.1.2 christos test ! -s conftest.err
1583 1.1.1.2 christos } && test -s conftest.$ac_objext; then :
1584 1.1.1.2 christos ac_retval=0
1585 1.1.1.2 christos else
1586 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1587 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1588 1.1 christos
1589 1.1.1.2 christos ac_retval=1
1590 1.1.1.2 christos fi
1591 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 1.1.1.2 christos as_fn_set_status $ac_retval
1593 1.1 christos
1594 1.1.1.2 christos } # ac_fn_cxx_try_compile
1595 1.1 christos
1596 1.1.1.2 christos # ac_fn_c_try_cpp LINENO
1597 1.1.1.2 christos # ----------------------
1598 1.1.1.2 christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 1.1.1.2 christos ac_fn_c_try_cpp ()
1600 1.1.1.2 christos {
1601 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 1.1.1.2 christos if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 1.1.1.2 christos case "(($ac_try" in
1604 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1606 1.1.1.2 christos esac
1607 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1609 1.1.1.2 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 1.1.1.2 christos ac_status=$?
1611 1.1.1.2 christos if test -s conftest.err; then
1612 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1613 1.1.1.2 christos cat conftest.er1 >&5
1614 1.1.1.2 christos mv -f conftest.er1 conftest.err
1615 1.1.1.2 christos fi
1616 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 1.1.1.2 christos test $ac_status = 0; } >/dev/null && {
1618 1.1.1.2 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 1.1.1.2 christos test ! -s conftest.err
1620 1.1.1.2 christos }; then :
1621 1.1.1.2 christos ac_retval=0
1622 1.1.1.2 christos else
1623 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1624 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1625 1.1.1.2 christos
1626 1.1.1.2 christos ac_retval=1
1627 1.1.1.2 christos fi
1628 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 1.1.1.2 christos as_fn_set_status $ac_retval
1630 1.1.1.2 christos
1631 1.1.1.2 christos } # ac_fn_c_try_cpp
1632 1.1.1.2 christos
1633 1.1.1.2 christos # ac_fn_c_try_run LINENO
1634 1.1.1.2 christos # ----------------------
1635 1.1.1.2 christos # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 1.1.1.2 christos # that executables *can* be run.
1637 1.1.1.2 christos ac_fn_c_try_run ()
1638 1.1.1.2 christos {
1639 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 1.1.1.2 christos if { { ac_try="$ac_link"
1641 1.1.1.2 christos case "(($ac_try" in
1642 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1644 1.1.1.2 christos esac
1645 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1647 1.1.1.2 christos (eval "$ac_link") 2>&5
1648 1.1.1.2 christos ac_status=$?
1649 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 1.1.1.2 christos test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 1.1.1.2 christos { { case "(($ac_try" in
1652 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1654 1.1.1.2 christos esac
1655 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1657 1.1.1.2 christos (eval "$ac_try") 2>&5
1658 1.1.1.2 christos ac_status=$?
1659 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 1.1.1.2 christos test $ac_status = 0; }; }; then :
1661 1.1.1.2 christos ac_retval=0
1662 1.1.1.2 christos else
1663 1.1.1.2 christos $as_echo "$as_me: program exited with status $ac_status" >&5
1664 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1665 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1666 1.1.1.2 christos
1667 1.1.1.2 christos ac_retval=$ac_status
1668 1.1.1.2 christos fi
1669 1.1.1.2 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 1.1.1.2 christos as_fn_set_status $ac_retval
1672 1.1.1.2 christos
1673 1.1.1.2 christos } # ac_fn_c_try_run
1674 1.1.1.2 christos
1675 1.1.1.2 christos # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 1.1.1.2 christos # -------------------------------------------------------
1677 1.1.1.2 christos # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 1.1.1.2 christos # the include files in INCLUDES and setting the cache variable VAR
1679 1.1.1.2 christos # accordingly.
1680 1.1.1.2 christos ac_fn_c_check_header_mongrel ()
1681 1.1.1.2 christos {
1682 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 1.1.1.2 christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1686 1.1.1.2 christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 1.1.1.2 christos $as_echo_n "(cached) " >&6
1688 1.1.1.2 christos fi
1689 1.1.1.2 christos eval ac_res=\$$3
1690 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1692 1.1.1.2 christos else
1693 1.1.1.2 christos # Is the header compilable?
1694 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 1.1.1.2 christos $as_echo_n "checking $2 usability... " >&6; }
1696 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 1.1.1.2 christos /* end confdefs.h. */
1698 1.1.1.2 christos $4
1699 1.1.1.2 christos #include <$2>
1700 1.1.1.2 christos _ACEOF
1701 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1702 1.1.1.2 christos ac_header_compiler=yes
1703 1.1.1.2 christos else
1704 1.1.1.2 christos ac_header_compiler=no
1705 1.1.1.2 christos fi
1706 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 1.1.1.2 christos $as_echo "$ac_header_compiler" >&6; }
1709 1.1.1.2 christos
1710 1.1.1.2 christos # Is the header present?
1711 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 1.1.1.2 christos $as_echo_n "checking $2 presence... " >&6; }
1713 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 1.1.1.2 christos /* end confdefs.h. */
1715 1.1.1.2 christos #include <$2>
1716 1.1.1.2 christos _ACEOF
1717 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
1718 1.1.1.2 christos ac_header_preproc=yes
1719 1.1.1.2 christos else
1720 1.1.1.2 christos ac_header_preproc=no
1721 1.1.1.2 christos fi
1722 1.1.1.2 christos rm -f conftest.err conftest.$ac_ext
1723 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 1.1.1.2 christos $as_echo "$ac_header_preproc" >&6; }
1725 1.1.1.2 christos
1726 1.1.1.2 christos # So? What about this header?
1727 1.1.1.2 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 1.1.1.2 christos yes:no: )
1729 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 1.1.1.2 christos ;;
1734 1.1.1.2 christos no:yes:* )
1735 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 1.1.1.2 christos ( cat <<\_ASBOX
1746 1.1.1.2 christos ## ---------------------------------------------- ##
1747 1.1.1.2 christos ## Report this to flex-help (at] lists.sourceforge.net ##
1748 1.1.1.2 christos ## ---------------------------------------------- ##
1749 1.1.1.2 christos _ASBOX
1750 1.1.1.2 christos ) | sed "s/^/$as_me: WARNING: /" >&2
1751 1.1.1.2 christos ;;
1752 1.1.1.2 christos esac
1753 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1755 1.1.1.2 christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 1.1.1.2 christos $as_echo_n "(cached) " >&6
1757 1.1.1.2 christos else
1758 1.1.1.2 christos eval "$3=\$ac_header_compiler"
1759 1.1.1.2 christos fi
1760 1.1.1.2 christos eval ac_res=\$$3
1761 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1763 1.1.1.2 christos fi
1764 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 1.1.1.2 christos
1766 1.1.1.2 christos } # ac_fn_c_check_header_mongrel
1767 1.1.1.2 christos
1768 1.1.1.2 christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 1.1.1.2 christos # -------------------------------------------------------
1770 1.1.1.2 christos # Tests whether HEADER exists and can be compiled using the include files in
1771 1.1.1.2 christos # INCLUDES, setting the cache variable VAR accordingly.
1772 1.1.1.2 christos ac_fn_c_check_header_compile ()
1773 1.1.1.2 christos {
1774 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1777 1.1.1.2 christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 1.1.1.2 christos $as_echo_n "(cached) " >&6
1779 1.1.1.2 christos else
1780 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 1.1.1.2 christos /* end confdefs.h. */
1782 1.1.1.2 christos $4
1783 1.1.1.2 christos #include <$2>
1784 1.1.1.2 christos _ACEOF
1785 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1786 1.1.1.2 christos eval "$3=yes"
1787 1.1.1.2 christos else
1788 1.1.1.2 christos eval "$3=no"
1789 1.1.1.2 christos fi
1790 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 1.1.1.2 christos fi
1792 1.1.1.2 christos eval ac_res=\$$3
1793 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1795 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 1.1.1.2 christos
1797 1.1.1.2 christos } # ac_fn_c_check_header_compile
1798 1.1.1.2 christos
1799 1.1.1.2 christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1800 1.1.1.2 christos # -------------------------------------------
1801 1.1.1.2 christos # Tests whether TYPE exists after having included INCLUDES, setting cache
1802 1.1.1.2 christos # variable VAR accordingly.
1803 1.1.1.2 christos ac_fn_c_check_type ()
1804 1.1.1.2 christos {
1805 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1808 1.1.1.2 christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 1.1.1.2 christos $as_echo_n "(cached) " >&6
1810 1.1.1.2 christos else
1811 1.1.1.2 christos eval "$3=no"
1812 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 1.1.1.2 christos /* end confdefs.h. */
1814 1.1.1.2 christos $4
1815 1.1.1.2 christos int
1816 1.1.1.2 christos main ()
1817 1.1.1.2 christos {
1818 1.1.1.2 christos if (sizeof ($2))
1819 1.1.1.2 christos return 0;
1820 1.1.1.2 christos ;
1821 1.1.1.2 christos return 0;
1822 1.1.1.2 christos }
1823 1.1.1.2 christos _ACEOF
1824 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1825 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 1.1.1.2 christos /* end confdefs.h. */
1827 1.1.1.2 christos $4
1828 1.1.1.2 christos int
1829 1.1.1.2 christos main ()
1830 1.1.1.2 christos {
1831 1.1.1.2 christos if (sizeof (($2)))
1832 1.1.1.2 christos return 0;
1833 1.1.1.2 christos ;
1834 1.1.1.2 christos return 0;
1835 1.1.1.2 christos }
1836 1.1.1.2 christos _ACEOF
1837 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1838 1.1.1.2 christos
1839 1.1.1.2 christos else
1840 1.1.1.2 christos eval "$3=yes"
1841 1.1.1.2 christos fi
1842 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 1.1.1.2 christos fi
1844 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 1.1.1.2 christos fi
1846 1.1.1.2 christos eval ac_res=\$$3
1847 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1849 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 1.1.1.2 christos
1851 1.1.1.2 christos } # ac_fn_c_check_type
1852 1.1.1.2 christos
1853 1.1.1.2 christos # ac_fn_c_check_func LINENO FUNC VAR
1854 1.1.1.2 christos # ----------------------------------
1855 1.1.1.2 christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 1.1.1.2 christos ac_fn_c_check_func ()
1857 1.1.1.2 christos {
1858 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1861 1.1.1.2 christos if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 1.1.1.2 christos $as_echo_n "(cached) " >&6
1863 1.1.1.2 christos else
1864 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 1.1.1.2 christos /* end confdefs.h. */
1866 1.1.1.2 christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 1.1.1.2 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 1.1.1.2 christos #define $2 innocuous_$2
1869 1.1.1.2 christos
1870 1.1.1.2 christos /* System header to define __stub macros and hopefully few prototypes,
1871 1.1.1.2 christos which can conflict with char $2 (); below.
1872 1.1.1.2 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 1.1.1.2 christos <limits.h> exists even on freestanding compilers. */
1874 1.1.1.2 christos
1875 1.1.1.2 christos #ifdef __STDC__
1876 1.1.1.2 christos # include <limits.h>
1877 1.1.1.2 christos #else
1878 1.1.1.2 christos # include <assert.h>
1879 1.1.1.2 christos #endif
1880 1.1.1.2 christos
1881 1.1.1.2 christos #undef $2
1882 1.1.1.2 christos
1883 1.1.1.2 christos /* Override any GCC internal prototype to avoid an error.
1884 1.1.1.2 christos Use char because int might match the return type of a GCC
1885 1.1.1.2 christos builtin and then its argument prototype would still apply. */
1886 1.1.1.2 christos #ifdef __cplusplus
1887 1.1.1.2 christos extern "C"
1888 1.1.1.2 christos #endif
1889 1.1.1.2 christos char $2 ();
1890 1.1.1.2 christos /* The GNU C library defines this for functions which it implements
1891 1.1.1.2 christos to always fail with ENOSYS. Some functions are actually named
1892 1.1.1.2 christos something starting with __ and the normal name is an alias. */
1893 1.1.1.2 christos #if defined __stub_$2 || defined __stub___$2
1894 1.1.1.2 christos choke me
1895 1.1.1.2 christos #endif
1896 1.1.1.2 christos
1897 1.1.1.2 christos int
1898 1.1.1.2 christos main ()
1899 1.1.1.2 christos {
1900 1.1.1.2 christos return $2 ();
1901 1.1.1.2 christos ;
1902 1.1.1.2 christos return 0;
1903 1.1.1.2 christos }
1904 1.1.1.2 christos _ACEOF
1905 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
1906 1.1.1.2 christos eval "$3=yes"
1907 1.1.1.2 christos else
1908 1.1.1.2 christos eval "$3=no"
1909 1.1.1.2 christos fi
1910 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
1911 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
1912 1.1.1.2 christos fi
1913 1.1.1.2 christos eval ac_res=\$$3
1914 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1916 1.1.1.2 christos eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 1.1.1.2 christos
1918 1.1.1.2 christos } # ac_fn_c_check_func
1919 1.1.1.2 christos cat >config.log <<_ACEOF
1920 1.1.1.2 christos This file contains any messages produced by compilers while
1921 1.1.1.2 christos running configure, to aid debugging if configure makes a mistake.
1922 1.1.1.2 christos
1923 1.1.1.2 christos It was created by the fast lexical analyser generator $as_me 2.5.37, which was
1924 1.1.1.2 christos generated by GNU Autoconf 2.65. Invocation command line was
1925 1.1.1.2 christos
1926 1.1.1.2 christos $ $0 $@
1927 1.1.1.2 christos
1928 1.1.1.2 christos _ACEOF
1929 1.1.1.2 christos exec 5>>config.log
1930 1.1.1.2 christos {
1931 1.1.1.2 christos cat <<_ASUNAME
1932 1.1.1.2 christos ## --------- ##
1933 1.1.1.2 christos ## Platform. ##
1934 1.1.1.2 christos ## --------- ##
1935 1.1.1.2 christos
1936 1.1.1.2 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 1.1.1.2 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 1.1.1.2 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 1.1.1.2 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 1.1.1.2 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941 1.1.1.2 christos
1942 1.1.1.2 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 1.1.1.2 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944 1.1.1.2 christos
1945 1.1.1.2 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 1.1.1.2 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 1.1.1.2 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 1.1.1.2 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 1.1.1.2 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 1.1.1.2 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 1.1.1.2 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952 1.1.1.2 christos
1953 1.1.1.2 christos _ASUNAME
1954 1.1.1.2 christos
1955 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 1.1.1.2 christos for as_dir in $PATH
1957 1.1.1.2 christos do
1958 1.1.1.2 christos IFS=$as_save_IFS
1959 1.1.1.2 christos test -z "$as_dir" && as_dir=.
1960 1.1.1.2 christos $as_echo "PATH: $as_dir"
1961 1.1.1.2 christos done
1962 1.1.1.2 christos IFS=$as_save_IFS
1963 1.1.1.2 christos
1964 1.1.1.2 christos } >&5
1965 1.1 christos
1966 1.1 christos cat >&5 <<_ACEOF
1967 1.1 christos
1968 1.1 christos
1969 1.1 christos ## ----------- ##
1970 1.1 christos ## Core tests. ##
1971 1.1 christos ## ----------- ##
1972 1.1 christos
1973 1.1 christos _ACEOF
1974 1.1 christos
1975 1.1 christos
1976 1.1 christos # Keep a trace of the command line.
1977 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
1978 1.1 christos # Strip out --silent because we don't want to record it for future runs.
1979 1.1 christos # Also quote any args containing shell meta-characters.
1980 1.1 christos # Make two passes to allow for proper duplicate-argument suppression.
1981 1.1 christos ac_configure_args=
1982 1.1 christos ac_configure_args0=
1983 1.1 christos ac_configure_args1=
1984 1.1 christos ac_must_keep_next=false
1985 1.1 christos for ac_pass in 1 2
1986 1.1 christos do
1987 1.1 christos for ac_arg
1988 1.1 christos do
1989 1.1 christos case $ac_arg in
1990 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1993 1.1 christos continue ;;
1994 1.1.1.2 christos *\'*)
1995 1.1.1.2 christos ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 1.1 christos esac
1997 1.1 christos case $ac_pass in
1998 1.1.1.2 christos 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 1.1 christos 2)
2000 1.1.1.2 christos as_fn_append ac_configure_args1 " '$ac_arg'"
2001 1.1 christos if test $ac_must_keep_next = true; then
2002 1.1 christos ac_must_keep_next=false # Got value, back to normal.
2003 1.1 christos else
2004 1.1 christos case $ac_arg in
2005 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \
2006 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x)
2009 1.1 christos case "$ac_configure_args0 " in
2010 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 1.1 christos esac
2012 1.1 christos ;;
2013 1.1 christos -* ) ac_must_keep_next=true ;;
2014 1.1 christos esac
2015 1.1 christos fi
2016 1.1.1.2 christos as_fn_append ac_configure_args " '$ac_arg'"
2017 1.1 christos ;;
2018 1.1 christos esac
2019 1.1 christos done
2020 1.1 christos done
2021 1.1.1.2 christos { ac_configure_args0=; unset ac_configure_args0;}
2022 1.1.1.2 christos { ac_configure_args1=; unset ac_configure_args1;}
2023 1.1 christos
2024 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
2025 1.1 christos # config.log. We remove comments because anyway the quotes in there
2026 1.1 christos # would cause problems or look ugly.
2027 1.1.1.2 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 1.1.1.2 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 1.1 christos trap 'exit_status=$?
2030 1.1 christos # Save into config.log some information that might help in debugging.
2031 1.1 christos {
2032 1.1 christos echo
2033 1.1 christos
2034 1.1 christos cat <<\_ASBOX
2035 1.1 christos ## ---------------- ##
2036 1.1 christos ## Cache variables. ##
2037 1.1 christos ## ---------------- ##
2038 1.1 christos _ASBOX
2039 1.1 christos echo
2040 1.1 christos # The following way of writing the cache mishandles newlines in values,
2041 1.1.1.2 christos (
2042 1.1.1.2 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 1.1.1.2 christos eval ac_val=\$$ac_var
2044 1.1.1.2 christos case $ac_val in #(
2045 1.1.1.2 christos *${as_nl}*)
2046 1.1.1.2 christos case $ac_var in #(
2047 1.1.1.2 christos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 1.1.1.2 christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 1.1.1.2 christos esac
2050 1.1.1.2 christos case $ac_var in #(
2051 1.1.1.2 christos _ | IFS | as_nl) ;; #(
2052 1.1.1.2 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 1.1.1.2 christos *) { eval $ac_var=; unset $ac_var;} ;;
2054 1.1.1.2 christos esac ;;
2055 1.1.1.2 christos esac
2056 1.1.1.2 christos done
2057 1.1 christos (set) 2>&1 |
2058 1.1.1.2 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 1.1.1.2 christos *${as_nl}ac_space=\ *)
2060 1.1 christos sed -n \
2061 1.1.1.2 christos "s/'\''/'\''\\\\'\'''\''/g;
2062 1.1.1.2 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 1.1.1.2 christos ;; #(
2064 1.1 christos *)
2065 1.1.1.2 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 1.1 christos ;;
2067 1.1.1.2 christos esac |
2068 1.1.1.2 christos sort
2069 1.1.1.2 christos )
2070 1.1 christos echo
2071 1.1 christos
2072 1.1 christos cat <<\_ASBOX
2073 1.1 christos ## ----------------- ##
2074 1.1 christos ## Output variables. ##
2075 1.1 christos ## ----------------- ##
2076 1.1 christos _ASBOX
2077 1.1 christos echo
2078 1.1 christos for ac_var in $ac_subst_vars
2079 1.1 christos do
2080 1.1.1.2 christos eval ac_val=\$$ac_var
2081 1.1.1.2 christos case $ac_val in
2082 1.1.1.2 christos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 1.1.1.2 christos esac
2084 1.1.1.2 christos $as_echo "$ac_var='\''$ac_val'\''"
2085 1.1 christos done | sort
2086 1.1 christos echo
2087 1.1 christos
2088 1.1 christos if test -n "$ac_subst_files"; then
2089 1.1 christos cat <<\_ASBOX
2090 1.1.1.2 christos ## ------------------- ##
2091 1.1.1.2 christos ## File substitutions. ##
2092 1.1.1.2 christos ## ------------------- ##
2093 1.1 christos _ASBOX
2094 1.1 christos echo
2095 1.1 christos for ac_var in $ac_subst_files
2096 1.1 christos do
2097 1.1.1.2 christos eval ac_val=\$$ac_var
2098 1.1.1.2 christos case $ac_val in
2099 1.1.1.2 christos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 1.1.1.2 christos esac
2101 1.1.1.2 christos $as_echo "$ac_var='\''$ac_val'\''"
2102 1.1 christos done | sort
2103 1.1 christos echo
2104 1.1 christos fi
2105 1.1 christos
2106 1.1 christos if test -s confdefs.h; then
2107 1.1 christos cat <<\_ASBOX
2108 1.1 christos ## ----------- ##
2109 1.1 christos ## confdefs.h. ##
2110 1.1 christos ## ----------- ##
2111 1.1 christos _ASBOX
2112 1.1 christos echo
2113 1.1.1.2 christos cat confdefs.h
2114 1.1 christos echo
2115 1.1 christos fi
2116 1.1 christos test "$ac_signal" != 0 &&
2117 1.1.1.2 christos $as_echo "$as_me: caught signal $ac_signal"
2118 1.1.1.2 christos $as_echo "$as_me: exit $exit_status"
2119 1.1 christos } >&5
2120 1.1.1.2 christos rm -f core *.core core.conftest.* &&
2121 1.1.1.2 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 1.1 christos exit $exit_status
2123 1.1.1.2 christos ' 0
2124 1.1 christos for ac_signal in 1 2 13 15; do
2125 1.1.1.2 christos trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 1.1 christos done
2127 1.1 christos ac_signal=0
2128 1.1 christos
2129 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 1.1.1.2 christos rm -f -r conftest* confdefs.h
2131 1.1.1.2 christos
2132 1.1.1.2 christos $as_echo "/* confdefs.h */" > confdefs.h
2133 1.1 christos
2134 1.1 christos # Predefined preprocessor variables.
2135 1.1 christos
2136 1.1 christos cat >>confdefs.h <<_ACEOF
2137 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME"
2138 1.1 christos _ACEOF
2139 1.1 christos
2140 1.1 christos cat >>confdefs.h <<_ACEOF
2141 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 1.1 christos _ACEOF
2143 1.1 christos
2144 1.1 christos cat >>confdefs.h <<_ACEOF
2145 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 1.1 christos _ACEOF
2147 1.1 christos
2148 1.1 christos cat >>confdefs.h <<_ACEOF
2149 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING"
2150 1.1 christos _ACEOF
2151 1.1 christos
2152 1.1 christos cat >>confdefs.h <<_ACEOF
2153 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 1.1 christos _ACEOF
2155 1.1 christos
2156 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
2157 1.1.1.2 christos #define PACKAGE_URL "$PACKAGE_URL"
2158 1.1.1.2 christos _ACEOF
2159 1.1.1.2 christos
2160 1.1 christos
2161 1.1 christos # Let the site file select an alternate cache file if it wants to.
2162 1.1.1.2 christos # Prefer an explicitly selected file to automatically selected ones.
2163 1.1.1.2 christos ac_site_file1=NONE
2164 1.1.1.2 christos ac_site_file2=NONE
2165 1.1.1.2 christos if test -n "$CONFIG_SITE"; then
2166 1.1.1.2 christos ac_site_file1=$CONFIG_SITE
2167 1.1.1.2 christos elif test "x$prefix" != xNONE; then
2168 1.1.1.2 christos ac_site_file1=$prefix/share/config.site
2169 1.1.1.2 christos ac_site_file2=$prefix/etc/config.site
2170 1.1.1.2 christos else
2171 1.1.1.2 christos ac_site_file1=$ac_default_prefix/share/config.site
2172 1.1.1.2 christos ac_site_file2=$ac_default_prefix/etc/config.site
2173 1.1.1.2 christos fi
2174 1.1.1.2 christos for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175 1.1.1.2 christos do
2176 1.1.1.2 christos test "x$ac_site_file" = xNONE && continue
2177 1.1.1.2 christos if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 1.1.1.2 christos $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 1.1 christos sed 's/^/| /' "$ac_site_file" >&5
2181 1.1 christos . "$ac_site_file"
2182 1.1 christos fi
2183 1.1 christos done
2184 1.1 christos
2185 1.1 christos if test -r "$cache_file"; then
2186 1.1.1.2 christos # Some versions of bash will fail to source /dev/null (special files
2187 1.1.1.2 christos # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2188 1.1.1.2 christos if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 1.1.1.2 christos $as_echo "$as_me: loading cache $cache_file" >&6;}
2191 1.1 christos case $cache_file in
2192 1.1.1.2 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 1.1.1.2 christos *) . "./$cache_file";;
2194 1.1 christos esac
2195 1.1 christos fi
2196 1.1 christos else
2197 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 1.1.1.2 christos $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 1.1 christos >$cache_file
2200 1.1 christos fi
2201 1.1 christos
2202 1.1 christos # Check that the precious variables saved in the cache have kept the same
2203 1.1 christos # value.
2204 1.1 christos ac_cache_corrupted=false
2205 1.1.1.2 christos for ac_var in $ac_precious_vars; do
2206 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
2208 1.1.1.2 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 1.1.1.2 christos eval ac_new_val=\$ac_env_${ac_var}_value
2210 1.1 christos case $ac_old_set,$ac_new_set in
2211 1.1 christos set,)
2212 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 1.1.1.2 christos $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 1.1 christos ac_cache_corrupted=: ;;
2215 1.1 christos ,set)
2216 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 1.1.1.2 christos $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218 1.1 christos ac_cache_corrupted=: ;;
2219 1.1 christos ,);;
2220 1.1 christos *)
2221 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
2222 1.1.1.2 christos # differences in whitespace do not lead to failure.
2223 1.1.1.2 christos ac_old_val_w=`echo x $ac_old_val`
2224 1.1.1.2 christos ac_new_val_w=`echo x $ac_new_val`
2225 1.1.1.2 christos if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 1.1.1.2 christos $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 1.1.1.2 christos ac_cache_corrupted=:
2229 1.1.1.2 christos else
2230 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 1.1.1.2 christos $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 1.1.1.2 christos eval $ac_var=\$ac_old_val
2233 1.1.1.2 christos fi
2234 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 1.1.1.2 christos $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 1.1.1.2 christos $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2238 1.1 christos fi;;
2239 1.1 christos esac
2240 1.1 christos # Pass precious variables to config.status.
2241 1.1 christos if test "$ac_new_set" = set; then
2242 1.1 christos case $ac_new_val in
2243 1.1.1.2 christos *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;;
2245 1.1 christos esac
2246 1.1 christos case " $ac_configure_args " in
2247 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 1.1.1.2 christos *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 1.1 christos esac
2250 1.1 christos fi
2251 1.1 christos done
2252 1.1 christos if $ac_cache_corrupted; then
2253 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 1.1.1.2 christos $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 1.1.1.2 christos as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2258 1.1.1.2 christos fi
2259 1.1.1.2 christos ## -------------------- ##
2260 1.1.1.2 christos ## Main body of script. ##
2261 1.1.1.2 christos ## -------------------- ##
2262 1.1 christos
2263 1.1 christos ac_ext=c
2264 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2265 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 1.1 christos
2269 1.1 christos
2270 1.1 christos
2271 1.1.1.2 christos am__api_version='1.11'
2272 1.1 christos
2273 1.1 christos ac_aux_dir=
2274 1.1.1.2 christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 1.1.1.2 christos for ac_t in install-sh install.sh shtool; do
2276 1.1.1.2 christos if test -f "$ac_dir/$ac_t"; then
2277 1.1.1.2 christos ac_aux_dir=$ac_dir
2278 1.1.1.2 christos ac_install_sh="$ac_aux_dir/$ac_t -c"
2279 1.1.1.2 christos break 2
2280 1.1.1.2 christos fi
2281 1.1.1.2 christos done
2282 1.1 christos done
2283 1.1 christos if test -z "$ac_aux_dir"; then
2284 1.1.1.2 christos as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2285 1.1.1.2 christos fi
2286 1.1.1.2 christos
2287 1.1.1.2 christos # These three variables are undocumented and unsupported,
2288 1.1.1.2 christos # and are intended to be withdrawn in a future Autoconf release.
2289 1.1.1.2 christos # They can cause serious problems if a builder's source tree is in a directory
2290 1.1.1.2 christos # whose full name contains unusual characters.
2291 1.1.1.2 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2292 1.1.1.2 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2293 1.1.1.2 christos ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294 1.1.1.2 christos
2295 1.1 christos
2296 1.1 christos # Find a good install program. We prefer a C program (faster),
2297 1.1 christos # so one script is as good as another. But avoid the broken or
2298 1.1 christos # incompatible versions:
2299 1.1 christos # SysV /etc/install, /usr/sbin/install
2300 1.1 christos # SunOS /usr/etc/install
2301 1.1 christos # IRIX /sbin/install
2302 1.1 christos # AIX /bin/install
2303 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
2304 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2305 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2306 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2307 1.1 christos # OS/2's system install, which has a completely different semantic
2308 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
2309 1.1.1.2 christos # Reject install programs that cannot install multiple files.
2310 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2311 1.1.1.2 christos $as_echo_n "checking for a BSD-compatible install... " >&6; }
2312 1.1 christos if test -z "$INSTALL"; then
2313 1.1.1.2 christos if test "${ac_cv_path_install+set}" = set; then :
2314 1.1.1.2 christos $as_echo_n "(cached) " >&6
2315 1.1 christos else
2316 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 1.1 christos for as_dir in $PATH
2318 1.1 christos do
2319 1.1 christos IFS=$as_save_IFS
2320 1.1 christos test -z "$as_dir" && as_dir=.
2321 1.1.1.2 christos # Account for people who put trailing slashes in PATH elements.
2322 1.1.1.2 christos case $as_dir/ in #((
2323 1.1.1.2 christos ./ | .// | /[cC]/* | \
2324 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2325 1.1.1.2 christos ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2326 1.1 christos /usr/ucb/* ) ;;
2327 1.1 christos *)
2328 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
2329 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
2330 1.1 christos # by default.
2331 1.1 christos for ac_prog in ginstall scoinst install; do
2332 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2333 1.1.1.2 christos if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2334 1.1 christos if test $ac_prog = install &&
2335 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 1.1 christos # AIX install. It has an incompatible calling convention.
2337 1.1 christos :
2338 1.1 christos elif test $ac_prog = install &&
2339 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2340 1.1 christos # program-specific install script used by HP pwplus--don't use.
2341 1.1 christos :
2342 1.1 christos else
2343 1.1.1.2 christos rm -rf conftest.one conftest.two conftest.dir
2344 1.1.1.2 christos echo one > conftest.one
2345 1.1.1.2 christos echo two > conftest.two
2346 1.1.1.2 christos mkdir conftest.dir
2347 1.1.1.2 christos if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2348 1.1.1.2 christos test -s conftest.one && test -s conftest.two &&
2349 1.1.1.2 christos test -s conftest.dir/conftest.one &&
2350 1.1.1.2 christos test -s conftest.dir/conftest.two
2351 1.1.1.2 christos then
2352 1.1.1.2 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2353 1.1.1.2 christos break 3
2354 1.1.1.2 christos fi
2355 1.1 christos fi
2356 1.1 christos fi
2357 1.1 christos done
2358 1.1 christos done
2359 1.1 christos ;;
2360 1.1 christos esac
2361 1.1 christos
2362 1.1.1.2 christos done
2363 1.1.1.2 christos IFS=$as_save_IFS
2364 1.1.1.2 christos
2365 1.1.1.2 christos rm -rf conftest.one conftest.two conftest.dir
2366 1.1 christos
2367 1.1 christos fi
2368 1.1 christos if test "${ac_cv_path_install+set}" = set; then
2369 1.1 christos INSTALL=$ac_cv_path_install
2370 1.1 christos else
2371 1.1.1.2 christos # As a last resort, use the slow shell script. Don't cache a
2372 1.1.1.2 christos # value for INSTALL within a source directory, because that will
2373 1.1 christos # break other packages using the cache if that directory is
2374 1.1.1.2 christos # removed, or if the value is a relative name.
2375 1.1 christos INSTALL=$ac_install_sh
2376 1.1 christos fi
2377 1.1 christos fi
2378 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2379 1.1.1.2 christos $as_echo "$INSTALL" >&6; }
2380 1.1 christos
2381 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2382 1.1 christos # It thinks the first close brace ends the variable substitution.
2383 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2384 1.1 christos
2385 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2386 1.1 christos
2387 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2388 1.1 christos
2389 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2390 1.1.1.2 christos $as_echo_n "checking whether build environment is sane... " >&6; }
2391 1.1 christos # Just in case
2392 1.1 christos sleep 1
2393 1.1 christos echo timestamp > conftest.file
2394 1.1.1.2 christos # Reject unsafe characters in $srcdir or the absolute working directory
2395 1.1.1.2 christos # name. Accept space and tab only in the latter.
2396 1.1.1.2 christos am_lf='
2397 1.1.1.2 christos '
2398 1.1.1.2 christos case `pwd` in
2399 1.1.1.2 christos *[\\\"\#\$\&\'\`$am_lf]*)
2400 1.1.1.2 christos as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2401 1.1.1.2 christos esac
2402 1.1.1.2 christos case $srcdir in
2403 1.1.1.2 christos *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2404 1.1.1.2 christos as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2405 1.1.1.2 christos esac
2406 1.1.1.2 christos
2407 1.1 christos # Do `set' in a subshell so we don't clobber the current shell's
2408 1.1 christos # arguments. Must try -L first in case configure is actually a
2409 1.1 christos # symlink; some systems play weird games with the mod time of symlinks
2410 1.1 christos # (eg FreeBSD returns the mod time of the symlink's containing
2411 1.1 christos # directory).
2412 1.1 christos if (
2413 1.1.1.2 christos set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2414 1.1 christos if test "$*" = "X"; then
2415 1.1 christos # -L didn't work.
2416 1.1.1.2 christos set X `ls -t "$srcdir/configure" conftest.file`
2417 1.1 christos fi
2418 1.1 christos rm -f conftest.file
2419 1.1 christos if test "$*" != "X $srcdir/configure conftest.file" \
2420 1.1 christos && test "$*" != "X conftest.file $srcdir/configure"; then
2421 1.1 christos
2422 1.1 christos # If neither matched, then we have a broken ls. This can happen
2423 1.1 christos # if, for instance, CONFIG_SHELL is bash and it inherits a
2424 1.1 christos # broken ls alias from the environment. This has actually
2425 1.1 christos # happened. Such a system could not be considered "sane".
2426 1.1.1.2 christos as_fn_error "ls -t appears to fail. Make sure there is not a broken
2427 1.1.1.2 christos alias in your environment" "$LINENO" 5
2428 1.1 christos fi
2429 1.1 christos
2430 1.1 christos test "$2" = conftest.file
2431 1.1 christos )
2432 1.1 christos then
2433 1.1 christos # Ok.
2434 1.1 christos :
2435 1.1 christos else
2436 1.1.1.2 christos as_fn_error "newly created file is older than distributed files!
2437 1.1.1.2 christos Check your system clock" "$LINENO" 5
2438 1.1 christos fi
2439 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440 1.1.1.2 christos $as_echo "yes" >&6; }
2441 1.1 christos test "$program_prefix" != NONE &&
2442 1.1.1.2 christos program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 1.1 christos # Use a double $ so make ignores it.
2444 1.1 christos test "$program_suffix" != NONE &&
2445 1.1.1.2 christos program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 1.1.1.2 christos # Double any \ or $.
2447 1.1 christos # By default was `s,x,x', remove it if useless.
2448 1.1.1.2 christos ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 1.1.1.2 christos program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2450 1.1 christos
2451 1.1 christos # expand $ac_aux_dir to an absolute path
2452 1.1 christos am_aux_dir=`cd $ac_aux_dir && pwd`
2453 1.1 christos
2454 1.1.1.2 christos if test x"${MISSING+set}" != xset; then
2455 1.1.1.2 christos case $am_aux_dir in
2456 1.1.1.2 christos *\ * | *\ *)
2457 1.1.1.2 christos MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2458 1.1.1.2 christos *)
2459 1.1.1.2 christos MISSING="\${SHELL} $am_aux_dir/missing" ;;
2460 1.1.1.2 christos esac
2461 1.1.1.2 christos fi
2462 1.1 christos # Use eval to expand $SHELL
2463 1.1 christos if eval "$MISSING --run true"; then
2464 1.1 christos am_missing_run="$MISSING --run "
2465 1.1 christos else
2466 1.1 christos am_missing_run=
2467 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2468 1.1.1.2 christos $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2469 1.1 christos fi
2470 1.1 christos
2471 1.1.1.2 christos if test x"${install_sh}" != xset; then
2472 1.1.1.2 christos case $am_aux_dir in
2473 1.1.1.2 christos *\ * | *\ *)
2474 1.1.1.2 christos install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2475 1.1.1.2 christos *)
2476 1.1.1.2 christos install_sh="\${SHELL} $am_aux_dir/install-sh"
2477 1.1.1.2 christos esac
2478 1.1 christos fi
2479 1.1 christos
2480 1.1.1.2 christos # Installed binaries are usually stripped using `strip' when the user
2481 1.1.1.2 christos # run `make install-strip'. However `strip' might not be the right
2482 1.1.1.2 christos # tool to use in cross-compilation environments, therefore Automake
2483 1.1.1.2 christos # will honor the `STRIP' environment variable to overrule this program.
2484 1.1.1.2 christos if test "$cross_compiling" != no; then
2485 1.1.1.2 christos if test -n "$ac_tool_prefix"; then
2486 1.1.1.2 christos # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487 1.1.1.2 christos set dummy ${ac_tool_prefix}strip; ac_word=$2
2488 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2490 1.1.1.2 christos if test "${ac_cv_prog_STRIP+set}" = set; then :
2491 1.1.1.2 christos $as_echo_n "(cached) " >&6
2492 1.1 christos else
2493 1.1.1.2 christos if test -n "$STRIP"; then
2494 1.1.1.2 christos ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495 1.1 christos else
2496 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 1.1 christos for as_dir in $PATH
2498 1.1 christos do
2499 1.1 christos IFS=$as_save_IFS
2500 1.1 christos test -z "$as_dir" && as_dir=.
2501 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2502 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 1.1.1.2 christos ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 1.1 christos break 2
2506 1.1 christos fi
2507 1.1 christos done
2508 1.1.1.2 christos done
2509 1.1.1.2 christos IFS=$as_save_IFS
2510 1.1 christos
2511 1.1 christos fi
2512 1.1 christos fi
2513 1.1.1.2 christos STRIP=$ac_cv_prog_STRIP
2514 1.1.1.2 christos if test -n "$STRIP"; then
2515 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2516 1.1.1.2 christos $as_echo "$STRIP" >&6; }
2517 1.1 christos else
2518 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 1.1.1.2 christos $as_echo "no" >&6; }
2520 1.1 christos fi
2521 1.1 christos
2522 1.1 christos
2523 1.1 christos fi
2524 1.1.1.2 christos if test -z "$ac_cv_prog_STRIP"; then
2525 1.1.1.2 christos ac_ct_STRIP=$STRIP
2526 1.1.1.2 christos # Extract the first word of "strip", so it can be a program name with args.
2527 1.1.1.2 christos set dummy strip; ac_word=$2
2528 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2530 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2531 1.1.1.2 christos $as_echo_n "(cached) " >&6
2532 1.1.1.2 christos else
2533 1.1.1.2 christos if test -n "$ac_ct_STRIP"; then
2534 1.1.1.2 christos ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535 1.1.1.2 christos else
2536 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 1.1.1.2 christos for as_dir in $PATH
2538 1.1.1.2 christos do
2539 1.1.1.2 christos IFS=$as_save_IFS
2540 1.1.1.2 christos test -z "$as_dir" && as_dir=.
2541 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2542 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 1.1.1.2 christos ac_cv_prog_ac_ct_STRIP="strip"
2544 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 1.1.1.2 christos break 2
2546 1.1.1.2 christos fi
2547 1.1.1.2 christos done
2548 1.1.1.2 christos done
2549 1.1.1.2 christos IFS=$as_save_IFS
2550 1.1.1.2 christos
2551 1.1.1.2 christos fi
2552 1.1.1.2 christos fi
2553 1.1.1.2 christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554 1.1.1.2 christos if test -n "$ac_ct_STRIP"; then
2555 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2556 1.1.1.2 christos $as_echo "$ac_ct_STRIP" >&6; }
2557 1.1.1.2 christos else
2558 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 1.1.1.2 christos $as_echo "no" >&6; }
2560 1.1.1.2 christos fi
2561 1.1.1.2 christos
2562 1.1.1.2 christos if test "x$ac_ct_STRIP" = x; then
2563 1.1.1.2 christos STRIP=":"
2564 1.1.1.2 christos else
2565 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
2566 1.1.1.2 christos yes:)
2567 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569 1.1.1.2 christos ac_tool_warned=yes ;;
2570 1.1.1.2 christos esac
2571 1.1.1.2 christos STRIP=$ac_ct_STRIP
2572 1.1.1.2 christos fi
2573 1.1.1.2 christos else
2574 1.1.1.2 christos STRIP="$ac_cv_prog_STRIP"
2575 1.1.1.2 christos fi
2576 1.1.1.2 christos
2577 1.1.1.2 christos fi
2578 1.1.1.2 christos INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579 1.1.1.2 christos
2580 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2581 1.1.1.2 christos $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2582 1.1.1.2 christos if test -z "$MKDIR_P"; then
2583 1.1.1.2 christos if test "${ac_cv_path_mkdir+set}" = set; then :
2584 1.1.1.2 christos $as_echo_n "(cached) " >&6
2585 1.1.1.2 christos else
2586 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 1.1.1.2 christos for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2588 1.1.1.2 christos do
2589 1.1.1.2 christos IFS=$as_save_IFS
2590 1.1.1.2 christos test -z "$as_dir" && as_dir=.
2591 1.1.1.2 christos for ac_prog in mkdir gmkdir; do
2592 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2593 1.1.1.2 christos { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2594 1.1.1.2 christos case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2595 1.1.1.2 christos 'mkdir (GNU coreutils) '* | \
2596 1.1.1.2 christos 'mkdir (coreutils) '* | \
2597 1.1.1.2 christos 'mkdir (fileutils) '4.1*)
2598 1.1.1.2 christos ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 1.1.1.2 christos break 3;;
2600 1.1.1.2 christos esac
2601 1.1.1.2 christos done
2602 1.1.1.2 christos done
2603 1.1.1.2 christos done
2604 1.1.1.2 christos IFS=$as_save_IFS
2605 1.1.1.2 christos
2606 1.1.1.2 christos fi
2607 1.1.1.2 christos
2608 1.1.1.2 christos test -d ./--version && rmdir ./--version
2609 1.1.1.2 christos if test "${ac_cv_path_mkdir+set}" = set; then
2610 1.1.1.2 christos MKDIR_P="$ac_cv_path_mkdir -p"
2611 1.1.1.2 christos else
2612 1.1.1.2 christos # As a last resort, use the slow shell script. Don't cache a
2613 1.1.1.2 christos # value for MKDIR_P within a source directory, because that will
2614 1.1.1.2 christos # break other packages using the cache if that directory is
2615 1.1.1.2 christos # removed, or if the value is a relative name.
2616 1.1.1.2 christos MKDIR_P="$ac_install_sh -d"
2617 1.1.1.2 christos fi
2618 1.1.1.2 christos fi
2619 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2620 1.1.1.2 christos $as_echo "$MKDIR_P" >&6; }
2621 1.1.1.2 christos
2622 1.1.1.2 christos mkdir_p="$MKDIR_P"
2623 1.1.1.2 christos case $mkdir_p in
2624 1.1.1.2 christos [\\/$]* | ?:[\\/]*) ;;
2625 1.1.1.2 christos */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2626 1.1.1.2 christos esac
2627 1.1.1.2 christos
2628 1.1.1.2 christos for ac_prog in gawk mawk nawk awk
2629 1.1.1.2 christos do
2630 1.1.1.2 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 1.1.1.2 christos set dummy $ac_prog; ac_word=$2
2632 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2634 1.1.1.2 christos if test "${ac_cv_prog_AWK+set}" = set; then :
2635 1.1.1.2 christos $as_echo_n "(cached) " >&6
2636 1.1.1.2 christos else
2637 1.1.1.2 christos if test -n "$AWK"; then
2638 1.1.1.2 christos ac_cv_prog_AWK="$AWK" # Let the user override the test.
2639 1.1.1.2 christos else
2640 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 1.1.1.2 christos for as_dir in $PATH
2642 1.1.1.2 christos do
2643 1.1.1.2 christos IFS=$as_save_IFS
2644 1.1.1.2 christos test -z "$as_dir" && as_dir=.
2645 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2646 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 1.1.1.2 christos ac_cv_prog_AWK="$ac_prog"
2648 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 1.1.1.2 christos break 2
2650 1.1.1.2 christos fi
2651 1.1.1.2 christos done
2652 1.1.1.2 christos done
2653 1.1.1.2 christos IFS=$as_save_IFS
2654 1.1.1.2 christos
2655 1.1.1.2 christos fi
2656 1.1.1.2 christos fi
2657 1.1.1.2 christos AWK=$ac_cv_prog_AWK
2658 1.1.1.2 christos if test -n "$AWK"; then
2659 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2660 1.1.1.2 christos $as_echo "$AWK" >&6; }
2661 1.1.1.2 christos else
2662 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 1.1.1.2 christos $as_echo "no" >&6; }
2664 1.1.1.2 christos fi
2665 1.1.1.2 christos
2666 1.1.1.2 christos
2667 1.1.1.2 christos test -n "$AWK" && break
2668 1.1.1.2 christos done
2669 1.1.1.2 christos
2670 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2671 1.1.1.2 christos $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2672 1.1.1.2 christos set x ${MAKE-make}
2673 1.1.1.2 christos ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2674 1.1.1.2 christos if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2675 1.1.1.2 christos $as_echo_n "(cached) " >&6
2676 1.1.1.2 christos else
2677 1.1.1.2 christos cat >conftest.make <<\_ACEOF
2678 1.1.1.2 christos SHELL = /bin/sh
2679 1.1.1.2 christos all:
2680 1.1.1.2 christos @echo '@@@%%%=$(MAKE)=@@@%%%'
2681 1.1.1.2 christos _ACEOF
2682 1.1.1.2 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2683 1.1.1.2 christos case `${MAKE-make} -f conftest.make 2>/dev/null` in
2684 1.1.1.2 christos *@@@%%%=?*=@@@%%%*)
2685 1.1.1.2 christos eval ac_cv_prog_make_${ac_make}_set=yes;;
2686 1.1.1.2 christos *)
2687 1.1.1.2 christos eval ac_cv_prog_make_${ac_make}_set=no;;
2688 1.1.1.2 christos esac
2689 1.1.1.2 christos rm -f conftest.make
2690 1.1 christos fi
2691 1.1.1.2 christos if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2692 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2693 1.1.1.2 christos $as_echo "yes" >&6; }
2694 1.1 christos SET_MAKE=
2695 1.1 christos else
2696 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 1.1.1.2 christos $as_echo "no" >&6; }
2698 1.1 christos SET_MAKE="MAKE=${MAKE-make}"
2699 1.1 christos fi
2700 1.1 christos
2701 1.1 christos rm -rf .tst 2>/dev/null
2702 1.1 christos mkdir .tst 2>/dev/null
2703 1.1 christos if test -d .tst; then
2704 1.1 christos am__leading_dot=.
2705 1.1 christos else
2706 1.1 christos am__leading_dot=_
2707 1.1 christos fi
2708 1.1 christos rmdir .tst 2>/dev/null
2709 1.1 christos
2710 1.1.1.2 christos if test "`cd $srcdir && pwd`" != "`pwd`"; then
2711 1.1.1.2 christos # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2712 1.1.1.2 christos # is not polluted with repeated "-I."
2713 1.1.1.2 christos am__isrc=' -I$(srcdir)'
2714 1.1.1.2 christos # test to see if srcdir already configured
2715 1.1.1.2 christos if test -f $srcdir/config.status; then
2716 1.1.1.2 christos as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2717 1.1.1.2 christos fi
2718 1.1 christos fi
2719 1.1 christos
2720 1.1 christos # test whether we have cygpath
2721 1.1 christos if test -z "$CYGPATH_W"; then
2722 1.1 christos if (cygpath --version) >/dev/null 2>/dev/null; then
2723 1.1 christos CYGPATH_W='cygpath -w'
2724 1.1 christos else
2725 1.1 christos CYGPATH_W=echo
2726 1.1 christos fi
2727 1.1 christos fi
2728 1.1 christos
2729 1.1 christos
2730 1.1 christos # Define the identity of the package.
2731 1.1 christos PACKAGE='flex'
2732 1.1.1.2 christos VERSION='2.5.37'
2733 1.1 christos
2734 1.1 christos
2735 1.1 christos cat >>confdefs.h <<_ACEOF
2736 1.1 christos #define PACKAGE "$PACKAGE"
2737 1.1 christos _ACEOF
2738 1.1 christos
2739 1.1 christos
2740 1.1 christos cat >>confdefs.h <<_ACEOF
2741 1.1 christos #define VERSION "$VERSION"
2742 1.1 christos _ACEOF
2743 1.1 christos
2744 1.1 christos # Some tools Automake needs.
2745 1.1 christos
2746 1.1 christos ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2747 1.1 christos
2748 1.1 christos
2749 1.1 christos AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2750 1.1 christos
2751 1.1 christos
2752 1.1 christos AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2753 1.1 christos
2754 1.1 christos
2755 1.1 christos AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2756 1.1 christos
2757 1.1 christos
2758 1.1 christos MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2759 1.1 christos
2760 1.1 christos # We need awk for the "check" target. The system "awk" is bad on
2761 1.1 christos # some platforms.
2762 1.1 christos # Always define AMTAR for backward compatibility.
2763 1.1 christos
2764 1.1 christos AMTAR=${AMTAR-"${am_missing_run}tar"}
2765 1.1 christos
2766 1.1 christos am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2767 1.1 christos
2768 1.1 christos
2769 1.1 christos
2770 1.1 christos
2771 1.1 christos
2772 1.1.1.2 christos ac_config_headers="$ac_config_headers config.h:conf.in"
2773 1.1.1.2 christos
2774 1.1 christos
2775 1.1 christos
2776 1.1 christos # checks for programs
2777 1.1 christos
2778 1.1 christos
2779 1.1 christos MKINSTALLDIRS=
2780 1.1 christos if test -n "$ac_aux_dir"; then
2781 1.1 christos case "$ac_aux_dir" in
2782 1.1 christos /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2783 1.1 christos *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2784 1.1 christos esac
2785 1.1 christos fi
2786 1.1 christos if test -z "$MKINSTALLDIRS"; then
2787 1.1 christos MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2788 1.1 christos fi
2789 1.1 christos
2790 1.1 christos
2791 1.1 christos
2792 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2793 1.1.1.2 christos $as_echo_n "checking whether NLS is requested... " >&6; }
2794 1.1.1.2 christos # Check whether --enable-nls was given.
2795 1.1.1.2 christos if test "${enable_nls+set}" = set; then :
2796 1.1.1.2 christos enableval=$enable_nls; USE_NLS=$enableval
2797 1.1 christos else
2798 1.1 christos USE_NLS=yes
2799 1.1.1.2 christos fi
2800 1.1.1.2 christos
2801 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2802 1.1.1.2 christos $as_echo "$USE_NLS" >&6; }
2803 1.1 christos
2804 1.1 christos
2805 1.1 christos
2806 1.1 christos
2807 1.1 christos
2808 1.1 christos
2809 1.1 christos # Prepare PATH_SEPARATOR.
2810 1.1 christos # The user is always right.
2811 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
2812 1.1 christos echo "#! /bin/sh" >conf$$.sh
2813 1.1 christos echo "exit 0" >>conf$$.sh
2814 1.1 christos chmod +x conf$$.sh
2815 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2816 1.1 christos PATH_SEPARATOR=';'
2817 1.1 christos else
2818 1.1 christos PATH_SEPARATOR=:
2819 1.1 christos fi
2820 1.1 christos rm -f conf$$.sh
2821 1.1 christos fi
2822 1.1 christos
2823 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file,
2824 1.1 christos # as systems may use methods other than mode bits to determine executability.
2825 1.1 christos cat >conf$$.file <<_ASEOF
2826 1.1 christos #! /bin/sh
2827 1.1 christos exit 0
2828 1.1 christos _ASEOF
2829 1.1 christos chmod +x conf$$.file
2830 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then
2831 1.1 christos ac_executable_p="test -x"
2832 1.1 christos else
2833 1.1 christos ac_executable_p="test -f"
2834 1.1 christos fi
2835 1.1 christos rm -f conf$$.file
2836 1.1 christos
2837 1.1 christos # Extract the first word of "msgfmt", so it can be a program name with args.
2838 1.1 christos set dummy msgfmt; ac_word=$2
2839 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2841 1.1.1.2 christos if test "${ac_cv_path_MSGFMT+set}" = set; then :
2842 1.1.1.2 christos $as_echo_n "(cached) " >&6
2843 1.1 christos else
2844 1.1 christos case "$MSGFMT" in
2845 1.1 christos [\\/]* | ?:[\\/]*)
2846 1.1 christos ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2847 1.1 christos ;;
2848 1.1 christos *)
2849 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2850 1.1 christos for ac_dir in $PATH; do
2851 1.1 christos IFS="$ac_save_IFS"
2852 1.1 christos test -z "$ac_dir" && ac_dir=.
2853 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2854 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2855 1.1 christos if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2856 1.1 christos (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2857 1.1 christos ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2858 1.1 christos break 2
2859 1.1 christos fi
2860 1.1 christos fi
2861 1.1 christos done
2862 1.1 christos done
2863 1.1 christos IFS="$ac_save_IFS"
2864 1.1 christos test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2865 1.1 christos ;;
2866 1.1 christos esac
2867 1.1 christos fi
2868 1.1 christos MSGFMT="$ac_cv_path_MSGFMT"
2869 1.1 christos if test "$MSGFMT" != ":"; then
2870 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2871 1.1.1.2 christos $as_echo "$MSGFMT" >&6; }
2872 1.1 christos else
2873 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 1.1.1.2 christos $as_echo "no" >&6; }
2875 1.1 christos fi
2876 1.1 christos
2877 1.1 christos # Extract the first word of "gmsgfmt", so it can be a program name with args.
2878 1.1 christos set dummy gmsgfmt; ac_word=$2
2879 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2881 1.1.1.2 christos if test "${ac_cv_path_GMSGFMT+set}" = set; then :
2882 1.1.1.2 christos $as_echo_n "(cached) " >&6
2883 1.1 christos else
2884 1.1 christos case $GMSGFMT in
2885 1.1 christos [\\/]* | ?:[\\/]*)
2886 1.1 christos ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2887 1.1 christos ;;
2888 1.1 christos *)
2889 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 1.1 christos for as_dir in $PATH
2891 1.1 christos do
2892 1.1 christos IFS=$as_save_IFS
2893 1.1 christos test -z "$as_dir" && as_dir=.
2894 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2895 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 1.1 christos ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2897 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 1.1 christos break 2
2899 1.1 christos fi
2900 1.1 christos done
2901 1.1.1.2 christos done
2902 1.1.1.2 christos IFS=$as_save_IFS
2903 1.1 christos
2904 1.1 christos test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2905 1.1 christos ;;
2906 1.1 christos esac
2907 1.1 christos fi
2908 1.1 christos GMSGFMT=$ac_cv_path_GMSGFMT
2909 1.1 christos if test -n "$GMSGFMT"; then
2910 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2911 1.1.1.2 christos $as_echo "$GMSGFMT" >&6; }
2912 1.1 christos else
2913 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 1.1.1.2 christos $as_echo "no" >&6; }
2915 1.1 christos fi
2916 1.1 christos
2917 1.1 christos
2918 1.1 christos
2919 1.1.1.2 christos
2920 1.1 christos # Prepare PATH_SEPARATOR.
2921 1.1 christos # The user is always right.
2922 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
2923 1.1 christos echo "#! /bin/sh" >conf$$.sh
2924 1.1 christos echo "exit 0" >>conf$$.sh
2925 1.1 christos chmod +x conf$$.sh
2926 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2927 1.1 christos PATH_SEPARATOR=';'
2928 1.1 christos else
2929 1.1 christos PATH_SEPARATOR=:
2930 1.1 christos fi
2931 1.1 christos rm -f conf$$.sh
2932 1.1 christos fi
2933 1.1 christos
2934 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file,
2935 1.1 christos # as systems may use methods other than mode bits to determine executability.
2936 1.1 christos cat >conf$$.file <<_ASEOF
2937 1.1 christos #! /bin/sh
2938 1.1 christos exit 0
2939 1.1 christos _ASEOF
2940 1.1 christos chmod +x conf$$.file
2941 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then
2942 1.1 christos ac_executable_p="test -x"
2943 1.1 christos else
2944 1.1 christos ac_executable_p="test -f"
2945 1.1 christos fi
2946 1.1 christos rm -f conf$$.file
2947 1.1 christos
2948 1.1 christos # Extract the first word of "xgettext", so it can be a program name with args.
2949 1.1 christos set dummy xgettext; ac_word=$2
2950 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2952 1.1.1.2 christos if test "${ac_cv_path_XGETTEXT+set}" = set; then :
2953 1.1.1.2 christos $as_echo_n "(cached) " >&6
2954 1.1 christos else
2955 1.1 christos case "$XGETTEXT" in
2956 1.1 christos [\\/]* | ?:[\\/]*)
2957 1.1 christos ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2958 1.1 christos ;;
2959 1.1 christos *)
2960 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2961 1.1 christos for ac_dir in $PATH; do
2962 1.1 christos IFS="$ac_save_IFS"
2963 1.1 christos test -z "$ac_dir" && ac_dir=.
2964 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2965 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2966 1.1 christos if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2967 1.1 christos (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2968 1.1 christos ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2969 1.1 christos break 2
2970 1.1 christos fi
2971 1.1 christos fi
2972 1.1 christos done
2973 1.1 christos done
2974 1.1 christos IFS="$ac_save_IFS"
2975 1.1 christos test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2976 1.1 christos ;;
2977 1.1 christos esac
2978 1.1 christos fi
2979 1.1 christos XGETTEXT="$ac_cv_path_XGETTEXT"
2980 1.1 christos if test "$XGETTEXT" != ":"; then
2981 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2982 1.1.1.2 christos $as_echo "$XGETTEXT" >&6; }
2983 1.1 christos else
2984 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 1.1.1.2 christos $as_echo "no" >&6; }
2986 1.1 christos fi
2987 1.1 christos
2988 1.1 christos rm -f messages.po
2989 1.1 christos
2990 1.1 christos
2991 1.1 christos # Prepare PATH_SEPARATOR.
2992 1.1 christos # The user is always right.
2993 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
2994 1.1 christos echo "#! /bin/sh" >conf$$.sh
2995 1.1 christos echo "exit 0" >>conf$$.sh
2996 1.1 christos chmod +x conf$$.sh
2997 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2998 1.1 christos PATH_SEPARATOR=';'
2999 1.1 christos else
3000 1.1 christos PATH_SEPARATOR=:
3001 1.1 christos fi
3002 1.1 christos rm -f conf$$.sh
3003 1.1 christos fi
3004 1.1 christos
3005 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file,
3006 1.1 christos # as systems may use methods other than mode bits to determine executability.
3007 1.1 christos cat >conf$$.file <<_ASEOF
3008 1.1 christos #! /bin/sh
3009 1.1 christos exit 0
3010 1.1 christos _ASEOF
3011 1.1 christos chmod +x conf$$.file
3012 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then
3013 1.1 christos ac_executable_p="test -x"
3014 1.1 christos else
3015 1.1 christos ac_executable_p="test -f"
3016 1.1 christos fi
3017 1.1 christos rm -f conf$$.file
3018 1.1 christos
3019 1.1 christos # Extract the first word of "msgmerge", so it can be a program name with args.
3020 1.1 christos set dummy msgmerge; ac_word=$2
3021 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3023 1.1.1.2 christos if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3024 1.1.1.2 christos $as_echo_n "(cached) " >&6
3025 1.1 christos else
3026 1.1 christos case "$MSGMERGE" in
3027 1.1 christos [\\/]* | ?:[\\/]*)
3028 1.1 christos ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3029 1.1 christos ;;
3030 1.1 christos *)
3031 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3032 1.1 christos for ac_dir in $PATH; do
3033 1.1 christos IFS="$ac_save_IFS"
3034 1.1 christos test -z "$ac_dir" && ac_dir=.
3035 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3036 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3037 1.1 christos if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3038 1.1 christos ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3039 1.1 christos break 2
3040 1.1 christos fi
3041 1.1 christos fi
3042 1.1 christos done
3043 1.1 christos done
3044 1.1 christos IFS="$ac_save_IFS"
3045 1.1 christos test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3046 1.1 christos ;;
3047 1.1 christos esac
3048 1.1 christos fi
3049 1.1 christos MSGMERGE="$ac_cv_path_MSGMERGE"
3050 1.1 christos if test "$MSGMERGE" != ":"; then
3051 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3052 1.1.1.2 christos $as_echo "$MSGMERGE" >&6; }
3053 1.1 christos else
3054 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 1.1.1.2 christos $as_echo "no" >&6; }
3056 1.1 christos fi
3057 1.1 christos
3058 1.1 christos
3059 1.1 christos if test "$GMSGFMT" != ":"; then
3060 1.1 christos if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3061 1.1 christos (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3062 1.1 christos : ;
3063 1.1 christos else
3064 1.1 christos GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3065 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3066 1.1.1.2 christos $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3067 1.1 christos GMSGFMT=":"
3068 1.1 christos fi
3069 1.1 christos fi
3070 1.1 christos
3071 1.1 christos if test "$XGETTEXT" != ":"; then
3072 1.1 christos if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3073 1.1 christos (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3074 1.1 christos : ;
3075 1.1 christos else
3076 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3077 1.1.1.2 christos $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3078 1.1 christos XGETTEXT=":"
3079 1.1 christos fi
3080 1.1 christos rm -f messages.po
3081 1.1 christos fi
3082 1.1 christos
3083 1.1.1.2 christos ac_config_commands="$ac_config_commands default-1"
3084 1.1 christos
3085 1.1 christos
3086 1.1 christos
3087 1.1 christos if test "X$prefix" = "XNONE"; then
3088 1.1 christos acl_final_prefix="$ac_default_prefix"
3089 1.1 christos else
3090 1.1 christos acl_final_prefix="$prefix"
3091 1.1 christos fi
3092 1.1 christos if test "X$exec_prefix" = "XNONE"; then
3093 1.1 christos acl_final_exec_prefix='${prefix}'
3094 1.1 christos else
3095 1.1 christos acl_final_exec_prefix="$exec_prefix"
3096 1.1 christos fi
3097 1.1 christos acl_save_prefix="$prefix"
3098 1.1 christos prefix="$acl_final_prefix"
3099 1.1 christos eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3100 1.1 christos prefix="$acl_save_prefix"
3101 1.1 christos
3102 1.1 christos DEPDIR="${am__leading_dot}deps"
3103 1.1 christos
3104 1.1.1.2 christos ac_config_commands="$ac_config_commands depfiles"
3105 1.1 christos
3106 1.1 christos
3107 1.1 christos am_make=${MAKE-make}
3108 1.1 christos cat > confinc << 'END'
3109 1.1 christos am__doit:
3110 1.1.1.2 christos @echo this is the am__doit target
3111 1.1 christos .PHONY: am__doit
3112 1.1 christos END
3113 1.1 christos # If we don't find an include directive, just comment out the code.
3114 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3115 1.1.1.2 christos $as_echo_n "checking for style of include used by $am_make... " >&6; }
3116 1.1 christos am__include="#"
3117 1.1 christos am__quote=
3118 1.1 christos _am_result=none
3119 1.1 christos # First try GNU make style include.
3120 1.1 christos echo "include confinc" > confmf
3121 1.1.1.2 christos # Ignore all kinds of additional output from `make'.
3122 1.1.1.2 christos case `$am_make -s -f confmf 2> /dev/null` in #(
3123 1.1.1.2 christos *the\ am__doit\ target*)
3124 1.1.1.2 christos am__include=include
3125 1.1.1.2 christos am__quote=
3126 1.1.1.2 christos _am_result=GNU
3127 1.1.1.2 christos ;;
3128 1.1.1.2 christos esac
3129 1.1 christos # Now try BSD make style include.
3130 1.1 christos if test "$am__include" = "#"; then
3131 1.1 christos echo '.include "confinc"' > confmf
3132 1.1.1.2 christos case `$am_make -s -f confmf 2> /dev/null` in #(
3133 1.1.1.2 christos *the\ am__doit\ target*)
3134 1.1.1.2 christos am__include=.include
3135 1.1.1.2 christos am__quote="\""
3136 1.1.1.2 christos _am_result=BSD
3137 1.1.1.2 christos ;;
3138 1.1.1.2 christos esac
3139 1.1 christos fi
3140 1.1 christos
3141 1.1 christos
3142 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3143 1.1.1.2 christos $as_echo "$_am_result" >&6; }
3144 1.1 christos rm -f confinc confmf
3145 1.1 christos
3146 1.1.1.2 christos # Check whether --enable-dependency-tracking was given.
3147 1.1.1.2 christos if test "${enable_dependency_tracking+set}" = set; then :
3148 1.1.1.2 christos enableval=$enable_dependency_tracking;
3149 1.1.1.2 christos fi
3150 1.1 christos
3151 1.1 christos if test "x$enable_dependency_tracking" != xno; then
3152 1.1 christos am_depcomp="$ac_aux_dir/depcomp"
3153 1.1 christos AMDEPBACKSLASH='\'
3154 1.1 christos fi
3155 1.1.1.2 christos if test "x$enable_dependency_tracking" != xno; then
3156 1.1 christos AMDEP_TRUE=
3157 1.1 christos AMDEP_FALSE='#'
3158 1.1 christos else
3159 1.1 christos AMDEP_TRUE='#'
3160 1.1 christos AMDEP_FALSE=
3161 1.1 christos fi
3162 1.1 christos
3163 1.1 christos
3164 1.1 christos ac_ext=c
3165 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3166 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 1.1 christos if test -n "$ac_tool_prefix"; then
3170 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3174 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
3175 1.1.1.2 christos $as_echo_n "(cached) " >&6
3176 1.1 christos else
3177 1.1 christos if test -n "$CC"; then
3178 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
3179 1.1 christos else
3180 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 1.1 christos for as_dir in $PATH
3182 1.1 christos do
3183 1.1 christos IFS=$as_save_IFS
3184 1.1 christos test -z "$as_dir" && as_dir=.
3185 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
3186 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 1.1 christos break 2
3190 1.1 christos fi
3191 1.1 christos done
3192 1.1.1.2 christos done
3193 1.1.1.2 christos IFS=$as_save_IFS
3194 1.1 christos
3195 1.1 christos fi
3196 1.1 christos fi
3197 1.1 christos CC=$ac_cv_prog_CC
3198 1.1 christos if test -n "$CC"; then
3199 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 1.1.1.2 christos $as_echo "$CC" >&6; }
3201 1.1 christos else
3202 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 1.1.1.2 christos $as_echo "no" >&6; }
3204 1.1 christos fi
3205 1.1 christos
3206 1.1.1.2 christos
3207 1.1 christos fi
3208 1.1 christos if test -z "$ac_cv_prog_CC"; then
3209 1.1 christos ac_ct_CC=$CC
3210 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
3211 1.1 christos set dummy gcc; ac_word=$2
3212 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3214 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3215 1.1.1.2 christos $as_echo_n "(cached) " >&6
3216 1.1 christos else
3217 1.1 christos if test -n "$ac_ct_CC"; then
3218 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 1.1 christos else
3220 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 1.1 christos for as_dir in $PATH
3222 1.1 christos do
3223 1.1 christos IFS=$as_save_IFS
3224 1.1 christos test -z "$as_dir" && as_dir=.
3225 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
3226 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
3228 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 1.1 christos break 2
3230 1.1 christos fi
3231 1.1 christos done
3232 1.1.1.2 christos done
3233 1.1.1.2 christos IFS=$as_save_IFS
3234 1.1 christos
3235 1.1 christos fi
3236 1.1 christos fi
3237 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 1.1 christos if test -n "$ac_ct_CC"; then
3239 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 1.1.1.2 christos $as_echo "$ac_ct_CC" >&6; }
3241 1.1 christos else
3242 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 1.1.1.2 christos $as_echo "no" >&6; }
3244 1.1 christos fi
3245 1.1 christos
3246 1.1.1.2 christos if test "x$ac_ct_CC" = x; then
3247 1.1.1.2 christos CC=""
3248 1.1.1.2 christos else
3249 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
3250 1.1.1.2 christos yes:)
3251 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 1.1.1.2 christos ac_tool_warned=yes ;;
3254 1.1.1.2 christos esac
3255 1.1.1.2 christos CC=$ac_ct_CC
3256 1.1.1.2 christos fi
3257 1.1 christos else
3258 1.1 christos CC="$ac_cv_prog_CC"
3259 1.1 christos fi
3260 1.1 christos
3261 1.1 christos if test -z "$CC"; then
3262 1.1.1.2 christos if test -n "$ac_tool_prefix"; then
3263 1.1.1.2 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3267 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
3268 1.1.1.2 christos $as_echo_n "(cached) " >&6
3269 1.1 christos else
3270 1.1 christos if test -n "$CC"; then
3271 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
3272 1.1 christos else
3273 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 1.1 christos for as_dir in $PATH
3275 1.1 christos do
3276 1.1 christos IFS=$as_save_IFS
3277 1.1 christos test -z "$as_dir" && as_dir=.
3278 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
3279 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 1.1 christos break 2
3283 1.1 christos fi
3284 1.1 christos done
3285 1.1.1.2 christos done
3286 1.1.1.2 christos IFS=$as_save_IFS
3287 1.1 christos
3288 1.1 christos fi
3289 1.1 christos fi
3290 1.1 christos CC=$ac_cv_prog_CC
3291 1.1 christos if test -n "$CC"; then
3292 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 1.1.1.2 christos $as_echo "$CC" >&6; }
3294 1.1 christos else
3295 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 1.1.1.2 christos $as_echo "no" >&6; }
3297 1.1 christos fi
3298 1.1 christos
3299 1.1 christos
3300 1.1.1.2 christos fi
3301 1.1 christos fi
3302 1.1 christos if test -z "$CC"; then
3303 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
3304 1.1 christos set dummy cc; ac_word=$2
3305 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3307 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
3308 1.1.1.2 christos $as_echo_n "(cached) " >&6
3309 1.1 christos else
3310 1.1 christos if test -n "$CC"; then
3311 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
3312 1.1 christos else
3313 1.1 christos ac_prog_rejected=no
3314 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 1.1 christos for as_dir in $PATH
3316 1.1 christos do
3317 1.1 christos IFS=$as_save_IFS
3318 1.1 christos test -z "$as_dir" && as_dir=.
3319 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
3320 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 1.1 christos ac_prog_rejected=yes
3323 1.1 christos continue
3324 1.1 christos fi
3325 1.1 christos ac_cv_prog_CC="cc"
3326 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 1.1 christos break 2
3328 1.1 christos fi
3329 1.1 christos done
3330 1.1.1.2 christos done
3331 1.1.1.2 christos IFS=$as_save_IFS
3332 1.1 christos
3333 1.1 christos if test $ac_prog_rejected = yes; then
3334 1.1 christos # We found a bogon in the path, so make sure we never use it.
3335 1.1 christos set dummy $ac_cv_prog_CC
3336 1.1 christos shift
3337 1.1 christos if test $# != 0; then
3338 1.1 christos # We chose a different compiler from the bogus one.
3339 1.1 christos # However, it has the same basename, so the bogon will be chosen
3340 1.1 christos # first if we set CC to just the basename; use the full file name.
3341 1.1 christos shift
3342 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3343 1.1 christos fi
3344 1.1 christos fi
3345 1.1 christos fi
3346 1.1 christos fi
3347 1.1 christos CC=$ac_cv_prog_CC
3348 1.1 christos if test -n "$CC"; then
3349 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 1.1.1.2 christos $as_echo "$CC" >&6; }
3351 1.1 christos else
3352 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 1.1.1.2 christos $as_echo "no" >&6; }
3354 1.1 christos fi
3355 1.1 christos
3356 1.1.1.2 christos
3357 1.1 christos fi
3358 1.1 christos if test -z "$CC"; then
3359 1.1 christos if test -n "$ac_tool_prefix"; then
3360 1.1.1.2 christos for ac_prog in cl.exe
3361 1.1 christos do
3362 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3366 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
3367 1.1.1.2 christos $as_echo_n "(cached) " >&6
3368 1.1 christos else
3369 1.1 christos if test -n "$CC"; then
3370 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
3371 1.1 christos else
3372 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 1.1 christos for as_dir in $PATH
3374 1.1 christos do
3375 1.1 christos IFS=$as_save_IFS
3376 1.1 christos test -z "$as_dir" && as_dir=.
3377 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
3378 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 1.1 christos break 2
3382 1.1 christos fi
3383 1.1 christos done
3384 1.1.1.2 christos done
3385 1.1.1.2 christos IFS=$as_save_IFS
3386 1.1 christos
3387 1.1 christos fi
3388 1.1 christos fi
3389 1.1 christos CC=$ac_cv_prog_CC
3390 1.1 christos if test -n "$CC"; then
3391 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 1.1.1.2 christos $as_echo "$CC" >&6; }
3393 1.1 christos else
3394 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 1.1.1.2 christos $as_echo "no" >&6; }
3396 1.1 christos fi
3397 1.1 christos
3398 1.1.1.2 christos
3399 1.1 christos test -n "$CC" && break
3400 1.1 christos done
3401 1.1 christos fi
3402 1.1 christos if test -z "$CC"; then
3403 1.1 christos ac_ct_CC=$CC
3404 1.1.1.2 christos for ac_prog in cl.exe
3405 1.1 christos do
3406 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 1.1 christos set dummy $ac_prog; ac_word=$2
3408 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
3410 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3411 1.1.1.2 christos $as_echo_n "(cached) " >&6
3412 1.1 christos else
3413 1.1 christos if test -n "$ac_ct_CC"; then
3414 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 1.1 christos else
3416 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 1.1 christos for as_dir in $PATH
3418 1.1 christos do
3419 1.1 christos IFS=$as_save_IFS
3420 1.1 christos test -z "$as_dir" && as_dir=.
3421 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
3422 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
3424 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 1.1 christos break 2
3426 1.1 christos fi
3427 1.1 christos done
3428 1.1.1.2 christos done
3429 1.1.1.2 christos IFS=$as_save_IFS
3430 1.1 christos
3431 1.1 christos fi
3432 1.1 christos fi
3433 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 1.1 christos if test -n "$ac_ct_CC"; then
3435 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 1.1.1.2 christos $as_echo "$ac_ct_CC" >&6; }
3437 1.1 christos else
3438 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 1.1.1.2 christos $as_echo "no" >&6; }
3440 1.1 christos fi
3441 1.1 christos
3442 1.1.1.2 christos
3443 1.1 christos test -n "$ac_ct_CC" && break
3444 1.1 christos done
3445 1.1 christos
3446 1.1.1.2 christos if test "x$ac_ct_CC" = x; then
3447 1.1.1.2 christos CC=""
3448 1.1.1.2 christos else
3449 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
3450 1.1.1.2 christos yes:)
3451 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 1.1.1.2 christos ac_tool_warned=yes ;;
3454 1.1.1.2 christos esac
3455 1.1.1.2 christos CC=$ac_ct_CC
3456 1.1.1.2 christos fi
3457 1.1 christos fi
3458 1.1 christos
3459 1.1 christos fi
3460 1.1 christos
3461 1.1 christos
3462 1.1.1.2 christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 1.1.1.2 christos as_fn_error "no acceptable C compiler found in \$PATH
3465 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }
3466 1.1 christos
3467 1.1 christos # Provide some information about the compiler.
3468 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 1.1.1.2 christos set X $ac_compile
3470 1.1.1.2 christos ac_compiler=$2
3471 1.1.1.2 christos for ac_option in --version -v -V -qversion; do
3472 1.1.1.2 christos { { ac_try="$ac_compiler $ac_option >&5"
3473 1.1.1.2 christos case "(($ac_try" in
3474 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3476 1.1.1.2 christos esac
3477 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3479 1.1.1.2 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 1.1 christos ac_status=$?
3481 1.1.1.2 christos if test -s conftest.err; then
3482 1.1.1.2 christos sed '10a\
3483 1.1.1.2 christos ... rest of stderr output deleted ...
3484 1.1.1.2 christos 10q' conftest.err >conftest.er1
3485 1.1.1.2 christos cat conftest.er1 >&5
3486 1.1.1.2 christos fi
3487 1.1.1.2 christos rm -f conftest.er1 conftest.err
3488 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 1.1.1.2 christos test $ac_status = 0; }
3490 1.1.1.2 christos done
3491 1.1 christos
3492 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 1.1 christos /* end confdefs.h. */
3494 1.1 christos
3495 1.1 christos int
3496 1.1 christos main ()
3497 1.1 christos {
3498 1.1 christos
3499 1.1 christos ;
3500 1.1 christos return 0;
3501 1.1 christos }
3502 1.1 christos _ACEOF
3503 1.1 christos ac_clean_files_save=$ac_clean_files
3504 1.1.1.2 christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 1.1 christos # Try to create an executable without -o first, disregard a.out.
3506 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
3507 1.1 christos # of exeext.
3508 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3509 1.1.1.2 christos $as_echo_n "checking whether the C compiler works... " >&6; }
3510 1.1.1.2 christos ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511 1.1.1.2 christos
3512 1.1.1.2 christos # The possible output files:
3513 1.1.1.2 christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514 1.1.1.2 christos
3515 1.1.1.2 christos ac_rmfiles=
3516 1.1.1.2 christos for ac_file in $ac_files
3517 1.1.1.2 christos do
3518 1.1.1.2 christos case $ac_file in
3519 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 1.1.1.2 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 1.1.1.2 christos esac
3522 1.1.1.2 christos done
3523 1.1.1.2 christos rm -f $ac_rmfiles
3524 1.1.1.2 christos
3525 1.1.1.2 christos if { { ac_try="$ac_link_default"
3526 1.1.1.2 christos case "(($ac_try" in
3527 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3529 1.1.1.2 christos esac
3530 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3532 1.1.1.2 christos (eval "$ac_link_default") 2>&5
3533 1.1.1.2 christos ac_status=$?
3534 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 1.1.1.2 christos test $ac_status = 0; }; then :
3536 1.1.1.2 christos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 1.1.1.2 christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 1.1.1.2 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 1.1.1.2 christos # so that the user can short-circuit this test for compilers unknown to
3540 1.1.1.2 christos # Autoconf.
3541 1.1.1.2 christos for ac_file in $ac_files ''
3542 1.1 christos do
3543 1.1 christos test -f "$ac_file" || continue
3544 1.1 christos case $ac_file in
3545 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 1.1 christos ;;
3547 1.1 christos [ab].out )
3548 1.1 christos # We found the default executable, but exeext='' is most
3549 1.1 christos # certainly right.
3550 1.1 christos break;;
3551 1.1 christos *.* )
3552 1.1.1.2 christos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553 1.1.1.2 christos then :; else
3554 1.1.1.2 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 1.1.1.2 christos fi
3556 1.1.1.2 christos # We set ac_cv_exeext here because the later test for it is not
3557 1.1.1.2 christos # safe: cross compilers may not add the suffix if given an `-o'
3558 1.1.1.2 christos # argument, so we may need to know it at that point already.
3559 1.1.1.2 christos # Even if this section looks crufty: it has the advantage of
3560 1.1.1.2 christos # actually working.
3561 1.1 christos break;;
3562 1.1 christos * )
3563 1.1 christos break;;
3564 1.1 christos esac
3565 1.1 christos done
3566 1.1.1.2 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
3567 1.1.1.2 christos
3568 1.1 christos else
3569 1.1.1.2 christos ac_file=''
3570 1.1.1.2 christos fi
3571 1.1.1.2 christos if test -z "$ac_file"; then :
3572 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 1.1.1.2 christos $as_echo "no" >&6; }
3574 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
3575 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3576 1.1 christos
3577 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 1.1.1.2 christos { as_fn_set_status 77
3580 1.1.1.2 christos as_fn_error "C compiler cannot create executables
3581 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }; }
3582 1.1.1.2 christos else
3583 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3584 1.1.1.2 christos $as_echo "yes" >&6; }
3585 1.1 christos fi
3586 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3587 1.1.1.2 christos $as_echo_n "checking for C compiler default output file name... " >&6; }
3588 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3589 1.1.1.2 christos $as_echo "$ac_file" >&6; }
3590 1.1 christos ac_exeext=$ac_cv_exeext
3591 1.1 christos
3592 1.1.1.2 christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3593 1.1.1.2 christos ac_clean_files=$ac_clean_files_save
3594 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3595 1.1.1.2 christos $as_echo_n "checking for suffix of executables... " >&6; }
3596 1.1.1.2 christos if { { ac_try="$ac_link"
3597 1.1.1.2 christos case "(($ac_try" in
3598 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3600 1.1.1.2 christos esac
3601 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3603 1.1.1.2 christos (eval "$ac_link") 2>&5
3604 1.1 christos ac_status=$?
3605 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 1.1.1.2 christos test $ac_status = 0; }; then :
3607 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
3608 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3609 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
3610 1.1 christos # `rm'.
3611 1.1 christos for ac_file in conftest.exe conftest conftest.*; do
3612 1.1 christos test -f "$ac_file" || continue
3613 1.1 christos case $ac_file in
3614 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3615 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616 1.1 christos break;;
3617 1.1 christos * ) break;;
3618 1.1 christos esac
3619 1.1 christos done
3620 1.1 christos else
3621 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 1.1.1.2 christos as_fn_error "cannot compute suffix of executables: cannot compile and link
3624 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }
3625 1.1.1.2 christos fi
3626 1.1.1.2 christos rm -f conftest conftest$ac_cv_exeext
3627 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3628 1.1.1.2 christos $as_echo "$ac_cv_exeext" >&6; }
3629 1.1 christos
3630 1.1 christos rm -f conftest.$ac_ext
3631 1.1 christos EXEEXT=$ac_cv_exeext
3632 1.1 christos ac_exeext=$EXEEXT
3633 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 1.1.1.2 christos /* end confdefs.h. */
3635 1.1.1.2 christos #include <stdio.h>
3636 1.1.1.2 christos int
3637 1.1.1.2 christos main ()
3638 1.1.1.2 christos {
3639 1.1.1.2 christos FILE *f = fopen ("conftest.out", "w");
3640 1.1.1.2 christos return ferror (f) || fclose (f) != 0;
3641 1.1.1.2 christos
3642 1.1.1.2 christos ;
3643 1.1.1.2 christos return 0;
3644 1.1.1.2 christos }
3645 1.1 christos _ACEOF
3646 1.1.1.2 christos ac_clean_files="$ac_clean_files conftest.out"
3647 1.1.1.2 christos # Check that the compiler produces executables we can run. If not, either
3648 1.1.1.2 christos # the compiler is broken, or we cross compile.
3649 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3650 1.1.1.2 christos $as_echo_n "checking whether we are cross compiling... " >&6; }
3651 1.1.1.2 christos if test "$cross_compiling" != yes; then
3652 1.1.1.2 christos { { ac_try="$ac_link"
3653 1.1.1.2 christos case "(($ac_try" in
3654 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3656 1.1.1.2 christos esac
3657 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3659 1.1.1.2 christos (eval "$ac_link") 2>&5
3660 1.1.1.2 christos ac_status=$?
3661 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 1.1.1.2 christos test $ac_status = 0; }
3663 1.1.1.2 christos if { ac_try='./conftest$ac_cv_exeext'
3664 1.1.1.2 christos { { case "(($ac_try" in
3665 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3667 1.1.1.2 christos esac
3668 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3670 1.1.1.2 christos (eval "$ac_try") 2>&5
3671 1.1.1.2 christos ac_status=$?
3672 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 1.1.1.2 christos test $ac_status = 0; }; }; then
3674 1.1.1.2 christos cross_compiling=no
3675 1.1.1.2 christos else
3676 1.1.1.2 christos if test "$cross_compiling" = maybe; then
3677 1.1.1.2 christos cross_compiling=yes
3678 1.1.1.2 christos else
3679 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 1.1.1.2 christos as_fn_error "cannot run C compiled programs.
3682 1.1.1.2 christos If you meant to cross compile, use \`--host'.
3683 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }
3684 1.1.1.2 christos fi
3685 1.1.1.2 christos fi
3686 1.1.1.2 christos fi
3687 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3688 1.1.1.2 christos $as_echo "$cross_compiling" >&6; }
3689 1.1.1.2 christos
3690 1.1.1.2 christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3691 1.1.1.2 christos ac_clean_files=$ac_clean_files_save
3692 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3693 1.1.1.2 christos $as_echo_n "checking for suffix of object files... " >&6; }
3694 1.1.1.2 christos if test "${ac_cv_objext+set}" = set; then :
3695 1.1.1.2 christos $as_echo_n "(cached) " >&6
3696 1.1.1.2 christos else
3697 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 1.1 christos /* end confdefs.h. */
3699 1.1 christos
3700 1.1 christos int
3701 1.1 christos main ()
3702 1.1 christos {
3703 1.1 christos
3704 1.1 christos ;
3705 1.1 christos return 0;
3706 1.1 christos }
3707 1.1 christos _ACEOF
3708 1.1 christos rm -f conftest.o conftest.obj
3709 1.1.1.2 christos if { { ac_try="$ac_compile"
3710 1.1.1.2 christos case "(($ac_try" in
3711 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3713 1.1.1.2 christos esac
3714 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3716 1.1.1.2 christos (eval "$ac_compile") 2>&5
3717 1.1.1.2 christos ac_status=$?
3718 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 1.1.1.2 christos test $ac_status = 0; }; then :
3720 1.1.1.2 christos for ac_file in conftest.o conftest.obj conftest.*; do
3721 1.1.1.2 christos test -f "$ac_file" || continue;
3722 1.1 christos case $ac_file in
3723 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3724 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3725 1.1 christos break;;
3726 1.1 christos esac
3727 1.1 christos done
3728 1.1 christos else
3729 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
3730 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3731 1.1 christos
3732 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 1.1.1.2 christos as_fn_error "cannot compute suffix of object files: cannot compile
3735 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }
3736 1.1 christos fi
3737 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
3738 1.1 christos fi
3739 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3740 1.1.1.2 christos $as_echo "$ac_cv_objext" >&6; }
3741 1.1 christos OBJEXT=$ac_cv_objext
3742 1.1 christos ac_objext=$OBJEXT
3743 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3744 1.1.1.2 christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3745 1.1.1.2 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3746 1.1.1.2 christos $as_echo_n "(cached) " >&6
3747 1.1 christos else
3748 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 1.1 christos /* end confdefs.h. */
3750 1.1 christos
3751 1.1 christos int
3752 1.1 christos main ()
3753 1.1 christos {
3754 1.1 christos #ifndef __GNUC__
3755 1.1 christos choke me
3756 1.1 christos #endif
3757 1.1 christos
3758 1.1 christos ;
3759 1.1 christos return 0;
3760 1.1 christos }
3761 1.1 christos _ACEOF
3762 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3763 1.1 christos ac_compiler_gnu=yes
3764 1.1 christos else
3765 1.1.1.2 christos ac_compiler_gnu=no
3766 1.1 christos fi
3767 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
3769 1.1 christos
3770 1.1 christos fi
3771 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3772 1.1.1.2 christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3773 1.1.1.2 christos if test $ac_compiler_gnu = yes; then
3774 1.1.1.2 christos GCC=yes
3775 1.1.1.2 christos else
3776 1.1.1.2 christos GCC=
3777 1.1.1.2 christos fi
3778 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
3779 1.1 christos ac_save_CFLAGS=$CFLAGS
3780 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3781 1.1.1.2 christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
3782 1.1.1.2 christos if test "${ac_cv_prog_cc_g+set}" = set; then :
3783 1.1.1.2 christos $as_echo_n "(cached) " >&6
3784 1.1.1.2 christos else
3785 1.1.1.2 christos ac_save_c_werror_flag=$ac_c_werror_flag
3786 1.1.1.2 christos ac_c_werror_flag=yes
3787 1.1.1.2 christos ac_cv_prog_cc_g=no
3788 1.1.1.2 christos CFLAGS="-g"
3789 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 1.1 christos /* end confdefs.h. */
3791 1.1 christos
3792 1.1 christos int
3793 1.1 christos main ()
3794 1.1 christos {
3795 1.1 christos
3796 1.1 christos ;
3797 1.1 christos return 0;
3798 1.1 christos }
3799 1.1 christos _ACEOF
3800 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3801 1.1 christos ac_cv_prog_cc_g=yes
3802 1.1 christos else
3803 1.1.1.2 christos CFLAGS=""
3804 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 1.1.1.2 christos /* end confdefs.h. */
3806 1.1.1.2 christos
3807 1.1.1.2 christos int
3808 1.1.1.2 christos main ()
3809 1.1.1.2 christos {
3810 1.1.1.2 christos
3811 1.1.1.2 christos ;
3812 1.1.1.2 christos return 0;
3813 1.1.1.2 christos }
3814 1.1.1.2 christos _ACEOF
3815 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3816 1.1.1.2 christos
3817 1.1.1.2 christos else
3818 1.1.1.2 christos ac_c_werror_flag=$ac_save_c_werror_flag
3819 1.1.1.2 christos CFLAGS="-g"
3820 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 1.1.1.2 christos /* end confdefs.h. */
3822 1.1.1.2 christos
3823 1.1.1.2 christos int
3824 1.1.1.2 christos main ()
3825 1.1.1.2 christos {
3826 1.1 christos
3827 1.1.1.2 christos ;
3828 1.1.1.2 christos return 0;
3829 1.1.1.2 christos }
3830 1.1.1.2 christos _ACEOF
3831 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3832 1.1.1.2 christos ac_cv_prog_cc_g=yes
3833 1.1.1.2 christos fi
3834 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 1.1 christos fi
3836 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 1.1 christos fi
3838 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 1.1.1.2 christos ac_c_werror_flag=$ac_save_c_werror_flag
3840 1.1.1.2 christos fi
3841 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3842 1.1.1.2 christos $as_echo "$ac_cv_prog_cc_g" >&6; }
3843 1.1 christos if test "$ac_test_CFLAGS" = set; then
3844 1.1 christos CFLAGS=$ac_save_CFLAGS
3845 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
3846 1.1 christos if test "$GCC" = yes; then
3847 1.1 christos CFLAGS="-g -O2"
3848 1.1 christos else
3849 1.1 christos CFLAGS="-g"
3850 1.1 christos fi
3851 1.1 christos else
3852 1.1 christos if test "$GCC" = yes; then
3853 1.1 christos CFLAGS="-O2"
3854 1.1 christos else
3855 1.1 christos CFLAGS=
3856 1.1 christos fi
3857 1.1 christos fi
3858 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3859 1.1.1.2 christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3860 1.1.1.2 christos if test "${ac_cv_prog_cc_c89+set}" = set; then :
3861 1.1.1.2 christos $as_echo_n "(cached) " >&6
3862 1.1 christos else
3863 1.1.1.2 christos ac_cv_prog_cc_c89=no
3864 1.1 christos ac_save_CC=$CC
3865 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 1.1 christos /* end confdefs.h. */
3867 1.1 christos #include <stdarg.h>
3868 1.1 christos #include <stdio.h>
3869 1.1 christos #include <sys/types.h>
3870 1.1 christos #include <sys/stat.h>
3871 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3872 1.1 christos struct buf { int x; };
3873 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
3874 1.1 christos static char *e (p, i)
3875 1.1 christos char **p;
3876 1.1 christos int i;
3877 1.1 christos {
3878 1.1 christos return p[i];
3879 1.1 christos }
3880 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
3881 1.1 christos {
3882 1.1 christos char *s;
3883 1.1 christos va_list v;
3884 1.1 christos va_start (v,p);
3885 1.1 christos s = g (p, va_arg (v,int));
3886 1.1 christos va_end (v);
3887 1.1 christos return s;
3888 1.1 christos }
3889 1.1 christos
3890 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3891 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
3892 1.1 christos These don't provoke an error unfortunately, instead are silently treated
3893 1.1.1.2 christos as 'x'. The following induces an error, until -std is added to get
3894 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3895 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
3896 1.1.1.2 christos that's true only with -std. */
3897 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3898 1.1 christos
3899 1.1.1.2 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3900 1.1.1.2 christos inside strings and character constants. */
3901 1.1.1.2 christos #define FOO(x) 'x'
3902 1.1.1.2 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3903 1.1.1.2 christos
3904 1.1 christos int test (int i, double x);
3905 1.1 christos struct s1 {int (*f) (int a);};
3906 1.1 christos struct s2 {int (*f) (double a);};
3907 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3908 1.1 christos int argc;
3909 1.1 christos char **argv;
3910 1.1 christos int
3911 1.1 christos main ()
3912 1.1 christos {
3913 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 1.1 christos ;
3915 1.1 christos return 0;
3916 1.1 christos }
3917 1.1 christos _ACEOF
3918 1.1.1.2 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3919 1.1.1.2 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 1.1 christos do
3921 1.1 christos CC="$ac_save_CC $ac_arg"
3922 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3923 1.1.1.2 christos ac_cv_prog_cc_c89=$ac_arg
3924 1.1 christos fi
3925 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext
3926 1.1.1.2 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 1.1 christos done
3928 1.1.1.2 christos rm -f conftest.$ac_ext
3929 1.1 christos CC=$ac_save_CC
3930 1.1 christos
3931 1.1 christos fi
3932 1.1.1.2 christos # AC_CACHE_VAL
3933 1.1.1.2 christos case "x$ac_cv_prog_cc_c89" in
3934 1.1.1.2 christos x)
3935 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3936 1.1.1.2 christos $as_echo "none needed" >&6; } ;;
3937 1.1.1.2 christos xno)
3938 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3939 1.1.1.2 christos $as_echo "unsupported" >&6; } ;;
3940 1.1 christos *)
3941 1.1.1.2 christos CC="$CC $ac_cv_prog_cc_c89"
3942 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3943 1.1.1.2 christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3944 1.1 christos esac
3945 1.1.1.2 christos if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 1.1 christos
3947 1.1 christos fi
3948 1.1 christos
3949 1.1 christos ac_ext=c
3950 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3951 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 1.1 christos
3955 1.1 christos depcc="$CC" am_compiler_list=
3956 1.1 christos
3957 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3958 1.1.1.2 christos $as_echo_n "checking dependency style of $depcc... " >&6; }
3959 1.1.1.2 christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3960 1.1.1.2 christos $as_echo_n "(cached) " >&6
3961 1.1 christos else
3962 1.1 christos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up
3964 1.1 christos # making bogus files that we don't know about and never remove. For
3965 1.1 christos # instance it was reported that on HP-UX the gcc test will end up
3966 1.1 christos # making a dummy file named `D' -- because `-MD' means `put the output
3967 1.1 christos # in D'.
3968 1.1 christos mkdir conftest.dir
3969 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're
3970 1.1 christos # using a relative directory.
3971 1.1 christos cp "$am_depcomp" conftest.dir
3972 1.1 christos cd conftest.dir
3973 1.1 christos # We will build objects and dependencies in a subdirectory because
3974 1.1 christos # it helps to detect inapplicable dependency modes. For instance
3975 1.1 christos # both Tru64's cc and ICC support -MD to output dependencies as a
3976 1.1 christos # side effect of compilation, but ICC will put the dependencies in
3977 1.1 christos # the current directory while Tru64 will put them in the object
3978 1.1 christos # directory.
3979 1.1 christos mkdir sub
3980 1.1 christos
3981 1.1 christos am_cv_CC_dependencies_compiler_type=none
3982 1.1 christos if test "$am_compiler_list" = ""; then
3983 1.1 christos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3984 1.1 christos fi
3985 1.1.1.2 christos am__universal=false
3986 1.1.1.2 christos case " $depcc " in #(
3987 1.1.1.2 christos *\ -arch\ *\ -arch\ *) am__universal=true ;;
3988 1.1.1.2 christos esac
3989 1.1.1.2 christos
3990 1.1 christos for depmode in $am_compiler_list; do
3991 1.1 christos # Setup a source with many dependencies, because some compilers
3992 1.1 christos # like to wrap large dependency lists on column 80 (with \), and
3993 1.1 christos # we should not choose a depcomp mode which is confused by this.
3994 1.1 christos #
3995 1.1 christos # We need to recreate these files for each test, as the compiler may
3996 1.1 christos # overwrite some of them when testing with obscure command lines.
3997 1.1 christos # This happens at least with the AIX C compiler.
3998 1.1 christos : > sub/conftest.c
3999 1.1 christos for i in 1 2 3 4 5 6; do
4000 1.1 christos echo '#include "conftst'$i'.h"' >> sub/conftest.c
4001 1.1 christos # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4002 1.1 christos # Solaris 8's {/usr,}/bin/sh.
4003 1.1 christos touch sub/conftst$i.h
4004 1.1 christos done
4005 1.1 christos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4006 1.1 christos
4007 1.1.1.2 christos # We check with `-c' and `-o' for the sake of the "dashmstdout"
4008 1.1.1.2 christos # mode. It turns out that the SunPro C++ compiler does not properly
4009 1.1.1.2 christos # handle `-M -o', and we need to detect this. Also, some Intel
4010 1.1.1.2 christos # versions had trouble with output in subdirs
4011 1.1.1.2 christos am__obj=sub/conftest.${OBJEXT-o}
4012 1.1.1.2 christos am__minus_obj="-o $am__obj"
4013 1.1 christos case $depmode in
4014 1.1.1.2 christos gcc)
4015 1.1.1.2 christos # This depmode causes a compiler race in universal mode.
4016 1.1.1.2 christos test "$am__universal" = false || continue
4017 1.1.1.2 christos ;;
4018 1.1 christos nosideeffect)
4019 1.1 christos # after this tag, mechanisms are not by side-effect, so they'll
4020 1.1 christos # only be used when explicitly requested
4021 1.1 christos if test "x$enable_dependency_tracking" = xyes; then
4022 1.1 christos continue
4023 1.1 christos else
4024 1.1 christos break
4025 1.1 christos fi
4026 1.1 christos ;;
4027 1.1.1.2 christos msvisualcpp | msvcmsys)
4028 1.1.1.2 christos # This compiler won't grok `-c -o', but also, the minuso test has
4029 1.1.1.2 christos # not run yet. These depmodes are late enough in the game, and
4030 1.1.1.2 christos # so weak that their functioning should not be impacted.
4031 1.1.1.2 christos am__obj=conftest.${OBJEXT-o}
4032 1.1.1.2 christos am__minus_obj=
4033 1.1.1.2 christos ;;
4034 1.1 christos none) break ;;
4035 1.1 christos esac
4036 1.1 christos if depmode=$depmode \
4037 1.1.1.2 christos source=sub/conftest.c object=$am__obj \
4038 1.1 christos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4039 1.1.1.2 christos $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4040 1.1 christos >/dev/null 2>conftest.err &&
4041 1.1.1.2 christos grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4042 1.1 christos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4043 1.1.1.2 christos grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4044 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4045 1.1 christos # icc doesn't choke on unknown options, it will just issue warnings
4046 1.1 christos # or remarks (even with -Werror). So we grep stderr for any message
4047 1.1 christos # that says an option was ignored or not supported.
4048 1.1 christos # When given -MP, icc 7.0 and 7.1 complain thusly:
4049 1.1 christos # icc: Command line warning: ignoring option '-M'; no argument required
4050 1.1 christos # The diagnosis changed in icc 8.0:
4051 1.1 christos # icc: Command line remark: option '-MP' not supported
4052 1.1 christos if (grep 'ignoring option' conftest.err ||
4053 1.1 christos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4054 1.1 christos am_cv_CC_dependencies_compiler_type=$depmode
4055 1.1 christos break
4056 1.1 christos fi
4057 1.1 christos fi
4058 1.1 christos done
4059 1.1 christos
4060 1.1 christos cd ..
4061 1.1 christos rm -rf conftest.dir
4062 1.1 christos else
4063 1.1 christos am_cv_CC_dependencies_compiler_type=none
4064 1.1 christos fi
4065 1.1 christos
4066 1.1 christos fi
4067 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4068 1.1.1.2 christos $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4069 1.1 christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4070 1.1 christos
4071 1.1.1.2 christos if
4072 1.1 christos test "x$enable_dependency_tracking" != xno \
4073 1.1 christos && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4074 1.1 christos am__fastdepCC_TRUE=
4075 1.1 christos am__fastdepCC_FALSE='#'
4076 1.1 christos else
4077 1.1 christos am__fastdepCC_TRUE='#'
4078 1.1 christos am__fastdepCC_FALSE=
4079 1.1 christos fi
4080 1.1 christos
4081 1.1 christos
4082 1.1 christos # Make sure we can run config.sub.
4083 1.1.1.2 christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4084 1.1.1.2 christos as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4085 1.1 christos
4086 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4087 1.1.1.2 christos $as_echo_n "checking build system type... " >&6; }
4088 1.1.1.2 christos if test "${ac_cv_build+set}" = set; then :
4089 1.1.1.2 christos $as_echo_n "(cached) " >&6
4090 1.1.1.2 christos else
4091 1.1.1.2 christos ac_build_alias=$build_alias
4092 1.1.1.2 christos test "x$ac_build_alias" = x &&
4093 1.1.1.2 christos ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4094 1.1.1.2 christos test "x$ac_build_alias" = x &&
4095 1.1.1.2 christos as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4096 1.1.1.2 christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4097 1.1.1.2 christos as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4098 1.1.1.2 christos
4099 1.1.1.2 christos fi
4100 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4101 1.1.1.2 christos $as_echo "$ac_cv_build" >&6; }
4102 1.1.1.2 christos case $ac_cv_build in
4103 1.1.1.2 christos *-*-*) ;;
4104 1.1.1.2 christos *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4105 1.1.1.2 christos esac
4106 1.1 christos build=$ac_cv_build
4107 1.1.1.2 christos ac_save_IFS=$IFS; IFS='-'
4108 1.1.1.2 christos set x $ac_cv_build
4109 1.1.1.2 christos shift
4110 1.1.1.2 christos build_cpu=$1
4111 1.1.1.2 christos build_vendor=$2
4112 1.1.1.2 christos shift; shift
4113 1.1.1.2 christos # Remember, the first character of IFS is used to create $*,
4114 1.1.1.2 christos # except with old shells:
4115 1.1.1.2 christos build_os=$*
4116 1.1.1.2 christos IFS=$ac_save_IFS
4117 1.1.1.2 christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4118 1.1.1.2 christos
4119 1.1.1.2 christos
4120 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4121 1.1.1.2 christos $as_echo_n "checking host system type... " >&6; }
4122 1.1.1.2 christos if test "${ac_cv_host+set}" = set; then :
4123 1.1.1.2 christos $as_echo_n "(cached) " >&6
4124 1.1.1.2 christos else
4125 1.1.1.2 christos if test "x$host_alias" = x; then
4126 1.1.1.2 christos ac_cv_host=$ac_cv_build
4127 1.1.1.2 christos else
4128 1.1.1.2 christos ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4129 1.1.1.2 christos as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4130 1.1.1.2 christos fi
4131 1.1 christos
4132 1.1 christos fi
4133 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4134 1.1.1.2 christos $as_echo "$ac_cv_host" >&6; }
4135 1.1.1.2 christos case $ac_cv_host in
4136 1.1.1.2 christos *-*-*) ;;
4137 1.1.1.2 christos *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4138 1.1.1.2 christos esac
4139 1.1 christos host=$ac_cv_host
4140 1.1.1.2 christos ac_save_IFS=$IFS; IFS='-'
4141 1.1.1.2 christos set x $ac_cv_host
4142 1.1.1.2 christos shift
4143 1.1.1.2 christos host_cpu=$1
4144 1.1.1.2 christos host_vendor=$2
4145 1.1.1.2 christos shift; shift
4146 1.1.1.2 christos # Remember, the first character of IFS is used to create $*,
4147 1.1.1.2 christos # except with old shells:
4148 1.1.1.2 christos host_os=$*
4149 1.1.1.2 christos IFS=$ac_save_IFS
4150 1.1.1.2 christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4151 1.1 christos
4152 1.1 christos
4153 1.1 christos
4154 1.1.1.2 christos # Check whether --with-gnu-ld was given.
4155 1.1.1.2 christos if test "${with_gnu_ld+set}" = set; then :
4156 1.1.1.2 christos withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4157 1.1 christos else
4158 1.1 christos with_gnu_ld=no
4159 1.1.1.2 christos fi
4160 1.1.1.2 christos
4161 1.1 christos # Prepare PATH_SEPARATOR.
4162 1.1 christos # The user is always right.
4163 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
4164 1.1 christos echo "#! /bin/sh" >conf$$.sh
4165 1.1 christos echo "exit 0" >>conf$$.sh
4166 1.1 christos chmod +x conf$$.sh
4167 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4168 1.1 christos PATH_SEPARATOR=';'
4169 1.1 christos else
4170 1.1 christos PATH_SEPARATOR=:
4171 1.1 christos fi
4172 1.1 christos rm -f conf$$.sh
4173 1.1 christos fi
4174 1.1 christos ac_prog=ld
4175 1.1 christos if test "$GCC" = yes; then
4176 1.1 christos # Check if gcc -print-prog-name=ld gives a path.
4177 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4178 1.1.1.2 christos $as_echo_n "checking for ld used by GCC... " >&6; }
4179 1.1 christos case $host in
4180 1.1 christos *-*-mingw*)
4181 1.1 christos # gcc leaves a trailing carriage return which upsets mingw
4182 1.1 christos ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4183 1.1 christos *)
4184 1.1 christos ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4185 1.1 christos esac
4186 1.1 christos case $ac_prog in
4187 1.1 christos # Accept absolute paths.
4188 1.1 christos [\\/]* | [A-Za-z]:[\\/]*)
4189 1.1 christos re_direlt='/[^/][^/]*/\.\./'
4190 1.1 christos # Canonicalize the path of ld
4191 1.1 christos ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4192 1.1 christos while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4193 1.1 christos ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4194 1.1 christos done
4195 1.1 christos test -z "$LD" && LD="$ac_prog"
4196 1.1 christos ;;
4197 1.1 christos "")
4198 1.1 christos # If it fails, then pretend we aren't using GCC.
4199 1.1 christos ac_prog=ld
4200 1.1 christos ;;
4201 1.1 christos *)
4202 1.1 christos # If it is relative, then search for the first ld in PATH.
4203 1.1 christos with_gnu_ld=unknown
4204 1.1 christos ;;
4205 1.1 christos esac
4206 1.1 christos elif test "$with_gnu_ld" = yes; then
4207 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4208 1.1.1.2 christos $as_echo_n "checking for GNU ld... " >&6; }
4209 1.1 christos else
4210 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4211 1.1.1.2 christos $as_echo_n "checking for non-GNU ld... " >&6; }
4212 1.1 christos fi
4213 1.1.1.2 christos if test "${acl_cv_path_LD+set}" = set; then :
4214 1.1.1.2 christos $as_echo_n "(cached) " >&6
4215 1.1 christos else
4216 1.1 christos if test -z "$LD"; then
4217 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4218 1.1 christos for ac_dir in $PATH; do
4219 1.1 christos test -z "$ac_dir" && ac_dir=.
4220 1.1 christos if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221 1.1 christos acl_cv_path_LD="$ac_dir/$ac_prog"
4222 1.1 christos # Check to see if the program is GNU ld. I'd rather use --version,
4223 1.1 christos # but apparently some GNU ld's only accept -v.
4224 1.1 christos # Break only if it was the GNU/non-GNU ld that we prefer.
4225 1.1 christos if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4226 1.1 christos test "$with_gnu_ld" != no && break
4227 1.1 christos else
4228 1.1 christos test "$with_gnu_ld" != yes && break
4229 1.1 christos fi
4230 1.1 christos fi
4231 1.1 christos done
4232 1.1 christos IFS="$ac_save_ifs"
4233 1.1 christos else
4234 1.1 christos acl_cv_path_LD="$LD" # Let the user override the test with a path.
4235 1.1 christos fi
4236 1.1 christos fi
4237 1.1 christos
4238 1.1 christos LD="$acl_cv_path_LD"
4239 1.1 christos if test -n "$LD"; then
4240 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4241 1.1.1.2 christos $as_echo "$LD" >&6; }
4242 1.1 christos else
4243 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 1.1.1.2 christos $as_echo "no" >&6; }
4245 1.1 christos fi
4246 1.1.1.2 christos test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4247 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4248 1.1.1.2 christos $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4249 1.1.1.2 christos if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4250 1.1.1.2 christos $as_echo_n "(cached) " >&6
4251 1.1 christos else
4252 1.1 christos # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4253 1.1 christos if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4254 1.1 christos acl_cv_prog_gnu_ld=yes
4255 1.1 christos else
4256 1.1 christos acl_cv_prog_gnu_ld=no
4257 1.1 christos fi
4258 1.1 christos fi
4259 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4260 1.1.1.2 christos $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4261 1.1 christos with_gnu_ld=$acl_cv_prog_gnu_ld
4262 1.1 christos
4263 1.1 christos
4264 1.1 christos
4265 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4266 1.1.1.2 christos $as_echo_n "checking for shared library run path origin... " >&6; }
4267 1.1.1.2 christos if test "${acl_cv_rpath+set}" = set; then :
4268 1.1.1.2 christos $as_echo_n "(cached) " >&6
4269 1.1 christos else
4270 1.1 christos
4271 1.1 christos CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4272 1.1 christos ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4273 1.1 christos . ./conftest.sh
4274 1.1 christos rm -f ./conftest.sh
4275 1.1 christos acl_cv_rpath=done
4276 1.1 christos
4277 1.1 christos fi
4278 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4279 1.1.1.2 christos $as_echo "$acl_cv_rpath" >&6; }
4280 1.1 christos wl="$acl_cv_wl"
4281 1.1 christos libext="$acl_cv_libext"
4282 1.1 christos shlibext="$acl_cv_shlibext"
4283 1.1 christos hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4284 1.1 christos hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4285 1.1 christos hardcode_direct="$acl_cv_hardcode_direct"
4286 1.1 christos hardcode_minus_L="$acl_cv_hardcode_minus_L"
4287 1.1.1.2 christos # Check whether --enable-rpath was given.
4288 1.1.1.2 christos if test "${enable_rpath+set}" = set; then :
4289 1.1.1.2 christos enableval=$enable_rpath; :
4290 1.1 christos else
4291 1.1 christos enable_rpath=yes
4292 1.1.1.2 christos fi
4293 1.1.1.2 christos
4294 1.1 christos
4295 1.1 christos
4296 1.1 christos
4297 1.1 christos
4298 1.1 christos
4299 1.1 christos
4300 1.1 christos
4301 1.1 christos use_additional=yes
4302 1.1 christos
4303 1.1 christos acl_save_prefix="$prefix"
4304 1.1 christos prefix="$acl_final_prefix"
4305 1.1 christos acl_save_exec_prefix="$exec_prefix"
4306 1.1 christos exec_prefix="$acl_final_exec_prefix"
4307 1.1 christos
4308 1.1 christos eval additional_includedir=\"$includedir\"
4309 1.1 christos eval additional_libdir=\"$libdir\"
4310 1.1 christos
4311 1.1 christos exec_prefix="$acl_save_exec_prefix"
4312 1.1 christos prefix="$acl_save_prefix"
4313 1.1 christos
4314 1.1 christos
4315 1.1.1.2 christos # Check whether --with-libiconv-prefix was given.
4316 1.1.1.2 christos if test "${with_libiconv_prefix+set}" = set; then :
4317 1.1.1.2 christos withval=$with_libiconv_prefix;
4318 1.1 christos if test "X$withval" = "Xno"; then
4319 1.1 christos use_additional=no
4320 1.1 christos else
4321 1.1 christos if test "X$withval" = "X"; then
4322 1.1 christos
4323 1.1 christos acl_save_prefix="$prefix"
4324 1.1 christos prefix="$acl_final_prefix"
4325 1.1 christos acl_save_exec_prefix="$exec_prefix"
4326 1.1 christos exec_prefix="$acl_final_exec_prefix"
4327 1.1 christos
4328 1.1 christos eval additional_includedir=\"$includedir\"
4329 1.1 christos eval additional_libdir=\"$libdir\"
4330 1.1 christos
4331 1.1 christos exec_prefix="$acl_save_exec_prefix"
4332 1.1 christos prefix="$acl_save_prefix"
4333 1.1 christos
4334 1.1 christos else
4335 1.1 christos additional_includedir="$withval/include"
4336 1.1 christos additional_libdir="$withval/lib"
4337 1.1 christos fi
4338 1.1 christos fi
4339 1.1 christos
4340 1.1.1.2 christos fi
4341 1.1.1.2 christos
4342 1.1 christos LIBICONV=
4343 1.1 christos LTLIBICONV=
4344 1.1 christos INCICONV=
4345 1.1 christos rpathdirs=
4346 1.1 christos ltrpathdirs=
4347 1.1 christos names_already_handled=
4348 1.1 christos names_next_round='iconv '
4349 1.1 christos while test -n "$names_next_round"; do
4350 1.1 christos names_this_round="$names_next_round"
4351 1.1 christos names_next_round=
4352 1.1 christos for name in $names_this_round; do
4353 1.1 christos already_handled=
4354 1.1 christos for n in $names_already_handled; do
4355 1.1 christos if test "$n" = "$name"; then
4356 1.1 christos already_handled=yes
4357 1.1 christos break
4358 1.1 christos fi
4359 1.1 christos done
4360 1.1 christos if test -z "$already_handled"; then
4361 1.1 christos names_already_handled="$names_already_handled $name"
4362 1.1 christos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4363 1.1 christos eval value=\"\$HAVE_LIB$uppername\"
4364 1.1 christos if test -n "$value"; then
4365 1.1 christos if test "$value" = yes; then
4366 1.1 christos eval value=\"\$LIB$uppername\"
4367 1.1 christos test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4368 1.1 christos eval value=\"\$LTLIB$uppername\"
4369 1.1 christos test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4370 1.1 christos else
4371 1.1 christos :
4372 1.1 christos fi
4373 1.1 christos else
4374 1.1 christos found_dir=
4375 1.1 christos found_la=
4376 1.1 christos found_so=
4377 1.1 christos found_a=
4378 1.1 christos if test $use_additional = yes; then
4379 1.1 christos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4380 1.1 christos found_dir="$additional_libdir"
4381 1.1 christos found_so="$additional_libdir/lib$name.$shlibext"
4382 1.1 christos if test -f "$additional_libdir/lib$name.la"; then
4383 1.1 christos found_la="$additional_libdir/lib$name.la"
4384 1.1 christos fi
4385 1.1 christos else
4386 1.1 christos if test -f "$additional_libdir/lib$name.$libext"; then
4387 1.1 christos found_dir="$additional_libdir"
4388 1.1 christos found_a="$additional_libdir/lib$name.$libext"
4389 1.1 christos if test -f "$additional_libdir/lib$name.la"; then
4390 1.1 christos found_la="$additional_libdir/lib$name.la"
4391 1.1 christos fi
4392 1.1 christos fi
4393 1.1 christos fi
4394 1.1 christos fi
4395 1.1 christos if test "X$found_dir" = "X"; then
4396 1.1 christos for x in $LDFLAGS $LTLIBICONV; do
4397 1.1 christos
4398 1.1 christos acl_save_prefix="$prefix"
4399 1.1 christos prefix="$acl_final_prefix"
4400 1.1 christos acl_save_exec_prefix="$exec_prefix"
4401 1.1 christos exec_prefix="$acl_final_exec_prefix"
4402 1.1 christos eval x=\"$x\"
4403 1.1 christos exec_prefix="$acl_save_exec_prefix"
4404 1.1 christos prefix="$acl_save_prefix"
4405 1.1 christos
4406 1.1 christos case "$x" in
4407 1.1 christos -L*)
4408 1.1 christos dir=`echo "X$x" | sed -e 's/^X-L//'`
4409 1.1 christos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4410 1.1 christos found_dir="$dir"
4411 1.1 christos found_so="$dir/lib$name.$shlibext"
4412 1.1 christos if test -f "$dir/lib$name.la"; then
4413 1.1 christos found_la="$dir/lib$name.la"
4414 1.1 christos fi
4415 1.1 christos else
4416 1.1 christos if test -f "$dir/lib$name.$libext"; then
4417 1.1 christos found_dir="$dir"
4418 1.1 christos found_a="$dir/lib$name.$libext"
4419 1.1 christos if test -f "$dir/lib$name.la"; then
4420 1.1 christos found_la="$dir/lib$name.la"
4421 1.1 christos fi
4422 1.1 christos fi
4423 1.1 christos fi
4424 1.1 christos ;;
4425 1.1 christos esac
4426 1.1 christos if test "X$found_dir" != "X"; then
4427 1.1 christos break
4428 1.1 christos fi
4429 1.1 christos done
4430 1.1 christos fi
4431 1.1 christos if test "X$found_dir" != "X"; then
4432 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4433 1.1 christos if test "X$found_so" != "X"; then
4434 1.1 christos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4435 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4436 1.1 christos else
4437 1.1 christos haveit=
4438 1.1 christos for x in $ltrpathdirs; do
4439 1.1 christos if test "X$x" = "X$found_dir"; then
4440 1.1 christos haveit=yes
4441 1.1 christos break
4442 1.1 christos fi
4443 1.1 christos done
4444 1.1 christos if test -z "$haveit"; then
4445 1.1 christos ltrpathdirs="$ltrpathdirs $found_dir"
4446 1.1 christos fi
4447 1.1 christos if test "$hardcode_direct" = yes; then
4448 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4449 1.1 christos else
4450 1.1 christos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4451 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4452 1.1 christos haveit=
4453 1.1 christos for x in $rpathdirs; do
4454 1.1 christos if test "X$x" = "X$found_dir"; then
4455 1.1 christos haveit=yes
4456 1.1 christos break
4457 1.1 christos fi
4458 1.1 christos done
4459 1.1 christos if test -z "$haveit"; then
4460 1.1 christos rpathdirs="$rpathdirs $found_dir"
4461 1.1 christos fi
4462 1.1 christos else
4463 1.1 christos haveit=
4464 1.1 christos for x in $LDFLAGS $LIBICONV; do
4465 1.1 christos
4466 1.1 christos acl_save_prefix="$prefix"
4467 1.1 christos prefix="$acl_final_prefix"
4468 1.1 christos acl_save_exec_prefix="$exec_prefix"
4469 1.1 christos exec_prefix="$acl_final_exec_prefix"
4470 1.1 christos eval x=\"$x\"
4471 1.1 christos exec_prefix="$acl_save_exec_prefix"
4472 1.1 christos prefix="$acl_save_prefix"
4473 1.1 christos
4474 1.1 christos if test "X$x" = "X-L$found_dir"; then
4475 1.1 christos haveit=yes
4476 1.1 christos break
4477 1.1 christos fi
4478 1.1 christos done
4479 1.1 christos if test -z "$haveit"; then
4480 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4481 1.1 christos fi
4482 1.1 christos if test "$hardcode_minus_L" != no; then
4483 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4484 1.1 christos else
4485 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4486 1.1 christos fi
4487 1.1 christos fi
4488 1.1 christos fi
4489 1.1 christos fi
4490 1.1 christos else
4491 1.1 christos if test "X$found_a" != "X"; then
4492 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4493 1.1 christos else
4494 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4495 1.1 christos fi
4496 1.1 christos fi
4497 1.1 christos additional_includedir=
4498 1.1 christos case "$found_dir" in
4499 1.1 christos */lib | */lib/)
4500 1.1 christos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4501 1.1 christos additional_includedir="$basedir/include"
4502 1.1 christos ;;
4503 1.1 christos esac
4504 1.1 christos if test "X$additional_includedir" != "X"; then
4505 1.1 christos if test "X$additional_includedir" != "X/usr/include"; then
4506 1.1 christos haveit=
4507 1.1 christos if test "X$additional_includedir" = "X/usr/local/include"; then
4508 1.1 christos if test -n "$GCC"; then
4509 1.1 christos case $host_os in
4510 1.1 christos linux*) haveit=yes;;
4511 1.1 christos esac
4512 1.1 christos fi
4513 1.1 christos fi
4514 1.1 christos if test -z "$haveit"; then
4515 1.1 christos for x in $CPPFLAGS $INCICONV; do
4516 1.1 christos
4517 1.1 christos acl_save_prefix="$prefix"
4518 1.1 christos prefix="$acl_final_prefix"
4519 1.1 christos acl_save_exec_prefix="$exec_prefix"
4520 1.1 christos exec_prefix="$acl_final_exec_prefix"
4521 1.1 christos eval x=\"$x\"
4522 1.1 christos exec_prefix="$acl_save_exec_prefix"
4523 1.1 christos prefix="$acl_save_prefix"
4524 1.1 christos
4525 1.1 christos if test "X$x" = "X-I$additional_includedir"; then
4526 1.1 christos haveit=yes
4527 1.1 christos break
4528 1.1 christos fi
4529 1.1 christos done
4530 1.1 christos if test -z "$haveit"; then
4531 1.1 christos if test -d "$additional_includedir"; then
4532 1.1 christos INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4533 1.1 christos fi
4534 1.1 christos fi
4535 1.1 christos fi
4536 1.1 christos fi
4537 1.1 christos fi
4538 1.1 christos if test -n "$found_la"; then
4539 1.1 christos save_libdir="$libdir"
4540 1.1 christos case "$found_la" in
4541 1.1 christos */* | *\\*) . "$found_la" ;;
4542 1.1 christos *) . "./$found_la" ;;
4543 1.1 christos esac
4544 1.1 christos libdir="$save_libdir"
4545 1.1 christos for dep in $dependency_libs; do
4546 1.1 christos case "$dep" in
4547 1.1 christos -L*)
4548 1.1 christos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4549 1.1 christos if test "X$additional_libdir" != "X/usr/lib"; then
4550 1.1 christos haveit=
4551 1.1 christos if test "X$additional_libdir" = "X/usr/local/lib"; then
4552 1.1 christos if test -n "$GCC"; then
4553 1.1 christos case $host_os in
4554 1.1 christos linux*) haveit=yes;;
4555 1.1 christos esac
4556 1.1 christos fi
4557 1.1 christos fi
4558 1.1 christos if test -z "$haveit"; then
4559 1.1 christos haveit=
4560 1.1 christos for x in $LDFLAGS $LIBICONV; do
4561 1.1 christos
4562 1.1 christos acl_save_prefix="$prefix"
4563 1.1 christos prefix="$acl_final_prefix"
4564 1.1 christos acl_save_exec_prefix="$exec_prefix"
4565 1.1 christos exec_prefix="$acl_final_exec_prefix"
4566 1.1 christos eval x=\"$x\"
4567 1.1 christos exec_prefix="$acl_save_exec_prefix"
4568 1.1 christos prefix="$acl_save_prefix"
4569 1.1 christos
4570 1.1 christos if test "X$x" = "X-L$additional_libdir"; then
4571 1.1 christos haveit=yes
4572 1.1 christos break
4573 1.1 christos fi
4574 1.1 christos done
4575 1.1 christos if test -z "$haveit"; then
4576 1.1 christos if test -d "$additional_libdir"; then
4577 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4578 1.1 christos fi
4579 1.1 christos fi
4580 1.1 christos haveit=
4581 1.1 christos for x in $LDFLAGS $LTLIBICONV; do
4582 1.1 christos
4583 1.1 christos acl_save_prefix="$prefix"
4584 1.1 christos prefix="$acl_final_prefix"
4585 1.1 christos acl_save_exec_prefix="$exec_prefix"
4586 1.1 christos exec_prefix="$acl_final_exec_prefix"
4587 1.1 christos eval x=\"$x\"
4588 1.1 christos exec_prefix="$acl_save_exec_prefix"
4589 1.1 christos prefix="$acl_save_prefix"
4590 1.1 christos
4591 1.1 christos if test "X$x" = "X-L$additional_libdir"; then
4592 1.1 christos haveit=yes
4593 1.1 christos break
4594 1.1 christos fi
4595 1.1 christos done
4596 1.1 christos if test -z "$haveit"; then
4597 1.1 christos if test -d "$additional_libdir"; then
4598 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4599 1.1 christos fi
4600 1.1 christos fi
4601 1.1 christos fi
4602 1.1 christos fi
4603 1.1 christos ;;
4604 1.1 christos -R*)
4605 1.1 christos dir=`echo "X$dep" | sed -e 's/^X-R//'`
4606 1.1 christos if test "$enable_rpath" != no; then
4607 1.1 christos haveit=
4608 1.1 christos for x in $rpathdirs; do
4609 1.1 christos if test "X$x" = "X$dir"; then
4610 1.1 christos haveit=yes
4611 1.1 christos break
4612 1.1 christos fi
4613 1.1 christos done
4614 1.1 christos if test -z "$haveit"; then
4615 1.1 christos rpathdirs="$rpathdirs $dir"
4616 1.1 christos fi
4617 1.1 christos haveit=
4618 1.1 christos for x in $ltrpathdirs; do
4619 1.1 christos if test "X$x" = "X$dir"; then
4620 1.1 christos haveit=yes
4621 1.1 christos break
4622 1.1 christos fi
4623 1.1 christos done
4624 1.1 christos if test -z "$haveit"; then
4625 1.1 christos ltrpathdirs="$ltrpathdirs $dir"
4626 1.1 christos fi
4627 1.1 christos fi
4628 1.1 christos ;;
4629 1.1 christos -l*)
4630 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4631 1.1 christos ;;
4632 1.1 christos *.la)
4633 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4634 1.1 christos ;;
4635 1.1 christos *)
4636 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4637 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4638 1.1 christos ;;
4639 1.1 christos esac
4640 1.1 christos done
4641 1.1 christos fi
4642 1.1 christos else
4643 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4644 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4645 1.1 christos fi
4646 1.1 christos fi
4647 1.1 christos fi
4648 1.1 christos done
4649 1.1 christos done
4650 1.1 christos if test "X$rpathdirs" != "X"; then
4651 1.1 christos if test -n "$hardcode_libdir_separator"; then
4652 1.1 christos alldirs=
4653 1.1 christos for found_dir in $rpathdirs; do
4654 1.1 christos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4655 1.1 christos done
4656 1.1 christos acl_save_libdir="$libdir"
4657 1.1 christos libdir="$alldirs"
4658 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\"
4659 1.1 christos libdir="$acl_save_libdir"
4660 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4661 1.1 christos else
4662 1.1 christos for found_dir in $rpathdirs; do
4663 1.1 christos acl_save_libdir="$libdir"
4664 1.1 christos libdir="$found_dir"
4665 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\"
4666 1.1 christos libdir="$acl_save_libdir"
4667 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4668 1.1 christos done
4669 1.1 christos fi
4670 1.1 christos fi
4671 1.1 christos if test "X$ltrpathdirs" != "X"; then
4672 1.1 christos for found_dir in $ltrpathdirs; do
4673 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4674 1.1 christos done
4675 1.1 christos fi
4676 1.1 christos
4677 1.1 christos
4678 1.1 christos
4679 1.1 christos
4680 1.1 christos
4681 1.1 christos
4682 1.1 christos
4683 1.1 christos
4684 1.1 christos
4685 1.1 christos
4686 1.1 christos
4687 1.1 christos
4688 1.1 christos
4689 1.1 christos
4690 1.1 christos
4691 1.1 christos
4692 1.1 christos
4693 1.1 christos
4694 1.1 christos
4695 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4696 1.1.1.2 christos $as_echo_n "checking whether NLS is requested... " >&6; }
4697 1.1.1.2 christos # Check whether --enable-nls was given.
4698 1.1.1.2 christos if test "${enable_nls+set}" = set; then :
4699 1.1.1.2 christos enableval=$enable_nls; USE_NLS=$enableval
4700 1.1 christos else
4701 1.1 christos USE_NLS=yes
4702 1.1.1.2 christos fi
4703 1.1.1.2 christos
4704 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4705 1.1.1.2 christos $as_echo "$USE_NLS" >&6; }
4706 1.1 christos
4707 1.1 christos
4708 1.1 christos
4709 1.1 christos
4710 1.1 christos LIBINTL=
4711 1.1 christos LTLIBINTL=
4712 1.1 christos POSUB=
4713 1.1 christos
4714 1.1 christos if test "$USE_NLS" = "yes"; then
4715 1.1 christos gt_use_preinstalled_gnugettext=no
4716 1.1 christos
4717 1.1 christos
4718 1.1 christos
4719 1.1 christos
4720 1.1 christos
4721 1.1 christos
4722 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
4723 1.1.1.2 christos $as_echo_n "checking for GNU gettext in libc... " >&6; }
4724 1.1.1.2 christos if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
4725 1.1.1.2 christos $as_echo_n "(cached) " >&6
4726 1.1 christos else
4727 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 1.1 christos /* end confdefs.h. */
4729 1.1 christos #include <libintl.h>
4730 1.1 christos extern int _nl_msg_cat_cntr;
4731 1.1 christos extern int *_nl_domain_bindings;
4732 1.1 christos int
4733 1.1 christos main ()
4734 1.1 christos {
4735 1.1 christos bindtextdomain ("", "");
4736 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4737 1.1 christos ;
4738 1.1 christos return 0;
4739 1.1 christos }
4740 1.1 christos _ACEOF
4741 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
4742 1.1 christos gt_cv_func_gnugettext1_libc=yes
4743 1.1 christos else
4744 1.1.1.2 christos gt_cv_func_gnugettext1_libc=no
4745 1.1 christos fi
4746 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
4747 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
4748 1.1 christos fi
4749 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
4750 1.1.1.2 christos $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
4751 1.1 christos
4752 1.1 christos if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4753 1.1 christos
4754 1.1 christos
4755 1.1 christos
4756 1.1 christos
4757 1.1 christos
4758 1.1 christos am_save_CPPFLAGS="$CPPFLAGS"
4759 1.1 christos
4760 1.1 christos for element in $INCICONV; do
4761 1.1 christos haveit=
4762 1.1 christos for x in $CPPFLAGS; do
4763 1.1 christos
4764 1.1 christos acl_save_prefix="$prefix"
4765 1.1 christos prefix="$acl_final_prefix"
4766 1.1 christos acl_save_exec_prefix="$exec_prefix"
4767 1.1 christos exec_prefix="$acl_final_exec_prefix"
4768 1.1 christos eval x=\"$x\"
4769 1.1 christos exec_prefix="$acl_save_exec_prefix"
4770 1.1 christos prefix="$acl_save_prefix"
4771 1.1 christos
4772 1.1 christos if test "X$x" = "X$element"; then
4773 1.1 christos haveit=yes
4774 1.1 christos break
4775 1.1 christos fi
4776 1.1 christos done
4777 1.1 christos if test -z "$haveit"; then
4778 1.1 christos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4779 1.1 christos fi
4780 1.1 christos done
4781 1.1 christos
4782 1.1 christos
4783 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4784 1.1.1.2 christos $as_echo_n "checking for iconv... " >&6; }
4785 1.1.1.2 christos if test "${am_cv_func_iconv+set}" = set; then :
4786 1.1.1.2 christos $as_echo_n "(cached) " >&6
4787 1.1 christos else
4788 1.1 christos
4789 1.1 christos am_cv_func_iconv="no, consider installing GNU libiconv"
4790 1.1 christos am_cv_lib_iconv=no
4791 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 1.1 christos /* end confdefs.h. */
4793 1.1 christos #include <stdlib.h>
4794 1.1 christos #include <iconv.h>
4795 1.1 christos int
4796 1.1 christos main ()
4797 1.1 christos {
4798 1.1 christos iconv_t cd = iconv_open("","");
4799 1.1 christos iconv(cd,NULL,NULL,NULL,NULL);
4800 1.1 christos iconv_close(cd);
4801 1.1 christos ;
4802 1.1 christos return 0;
4803 1.1 christos }
4804 1.1 christos _ACEOF
4805 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
4806 1.1 christos am_cv_func_iconv=yes
4807 1.1 christos fi
4808 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
4809 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
4810 1.1 christos if test "$am_cv_func_iconv" != yes; then
4811 1.1 christos am_save_LIBS="$LIBS"
4812 1.1 christos LIBS="$LIBS $LIBICONV"
4813 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 1.1 christos /* end confdefs.h. */
4815 1.1 christos #include <stdlib.h>
4816 1.1 christos #include <iconv.h>
4817 1.1 christos int
4818 1.1 christos main ()
4819 1.1 christos {
4820 1.1 christos iconv_t cd = iconv_open("","");
4821 1.1 christos iconv(cd,NULL,NULL,NULL,NULL);
4822 1.1 christos iconv_close(cd);
4823 1.1 christos ;
4824 1.1 christos return 0;
4825 1.1 christos }
4826 1.1 christos _ACEOF
4827 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
4828 1.1 christos am_cv_lib_iconv=yes
4829 1.1 christos am_cv_func_iconv=yes
4830 1.1 christos fi
4831 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
4832 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
4833 1.1 christos LIBS="$am_save_LIBS"
4834 1.1 christos fi
4835 1.1 christos
4836 1.1 christos fi
4837 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4838 1.1.1.2 christos $as_echo "$am_cv_func_iconv" >&6; }
4839 1.1 christos if test "$am_cv_func_iconv" = yes; then
4840 1.1 christos
4841 1.1.1.2 christos $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4842 1.1 christos
4843 1.1 christos fi
4844 1.1 christos if test "$am_cv_lib_iconv" = yes; then
4845 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4846 1.1.1.2 christos $as_echo_n "checking how to link with libiconv... " >&6; }
4847 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4848 1.1.1.2 christos $as_echo "$LIBICONV" >&6; }
4849 1.1 christos else
4850 1.1 christos CPPFLAGS="$am_save_CPPFLAGS"
4851 1.1 christos LIBICONV=
4852 1.1 christos LTLIBICONV=
4853 1.1 christos fi
4854 1.1 christos
4855 1.1 christos
4856 1.1 christos
4857 1.1 christos
4858 1.1 christos
4859 1.1 christos
4860 1.1 christos use_additional=yes
4861 1.1 christos
4862 1.1 christos acl_save_prefix="$prefix"
4863 1.1 christos prefix="$acl_final_prefix"
4864 1.1 christos acl_save_exec_prefix="$exec_prefix"
4865 1.1 christos exec_prefix="$acl_final_exec_prefix"
4866 1.1 christos
4867 1.1 christos eval additional_includedir=\"$includedir\"
4868 1.1 christos eval additional_libdir=\"$libdir\"
4869 1.1 christos
4870 1.1 christos exec_prefix="$acl_save_exec_prefix"
4871 1.1 christos prefix="$acl_save_prefix"
4872 1.1 christos
4873 1.1 christos
4874 1.1.1.2 christos # Check whether --with-libintl-prefix was given.
4875 1.1.1.2 christos if test "${with_libintl_prefix+set}" = set; then :
4876 1.1.1.2 christos withval=$with_libintl_prefix;
4877 1.1 christos if test "X$withval" = "Xno"; then
4878 1.1 christos use_additional=no
4879 1.1 christos else
4880 1.1 christos if test "X$withval" = "X"; then
4881 1.1 christos
4882 1.1 christos acl_save_prefix="$prefix"
4883 1.1 christos prefix="$acl_final_prefix"
4884 1.1 christos acl_save_exec_prefix="$exec_prefix"
4885 1.1 christos exec_prefix="$acl_final_exec_prefix"
4886 1.1 christos
4887 1.1 christos eval additional_includedir=\"$includedir\"
4888 1.1 christos eval additional_libdir=\"$libdir\"
4889 1.1 christos
4890 1.1 christos exec_prefix="$acl_save_exec_prefix"
4891 1.1 christos prefix="$acl_save_prefix"
4892 1.1 christos
4893 1.1 christos else
4894 1.1 christos additional_includedir="$withval/include"
4895 1.1 christos additional_libdir="$withval/lib"
4896 1.1 christos fi
4897 1.1 christos fi
4898 1.1 christos
4899 1.1.1.2 christos fi
4900 1.1.1.2 christos
4901 1.1 christos LIBINTL=
4902 1.1 christos LTLIBINTL=
4903 1.1 christos INCINTL=
4904 1.1 christos rpathdirs=
4905 1.1 christos ltrpathdirs=
4906 1.1 christos names_already_handled=
4907 1.1 christos names_next_round='intl '
4908 1.1 christos while test -n "$names_next_round"; do
4909 1.1 christos names_this_round="$names_next_round"
4910 1.1 christos names_next_round=
4911 1.1 christos for name in $names_this_round; do
4912 1.1 christos already_handled=
4913 1.1 christos for n in $names_already_handled; do
4914 1.1 christos if test "$n" = "$name"; then
4915 1.1 christos already_handled=yes
4916 1.1 christos break
4917 1.1 christos fi
4918 1.1 christos done
4919 1.1 christos if test -z "$already_handled"; then
4920 1.1 christos names_already_handled="$names_already_handled $name"
4921 1.1 christos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4922 1.1 christos eval value=\"\$HAVE_LIB$uppername\"
4923 1.1 christos if test -n "$value"; then
4924 1.1 christos if test "$value" = yes; then
4925 1.1 christos eval value=\"\$LIB$uppername\"
4926 1.1 christos test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4927 1.1 christos eval value=\"\$LTLIB$uppername\"
4928 1.1 christos test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4929 1.1 christos else
4930 1.1 christos :
4931 1.1 christos fi
4932 1.1 christos else
4933 1.1 christos found_dir=
4934 1.1 christos found_la=
4935 1.1 christos found_so=
4936 1.1 christos found_a=
4937 1.1 christos if test $use_additional = yes; then
4938 1.1 christos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4939 1.1 christos found_dir="$additional_libdir"
4940 1.1 christos found_so="$additional_libdir/lib$name.$shlibext"
4941 1.1 christos if test -f "$additional_libdir/lib$name.la"; then
4942 1.1 christos found_la="$additional_libdir/lib$name.la"
4943 1.1 christos fi
4944 1.1 christos else
4945 1.1 christos if test -f "$additional_libdir/lib$name.$libext"; then
4946 1.1 christos found_dir="$additional_libdir"
4947 1.1 christos found_a="$additional_libdir/lib$name.$libext"
4948 1.1 christos if test -f "$additional_libdir/lib$name.la"; then
4949 1.1 christos found_la="$additional_libdir/lib$name.la"
4950 1.1 christos fi
4951 1.1 christos fi
4952 1.1 christos fi
4953 1.1 christos fi
4954 1.1 christos if test "X$found_dir" = "X"; then
4955 1.1 christos for x in $LDFLAGS $LTLIBINTL; do
4956 1.1 christos
4957 1.1 christos acl_save_prefix="$prefix"
4958 1.1 christos prefix="$acl_final_prefix"
4959 1.1 christos acl_save_exec_prefix="$exec_prefix"
4960 1.1 christos exec_prefix="$acl_final_exec_prefix"
4961 1.1 christos eval x=\"$x\"
4962 1.1 christos exec_prefix="$acl_save_exec_prefix"
4963 1.1 christos prefix="$acl_save_prefix"
4964 1.1 christos
4965 1.1 christos case "$x" in
4966 1.1 christos -L*)
4967 1.1 christos dir=`echo "X$x" | sed -e 's/^X-L//'`
4968 1.1 christos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4969 1.1 christos found_dir="$dir"
4970 1.1 christos found_so="$dir/lib$name.$shlibext"
4971 1.1 christos if test -f "$dir/lib$name.la"; then
4972 1.1 christos found_la="$dir/lib$name.la"
4973 1.1 christos fi
4974 1.1 christos else
4975 1.1 christos if test -f "$dir/lib$name.$libext"; then
4976 1.1 christos found_dir="$dir"
4977 1.1 christos found_a="$dir/lib$name.$libext"
4978 1.1 christos if test -f "$dir/lib$name.la"; then
4979 1.1 christos found_la="$dir/lib$name.la"
4980 1.1 christos fi
4981 1.1 christos fi
4982 1.1 christos fi
4983 1.1 christos ;;
4984 1.1 christos esac
4985 1.1 christos if test "X$found_dir" != "X"; then
4986 1.1 christos break
4987 1.1 christos fi
4988 1.1 christos done
4989 1.1 christos fi
4990 1.1 christos if test "X$found_dir" != "X"; then
4991 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4992 1.1 christos if test "X$found_so" != "X"; then
4993 1.1 christos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4994 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4995 1.1 christos else
4996 1.1 christos haveit=
4997 1.1 christos for x in $ltrpathdirs; do
4998 1.1 christos if test "X$x" = "X$found_dir"; then
4999 1.1 christos haveit=yes
5000 1.1 christos break
5001 1.1 christos fi
5002 1.1 christos done
5003 1.1 christos if test -z "$haveit"; then
5004 1.1 christos ltrpathdirs="$ltrpathdirs $found_dir"
5005 1.1 christos fi
5006 1.1 christos if test "$hardcode_direct" = yes; then
5007 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5008 1.1 christos else
5009 1.1 christos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5010 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5011 1.1 christos haveit=
5012 1.1 christos for x in $rpathdirs; do
5013 1.1 christos if test "X$x" = "X$found_dir"; then
5014 1.1 christos haveit=yes
5015 1.1 christos break
5016 1.1 christos fi
5017 1.1 christos done
5018 1.1 christos if test -z "$haveit"; then
5019 1.1 christos rpathdirs="$rpathdirs $found_dir"
5020 1.1 christos fi
5021 1.1 christos else
5022 1.1 christos haveit=
5023 1.1 christos for x in $LDFLAGS $LIBINTL; do
5024 1.1 christos
5025 1.1 christos acl_save_prefix="$prefix"
5026 1.1 christos prefix="$acl_final_prefix"
5027 1.1 christos acl_save_exec_prefix="$exec_prefix"
5028 1.1 christos exec_prefix="$acl_final_exec_prefix"
5029 1.1 christos eval x=\"$x\"
5030 1.1 christos exec_prefix="$acl_save_exec_prefix"
5031 1.1 christos prefix="$acl_save_prefix"
5032 1.1 christos
5033 1.1 christos if test "X$x" = "X-L$found_dir"; then
5034 1.1 christos haveit=yes
5035 1.1 christos break
5036 1.1 christos fi
5037 1.1 christos done
5038 1.1 christos if test -z "$haveit"; then
5039 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5040 1.1 christos fi
5041 1.1 christos if test "$hardcode_minus_L" != no; then
5042 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5043 1.1 christos else
5044 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5045 1.1 christos fi
5046 1.1 christos fi
5047 1.1 christos fi
5048 1.1 christos fi
5049 1.1 christos else
5050 1.1 christos if test "X$found_a" != "X"; then
5051 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5052 1.1 christos else
5053 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5054 1.1 christos fi
5055 1.1 christos fi
5056 1.1 christos additional_includedir=
5057 1.1 christos case "$found_dir" in
5058 1.1 christos */lib | */lib/)
5059 1.1 christos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5060 1.1 christos additional_includedir="$basedir/include"
5061 1.1 christos ;;
5062 1.1 christos esac
5063 1.1 christos if test "X$additional_includedir" != "X"; then
5064 1.1 christos if test "X$additional_includedir" != "X/usr/include"; then
5065 1.1 christos haveit=
5066 1.1 christos if test "X$additional_includedir" = "X/usr/local/include"; then
5067 1.1 christos if test -n "$GCC"; then
5068 1.1 christos case $host_os in
5069 1.1 christos linux*) haveit=yes;;
5070 1.1 christos esac
5071 1.1 christos fi
5072 1.1 christos fi
5073 1.1 christos if test -z "$haveit"; then
5074 1.1 christos for x in $CPPFLAGS $INCINTL; do
5075 1.1 christos
5076 1.1 christos acl_save_prefix="$prefix"
5077 1.1 christos prefix="$acl_final_prefix"
5078 1.1 christos acl_save_exec_prefix="$exec_prefix"
5079 1.1 christos exec_prefix="$acl_final_exec_prefix"
5080 1.1 christos eval x=\"$x\"
5081 1.1 christos exec_prefix="$acl_save_exec_prefix"
5082 1.1 christos prefix="$acl_save_prefix"
5083 1.1 christos
5084 1.1 christos if test "X$x" = "X-I$additional_includedir"; then
5085 1.1 christos haveit=yes
5086 1.1 christos break
5087 1.1 christos fi
5088 1.1 christos done
5089 1.1 christos if test -z "$haveit"; then
5090 1.1 christos if test -d "$additional_includedir"; then
5091 1.1 christos INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5092 1.1 christos fi
5093 1.1 christos fi
5094 1.1 christos fi
5095 1.1 christos fi
5096 1.1 christos fi
5097 1.1 christos if test -n "$found_la"; then
5098 1.1 christos save_libdir="$libdir"
5099 1.1 christos case "$found_la" in
5100 1.1 christos */* | *\\*) . "$found_la" ;;
5101 1.1 christos *) . "./$found_la" ;;
5102 1.1 christos esac
5103 1.1 christos libdir="$save_libdir"
5104 1.1 christos for dep in $dependency_libs; do
5105 1.1 christos case "$dep" in
5106 1.1 christos -L*)
5107 1.1 christos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5108 1.1 christos if test "X$additional_libdir" != "X/usr/lib"; then
5109 1.1 christos haveit=
5110 1.1 christos if test "X$additional_libdir" = "X/usr/local/lib"; then
5111 1.1 christos if test -n "$GCC"; then
5112 1.1 christos case $host_os in
5113 1.1 christos linux*) haveit=yes;;
5114 1.1 christos esac
5115 1.1 christos fi
5116 1.1 christos fi
5117 1.1 christos if test -z "$haveit"; then
5118 1.1 christos haveit=
5119 1.1 christos for x in $LDFLAGS $LIBINTL; do
5120 1.1 christos
5121 1.1 christos acl_save_prefix="$prefix"
5122 1.1 christos prefix="$acl_final_prefix"
5123 1.1 christos acl_save_exec_prefix="$exec_prefix"
5124 1.1 christos exec_prefix="$acl_final_exec_prefix"
5125 1.1 christos eval x=\"$x\"
5126 1.1 christos exec_prefix="$acl_save_exec_prefix"
5127 1.1 christos prefix="$acl_save_prefix"
5128 1.1 christos
5129 1.1 christos if test "X$x" = "X-L$additional_libdir"; then
5130 1.1 christos haveit=yes
5131 1.1 christos break
5132 1.1 christos fi
5133 1.1 christos done
5134 1.1 christos if test -z "$haveit"; then
5135 1.1 christos if test -d "$additional_libdir"; then
5136 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5137 1.1 christos fi
5138 1.1 christos fi
5139 1.1 christos haveit=
5140 1.1 christos for x in $LDFLAGS $LTLIBINTL; do
5141 1.1 christos
5142 1.1 christos acl_save_prefix="$prefix"
5143 1.1 christos prefix="$acl_final_prefix"
5144 1.1 christos acl_save_exec_prefix="$exec_prefix"
5145 1.1 christos exec_prefix="$acl_final_exec_prefix"
5146 1.1 christos eval x=\"$x\"
5147 1.1 christos exec_prefix="$acl_save_exec_prefix"
5148 1.1 christos prefix="$acl_save_prefix"
5149 1.1 christos
5150 1.1 christos if test "X$x" = "X-L$additional_libdir"; then
5151 1.1 christos haveit=yes
5152 1.1 christos break
5153 1.1 christos fi
5154 1.1 christos done
5155 1.1 christos if test -z "$haveit"; then
5156 1.1 christos if test -d "$additional_libdir"; then
5157 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5158 1.1 christos fi
5159 1.1 christos fi
5160 1.1 christos fi
5161 1.1 christos fi
5162 1.1 christos ;;
5163 1.1 christos -R*)
5164 1.1 christos dir=`echo "X$dep" | sed -e 's/^X-R//'`
5165 1.1 christos if test "$enable_rpath" != no; then
5166 1.1 christos haveit=
5167 1.1 christos for x in $rpathdirs; do
5168 1.1 christos if test "X$x" = "X$dir"; then
5169 1.1 christos haveit=yes
5170 1.1 christos break
5171 1.1 christos fi
5172 1.1 christos done
5173 1.1 christos if test -z "$haveit"; then
5174 1.1 christos rpathdirs="$rpathdirs $dir"
5175 1.1 christos fi
5176 1.1 christos haveit=
5177 1.1 christos for x in $ltrpathdirs; do
5178 1.1 christos if test "X$x" = "X$dir"; then
5179 1.1 christos haveit=yes
5180 1.1 christos break
5181 1.1 christos fi
5182 1.1 christos done
5183 1.1 christos if test -z "$haveit"; then
5184 1.1 christos ltrpathdirs="$ltrpathdirs $dir"
5185 1.1 christos fi
5186 1.1 christos fi
5187 1.1 christos ;;
5188 1.1 christos -l*)
5189 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5190 1.1 christos ;;
5191 1.1 christos *.la)
5192 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5193 1.1 christos ;;
5194 1.1 christos *)
5195 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5196 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5197 1.1 christos ;;
5198 1.1 christos esac
5199 1.1 christos done
5200 1.1 christos fi
5201 1.1 christos else
5202 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5203 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5204 1.1 christos fi
5205 1.1 christos fi
5206 1.1 christos fi
5207 1.1 christos done
5208 1.1 christos done
5209 1.1 christos if test "X$rpathdirs" != "X"; then
5210 1.1 christos if test -n "$hardcode_libdir_separator"; then
5211 1.1 christos alldirs=
5212 1.1 christos for found_dir in $rpathdirs; do
5213 1.1 christos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5214 1.1 christos done
5215 1.1 christos acl_save_libdir="$libdir"
5216 1.1 christos libdir="$alldirs"
5217 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\"
5218 1.1 christos libdir="$acl_save_libdir"
5219 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5220 1.1 christos else
5221 1.1 christos for found_dir in $rpathdirs; do
5222 1.1 christos acl_save_libdir="$libdir"
5223 1.1 christos libdir="$found_dir"
5224 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\"
5225 1.1 christos libdir="$acl_save_libdir"
5226 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5227 1.1 christos done
5228 1.1 christos fi
5229 1.1 christos fi
5230 1.1 christos if test "X$ltrpathdirs" != "X"; then
5231 1.1 christos for found_dir in $ltrpathdirs; do
5232 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5233 1.1 christos done
5234 1.1 christos fi
5235 1.1 christos
5236 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5237 1.1.1.2 christos $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5238 1.1.1.2 christos if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5239 1.1.1.2 christos $as_echo_n "(cached) " >&6
5240 1.1 christos else
5241 1.1 christos gt_save_CPPFLAGS="$CPPFLAGS"
5242 1.1 christos CPPFLAGS="$CPPFLAGS $INCINTL"
5243 1.1 christos gt_save_LIBS="$LIBS"
5244 1.1 christos LIBS="$LIBS $LIBINTL"
5245 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 1.1 christos /* end confdefs.h. */
5247 1.1 christos #include <libintl.h>
5248 1.1 christos extern int _nl_msg_cat_cntr;
5249 1.1 christos extern
5250 1.1 christos #ifdef __cplusplus
5251 1.1 christos "C"
5252 1.1 christos #endif
5253 1.1 christos const char *_nl_expand_alias ();
5254 1.1 christos int
5255 1.1 christos main ()
5256 1.1 christos {
5257 1.1 christos bindtextdomain ("", "");
5258 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5259 1.1 christos ;
5260 1.1 christos return 0;
5261 1.1 christos }
5262 1.1 christos _ACEOF
5263 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5264 1.1 christos gt_cv_func_gnugettext1_libintl=yes
5265 1.1 christos else
5266 1.1.1.2 christos gt_cv_func_gnugettext1_libintl=no
5267 1.1 christos fi
5268 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5269 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5270 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5271 1.1 christos LIBS="$LIBS $LIBICONV"
5272 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 1.1 christos /* end confdefs.h. */
5274 1.1 christos #include <libintl.h>
5275 1.1 christos extern int _nl_msg_cat_cntr;
5276 1.1 christos extern
5277 1.1 christos #ifdef __cplusplus
5278 1.1 christos "C"
5279 1.1 christos #endif
5280 1.1 christos const char *_nl_expand_alias ();
5281 1.1 christos int
5282 1.1 christos main ()
5283 1.1 christos {
5284 1.1 christos bindtextdomain ("", "");
5285 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5286 1.1 christos ;
5287 1.1 christos return 0;
5288 1.1 christos }
5289 1.1 christos _ACEOF
5290 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5291 1.1 christos LIBINTL="$LIBINTL $LIBICONV"
5292 1.1 christos LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5293 1.1 christos gt_cv_func_gnugettext1_libintl=yes
5294 1.1 christos
5295 1.1 christos fi
5296 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5297 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5298 1.1 christos fi
5299 1.1 christos CPPFLAGS="$gt_save_CPPFLAGS"
5300 1.1 christos LIBS="$gt_save_LIBS"
5301 1.1 christos fi
5302 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5303 1.1.1.2 christos $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5304 1.1 christos fi
5305 1.1 christos
5306 1.1 christos if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5307 1.1 christos || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5308 1.1 christos && test "$PACKAGE" != gettext-runtime \
5309 1.1 christos && test "$PACKAGE" != gettext-tools; }; then
5310 1.1 christos gt_use_preinstalled_gnugettext=yes
5311 1.1 christos else
5312 1.1 christos LIBINTL=
5313 1.1 christos LTLIBINTL=
5314 1.1 christos INCINTL=
5315 1.1 christos fi
5316 1.1 christos
5317 1.1 christos
5318 1.1 christos
5319 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes" \
5320 1.1 christos || test "$nls_cv_use_gnu_gettext" = "yes"; then
5321 1.1 christos
5322 1.1.1.2 christos $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5323 1.1 christos
5324 1.1 christos else
5325 1.1 christos USE_NLS=no
5326 1.1 christos fi
5327 1.1 christos fi
5328 1.1 christos
5329 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5330 1.1.1.2 christos $as_echo_n "checking whether to use NLS... " >&6; }
5331 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5332 1.1.1.2 christos $as_echo "$USE_NLS" >&6; }
5333 1.1 christos if test "$USE_NLS" = "yes"; then
5334 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5335 1.1.1.2 christos $as_echo_n "checking where the gettext function comes from... " >&6; }
5336 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5337 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5338 1.1 christos gt_source="external libintl"
5339 1.1 christos else
5340 1.1 christos gt_source="libc"
5341 1.1 christos fi
5342 1.1 christos else
5343 1.1 christos gt_source="included intl directory"
5344 1.1 christos fi
5345 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5346 1.1.1.2 christos $as_echo "$gt_source" >&6; }
5347 1.1 christos fi
5348 1.1 christos
5349 1.1 christos if test "$USE_NLS" = "yes"; then
5350 1.1 christos
5351 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5352 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5353 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5354 1.1.1.2 christos $as_echo_n "checking how to link with libintl... " >&6; }
5355 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5356 1.1.1.2 christos $as_echo "$LIBINTL" >&6; }
5357 1.1 christos
5358 1.1 christos for element in $INCINTL; do
5359 1.1 christos haveit=
5360 1.1 christos for x in $CPPFLAGS; do
5361 1.1 christos
5362 1.1 christos acl_save_prefix="$prefix"
5363 1.1 christos prefix="$acl_final_prefix"
5364 1.1 christos acl_save_exec_prefix="$exec_prefix"
5365 1.1 christos exec_prefix="$acl_final_exec_prefix"
5366 1.1 christos eval x=\"$x\"
5367 1.1 christos exec_prefix="$acl_save_exec_prefix"
5368 1.1 christos prefix="$acl_save_prefix"
5369 1.1 christos
5370 1.1 christos if test "X$x" = "X$element"; then
5371 1.1 christos haveit=yes
5372 1.1 christos break
5373 1.1 christos fi
5374 1.1 christos done
5375 1.1 christos if test -z "$haveit"; then
5376 1.1 christos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5377 1.1 christos fi
5378 1.1 christos done
5379 1.1 christos
5380 1.1 christos fi
5381 1.1 christos
5382 1.1 christos
5383 1.1.1.2 christos $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5384 1.1 christos
5385 1.1 christos
5386 1.1.1.2 christos $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5387 1.1 christos
5388 1.1 christos fi
5389 1.1 christos
5390 1.1 christos POSUB=po
5391 1.1 christos fi
5392 1.1 christos
5393 1.1 christos
5394 1.1 christos
5395 1.1 christos INTLLIBS="$LIBINTL"
5396 1.1 christos
5397 1.1 christos
5398 1.1 christos
5399 1.1 christos
5400 1.1 christos
5401 1.1 christos
5402 1.1 christos
5403 1.1 christos for ac_prog in 'bison -y' byacc
5404 1.1 christos do
5405 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5406 1.1 christos set dummy $ac_prog; ac_word=$2
5407 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5409 1.1.1.2 christos if test "${ac_cv_prog_YACC+set}" = set; then :
5410 1.1.1.2 christos $as_echo_n "(cached) " >&6
5411 1.1 christos else
5412 1.1 christos if test -n "$YACC"; then
5413 1.1 christos ac_cv_prog_YACC="$YACC" # Let the user override the test.
5414 1.1 christos else
5415 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 1.1 christos for as_dir in $PATH
5417 1.1 christos do
5418 1.1 christos IFS=$as_save_IFS
5419 1.1 christos test -z "$as_dir" && as_dir=.
5420 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5421 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 1.1 christos ac_cv_prog_YACC="$ac_prog"
5423 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 1.1 christos break 2
5425 1.1 christos fi
5426 1.1 christos done
5427 1.1.1.2 christos done
5428 1.1.1.2 christos IFS=$as_save_IFS
5429 1.1 christos
5430 1.1 christos fi
5431 1.1 christos fi
5432 1.1 christos YACC=$ac_cv_prog_YACC
5433 1.1 christos if test -n "$YACC"; then
5434 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5435 1.1.1.2 christos $as_echo "$YACC" >&6; }
5436 1.1 christos else
5437 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 1.1.1.2 christos $as_echo "no" >&6; }
5439 1.1 christos fi
5440 1.1 christos
5441 1.1.1.2 christos
5442 1.1 christos test -n "$YACC" && break
5443 1.1 christos done
5444 1.1 christos test -n "$YACC" || YACC="yacc"
5445 1.1 christos
5446 1.1 christos for ac_prog in flex lex
5447 1.1 christos do
5448 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 1.1 christos set dummy $ac_prog; ac_word=$2
5450 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5452 1.1.1.2 christos if test "${ac_cv_prog_LEX+set}" = set; then :
5453 1.1.1.2 christos $as_echo_n "(cached) " >&6
5454 1.1 christos else
5455 1.1 christos if test -n "$LEX"; then
5456 1.1 christos ac_cv_prog_LEX="$LEX" # Let the user override the test.
5457 1.1 christos else
5458 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 1.1 christos for as_dir in $PATH
5460 1.1 christos do
5461 1.1 christos IFS=$as_save_IFS
5462 1.1 christos test -z "$as_dir" && as_dir=.
5463 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5464 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 1.1 christos ac_cv_prog_LEX="$ac_prog"
5466 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 1.1 christos break 2
5468 1.1 christos fi
5469 1.1 christos done
5470 1.1.1.2 christos done
5471 1.1.1.2 christos IFS=$as_save_IFS
5472 1.1 christos
5473 1.1 christos fi
5474 1.1 christos fi
5475 1.1 christos LEX=$ac_cv_prog_LEX
5476 1.1 christos if test -n "$LEX"; then
5477 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5478 1.1.1.2 christos $as_echo "$LEX" >&6; }
5479 1.1 christos else
5480 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 1.1.1.2 christos $as_echo "no" >&6; }
5482 1.1 christos fi
5483 1.1 christos
5484 1.1.1.2 christos
5485 1.1 christos test -n "$LEX" && break
5486 1.1 christos done
5487 1.1 christos test -n "$LEX" || LEX=":"
5488 1.1 christos
5489 1.1.1.2 christos if test "x$LEX" != "x:"; then
5490 1.1.1.2 christos cat >conftest.l <<_ACEOF
5491 1.1.1.2 christos %%
5492 1.1.1.2 christos a { ECHO; }
5493 1.1.1.2 christos b { REJECT; }
5494 1.1.1.2 christos c { yymore (); }
5495 1.1.1.2 christos d { yyless (1); }
5496 1.1.1.2 christos e { yyless (input () != 0); }
5497 1.1.1.2 christos f { unput (yytext[0]); }
5498 1.1.1.2 christos . { BEGIN INITIAL; }
5499 1.1.1.2 christos %%
5500 1.1.1.2 christos #ifdef YYTEXT_POINTER
5501 1.1.1.2 christos extern char *yytext;
5502 1.1 christos #endif
5503 1.1 christos int
5504 1.1.1.2 christos main (void)
5505 1.1 christos {
5506 1.1.1.2 christos return ! yylex () + ! yywrap ();
5507 1.1 christos }
5508 1.1 christos _ACEOF
5509 1.1.1.2 christos { { ac_try="$LEX conftest.l"
5510 1.1.1.2 christos case "(($ac_try" in
5511 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 1.1.1.2 christos *) ac_try_echo=$ac_try;;
5513 1.1.1.2 christos esac
5514 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5515 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
5516 1.1.1.2 christos (eval "$LEX conftest.l") 2>&5
5517 1.1.1.2 christos ac_status=$?
5518 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519 1.1.1.2 christos test $ac_status = 0; }
5520 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5521 1.1.1.2 christos $as_echo_n "checking lex output file root... " >&6; }
5522 1.1.1.2 christos if test "${ac_cv_prog_lex_root+set}" = set; then :
5523 1.1.1.2 christos $as_echo_n "(cached) " >&6
5524 1.1 christos else
5525 1.1 christos
5526 1.1.1.2 christos if test -f lex.yy.c; then
5527 1.1.1.2 christos ac_cv_prog_lex_root=lex.yy
5528 1.1.1.2 christos elif test -f lexyy.c; then
5529 1.1.1.2 christos ac_cv_prog_lex_root=lexyy
5530 1.1.1.2 christos else
5531 1.1.1.2 christos as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5532 1.1 christos fi
5533 1.1 christos fi
5534 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5535 1.1.1.2 christos $as_echo "$ac_cv_prog_lex_root" >&6; }
5536 1.1.1.2 christos LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5537 1.1.1.2 christos
5538 1.1.1.2 christos if test -z "${LEXLIB+set}"; then
5539 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5540 1.1.1.2 christos $as_echo_n "checking lex library... " >&6; }
5541 1.1.1.2 christos if test "${ac_cv_lib_lex+set}" = set; then :
5542 1.1.1.2 christos $as_echo_n "(cached) " >&6
5543 1.1 christos else
5544 1.1.1.2 christos
5545 1.1.1.2 christos ac_save_LIBS=$LIBS
5546 1.1.1.2 christos ac_cv_lib_lex='none needed'
5547 1.1.1.2 christos for ac_lib in '' -lfl -ll; do
5548 1.1.1.2 christos LIBS="$ac_lib $ac_save_LIBS"
5549 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 1.1 christos /* end confdefs.h. */
5551 1.1.1.2 christos `cat $LEX_OUTPUT_ROOT.c`
5552 1.1.1.2 christos _ACEOF
5553 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5554 1.1.1.2 christos ac_cv_lib_lex=$ac_lib
5555 1.1.1.2 christos fi
5556 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5557 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5558 1.1.1.2 christos test "$ac_cv_lib_lex" != 'none needed' && break
5559 1.1.1.2 christos done
5560 1.1.1.2 christos LIBS=$ac_save_LIBS
5561 1.1 christos
5562 1.1 christos fi
5563 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5564 1.1.1.2 christos $as_echo "$ac_cv_lib_lex" >&6; }
5565 1.1.1.2 christos test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5566 1.1 christos fi
5567 1.1 christos
5568 1.1 christos
5569 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5570 1.1.1.2 christos $as_echo_n "checking whether yytext is a pointer... " >&6; }
5571 1.1.1.2 christos if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5572 1.1.1.2 christos $as_echo_n "(cached) " >&6
5573 1.1 christos else
5574 1.1 christos # POSIX says lex can declare yytext either as a pointer or an array; the
5575 1.1.1.2 christos # default is implementation-dependent. Figure out which it is, since
5576 1.1 christos # not all implementations provide the %pointer and %array declarations.
5577 1.1 christos ac_cv_prog_lex_yytext_pointer=no
5578 1.1 christos ac_save_LIBS=$LIBS
5579 1.1.1.2 christos LIBS="$LEXLIB $ac_save_LIBS"
5580 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 1.1.1.2 christos /* end confdefs.h. */
5582 1.1.1.2 christos #define YYTEXT_POINTER 1
5583 1.1 christos `cat $LEX_OUTPUT_ROOT.c`
5584 1.1 christos _ACEOF
5585 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5586 1.1 christos ac_cv_prog_lex_yytext_pointer=yes
5587 1.1 christos fi
5588 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5589 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5590 1.1 christos LIBS=$ac_save_LIBS
5591 1.1 christos
5592 1.1 christos fi
5593 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5594 1.1.1.2 christos $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5595 1.1 christos if test $ac_cv_prog_lex_yytext_pointer = yes; then
5596 1.1 christos
5597 1.1.1.2 christos $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5598 1.1 christos
5599 1.1 christos fi
5600 1.1.1.2 christos rm -f conftest.l $LEX_OUTPUT_ROOT.c
5601 1.1 christos
5602 1.1 christos fi
5603 1.1 christos if test "$LEX" = :; then
5604 1.1 christos LEX=${am_missing_run}flex
5605 1.1 christos fi
5606 1.1 christos ac_ext=c
5607 1.1 christos ac_cpp='$CPP $CPPFLAGS'
5608 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611 1.1 christos if test -n "$ac_tool_prefix"; then
5612 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5613 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
5614 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5616 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
5617 1.1.1.2 christos $as_echo_n "(cached) " >&6
5618 1.1 christos else
5619 1.1 christos if test -n "$CC"; then
5620 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
5621 1.1 christos else
5622 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 1.1 christos for as_dir in $PATH
5624 1.1 christos do
5625 1.1 christos IFS=$as_save_IFS
5626 1.1 christos test -z "$as_dir" && as_dir=.
5627 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5628 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
5630 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 1.1 christos break 2
5632 1.1 christos fi
5633 1.1 christos done
5634 1.1.1.2 christos done
5635 1.1.1.2 christos IFS=$as_save_IFS
5636 1.1 christos
5637 1.1 christos fi
5638 1.1 christos fi
5639 1.1 christos CC=$ac_cv_prog_CC
5640 1.1 christos if test -n "$CC"; then
5641 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5642 1.1.1.2 christos $as_echo "$CC" >&6; }
5643 1.1 christos else
5644 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 1.1.1.2 christos $as_echo "no" >&6; }
5646 1.1 christos fi
5647 1.1 christos
5648 1.1.1.2 christos
5649 1.1 christos fi
5650 1.1 christos if test -z "$ac_cv_prog_CC"; then
5651 1.1 christos ac_ct_CC=$CC
5652 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
5653 1.1 christos set dummy gcc; ac_word=$2
5654 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5656 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5657 1.1.1.2 christos $as_echo_n "(cached) " >&6
5658 1.1 christos else
5659 1.1 christos if test -n "$ac_ct_CC"; then
5660 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5661 1.1 christos else
5662 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 1.1 christos for as_dir in $PATH
5664 1.1 christos do
5665 1.1 christos IFS=$as_save_IFS
5666 1.1 christos test -z "$as_dir" && as_dir=.
5667 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5668 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
5670 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 1.1 christos break 2
5672 1.1 christos fi
5673 1.1 christos done
5674 1.1.1.2 christos done
5675 1.1.1.2 christos IFS=$as_save_IFS
5676 1.1 christos
5677 1.1 christos fi
5678 1.1 christos fi
5679 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
5680 1.1 christos if test -n "$ac_ct_CC"; then
5681 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5682 1.1.1.2 christos $as_echo "$ac_ct_CC" >&6; }
5683 1.1 christos else
5684 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 1.1.1.2 christos $as_echo "no" >&6; }
5686 1.1 christos fi
5687 1.1 christos
5688 1.1.1.2 christos if test "x$ac_ct_CC" = x; then
5689 1.1.1.2 christos CC=""
5690 1.1.1.2 christos else
5691 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
5692 1.1.1.2 christos yes:)
5693 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 1.1.1.2 christos ac_tool_warned=yes ;;
5696 1.1.1.2 christos esac
5697 1.1.1.2 christos CC=$ac_ct_CC
5698 1.1.1.2 christos fi
5699 1.1 christos else
5700 1.1 christos CC="$ac_cv_prog_CC"
5701 1.1 christos fi
5702 1.1 christos
5703 1.1 christos if test -z "$CC"; then
5704 1.1.1.2 christos if test -n "$ac_tool_prefix"; then
5705 1.1.1.2 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5706 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
5707 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5709 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
5710 1.1.1.2 christos $as_echo_n "(cached) " >&6
5711 1.1 christos else
5712 1.1 christos if test -n "$CC"; then
5713 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
5714 1.1 christos else
5715 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 1.1 christos for as_dir in $PATH
5717 1.1 christos do
5718 1.1 christos IFS=$as_save_IFS
5719 1.1 christos test -z "$as_dir" && as_dir=.
5720 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5721 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
5723 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 1.1 christos break 2
5725 1.1 christos fi
5726 1.1 christos done
5727 1.1.1.2 christos done
5728 1.1.1.2 christos IFS=$as_save_IFS
5729 1.1 christos
5730 1.1 christos fi
5731 1.1 christos fi
5732 1.1 christos CC=$ac_cv_prog_CC
5733 1.1 christos if test -n "$CC"; then
5734 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5735 1.1.1.2 christos $as_echo "$CC" >&6; }
5736 1.1 christos else
5737 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 1.1.1.2 christos $as_echo "no" >&6; }
5739 1.1 christos fi
5740 1.1 christos
5741 1.1 christos
5742 1.1.1.2 christos fi
5743 1.1 christos fi
5744 1.1 christos if test -z "$CC"; then
5745 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
5746 1.1 christos set dummy cc; ac_word=$2
5747 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5749 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
5750 1.1.1.2 christos $as_echo_n "(cached) " >&6
5751 1.1 christos else
5752 1.1 christos if test -n "$CC"; then
5753 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
5754 1.1 christos else
5755 1.1 christos ac_prog_rejected=no
5756 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 1.1 christos for as_dir in $PATH
5758 1.1 christos do
5759 1.1 christos IFS=$as_save_IFS
5760 1.1 christos test -z "$as_dir" && as_dir=.
5761 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5762 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5764 1.1 christos ac_prog_rejected=yes
5765 1.1 christos continue
5766 1.1 christos fi
5767 1.1 christos ac_cv_prog_CC="cc"
5768 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 1.1 christos break 2
5770 1.1 christos fi
5771 1.1 christos done
5772 1.1.1.2 christos done
5773 1.1.1.2 christos IFS=$as_save_IFS
5774 1.1 christos
5775 1.1 christos if test $ac_prog_rejected = yes; then
5776 1.1 christos # We found a bogon in the path, so make sure we never use it.
5777 1.1 christos set dummy $ac_cv_prog_CC
5778 1.1 christos shift
5779 1.1 christos if test $# != 0; then
5780 1.1 christos # We chose a different compiler from the bogus one.
5781 1.1 christos # However, it has the same basename, so the bogon will be chosen
5782 1.1 christos # first if we set CC to just the basename; use the full file name.
5783 1.1 christos shift
5784 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5785 1.1 christos fi
5786 1.1 christos fi
5787 1.1 christos fi
5788 1.1 christos fi
5789 1.1 christos CC=$ac_cv_prog_CC
5790 1.1 christos if test -n "$CC"; then
5791 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5792 1.1.1.2 christos $as_echo "$CC" >&6; }
5793 1.1 christos else
5794 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 1.1.1.2 christos $as_echo "no" >&6; }
5796 1.1 christos fi
5797 1.1 christos
5798 1.1.1.2 christos
5799 1.1 christos fi
5800 1.1 christos if test -z "$CC"; then
5801 1.1 christos if test -n "$ac_tool_prefix"; then
5802 1.1.1.2 christos for ac_prog in cl.exe
5803 1.1 christos do
5804 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5808 1.1.1.2 christos if test "${ac_cv_prog_CC+set}" = set; then :
5809 1.1.1.2 christos $as_echo_n "(cached) " >&6
5810 1.1 christos else
5811 1.1 christos if test -n "$CC"; then
5812 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
5813 1.1 christos else
5814 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 1.1 christos for as_dir in $PATH
5816 1.1 christos do
5817 1.1 christos IFS=$as_save_IFS
5818 1.1 christos test -z "$as_dir" && as_dir=.
5819 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5820 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5822 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 1.1 christos break 2
5824 1.1 christos fi
5825 1.1 christos done
5826 1.1.1.2 christos done
5827 1.1.1.2 christos IFS=$as_save_IFS
5828 1.1 christos
5829 1.1 christos fi
5830 1.1 christos fi
5831 1.1 christos CC=$ac_cv_prog_CC
5832 1.1 christos if test -n "$CC"; then
5833 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5834 1.1.1.2 christos $as_echo "$CC" >&6; }
5835 1.1 christos else
5836 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 1.1.1.2 christos $as_echo "no" >&6; }
5838 1.1 christos fi
5839 1.1 christos
5840 1.1.1.2 christos
5841 1.1 christos test -n "$CC" && break
5842 1.1 christos done
5843 1.1 christos fi
5844 1.1 christos if test -z "$CC"; then
5845 1.1 christos ac_ct_CC=$CC
5846 1.1.1.2 christos for ac_prog in cl.exe
5847 1.1 christos do
5848 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 1.1 christos set dummy $ac_prog; ac_word=$2
5850 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
5852 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5853 1.1.1.2 christos $as_echo_n "(cached) " >&6
5854 1.1 christos else
5855 1.1 christos if test -n "$ac_ct_CC"; then
5856 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5857 1.1 christos else
5858 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 1.1 christos for as_dir in $PATH
5860 1.1 christos do
5861 1.1 christos IFS=$as_save_IFS
5862 1.1 christos test -z "$as_dir" && as_dir=.
5863 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
5864 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
5866 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 1.1 christos break 2
5868 1.1 christos fi
5869 1.1 christos done
5870 1.1.1.2 christos done
5871 1.1.1.2 christos IFS=$as_save_IFS
5872 1.1 christos
5873 1.1 christos fi
5874 1.1 christos fi
5875 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
5876 1.1 christos if test -n "$ac_ct_CC"; then
5877 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5878 1.1.1.2 christos $as_echo "$ac_ct_CC" >&6; }
5879 1.1 christos else
5880 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 1.1.1.2 christos $as_echo "no" >&6; }
5882 1.1 christos fi
5883 1.1 christos
5884 1.1.1.2 christos
5885 1.1 christos test -n "$ac_ct_CC" && break
5886 1.1 christos done
5887 1.1 christos
5888 1.1.1.2 christos if test "x$ac_ct_CC" = x; then
5889 1.1.1.2 christos CC=""
5890 1.1.1.2 christos else
5891 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
5892 1.1.1.2 christos yes:)
5893 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 1.1.1.2 christos ac_tool_warned=yes ;;
5896 1.1.1.2 christos esac
5897 1.1.1.2 christos CC=$ac_ct_CC
5898 1.1.1.2 christos fi
5899 1.1 christos fi
5900 1.1 christos
5901 1.1 christos fi
5902 1.1 christos
5903 1.1 christos
5904 1.1.1.2 christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5906 1.1.1.2 christos as_fn_error "no acceptable C compiler found in \$PATH
5907 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }
5908 1.1 christos
5909 1.1 christos # Provide some information about the compiler.
5910 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5911 1.1.1.2 christos set X $ac_compile
5912 1.1.1.2 christos ac_compiler=$2
5913 1.1.1.2 christos for ac_option in --version -v -V -qversion; do
5914 1.1.1.2 christos { { ac_try="$ac_compiler $ac_option >&5"
5915 1.1.1.2 christos case "(($ac_try" in
5916 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 1.1.1.2 christos *) ac_try_echo=$ac_try;;
5918 1.1.1.2 christos esac
5919 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5920 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
5921 1.1.1.2 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5922 1.1 christos ac_status=$?
5923 1.1.1.2 christos if test -s conftest.err; then
5924 1.1.1.2 christos sed '10a\
5925 1.1.1.2 christos ... rest of stderr output deleted ...
5926 1.1.1.2 christos 10q' conftest.err >conftest.er1
5927 1.1.1.2 christos cat conftest.er1 >&5
5928 1.1.1.2 christos fi
5929 1.1.1.2 christos rm -f conftest.er1 conftest.err
5930 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 1.1.1.2 christos test $ac_status = 0; }
5932 1.1.1.2 christos done
5933 1.1.1.2 christos
5934 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5935 1.1.1.2 christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5936 1.1.1.2 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5937 1.1.1.2 christos $as_echo_n "(cached) " >&6
5938 1.1 christos else
5939 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 1.1 christos /* end confdefs.h. */
5941 1.1 christos
5942 1.1 christos int
5943 1.1 christos main ()
5944 1.1 christos {
5945 1.1 christos #ifndef __GNUC__
5946 1.1 christos choke me
5947 1.1 christos #endif
5948 1.1 christos
5949 1.1 christos ;
5950 1.1 christos return 0;
5951 1.1 christos }
5952 1.1 christos _ACEOF
5953 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
5954 1.1 christos ac_compiler_gnu=yes
5955 1.1 christos else
5956 1.1.1.2 christos ac_compiler_gnu=no
5957 1.1 christos fi
5958 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
5960 1.1 christos
5961 1.1 christos fi
5962 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5963 1.1.1.2 christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5964 1.1.1.2 christos if test $ac_compiler_gnu = yes; then
5965 1.1.1.2 christos GCC=yes
5966 1.1.1.2 christos else
5967 1.1.1.2 christos GCC=
5968 1.1.1.2 christos fi
5969 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
5970 1.1 christos ac_save_CFLAGS=$CFLAGS
5971 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5972 1.1.1.2 christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
5973 1.1.1.2 christos if test "${ac_cv_prog_cc_g+set}" = set; then :
5974 1.1.1.2 christos $as_echo_n "(cached) " >&6
5975 1.1.1.2 christos else
5976 1.1.1.2 christos ac_save_c_werror_flag=$ac_c_werror_flag
5977 1.1.1.2 christos ac_c_werror_flag=yes
5978 1.1.1.2 christos ac_cv_prog_cc_g=no
5979 1.1.1.2 christos CFLAGS="-g"
5980 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 1.1 christos /* end confdefs.h. */
5982 1.1 christos
5983 1.1 christos int
5984 1.1 christos main ()
5985 1.1 christos {
5986 1.1 christos
5987 1.1 christos ;
5988 1.1 christos return 0;
5989 1.1 christos }
5990 1.1 christos _ACEOF
5991 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
5992 1.1 christos ac_cv_prog_cc_g=yes
5993 1.1 christos else
5994 1.1.1.2 christos CFLAGS=""
5995 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 1.1.1.2 christos /* end confdefs.h. */
5997 1.1.1.2 christos
5998 1.1.1.2 christos int
5999 1.1.1.2 christos main ()
6000 1.1.1.2 christos {
6001 1.1.1.2 christos
6002 1.1.1.2 christos ;
6003 1.1.1.2 christos return 0;
6004 1.1.1.2 christos }
6005 1.1.1.2 christos _ACEOF
6006 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6007 1.1.1.2 christos
6008 1.1.1.2 christos else
6009 1.1.1.2 christos ac_c_werror_flag=$ac_save_c_werror_flag
6010 1.1.1.2 christos CFLAGS="-g"
6011 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 1.1.1.2 christos /* end confdefs.h. */
6013 1.1.1.2 christos
6014 1.1.1.2 christos int
6015 1.1.1.2 christos main ()
6016 1.1.1.2 christos {
6017 1.1 christos
6018 1.1.1.2 christos ;
6019 1.1.1.2 christos return 0;
6020 1.1.1.2 christos }
6021 1.1.1.2 christos _ACEOF
6022 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6023 1.1.1.2 christos ac_cv_prog_cc_g=yes
6024 1.1 christos fi
6025 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 1.1 christos fi
6027 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 1.1.1.2 christos fi
6029 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 1.1.1.2 christos ac_c_werror_flag=$ac_save_c_werror_flag
6031 1.1.1.2 christos fi
6032 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6033 1.1.1.2 christos $as_echo "$ac_cv_prog_cc_g" >&6; }
6034 1.1 christos if test "$ac_test_CFLAGS" = set; then
6035 1.1 christos CFLAGS=$ac_save_CFLAGS
6036 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
6037 1.1 christos if test "$GCC" = yes; then
6038 1.1 christos CFLAGS="-g -O2"
6039 1.1 christos else
6040 1.1 christos CFLAGS="-g"
6041 1.1 christos fi
6042 1.1 christos else
6043 1.1 christos if test "$GCC" = yes; then
6044 1.1 christos CFLAGS="-O2"
6045 1.1 christos else
6046 1.1 christos CFLAGS=
6047 1.1 christos fi
6048 1.1 christos fi
6049 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6050 1.1.1.2 christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6051 1.1.1.2 christos if test "${ac_cv_prog_cc_c89+set}" = set; then :
6052 1.1.1.2 christos $as_echo_n "(cached) " >&6
6053 1.1 christos else
6054 1.1.1.2 christos ac_cv_prog_cc_c89=no
6055 1.1 christos ac_save_CC=$CC
6056 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 1.1 christos /* end confdefs.h. */
6058 1.1 christos #include <stdarg.h>
6059 1.1 christos #include <stdio.h>
6060 1.1 christos #include <sys/types.h>
6061 1.1 christos #include <sys/stat.h>
6062 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6063 1.1 christos struct buf { int x; };
6064 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
6065 1.1 christos static char *e (p, i)
6066 1.1 christos char **p;
6067 1.1 christos int i;
6068 1.1 christos {
6069 1.1 christos return p[i];
6070 1.1 christos }
6071 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
6072 1.1 christos {
6073 1.1 christos char *s;
6074 1.1 christos va_list v;
6075 1.1 christos va_start (v,p);
6076 1.1 christos s = g (p, va_arg (v,int));
6077 1.1 christos va_end (v);
6078 1.1 christos return s;
6079 1.1 christos }
6080 1.1 christos
6081 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6082 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
6083 1.1 christos These don't provoke an error unfortunately, instead are silently treated
6084 1.1.1.2 christos as 'x'. The following induces an error, until -std is added to get
6085 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6086 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
6087 1.1.1.2 christos that's true only with -std. */
6088 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6089 1.1 christos
6090 1.1.1.2 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6091 1.1.1.2 christos inside strings and character constants. */
6092 1.1.1.2 christos #define FOO(x) 'x'
6093 1.1.1.2 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6094 1.1.1.2 christos
6095 1.1 christos int test (int i, double x);
6096 1.1 christos struct s1 {int (*f) (int a);};
6097 1.1 christos struct s2 {int (*f) (double a);};
6098 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6099 1.1 christos int argc;
6100 1.1 christos char **argv;
6101 1.1 christos int
6102 1.1 christos main ()
6103 1.1 christos {
6104 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6105 1.1 christos ;
6106 1.1 christos return 0;
6107 1.1 christos }
6108 1.1 christos _ACEOF
6109 1.1.1.2 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6110 1.1.1.2 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6111 1.1 christos do
6112 1.1 christos CC="$ac_save_CC $ac_arg"
6113 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6114 1.1.1.2 christos ac_cv_prog_cc_c89=$ac_arg
6115 1.1 christos fi
6116 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext
6117 1.1.1.2 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
6118 1.1 christos done
6119 1.1.1.2 christos rm -f conftest.$ac_ext
6120 1.1 christos CC=$ac_save_CC
6121 1.1 christos
6122 1.1 christos fi
6123 1.1.1.2 christos # AC_CACHE_VAL
6124 1.1.1.2 christos case "x$ac_cv_prog_cc_c89" in
6125 1.1.1.2 christos x)
6126 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6127 1.1.1.2 christos $as_echo "none needed" >&6; } ;;
6128 1.1.1.2 christos xno)
6129 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6130 1.1.1.2 christos $as_echo "unsupported" >&6; } ;;
6131 1.1 christos *)
6132 1.1.1.2 christos CC="$CC $ac_cv_prog_cc_c89"
6133 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6134 1.1.1.2 christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6135 1.1 christos esac
6136 1.1.1.2 christos if test "x$ac_cv_prog_cc_c89" != xno; then :
6137 1.1 christos
6138 1.1 christos fi
6139 1.1 christos
6140 1.1 christos ac_ext=c
6141 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6142 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6145 1.1 christos
6146 1.1 christos depcc="$CC" am_compiler_list=
6147 1.1 christos
6148 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6149 1.1.1.2 christos $as_echo_n "checking dependency style of $depcc... " >&6; }
6150 1.1.1.2 christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6151 1.1.1.2 christos $as_echo_n "(cached) " >&6
6152 1.1 christos else
6153 1.1 christos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6154 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up
6155 1.1 christos # making bogus files that we don't know about and never remove. For
6156 1.1 christos # instance it was reported that on HP-UX the gcc test will end up
6157 1.1 christos # making a dummy file named `D' -- because `-MD' means `put the output
6158 1.1 christos # in D'.
6159 1.1 christos mkdir conftest.dir
6160 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're
6161 1.1 christos # using a relative directory.
6162 1.1 christos cp "$am_depcomp" conftest.dir
6163 1.1 christos cd conftest.dir
6164 1.1 christos # We will build objects and dependencies in a subdirectory because
6165 1.1 christos # it helps to detect inapplicable dependency modes. For instance
6166 1.1 christos # both Tru64's cc and ICC support -MD to output dependencies as a
6167 1.1 christos # side effect of compilation, but ICC will put the dependencies in
6168 1.1 christos # the current directory while Tru64 will put them in the object
6169 1.1 christos # directory.
6170 1.1 christos mkdir sub
6171 1.1 christos
6172 1.1 christos am_cv_CC_dependencies_compiler_type=none
6173 1.1 christos if test "$am_compiler_list" = ""; then
6174 1.1 christos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6175 1.1 christos fi
6176 1.1.1.2 christos am__universal=false
6177 1.1.1.2 christos case " $depcc " in #(
6178 1.1.1.2 christos *\ -arch\ *\ -arch\ *) am__universal=true ;;
6179 1.1.1.2 christos esac
6180 1.1.1.2 christos
6181 1.1 christos for depmode in $am_compiler_list; do
6182 1.1 christos # Setup a source with many dependencies, because some compilers
6183 1.1 christos # like to wrap large dependency lists on column 80 (with \), and
6184 1.1 christos # we should not choose a depcomp mode which is confused by this.
6185 1.1 christos #
6186 1.1 christos # We need to recreate these files for each test, as the compiler may
6187 1.1 christos # overwrite some of them when testing with obscure command lines.
6188 1.1 christos # This happens at least with the AIX C compiler.
6189 1.1 christos : > sub/conftest.c
6190 1.1 christos for i in 1 2 3 4 5 6; do
6191 1.1 christos echo '#include "conftst'$i'.h"' >> sub/conftest.c
6192 1.1 christos # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6193 1.1 christos # Solaris 8's {/usr,}/bin/sh.
6194 1.1 christos touch sub/conftst$i.h
6195 1.1 christos done
6196 1.1 christos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6197 1.1 christos
6198 1.1.1.2 christos # We check with `-c' and `-o' for the sake of the "dashmstdout"
6199 1.1.1.2 christos # mode. It turns out that the SunPro C++ compiler does not properly
6200 1.1.1.2 christos # handle `-M -o', and we need to detect this. Also, some Intel
6201 1.1.1.2 christos # versions had trouble with output in subdirs
6202 1.1.1.2 christos am__obj=sub/conftest.${OBJEXT-o}
6203 1.1.1.2 christos am__minus_obj="-o $am__obj"
6204 1.1 christos case $depmode in
6205 1.1.1.2 christos gcc)
6206 1.1.1.2 christos # This depmode causes a compiler race in universal mode.
6207 1.1.1.2 christos test "$am__universal" = false || continue
6208 1.1.1.2 christos ;;
6209 1.1 christos nosideeffect)
6210 1.1 christos # after this tag, mechanisms are not by side-effect, so they'll
6211 1.1 christos # only be used when explicitly requested
6212 1.1 christos if test "x$enable_dependency_tracking" = xyes; then
6213 1.1 christos continue
6214 1.1 christos else
6215 1.1 christos break
6216 1.1 christos fi
6217 1.1 christos ;;
6218 1.1.1.2 christos msvisualcpp | msvcmsys)
6219 1.1.1.2 christos # This compiler won't grok `-c -o', but also, the minuso test has
6220 1.1.1.2 christos # not run yet. These depmodes are late enough in the game, and
6221 1.1.1.2 christos # so weak that their functioning should not be impacted.
6222 1.1.1.2 christos am__obj=conftest.${OBJEXT-o}
6223 1.1.1.2 christos am__minus_obj=
6224 1.1.1.2 christos ;;
6225 1.1 christos none) break ;;
6226 1.1 christos esac
6227 1.1 christos if depmode=$depmode \
6228 1.1.1.2 christos source=sub/conftest.c object=$am__obj \
6229 1.1 christos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6230 1.1.1.2 christos $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6231 1.1 christos >/dev/null 2>conftest.err &&
6232 1.1.1.2 christos grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6233 1.1 christos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6234 1.1.1.2 christos grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6235 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6236 1.1 christos # icc doesn't choke on unknown options, it will just issue warnings
6237 1.1 christos # or remarks (even with -Werror). So we grep stderr for any message
6238 1.1 christos # that says an option was ignored or not supported.
6239 1.1 christos # When given -MP, icc 7.0 and 7.1 complain thusly:
6240 1.1 christos # icc: Command line warning: ignoring option '-M'; no argument required
6241 1.1 christos # The diagnosis changed in icc 8.0:
6242 1.1 christos # icc: Command line remark: option '-MP' not supported
6243 1.1 christos if (grep 'ignoring option' conftest.err ||
6244 1.1 christos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6245 1.1 christos am_cv_CC_dependencies_compiler_type=$depmode
6246 1.1 christos break
6247 1.1 christos fi
6248 1.1 christos fi
6249 1.1 christos done
6250 1.1 christos
6251 1.1 christos cd ..
6252 1.1 christos rm -rf conftest.dir
6253 1.1 christos else
6254 1.1 christos am_cv_CC_dependencies_compiler_type=none
6255 1.1 christos fi
6256 1.1 christos
6257 1.1 christos fi
6258 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6259 1.1.1.2 christos $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6260 1.1 christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6261 1.1 christos
6262 1.1.1.2 christos if
6263 1.1 christos test "x$enable_dependency_tracking" != xno \
6264 1.1 christos && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6265 1.1 christos am__fastdepCC_TRUE=
6266 1.1 christos am__fastdepCC_FALSE='#'
6267 1.1 christos else
6268 1.1 christos am__fastdepCC_TRUE='#'
6269 1.1 christos am__fastdepCC_FALSE=
6270 1.1 christos fi
6271 1.1 christos
6272 1.1 christos
6273 1.1.1.2 christos ac_ext=cpp
6274 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
6275 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6278 1.1.1.2 christos if test -z "$CXX"; then
6279 1.1.1.2 christos if test -n "$CCC"; then
6280 1.1.1.2 christos CXX=$CCC
6281 1.1.1.2 christos else
6282 1.1.1.2 christos if test -n "$ac_tool_prefix"; then
6283 1.1.1.2 christos for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6284 1.1 christos do
6285 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6286 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6287 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6289 1.1.1.2 christos if test "${ac_cv_prog_CXX+set}" = set; then :
6290 1.1.1.2 christos $as_echo_n "(cached) " >&6
6291 1.1 christos else
6292 1.1 christos if test -n "$CXX"; then
6293 1.1 christos ac_cv_prog_CXX="$CXX" # Let the user override the test.
6294 1.1 christos else
6295 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 1.1 christos for as_dir in $PATH
6297 1.1 christos do
6298 1.1 christos IFS=$as_save_IFS
6299 1.1 christos test -z "$as_dir" && as_dir=.
6300 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6301 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 1.1 christos ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6303 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 1.1 christos break 2
6305 1.1 christos fi
6306 1.1 christos done
6307 1.1.1.2 christos done
6308 1.1.1.2 christos IFS=$as_save_IFS
6309 1.1 christos
6310 1.1 christos fi
6311 1.1 christos fi
6312 1.1 christos CXX=$ac_cv_prog_CXX
6313 1.1 christos if test -n "$CXX"; then
6314 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6315 1.1.1.2 christos $as_echo "$CXX" >&6; }
6316 1.1 christos else
6317 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 1.1.1.2 christos $as_echo "no" >&6; }
6319 1.1 christos fi
6320 1.1 christos
6321 1.1.1.2 christos
6322 1.1 christos test -n "$CXX" && break
6323 1.1 christos done
6324 1.1 christos fi
6325 1.1 christos if test -z "$CXX"; then
6326 1.1 christos ac_ct_CXX=$CXX
6327 1.1.1.2 christos for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6328 1.1 christos do
6329 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
6330 1.1 christos set dummy $ac_prog; ac_word=$2
6331 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6333 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6334 1.1.1.2 christos $as_echo_n "(cached) " >&6
6335 1.1 christos else
6336 1.1 christos if test -n "$ac_ct_CXX"; then
6337 1.1 christos ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6338 1.1 christos else
6339 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 1.1 christos for as_dir in $PATH
6341 1.1 christos do
6342 1.1 christos IFS=$as_save_IFS
6343 1.1 christos test -z "$as_dir" && as_dir=.
6344 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6345 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 1.1 christos ac_cv_prog_ac_ct_CXX="$ac_prog"
6347 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 1.1 christos break 2
6349 1.1 christos fi
6350 1.1 christos done
6351 1.1.1.2 christos done
6352 1.1.1.2 christos IFS=$as_save_IFS
6353 1.1 christos
6354 1.1 christos fi
6355 1.1 christos fi
6356 1.1 christos ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6357 1.1 christos if test -n "$ac_ct_CXX"; then
6358 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6359 1.1.1.2 christos $as_echo "$ac_ct_CXX" >&6; }
6360 1.1 christos else
6361 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 1.1.1.2 christos $as_echo "no" >&6; }
6363 1.1 christos fi
6364 1.1 christos
6365 1.1.1.2 christos
6366 1.1 christos test -n "$ac_ct_CXX" && break
6367 1.1 christos done
6368 1.1 christos
6369 1.1.1.2 christos if test "x$ac_ct_CXX" = x; then
6370 1.1.1.2 christos CXX="g++"
6371 1.1.1.2 christos else
6372 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
6373 1.1.1.2 christos yes:)
6374 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 1.1.1.2 christos ac_tool_warned=yes ;;
6377 1.1.1.2 christos esac
6378 1.1.1.2 christos CXX=$ac_ct_CXX
6379 1.1.1.2 christos fi
6380 1.1 christos fi
6381 1.1 christos
6382 1.1.1.2 christos fi
6383 1.1.1.2 christos fi
6384 1.1 christos # Provide some information about the compiler.
6385 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6386 1.1.1.2 christos set X $ac_compile
6387 1.1.1.2 christos ac_compiler=$2
6388 1.1.1.2 christos for ac_option in --version -v -V -qversion; do
6389 1.1.1.2 christos { { ac_try="$ac_compiler $ac_option >&5"
6390 1.1.1.2 christos case "(($ac_try" in
6391 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 1.1.1.2 christos *) ac_try_echo=$ac_try;;
6393 1.1.1.2 christos esac
6394 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6395 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
6396 1.1.1.2 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6397 1.1 christos ac_status=$?
6398 1.1.1.2 christos if test -s conftest.err; then
6399 1.1.1.2 christos sed '10a\
6400 1.1.1.2 christos ... rest of stderr output deleted ...
6401 1.1.1.2 christos 10q' conftest.err >conftest.er1
6402 1.1.1.2 christos cat conftest.er1 >&5
6403 1.1.1.2 christos fi
6404 1.1.1.2 christos rm -f conftest.er1 conftest.err
6405 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 1.1.1.2 christos test $ac_status = 0; }
6407 1.1.1.2 christos done
6408 1.1.1.2 christos
6409 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6410 1.1.1.2 christos $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6411 1.1.1.2 christos if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6412 1.1.1.2 christos $as_echo_n "(cached) " >&6
6413 1.1 christos else
6414 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 1.1 christos /* end confdefs.h. */
6416 1.1 christos
6417 1.1 christos int
6418 1.1 christos main ()
6419 1.1 christos {
6420 1.1 christos #ifndef __GNUC__
6421 1.1 christos choke me
6422 1.1 christos #endif
6423 1.1 christos
6424 1.1 christos ;
6425 1.1 christos return 0;
6426 1.1 christos }
6427 1.1 christos _ACEOF
6428 1.1.1.2 christos if ac_fn_cxx_try_compile "$LINENO"; then :
6429 1.1 christos ac_compiler_gnu=yes
6430 1.1 christos else
6431 1.1.1.2 christos ac_compiler_gnu=no
6432 1.1 christos fi
6433 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 1.1 christos ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6435 1.1 christos
6436 1.1 christos fi
6437 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6438 1.1.1.2 christos $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6439 1.1.1.2 christos if test $ac_compiler_gnu = yes; then
6440 1.1.1.2 christos GXX=yes
6441 1.1.1.2 christos else
6442 1.1.1.2 christos GXX=
6443 1.1.1.2 christos fi
6444 1.1 christos ac_test_CXXFLAGS=${CXXFLAGS+set}
6445 1.1 christos ac_save_CXXFLAGS=$CXXFLAGS
6446 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6447 1.1.1.2 christos $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6448 1.1.1.2 christos if test "${ac_cv_prog_cxx_g+set}" = set; then :
6449 1.1.1.2 christos $as_echo_n "(cached) " >&6
6450 1.1.1.2 christos else
6451 1.1.1.2 christos ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6452 1.1.1.2 christos ac_cxx_werror_flag=yes
6453 1.1.1.2 christos ac_cv_prog_cxx_g=no
6454 1.1.1.2 christos CXXFLAGS="-g"
6455 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 1.1 christos /* end confdefs.h. */
6457 1.1 christos
6458 1.1 christos int
6459 1.1 christos main ()
6460 1.1 christos {
6461 1.1 christos
6462 1.1 christos ;
6463 1.1 christos return 0;
6464 1.1 christos }
6465 1.1 christos _ACEOF
6466 1.1.1.2 christos if ac_fn_cxx_try_compile "$LINENO"; then :
6467 1.1 christos ac_cv_prog_cxx_g=yes
6468 1.1 christos else
6469 1.1.1.2 christos CXXFLAGS=""
6470 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 1.1.1.2 christos /* end confdefs.h. */
6472 1.1 christos
6473 1.1 christos int
6474 1.1 christos main ()
6475 1.1 christos {
6476 1.1.1.2 christos
6477 1.1 christos ;
6478 1.1 christos return 0;
6479 1.1 christos }
6480 1.1 christos _ACEOF
6481 1.1.1.2 christos if ac_fn_cxx_try_compile "$LINENO"; then :
6482 1.1 christos
6483 1.1.1.2 christos else
6484 1.1.1.2 christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6485 1.1.1.2 christos CXXFLAGS="-g"
6486 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 1.1 christos /* end confdefs.h. */
6488 1.1.1.2 christos
6489 1.1 christos int
6490 1.1 christos main ()
6491 1.1 christos {
6492 1.1.1.2 christos
6493 1.1 christos ;
6494 1.1 christos return 0;
6495 1.1 christos }
6496 1.1 christos _ACEOF
6497 1.1.1.2 christos if ac_fn_cxx_try_compile "$LINENO"; then :
6498 1.1.1.2 christos ac_cv_prog_cxx_g=yes
6499 1.1 christos fi
6500 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 1.1.1.2 christos fi
6502 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 1.1.1.2 christos fi
6504 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 1.1.1.2 christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6506 1.1.1.2 christos fi
6507 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6508 1.1.1.2 christos $as_echo "$ac_cv_prog_cxx_g" >&6; }
6509 1.1.1.2 christos if test "$ac_test_CXXFLAGS" = set; then
6510 1.1.1.2 christos CXXFLAGS=$ac_save_CXXFLAGS
6511 1.1.1.2 christos elif test $ac_cv_prog_cxx_g = yes; then
6512 1.1.1.2 christos if test "$GXX" = yes; then
6513 1.1.1.2 christos CXXFLAGS="-g -O2"
6514 1.1.1.2 christos else
6515 1.1.1.2 christos CXXFLAGS="-g"
6516 1.1.1.2 christos fi
6517 1.1.1.2 christos else
6518 1.1.1.2 christos if test "$GXX" = yes; then
6519 1.1.1.2 christos CXXFLAGS="-O2"
6520 1.1.1.2 christos else
6521 1.1.1.2 christos CXXFLAGS=
6522 1.1.1.2 christos fi
6523 1.1 christos fi
6524 1.1 christos ac_ext=c
6525 1.1 christos ac_cpp='$CPP $CPPFLAGS'
6526 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529 1.1 christos
6530 1.1 christos depcc="$CXX" am_compiler_list=
6531 1.1 christos
6532 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6533 1.1.1.2 christos $as_echo_n "checking dependency style of $depcc... " >&6; }
6534 1.1.1.2 christos if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6535 1.1.1.2 christos $as_echo_n "(cached) " >&6
6536 1.1 christos else
6537 1.1 christos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6538 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up
6539 1.1 christos # making bogus files that we don't know about and never remove. For
6540 1.1 christos # instance it was reported that on HP-UX the gcc test will end up
6541 1.1 christos # making a dummy file named `D' -- because `-MD' means `put the output
6542 1.1 christos # in D'.
6543 1.1 christos mkdir conftest.dir
6544 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're
6545 1.1 christos # using a relative directory.
6546 1.1 christos cp "$am_depcomp" conftest.dir
6547 1.1 christos cd conftest.dir
6548 1.1 christos # We will build objects and dependencies in a subdirectory because
6549 1.1 christos # it helps to detect inapplicable dependency modes. For instance
6550 1.1 christos # both Tru64's cc and ICC support -MD to output dependencies as a
6551 1.1 christos # side effect of compilation, but ICC will put the dependencies in
6552 1.1 christos # the current directory while Tru64 will put them in the object
6553 1.1 christos # directory.
6554 1.1 christos mkdir sub
6555 1.1 christos
6556 1.1 christos am_cv_CXX_dependencies_compiler_type=none
6557 1.1 christos if test "$am_compiler_list" = ""; then
6558 1.1 christos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6559 1.1 christos fi
6560 1.1.1.2 christos am__universal=false
6561 1.1.1.2 christos case " $depcc " in #(
6562 1.1.1.2 christos *\ -arch\ *\ -arch\ *) am__universal=true ;;
6563 1.1.1.2 christos esac
6564 1.1.1.2 christos
6565 1.1 christos for depmode in $am_compiler_list; do
6566 1.1 christos # Setup a source with many dependencies, because some compilers
6567 1.1 christos # like to wrap large dependency lists on column 80 (with \), and
6568 1.1 christos # we should not choose a depcomp mode which is confused by this.
6569 1.1 christos #
6570 1.1 christos # We need to recreate these files for each test, as the compiler may
6571 1.1 christos # overwrite some of them when testing with obscure command lines.
6572 1.1 christos # This happens at least with the AIX C compiler.
6573 1.1 christos : > sub/conftest.c
6574 1.1 christos for i in 1 2 3 4 5 6; do
6575 1.1 christos echo '#include "conftst'$i'.h"' >> sub/conftest.c
6576 1.1 christos # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6577 1.1 christos # Solaris 8's {/usr,}/bin/sh.
6578 1.1 christos touch sub/conftst$i.h
6579 1.1 christos done
6580 1.1 christos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6581 1.1 christos
6582 1.1.1.2 christos # We check with `-c' and `-o' for the sake of the "dashmstdout"
6583 1.1.1.2 christos # mode. It turns out that the SunPro C++ compiler does not properly
6584 1.1.1.2 christos # handle `-M -o', and we need to detect this. Also, some Intel
6585 1.1.1.2 christos # versions had trouble with output in subdirs
6586 1.1.1.2 christos am__obj=sub/conftest.${OBJEXT-o}
6587 1.1.1.2 christos am__minus_obj="-o $am__obj"
6588 1.1 christos case $depmode in
6589 1.1.1.2 christos gcc)
6590 1.1.1.2 christos # This depmode causes a compiler race in universal mode.
6591 1.1.1.2 christos test "$am__universal" = false || continue
6592 1.1.1.2 christos ;;
6593 1.1 christos nosideeffect)
6594 1.1 christos # after this tag, mechanisms are not by side-effect, so they'll
6595 1.1 christos # only be used when explicitly requested
6596 1.1 christos if test "x$enable_dependency_tracking" = xyes; then
6597 1.1 christos continue
6598 1.1 christos else
6599 1.1 christos break
6600 1.1 christos fi
6601 1.1 christos ;;
6602 1.1.1.2 christos msvisualcpp | msvcmsys)
6603 1.1.1.2 christos # This compiler won't grok `-c -o', but also, the minuso test has
6604 1.1.1.2 christos # not run yet. These depmodes are late enough in the game, and
6605 1.1.1.2 christos # so weak that their functioning should not be impacted.
6606 1.1.1.2 christos am__obj=conftest.${OBJEXT-o}
6607 1.1.1.2 christos am__minus_obj=
6608 1.1.1.2 christos ;;
6609 1.1 christos none) break ;;
6610 1.1 christos esac
6611 1.1 christos if depmode=$depmode \
6612 1.1.1.2 christos source=sub/conftest.c object=$am__obj \
6613 1.1 christos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6614 1.1.1.2 christos $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6615 1.1 christos >/dev/null 2>conftest.err &&
6616 1.1.1.2 christos grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6617 1.1 christos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6618 1.1.1.2 christos grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6619 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6620 1.1 christos # icc doesn't choke on unknown options, it will just issue warnings
6621 1.1 christos # or remarks (even with -Werror). So we grep stderr for any message
6622 1.1 christos # that says an option was ignored or not supported.
6623 1.1 christos # When given -MP, icc 7.0 and 7.1 complain thusly:
6624 1.1 christos # icc: Command line warning: ignoring option '-M'; no argument required
6625 1.1 christos # The diagnosis changed in icc 8.0:
6626 1.1 christos # icc: Command line remark: option '-MP' not supported
6627 1.1 christos if (grep 'ignoring option' conftest.err ||
6628 1.1 christos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6629 1.1 christos am_cv_CXX_dependencies_compiler_type=$depmode
6630 1.1 christos break
6631 1.1 christos fi
6632 1.1 christos fi
6633 1.1 christos done
6634 1.1 christos
6635 1.1 christos cd ..
6636 1.1 christos rm -rf conftest.dir
6637 1.1 christos else
6638 1.1 christos am_cv_CXX_dependencies_compiler_type=none
6639 1.1 christos fi
6640 1.1 christos
6641 1.1 christos fi
6642 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6643 1.1.1.2 christos $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6644 1.1 christos CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6645 1.1 christos
6646 1.1.1.2 christos if
6647 1.1 christos test "x$enable_dependency_tracking" != xno \
6648 1.1 christos && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6649 1.1 christos am__fastdepCXX_TRUE=
6650 1.1 christos am__fastdepCXX_FALSE='#'
6651 1.1 christos else
6652 1.1 christos am__fastdepCXX_TRUE='#'
6653 1.1 christos am__fastdepCXX_FALSE=
6654 1.1 christos fi
6655 1.1 christos
6656 1.1 christos
6657 1.1.1.2 christos if test "x$CC" != xcc; then
6658 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6659 1.1.1.2 christos $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6660 1.1.1.2 christos else
6661 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6662 1.1.1.2 christos $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6663 1.1.1.2 christos fi
6664 1.1.1.2 christos set dummy $CC; ac_cc=`$as_echo "$2" |
6665 1.1.1.2 christos sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6666 1.1.1.2 christos if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6667 1.1.1.2 christos $as_echo_n "(cached) " >&6
6668 1.1.1.2 christos else
6669 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 1.1.1.2 christos /* end confdefs.h. */
6671 1.1.1.2 christos
6672 1.1.1.2 christos int
6673 1.1.1.2 christos main ()
6674 1.1.1.2 christos {
6675 1.1.1.2 christos
6676 1.1.1.2 christos ;
6677 1.1.1.2 christos return 0;
6678 1.1.1.2 christos }
6679 1.1.1.2 christos _ACEOF
6680 1.1.1.2 christos # Make sure it works both with $CC and with simple cc.
6681 1.1.1.2 christos # We do the test twice because some compilers refuse to overwrite an
6682 1.1.1.2 christos # existing .o file with -o, though they will create one.
6683 1.1.1.2 christos ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6684 1.1.1.2 christos rm -f conftest2.*
6685 1.1.1.2 christos if { { case "(($ac_try" in
6686 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 1.1.1.2 christos *) ac_try_echo=$ac_try;;
6688 1.1.1.2 christos esac
6689 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6690 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
6691 1.1.1.2 christos (eval "$ac_try") 2>&5
6692 1.1.1.2 christos ac_status=$?
6693 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 1.1.1.2 christos test $ac_status = 0; } &&
6695 1.1.1.2 christos test -f conftest2.$ac_objext && { { case "(($ac_try" in
6696 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 1.1.1.2 christos *) ac_try_echo=$ac_try;;
6698 1.1.1.2 christos esac
6699 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6700 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
6701 1.1.1.2 christos (eval "$ac_try") 2>&5
6702 1.1.1.2 christos ac_status=$?
6703 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 1.1.1.2 christos test $ac_status = 0; };
6705 1.1.1.2 christos then
6706 1.1.1.2 christos eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6707 1.1.1.2 christos if test "x$CC" != xcc; then
6708 1.1.1.2 christos # Test first that cc exists at all.
6709 1.1.1.2 christos if { ac_try='cc -c conftest.$ac_ext >&5'
6710 1.1.1.2 christos { { case "(($ac_try" in
6711 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 1.1.1.2 christos *) ac_try_echo=$ac_try;;
6713 1.1.1.2 christos esac
6714 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6715 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
6716 1.1.1.2 christos (eval "$ac_try") 2>&5
6717 1.1.1.2 christos ac_status=$?
6718 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719 1.1.1.2 christos test $ac_status = 0; }; }; then
6720 1.1.1.2 christos ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6721 1.1.1.2 christos rm -f conftest2.*
6722 1.1.1.2 christos if { { case "(($ac_try" in
6723 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 1.1.1.2 christos *) ac_try_echo=$ac_try;;
6725 1.1.1.2 christos esac
6726 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6727 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
6728 1.1.1.2 christos (eval "$ac_try") 2>&5
6729 1.1.1.2 christos ac_status=$?
6730 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 1.1.1.2 christos test $ac_status = 0; } &&
6732 1.1.1.2 christos test -f conftest2.$ac_objext && { { case "(($ac_try" in
6733 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 1.1.1.2 christos *) ac_try_echo=$ac_try;;
6735 1.1.1.2 christos esac
6736 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6737 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
6738 1.1.1.2 christos (eval "$ac_try") 2>&5
6739 1.1.1.2 christos ac_status=$?
6740 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 1.1.1.2 christos test $ac_status = 0; };
6742 1.1.1.2 christos then
6743 1.1.1.2 christos # cc works too.
6744 1.1.1.2 christos :
6745 1.1.1.2 christos else
6746 1.1.1.2 christos # cc exists but doesn't like -o.
6747 1.1.1.2 christos eval ac_cv_prog_cc_${ac_cc}_c_o=no
6748 1.1.1.2 christos fi
6749 1.1.1.2 christos fi
6750 1.1.1.2 christos fi
6751 1.1.1.2 christos else
6752 1.1.1.2 christos eval ac_cv_prog_cc_${ac_cc}_c_o=no
6753 1.1.1.2 christos fi
6754 1.1.1.2 christos rm -f core conftest*
6755 1.1.1.2 christos
6756 1.1.1.2 christos fi
6757 1.1.1.2 christos if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6758 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6759 1.1.1.2 christos $as_echo "yes" >&6; }
6760 1.1.1.2 christos else
6761 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 1.1.1.2 christos $as_echo "no" >&6; }
6763 1.1.1.2 christos
6764 1.1.1.2 christos $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6765 1.1.1.2 christos
6766 1.1.1.2 christos fi
6767 1.1.1.2 christos
6768 1.1.1.2 christos # FIXME: we rely on the cache variable name because
6769 1.1.1.2 christos # there is no other way.
6770 1.1.1.2 christos set dummy $CC
6771 1.1.1.2 christos am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6772 1.1.1.2 christos eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6773 1.1.1.2 christos if test "$am_t" != yes; then
6774 1.1.1.2 christos # Losing compiler, so override with the script.
6775 1.1.1.2 christos # FIXME: It is wrong to rewrite CC.
6776 1.1.1.2 christos # But if we don't then we get into trouble of one sort or another.
6777 1.1.1.2 christos # A longer-term fix would be to have automake use am__CC in this case,
6778 1.1.1.2 christos # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6779 1.1.1.2 christos CC="$am_aux_dir/compile $CC"
6780 1.1.1.2 christos fi
6781 1.1.1.2 christos
6782 1.1.1.2 christos
6783 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6784 1.1.1.2 christos $as_echo_n "checking whether ln -s works... " >&6; }
6785 1.1 christos LN_S=$as_ln_s
6786 1.1 christos if test "$LN_S" = "ln -s"; then
6787 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6788 1.1.1.2 christos $as_echo "yes" >&6; }
6789 1.1 christos else
6790 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6791 1.1.1.2 christos $as_echo "no, using $LN_S" >&6; }
6792 1.1 christos fi
6793 1.1 christos
6794 1.1 christos if test -n "$ac_tool_prefix"; then
6795 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6796 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6797 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6799 1.1.1.2 christos if test "${ac_cv_prog_RANLIB+set}" = set; then :
6800 1.1.1.2 christos $as_echo_n "(cached) " >&6
6801 1.1 christos else
6802 1.1 christos if test -n "$RANLIB"; then
6803 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6804 1.1 christos else
6805 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 1.1 christos for as_dir in $PATH
6807 1.1 christos do
6808 1.1 christos IFS=$as_save_IFS
6809 1.1 christos test -z "$as_dir" && as_dir=.
6810 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6811 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6813 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 1.1 christos break 2
6815 1.1 christos fi
6816 1.1 christos done
6817 1.1.1.2 christos done
6818 1.1.1.2 christos IFS=$as_save_IFS
6819 1.1 christos
6820 1.1 christos fi
6821 1.1 christos fi
6822 1.1 christos RANLIB=$ac_cv_prog_RANLIB
6823 1.1 christos if test -n "$RANLIB"; then
6824 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6825 1.1.1.2 christos $as_echo "$RANLIB" >&6; }
6826 1.1 christos else
6827 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 1.1.1.2 christos $as_echo "no" >&6; }
6829 1.1 christos fi
6830 1.1 christos
6831 1.1.1.2 christos
6832 1.1 christos fi
6833 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then
6834 1.1 christos ac_ct_RANLIB=$RANLIB
6835 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args.
6836 1.1 christos set dummy ranlib; ac_word=$2
6837 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6839 1.1.1.2 christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6840 1.1.1.2 christos $as_echo_n "(cached) " >&6
6841 1.1 christos else
6842 1.1 christos if test -n "$ac_ct_RANLIB"; then
6843 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6844 1.1 christos else
6845 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 1.1 christos for as_dir in $PATH
6847 1.1 christos do
6848 1.1 christos IFS=$as_save_IFS
6849 1.1 christos test -z "$as_dir" && as_dir=.
6850 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6851 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib"
6853 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 1.1 christos break 2
6855 1.1 christos fi
6856 1.1 christos done
6857 1.1.1.2 christos done
6858 1.1.1.2 christos IFS=$as_save_IFS
6859 1.1 christos
6860 1.1 christos fi
6861 1.1 christos fi
6862 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6863 1.1 christos if test -n "$ac_ct_RANLIB"; then
6864 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6865 1.1.1.2 christos $as_echo "$ac_ct_RANLIB" >&6; }
6866 1.1 christos else
6867 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 1.1.1.2 christos $as_echo "no" >&6; }
6869 1.1 christos fi
6870 1.1 christos
6871 1.1.1.2 christos if test "x$ac_ct_RANLIB" = x; then
6872 1.1.1.2 christos RANLIB=":"
6873 1.1.1.2 christos else
6874 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
6875 1.1.1.2 christos yes:)
6876 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 1.1.1.2 christos ac_tool_warned=yes ;;
6879 1.1.1.2 christos esac
6880 1.1.1.2 christos RANLIB=$ac_ct_RANLIB
6881 1.1.1.2 christos fi
6882 1.1 christos else
6883 1.1 christos RANLIB="$ac_cv_prog_RANLIB"
6884 1.1 christos fi
6885 1.1 christos
6886 1.1 christos for ac_prog in gawk mawk nawk awk
6887 1.1 christos do
6888 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
6889 1.1 christos set dummy $ac_prog; ac_word=$2
6890 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6892 1.1.1.2 christos if test "${ac_cv_prog_AWK+set}" = set; then :
6893 1.1.1.2 christos $as_echo_n "(cached) " >&6
6894 1.1 christos else
6895 1.1 christos if test -n "$AWK"; then
6896 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test.
6897 1.1 christos else
6898 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 1.1 christos for as_dir in $PATH
6900 1.1 christos do
6901 1.1 christos IFS=$as_save_IFS
6902 1.1 christos test -z "$as_dir" && as_dir=.
6903 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6904 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 1.1 christos ac_cv_prog_AWK="$ac_prog"
6906 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 1.1 christos break 2
6908 1.1 christos fi
6909 1.1 christos done
6910 1.1.1.2 christos done
6911 1.1.1.2 christos IFS=$as_save_IFS
6912 1.1 christos
6913 1.1 christos fi
6914 1.1 christos fi
6915 1.1 christos AWK=$ac_cv_prog_AWK
6916 1.1 christos if test -n "$AWK"; then
6917 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6918 1.1.1.2 christos $as_echo "$AWK" >&6; }
6919 1.1 christos else
6920 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 1.1.1.2 christos $as_echo "no" >&6; }
6922 1.1 christos fi
6923 1.1 christos
6924 1.1 christos
6925 1.1.1.2 christos test -n "$AWK" && break
6926 1.1 christos done
6927 1.1 christos
6928 1.1 christos
6929 1.1 christos
6930 1.1 christos # Extract the first word of "bison", so it can be a program name with args.
6931 1.1 christos set dummy bison; ac_word=$2
6932 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6934 1.1.1.2 christos if test "${ac_cv_path_BISON+set}" = set; then :
6935 1.1.1.2 christos $as_echo_n "(cached) " >&6
6936 1.1 christos else
6937 1.1 christos case $BISON in
6938 1.1 christos [\\/]* | ?:[\\/]*)
6939 1.1 christos ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6940 1.1 christos ;;
6941 1.1 christos *)
6942 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 1.1 christos for as_dir in $PATH
6944 1.1 christos do
6945 1.1 christos IFS=$as_save_IFS
6946 1.1 christos test -z "$as_dir" && as_dir=.
6947 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6948 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 1.1 christos ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6950 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 1.1 christos break 2
6952 1.1 christos fi
6953 1.1 christos done
6954 1.1.1.2 christos done
6955 1.1.1.2 christos IFS=$as_save_IFS
6956 1.1 christos
6957 1.1 christos test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison"
6958 1.1 christos ;;
6959 1.1 christos esac
6960 1.1 christos fi
6961 1.1 christos BISON=$ac_cv_path_BISON
6962 1.1 christos if test -n "$BISON"; then
6963 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6964 1.1.1.2 christos $as_echo "$BISON" >&6; }
6965 1.1 christos else
6966 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 1.1.1.2 christos $as_echo "no" >&6; }
6968 1.1 christos fi
6969 1.1 christos
6970 1.1.1.2 christos
6971 1.1 christos # Extract the first word of "help2man", so it can be a program name with args.
6972 1.1 christos set dummy help2man; ac_word=$2
6973 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6975 1.1.1.2 christos if test "${ac_cv_path_HELP2MAN+set}" = set; then :
6976 1.1.1.2 christos $as_echo_n "(cached) " >&6
6977 1.1 christos else
6978 1.1 christos case $HELP2MAN in
6979 1.1 christos [\\/]* | ?:[\\/]*)
6980 1.1 christos ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
6981 1.1 christos ;;
6982 1.1 christos *)
6983 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 1.1 christos for as_dir in $PATH
6985 1.1 christos do
6986 1.1 christos IFS=$as_save_IFS
6987 1.1 christos test -z "$as_dir" && as_dir=.
6988 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
6989 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 1.1 christos ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
6991 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 1.1 christos break 2
6993 1.1 christos fi
6994 1.1 christos done
6995 1.1.1.2 christos done
6996 1.1.1.2 christos IFS=$as_save_IFS
6997 1.1 christos
6998 1.1 christos test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
6999 1.1 christos ;;
7000 1.1 christos esac
7001 1.1 christos fi
7002 1.1 christos HELP2MAN=$ac_cv_path_HELP2MAN
7003 1.1 christos if test -n "$HELP2MAN"; then
7004 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7005 1.1.1.2 christos $as_echo "$HELP2MAN" >&6; }
7006 1.1 christos else
7007 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 1.1.1.2 christos $as_echo "no" >&6; }
7009 1.1 christos fi
7010 1.1 christos
7011 1.1 christos
7012 1.1 christos
7013 1.1.1.2 christos # Check for a m4 that supports -P
7014 1.1.1.2 christos
7015 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
7016 1.1.1.2 christos $as_echo_n "checking for m4 that supports -P... " >&6; }
7017 1.1.1.2 christos if test "${ac_cv_path_M4+set}" = set; then :
7018 1.1.1.2 christos $as_echo_n "(cached) " >&6
7019 1.1 christos else
7020 1.1.1.2 christos if test -z "$M4"; then
7021 1.1.1.2 christos ac_path_M4_found=false
7022 1.1.1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST
7023 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 1.1 christos for as_dir in $PATH
7025 1.1 christos do
7026 1.1 christos IFS=$as_save_IFS
7027 1.1 christos test -z "$as_dir" && as_dir=.
7028 1.1.1.2 christos for ac_prog in gm4 gnum4 m4; do
7029 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7030 1.1.1.2 christos ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
7031 1.1.1.2 christos { test -f "$ac_path_M4" && $as_test_x "$ac_path_M4"; } || continue
7032 1.1.1.2 christos m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
7033 1.1.1.2 christos test "x$m4out" = x0 \
7034 1.1.1.2 christos && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
7035 1.1.1.2 christos $ac_path_M4_found && break 3
7036 1.1.1.2 christos done
7037 1.1.1.2 christos done
7038 1.1.1.2 christos done
7039 1.1.1.2 christos IFS=$as_save_IFS
7040 1.1.1.2 christos if test -z "$ac_cv_path_M4"; then
7041 1.1.1.2 christos as_fn_error "could not find m4 that supports -P" "$LINENO" 5
7042 1.1 christos fi
7043 1.1.1.2 christos else
7044 1.1.1.2 christos ac_cv_path_M4=$M4
7045 1.1 christos fi
7046 1.1 christos
7047 1.1 christos fi
7048 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
7049 1.1.1.2 christos $as_echo "$ac_cv_path_M4" >&6; }
7050 1.1.1.2 christos M4=$ac_cv_path_M4
7051 1.1 christos
7052 1.1 christos
7053 1.1 christos cat >>confdefs.h <<_ACEOF
7054 1.1 christos #define M4 "$M4"
7055 1.1 christos _ACEOF
7056 1.1 christos
7057 1.1 christos
7058 1.1 christos # Extract the first word of "indent", so it can be a program name with args.
7059 1.1 christos set dummy indent; ac_word=$2
7060 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
7062 1.1.1.2 christos if test "${ac_cv_path_INDENT+set}" = set; then :
7063 1.1.1.2 christos $as_echo_n "(cached) " >&6
7064 1.1 christos else
7065 1.1 christos case $INDENT in
7066 1.1 christos [\\/]* | ?:[\\/]*)
7067 1.1 christos ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
7068 1.1 christos ;;
7069 1.1 christos *)
7070 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 1.1 christos for as_dir in $PATH
7072 1.1 christos do
7073 1.1 christos IFS=$as_save_IFS
7074 1.1 christos test -z "$as_dir" && as_dir=.
7075 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7076 1.1.1.2 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 1.1 christos ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
7078 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 1.1 christos break 2
7080 1.1 christos fi
7081 1.1 christos done
7082 1.1.1.2 christos done
7083 1.1.1.2 christos IFS=$as_save_IFS
7084 1.1 christos
7085 1.1 christos test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
7086 1.1 christos ;;
7087 1.1 christos esac
7088 1.1 christos fi
7089 1.1 christos INDENT=$ac_cv_path_INDENT
7090 1.1 christos if test -n "$INDENT"; then
7091 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7092 1.1.1.2 christos $as_echo "$INDENT" >&6; }
7093 1.1 christos else
7094 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 1.1.1.2 christos $as_echo "no" >&6; }
7096 1.1 christos fi
7097 1.1 christos
7098 1.1.1.2 christos
7099 1.1 christos # if INDENT is set to 'indent' then we didn't find indent
7100 1.1 christos if test "$INDENT" != indent ; then
7101 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
7102 1.1.1.2 christos $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
7103 1.1 christos if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
7104 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 1.1.1.2 christos $as_echo "yes" >&6; }
7106 1.1 christos else
7107 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 1.1.1.2 christos $as_echo "no" >&6; }
7109 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
7110 1.1.1.2 christos $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
7111 1.1 christos fi
7112 1.1 christos else
7113 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5
7114 1.1.1.2 christos $as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
7115 1.1 christos fi
7116 1.1 christos
7117 1.1.1.2 christos # checks for headers
7118 1.1 christos
7119 1.1 christos ac_ext=c
7120 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7121 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7125 1.1.1.2 christos $as_echo_n "checking how to run the C preprocessor... " >&6; }
7126 1.1 christos # On Suns, sometimes $CPP names a directory.
7127 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
7128 1.1 christos CPP=
7129 1.1 christos fi
7130 1.1 christos if test -z "$CPP"; then
7131 1.1.1.2 christos if test "${ac_cv_prog_CPP+set}" = set; then :
7132 1.1.1.2 christos $as_echo_n "(cached) " >&6
7133 1.1 christos else
7134 1.1 christos # Double quotes because CPP needs to be expanded
7135 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7136 1.1 christos do
7137 1.1 christos ac_preproc_ok=false
7138 1.1 christos for ac_c_preproc_warn_flag in '' yes
7139 1.1 christos do
7140 1.1 christos # Use a header file that comes with gcc, so configuring glibc
7141 1.1 christos # with a fresh cross-compiler works.
7142 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7143 1.1 christos # <limits.h> exists even on freestanding compilers.
7144 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
7145 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
7146 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 1.1 christos /* end confdefs.h. */
7148 1.1 christos #ifdef __STDC__
7149 1.1 christos # include <limits.h>
7150 1.1 christos #else
7151 1.1 christos # include <assert.h>
7152 1.1 christos #endif
7153 1.1 christos Syntax error
7154 1.1 christos _ACEOF
7155 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
7156 1.1 christos
7157 1.1.1.2 christos else
7158 1.1 christos # Broken: fails on valid input.
7159 1.1 christos continue
7160 1.1 christos fi
7161 1.1 christos rm -f conftest.err conftest.$ac_ext
7162 1.1 christos
7163 1.1.1.2 christos # OK, works on sane cases. Now check whether nonexistent headers
7164 1.1 christos # can be detected and how.
7165 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 1.1 christos /* end confdefs.h. */
7167 1.1 christos #include <ac_nonexistent.h>
7168 1.1 christos _ACEOF
7169 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
7170 1.1 christos # Broken: success on invalid input.
7171 1.1 christos continue
7172 1.1 christos else
7173 1.1 christos # Passes both tests.
7174 1.1 christos ac_preproc_ok=:
7175 1.1 christos break
7176 1.1 christos fi
7177 1.1 christos rm -f conftest.err conftest.$ac_ext
7178 1.1 christos
7179 1.1 christos done
7180 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 1.1 christos rm -f conftest.err conftest.$ac_ext
7182 1.1.1.2 christos if $ac_preproc_ok; then :
7183 1.1 christos break
7184 1.1 christos fi
7185 1.1 christos
7186 1.1 christos done
7187 1.1 christos ac_cv_prog_CPP=$CPP
7188 1.1 christos
7189 1.1 christos fi
7190 1.1 christos CPP=$ac_cv_prog_CPP
7191 1.1 christos else
7192 1.1 christos ac_cv_prog_CPP=$CPP
7193 1.1 christos fi
7194 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7195 1.1.1.2 christos $as_echo "$CPP" >&6; }
7196 1.1 christos ac_preproc_ok=false
7197 1.1 christos for ac_c_preproc_warn_flag in '' yes
7198 1.1 christos do
7199 1.1 christos # Use a header file that comes with gcc, so configuring glibc
7200 1.1 christos # with a fresh cross-compiler works.
7201 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202 1.1 christos # <limits.h> exists even on freestanding compilers.
7203 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
7204 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
7205 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 1.1 christos /* end confdefs.h. */
7207 1.1 christos #ifdef __STDC__
7208 1.1 christos # include <limits.h>
7209 1.1 christos #else
7210 1.1 christos # include <assert.h>
7211 1.1 christos #endif
7212 1.1 christos Syntax error
7213 1.1 christos _ACEOF
7214 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
7215 1.1 christos
7216 1.1.1.2 christos else
7217 1.1 christos # Broken: fails on valid input.
7218 1.1 christos continue
7219 1.1 christos fi
7220 1.1 christos rm -f conftest.err conftest.$ac_ext
7221 1.1 christos
7222 1.1.1.2 christos # OK, works on sane cases. Now check whether nonexistent headers
7223 1.1 christos # can be detected and how.
7224 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 1.1 christos /* end confdefs.h. */
7226 1.1 christos #include <ac_nonexistent.h>
7227 1.1 christos _ACEOF
7228 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
7229 1.1 christos # Broken: success on invalid input.
7230 1.1 christos continue
7231 1.1 christos else
7232 1.1 christos # Passes both tests.
7233 1.1 christos ac_preproc_ok=:
7234 1.1 christos break
7235 1.1 christos fi
7236 1.1 christos rm -f conftest.err conftest.$ac_ext
7237 1.1 christos
7238 1.1 christos done
7239 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7240 1.1 christos rm -f conftest.err conftest.$ac_ext
7241 1.1.1.2 christos if $ac_preproc_ok; then :
7242 1.1.1.2 christos
7243 1.1 christos else
7244 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7245 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7246 1.1.1.2 christos as_fn_error "C preprocessor \"$CPP\" fails sanity check
7247 1.1.1.2 christos See \`config.log' for more details." "$LINENO" 5; }
7248 1.1 christos fi
7249 1.1 christos
7250 1.1 christos ac_ext=c
7251 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7252 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255 1.1 christos
7256 1.1 christos
7257 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7258 1.1.1.2 christos $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7259 1.1.1.2 christos if test "${ac_cv_path_GREP+set}" = set; then :
7260 1.1.1.2 christos $as_echo_n "(cached) " >&6
7261 1.1.1.2 christos else
7262 1.1.1.2 christos if test -z "$GREP"; then
7263 1.1.1.2 christos ac_path_GREP_found=false
7264 1.1.1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST
7265 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 1.1.1.2 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7267 1.1.1.2 christos do
7268 1.1.1.2 christos IFS=$as_save_IFS
7269 1.1.1.2 christos test -z "$as_dir" && as_dir=.
7270 1.1.1.2 christos for ac_prog in grep ggrep; do
7271 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7272 1.1.1.2 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7273 1.1.1.2 christos { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7274 1.1.1.2 christos # Check for GNU ac_path_GREP and select it if it is found.
7275 1.1.1.2 christos # Check for GNU $ac_path_GREP
7276 1.1.1.2 christos case `"$ac_path_GREP" --version 2>&1` in
7277 1.1.1.2 christos *GNU*)
7278 1.1.1.2 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7279 1.1.1.2 christos *)
7280 1.1.1.2 christos ac_count=0
7281 1.1.1.2 christos $as_echo_n 0123456789 >"conftest.in"
7282 1.1.1.2 christos while :
7283 1.1.1.2 christos do
7284 1.1.1.2 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
7285 1.1.1.2 christos mv "conftest.tmp" "conftest.in"
7286 1.1.1.2 christos cp "conftest.in" "conftest.nl"
7287 1.1.1.2 christos $as_echo 'GREP' >> "conftest.nl"
7288 1.1.1.2 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7289 1.1.1.2 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7290 1.1.1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
7291 1.1.1.2 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
7292 1.1.1.2 christos # Best one so far, save it but keep looking for a better one
7293 1.1.1.2 christos ac_cv_path_GREP="$ac_path_GREP"
7294 1.1.1.2 christos ac_path_GREP_max=$ac_count
7295 1.1 christos fi
7296 1.1.1.2 christos # 10*(2^10) chars as input seems more than enough
7297 1.1.1.2 christos test $ac_count -gt 10 && break
7298 1.1.1.2 christos done
7299 1.1.1.2 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7300 1.1.1.2 christos esac
7301 1.1.1.2 christos
7302 1.1.1.2 christos $ac_path_GREP_found && break 3
7303 1.1.1.2 christos done
7304 1.1.1.2 christos done
7305 1.1.1.2 christos done
7306 1.1.1.2 christos IFS=$as_save_IFS
7307 1.1.1.2 christos if test -z "$ac_cv_path_GREP"; then
7308 1.1.1.2 christos as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7309 1.1.1.2 christos fi
7310 1.1.1.2 christos else
7311 1.1.1.2 christos ac_cv_path_GREP=$GREP
7312 1.1 christos fi
7313 1.1 christos
7314 1.1.1.2 christos fi
7315 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7316 1.1.1.2 christos $as_echo "$ac_cv_path_GREP" >&6; }
7317 1.1.1.2 christos GREP="$ac_cv_path_GREP"
7318 1.1 christos
7319 1.1 christos
7320 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7321 1.1.1.2 christos $as_echo_n "checking for egrep... " >&6; }
7322 1.1.1.2 christos if test "${ac_cv_path_EGREP+set}" = set; then :
7323 1.1.1.2 christos $as_echo_n "(cached) " >&6
7324 1.1 christos else
7325 1.1.1.2 christos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7326 1.1.1.2 christos then ac_cv_path_EGREP="$GREP -E"
7327 1.1.1.2 christos else
7328 1.1.1.2 christos if test -z "$EGREP"; then
7329 1.1.1.2 christos ac_path_EGREP_found=false
7330 1.1.1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST
7331 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 1.1.1.2 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7333 1.1.1.2 christos do
7334 1.1.1.2 christos IFS=$as_save_IFS
7335 1.1.1.2 christos test -z "$as_dir" && as_dir=.
7336 1.1.1.2 christos for ac_prog in egrep; do
7337 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7338 1.1.1.2 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7339 1.1.1.2 christos { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7340 1.1.1.2 christos # Check for GNU ac_path_EGREP and select it if it is found.
7341 1.1.1.2 christos # Check for GNU $ac_path_EGREP
7342 1.1.1.2 christos case `"$ac_path_EGREP" --version 2>&1` in
7343 1.1.1.2 christos *GNU*)
7344 1.1.1.2 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7345 1.1.1.2 christos *)
7346 1.1.1.2 christos ac_count=0
7347 1.1.1.2 christos $as_echo_n 0123456789 >"conftest.in"
7348 1.1.1.2 christos while :
7349 1.1.1.2 christos do
7350 1.1.1.2 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
7351 1.1.1.2 christos mv "conftest.tmp" "conftest.in"
7352 1.1.1.2 christos cp "conftest.in" "conftest.nl"
7353 1.1.1.2 christos $as_echo 'EGREP' >> "conftest.nl"
7354 1.1.1.2 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7355 1.1.1.2 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7356 1.1.1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
7357 1.1.1.2 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7358 1.1.1.2 christos # Best one so far, save it but keep looking for a better one
7359 1.1.1.2 christos ac_cv_path_EGREP="$ac_path_EGREP"
7360 1.1.1.2 christos ac_path_EGREP_max=$ac_count
7361 1.1.1.2 christos fi
7362 1.1.1.2 christos # 10*(2^10) chars as input seems more than enough
7363 1.1.1.2 christos test $ac_count -gt 10 && break
7364 1.1 christos done
7365 1.1.1.2 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7366 1.1.1.2 christos esac
7367 1.1 christos
7368 1.1.1.2 christos $ac_path_EGREP_found && break 3
7369 1.1.1.2 christos done
7370 1.1.1.2 christos done
7371 1.1.1.2 christos done
7372 1.1.1.2 christos IFS=$as_save_IFS
7373 1.1.1.2 christos if test -z "$ac_cv_path_EGREP"; then
7374 1.1.1.2 christos as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7375 1.1.1.2 christos fi
7376 1.1 christos else
7377 1.1.1.2 christos ac_cv_path_EGREP=$EGREP
7378 1.1 christos fi
7379 1.1 christos
7380 1.1.1.2 christos fi
7381 1.1 christos fi
7382 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7383 1.1.1.2 christos $as_echo "$ac_cv_path_EGREP" >&6; }
7384 1.1.1.2 christos EGREP="$ac_cv_path_EGREP"
7385 1.1.1.2 christos
7386 1.1 christos
7387 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7388 1.1.1.2 christos $as_echo_n "checking for ANSI C header files... " >&6; }
7389 1.1.1.2 christos if test "${ac_cv_header_stdc+set}" = set; then :
7390 1.1.1.2 christos $as_echo_n "(cached) " >&6
7391 1.1 christos else
7392 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 1.1 christos /* end confdefs.h. */
7394 1.1 christos #include <stdlib.h>
7395 1.1 christos #include <stdarg.h>
7396 1.1 christos #include <string.h>
7397 1.1 christos #include <float.h>
7398 1.1 christos
7399 1.1 christos int
7400 1.1 christos main ()
7401 1.1 christos {
7402 1.1 christos
7403 1.1 christos ;
7404 1.1 christos return 0;
7405 1.1 christos }
7406 1.1 christos _ACEOF
7407 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
7408 1.1 christos ac_cv_header_stdc=yes
7409 1.1 christos else
7410 1.1.1.2 christos ac_cv_header_stdc=no
7411 1.1 christos fi
7412 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 1.1 christos
7414 1.1 christos if test $ac_cv_header_stdc = yes; then
7415 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7416 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 1.1 christos /* end confdefs.h. */
7418 1.1 christos #include <string.h>
7419 1.1 christos
7420 1.1 christos _ACEOF
7421 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7422 1.1.1.2 christos $EGREP "memchr" >/dev/null 2>&1; then :
7423 1.1.1.2 christos
7424 1.1 christos else
7425 1.1 christos ac_cv_header_stdc=no
7426 1.1 christos fi
7427 1.1 christos rm -f conftest*
7428 1.1 christos
7429 1.1 christos fi
7430 1.1 christos
7431 1.1 christos if test $ac_cv_header_stdc = yes; then
7432 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7433 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 1.1 christos /* end confdefs.h. */
7435 1.1 christos #include <stdlib.h>
7436 1.1 christos
7437 1.1 christos _ACEOF
7438 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7439 1.1.1.2 christos $EGREP "free" >/dev/null 2>&1; then :
7440 1.1.1.2 christos
7441 1.1 christos else
7442 1.1 christos ac_cv_header_stdc=no
7443 1.1 christos fi
7444 1.1 christos rm -f conftest*
7445 1.1 christos
7446 1.1 christos fi
7447 1.1 christos
7448 1.1 christos if test $ac_cv_header_stdc = yes; then
7449 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7450 1.1.1.2 christos if test "$cross_compiling" = yes; then :
7451 1.1 christos :
7452 1.1 christos else
7453 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 1.1 christos /* end confdefs.h. */
7455 1.1 christos #include <ctype.h>
7456 1.1.1.2 christos #include <stdlib.h>
7457 1.1 christos #if ((' ' & 0x0FF) == 0x020)
7458 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7459 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7460 1.1 christos #else
7461 1.1 christos # define ISLOWER(c) \
7462 1.1 christos (('a' <= (c) && (c) <= 'i') \
7463 1.1 christos || ('j' <= (c) && (c) <= 'r') \
7464 1.1 christos || ('s' <= (c) && (c) <= 'z'))
7465 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7466 1.1 christos #endif
7467 1.1 christos
7468 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7469 1.1 christos int
7470 1.1 christos main ()
7471 1.1 christos {
7472 1.1 christos int i;
7473 1.1 christos for (i = 0; i < 256; i++)
7474 1.1 christos if (XOR (islower (i), ISLOWER (i))
7475 1.1 christos || toupper (i) != TOUPPER (i))
7476 1.1.1.2 christos return 2;
7477 1.1.1.2 christos return 0;
7478 1.1 christos }
7479 1.1 christos _ACEOF
7480 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
7481 1.1 christos
7482 1.1.1.2 christos else
7483 1.1.1.2 christos ac_cv_header_stdc=no
7484 1.1 christos fi
7485 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7486 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
7487 1.1 christos fi
7488 1.1.1.2 christos
7489 1.1 christos fi
7490 1.1 christos fi
7491 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7492 1.1.1.2 christos $as_echo "$ac_cv_header_stdc" >&6; }
7493 1.1 christos if test $ac_cv_header_stdc = yes; then
7494 1.1 christos
7495 1.1.1.2 christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7496 1.1 christos
7497 1.1 christos fi
7498 1.1 christos
7499 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7500 1.1.1.2 christos $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7501 1.1.1.2 christos if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7502 1.1.1.2 christos $as_echo_n "(cached) " >&6
7503 1.1 christos else
7504 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 1.1 christos /* end confdefs.h. */
7506 1.1 christos #include <sys/types.h>
7507 1.1 christos #include <sys/wait.h>
7508 1.1 christos #ifndef WEXITSTATUS
7509 1.1.1.2 christos # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7510 1.1 christos #endif
7511 1.1 christos #ifndef WIFEXITED
7512 1.1 christos # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7513 1.1 christos #endif
7514 1.1 christos
7515 1.1 christos int
7516 1.1 christos main ()
7517 1.1 christos {
7518 1.1 christos int s;
7519 1.1 christos wait (&s);
7520 1.1 christos s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7521 1.1 christos ;
7522 1.1 christos return 0;
7523 1.1 christos }
7524 1.1 christos _ACEOF
7525 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
7526 1.1 christos ac_cv_header_sys_wait_h=yes
7527 1.1 christos else
7528 1.1.1.2 christos ac_cv_header_sys_wait_h=no
7529 1.1 christos fi
7530 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 1.1.1.2 christos fi
7532 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7533 1.1.1.2 christos $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7534 1.1.1.2 christos if test $ac_cv_header_sys_wait_h = yes; then
7535 1.1.1.2 christos
7536 1.1.1.2 christos $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7537 1.1.1.2 christos
7538 1.1 christos fi
7539 1.1.1.2 christos
7540 1.1.1.2 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7541 1.1.1.2 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7542 1.1.1.2 christos inttypes.h stdint.h unistd.h
7543 1.1.1.2 christos do :
7544 1.1.1.2 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7546 1.1.1.2 christos "
7547 1.1.1.2 christos eval as_val=\$$as_ac_Header
7548 1.1.1.2 christos if test "x$as_val" = x""yes; then :
7549 1.1 christos cat >>confdefs.h <<_ACEOF
7550 1.1.1.2 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 1.1 christos _ACEOF
7552 1.1 christos
7553 1.1.1.2 christos fi
7554 1.1.1.2 christos
7555 1.1.1.2 christos done
7556 1.1.1.2 christos
7557 1.1.1.2 christos
7558 1.1.1.2 christos for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h stddef.h stdlib.h string.h strings.h unistd.h
7559 1.1.1.2 christos do :
7560 1.1.1.2 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7562 1.1.1.2 christos eval as_val=\$$as_ac_Header
7563 1.1.1.2 christos if test "x$as_val" = x""yes; then :
7564 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
7565 1.1.1.2 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566 1.1.1.2 christos _ACEOF
7567 1.1 christos
7568 1.1 christos fi
7569 1.1 christos
7570 1.1.1.2 christos done
7571 1.1.1.2 christos
7572 1.1.1.2 christos
7573 1.1.1.2 christos # checks for libraries
7574 1.1 christos
7575 1.1 christos # The test test-pthread uses libpthread, so we check for it here, but
7576 1.1 christos # all we need is the preprocessor symbol defined since we don't need
7577 1.1 christos # LIBS to include libpthread for building flex.
7578 1.1 christos
7579 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
7580 1.1.1.2 christos $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
7581 1.1.1.2 christos if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
7582 1.1.1.2 christos $as_echo_n "(cached) " >&6
7583 1.1 christos else
7584 1.1 christos ac_check_lib_save_LIBS=$LIBS
7585 1.1 christos LIBS="-lpthread $LIBS"
7586 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 1.1 christos /* end confdefs.h. */
7588 1.1 christos
7589 1.1.1.2 christos /* Override any GCC internal prototype to avoid an error.
7590 1.1.1.2 christos Use char because int might match the return type of a GCC
7591 1.1.1.2 christos builtin and then its argument prototype would still apply. */
7592 1.1 christos #ifdef __cplusplus
7593 1.1 christos extern "C"
7594 1.1 christos #endif
7595 1.1 christos char pthread_mutex_lock ();
7596 1.1 christos int
7597 1.1 christos main ()
7598 1.1 christos {
7599 1.1.1.2 christos return pthread_mutex_lock ();
7600 1.1 christos ;
7601 1.1 christos return 0;
7602 1.1 christos }
7603 1.1 christos _ACEOF
7604 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
7605 1.1 christos ac_cv_lib_pthread_pthread_mutex_lock=yes
7606 1.1 christos else
7607 1.1.1.2 christos ac_cv_lib_pthread_pthread_mutex_lock=no
7608 1.1 christos fi
7609 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
7610 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
7611 1.1 christos LIBS=$ac_check_lib_save_LIBS
7612 1.1 christos fi
7613 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
7614 1.1.1.2 christos $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
7615 1.1.1.2 christos if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
7616 1.1 christos
7617 1.1.1.2 christos $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
7618 1.1 christos
7619 1.1 christos else
7620 1.1 christos
7621 1.1.1.2 christos $as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h
7622 1.1 christos
7623 1.1 christos
7624 1.1 christos fi
7625 1.1 christos
7626 1.1 christos for ac_header in pthread.h
7627 1.1.1.2 christos do :
7628 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7629 1.1.1.2 christos if test "x$ac_cv_header_pthread_h" = x""yes; then :
7630 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
7631 1.1.1.2 christos #define HAVE_PTHREAD_H 1
7632 1.1 christos _ACEOF
7633 1.1 christos
7634 1.1 christos fi
7635 1.1 christos
7636 1.1.1.2 christos done
7637 1.1 christos
7638 1.1 christos
7639 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
7640 1.1.1.2 christos $as_echo_n "checking for log10 in -lm... " >&6; }
7641 1.1.1.2 christos if test "${ac_cv_lib_m_log10+set}" = set; then :
7642 1.1.1.2 christos $as_echo_n "(cached) " >&6
7643 1.1 christos else
7644 1.1.1.2 christos ac_check_lib_save_LIBS=$LIBS
7645 1.1.1.2 christos LIBS="-lm $LIBS"
7646 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 1.1.1.2 christos /* end confdefs.h. */
7648 1.1 christos
7649 1.1.1.2 christos /* Override any GCC internal prototype to avoid an error.
7650 1.1.1.2 christos Use char because int might match the return type of a GCC
7651 1.1.1.2 christos builtin and then its argument prototype would still apply. */
7652 1.1.1.2 christos #ifdef __cplusplus
7653 1.1.1.2 christos extern "C"
7654 1.1.1.2 christos #endif
7655 1.1.1.2 christos char log10 ();
7656 1.1.1.2 christos int
7657 1.1.1.2 christos main ()
7658 1.1.1.2 christos {
7659 1.1.1.2 christos return log10 ();
7660 1.1.1.2 christos ;
7661 1.1.1.2 christos return 0;
7662 1.1.1.2 christos }
7663 1.1.1.2 christos _ACEOF
7664 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
7665 1.1.1.2 christos ac_cv_lib_m_log10=yes
7666 1.1.1.2 christos else
7667 1.1.1.2 christos ac_cv_lib_m_log10=no
7668 1.1.1.2 christos fi
7669 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
7670 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
7671 1.1.1.2 christos LIBS=$ac_check_lib_save_LIBS
7672 1.1 christos fi
7673 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
7674 1.1.1.2 christos $as_echo "$ac_cv_lib_m_log10" >&6; }
7675 1.1.1.2 christos if test "x$ac_cv_lib_m_log10" = x""yes; then :
7676 1.1 christos cat >>confdefs.h <<_ACEOF
7677 1.1.1.2 christos #define HAVE_LIBM 1
7678 1.1 christos _ACEOF
7679 1.1 christos
7680 1.1.1.2 christos LIBS="-lm $LIBS"
7681 1.1 christos
7682 1.1.1.2 christos fi
7683 1.1 christos
7684 1.1 christos
7685 1.1 christos # Checks for typedefs, structures, and compiler characteristics.
7686 1.1 christos
7687 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7688 1.1.1.2 christos $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7689 1.1.1.2 christos if test "${ac_cv_header_stdbool_h+set}" = set; then :
7690 1.1.1.2 christos $as_echo_n "(cached) " >&6
7691 1.1 christos else
7692 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 1.1 christos /* end confdefs.h. */
7694 1.1 christos
7695 1.1 christos #include <stdbool.h>
7696 1.1 christos #ifndef bool
7697 1.1.1.2 christos "error: bool is not defined"
7698 1.1 christos #endif
7699 1.1 christos #ifndef false
7700 1.1.1.2 christos "error: false is not defined"
7701 1.1 christos #endif
7702 1.1 christos #if false
7703 1.1.1.2 christos "error: false is not 0"
7704 1.1 christos #endif
7705 1.1 christos #ifndef true
7706 1.1.1.2 christos "error: true is not defined"
7707 1.1 christos #endif
7708 1.1 christos #if true != 1
7709 1.1.1.2 christos "error: true is not 1"
7710 1.1 christos #endif
7711 1.1 christos #ifndef __bool_true_false_are_defined
7712 1.1.1.2 christos "error: __bool_true_false_are_defined is not defined"
7713 1.1 christos #endif
7714 1.1 christos
7715 1.1 christos struct s { _Bool s: 1; _Bool t; } s;
7716 1.1 christos
7717 1.1 christos char a[true == 1 ? 1 : -1];
7718 1.1 christos char b[false == 0 ? 1 : -1];
7719 1.1 christos char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7720 1.1.1.2 christos char d[(bool) 0.5 == true ? 1 : -1];
7721 1.1 christos bool e = &s;
7722 1.1.1.2 christos char f[(_Bool) 0.0 == false ? 1 : -1];
7723 1.1 christos char g[true];
7724 1.1 christos char h[sizeof (_Bool)];
7725 1.1 christos char i[sizeof s.t];
7726 1.1.1.2 christos enum { j = false, k = true, l = false * true, m = true * 256 };
7727 1.1.1.2 christos /* The following fails for
7728 1.1.1.2 christos HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7729 1.1.1.2 christos _Bool n[m];
7730 1.1.1.2 christos char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7731 1.1.1.2 christos char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7732 1.1.1.2 christos # if defined __xlc__ || defined __GNUC__
7733 1.1.1.2 christos /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7734 1.1.1.2 christos reported by James Lemley on 2005-10-05; see
7735 1.1.1.2 christos http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7736 1.1.1.2 christos This test is not quite right, since xlc is allowed to
7737 1.1.1.2 christos reject this program, as the initializer for xlcbug is
7738 1.1.1.2 christos not one of the forms that C requires support for.
7739 1.1.1.2 christos However, doing the test right would require a runtime
7740 1.1.1.2 christos test, and that would make cross-compilation harder.
7741 1.1.1.2 christos Let us hope that IBM fixes the xlc bug, and also adds
7742 1.1.1.2 christos support for this kind of constant expression. In the
7743 1.1.1.2 christos meantime, this test will reject xlc, which is OK, since
7744 1.1.1.2 christos our stdbool.h substitute should suffice. We also test
7745 1.1.1.2 christos this with GCC, where it should work, to detect more
7746 1.1.1.2 christos quickly whether someone messes up the test in the
7747 1.1.1.2 christos future. */
7748 1.1.1.2 christos char digs[] = "0123456789";
7749 1.1.1.2 christos int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7750 1.1.1.2 christos # endif
7751 1.1.1.2 christos /* Catch a bug in an HP-UX C compiler. See
7752 1.1.1.2 christos http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7753 1.1.1.2 christos http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7754 1.1.1.2 christos */
7755 1.1.1.2 christos _Bool q = true;
7756 1.1.1.2 christos _Bool *pq = &q;
7757 1.1 christos
7758 1.1 christos int
7759 1.1 christos main ()
7760 1.1 christos {
7761 1.1 christos
7762 1.1.1.2 christos *pq |= q;
7763 1.1.1.2 christos *pq |= ! q;
7764 1.1.1.2 christos /* Refer to every declared value, to avoid compiler optimizations. */
7765 1.1.1.2 christos return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7766 1.1.1.2 christos + !m + !n + !o + !p + !q + !pq);
7767 1.1.1.2 christos
7768 1.1 christos ;
7769 1.1 christos return 0;
7770 1.1 christos }
7771 1.1 christos _ACEOF
7772 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
7773 1.1.1.2 christos ac_cv_header_stdbool_h=yes
7774 1.1 christos else
7775 1.1.1.2 christos ac_cv_header_stdbool_h=no
7776 1.1 christos fi
7777 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 1.1 christos fi
7779 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7780 1.1.1.2 christos $as_echo "$ac_cv_header_stdbool_h" >&6; }
7781 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7782 1.1.1.2 christos if test "x$ac_cv_type__Bool" = x""yes; then :
7783 1.1 christos
7784 1.1 christos cat >>confdefs.h <<_ACEOF
7785 1.1 christos #define HAVE__BOOL 1
7786 1.1 christos _ACEOF
7787 1.1 christos
7788 1.1 christos
7789 1.1 christos fi
7790 1.1 christos
7791 1.1 christos if test $ac_cv_header_stdbool_h = yes; then
7792 1.1 christos
7793 1.1.1.2 christos $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7794 1.1 christos
7795 1.1 christos fi
7796 1.1 christos
7797 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7798 1.1.1.2 christos $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7799 1.1.1.2 christos if test "${ac_cv_c_const+set}" = set; then :
7800 1.1.1.2 christos $as_echo_n "(cached) " >&6
7801 1.1 christos else
7802 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 1.1 christos /* end confdefs.h. */
7804 1.1 christos
7805 1.1 christos int
7806 1.1 christos main ()
7807 1.1 christos {
7808 1.1 christos /* FIXME: Include the comments suggested by Paul. */
7809 1.1 christos #ifndef __cplusplus
7810 1.1 christos /* Ultrix mips cc rejects this. */
7811 1.1 christos typedef int charset[2];
7812 1.1.1.2 christos const charset cs;
7813 1.1 christos /* SunOS 4.1.1 cc rejects this. */
7814 1.1.1.2 christos char const *const *pcpcc;
7815 1.1.1.2 christos char **ppc;
7816 1.1 christos /* NEC SVR4.0.2 mips cc rejects this. */
7817 1.1 christos struct point {int x, y;};
7818 1.1 christos static struct point const zero = {0,0};
7819 1.1 christos /* AIX XL C 1.02.0.0 rejects this.
7820 1.1 christos It does not let you subtract one const X* pointer from another in
7821 1.1 christos an arm of an if-expression whose if-part is not a constant
7822 1.1 christos expression */
7823 1.1 christos const char *g = "string";
7824 1.1.1.2 christos pcpcc = &g + (g ? g-g : 0);
7825 1.1 christos /* HPUX 7.0 cc rejects these. */
7826 1.1.1.2 christos ++pcpcc;
7827 1.1.1.2 christos ppc = (char**) pcpcc;
7828 1.1.1.2 christos pcpcc = (char const *const *) ppc;
7829 1.1 christos { /* SCO 3.2v4 cc rejects this. */
7830 1.1 christos char *t;
7831 1.1 christos char const *s = 0 ? (char *) 0 : (char const *) 0;
7832 1.1 christos
7833 1.1 christos *t++ = 0;
7834 1.1.1.2 christos if (s) return 0;
7835 1.1 christos }
7836 1.1 christos { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7837 1.1 christos int x[] = {25, 17};
7838 1.1 christos const int *foo = &x[0];
7839 1.1 christos ++foo;
7840 1.1 christos }
7841 1.1 christos { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7842 1.1 christos typedef const int *iptr;
7843 1.1 christos iptr p = 0;
7844 1.1 christos ++p;
7845 1.1 christos }
7846 1.1 christos { /* AIX XL C 1.02.0.0 rejects this saying
7847 1.1 christos "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7848 1.1 christos struct s { int j; const int *ap[3]; };
7849 1.1 christos struct s *b; b->j = 5;
7850 1.1 christos }
7851 1.1 christos { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7852 1.1 christos const int foo = 10;
7853 1.1.1.2 christos if (!foo) return 0;
7854 1.1 christos }
7855 1.1.1.2 christos return !cs[0] && !zero.x;
7856 1.1 christos #endif
7857 1.1 christos
7858 1.1 christos ;
7859 1.1 christos return 0;
7860 1.1 christos }
7861 1.1 christos _ACEOF
7862 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
7863 1.1 christos ac_cv_c_const=yes
7864 1.1 christos else
7865 1.1.1.2 christos ac_cv_c_const=no
7866 1.1 christos fi
7867 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 1.1 christos fi
7869 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7870 1.1.1.2 christos $as_echo "$ac_cv_c_const" >&6; }
7871 1.1 christos if test $ac_cv_c_const = no; then
7872 1.1 christos
7873 1.1.1.2 christos $as_echo "#define const /**/" >>confdefs.h
7874 1.1 christos
7875 1.1 christos fi
7876 1.1 christos
7877 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7878 1.1.1.2 christos if test "x$ac_cv_type_size_t" = x""yes; then :
7879 1.1.1.2 christos
7880 1.1 christos else
7881 1.1.1.2 christos
7882 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
7883 1.1.1.2 christos #define size_t unsigned int
7884 1.1 christos _ACEOF
7885 1.1.1.2 christos
7886 1.1.1.2 christos fi
7887 1.1.1.2 christos
7888 1.1.1.2 christos
7889 1.1.1.2 christos # Checks for library functions.
7890 1.1.1.2 christos
7891 1.1.1.2 christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7892 1.1.1.2 christos # for constant arguments. Useless!
7893 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7894 1.1.1.2 christos $as_echo_n "checking for working alloca.h... " >&6; }
7895 1.1.1.2 christos if test "${ac_cv_working_alloca_h+set}" = set; then :
7896 1.1.1.2 christos $as_echo_n "(cached) " >&6
7897 1.1.1.2 christos else
7898 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 1.1 christos /* end confdefs.h. */
7900 1.1.1.2 christos #include <alloca.h>
7901 1.1 christos int
7902 1.1 christos main ()
7903 1.1 christos {
7904 1.1.1.2 christos char *p = (char *) alloca (2 * sizeof (int));
7905 1.1.1.2 christos if (p) return 0;
7906 1.1 christos ;
7907 1.1 christos return 0;
7908 1.1 christos }
7909 1.1 christos _ACEOF
7910 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
7911 1.1.1.2 christos ac_cv_working_alloca_h=yes
7912 1.1 christos else
7913 1.1.1.2 christos ac_cv_working_alloca_h=no
7914 1.1 christos fi
7915 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
7916 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
7917 1.1 christos fi
7918 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7919 1.1.1.2 christos $as_echo "$ac_cv_working_alloca_h" >&6; }
7920 1.1.1.2 christos if test $ac_cv_working_alloca_h = yes; then
7921 1.1 christos
7922 1.1.1.2 christos $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7923 1.1 christos
7924 1.1 christos fi
7925 1.1 christos
7926 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7927 1.1.1.2 christos $as_echo_n "checking for alloca... " >&6; }
7928 1.1.1.2 christos if test "${ac_cv_func_alloca_works+set}" = set; then :
7929 1.1.1.2 christos $as_echo_n "(cached) " >&6
7930 1.1 christos else
7931 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 1.1 christos /* end confdefs.h. */
7933 1.1.1.2 christos #ifdef __GNUC__
7934 1.1.1.2 christos # define alloca __builtin_alloca
7935 1.1.1.2 christos #else
7936 1.1.1.2 christos # ifdef _MSC_VER
7937 1.1.1.2 christos # include <malloc.h>
7938 1.1.1.2 christos # define alloca _alloca
7939 1.1.1.2 christos # else
7940 1.1.1.2 christos # ifdef HAVE_ALLOCA_H
7941 1.1.1.2 christos # include <alloca.h>
7942 1.1.1.2 christos # else
7943 1.1.1.2 christos # ifdef _AIX
7944 1.1.1.2 christos #pragma alloca
7945 1.1.1.2 christos # else
7946 1.1.1.2 christos # ifndef alloca /* predefined by HP cc +Olibcalls */
7947 1.1.1.2 christos char *alloca ();
7948 1.1.1.2 christos # endif
7949 1.1.1.2 christos # endif
7950 1.1.1.2 christos # endif
7951 1.1.1.2 christos # endif
7952 1.1.1.2 christos #endif
7953 1.1.1.2 christos
7954 1.1 christos int
7955 1.1 christos main ()
7956 1.1 christos {
7957 1.1.1.2 christos char *p = (char *) alloca (1);
7958 1.1.1.2 christos if (p) return 0;
7959 1.1 christos ;
7960 1.1 christos return 0;
7961 1.1 christos }
7962 1.1 christos _ACEOF
7963 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
7964 1.1.1.2 christos ac_cv_func_alloca_works=yes
7965 1.1 christos else
7966 1.1.1.2 christos ac_cv_func_alloca_works=no
7967 1.1 christos fi
7968 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
7969 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
7970 1.1 christos fi
7971 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7972 1.1.1.2 christos $as_echo "$ac_cv_func_alloca_works" >&6; }
7973 1.1 christos
7974 1.1.1.2 christos if test $ac_cv_func_alloca_works = yes; then
7975 1.1 christos
7976 1.1.1.2 christos $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7977 1.1 christos
7978 1.1 christos else
7979 1.1.1.2 christos # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7980 1.1.1.2 christos # that cause trouble. Some versions do not even contain alloca or
7981 1.1.1.2 christos # contain a buggy version. If you still want to use their alloca,
7982 1.1.1.2 christos # use ar to extract alloca.o from them instead of compiling alloca.c.
7983 1.1 christos
7984 1.1.1.2 christos ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7985 1.1 christos
7986 1.1.1.2 christos $as_echo "#define C_ALLOCA 1" >>confdefs.h
7987 1.1 christos
7988 1.1 christos
7989 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7990 1.1.1.2 christos $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7991 1.1.1.2 christos if test "${ac_cv_os_cray+set}" = set; then :
7992 1.1.1.2 christos $as_echo_n "(cached) " >&6
7993 1.1.1.2 christos else
7994 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 1.1.1.2 christos /* end confdefs.h. */
7996 1.1.1.2 christos #if defined CRAY && ! defined CRAY2
7997 1.1.1.2 christos webecray
7998 1.1.1.2 christos #else
7999 1.1.1.2 christos wenotbecray
8000 1.1.1.2 christos #endif
8001 1.1.1.2 christos
8002 1.1.1.2 christos _ACEOF
8003 1.1.1.2 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 1.1.1.2 christos $EGREP "webecray" >/dev/null 2>&1; then :
8005 1.1.1.2 christos ac_cv_os_cray=yes
8006 1.1 christos else
8007 1.1.1.2 christos ac_cv_os_cray=no
8008 1.1 christos fi
8009 1.1.1.2 christos rm -f conftest*
8010 1.1 christos
8011 1.1 christos fi
8012 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8013 1.1.1.2 christos $as_echo "$ac_cv_os_cray" >&6; }
8014 1.1.1.2 christos if test $ac_cv_os_cray = yes; then
8015 1.1.1.2 christos for ac_func in _getb67 GETB67 getb67; do
8016 1.1.1.2 christos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8018 1.1.1.2 christos eval as_val=\$$as_ac_var
8019 1.1.1.2 christos if test "x$as_val" = x""yes; then :
8020 1.1.1.2 christos
8021 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8022 1.1.1.2 christos #define CRAY_STACKSEG_END $ac_func
8023 1.1 christos _ACEOF
8024 1.1 christos
8025 1.1.1.2 christos break
8026 1.1 christos fi
8027 1.1 christos
8028 1.1.1.2 christos done
8029 1.1.1.2 christos fi
8030 1.1 christos
8031 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8032 1.1.1.2 christos $as_echo_n "checking stack direction for C alloca... " >&6; }
8033 1.1.1.2 christos if test "${ac_cv_c_stack_direction+set}" = set; then :
8034 1.1.1.2 christos $as_echo_n "(cached) " >&6
8035 1.1 christos else
8036 1.1.1.2 christos if test "$cross_compiling" = yes; then :
8037 1.1.1.2 christos ac_cv_c_stack_direction=0
8038 1.1.1.2 christos else
8039 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 1.1 christos /* end confdefs.h. */
8041 1.1.1.2 christos $ac_includes_default
8042 1.1.1.2 christos int
8043 1.1.1.2 christos find_stack_direction ()
8044 1.1 christos {
8045 1.1.1.2 christos static char *addr = 0;
8046 1.1.1.2 christos auto char dummy;
8047 1.1.1.2 christos if (addr == 0)
8048 1.1.1.2 christos {
8049 1.1.1.2 christos addr = &dummy;
8050 1.1.1.2 christos return find_stack_direction ();
8051 1.1.1.2 christos }
8052 1.1.1.2 christos else
8053 1.1.1.2 christos return (&dummy > addr) ? 1 : -1;
8054 1.1 christos }
8055 1.1 christos
8056 1.1 christos int
8057 1.1 christos main ()
8058 1.1 christos {
8059 1.1.1.2 christos return find_stack_direction () < 0;
8060 1.1 christos }
8061 1.1 christos _ACEOF
8062 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
8063 1.1.1.2 christos ac_cv_c_stack_direction=1
8064 1.1 christos else
8065 1.1.1.2 christos ac_cv_c_stack_direction=-1
8066 1.1.1.2 christos fi
8067 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8068 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
8069 1.1.1.2 christos fi
8070 1.1.1.2 christos
8071 1.1.1.2 christos fi
8072 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8073 1.1.1.2 christos $as_echo "$ac_cv_c_stack_direction" >&6; }
8074 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8075 1.1.1.2 christos #define STACK_DIRECTION $ac_cv_c_stack_direction
8076 1.1.1.2 christos _ACEOF
8077 1.1.1.2 christos
8078 1.1 christos
8079 1.1 christos fi
8080 1.1.1.2 christos
8081 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8082 1.1.1.2 christos if test "x$ac_cv_type_pid_t" = x""yes; then :
8083 1.1.1.2 christos
8084 1.1.1.2 christos else
8085 1.1.1.2 christos
8086 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8087 1.1.1.2 christos #define pid_t int
8088 1.1.1.2 christos _ACEOF
8089 1.1.1.2 christos
8090 1.1 christos fi
8091 1.1.1.2 christos
8092 1.1.1.2 christos for ac_header in vfork.h
8093 1.1.1.2 christos do :
8094 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8095 1.1.1.2 christos if test "x$ac_cv_header_vfork_h" = x""yes; then :
8096 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8097 1.1.1.2 christos #define HAVE_VFORK_H 1
8098 1.1.1.2 christos _ACEOF
8099 1.1.1.2 christos
8100 1.1.1.2 christos fi
8101 1.1.1.2 christos
8102 1.1.1.2 christos done
8103 1.1.1.2 christos
8104 1.1.1.2 christos for ac_func in fork vfork
8105 1.1.1.2 christos do :
8106 1.1.1.2 christos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8107 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8108 1.1.1.2 christos eval as_val=\$$as_ac_var
8109 1.1.1.2 christos if test "x$as_val" = x""yes; then :
8110 1.1 christos cat >>confdefs.h <<_ACEOF
8111 1.1.1.2 christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8112 1.1 christos _ACEOF
8113 1.1 christos
8114 1.1 christos fi
8115 1.1 christos done
8116 1.1 christos
8117 1.1 christos if test "x$ac_cv_func_fork" = xyes; then
8118 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8119 1.1.1.2 christos $as_echo_n "checking for working fork... " >&6; }
8120 1.1.1.2 christos if test "${ac_cv_func_fork_works+set}" = set; then :
8121 1.1.1.2 christos $as_echo_n "(cached) " >&6
8122 1.1 christos else
8123 1.1.1.2 christos if test "$cross_compiling" = yes; then :
8124 1.1 christos ac_cv_func_fork_works=cross
8125 1.1 christos else
8126 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 1.1 christos /* end confdefs.h. */
8128 1.1 christos $ac_includes_default
8129 1.1 christos int
8130 1.1 christos main ()
8131 1.1 christos {
8132 1.1 christos
8133 1.1 christos /* By Ruediger Kuhlmann. */
8134 1.1.1.2 christos return fork () < 0;
8135 1.1 christos
8136 1.1 christos ;
8137 1.1 christos return 0;
8138 1.1 christos }
8139 1.1 christos _ACEOF
8140 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
8141 1.1 christos ac_cv_func_fork_works=yes
8142 1.1 christos else
8143 1.1.1.2 christos ac_cv_func_fork_works=no
8144 1.1 christos fi
8145 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
8147 1.1 christos fi
8148 1.1.1.2 christos
8149 1.1 christos fi
8150 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8151 1.1.1.2 christos $as_echo "$ac_cv_func_fork_works" >&6; }
8152 1.1 christos
8153 1.1 christos else
8154 1.1 christos ac_cv_func_fork_works=$ac_cv_func_fork
8155 1.1 christos fi
8156 1.1 christos if test "x$ac_cv_func_fork_works" = xcross; then
8157 1.1 christos case $host in
8158 1.1 christos *-*-amigaos* | *-*-msdosdjgpp*)
8159 1.1 christos # Override, as these systems have only a dummy fork() stub
8160 1.1 christos ac_cv_func_fork_works=no
8161 1.1 christos ;;
8162 1.1 christos *)
8163 1.1 christos ac_cv_func_fork_works=yes
8164 1.1 christos ;;
8165 1.1 christos esac
8166 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8167 1.1.1.2 christos $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8168 1.1 christos fi
8169 1.1 christos ac_cv_func_vfork_works=$ac_cv_func_vfork
8170 1.1 christos if test "x$ac_cv_func_vfork" = xyes; then
8171 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8172 1.1.1.2 christos $as_echo_n "checking for working vfork... " >&6; }
8173 1.1.1.2 christos if test "${ac_cv_func_vfork_works+set}" = set; then :
8174 1.1.1.2 christos $as_echo_n "(cached) " >&6
8175 1.1 christos else
8176 1.1.1.2 christos if test "$cross_compiling" = yes; then :
8177 1.1 christos ac_cv_func_vfork_works=cross
8178 1.1 christos else
8179 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 1.1 christos /* end confdefs.h. */
8181 1.1 christos /* Thanks to Paul Eggert for this test. */
8182 1.1.1.2 christos $ac_includes_default
8183 1.1 christos #include <sys/wait.h>
8184 1.1.1.2 christos #ifdef HAVE_VFORK_H
8185 1.1 christos # include <vfork.h>
8186 1.1 christos #endif
8187 1.1 christos /* On some sparc systems, changes by the child to local and incoming
8188 1.1 christos argument registers are propagated back to the parent. The compiler
8189 1.1 christos is told about this with #include <vfork.h>, but some compilers
8190 1.1 christos (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8191 1.1 christos static variable whose address is put into a register that is
8192 1.1 christos clobbered by the vfork. */
8193 1.1 christos static void
8194 1.1 christos #ifdef __cplusplus
8195 1.1 christos sparc_address_test (int arg)
8196 1.1 christos # else
8197 1.1 christos sparc_address_test (arg) int arg;
8198 1.1 christos #endif
8199 1.1 christos {
8200 1.1 christos static pid_t child;
8201 1.1 christos if (!child) {
8202 1.1 christos child = vfork ();
8203 1.1 christos if (child < 0) {
8204 1.1 christos perror ("vfork");
8205 1.1 christos _exit(2);
8206 1.1 christos }
8207 1.1 christos if (!child) {
8208 1.1 christos arg = getpid();
8209 1.1 christos write(-1, "", 0);
8210 1.1 christos _exit (arg);
8211 1.1 christos }
8212 1.1 christos }
8213 1.1 christos }
8214 1.1 christos
8215 1.1 christos int
8216 1.1 christos main ()
8217 1.1 christos {
8218 1.1 christos pid_t parent = getpid ();
8219 1.1 christos pid_t child;
8220 1.1 christos
8221 1.1 christos sparc_address_test (0);
8222 1.1 christos
8223 1.1 christos child = vfork ();
8224 1.1 christos
8225 1.1 christos if (child == 0) {
8226 1.1 christos /* Here is another test for sparc vfork register problems. This
8227 1.1 christos test uses lots of local variables, at least as many local
8228 1.1 christos variables as main has allocated so far including compiler
8229 1.1 christos temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8230 1.1 christos 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8231 1.1 christos reuse the register of parent for one of the local variables,
8232 1.1 christos since it will think that parent can't possibly be used any more
8233 1.1 christos in this routine. Assigning to the local variable will thus
8234 1.1 christos munge parent in the parent process. */
8235 1.1 christos pid_t
8236 1.1 christos p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8237 1.1 christos p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8238 1.1 christos /* Convince the compiler that p..p7 are live; otherwise, it might
8239 1.1 christos use the same hardware register for all 8 local variables. */
8240 1.1 christos if (p != p1 || p != p2 || p != p3 || p != p4
8241 1.1 christos || p != p5 || p != p6 || p != p7)
8242 1.1 christos _exit(1);
8243 1.1 christos
8244 1.1 christos /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8245 1.1 christos from child file descriptors. If the child closes a descriptor
8246 1.1 christos before it execs or exits, this munges the parent's descriptor
8247 1.1 christos as well. Test for this by closing stdout in the child. */
8248 1.1 christos _exit(close(fileno(stdout)) != 0);
8249 1.1 christos } else {
8250 1.1 christos int status;
8251 1.1 christos struct stat st;
8252 1.1 christos
8253 1.1 christos while (wait(&status) != child)
8254 1.1 christos ;
8255 1.1.1.2 christos return (
8256 1.1 christos /* Was there some problem with vforking? */
8257 1.1 christos child < 0
8258 1.1 christos
8259 1.1 christos /* Did the child fail? (This shouldn't happen.) */
8260 1.1 christos || status
8261 1.1 christos
8262 1.1 christos /* Did the vfork/compiler bug occur? */
8263 1.1 christos || parent != getpid()
8264 1.1 christos
8265 1.1 christos /* Did the file descriptor bug occur? */
8266 1.1 christos || fstat(fileno(stdout), &st) != 0
8267 1.1 christos );
8268 1.1 christos }
8269 1.1 christos }
8270 1.1 christos _ACEOF
8271 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
8272 1.1.1.2 christos ac_cv_func_vfork_works=yes
8273 1.1 christos else
8274 1.1.1.2 christos ac_cv_func_vfork_works=no
8275 1.1.1.2 christos fi
8276 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8277 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
8278 1.1 christos fi
8279 1.1 christos
8280 1.1 christos fi
8281 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8282 1.1.1.2 christos $as_echo "$ac_cv_func_vfork_works" >&6; }
8283 1.1 christos
8284 1.1.1.2 christos fi;
8285 1.1.1.2 christos if test "x$ac_cv_func_fork_works" = xcross; then
8286 1.1.1.2 christos ac_cv_func_vfork_works=$ac_cv_func_vfork
8287 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8288 1.1.1.2 christos $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8289 1.1 christos fi
8290 1.1 christos
8291 1.1.1.2 christos if test "x$ac_cv_func_vfork_works" = xyes; then
8292 1.1.1.2 christos
8293 1.1.1.2 christos $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8294 1.1.1.2 christos
8295 1.1 christos else
8296 1.1.1.2 christos
8297 1.1.1.2 christos $as_echo "#define vfork fork" >>confdefs.h
8298 1.1.1.2 christos
8299 1.1 christos fi
8300 1.1.1.2 christos if test "x$ac_cv_func_fork_works" = xyes; then
8301 1.1.1.2 christos
8302 1.1.1.2 christos $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8303 1.1 christos
8304 1.1 christos fi
8305 1.1.1.2 christos
8306 1.1.1.2 christos for ac_header in stdlib.h
8307 1.1.1.2 christos do :
8308 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8309 1.1.1.2 christos if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8310 1.1 christos cat >>confdefs.h <<_ACEOF
8311 1.1.1.2 christos #define HAVE_STDLIB_H 1
8312 1.1 christos _ACEOF
8313 1.1 christos
8314 1.1 christos fi
8315 1.1 christos
8316 1.1 christos done
8317 1.1 christos
8318 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8319 1.1.1.2 christos $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8320 1.1.1.2 christos if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
8321 1.1.1.2 christos $as_echo_n "(cached) " >&6
8322 1.1 christos else
8323 1.1.1.2 christos if test "$cross_compiling" = yes; then :
8324 1.1.1.2 christos ac_cv_func_malloc_0_nonnull=no
8325 1.1 christos else
8326 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 1.1 christos /* end confdefs.h. */
8328 1.1.1.2 christos #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8329 1.1 christos # include <stdlib.h>
8330 1.1 christos #else
8331 1.1.1.2 christos char *malloc ();
8332 1.1 christos #endif
8333 1.1 christos
8334 1.1 christos int
8335 1.1 christos main ()
8336 1.1 christos {
8337 1.1.1.2 christos return ! malloc (0);
8338 1.1 christos ;
8339 1.1 christos return 0;
8340 1.1 christos }
8341 1.1 christos _ACEOF
8342 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
8343 1.1.1.2 christos ac_cv_func_malloc_0_nonnull=yes
8344 1.1 christos else
8345 1.1.1.2 christos ac_cv_func_malloc_0_nonnull=no
8346 1.1 christos fi
8347 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
8349 1.1 christos fi
8350 1.1.1.2 christos
8351 1.1 christos fi
8352 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8353 1.1.1.2 christos $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8354 1.1.1.2 christos if test $ac_cv_func_malloc_0_nonnull = yes; then :
8355 1.1 christos
8356 1.1.1.2 christos $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
8357 1.1 christos
8358 1.1 christos else
8359 1.1.1.2 christos $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
8360 1.1 christos
8361 1.1.1.2 christos case " $LIBOBJS " in
8362 1.1.1.2 christos *" malloc.$ac_objext "* ) ;;
8363 1.1.1.2 christos *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8364 1.1.1.2 christos ;;
8365 1.1 christos esac
8366 1.1 christos
8367 1.1 christos
8368 1.1.1.2 christos $as_echo "#define malloc rpl_malloc" >>confdefs.h
8369 1.1 christos
8370 1.1 christos fi
8371 1.1 christos
8372 1.1 christos
8373 1.1.1.2 christos for ac_header in stdlib.h
8374 1.1.1.2 christos do :
8375 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8376 1.1.1.2 christos if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8377 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8378 1.1.1.2 christos #define HAVE_STDLIB_H 1
8379 1.1.1.2 christos _ACEOF
8380 1.1 christos
8381 1.1.1.2 christos fi
8382 1.1 christos
8383 1.1.1.2 christos done
8384 1.1 christos
8385 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8386 1.1.1.2 christos $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8387 1.1.1.2 christos if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
8388 1.1.1.2 christos $as_echo_n "(cached) " >&6
8389 1.1 christos else
8390 1.1.1.2 christos if test "$cross_compiling" = yes; then :
8391 1.1.1.2 christos ac_cv_func_realloc_0_nonnull=no
8392 1.1.1.2 christos else
8393 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 1.1 christos /* end confdefs.h. */
8395 1.1.1.2 christos #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8396 1.1.1.2 christos # include <stdlib.h>
8397 1.1 christos #else
8398 1.1.1.2 christos char *realloc ();
8399 1.1 christos #endif
8400 1.1 christos
8401 1.1 christos int
8402 1.1 christos main ()
8403 1.1 christos {
8404 1.1.1.2 christos return ! realloc (0, 0);
8405 1.1 christos ;
8406 1.1 christos return 0;
8407 1.1 christos }
8408 1.1 christos _ACEOF
8409 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
8410 1.1.1.2 christos ac_cv_func_realloc_0_nonnull=yes
8411 1.1 christos else
8412 1.1.1.2 christos ac_cv_func_realloc_0_nonnull=no
8413 1.1.1.2 christos fi
8414 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8415 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
8416 1.1.1.2 christos fi
8417 1.1 christos
8418 1.1 christos fi
8419 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8420 1.1.1.2 christos $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
8421 1.1.1.2 christos if test $ac_cv_func_realloc_0_nonnull = yes; then :
8422 1.1.1.2 christos
8423 1.1.1.2 christos $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
8424 1.1.1.2 christos
8425 1.1.1.2 christos else
8426 1.1.1.2 christos $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
8427 1.1.1.2 christos
8428 1.1.1.2 christos case " $LIBOBJS " in
8429 1.1.1.2 christos *" realloc.$ac_objext "* ) ;;
8430 1.1.1.2 christos *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8431 1.1.1.2 christos ;;
8432 1.1.1.2 christos esac
8433 1.1.1.2 christos
8434 1.1.1.2 christos
8435 1.1.1.2 christos $as_echo "#define realloc rpl_realloc" >>confdefs.h
8436 1.1.1.2 christos
8437 1.1 christos fi
8438 1.1.1.2 christos
8439 1.1.1.2 christos
8440 1.1.1.2 christos for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol
8441 1.1.1.2 christos do :
8442 1.1.1.2 christos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8443 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8444 1.1.1.2 christos eval as_val=\$$as_ac_var
8445 1.1.1.2 christos if test "x$as_val" = x""yes; then :
8446 1.1 christos cat >>confdefs.h <<_ACEOF
8447 1.1.1.2 christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8448 1.1 christos _ACEOF
8449 1.1 christos
8450 1.1 christos fi
8451 1.1 christos done
8452 1.1 christos
8453 1.1 christos
8454 1.1.1.2 christos ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/Makefile po/Makefile.in tools/Makefile tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-alloc-extra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile"
8455 1.1 christos
8456 1.1 christos
8457 1.1 christos cat >confcache <<\_ACEOF
8458 1.1 christos # This file is a shell script that caches the results of configure
8459 1.1 christos # tests run on this system so they can be shared between configure
8460 1.1 christos # scripts and configure runs, see configure's option --config-cache.
8461 1.1 christos # It is not useful on other systems. If it contains results you don't
8462 1.1 christos # want to keep, you may remove or edit it.
8463 1.1 christos #
8464 1.1 christos # config.status only pays attention to the cache file if you give it
8465 1.1 christos # the --recheck option to rerun configure.
8466 1.1 christos #
8467 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
8468 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
8469 1.1 christos # following values.
8470 1.1 christos
8471 1.1 christos _ACEOF
8472 1.1 christos
8473 1.1 christos # The following way of writing the cache mishandles newlines in values,
8474 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
8475 1.1.1.2 christos # So, we kill variables containing newlines.
8476 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
8477 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
8478 1.1.1.2 christos (
8479 1.1.1.2 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8480 1.1.1.2 christos eval ac_val=\$$ac_var
8481 1.1.1.2 christos case $ac_val in #(
8482 1.1.1.2 christos *${as_nl}*)
8483 1.1.1.2 christos case $ac_var in #(
8484 1.1.1.2 christos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8485 1.1.1.2 christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8486 1.1.1.2 christos esac
8487 1.1.1.2 christos case $ac_var in #(
8488 1.1.1.2 christos _ | IFS | as_nl) ;; #(
8489 1.1.1.2 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8490 1.1.1.2 christos *) { eval $ac_var=; unset $ac_var;} ;;
8491 1.1.1.2 christos esac ;;
8492 1.1.1.2 christos esac
8493 1.1.1.2 christos done
8494 1.1.1.2 christos
8495 1.1 christos (set) 2>&1 |
8496 1.1.1.2 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
8497 1.1.1.2 christos *${as_nl}ac_space=\ *)
8498 1.1.1.2 christos # `set' does not quote correctly, so add quotes: double-quote
8499 1.1.1.2 christos # substitution turns \\\\ into \\, and sed turns \\ into \.
8500 1.1 christos sed -n \
8501 1.1 christos "s/'/'\\\\''/g;
8502 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8503 1.1.1.2 christos ;; #(
8504 1.1 christos *)
8505 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
8506 1.1.1.2 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8507 1.1 christos ;;
8508 1.1.1.2 christos esac |
8509 1.1.1.2 christos sort
8510 1.1.1.2 christos ) |
8511 1.1 christos sed '
8512 1.1.1.2 christos /^ac_cv_env_/b end
8513 1.1 christos t clear
8514 1.1.1.2 christos :clear
8515 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8516 1.1 christos t end
8517 1.1.1.2 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8518 1.1.1.2 christos :end' >>confcache
8519 1.1.1.2 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8520 1.1.1.2 christos if test -w "$cache_file"; then
8521 1.1.1.2 christos test "x$cache_file" != "x/dev/null" &&
8522 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8523 1.1.1.2 christos $as_echo "$as_me: updating cache $cache_file" >&6;}
8524 1.1 christos cat confcache >$cache_file
8525 1.1 christos else
8526 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8527 1.1.1.2 christos $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8528 1.1 christos fi
8529 1.1 christos fi
8530 1.1 christos rm -f confcache
8531 1.1 christos
8532 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
8533 1.1 christos # Let make expand exec_prefix.
8534 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8535 1.1 christos
8536 1.1 christos DEFS=-DHAVE_CONFIG_H
8537 1.1 christos
8538 1.1 christos ac_libobjs=
8539 1.1 christos ac_ltlibobjs=
8540 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8541 1.1 christos # 1. Remove the extension, and $U if already installed.
8542 1.1.1.2 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8543 1.1.1.2 christos ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8544 1.1.1.2 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8545 1.1.1.2 christos # will be set to the directory where LIBOBJS objects are built.
8546 1.1.1.2 christos as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8547 1.1.1.2 christos as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8548 1.1 christos done
8549 1.1 christos LIBOBJS=$ac_libobjs
8550 1.1 christos
8551 1.1 christos LTLIBOBJS=$ac_ltlibobjs
8552 1.1 christos
8553 1.1 christos
8554 1.1.1.2 christos if test -n "$EXEEXT"; then
8555 1.1.1.2 christos am__EXEEXT_TRUE=
8556 1.1.1.2 christos am__EXEEXT_FALSE='#'
8557 1.1.1.2 christos else
8558 1.1.1.2 christos am__EXEEXT_TRUE='#'
8559 1.1.1.2 christos am__EXEEXT_FALSE=
8560 1.1.1.2 christos fi
8561 1.1.1.2 christos
8562 1.1 christos if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8563 1.1.1.2 christos as_fn_error "conditional \"AMDEP\" was never defined.
8564 1.1.1.2 christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
8565 1.1 christos fi
8566 1.1 christos if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8567 1.1.1.2 christos as_fn_error "conditional \"am__fastdepCC\" was never defined.
8568 1.1.1.2 christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
8569 1.1 christos fi
8570 1.1 christos if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8571 1.1.1.2 christos as_fn_error "conditional \"am__fastdepCC\" was never defined.
8572 1.1.1.2 christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
8573 1.1 christos fi
8574 1.1 christos if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8575 1.1.1.2 christos as_fn_error "conditional \"am__fastdepCXX\" was never defined.
8576 1.1.1.2 christos Usually this means the macro was only invoked conditionally." "$LINENO" 5
8577 1.1 christos fi
8578 1.1 christos
8579 1.1 christos : ${CONFIG_STATUS=./config.status}
8580 1.1.1.2 christos ac_write_fail=0
8581 1.1 christos ac_clean_files_save=$ac_clean_files
8582 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8583 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8584 1.1.1.2 christos $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8585 1.1.1.2 christos as_write_fail=0
8586 1.1.1.2 christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8587 1.1 christos #! $SHELL
8588 1.1 christos # Generated by $as_me.
8589 1.1 christos # Run this file to recreate the current configuration.
8590 1.1 christos # Compiler output produced by configure, useful for debugging
8591 1.1 christos # configure, is in config.log if it exists.
8592 1.1 christos
8593 1.1 christos debug=false
8594 1.1 christos ac_cs_recheck=false
8595 1.1 christos ac_cs_silent=false
8596 1.1 christos
8597 1.1.1.2 christos SHELL=\${CONFIG_SHELL-$SHELL}
8598 1.1.1.2 christos export SHELL
8599 1.1.1.2 christos _ASEOF
8600 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8601 1.1.1.2 christos ## -------------------- ##
8602 1.1.1.2 christos ## M4sh Initialization. ##
8603 1.1.1.2 christos ## -------------------- ##
8604 1.1 christos
8605 1.1.1.2 christos # Be more Bourne compatible
8606 1.1.1.2 christos DUALCASE=1; export DUALCASE # for MKS sh
8607 1.1.1.2 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8608 1.1 christos emulate sh
8609 1.1 christos NULLCMD=:
8610 1.1.1.2 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8611 1.1 christos # is contrary to our usage. Disable this feature.
8612 1.1 christos alias -g '${1+"$@"}'='"$@"'
8613 1.1.1.2 christos setopt NO_GLOB_SUBST
8614 1.1.1.2 christos else
8615 1.1.1.2 christos case `(set -o) 2>/dev/null` in #(
8616 1.1.1.2 christos *posix*) :
8617 1.1.1.2 christos set -o posix ;; #(
8618 1.1.1.2 christos *) :
8619 1.1.1.2 christos ;;
8620 1.1.1.2 christos esac
8621 1.1 christos fi
8622 1.1 christos
8623 1.1.1.2 christos
8624 1.1.1.2 christos as_nl='
8625 1.1.1.2 christos '
8626 1.1.1.2 christos export as_nl
8627 1.1.1.2 christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
8628 1.1.1.2 christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8629 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8630 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8631 1.1.1.2 christos # Prefer a ksh shell builtin over an external printf program on Solaris,
8632 1.1.1.2 christos # but without wasting forks for bash or zsh.
8633 1.1.1.2 christos if test -z "$BASH_VERSION$ZSH_VERSION" \
8634 1.1.1.2 christos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8635 1.1.1.2 christos as_echo='print -r --'
8636 1.1.1.2 christos as_echo_n='print -rn --'
8637 1.1.1.2 christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8638 1.1.1.2 christos as_echo='printf %s\n'
8639 1.1.1.2 christos as_echo_n='printf %s'
8640 1.1.1.2 christos else
8641 1.1.1.2 christos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8642 1.1.1.2 christos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8643 1.1.1.2 christos as_echo_n='/usr/ucb/echo -n'
8644 1.1.1.2 christos else
8645 1.1.1.2 christos as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8646 1.1.1.2 christos as_echo_n_body='eval
8647 1.1.1.2 christos arg=$1;
8648 1.1.1.2 christos case $arg in #(
8649 1.1.1.2 christos *"$as_nl"*)
8650 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)$as_nl";
8651 1.1.1.2 christos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8652 1.1.1.2 christos esac;
8653 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8654 1.1.1.2 christos '
8655 1.1.1.2 christos export as_echo_n_body
8656 1.1.1.2 christos as_echo_n='sh -c $as_echo_n_body as_echo'
8657 1.1.1.2 christos fi
8658 1.1.1.2 christos export as_echo_body
8659 1.1.1.2 christos as_echo='sh -c $as_echo_body as_echo'
8660 1.1.1.2 christos fi
8661 1.1.1.2 christos
8662 1.1.1.2 christos # The user is always right.
8663 1.1.1.2 christos if test "${PATH_SEPARATOR+set}" != set; then
8664 1.1.1.2 christos PATH_SEPARATOR=:
8665 1.1.1.2 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8666 1.1.1.2 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8667 1.1.1.2 christos PATH_SEPARATOR=';'
8668 1.1.1.2 christos }
8669 1.1 christos fi
8670 1.1 christos
8671 1.1 christos
8672 1.1.1.2 christos # IFS
8673 1.1.1.2 christos # We need space, tab and new line, in precisely that order. Quoting is
8674 1.1.1.2 christos # there to prevent editors from complaining about space-tab.
8675 1.1.1.2 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8676 1.1.1.2 christos # splitting by setting IFS to empty value.)
8677 1.1.1.2 christos IFS=" "" $as_nl"
8678 1.1.1.2 christos
8679 1.1.1.2 christos # Find who we are. Look in the path if we contain no directory separator.
8680 1.1.1.2 christos case $0 in #((
8681 1.1.1.2 christos *[\\/]* ) as_myself=$0 ;;
8682 1.1.1.2 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 1.1.1.2 christos for as_dir in $PATH
8684 1.1.1.2 christos do
8685 1.1.1.2 christos IFS=$as_save_IFS
8686 1.1.1.2 christos test -z "$as_dir" && as_dir=.
8687 1.1.1.2 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8688 1.1.1.2 christos done
8689 1.1.1.2 christos IFS=$as_save_IFS
8690 1.1.1.2 christos
8691 1.1.1.2 christos ;;
8692 1.1.1.2 christos esac
8693 1.1.1.2 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
8694 1.1.1.2 christos # in which case we are not to be found in the path.
8695 1.1.1.2 christos if test "x$as_myself" = x; then
8696 1.1.1.2 christos as_myself=$0
8697 1.1.1.2 christos fi
8698 1.1.1.2 christos if test ! -f "$as_myself"; then
8699 1.1.1.2 christos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8700 1.1.1.2 christos exit 1
8701 1.1.1.2 christos fi
8702 1.1.1.2 christos
8703 1.1.1.2 christos # Unset variables that we do not need and which cause bugs (e.g. in
8704 1.1.1.2 christos # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8705 1.1.1.2 christos # suppresses any "Segmentation fault" message there. '((' could
8706 1.1.1.2 christos # trigger a bug in pdksh 5.2.14.
8707 1.1.1.2 christos for as_var in BASH_ENV ENV MAIL MAILPATH
8708 1.1.1.2 christos do eval test x\${$as_var+set} = xset \
8709 1.1.1.2 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8710 1.1.1.2 christos done
8711 1.1 christos PS1='$ '
8712 1.1 christos PS2='> '
8713 1.1 christos PS4='+ '
8714 1.1 christos
8715 1.1 christos # NLS nuisances.
8716 1.1.1.2 christos LC_ALL=C
8717 1.1.1.2 christos export LC_ALL
8718 1.1.1.2 christos LANGUAGE=C
8719 1.1.1.2 christos export LANGUAGE
8720 1.1 christos
8721 1.1.1.2 christos # CDPATH.
8722 1.1.1.2 christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8723 1.1.1.2 christos
8724 1.1.1.2 christos
8725 1.1.1.2 christos # as_fn_error ERROR [LINENO LOG_FD]
8726 1.1.1.2 christos # ---------------------------------
8727 1.1.1.2 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8728 1.1.1.2 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8729 1.1.1.2 christos # script with status $?, using 1 if that was 0.
8730 1.1.1.2 christos as_fn_error ()
8731 1.1.1.2 christos {
8732 1.1.1.2 christos as_status=$?; test $as_status -eq 0 && as_status=1
8733 1.1.1.2 christos if test "$3"; then
8734 1.1.1.2 christos as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8735 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8736 1.1.1.2 christos fi
8737 1.1.1.2 christos $as_echo "$as_me: error: $1" >&2
8738 1.1.1.2 christos as_fn_exit $as_status
8739 1.1.1.2 christos } # as_fn_error
8740 1.1.1.2 christos
8741 1.1.1.2 christos
8742 1.1.1.2 christos # as_fn_set_status STATUS
8743 1.1.1.2 christos # -----------------------
8744 1.1.1.2 christos # Set $? to STATUS, without forking.
8745 1.1.1.2 christos as_fn_set_status ()
8746 1.1.1.2 christos {
8747 1.1.1.2 christos return $1
8748 1.1.1.2 christos } # as_fn_set_status
8749 1.1.1.2 christos
8750 1.1.1.2 christos # as_fn_exit STATUS
8751 1.1.1.2 christos # -----------------
8752 1.1.1.2 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8753 1.1.1.2 christos as_fn_exit ()
8754 1.1.1.2 christos {
8755 1.1.1.2 christos set +e
8756 1.1.1.2 christos as_fn_set_status $1
8757 1.1.1.2 christos exit $1
8758 1.1.1.2 christos } # as_fn_exit
8759 1.1.1.2 christos
8760 1.1.1.2 christos # as_fn_unset VAR
8761 1.1.1.2 christos # ---------------
8762 1.1.1.2 christos # Portably unset VAR.
8763 1.1.1.2 christos as_fn_unset ()
8764 1.1.1.2 christos {
8765 1.1.1.2 christos { eval $1=; unset $1;}
8766 1.1.1.2 christos }
8767 1.1.1.2 christos as_unset=as_fn_unset
8768 1.1.1.2 christos # as_fn_append VAR VALUE
8769 1.1.1.2 christos # ----------------------
8770 1.1.1.2 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
8771 1.1.1.2 christos # advantage of any shell optimizations that allow amortized linear growth over
8772 1.1.1.2 christos # repeated appends, instead of the typical quadratic growth present in naive
8773 1.1.1.2 christos # implementations.
8774 1.1.1.2 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8775 1.1.1.2 christos eval 'as_fn_append ()
8776 1.1.1.2 christos {
8777 1.1.1.2 christos eval $1+=\$2
8778 1.1.1.2 christos }'
8779 1.1.1.2 christos else
8780 1.1.1.2 christos as_fn_append ()
8781 1.1.1.2 christos {
8782 1.1.1.2 christos eval $1=\$$1\$2
8783 1.1.1.2 christos }
8784 1.1.1.2 christos fi # as_fn_append
8785 1.1.1.2 christos
8786 1.1.1.2 christos # as_fn_arith ARG...
8787 1.1.1.2 christos # ------------------
8788 1.1.1.2 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
8789 1.1.1.2 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
8790 1.1.1.2 christos # must be portable across $(()) and expr.
8791 1.1.1.2 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8792 1.1.1.2 christos eval 'as_fn_arith ()
8793 1.1.1.2 christos {
8794 1.1.1.2 christos as_val=$(( $* ))
8795 1.1.1.2 christos }'
8796 1.1.1.2 christos else
8797 1.1.1.2 christos as_fn_arith ()
8798 1.1.1.2 christos {
8799 1.1.1.2 christos as_val=`expr "$@" || test $? -eq 1`
8800 1.1.1.2 christos }
8801 1.1.1.2 christos fi # as_fn_arith
8802 1.1.1.2 christos
8803 1.1.1.2 christos
8804 1.1.1.2 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
8805 1.1.1.2 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
8806 1.1 christos as_expr=expr
8807 1.1 christos else
8808 1.1 christos as_expr=false
8809 1.1 christos fi
8810 1.1 christos
8811 1.1.1.2 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8812 1.1 christos as_basename=basename
8813 1.1 christos else
8814 1.1 christos as_basename=false
8815 1.1 christos fi
8816 1.1 christos
8817 1.1.1.2 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8818 1.1.1.2 christos as_dirname=dirname
8819 1.1.1.2 christos else
8820 1.1.1.2 christos as_dirname=false
8821 1.1.1.2 christos fi
8822 1.1 christos
8823 1.1.1.2 christos as_me=`$as_basename -- "$0" ||
8824 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8825 1.1 christos X"$0" : 'X\(//\)$' \| \
8826 1.1.1.2 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8827 1.1.1.2 christos $as_echo X/"$0" |
8828 1.1.1.2 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
8829 1.1.1.2 christos s//\1/
8830 1.1.1.2 christos q
8831 1.1.1.2 christos }
8832 1.1.1.2 christos /^X\/\(\/\/\)$/{
8833 1.1.1.2 christos s//\1/
8834 1.1.1.2 christos q
8835 1.1.1.2 christos }
8836 1.1.1.2 christos /^X\/\(\/\).*/{
8837 1.1.1.2 christos s//\1/
8838 1.1.1.2 christos q
8839 1.1.1.2 christos }
8840 1.1.1.2 christos s/.*/./; q'`
8841 1.1 christos
8842 1.1 christos # Avoid depending upon Character Ranges.
8843 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8844 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8845 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8846 1.1 christos as_cr_digits='0123456789'
8847 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
8848 1.1 christos
8849 1.1.1.2 christos ECHO_C= ECHO_N= ECHO_T=
8850 1.1.1.2 christos case `echo -n x` in #(((((
8851 1.1.1.2 christos -n*)
8852 1.1.1.2 christos case `echo 'xy\c'` in
8853 1.1.1.2 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8854 1.1.1.2 christos xy) ECHO_C='\c';;
8855 1.1.1.2 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8856 1.1.1.2 christos ECHO_T=' ';;
8857 1.1.1.2 christos esac;;
8858 1.1.1.2 christos *)
8859 1.1.1.2 christos ECHO_N='-n';;
8860 1.1 christos esac
8861 1.1 christos
8862 1.1.1.2 christos rm -f conf$$ conf$$.exe conf$$.file
8863 1.1.1.2 christos if test -d conf$$.dir; then
8864 1.1.1.2 christos rm -f conf$$.dir/conf$$.file
8865 1.1 christos else
8866 1.1.1.2 christos rm -f conf$$.dir
8867 1.1.1.2 christos mkdir conf$$.dir 2>/dev/null
8868 1.1 christos fi
8869 1.1.1.2 christos if (echo >conf$$.file) 2>/dev/null; then
8870 1.1.1.2 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
8871 1.1 christos as_ln_s='ln -s'
8872 1.1.1.2 christos # ... but there are two gotchas:
8873 1.1.1.2 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8874 1.1.1.2 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8875 1.1.1.2 christos # In both cases, we have to default to `cp -p'.
8876 1.1.1.2 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8877 1.1.1.2 christos as_ln_s='cp -p'
8878 1.1.1.2 christos elif ln conf$$.file conf$$ 2>/dev/null; then
8879 1.1.1.2 christos as_ln_s=ln
8880 1.1.1.2 christos else
8881 1.1.1.2 christos as_ln_s='cp -p'
8882 1.1 christos fi
8883 1.1 christos else
8884 1.1 christos as_ln_s='cp -p'
8885 1.1 christos fi
8886 1.1.1.2 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8887 1.1.1.2 christos rmdir conf$$.dir 2>/dev/null
8888 1.1.1.2 christos
8889 1.1.1.2 christos
8890 1.1.1.2 christos # as_fn_mkdir_p
8891 1.1.1.2 christos # -------------
8892 1.1.1.2 christos # Create "$as_dir" as a directory, including parents if necessary.
8893 1.1.1.2 christos as_fn_mkdir_p ()
8894 1.1.1.2 christos {
8895 1.1.1.2 christos
8896 1.1.1.2 christos case $as_dir in #(
8897 1.1.1.2 christos -*) as_dir=./$as_dir;;
8898 1.1.1.2 christos esac
8899 1.1.1.2 christos test -d "$as_dir" || eval $as_mkdir_p || {
8900 1.1.1.2 christos as_dirs=
8901 1.1.1.2 christos while :; do
8902 1.1.1.2 christos case $as_dir in #(
8903 1.1.1.2 christos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8904 1.1.1.2 christos *) as_qdir=$as_dir;;
8905 1.1.1.2 christos esac
8906 1.1.1.2 christos as_dirs="'$as_qdir' $as_dirs"
8907 1.1.1.2 christos as_dir=`$as_dirname -- "$as_dir" ||
8908 1.1.1.2 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8909 1.1.1.2 christos X"$as_dir" : 'X\(//\)[^/]' \| \
8910 1.1.1.2 christos X"$as_dir" : 'X\(//\)$' \| \
8911 1.1.1.2 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8912 1.1.1.2 christos $as_echo X"$as_dir" |
8913 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8914 1.1.1.2 christos s//\1/
8915 1.1.1.2 christos q
8916 1.1.1.2 christos }
8917 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
8918 1.1.1.2 christos s//\1/
8919 1.1.1.2 christos q
8920 1.1.1.2 christos }
8921 1.1.1.2 christos /^X\(\/\/\)$/{
8922 1.1.1.2 christos s//\1/
8923 1.1.1.2 christos q
8924 1.1.1.2 christos }
8925 1.1.1.2 christos /^X\(\/\).*/{
8926 1.1.1.2 christos s//\1/
8927 1.1.1.2 christos q
8928 1.1.1.2 christos }
8929 1.1.1.2 christos s/.*/./; q'`
8930 1.1.1.2 christos test -d "$as_dir" && break
8931 1.1.1.2 christos done
8932 1.1.1.2 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
8933 1.1.1.2 christos } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8934 1.1 christos
8935 1.1.1.2 christos
8936 1.1.1.2 christos } # as_fn_mkdir_p
8937 1.1 christos if mkdir -p . 2>/dev/null; then
8938 1.1.1.2 christos as_mkdir_p='mkdir -p "$as_dir"'
8939 1.1 christos else
8940 1.1 christos test -d ./-p && rmdir ./-p
8941 1.1 christos as_mkdir_p=false
8942 1.1 christos fi
8943 1.1 christos
8944 1.1.1.2 christos if test -x / >/dev/null 2>&1; then
8945 1.1.1.2 christos as_test_x='test -x'
8946 1.1.1.2 christos else
8947 1.1.1.2 christos if ls -dL / >/dev/null 2>&1; then
8948 1.1.1.2 christos as_ls_L_option=L
8949 1.1.1.2 christos else
8950 1.1.1.2 christos as_ls_L_option=
8951 1.1.1.2 christos fi
8952 1.1.1.2 christos as_test_x='
8953 1.1.1.2 christos eval sh -c '\''
8954 1.1.1.2 christos if test -d "$1"; then
8955 1.1.1.2 christos test -d "$1/.";
8956 1.1.1.2 christos else
8957 1.1.1.2 christos case $1 in #(
8958 1.1.1.2 christos -*)set "./$1";;
8959 1.1.1.2 christos esac;
8960 1.1.1.2 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8961 1.1.1.2 christos ???[sx]*):;;*)false;;esac;fi
8962 1.1.1.2 christos '\'' sh
8963 1.1.1.2 christos '
8964 1.1.1.2 christos fi
8965 1.1.1.2 christos as_executable_p=$as_test_x
8966 1.1 christos
8967 1.1 christos # Sed expression to map a string onto a valid CPP name.
8968 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8969 1.1 christos
8970 1.1 christos # Sed expression to map a string onto a valid variable name.
8971 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8972 1.1 christos
8973 1.1 christos
8974 1.1 christos exec 6>&1
8975 1.1.1.2 christos ## ----------------------------------- ##
8976 1.1.1.2 christos ## Main body of $CONFIG_STATUS script. ##
8977 1.1.1.2 christos ## ----------------------------------- ##
8978 1.1.1.2 christos _ASEOF
8979 1.1.1.2 christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8980 1.1 christos
8981 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8982 1.1.1.2 christos # Save the log message, to keep $0 and so on meaningful, and to
8983 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their
8984 1.1.1.2 christos # values after options handling.
8985 1.1.1.2 christos ac_log="
8986 1.1.1.2 christos This file was extended by the fast lexical analyser generator $as_me 2.5.37, which was
8987 1.1.1.2 christos generated by GNU Autoconf 2.65. Invocation command line was
8988 1.1 christos
8989 1.1 christos CONFIG_FILES = $CONFIG_FILES
8990 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
8991 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
8992 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
8993 1.1 christos $ $0 $@
8994 1.1 christos
8995 1.1.1.2 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
8996 1.1.1.2 christos "
8997 1.1.1.2 christos
8998 1.1 christos _ACEOF
8999 1.1 christos
9000 1.1.1.2 christos case $ac_config_files in *"
9001 1.1.1.2 christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
9002 1.1.1.2 christos esac
9003 1.1 christos
9004 1.1.1.2 christos case $ac_config_headers in *"
9005 1.1.1.2 christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9006 1.1.1.2 christos esac
9007 1.1 christos
9008 1.1 christos
9009 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9010 1.1.1.2 christos # Files that config.status was made for.
9011 1.1.1.2 christos config_files="$ac_config_files"
9012 1.1.1.2 christos config_headers="$ac_config_headers"
9013 1.1.1.2 christos config_commands="$ac_config_commands"
9014 1.1 christos
9015 1.1.1.2 christos _ACEOF
9016 1.1 christos
9017 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9018 1.1 christos ac_cs_usage="\
9019 1.1.1.2 christos \`$as_me' instantiates files and other configuration actions
9020 1.1.1.2 christos from templates according to the current configuration. Unless the files
9021 1.1.1.2 christos and actions are specified as TAGs, all are instantiated by default.
9022 1.1 christos
9023 1.1.1.2 christos Usage: $0 [OPTION]... [TAG]...
9024 1.1 christos
9025 1.1 christos -h, --help print this help, then exit
9026 1.1.1.2 christos -V, --version print version number and configuration settings, then exit
9027 1.1.1.2 christos --config print configuration, then exit
9028 1.1.1.2 christos -q, --quiet, --silent
9029 1.1.1.2 christos do not print progress messages
9030 1.1 christos -d, --debug don't remove temporary files
9031 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
9032 1.1.1.2 christos --file=FILE[:TEMPLATE]
9033 1.1.1.2 christos instantiate the configuration file FILE
9034 1.1.1.2 christos --header=FILE[:TEMPLATE]
9035 1.1.1.2 christos instantiate the configuration header FILE
9036 1.1 christos
9037 1.1 christos Configuration files:
9038 1.1 christos $config_files
9039 1.1 christos
9040 1.1 christos Configuration headers:
9041 1.1 christos $config_headers
9042 1.1 christos
9043 1.1 christos Configuration commands:
9044 1.1 christos $config_commands
9045 1.1 christos
9046 1.1.1.2 christos Report bugs to <flex-help (at] lists.sourceforge.net>."
9047 1.1 christos
9048 1.1.1.2 christos _ACEOF
9049 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9050 1.1.1.2 christos ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9051 1.1 christos ac_cs_version="\\
9052 1.1.1.2 christos the fast lexical analyser generator config.status 2.5.37
9053 1.1.1.2 christos configured by $0, generated by GNU Autoconf 2.65,
9054 1.1.1.2 christos with options \\"\$ac_cs_config\\"
9055 1.1 christos
9056 1.1.1.2 christos Copyright (C) 2009 Free Software Foundation, Inc.
9057 1.1 christos This config.status script is free software; the Free Software Foundation
9058 1.1 christos gives unlimited permission to copy, distribute and modify it."
9059 1.1.1.2 christos
9060 1.1.1.2 christos ac_pwd='$ac_pwd'
9061 1.1.1.2 christos srcdir='$srcdir'
9062 1.1.1.2 christos INSTALL='$INSTALL'
9063 1.1.1.2 christos MKDIR_P='$MKDIR_P'
9064 1.1.1.2 christos AWK='$AWK'
9065 1.1.1.2 christos test -n "\$AWK" || AWK=awk
9066 1.1 christos _ACEOF
9067 1.1 christos
9068 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9069 1.1.1.2 christos # The default lists apply if the user does not specify any file.
9070 1.1 christos ac_need_defaults=:
9071 1.1 christos while test $# != 0
9072 1.1 christos do
9073 1.1 christos case $1 in
9074 1.1 christos --*=*)
9075 1.1.1.2 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
9076 1.1.1.2 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9077 1.1 christos ac_shift=:
9078 1.1 christos ;;
9079 1.1.1.2 christos *)
9080 1.1 christos ac_option=$1
9081 1.1 christos ac_optarg=$2
9082 1.1 christos ac_shift=shift
9083 1.1 christos ;;
9084 1.1 christos esac
9085 1.1 christos
9086 1.1 christos case $ac_option in
9087 1.1 christos # Handling of the options.
9088 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9089 1.1 christos ac_cs_recheck=: ;;
9090 1.1.1.2 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9091 1.1.1.2 christos $as_echo "$ac_cs_version"; exit ;;
9092 1.1.1.2 christos --config | --confi | --conf | --con | --co | --c )
9093 1.1.1.2 christos $as_echo "$ac_cs_config"; exit ;;
9094 1.1.1.2 christos --debug | --debu | --deb | --de | --d | -d )
9095 1.1 christos debug=: ;;
9096 1.1 christos --file | --fil | --fi | --f )
9097 1.1 christos $ac_shift
9098 1.1.1.2 christos case $ac_optarg in
9099 1.1.1.2 christos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9100 1.1.1.2 christos esac
9101 1.1.1.2 christos as_fn_append CONFIG_FILES " '$ac_optarg'"
9102 1.1 christos ac_need_defaults=false;;
9103 1.1 christos --header | --heade | --head | --hea )
9104 1.1 christos $ac_shift
9105 1.1.1.2 christos case $ac_optarg in
9106 1.1.1.2 christos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9107 1.1.1.2 christos esac
9108 1.1.1.2 christos as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9109 1.1 christos ac_need_defaults=false;;
9110 1.1.1.2 christos --he | --h)
9111 1.1.1.2 christos # Conflict between --help and --header
9112 1.1.1.2 christos as_fn_error "ambiguous option: \`$1'
9113 1.1.1.2 christos Try \`$0 --help' for more information.";;
9114 1.1.1.2 christos --help | --hel | -h )
9115 1.1.1.2 christos $as_echo "$ac_cs_usage"; exit ;;
9116 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9117 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
9118 1.1 christos ac_cs_silent=: ;;
9119 1.1 christos
9120 1.1 christos # This is an error.
9121 1.1.1.2 christos -*) as_fn_error "unrecognized option: \`$1'
9122 1.1.1.2 christos Try \`$0 --help' for more information." ;;
9123 1.1 christos
9124 1.1.1.2 christos *) as_fn_append ac_config_targets " $1"
9125 1.1.1.2 christos ac_need_defaults=false ;;
9126 1.1 christos
9127 1.1 christos esac
9128 1.1 christos shift
9129 1.1 christos done
9130 1.1 christos
9131 1.1 christos ac_configure_extra_args=
9132 1.1 christos
9133 1.1 christos if $ac_cs_silent; then
9134 1.1 christos exec 6>/dev/null
9135 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
9136 1.1 christos fi
9137 1.1 christos
9138 1.1 christos _ACEOF
9139 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9140 1.1 christos if \$ac_cs_recheck; then
9141 1.1.1.2 christos set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9142 1.1.1.2 christos shift
9143 1.1.1.2 christos \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9144 1.1.1.2 christos CONFIG_SHELL='$SHELL'
9145 1.1.1.2 christos export CONFIG_SHELL
9146 1.1.1.2 christos exec "\$@"
9147 1.1 christos fi
9148 1.1 christos
9149 1.1 christos _ACEOF
9150 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9151 1.1.1.2 christos exec 5>>config.log
9152 1.1.1.2 christos {
9153 1.1.1.2 christos echo
9154 1.1.1.2 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9155 1.1.1.2 christos ## Running $as_me. ##
9156 1.1.1.2 christos _ASBOX
9157 1.1.1.2 christos $as_echo "$ac_log"
9158 1.1.1.2 christos } >&5
9159 1.1 christos
9160 1.1.1.2 christos _ACEOF
9161 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9162 1.1 christos #
9163 1.1.1.2 christos # INIT-COMMANDS
9164 1.1 christos #
9165 1.1 christos # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9166 1.1 christos # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9167 1.1 christos # from automake.
9168 1.1 christos eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9169 1.1 christos # Capture the value of LINGUAS because we need it to compute CATALOGS.
9170 1.1 christos LINGUAS="${LINGUAS-%UNSET%}"
9171 1.1 christos
9172 1.1 christos AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9173 1.1 christos
9174 1.1 christos _ACEOF
9175 1.1 christos
9176 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9177 1.1 christos
9178 1.1.1.2 christos # Handling of arguments.
9179 1.1 christos for ac_config_target in $ac_config_targets
9180 1.1 christos do
9181 1.1.1.2 christos case $ac_config_target in
9182 1.1.1.2 christos "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;;
9183 1.1.1.2 christos "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9184 1.1.1.2 christos "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9185 1.1.1.2 christos "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9186 1.1.1.2 christos "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9187 1.1.1.2 christos "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
9188 1.1.1.2 christos "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
9189 1.1.1.2 christos "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
9190 1.1.1.2 christos "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9191 1.1.1.2 christos "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9192 1.1.1.2 christos "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9193 1.1.1.2 christos "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9194 1.1.1.2 christos "tests/TEMPLATE/Makefile") CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;;
9195 1.1.1.2 christos "tests/test-array-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;;
9196 1.1.1.2 christos "tests/test-array-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;;
9197 1.1.1.2 christos "tests/test-basic-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;;
9198 1.1.1.2 christos "tests/test-basic-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;;
9199 1.1.1.2 christos "tests/test-bison-yylloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;;
9200 1.1.1.2 christos "tests/test-bison-yylval/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;;
9201 1.1.1.2 christos "tests/test-c-cpp-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;;
9202 1.1.1.2 christos "tests/test-c-cpp-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;;
9203 1.1.1.2 christos "tests/test-header-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;;
9204 1.1.1.2 christos "tests/test-header-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;;
9205 1.1.1.2 christos "tests/test-include-by-buffer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;;
9206 1.1.1.2 christos "tests/test-include-by-push/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;;
9207 1.1.1.2 christos "tests/test-include-by-reentrant/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;;
9208 1.1.1.2 christos "tests/test-multiple-scanners-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;;
9209 1.1.1.2 christos "tests/test-multiple-scanners-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;;
9210 1.1.1.2 christos "tests/test-noansi-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;;
9211 1.1.1.2 christos "tests/test-noansi-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;;
9212 1.1.1.2 christos "tests/test-prefix-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;;
9213 1.1.1.2 christos "tests/test-prefix-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;;
9214 1.1.1.2 christos "tests/test-pthread/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;;
9215 1.1.1.2 christos "tests/test-string-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;;
9216 1.1.1.2 christos "tests/test-string-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;;
9217 1.1.1.2 christos "tests/test-yyextra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;;
9218 1.1.1.2 christos "tests/test-alloc-extra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;;
9219 1.1.1.2 christos "tests/test-lineno-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;;
9220 1.1.1.2 christos "tests/test-lineno-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;;
9221 1.1.1.2 christos "tests/test-linedir-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;;
9222 1.1.1.2 christos "tests/test-debug-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;;
9223 1.1.1.2 christos "tests/test-debug-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;;
9224 1.1.1.2 christos "tests/test-mem-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;;
9225 1.1.1.2 christos "tests/test-mem-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;;
9226 1.1.1.2 christos "tests/test-posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;;
9227 1.1.1.2 christos "tests/test-posixly-correct/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;;
9228 1.1.1.2 christos "tests/test-table-opts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;;
9229 1.1.1.2 christos "tests/test-c++-basic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;;
9230 1.1.1.2 christos "tests/test-bison-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;;
9231 1.1.1.2 christos "tests/test-reject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;;
9232 1.1.1.2 christos "tests/test-c++-multiple-scanners/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;;
9233 1.1.1.2 christos "tests/test-top/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;;
9234 1.1.1.2 christos "tests/test-rescan-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;;
9235 1.1.1.2 christos "tests/test-rescan-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;;
9236 1.1.1.2 christos "tests/test-quotes/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;;
9237 1.1.1.2 christos "tests/test-ccl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;;
9238 1.1.1.2 christos "tests/test-extended/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;;
9239 1.1.1.2 christos "tests/test-c++-yywrap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;;
9240 1.1.1.2 christos "tests/test-concatenated-options/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;;
9241 1.1.1.2 christos
9242 1.1.1.2 christos *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9243 1.1 christos esac
9244 1.1 christos done
9245 1.1 christos
9246 1.1.1.2 christos
9247 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
9248 1.1 christos # then the envvar interface is used. Set only those that are not.
9249 1.1 christos # We use the long form for the default assignment because of an extremely
9250 1.1 christos # bizarre bug on SunOS 4.1.3.
9251 1.1 christos if $ac_need_defaults; then
9252 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9253 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9254 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9255 1.1 christos fi
9256 1.1 christos
9257 1.1 christos # Have a temporary directory for convenience. Make it in the build tree
9258 1.1.1.2 christos # simply because there is no reason against having it here, and in addition,
9259 1.1 christos # creating and moving files from /tmp can sometimes cause problems.
9260 1.1.1.2 christos # Hook for its removal unless debugging.
9261 1.1.1.2 christos # Note that there is a small window in which the directory will not be cleaned:
9262 1.1.1.2 christos # after its creation but before its name has been assigned to `$tmp'.
9263 1.1 christos $debug ||
9264 1.1 christos {
9265 1.1.1.2 christos tmp=
9266 1.1.1.2 christos trap 'exit_status=$?
9267 1.1.1.2 christos { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9268 1.1.1.2 christos ' 0
9269 1.1.1.2 christos trap 'as_fn_exit 1' 1 2 13 15
9270 1.1 christos }
9271 1.1 christos # Create a (secure) tmp directory for tmp files.
9272 1.1 christos
9273 1.1 christos {
9274 1.1.1.2 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9275 1.1 christos test -n "$tmp" && test -d "$tmp"
9276 1.1 christos } ||
9277 1.1 christos {
9278 1.1.1.2 christos tmp=./conf$$-$RANDOM
9279 1.1.1.2 christos (umask 077 && mkdir "$tmp")
9280 1.1.1.2 christos } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9281 1.1.1.2 christos
9282 1.1.1.2 christos # Set up the scripts for CONFIG_FILES section.
9283 1.1.1.2 christos # No need to generate them if there are no CONFIG_FILES.
9284 1.1.1.2 christos # This happens for instance with `./config.status config.h'.
9285 1.1.1.2 christos if test -n "$CONFIG_FILES"; then
9286 1.1.1.2 christos
9287 1.1.1.2 christos
9288 1.1.1.2 christos ac_cr=`echo X | tr X '\015'`
9289 1.1.1.2 christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
9290 1.1.1.2 christos # But we know of no other shell where ac_cr would be empty at this
9291 1.1.1.2 christos # point, so we can use a bashism as a fallback.
9292 1.1.1.2 christos if test "x$ac_cr" = x; then
9293 1.1.1.2 christos eval ac_cr=\$\'\\r\'
9294 1.1.1.2 christos fi
9295 1.1.1.2 christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9296 1.1.1.2 christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9297 1.1.1.2 christos ac_cs_awk_cr='\r'
9298 1.1.1.2 christos else
9299 1.1.1.2 christos ac_cs_awk_cr=$ac_cr
9300 1.1.1.2 christos fi
9301 1.1.1.2 christos
9302 1.1.1.2 christos echo 'BEGIN {' >"$tmp/subs1.awk" &&
9303 1.1.1.2 christos _ACEOF
9304 1.1.1.2 christos
9305 1.1.1.2 christos
9306 1.1 christos {
9307 1.1.1.2 christos echo "cat >conf$$subs.awk <<_ACEOF" &&
9308 1.1.1.2 christos echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9309 1.1.1.2 christos echo "_ACEOF"
9310 1.1.1.2 christos } >conf$$subs.sh ||
9311 1.1.1.2 christos as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9312 1.1.1.2 christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9313 1.1.1.2 christos ac_delim='%!_!# '
9314 1.1.1.2 christos for ac_last_try in false false false false false :; do
9315 1.1.1.2 christos . ./conf$$subs.sh ||
9316 1.1.1.2 christos as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9317 1.1.1.2 christos
9318 1.1.1.2 christos ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9319 1.1.1.2 christos if test $ac_delim_n = $ac_delim_num; then
9320 1.1.1.2 christos break
9321 1.1.1.2 christos elif $ac_last_try; then
9322 1.1.1.2 christos as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9323 1.1.1.2 christos else
9324 1.1.1.2 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9325 1.1.1.2 christos fi
9326 1.1.1.2 christos done
9327 1.1.1.2 christos rm -f conf$$subs.sh
9328 1.1.1.2 christos
9329 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9330 1.1.1.2 christos cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9331 1.1.1.2 christos _ACEOF
9332 1.1.1.2 christos sed -n '
9333 1.1.1.2 christos h
9334 1.1.1.2 christos s/^/S["/; s/!.*/"]=/
9335 1.1.1.2 christos p
9336 1.1.1.2 christos g
9337 1.1.1.2 christos s/^[^!]*!//
9338 1.1.1.2 christos :repl
9339 1.1.1.2 christos t repl
9340 1.1.1.2 christos s/'"$ac_delim"'$//
9341 1.1.1.2 christos t delim
9342 1.1.1.2 christos :nl
9343 1.1.1.2 christos h
9344 1.1.1.2 christos s/\(.\{148\}\)..*/\1/
9345 1.1.1.2 christos t more1
9346 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9347 1.1.1.2 christos p
9348 1.1.1.2 christos n
9349 1.1.1.2 christos b repl
9350 1.1.1.2 christos :more1
9351 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9352 1.1.1.2 christos p
9353 1.1.1.2 christos g
9354 1.1.1.2 christos s/.\{148\}//
9355 1.1.1.2 christos t nl
9356 1.1.1.2 christos :delim
9357 1.1.1.2 christos h
9358 1.1.1.2 christos s/\(.\{148\}\)..*/\1/
9359 1.1.1.2 christos t more2
9360 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"/
9361 1.1.1.2 christos p
9362 1.1.1.2 christos b
9363 1.1.1.2 christos :more2
9364 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9365 1.1.1.2 christos p
9366 1.1.1.2 christos g
9367 1.1.1.2 christos s/.\{148\}//
9368 1.1.1.2 christos t delim
9369 1.1.1.2 christos ' <conf$$subs.awk | sed '
9370 1.1.1.2 christos /^[^""]/{
9371 1.1.1.2 christos N
9372 1.1.1.2 christos s/\n//
9373 1.1.1.2 christos }
9374 1.1.1.2 christos ' >>$CONFIG_STATUS || ac_write_fail=1
9375 1.1.1.2 christos rm -f conf$$subs.awk
9376 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9377 1.1.1.2 christos _ACAWK
9378 1.1.1.2 christos cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9379 1.1.1.2 christos for (key in S) S_is_set[key] = 1
9380 1.1.1.2 christos FS = ""
9381 1.1.1.2 christos
9382 1.1.1.2 christos }
9383 1.1.1.2 christos {
9384 1.1.1.2 christos line = $ 0
9385 1.1.1.2 christos nfields = split(line, field, "@")
9386 1.1.1.2 christos substed = 0
9387 1.1.1.2 christos len = length(field[1])
9388 1.1.1.2 christos for (i = 2; i < nfields; i++) {
9389 1.1.1.2 christos key = field[i]
9390 1.1.1.2 christos keylen = length(key)
9391 1.1.1.2 christos if (S_is_set[key]) {
9392 1.1.1.2 christos value = S[key]
9393 1.1.1.2 christos line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9394 1.1.1.2 christos len += length(value) + length(field[++i])
9395 1.1.1.2 christos substed = 1
9396 1.1.1.2 christos } else
9397 1.1.1.2 christos len += 1 + keylen
9398 1.1.1.2 christos }
9399 1.1.1.2 christos
9400 1.1.1.2 christos print line
9401 1.1 christos }
9402 1.1 christos
9403 1.1.1.2 christos _ACAWK
9404 1.1.1.2 christos _ACEOF
9405 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9406 1.1.1.2 christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9407 1.1.1.2 christos sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9408 1.1.1.2 christos else
9409 1.1.1.2 christos cat
9410 1.1.1.2 christos fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9411 1.1.1.2 christos || as_fn_error "could not setup config files machinery" "$LINENO" 5
9412 1.1 christos _ACEOF
9413 1.1 christos
9414 1.1.1.2 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
9415 1.1.1.2 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9416 1.1.1.2 christos # trailing colons and then remove the whole line if VPATH becomes empty
9417 1.1.1.2 christos # (actually we leave an empty line to preserve line numbers).
9418 1.1.1.2 christos if test "x$srcdir" = x.; then
9419 1.1.1.2 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
9420 1.1.1.2 christos s/:*\$(srcdir):*/:/
9421 1.1.1.2 christos s/:*\${srcdir}:*/:/
9422 1.1.1.2 christos s/:*@srcdir@:*/:/
9423 1.1.1.2 christos s/^\([^=]*=[ ]*\):*/\1/
9424 1.1.1.2 christos s/:*$//
9425 1.1.1.2 christos s/^[^=]*=[ ]*$//
9426 1.1.1.2 christos }'
9427 1.1.1.2 christos fi
9428 1.1 christos
9429 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9430 1.1.1.2 christos fi # test -n "$CONFIG_FILES"
9431 1.1 christos
9432 1.1.1.2 christos # Set up the scripts for CONFIG_HEADERS section.
9433 1.1.1.2 christos # No need to generate them if there are no CONFIG_HEADERS.
9434 1.1.1.2 christos # This happens for instance with `./config.status Makefile'.
9435 1.1.1.2 christos if test -n "$CONFIG_HEADERS"; then
9436 1.1.1.2 christos cat >"$tmp/defines.awk" <<\_ACAWK ||
9437 1.1.1.2 christos BEGIN {
9438 1.1.1.2 christos _ACEOF
9439 1.1.1.2 christos
9440 1.1.1.2 christos # Transform confdefs.h into an awk script `defines.awk', embedded as
9441 1.1.1.2 christos # here-document in config.status, that substitutes the proper values into
9442 1.1.1.2 christos # config.h.in to produce config.h.
9443 1.1.1.2 christos
9444 1.1.1.2 christos # Create a delimiter string that does not exist in confdefs.h, to ease
9445 1.1.1.2 christos # handling of long lines.
9446 1.1.1.2 christos ac_delim='%!_!# '
9447 1.1.1.2 christos for ac_last_try in false false :; do
9448 1.1.1.2 christos ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9449 1.1.1.2 christos if test -z "$ac_t"; then
9450 1.1.1.2 christos break
9451 1.1.1.2 christos elif $ac_last_try; then
9452 1.1.1.2 christos as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9453 1.1.1.2 christos else
9454 1.1.1.2 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9455 1.1 christos fi
9456 1.1.1.2 christos done
9457 1.1 christos
9458 1.1.1.2 christos # For the awk script, D is an array of macro values keyed by name,
9459 1.1.1.2 christos # likewise P contains macro parameters if any. Preserve backslash
9460 1.1.1.2 christos # newline sequences.
9461 1.1.1.2 christos
9462 1.1.1.2 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9463 1.1.1.2 christos sed -n '
9464 1.1.1.2 christos s/.\{148\}/&'"$ac_delim"'/g
9465 1.1.1.2 christos t rset
9466 1.1.1.2 christos :rset
9467 1.1.1.2 christos s/^[ ]*#[ ]*define[ ][ ]*/ /
9468 1.1.1.2 christos t def
9469 1.1.1.2 christos d
9470 1.1.1.2 christos :def
9471 1.1.1.2 christos s/\\$//
9472 1.1.1.2 christos t bsnl
9473 1.1.1.2 christos s/["\\]/\\&/g
9474 1.1.1.2 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9475 1.1.1.2 christos D["\1"]=" \3"/p
9476 1.1.1.2 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9477 1.1.1.2 christos d
9478 1.1.1.2 christos :bsnl
9479 1.1.1.2 christos s/["\\]/\\&/g
9480 1.1.1.2 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9481 1.1.1.2 christos D["\1"]=" \3\\\\\\n"\\/p
9482 1.1.1.2 christos t cont
9483 1.1.1.2 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9484 1.1.1.2 christos t cont
9485 1.1.1.2 christos d
9486 1.1.1.2 christos :cont
9487 1.1.1.2 christos n
9488 1.1.1.2 christos s/.\{148\}/&'"$ac_delim"'/g
9489 1.1.1.2 christos t clear
9490 1.1.1.2 christos :clear
9491 1.1.1.2 christos s/\\$//
9492 1.1.1.2 christos t bsnlc
9493 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
9494 1.1.1.2 christos d
9495 1.1.1.2 christos :bsnlc
9496 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9497 1.1.1.2 christos b cont
9498 1.1.1.2 christos ' <confdefs.h | sed '
9499 1.1.1.2 christos s/'"$ac_delim"'/"\\\
9500 1.1.1.2 christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
9501 1.1.1.2 christos
9502 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9503 1.1.1.2 christos for (key in D) D_is_set[key] = 1
9504 1.1.1.2 christos FS = ""
9505 1.1.1.2 christos }
9506 1.1.1.2 christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9507 1.1.1.2 christos line = \$ 0
9508 1.1.1.2 christos split(line, arg, " ")
9509 1.1.1.2 christos if (arg[1] == "#") {
9510 1.1.1.2 christos defundef = arg[2]
9511 1.1.1.2 christos mac1 = arg[3]
9512 1.1.1.2 christos } else {
9513 1.1.1.2 christos defundef = substr(arg[1], 2)
9514 1.1.1.2 christos mac1 = arg[2]
9515 1.1.1.2 christos }
9516 1.1.1.2 christos split(mac1, mac2, "(") #)
9517 1.1.1.2 christos macro = mac2[1]
9518 1.1.1.2 christos prefix = substr(line, 1, index(line, defundef) - 1)
9519 1.1.1.2 christos if (D_is_set[macro]) {
9520 1.1.1.2 christos # Preserve the white space surrounding the "#".
9521 1.1.1.2 christos print prefix "define", macro P[macro] D[macro]
9522 1.1.1.2 christos next
9523 1.1.1.2 christos } else {
9524 1.1.1.2 christos # Replace #undef with comments. This is necessary, for example,
9525 1.1.1.2 christos # in the case of _POSIX_SOURCE, which is predefined and required
9526 1.1.1.2 christos # on some systems where configure will not decide to define it.
9527 1.1.1.2 christos if (defundef == "undef") {
9528 1.1.1.2 christos print "/*", prefix defundef, macro, "*/"
9529 1.1.1.2 christos next
9530 1.1.1.2 christos }
9531 1.1.1.2 christos }
9532 1.1.1.2 christos }
9533 1.1.1.2 christos { print }
9534 1.1.1.2 christos _ACAWK
9535 1.1 christos _ACEOF
9536 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9537 1.1.1.2 christos as_fn_error "could not setup config headers machinery" "$LINENO" 5
9538 1.1.1.2 christos fi # test -n "$CONFIG_HEADERS"
9539 1.1.1.2 christos
9540 1.1.1.2 christos
9541 1.1.1.2 christos eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9542 1.1.1.2 christos shift
9543 1.1.1.2 christos for ac_tag
9544 1.1.1.2 christos do
9545 1.1.1.2 christos case $ac_tag in
9546 1.1.1.2 christos :[FHLC]) ac_mode=$ac_tag; continue;;
9547 1.1.1.2 christos esac
9548 1.1.1.2 christos case $ac_mode$ac_tag in
9549 1.1.1.2 christos :[FHL]*:*);;
9550 1.1.1.2 christos :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9551 1.1.1.2 christos :[FH]-) ac_tag=-:-;;
9552 1.1.1.2 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9553 1.1.1.2 christos esac
9554 1.1.1.2 christos ac_save_IFS=$IFS
9555 1.1.1.2 christos IFS=:
9556 1.1.1.2 christos set x $ac_tag
9557 1.1.1.2 christos IFS=$ac_save_IFS
9558 1.1.1.2 christos shift
9559 1.1.1.2 christos ac_file=$1
9560 1.1.1.2 christos shift
9561 1.1.1.2 christos
9562 1.1.1.2 christos case $ac_mode in
9563 1.1.1.2 christos :L) ac_source=$1;;
9564 1.1.1.2 christos :[FH])
9565 1.1.1.2 christos ac_file_inputs=
9566 1.1.1.2 christos for ac_f
9567 1.1.1.2 christos do
9568 1.1.1.2 christos case $ac_f in
9569 1.1.1.2 christos -) ac_f="$tmp/stdin";;
9570 1.1.1.2 christos *) # Look for the file first in the build tree, then in the source tree
9571 1.1.1.2 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
9572 1.1.1.2 christos # because $ac_f cannot contain `:'.
9573 1.1.1.2 christos test -f "$ac_f" ||
9574 1.1.1.2 christos case $ac_f in
9575 1.1.1.2 christos [\\/$]*) false;;
9576 1.1.1.2 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9577 1.1.1.2 christos esac ||
9578 1.1.1.2 christos as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9579 1.1.1.2 christos esac
9580 1.1.1.2 christos case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9581 1.1.1.2 christos as_fn_append ac_file_inputs " '$ac_f'"
9582 1.1.1.2 christos done
9583 1.1.1.2 christos
9584 1.1.1.2 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
9585 1.1.1.2 christos # use $as_me), people would be surprised to read:
9586 1.1.1.2 christos # /* config.h. Generated by config.status. */
9587 1.1.1.2 christos configure_input='Generated from '`
9588 1.1.1.2 christos $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9589 1.1.1.2 christos `' by configure.'
9590 1.1.1.2 christos if test x"$ac_file" != x-; then
9591 1.1.1.2 christos configure_input="$ac_file. $configure_input"
9592 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9593 1.1.1.2 christos $as_echo "$as_me: creating $ac_file" >&6;}
9594 1.1.1.2 christos fi
9595 1.1.1.2 christos # Neutralize special characters interpreted by sed in replacement strings.
9596 1.1.1.2 christos case $configure_input in #(
9597 1.1.1.2 christos *\&* | *\|* | *\\* )
9598 1.1.1.2 christos ac_sed_conf_input=`$as_echo "$configure_input" |
9599 1.1.1.2 christos sed 's/[\\\\&|]/\\\\&/g'`;; #(
9600 1.1.1.2 christos *) ac_sed_conf_input=$configure_input;;
9601 1.1.1.2 christos esac
9602 1.1.1.2 christos
9603 1.1.1.2 christos case $ac_tag in
9604 1.1.1.2 christos *:-:* | *:-) cat >"$tmp/stdin" \
9605 1.1.1.2 christos || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9606 1.1.1.2 christos esac
9607 1.1.1.2 christos ;;
9608 1.1 christos esac
9609 1.1 christos
9610 1.1.1.2 christos ac_dir=`$as_dirname -- "$ac_file" ||
9611 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
9613 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
9614 1.1.1.2 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9615 1.1.1.2 christos $as_echo X"$ac_file" |
9616 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9617 1.1.1.2 christos s//\1/
9618 1.1.1.2 christos q
9619 1.1.1.2 christos }
9620 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
9621 1.1.1.2 christos s//\1/
9622 1.1.1.2 christos q
9623 1.1.1.2 christos }
9624 1.1.1.2 christos /^X\(\/\/\)$/{
9625 1.1.1.2 christos s//\1/
9626 1.1.1.2 christos q
9627 1.1.1.2 christos }
9628 1.1.1.2 christos /^X\(\/\).*/{
9629 1.1.1.2 christos s//\1/
9630 1.1.1.2 christos q
9631 1.1.1.2 christos }
9632 1.1.1.2 christos s/.*/./; q'`
9633 1.1.1.2 christos as_dir="$ac_dir"; as_fn_mkdir_p
9634 1.1 christos ac_builddir=.
9635 1.1 christos
9636 1.1.1.2 christos case "$ac_dir" in
9637 1.1.1.2 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9638 1.1.1.2 christos *)
9639 1.1.1.2 christos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9640 1.1.1.2 christos # A ".." for each directory in $ac_dir_suffix.
9641 1.1.1.2 christos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9642 1.1.1.2 christos case $ac_top_builddir_sub in
9643 1.1.1.2 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9644 1.1.1.2 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9645 1.1.1.2 christos esac ;;
9646 1.1.1.2 christos esac
9647 1.1.1.2 christos ac_abs_top_builddir=$ac_pwd
9648 1.1.1.2 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
9649 1.1.1.2 christos # for backward compatibility:
9650 1.1.1.2 christos ac_top_builddir=$ac_top_build_prefix
9651 1.1 christos
9652 1.1 christos case $srcdir in
9653 1.1.1.2 christos .) # We are building in place.
9654 1.1 christos ac_srcdir=.
9655 1.1.1.2 christos ac_top_srcdir=$ac_top_builddir_sub
9656 1.1.1.2 christos ac_abs_top_srcdir=$ac_pwd ;;
9657 1.1.1.2 christos [\\/]* | ?:[\\/]* ) # Absolute name.
9658 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
9659 1.1.1.2 christos ac_top_srcdir=$srcdir
9660 1.1.1.2 christos ac_abs_top_srcdir=$srcdir ;;
9661 1.1.1.2 christos *) # Relative name.
9662 1.1.1.2 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9663 1.1.1.2 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
9664 1.1.1.2 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9665 1.1 christos esac
9666 1.1.1.2 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9667 1.1 christos
9668 1.1 christos
9669 1.1.1.2 christos case $ac_mode in
9670 1.1.1.2 christos :F)
9671 1.1.1.2 christos #
9672 1.1.1.2 christos # CONFIG_FILE
9673 1.1.1.2 christos #
9674 1.1 christos
9675 1.1 christos case $INSTALL in
9676 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9677 1.1.1.2 christos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9678 1.1 christos esac
9679 1.1.1.2 christos ac_MKDIR_P=$MKDIR_P
9680 1.1.1.2 christos case $MKDIR_P in
9681 1.1.1.2 christos [\\/$]* | ?:[\\/]* ) ;;
9682 1.1.1.2 christos */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9683 1.1.1.2 christos esac
9684 1.1.1.2 christos _ACEOF
9685 1.1 christos
9686 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9687 1.1.1.2 christos # If the template does not know about datarootdir, expand it.
9688 1.1.1.2 christos # FIXME: This hack should be removed a few years after 2.60.
9689 1.1.1.2 christos ac_datarootdir_hack=; ac_datarootdir_seen=
9690 1.1.1.2 christos ac_sed_dataroot='
9691 1.1.1.2 christos /datarootdir/ {
9692 1.1.1.2 christos p
9693 1.1.1.2 christos q
9694 1.1.1.2 christos }
9695 1.1.1.2 christos /@datadir@/p
9696 1.1.1.2 christos /@docdir@/p
9697 1.1.1.2 christos /@infodir@/p
9698 1.1.1.2 christos /@localedir@/p
9699 1.1.1.2 christos /@mandir@/p'
9700 1.1.1.2 christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9701 1.1.1.2 christos *datarootdir*) ac_datarootdir_seen=yes;;
9702 1.1.1.2 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9703 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9704 1.1.1.2 christos $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9705 1.1.1.2 christos _ACEOF
9706 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9707 1.1.1.2 christos ac_datarootdir_hack='
9708 1.1.1.2 christos s&@datadir@&$datadir&g
9709 1.1.1.2 christos s&@docdir@&$docdir&g
9710 1.1.1.2 christos s&@infodir@&$infodir&g
9711 1.1.1.2 christos s&@localedir@&$localedir&g
9712 1.1.1.2 christos s&@mandir@&$mandir&g
9713 1.1.1.2 christos s&\\\${datarootdir}&$datarootdir&g' ;;
9714 1.1.1.2 christos esac
9715 1.1 christos _ACEOF
9716 1.1.1.2 christos
9717 1.1.1.2 christos # Neutralize VPATH when `$srcdir' = `.'.
9718 1.1.1.2 christos # Shell code in configure.ac might set extrasub.
9719 1.1.1.2 christos # FIXME: do we really want to maintain this feature?
9720 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9721 1.1.1.2 christos ac_sed_extra="$ac_vpsub
9722 1.1 christos $extrasub
9723 1.1 christos _ACEOF
9724 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9725 1.1 christos :t
9726 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9727 1.1.1.2 christos s|@configure_input@|$ac_sed_conf_input|;t t
9728 1.1.1.2 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
9729 1.1.1.2 christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
9730 1.1.1.2 christos s&@srcdir@&$ac_srcdir&;t t
9731 1.1.1.2 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
9732 1.1.1.2 christos s&@top_srcdir@&$ac_top_srcdir&;t t
9733 1.1.1.2 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9734 1.1.1.2 christos s&@builddir@&$ac_builddir&;t t
9735 1.1.1.2 christos s&@abs_builddir@&$ac_abs_builddir&;t t
9736 1.1.1.2 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9737 1.1.1.2 christos s&@INSTALL@&$ac_INSTALL&;t t
9738 1.1.1.2 christos s&@MKDIR_P@&$ac_MKDIR_P&;t t
9739 1.1.1.2 christos $ac_datarootdir_hack
9740 1.1.1.2 christos "
9741 1.1.1.2 christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9742 1.1.1.2 christos || as_fn_error "could not create $ac_file" "$LINENO" 5
9743 1.1.1.2 christos
9744 1.1.1.2 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9745 1.1.1.2 christos { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9746 1.1.1.2 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9747 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9748 1.1.1.2 christos which seems to be undefined. Please make sure it is defined." >&5
9749 1.1.1.2 christos $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9750 1.1.1.2 christos which seems to be undefined. Please make sure it is defined." >&2;}
9751 1.1 christos
9752 1.1.1.2 christos rm -f "$tmp/stdin"
9753 1.1 christos case $ac_file in
9754 1.1.1.2 christos -) cat "$tmp/out" && rm -f "$tmp/out";;
9755 1.1.1.2 christos *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9756 1.1.1.2 christos esac \
9757 1.1.1.2 christos || as_fn_error "could not create $ac_file" "$LINENO" 5
9758 1.1.1.2 christos ;;
9759 1.1.1.2 christos :H)
9760 1.1.1.2 christos #
9761 1.1.1.2 christos # CONFIG_HEADER
9762 1.1.1.2 christos #
9763 1.1 christos if test x"$ac_file" != x-; then
9764 1.1.1.2 christos {
9765 1.1.1.2 christos $as_echo "/* $configure_input */" \
9766 1.1.1.2 christos && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9767 1.1.1.2 christos } >"$tmp/config.h" \
9768 1.1.1.2 christos || as_fn_error "could not create $ac_file" "$LINENO" 5
9769 1.1.1.2 christos if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9770 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9771 1.1.1.2 christos $as_echo "$as_me: $ac_file is unchanged" >&6;}
9772 1.1 christos else
9773 1.1.1.2 christos rm -f "$ac_file"
9774 1.1.1.2 christos mv "$tmp/config.h" "$ac_file" \
9775 1.1.1.2 christos || as_fn_error "could not create $ac_file" "$LINENO" 5
9776 1.1 christos fi
9777 1.1 christos else
9778 1.1.1.2 christos $as_echo "/* $configure_input */" \
9779 1.1.1.2 christos && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9780 1.1.1.2 christos || as_fn_error "could not create -" "$LINENO" 5
9781 1.1 christos fi
9782 1.1.1.2 christos # Compute "$ac_file"'s index in $config_headers.
9783 1.1.1.2 christos _am_arg="$ac_file"
9784 1.1 christos _am_stamp_count=1
9785 1.1 christos for _am_header in $config_headers :; do
9786 1.1 christos case $_am_header in
9787 1.1.1.2 christos $_am_arg | $_am_arg:* )
9788 1.1 christos break ;;
9789 1.1 christos * )
9790 1.1 christos _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9791 1.1 christos esac
9792 1.1 christos done
9793 1.1.1.2 christos echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9794 1.1.1.2 christos $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9795 1.1.1.2 christos X"$_am_arg" : 'X\(//\)[^/]' \| \
9796 1.1.1.2 christos X"$_am_arg" : 'X\(//\)$' \| \
9797 1.1.1.2 christos X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9798 1.1.1.2 christos $as_echo X"$_am_arg" |
9799 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9800 1.1.1.2 christos s//\1/
9801 1.1.1.2 christos q
9802 1.1.1.2 christos }
9803 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
9804 1.1.1.2 christos s//\1/
9805 1.1.1.2 christos q
9806 1.1.1.2 christos }
9807 1.1.1.2 christos /^X\(\/\/\)$/{
9808 1.1.1.2 christos s//\1/
9809 1.1.1.2 christos q
9810 1.1.1.2 christos }
9811 1.1.1.2 christos /^X\(\/\).*/{
9812 1.1.1.2 christos s//\1/
9813 1.1.1.2 christos q
9814 1.1.1.2 christos }
9815 1.1.1.2 christos s/.*/./; q'`/stamp-h$_am_stamp_count
9816 1.1.1.2 christos ;;
9817 1.1 christos
9818 1.1.1.2 christos :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9819 1.1.1.2 christos $as_echo "$as_me: executing $ac_file commands" >&6;}
9820 1.1.1.2 christos ;;
9821 1.1.1.2 christos esac
9822 1.1 christos
9823 1.1 christos
9824 1.1.1.2 christos case $ac_file$ac_mode in
9825 1.1.1.2 christos "default-1":C)
9826 1.1 christos for ac_file in $CONFIG_FILES; do
9827 1.1 christos # Support "outfile[:infile[:infile...]]"
9828 1.1 christos case "$ac_file" in
9829 1.1 christos *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9830 1.1 christos esac
9831 1.1 christos # PO directories have a Makefile.in generated from Makefile.in.in.
9832 1.1 christos case "$ac_file" in */Makefile.in)
9833 1.1 christos # Adjust a relative srcdir.
9834 1.1 christos ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9835 1.1 christos ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9836 1.1 christos ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9837 1.1 christos # In autoconf-2.13 it is called $ac_given_srcdir.
9838 1.1 christos # In autoconf-2.50 it is called $srcdir.
9839 1.1 christos test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9840 1.1 christos case "$ac_given_srcdir" in
9841 1.1 christos .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9842 1.1 christos /*) top_srcdir="$ac_given_srcdir" ;;
9843 1.1 christos *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9844 1.1 christos esac
9845 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9846 1.1 christos rm -f "$ac_dir/POTFILES"
9847 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9848 1.1 christos cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9849 1.1 christos POMAKEFILEDEPS="POTFILES.in"
9850 1.1 christos # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9851 1.1 christos # on $ac_dir but don't depend on user-specified configuration
9852 1.1 christos # parameters.
9853 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9854 1.1 christos # The LINGUAS file contains the set of available languages.
9855 1.1 christos if test -n "$OBSOLETE_ALL_LINGUAS"; then
9856 1.1 christos test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9857 1.1 christos fi
9858 1.1 christos ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9859 1.1 christos # Hide the ALL_LINGUAS assigment from automake.
9860 1.1 christos eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9861 1.1 christos POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9862 1.1 christos else
9863 1.1 christos # The set of available languages was given in configure.in.
9864 1.1 christos eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9865 1.1 christos fi
9866 1.1 christos case "$ac_given_srcdir" in
9867 1.1 christos .) srcdirpre= ;;
9868 1.1 christos *) srcdirpre='$(srcdir)/' ;;
9869 1.1 christos esac
9870 1.1 christos POFILES=
9871 1.1 christos GMOFILES=
9872 1.1 christos UPDATEPOFILES=
9873 1.1 christos DUMMYPOFILES=
9874 1.1 christos for lang in $ALL_LINGUAS; do
9875 1.1 christos POFILES="$POFILES $srcdirpre$lang.po"
9876 1.1 christos GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9877 1.1 christos UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9878 1.1 christos DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9879 1.1 christos done
9880 1.1 christos # CATALOGS depends on both $ac_dir and the user's LINGUAS
9881 1.1 christos # environment variable.
9882 1.1 christos INST_LINGUAS=
9883 1.1 christos if test -n "$ALL_LINGUAS"; then
9884 1.1 christos for presentlang in $ALL_LINGUAS; do
9885 1.1 christos useit=no
9886 1.1 christos if test "%UNSET%" != "$LINGUAS"; then
9887 1.1 christos desiredlanguages="$LINGUAS"
9888 1.1 christos else
9889 1.1 christos desiredlanguages="$ALL_LINGUAS"
9890 1.1 christos fi
9891 1.1 christos for desiredlang in $desiredlanguages; do
9892 1.1 christos # Use the presentlang catalog if desiredlang is
9893 1.1 christos # a. equal to presentlang, or
9894 1.1 christos # b. a variant of presentlang (because in this case,
9895 1.1 christos # presentlang can be used as a fallback for messages
9896 1.1 christos # which are not translated in the desiredlang catalog).
9897 1.1 christos case "$desiredlang" in
9898 1.1 christos "$presentlang"*) useit=yes;;
9899 1.1 christos esac
9900 1.1 christos done
9901 1.1 christos if test $useit = yes; then
9902 1.1 christos INST_LINGUAS="$INST_LINGUAS $presentlang"
9903 1.1 christos fi
9904 1.1 christos done
9905 1.1 christos fi
9906 1.1 christos CATALOGS=
9907 1.1 christos if test -n "$INST_LINGUAS"; then
9908 1.1 christos for lang in $INST_LINGUAS; do
9909 1.1 christos CATALOGS="$CATALOGS $lang.gmo"
9910 1.1 christos done
9911 1.1 christos fi
9912 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9913 1.1 christos sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9914 1.1 christos for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9915 1.1 christos if test -f "$f"; then
9916 1.1 christos case "$f" in
9917 1.1 christos *.orig | *.bak | *~) ;;
9918 1.1 christos *) cat "$f" >> "$ac_dir/Makefile" ;;
9919 1.1 christos esac
9920 1.1 christos fi
9921 1.1 christos done
9922 1.1 christos fi
9923 1.1 christos ;;
9924 1.1 christos esac
9925 1.1 christos done ;;
9926 1.1.1.2 christos "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9927 1.1.1.2 christos # Autoconf 2.62 quotes --file arguments for eval, but not when files
9928 1.1.1.2 christos # are listed without --file. Let's play safe and only enable the eval
9929 1.1.1.2 christos # if we detect the quoting.
9930 1.1.1.2 christos case $CONFIG_FILES in
9931 1.1.1.2 christos *\'*) eval set x "$CONFIG_FILES" ;;
9932 1.1.1.2 christos *) set x $CONFIG_FILES ;;
9933 1.1.1.2 christos esac
9934 1.1.1.2 christos shift
9935 1.1.1.2 christos for mf
9936 1.1.1.2 christos do
9937 1.1.1.2 christos # Strip MF so we end up with the name of the file.
9938 1.1.1.2 christos mf=`echo "$mf" | sed -e 's/:.*$//'`
9939 1.1.1.2 christos # Check whether this is an Automake generated Makefile or not.
9940 1.1.1.2 christos # We used to match only the files named `Makefile.in', but
9941 1.1.1.2 christos # some people rename them; so instead we look at the file content.
9942 1.1.1.2 christos # Grep'ing the first line is not enough: some people post-process
9943 1.1.1.2 christos # each Makefile.in and add a new line on top of each file to say so.
9944 1.1.1.2 christos # Grep'ing the whole file is not good either: AIX grep has a line
9945 1.1.1.2 christos # limit of 2048, but all sed's we know have understand at least 4000.
9946 1.1.1.2 christos if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9947 1.1.1.2 christos dirpart=`$as_dirname -- "$mf" ||
9948 1.1 christos $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9949 1.1 christos X"$mf" : 'X\(//\)[^/]' \| \
9950 1.1 christos X"$mf" : 'X\(//\)$' \| \
9951 1.1.1.2 christos X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9952 1.1.1.2 christos $as_echo X"$mf" |
9953 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9954 1.1.1.2 christos s//\1/
9955 1.1.1.2 christos q
9956 1.1.1.2 christos }
9957 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
9958 1.1.1.2 christos s//\1/
9959 1.1.1.2 christos q
9960 1.1.1.2 christos }
9961 1.1.1.2 christos /^X\(\/\/\)$/{
9962 1.1.1.2 christos s//\1/
9963 1.1.1.2 christos q
9964 1.1.1.2 christos }
9965 1.1.1.2 christos /^X\(\/\).*/{
9966 1.1.1.2 christos s//\1/
9967 1.1.1.2 christos q
9968 1.1.1.2 christos }
9969 1.1.1.2 christos s/.*/./; q'`
9970 1.1.1.2 christos else
9971 1.1.1.2 christos continue
9972 1.1.1.2 christos fi
9973 1.1.1.2 christos # Extract the definition of DEPDIR, am__include, and am__quote
9974 1.1.1.2 christos # from the Makefile without running `make'.
9975 1.1.1.2 christos DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9976 1.1.1.2 christos test -z "$DEPDIR" && continue
9977 1.1.1.2 christos am__include=`sed -n 's/^am__include = //p' < "$mf"`
9978 1.1.1.2 christos test -z "am__include" && continue
9979 1.1.1.2 christos am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9980 1.1.1.2 christos # When using ansi2knr, U may be empty or an underscore; expand it
9981 1.1.1.2 christos U=`sed -n 's/^U = //p' < "$mf"`
9982 1.1.1.2 christos # Find all dependency output files, they are included files with
9983 1.1.1.2 christos # $(DEPDIR) in their names. We invoke sed twice because it is the
9984 1.1.1.2 christos # simplest approach to changing $(DEPDIR) to its actual value in the
9985 1.1.1.2 christos # expansion.
9986 1.1.1.2 christos for file in `sed -n "
9987 1.1.1.2 christos s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9988 1.1.1.2 christos sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9989 1.1.1.2 christos # Make sure the directory exists.
9990 1.1.1.2 christos test -f "$dirpart/$file" && continue
9991 1.1.1.2 christos fdir=`$as_dirname -- "$file" ||
9992 1.1 christos $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9993 1.1 christos X"$file" : 'X\(//\)[^/]' \| \
9994 1.1 christos X"$file" : 'X\(//\)$' \| \
9995 1.1.1.2 christos X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9996 1.1.1.2 christos $as_echo X"$file" |
9997 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9998 1.1.1.2 christos s//\1/
9999 1.1.1.2 christos q
10000 1.1.1.2 christos }
10001 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
10002 1.1.1.2 christos s//\1/
10003 1.1.1.2 christos q
10004 1.1.1.2 christos }
10005 1.1.1.2 christos /^X\(\/\/\)$/{
10006 1.1.1.2 christos s//\1/
10007 1.1.1.2 christos q
10008 1.1.1.2 christos }
10009 1.1.1.2 christos /^X\(\/\).*/{
10010 1.1.1.2 christos s//\1/
10011 1.1.1.2 christos q
10012 1.1.1.2 christos }
10013 1.1.1.2 christos s/.*/./; q'`
10014 1.1.1.2 christos as_dir=$dirpart/$fdir; as_fn_mkdir_p
10015 1.1.1.2 christos # echo "creating $dirpart/$file"
10016 1.1.1.2 christos echo '# dummy' > "$dirpart/$file"
10017 1.1 christos done
10018 1.1 christos done
10019 1.1.1.2 christos }
10020 1.1 christos ;;
10021 1.1.1.2 christos
10022 1.1 christos esac
10023 1.1.1.2 christos done # for ac_tag
10024 1.1 christos
10025 1.1 christos
10026 1.1.1.2 christos as_fn_exit 0
10027 1.1 christos _ACEOF
10028 1.1 christos ac_clean_files=$ac_clean_files_save
10029 1.1 christos
10030 1.1.1.2 christos test $ac_write_fail = 0 ||
10031 1.1.1.2 christos as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10032 1.1.1.2 christos
10033 1.1 christos
10034 1.1 christos # configure is writing to config.log, and then calls config.status.
10035 1.1 christos # config.status does its own redirection, appending to config.log.
10036 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
10037 1.1 christos # by configure, so config.status won't be able to write to it; its
10038 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
10039 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
10040 1.1 christos # appended to by config.status. When coming back to configure, we
10041 1.1 christos # need to make the FD available again.
10042 1.1 christos if test "$no_create" != yes; then
10043 1.1 christos ac_cs_success=:
10044 1.1 christos ac_config_status_args=
10045 1.1 christos test "$silent" = yes &&
10046 1.1 christos ac_config_status_args="$ac_config_status_args --quiet"
10047 1.1 christos exec 5>/dev/null
10048 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10049 1.1 christos exec 5>>config.log
10050 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10051 1.1 christos # would make configure fail if this is the last instruction.
10052 1.1.1.2 christos $ac_cs_success || as_fn_exit $?
10053 1.1.1.2 christos fi
10054 1.1.1.2 christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10055 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10056 1.1.1.2 christos $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10057 1.1 christos fi
10058 1.1 christos
10059