]>
Commit | Line | Data |
---|---|---|
6eb95e99 ZW |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
6eb95e99 | 8 | # |
6eb95e99 ZW |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
79035f0d | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
79035f0d NN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
79035f0d NN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
79035f0d NN |
31 | fi |
32 | ||
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79035f0d NN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
79035f0d NN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
79035f0d | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
79035f0d | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
79035f0d | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
79035f0d | 317 | |
5213506e RW |
318 | case $as_dir in #( |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
79035f0d NN |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
79035f0d NN |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
79035f0d | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
79035f0d NN |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
79035f0d | 456 | |
79035f0d NN |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
79035f0d | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
79035f0d | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
79035f0d | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
79035f0d | 482 | t loop |
5213506e | 483 | s/-\n.*// |
79035f0d | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
79035f0d | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
79035f0d NN |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
79035f0d NN |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
79035f0d NN |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
79035f0d | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
79035f0d | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
79035f0d | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
79035f0d | 533 | fi |
79035f0d | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
79035f0d | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
79035f0d NN |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
79035f0d | 542 | else |
8ab705be | 543 | test -d ./-p && rmdir ./-p |
79035f0d NN |
544 | as_mkdir_p=false |
545 | fi | |
6eb95e99 | 546 | |
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
79035f0d NN |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
8ab705be | 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
552 | |
553 | # Sed expression to map a string onto a valid variable name. | |
8ab705be | 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
555 | |
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
79035f0d NN |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
79035f0d NN |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
79035f0d NN |
565 | # |
566 | # Initializations. | |
567 | # | |
6eb95e99 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
79035f0d | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
79035f0d NN |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
79035f0d NN |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
79035f0d | 584 | |
79035f0d NN |
585 | # Factoring default headers for most tests. |
586 | ac_includes_default="\ | |
587 | #include <stdio.h> | |
5213506e | 588 | #ifdef HAVE_SYS_TYPES_H |
79035f0d NN |
589 | # include <sys/types.h> |
590 | #endif | |
5213506e | 591 | #ifdef HAVE_SYS_STAT_H |
79035f0d NN |
592 | # include <sys/stat.h> |
593 | #endif | |
5213506e | 594 | #ifdef STDC_HEADERS |
79035f0d NN |
595 | # include <stdlib.h> |
596 | # include <stddef.h> | |
597 | #else | |
5213506e | 598 | # ifdef HAVE_STDLIB_H |
79035f0d NN |
599 | # include <stdlib.h> |
600 | # endif | |
601 | #endif | |
5213506e RW |
602 | #ifdef HAVE_STRING_H |
603 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
79035f0d NN |
604 | # include <memory.h> |
605 | # endif | |
606 | # include <string.h> | |
607 | #endif | |
5213506e | 608 | #ifdef HAVE_STRINGS_H |
79035f0d NN |
609 | # include <strings.h> |
610 | #endif | |
5213506e | 611 | #ifdef HAVE_INTTYPES_H |
79035f0d | 612 | # include <inttypes.h> |
79035f0d | 613 | #endif |
5213506e RW |
614 | #ifdef HAVE_STDINT_H |
615 | # include <stdint.h> | |
616 | #endif | |
617 | #ifdef HAVE_UNISTD_H | |
79035f0d NN |
618 | # include <unistd.h> |
619 | #endif" | |
620 | ||
22e05272 JM |
621 | ac_unique_file="gettext.c" |
622 | ac_header_list= | |
5213506e RW |
623 | ac_subst_vars='LTLIBOBJS |
624 | LIBOBJS | |
625 | INCINTL | |
626 | LIBINTL_DEP | |
627 | MAINT | |
628 | AUTOHEADER | |
629 | AUTOCONF | |
630 | ACLOCAL | |
631 | POSUB | |
632 | LTLIBINTL | |
633 | LIBINTL | |
634 | INTLLIBS | |
635 | INTL_LIBTOOL_SUFFIX_PREFIX | |
636 | INTLOBJS | |
637 | GENCAT | |
638 | INSTOBJEXT | |
639 | DATADIRNAME | |
640 | CATOBJEXT | |
641 | USE_INCLUDED_LIBINTL | |
642 | BUILD_INCLUDED_LIBINTL | |
643 | INTLBISON | |
84c1b9d3 MK |
644 | LTLIBICONV |
645 | LIBICONV | |
5213506e RW |
646 | GLIBC21 |
647 | ALLOCA | |
5213506e RW |
648 | RANLIB |
649 | host_os | |
650 | host_vendor | |
651 | host_cpu | |
652 | host | |
653 | build_os | |
654 | build_vendor | |
655 | build_cpu | |
656 | build | |
5213506e RW |
657 | MSGMERGE |
658 | XGETTEXT | |
659 | GMSGFMT | |
660 | MSGFMT | |
661 | USE_NLS | |
662 | MKINSTALLDIRS | |
663 | INSTALL_DATA | |
664 | INSTALL_SCRIPT | |
665 | INSTALL_PROGRAM | |
666 | SET_MAKE | |
22e05272 JM |
667 | EGREP |
668 | GREP | |
669 | CPP | |
670 | OBJEXT | |
671 | EXEEXT | |
672 | ac_ct_CC | |
673 | CPPFLAGS | |
674 | LDFLAGS | |
675 | CFLAGS | |
676 | CC | |
5213506e RW |
677 | target_alias |
678 | host_alias | |
679 | build_alias | |
680 | LIBS | |
681 | ECHO_T | |
682 | ECHO_N | |
683 | ECHO_C | |
684 | DEFS | |
685 | mandir | |
686 | localedir | |
687 | libdir | |
688 | psdir | |
689 | pdfdir | |
690 | dvidir | |
691 | htmldir | |
692 | infodir | |
693 | docdir | |
694 | oldincludedir | |
695 | includedir | |
696 | localstatedir | |
697 | sharedstatedir | |
698 | sysconfdir | |
699 | datadir | |
700 | datarootdir | |
701 | libexecdir | |
702 | sbindir | |
703 | bindir | |
704 | program_transform_name | |
705 | prefix | |
706 | exec_prefix | |
707 | PACKAGE_URL | |
708 | PACKAGE_BUGREPORT | |
709 | PACKAGE_STRING | |
710 | PACKAGE_VERSION | |
711 | PACKAGE_TARNAME | |
712 | PACKAGE_NAME | |
713 | PATH_SEPARATOR | |
714 | SHELL' | |
79035f0d | 715 | ac_subst_files='' |
5213506e RW |
716 | ac_user_opts=' |
717 | enable_option_checking | |
718 | enable_nls | |
719 | with_gnu_ld | |
720 | enable_rpath | |
84c1b9d3 | 721 | with_libiconv_prefix |
5213506e RW |
722 | with_included_gettext |
723 | with_libintl_prefix | |
724 | enable_maintainer_mode | |
725 | ' | |
726 | ac_precious_vars='build_alias | |
727 | host_alias | |
728 | target_alias | |
729 | CC | |
730 | CFLAGS | |
731 | LDFLAGS | |
732 | LIBS | |
733 | CPPFLAGS | |
734 | CPP' | |
735 | ||
6eb95e99 ZW |
736 | |
737 | # Initialize some variables set by options. | |
79035f0d NN |
738 | ac_init_help= |
739 | ac_init_version=false | |
5213506e RW |
740 | ac_unrecognized_opts= |
741 | ac_unrecognized_sep= | |
6eb95e99 ZW |
742 | # The variables have the same names as the options, with |
743 | # dashes changed to underlines. | |
79035f0d | 744 | cache_file=/dev/null |
6eb95e99 ZW |
745 | exec_prefix=NONE |
746 | no_create= | |
747 | no_recursion= | |
748 | prefix=NONE | |
749 | program_prefix=NONE | |
750 | program_suffix=NONE | |
751 | program_transform_name=s,x,x, | |
752 | silent= | |
753 | site= | |
754 | srcdir= | |
755 | verbose= | |
756 | x_includes=NONE | |
757 | x_libraries=NONE | |
79035f0d NN |
758 | |
759 | # Installation directory options. | |
760 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
761 | # and all the variables that are supposed to be based on exec_prefix | |
762 | # by default will actually change. | |
763 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 764 | # (The list follows the same order as the GNU Coding Standards.) |
6eb95e99 ZW |
765 | bindir='${exec_prefix}/bin' |
766 | sbindir='${exec_prefix}/sbin' | |
767 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
768 | datarootdir='${prefix}/share' |
769 | datadir='${datarootdir}' | |
6eb95e99 ZW |
770 | sysconfdir='${prefix}/etc' |
771 | sharedstatedir='${prefix}/com' | |
772 | localstatedir='${prefix}/var' | |
6eb95e99 ZW |
773 | includedir='${prefix}/include' |
774 | oldincludedir='/usr/include' | |
5213506e RW |
775 | docdir='${datarootdir}/doc/${PACKAGE}' |
776 | infodir='${datarootdir}/info' | |
777 | htmldir='${docdir}' | |
778 | dvidir='${docdir}' | |
779 | pdfdir='${docdir}' | |
780 | psdir='${docdir}' | |
781 | libdir='${exec_prefix}/lib' | |
782 | localedir='${datarootdir}/locale' | |
783 | mandir='${datarootdir}/man' | |
6eb95e99 ZW |
784 | |
785 | ac_prev= | |
5213506e | 786 | ac_dashdash= |
6eb95e99 ZW |
787 | for ac_option |
788 | do | |
789 | # If the previous option needs an argument, assign it. | |
790 | if test -n "$ac_prev"; then | |
5213506e | 791 | eval $ac_prev=\$ac_option |
6eb95e99 ZW |
792 | ac_prev= |
793 | continue | |
794 | fi | |
795 | ||
5213506e | 796 | case $ac_option in |
22e05272 JM |
797 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
798 | *=) ac_optarg= ;; | |
799 | *) ac_optarg=yes ;; | |
5213506e | 800 | esac |
6eb95e99 ZW |
801 | |
802 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
803 | ||
5213506e RW |
804 | case $ac_dashdash$ac_option in |
805 | --) | |
806 | ac_dashdash=yes ;; | |
6eb95e99 ZW |
807 | |
808 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
809 | ac_prev=bindir ;; | |
810 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
79035f0d | 811 | bindir=$ac_optarg ;; |
6eb95e99 ZW |
812 | |
813 | -build | --build | --buil | --bui | --bu) | |
79035f0d | 814 | ac_prev=build_alias ;; |
6eb95e99 | 815 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
79035f0d | 816 | build_alias=$ac_optarg ;; |
6eb95e99 ZW |
817 | |
818 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
819 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
820 | ac_prev=cache_file ;; | |
821 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
822 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
79035f0d NN |
823 | cache_file=$ac_optarg ;; |
824 | ||
825 | --config-cache | -C) | |
826 | cache_file=config.cache ;; | |
6eb95e99 | 827 | |
5213506e | 828 | -datadir | --datadir | --datadi | --datad) |
6eb95e99 | 829 | ac_prev=datadir ;; |
5213506e | 830 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
79035f0d | 831 | datadir=$ac_optarg ;; |
6eb95e99 | 832 | |
5213506e RW |
833 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
834 | | --dataroo | --dataro | --datar) | |
835 | ac_prev=datarootdir ;; | |
836 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
837 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
838 | datarootdir=$ac_optarg ;; | |
839 | ||
6eb95e99 | 840 | -disable-* | --disable-*) |
5213506e | 841 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6eb95e99 | 842 | # Reject names that are not valid shell variable names. |
5213506e | 843 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 844 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
845 | ac_useropt_orig=$ac_useropt |
846 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
847 | case $ac_user_opts in | |
848 | *" | |
849 | "enable_$ac_useropt" | |
850 | "*) ;; | |
851 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
852 | ac_unrecognized_sep=', ';; | |
853 | esac | |
854 | eval enable_$ac_useropt=no ;; | |
855 | ||
856 | -docdir | --docdir | --docdi | --doc | --do) | |
857 | ac_prev=docdir ;; | |
858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
859 | docdir=$ac_optarg ;; | |
860 | ||
861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
862 | ac_prev=dvidir ;; | |
863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
864 | dvidir=$ac_optarg ;; | |
6eb95e99 ZW |
865 | |
866 | -enable-* | --enable-*) | |
5213506e | 867 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6eb95e99 | 868 | # Reject names that are not valid shell variable names. |
5213506e | 869 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 870 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
871 | ac_useropt_orig=$ac_useropt |
872 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
873 | case $ac_user_opts in | |
874 | *" | |
875 | "enable_$ac_useropt" | |
876 | "*) ;; | |
877 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
878 | ac_unrecognized_sep=', ';; | |
6eb95e99 | 879 | esac |
5213506e | 880 | eval enable_$ac_useropt=\$ac_optarg ;; |
6eb95e99 ZW |
881 | |
882 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
883 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
884 | | --exec | --exe | --ex) | |
885 | ac_prev=exec_prefix ;; | |
886 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
887 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
888 | | --exec=* | --exe=* | --ex=*) | |
79035f0d | 889 | exec_prefix=$ac_optarg ;; |
6eb95e99 ZW |
890 | |
891 | -gas | --gas | --ga | --g) | |
892 | # Obsolete; use --with-gas. | |
893 | with_gas=yes ;; | |
894 | ||
79035f0d NN |
895 | -help | --help | --hel | --he | -h) |
896 | ac_init_help=long ;; | |
897 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
898 | ac_init_help=recursive ;; | |
899 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
900 | ac_init_help=short ;; | |
6eb95e99 ZW |
901 | |
902 | -host | --host | --hos | --ho) | |
79035f0d | 903 | ac_prev=host_alias ;; |
6eb95e99 | 904 | -host=* | --host=* | --hos=* | --ho=*) |
79035f0d | 905 | host_alias=$ac_optarg ;; |
6eb95e99 | 906 | |
5213506e RW |
907 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
908 | ac_prev=htmldir ;; | |
909 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
910 | | --ht=*) | |
911 | htmldir=$ac_optarg ;; | |
912 | ||
6eb95e99 ZW |
913 | -includedir | --includedir | --includedi | --included | --include \ |
914 | | --includ | --inclu | --incl | --inc) | |
915 | ac_prev=includedir ;; | |
916 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
917 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
79035f0d | 918 | includedir=$ac_optarg ;; |
6eb95e99 ZW |
919 | |
920 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
921 | ac_prev=infodir ;; | |
922 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
79035f0d | 923 | infodir=$ac_optarg ;; |
6eb95e99 ZW |
924 | |
925 | -libdir | --libdir | --libdi | --libd) | |
926 | ac_prev=libdir ;; | |
927 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
79035f0d | 928 | libdir=$ac_optarg ;; |
6eb95e99 ZW |
929 | |
930 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
931 | | --libexe | --libex | --libe) | |
932 | ac_prev=libexecdir ;; | |
933 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
934 | | --libexe=* | --libex=* | --libe=*) | |
79035f0d | 935 | libexecdir=$ac_optarg ;; |
6eb95e99 | 936 | |
5213506e RW |
937 | -localedir | --localedir | --localedi | --localed | --locale) |
938 | ac_prev=localedir ;; | |
939 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
940 | localedir=$ac_optarg ;; | |
941 | ||
6eb95e99 | 942 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 943 | | --localstate | --localstat | --localsta | --localst | --locals) |
6eb95e99 ZW |
944 | ac_prev=localstatedir ;; |
945 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 946 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
79035f0d | 947 | localstatedir=$ac_optarg ;; |
6eb95e99 ZW |
948 | |
949 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
950 | ac_prev=mandir ;; | |
951 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
79035f0d | 952 | mandir=$ac_optarg ;; |
6eb95e99 ZW |
953 | |
954 | -nfp | --nfp | --nf) | |
955 | # Obsolete; use --without-fp. | |
956 | with_fp=no ;; | |
957 | ||
958 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
79035f0d | 959 | | --no-cr | --no-c | -n) |
6eb95e99 ZW |
960 | no_create=yes ;; |
961 | ||
962 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
963 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
964 | no_recursion=yes ;; | |
965 | ||
966 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
967 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
968 | | --oldin | --oldi | --old | --ol | --o) | |
969 | ac_prev=oldincludedir ;; | |
970 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
971 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
972 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
79035f0d | 973 | oldincludedir=$ac_optarg ;; |
6eb95e99 ZW |
974 | |
975 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
976 | ac_prev=prefix ;; | |
977 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
79035f0d | 978 | prefix=$ac_optarg ;; |
6eb95e99 ZW |
979 | |
980 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
981 | | --program-pre | --program-pr | --program-p) | |
982 | ac_prev=program_prefix ;; | |
983 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
984 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
79035f0d | 985 | program_prefix=$ac_optarg ;; |
6eb95e99 ZW |
986 | |
987 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
988 | | --program-suf | --program-su | --program-s) | |
989 | ac_prev=program_suffix ;; | |
990 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
991 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
79035f0d | 992 | program_suffix=$ac_optarg ;; |
6eb95e99 ZW |
993 | |
994 | -program-transform-name | --program-transform-name \ | |
995 | | --program-transform-nam | --program-transform-na \ | |
996 | | --program-transform-n | --program-transform- \ | |
997 | | --program-transform | --program-transfor \ | |
998 | | --program-transfo | --program-transf \ | |
999 | | --program-trans | --program-tran \ | |
1000 | | --progr-tra | --program-tr | --program-t) | |
1001 | ac_prev=program_transform_name ;; | |
1002 | -program-transform-name=* | --program-transform-name=* \ | |
1003 | | --program-transform-nam=* | --program-transform-na=* \ | |
1004 | | --program-transform-n=* | --program-transform-=* \ | |
1005 | | --program-transform=* | --program-transfor=* \ | |
1006 | | --program-transfo=* | --program-transf=* \ | |
1007 | | --program-trans=* | --program-tran=* \ | |
1008 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
79035f0d | 1009 | program_transform_name=$ac_optarg ;; |
6eb95e99 | 1010 | |
5213506e RW |
1011 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1012 | ac_prev=pdfdir ;; | |
1013 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1014 | pdfdir=$ac_optarg ;; | |
1015 | ||
1016 | -psdir | --psdir | --psdi | --psd | --ps) | |
1017 | ac_prev=psdir ;; | |
1018 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1019 | psdir=$ac_optarg ;; | |
1020 | ||
6eb95e99 ZW |
1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1022 | | -silent | --silent | --silen | --sile | --sil) | |
1023 | silent=yes ;; | |
1024 | ||
1025 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1026 | ac_prev=sbindir ;; | |
1027 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1028 | | --sbi=* | --sb=*) | |
79035f0d | 1029 | sbindir=$ac_optarg ;; |
6eb95e99 ZW |
1030 | |
1031 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1032 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1033 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1034 | | --sha | --sh) | |
1035 | ac_prev=sharedstatedir ;; | |
1036 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1037 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1038 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1039 | | --sha=* | --sh=*) | |
79035f0d | 1040 | sharedstatedir=$ac_optarg ;; |
6eb95e99 ZW |
1041 | |
1042 | -site | --site | --sit) | |
1043 | ac_prev=site ;; | |
1044 | -site=* | --site=* | --sit=*) | |
79035f0d | 1045 | site=$ac_optarg ;; |
6eb95e99 ZW |
1046 | |
1047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1048 | ac_prev=srcdir ;; | |
1049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
79035f0d | 1050 | srcdir=$ac_optarg ;; |
6eb95e99 ZW |
1051 | |
1052 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1053 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1054 | ac_prev=sysconfdir ;; | |
1055 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1056 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
79035f0d | 1057 | sysconfdir=$ac_optarg ;; |
6eb95e99 ZW |
1058 | |
1059 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
79035f0d | 1060 | ac_prev=target_alias ;; |
6eb95e99 | 1061 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
79035f0d | 1062 | target_alias=$ac_optarg ;; |
6eb95e99 ZW |
1063 | |
1064 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1065 | verbose=yes ;; | |
1066 | ||
79035f0d NN |
1067 | -version | --version | --versio | --versi | --vers | -V) |
1068 | ac_init_version=: ;; | |
6eb95e99 ZW |
1069 | |
1070 | -with-* | --with-*) | |
5213506e | 1071 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6eb95e99 | 1072 | # Reject names that are not valid shell variable names. |
5213506e | 1073 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1074 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1075 | ac_useropt_orig=$ac_useropt |
1076 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1077 | case $ac_user_opts in | |
1078 | *" | |
1079 | "with_$ac_useropt" | |
1080 | "*) ;; | |
1081 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1082 | ac_unrecognized_sep=', ';; | |
6eb95e99 | 1083 | esac |
5213506e | 1084 | eval with_$ac_useropt=\$ac_optarg ;; |
6eb95e99 ZW |
1085 | |
1086 | -without-* | --without-*) | |
5213506e | 1087 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6eb95e99 | 1088 | # Reject names that are not valid shell variable names. |
5213506e | 1089 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1090 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1091 | ac_useropt_orig=$ac_useropt |
1092 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1093 | case $ac_user_opts in | |
1094 | *" | |
1095 | "with_$ac_useropt" | |
1096 | "*) ;; | |
1097 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1098 | ac_unrecognized_sep=', ';; | |
1099 | esac | |
1100 | eval with_$ac_useropt=no ;; | |
6eb95e99 ZW |
1101 | |
1102 | --x) | |
1103 | # Obsolete; use --with-x. | |
1104 | with_x=yes ;; | |
1105 | ||
1106 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1107 | | --x-incl | --x-inc | --x-in | --x-i) | |
1108 | ac_prev=x_includes ;; | |
1109 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1110 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
79035f0d | 1111 | x_includes=$ac_optarg ;; |
6eb95e99 ZW |
1112 | |
1113 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1114 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1115 | ac_prev=x_libraries ;; | |
1116 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1117 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
79035f0d | 1118 | x_libraries=$ac_optarg ;; |
6eb95e99 | 1119 | |
22e05272 JM |
1120 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1121 | Try \`$0 --help' for more information" | |
6eb95e99 ZW |
1122 | ;; |
1123 | ||
79035f0d NN |
1124 | *=*) |
1125 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1126 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1127 | case $ac_envvar in #( |
1128 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1129 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1130 | esac |
1131 | eval $ac_envvar=\$ac_optarg | |
79035f0d NN |
1132 | export $ac_envvar ;; |
1133 | ||
6eb95e99 | 1134 | *) |
79035f0d | 1135 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1136 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
79035f0d | 1137 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1138 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1139 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6eb95e99 ZW |
1140 | ;; |
1141 | ||
1142 | esac | |
1143 | done | |
1144 | ||
1145 | if test -n "$ac_prev"; then | |
79035f0d | 1146 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1147 | as_fn_error $? "missing argument to $ac_option" |
6eb95e99 ZW |
1148 | fi |
1149 | ||
5213506e RW |
1150 | if test -n "$ac_unrecognized_opts"; then |
1151 | case $enable_option_checking in | |
1152 | no) ;; | |
22e05272 | 1153 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1154 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
79035f0d | 1155 | esac |
5213506e | 1156 | fi |
6eb95e99 | 1157 | |
5213506e RW |
1158 | # Check all directory arguments for consistency. |
1159 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1160 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1161 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1162 | libdir localedir mandir | |
6eb95e99 | 1163 | do |
5213506e RW |
1164 | eval ac_val=\$$ac_var |
1165 | # Remove trailing slashes. | |
1166 | case $ac_val in | |
1167 | */ ) | |
1168 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1169 | eval $ac_var=\$ac_val;; | |
1170 | esac | |
1171 | # Be sure to have absolute directory names. | |
79035f0d | 1172 | case $ac_val in |
5213506e RW |
1173 | [\\/$]* | ?:[\\/]* ) continue;; |
1174 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6eb95e99 | 1175 | esac |
22e05272 | 1176 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6eb95e99 ZW |
1177 | done |
1178 | ||
79035f0d NN |
1179 | # There might be people who depend on the old broken behavior: `$host' |
1180 | # used to hold the argument of --host etc. | |
1181 | # FIXME: To remove some day. | |
1182 | build=$build_alias | |
1183 | host=$host_alias | |
1184 | target=$target_alias | |
1185 | ||
1186 | # FIXME: To remove some day. | |
1187 | if test "x$host_alias" != x; then | |
1188 | if test "x$build_alias" = x; then | |
1189 | cross_compiling=maybe | |
79035f0d NN |
1190 | elif test "x$build_alias" != "x$host_alias"; then |
1191 | cross_compiling=yes | |
1192 | fi | |
1193 | fi | |
6eb95e99 | 1194 | |
79035f0d NN |
1195 | ac_tool_prefix= |
1196 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1197 | ||
1198 | test "$silent" = yes && exec 6>/dev/null | |
6eb95e99 ZW |
1199 | |
1200 | ||
5213506e RW |
1201 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1202 | ac_ls_di=`ls -di .` && | |
1203 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1204 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1205 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1206 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1207 | |
1208 | ||
6eb95e99 ZW |
1209 | # Find the source files, if location was not specified. |
1210 | if test -z "$srcdir"; then | |
1211 | ac_srcdir_defaulted=yes | |
5213506e RW |
1212 | # Try the directory containing this script, then the parent directory. |
1213 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1214 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1215 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1216 | X"$as_myself" : 'X\(//\)$' \| \ | |
1217 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1218 | $as_echo X"$as_myself" | | |
1219 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1220 | s//\1/ | |
1221 | q | |
1222 | } | |
1223 | /^X\(\/\/\)[^/].*/{ | |
1224 | s//\1/ | |
1225 | q | |
1226 | } | |
1227 | /^X\(\/\/\)$/{ | |
1228 | s//\1/ | |
1229 | q | |
1230 | } | |
1231 | /^X\(\/\).*/{ | |
1232 | s//\1/ | |
1233 | q | |
1234 | } | |
1235 | s/.*/./; q'` | |
6eb95e99 | 1236 | srcdir=$ac_confdir |
5213506e | 1237 | if test ! -r "$srcdir/$ac_unique_file"; then |
6eb95e99 ZW |
1238 | srcdir=.. |
1239 | fi | |
1240 | else | |
1241 | ac_srcdir_defaulted=no | |
1242 | fi | |
5213506e RW |
1243 | if test ! -r "$srcdir/$ac_unique_file"; then |
1244 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1245 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1246 | fi |
1247 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1248 | ac_abs_confdir=`( | |
22e05272 | 1249 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1250 | pwd)` |
1251 | # When building in place, set srcdir=. | |
1252 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1253 | srcdir=. | |
1254 | fi | |
1255 | # Remove unnecessary trailing slashes from srcdir. | |
1256 | # Double slashes in file names in object file debugging info | |
1257 | # mess up M-x gdb in Emacs. | |
1258 | case $srcdir in | |
1259 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1260 | esac | |
1261 | for ac_var in $ac_precious_vars; do | |
1262 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1263 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1264 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1265 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1266 | done | |
79035f0d NN |
1267 | |
1268 | # | |
1269 | # Report the --help message. | |
1270 | # | |
1271 | if test "$ac_init_help" = "long"; then | |
1272 | # Omit some internal or obsolete options to make the list less imposing. | |
1273 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1274 | cat <<_ACEOF | |
1275 | \`configure' configures this package to adapt to many kinds of systems. | |
1276 | ||
1277 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1278 | ||
1279 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1280 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1281 | ||
1282 | Defaults for the options are specified in brackets. | |
1283 | ||
1284 | Configuration: | |
1285 | -h, --help display this help and exit | |
1286 | --help=short display options specific to this package | |
1287 | --help=recursive display the short help of all the included packages | |
1288 | -V, --version display version information and exit | |
22e05272 | 1289 | -q, --quiet, --silent do not print \`checking ...' messages |
79035f0d NN |
1290 | --cache-file=FILE cache test results in FILE [disabled] |
1291 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1292 | -n, --no-create do not create output files | |
1293 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1294 | ||
79035f0d NN |
1295 | Installation directories: |
1296 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1297 | [$ac_default_prefix] |
79035f0d | 1298 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1299 | [PREFIX] |
79035f0d NN |
1300 | |
1301 | By default, \`make install' will install all the files in | |
1302 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1303 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1304 | for instance \`--prefix=\$HOME'. | |
1305 | ||
1306 | For better control, use the options below. | |
1307 | ||
1308 | Fine tuning of the installation directories: | |
5213506e RW |
1309 | --bindir=DIR user executables [EPREFIX/bin] |
1310 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1311 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1312 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1313 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1314 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1315 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1316 | --includedir=DIR C header files [PREFIX/include] | |
1317 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1318 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1319 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1320 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1321 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1322 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1323 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1324 | --htmldir=DIR html documentation [DOCDIR] | |
1325 | --dvidir=DIR dvi documentation [DOCDIR] | |
1326 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1327 | --psdir=DIR ps documentation [DOCDIR] | |
79035f0d NN |
1328 | _ACEOF |
1329 | ||
1330 | cat <<\_ACEOF | |
1331 | ||
1332 | System types: | |
1333 | --build=BUILD configure for building on BUILD [guessed] | |
1334 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1335 | _ACEOF | |
1336 | fi | |
1337 | ||
1338 | if test -n "$ac_init_help"; then | |
1339 | ||
1340 | cat <<\_ACEOF | |
1341 | ||
1342 | Optional Features: | |
5213506e | 1343 | --disable-option-checking ignore unrecognized --enable/--with options |
79035f0d NN |
1344 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1345 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1346 | --disable-nls do not use Native Language Support | |
1347 | --disable-rpath do not hardcode runtime library paths | |
88fa57d7 | 1348 | --enable-maintainer-mode enable rules only needed by maintainers |
79035f0d NN |
1349 | |
1350 | Optional Packages: | |
1351 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1352 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1353 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
84c1b9d3 MK |
1354 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1355 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
79035f0d NN |
1356 | --with-included-gettext use the GNU gettext library included here |
1357 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1358 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1359 | ||
1360 | Some influential environment variables: | |
1361 | CC C compiler command | |
1362 | CFLAGS C compiler flags | |
1363 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1364 | nonstandard directory <lib dir> | |
5213506e | 1365 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1366 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1367 | you have headers in a nonstandard directory <include dir> |
79035f0d NN |
1368 | CPP C preprocessor |
1369 | ||
1370 | Use these variables to override the choices made by `configure' or to help | |
1371 | it to find libraries and programs with nonstandard names/locations. | |
1372 | ||
5213506e | 1373 | Report bugs to the package provider. |
79035f0d | 1374 | _ACEOF |
5213506e | 1375 | ac_status=$? |
79035f0d NN |
1376 | fi |
1377 | ||
1378 | if test "$ac_init_help" = "recursive"; then | |
1379 | # If there are subdirs, report their specific --help. | |
79035f0d | 1380 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1381 | test -d "$ac_dir" || |
1382 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1383 | continue | |
79035f0d NN |
1384 | ac_builddir=. |
1385 | ||
5213506e RW |
1386 | case "$ac_dir" in |
1387 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1388 | *) | |
1389 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1390 | # A ".." for each directory in $ac_dir_suffix. | |
1391 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1392 | case $ac_top_builddir_sub in | |
1393 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1394 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1395 | esac ;; | |
1396 | esac | |
1397 | ac_abs_top_builddir=$ac_pwd | |
1398 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1399 | # for backward compatibility: | |
1400 | ac_top_builddir=$ac_top_build_prefix | |
79035f0d NN |
1401 | |
1402 | case $srcdir in | |
5213506e | 1403 | .) # We are building in place. |
79035f0d | 1404 | ac_srcdir=. |
5213506e RW |
1405 | ac_top_srcdir=$ac_top_builddir_sub |
1406 | ac_abs_top_srcdir=$ac_pwd ;; | |
1407 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
79035f0d | 1408 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1409 | ac_top_srcdir=$srcdir |
1410 | ac_abs_top_srcdir=$srcdir ;; | |
1411 | *) # Relative name. | |
1412 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1413 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1414 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8ab705be | 1415 | esac |
5213506e RW |
1416 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1417 | ||
1418 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1419 | # Check for guested configure. | |
1420 | if test -f "$ac_srcdir/configure.gnu"; then | |
1421 | echo && | |
1422 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1423 | elif test -f "$ac_srcdir/configure"; then | |
1424 | echo && | |
1425 | $SHELL "$ac_srcdir/configure" --help=recursive | |
79035f0d | 1426 | else |
5213506e RW |
1427 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1428 | fi || ac_status=$? | |
1429 | cd "$ac_pwd" || { ac_status=$?; break; } | |
79035f0d NN |
1430 | done |
1431 | fi | |
1432 | ||
5213506e | 1433 | test -n "$ac_init_help" && exit $ac_status |
79035f0d NN |
1434 | if $ac_init_version; then |
1435 | cat <<\_ACEOF | |
5213506e | 1436 | configure |
22e05272 | 1437 | generated by GNU Autoconf 2.69 |
79035f0d | 1438 | |
22e05272 | 1439 | Copyright (C) 2012 Free Software Foundation, Inc. |
79035f0d NN |
1440 | This configure script is free software; the Free Software Foundation |
1441 | gives unlimited permission to copy, distribute and modify it. | |
1442 | _ACEOF | |
5213506e | 1443 | exit |
79035f0d | 1444 | fi |
79035f0d | 1445 | |
5213506e RW |
1446 | ## ------------------------ ## |
1447 | ## Autoconf initialization. ## | |
1448 | ## ------------------------ ## | |
6eb95e99 | 1449 | |
5213506e RW |
1450 | # ac_fn_c_try_compile LINENO |
1451 | # -------------------------- | |
1452 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1453 | ac_fn_c_try_compile () | |
79035f0d | 1454 | { |
5213506e RW |
1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1456 | rm -f conftest.$ac_objext | |
1457 | if { { ac_try="$ac_compile" | |
1458 | case "(($ac_try" in | |
1459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1460 | *) ac_try_echo=$ac_try;; | |
1461 | esac | |
1462 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1463 | $as_echo "$ac_try_echo"; } >&5 | |
1464 | (eval "$ac_compile") 2>conftest.err | |
1465 | ac_status=$? | |
1466 | if test -s conftest.err; then | |
1467 | grep -v '^ *+' conftest.err >conftest.er1 | |
1468 | cat conftest.er1 >&5 | |
1469 | mv -f conftest.er1 conftest.err | |
1470 | fi | |
1471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1472 | test $ac_status = 0; } && { | |
1473 | test -z "$ac_c_werror_flag" || | |
1474 | test ! -s conftest.err | |
1475 | } && test -s conftest.$ac_objext; then : | |
1476 | ac_retval=0 | |
1477 | else | |
1478 | $as_echo "$as_me: failed program was:" >&5 | |
1479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
79035f0d | 1480 | |
5213506e RW |
1481 | ac_retval=1 |
1482 | fi | |
22e05272 JM |
1483 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1484 | as_fn_set_status $ac_retval | |
79035f0d | 1485 | |
5213506e | 1486 | } # ac_fn_c_try_compile |
79035f0d | 1487 | |
5213506e RW |
1488 | # ac_fn_c_try_cpp LINENO |
1489 | # ---------------------- | |
1490 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1491 | ac_fn_c_try_cpp () | |
1492 | { | |
1493 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1494 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1495 | case "(($ac_try" in | |
1496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1497 | *) ac_try_echo=$ac_try;; | |
1498 | esac | |
1499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1500 | $as_echo "$ac_try_echo"; } >&5 | |
1501 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1502 | ac_status=$? | |
1503 | if test -s conftest.err; then | |
1504 | grep -v '^ *+' conftest.err >conftest.er1 | |
1505 | cat conftest.er1 >&5 | |
1506 | mv -f conftest.er1 conftest.err | |
1507 | fi | |
1508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1509 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1510 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1511 | test ! -s conftest.err | |
1512 | }; then : | |
1513 | ac_retval=0 | |
1514 | else | |
1515 | $as_echo "$as_me: failed program was:" >&5 | |
1516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1517 | ||
1518 | ac_retval=1 | |
1519 | fi | |
22e05272 JM |
1520 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1521 | as_fn_set_status $ac_retval | |
5213506e RW |
1522 | |
1523 | } # ac_fn_c_try_cpp | |
1524 | ||
22e05272 JM |
1525 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1526 | # ------------------------------------------------------- | |
1527 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1528 | # the include files in INCLUDES and setting the cache variable VAR | |
1529 | # accordingly. | |
1530 | ac_fn_c_check_header_mongrel () | |
1531 | { | |
1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1533 | if eval \${$3+:} false; then : | |
1534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1535 | $as_echo_n "checking for $2... " >&6; } | |
1536 | if eval \${$3+:} false; then : | |
1537 | $as_echo_n "(cached) " >&6 | |
1538 | fi | |
1539 | eval ac_res=\$$3 | |
1540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1541 | $as_echo "$ac_res" >&6; } | |
1542 | else | |
1543 | # Is the header compilable? | |
1544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1545 | $as_echo_n "checking $2 usability... " >&6; } | |
1546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1547 | /* end confdefs.h. */ | |
1548 | $4 | |
1549 | #include <$2> | |
1550 | _ACEOF | |
1551 | if ac_fn_c_try_compile "$LINENO"; then : | |
1552 | ac_header_compiler=yes | |
1553 | else | |
1554 | ac_header_compiler=no | |
1555 | fi | |
1556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1558 | $as_echo "$ac_header_compiler" >&6; } | |
1559 | ||
1560 | # Is the header present? | |
1561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1562 | $as_echo_n "checking $2 presence... " >&6; } | |
1563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1564 | /* end confdefs.h. */ | |
1565 | #include <$2> | |
1566 | _ACEOF | |
1567 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1568 | ac_header_preproc=yes | |
1569 | else | |
1570 | ac_header_preproc=no | |
1571 | fi | |
1572 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1574 | $as_echo "$ac_header_preproc" >&6; } | |
1575 | ||
1576 | # So? What about this header? | |
1577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1578 | yes:no: ) | |
1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1580 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1582 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1583 | ;; | |
1584 | no:yes:* ) | |
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1586 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1588 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1590 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1592 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1594 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1595 | ;; | |
1596 | esac | |
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1598 | $as_echo_n "checking for $2... " >&6; } | |
1599 | if eval \${$3+:} false; then : | |
1600 | $as_echo_n "(cached) " >&6 | |
1601 | else | |
1602 | eval "$3=\$ac_header_compiler" | |
1603 | fi | |
1604 | eval ac_res=\$$3 | |
1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1606 | $as_echo "$ac_res" >&6; } | |
1607 | fi | |
1608 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1609 | ||
1610 | } # ac_fn_c_check_header_mongrel | |
1611 | ||
5213506e RW |
1612 | # ac_fn_c_try_run LINENO |
1613 | # ---------------------- | |
1614 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1615 | # that executables *can* be run. | |
1616 | ac_fn_c_try_run () | |
1617 | { | |
1618 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1619 | if { { ac_try="$ac_link" | |
1620 | case "(($ac_try" in | |
1621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1622 | *) ac_try_echo=$ac_try;; | |
1623 | esac | |
1624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1625 | $as_echo "$ac_try_echo"; } >&5 | |
1626 | (eval "$ac_link") 2>&5 | |
1627 | ac_status=$? | |
1628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1629 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1630 | { { case "(($ac_try" in | |
1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1632 | *) ac_try_echo=$ac_try;; | |
1633 | esac | |
1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1635 | $as_echo "$ac_try_echo"; } >&5 | |
1636 | (eval "$ac_try") 2>&5 | |
1637 | ac_status=$? | |
1638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1639 | test $ac_status = 0; }; }; then : | |
1640 | ac_retval=0 | |
1641 | else | |
1642 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1643 | $as_echo "$as_me: failed program was:" >&5 | |
1644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1645 | ||
1646 | ac_retval=$ac_status | |
1647 | fi | |
1648 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1650 | as_fn_set_status $ac_retval | |
5213506e RW |
1651 | |
1652 | } # ac_fn_c_try_run | |
1653 | ||
22e05272 JM |
1654 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1655 | # ------------------------------------------------------- | |
1656 | # Tests whether HEADER exists and can be compiled using the include files in | |
1657 | # INCLUDES, setting the cache variable VAR accordingly. | |
1658 | ac_fn_c_check_header_compile () | |
1659 | { | |
1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1662 | $as_echo_n "checking for $2... " >&6; } | |
1663 | if eval \${$3+:} false; then : | |
1664 | $as_echo_n "(cached) " >&6 | |
1665 | else | |
1666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1667 | /* end confdefs.h. */ | |
1668 | $4 | |
1669 | #include <$2> | |
1670 | _ACEOF | |
1671 | if ac_fn_c_try_compile "$LINENO"; then : | |
1672 | eval "$3=yes" | |
1673 | else | |
1674 | eval "$3=no" | |
1675 | fi | |
1676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1677 | fi | |
1678 | eval ac_res=\$$3 | |
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1680 | $as_echo "$ac_res" >&6; } | |
1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1682 | ||
1683 | } # ac_fn_c_check_header_compile | |
1684 | ||
1685 | # ac_fn_c_try_link LINENO | |
1686 | # ----------------------- | |
1687 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1688 | ac_fn_c_try_link () | |
1689 | { | |
1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1692 | if { { ac_try="$ac_link" | |
1693 | case "(($ac_try" in | |
1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1695 | *) ac_try_echo=$ac_try;; | |
1696 | esac | |
1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1698 | $as_echo "$ac_try_echo"; } >&5 | |
1699 | (eval "$ac_link") 2>conftest.err | |
1700 | ac_status=$? | |
1701 | if test -s conftest.err; then | |
1702 | grep -v '^ *+' conftest.err >conftest.er1 | |
1703 | cat conftest.er1 >&5 | |
1704 | mv -f conftest.er1 conftest.err | |
1705 | fi | |
1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1707 | test $ac_status = 0; } && { | |
1708 | test -z "$ac_c_werror_flag" || | |
1709 | test ! -s conftest.err | |
1710 | } && test -s conftest$ac_exeext && { | |
1711 | test "$cross_compiling" = yes || | |
1712 | test -x conftest$ac_exeext | |
1713 | }; then : | |
1714 | ac_retval=0 | |
1715 | else | |
1716 | $as_echo "$as_me: failed program was:" >&5 | |
1717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1718 | ||
1719 | ac_retval=1 | |
1720 | fi | |
1721 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1722 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1723 | # interfere with the next link command; also delete a directory that is | |
1724 | # left behind by Apple's compiler. We do this before executing the actions. | |
1725 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1727 | as_fn_set_status $ac_retval | |
1728 | ||
1729 | } # ac_fn_c_try_link | |
1730 | ||
5213506e RW |
1731 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1732 | # ------------------------------------------- | |
1733 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1734 | # variable VAR accordingly. | |
1735 | ac_fn_c_check_type () | |
1736 | { | |
1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1739 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1740 | if eval \${$3+:} false; then : |
5213506e RW |
1741 | $as_echo_n "(cached) " >&6 |
1742 | else | |
1743 | eval "$3=no" | |
1744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1745 | /* end confdefs.h. */ | |
1746 | $4 | |
1747 | int | |
1748 | main () | |
1749 | { | |
1750 | if (sizeof ($2)) | |
1751 | return 0; | |
1752 | ; | |
1753 | return 0; | |
1754 | } | |
1755 | _ACEOF | |
1756 | if ac_fn_c_try_compile "$LINENO"; then : | |
1757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1758 | /* end confdefs.h. */ | |
1759 | $4 | |
1760 | int | |
1761 | main () | |
1762 | { | |
1763 | if (sizeof (($2))) | |
1764 | return 0; | |
1765 | ; | |
1766 | return 0; | |
1767 | } | |
1768 | _ACEOF | |
1769 | if ac_fn_c_try_compile "$LINENO"; then : | |
1770 | ||
1771 | else | |
1772 | eval "$3=yes" | |
1773 | fi | |
1774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1775 | fi | |
1776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1777 | fi | |
1778 | eval ac_res=\$$3 | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1780 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1782 | |
1783 | } # ac_fn_c_check_type | |
1784 | ||
22e05272 JM |
1785 | # ac_fn_c_check_func LINENO FUNC VAR |
1786 | # ---------------------------------- | |
1787 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1788 | ac_fn_c_check_func () | |
5213506e RW |
1789 | { |
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1792 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1793 | if eval \${$3+:} false; then : |
5213506e RW |
1794 | $as_echo_n "(cached) " >&6 |
1795 | else | |
1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1797 | /* end confdefs.h. */ | |
1798 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1800 | #define $2 innocuous_$2 | |
1801 | ||
1802 | /* System header to define __stub macros and hopefully few prototypes, | |
1803 | which can conflict with char $2 (); below. | |
1804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1805 | <limits.h> exists even on freestanding compilers. */ | |
1806 | ||
1807 | #ifdef __STDC__ | |
1808 | # include <limits.h> | |
1809 | #else | |
1810 | # include <assert.h> | |
1811 | #endif | |
1812 | ||
1813 | #undef $2 | |
1814 | ||
1815 | /* Override any GCC internal prototype to avoid an error. | |
1816 | Use char because int might match the return type of a GCC | |
1817 | builtin and then its argument prototype would still apply. */ | |
1818 | #ifdef __cplusplus | |
1819 | extern "C" | |
1820 | #endif | |
1821 | char $2 (); | |
1822 | /* The GNU C library defines this for functions which it implements | |
1823 | to always fail with ENOSYS. Some functions are actually named | |
1824 | something starting with __ and the normal name is an alias. */ | |
1825 | #if defined __stub_$2 || defined __stub___$2 | |
1826 | choke me | |
1827 | #endif | |
1828 | ||
1829 | int | |
1830 | main () | |
1831 | { | |
1832 | return $2 (); | |
1833 | ; | |
1834 | return 0; | |
1835 | } | |
1836 | _ACEOF | |
1837 | if ac_fn_c_try_link "$LINENO"; then : | |
1838 | eval "$3=yes" | |
1839 | else | |
1840 | eval "$3=no" | |
1841 | fi | |
1842 | rm -f core conftest.err conftest.$ac_objext \ | |
1843 | conftest$ac_exeext conftest.$ac_ext | |
1844 | fi | |
1845 | eval ac_res=\$$3 | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1847 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1848 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1849 | |
1850 | } # ac_fn_c_check_func | |
5213506e RW |
1851 | cat >config.log <<_ACEOF |
1852 | This file contains any messages produced by compilers while | |
1853 | running configure, to aid debugging if configure makes a mistake. | |
1854 | ||
1855 | It was created by $as_me, which was | |
22e05272 | 1856 | generated by GNU Autoconf 2.69. Invocation command line was |
5213506e RW |
1857 | |
1858 | $ $0 $@ | |
1859 | ||
1860 | _ACEOF | |
1861 | exec 5>>config.log | |
1862 | { | |
1863 | cat <<_ASUNAME | |
1864 | ## --------- ## | |
1865 | ## Platform. ## | |
1866 | ## --------- ## | |
1867 | ||
1868 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1869 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1870 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1871 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1872 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1873 | ||
1874 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1875 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1876 | ||
1877 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1878 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1879 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1880 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1881 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1882 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1883 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1884 | ||
1885 | _ASUNAME | |
1886 | ||
1887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1888 | for as_dir in $PATH | |
1889 | do | |
1890 | IFS=$as_save_IFS | |
1891 | test -z "$as_dir" && as_dir=. | |
1892 | $as_echo "PATH: $as_dir" | |
1893 | done | |
1894 | IFS=$as_save_IFS | |
1895 | ||
1896 | } >&5 | |
1897 | ||
1898 | cat >&5 <<_ACEOF | |
79035f0d NN |
1899 | |
1900 | ||
1901 | ## ----------- ## | |
1902 | ## Core tests. ## | |
1903 | ## ----------- ## | |
1904 | ||
1905 | _ACEOF | |
1906 | ||
1907 | ||
1908 | # Keep a trace of the command line. | |
1909 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1910 | # Strip out --silent because we don't want to record it for future runs. | |
1911 | # Also quote any args containing shell meta-characters. | |
1912 | # Make two passes to allow for proper duplicate-argument suppression. | |
1913 | ac_configure_args= | |
1914 | ac_configure_args0= | |
1915 | ac_configure_args1= | |
79035f0d NN |
1916 | ac_must_keep_next=false |
1917 | for ac_pass in 1 2 | |
1918 | do | |
1919 | for ac_arg | |
1920 | do | |
1921 | case $ac_arg in | |
1922 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1923 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1924 | | -silent | --silent | --silen | --sile | --sil) | |
1925 | continue ;; | |
5213506e RW |
1926 | *\'*) |
1927 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
79035f0d NN |
1928 | esac |
1929 | case $ac_pass in | |
5213506e | 1930 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
79035f0d | 1931 | 2) |
5213506e | 1932 | as_fn_append ac_configure_args1 " '$ac_arg'" |
79035f0d | 1933 | if test $ac_must_keep_next = true; then |
8ab705be | 1934 | ac_must_keep_next=false # Got value, back to normal. |
79035f0d | 1935 | else |
8ab705be KC |
1936 | case $ac_arg in |
1937 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1938 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1939 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1940 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1941 | case "$ac_configure_args0 " in | |
1942 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1943 | esac | |
1944 | ;; | |
1945 | -* ) ac_must_keep_next=true ;; | |
1946 | esac | |
79035f0d | 1947 | fi |
5213506e | 1948 | as_fn_append ac_configure_args " '$ac_arg'" |
79035f0d NN |
1949 | ;; |
1950 | esac | |
1951 | done | |
1952 | done | |
5213506e RW |
1953 | { ac_configure_args0=; unset ac_configure_args0;} |
1954 | { ac_configure_args1=; unset ac_configure_args1;} | |
79035f0d NN |
1955 | |
1956 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1957 | # config.log. We remove comments because anyway the quotes in there | |
1958 | # would cause problems or look ugly. | |
5213506e RW |
1959 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1960 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
79035f0d NN |
1961 | trap 'exit_status=$? |
1962 | # Save into config.log some information that might help in debugging. | |
1963 | { | |
1964 | echo | |
1965 | ||
22e05272 | 1966 | $as_echo "## ---------------- ## |
79035f0d | 1967 | ## Cache variables. ## |
22e05272 | 1968 | ## ---------------- ##" |
79035f0d NN |
1969 | echo |
1970 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1971 | ( |
1972 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1973 | eval ac_val=\$$ac_var | |
1974 | case $ac_val in #( | |
1975 | *${as_nl}*) | |
1976 | case $ac_var in #( | |
1977 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1978 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1979 | esac | |
1980 | case $ac_var in #( | |
1981 | _ | IFS | as_nl) ;; #( | |
1982 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1983 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1984 | esac ;; | |
1985 | esac | |
1986 | done | |
79035f0d | 1987 | (set) 2>&1 | |
5213506e RW |
1988 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1989 | *${as_nl}ac_space=\ *) | |
79035f0d | 1990 | sed -n \ |
5213506e RW |
1991 | "s/'\''/'\''\\\\'\'''\''/g; |
1992 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1993 | ;; #( | |
79035f0d | 1994 | *) |
5213506e | 1995 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
79035f0d | 1996 | ;; |
5213506e RW |
1997 | esac | |
1998 | sort | |
1999 | ) | |
79035f0d NN |
2000 | echo |
2001 | ||
22e05272 | 2002 | $as_echo "## ----------------- ## |
79035f0d | 2003 | ## Output variables. ## |
22e05272 | 2004 | ## ----------------- ##" |
79035f0d NN |
2005 | echo |
2006 | for ac_var in $ac_subst_vars | |
2007 | do | |
5213506e RW |
2008 | eval ac_val=\$$ac_var |
2009 | case $ac_val in | |
2010 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2011 | esac | |
2012 | $as_echo "$ac_var='\''$ac_val'\''" | |
79035f0d NN |
2013 | done | sort |
2014 | echo | |
2015 | ||
2016 | if test -n "$ac_subst_files"; then | |
22e05272 | 2017 | $as_echo "## ------------------- ## |
5213506e | 2018 | ## File substitutions. ## |
22e05272 | 2019 | ## ------------------- ##" |
79035f0d NN |
2020 | echo |
2021 | for ac_var in $ac_subst_files | |
2022 | do | |
5213506e RW |
2023 | eval ac_val=\$$ac_var |
2024 | case $ac_val in | |
2025 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2026 | esac | |
2027 | $as_echo "$ac_var='\''$ac_val'\''" | |
79035f0d NN |
2028 | done | sort |
2029 | echo | |
2030 | fi | |
2031 | ||
2032 | if test -s confdefs.h; then | |
22e05272 | 2033 | $as_echo "## ----------- ## |
79035f0d | 2034 | ## confdefs.h. ## |
22e05272 | 2035 | ## ----------- ##" |
79035f0d | 2036 | echo |
5213506e | 2037 | cat confdefs.h |
79035f0d NN |
2038 | echo |
2039 | fi | |
2040 | test "$ac_signal" != 0 && | |
5213506e RW |
2041 | $as_echo "$as_me: caught signal $ac_signal" |
2042 | $as_echo "$as_me: exit $exit_status" | |
79035f0d | 2043 | } >&5 |
5213506e RW |
2044 | rm -f core *.core core.conftest.* && |
2045 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
79035f0d | 2046 | exit $exit_status |
5213506e | 2047 | ' 0 |
79035f0d | 2048 | for ac_signal in 1 2 13 15; do |
5213506e | 2049 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
79035f0d NN |
2050 | done |
2051 | ac_signal=0 | |
2052 | ||
2053 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2054 | rm -f -r conftest* confdefs.h |
2055 | ||
2056 | $as_echo "/* confdefs.h */" > confdefs.h | |
79035f0d NN |
2057 | |
2058 | # Predefined preprocessor variables. | |
2059 | ||
2060 | cat >>confdefs.h <<_ACEOF | |
2061 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2062 | _ACEOF | |
2063 | ||
79035f0d NN |
2064 | cat >>confdefs.h <<_ACEOF |
2065 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2066 | _ACEOF | |
2067 | ||
79035f0d NN |
2068 | cat >>confdefs.h <<_ACEOF |
2069 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2070 | _ACEOF | |
2071 | ||
79035f0d NN |
2072 | cat >>confdefs.h <<_ACEOF |
2073 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2074 | _ACEOF | |
2075 | ||
79035f0d NN |
2076 | cat >>confdefs.h <<_ACEOF |
2077 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2078 | _ACEOF | |
2079 | ||
5213506e RW |
2080 | cat >>confdefs.h <<_ACEOF |
2081 | #define PACKAGE_URL "$PACKAGE_URL" | |
2082 | _ACEOF | |
2083 | ||
79035f0d NN |
2084 | |
2085 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2086 | # Prefer an explicitly selected file to automatically selected ones. |
2087 | ac_site_file1=NONE | |
2088 | ac_site_file2=NONE | |
2089 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2090 | # We do not want a PATH search for config.site. |
2091 | case $CONFIG_SITE in #(( | |
2092 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2093 | */*) ac_site_file1=$CONFIG_SITE;; | |
2094 | *) ac_site_file1=./$CONFIG_SITE;; | |
2095 | esac | |
5213506e RW |
2096 | elif test "x$prefix" != xNONE; then |
2097 | ac_site_file1=$prefix/share/config.site | |
2098 | ac_site_file2=$prefix/etc/config.site | |
2099 | else | |
2100 | ac_site_file1=$ac_default_prefix/share/config.site | |
2101 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2102 | fi | |
2103 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2104 | do | |
2105 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2106 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2108 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
79035f0d | 2109 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2110 | . "$ac_site_file" \ |
2111 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2112 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2113 | as_fn_error $? "failed to load site script $ac_site_file | |
2114 | See \`config.log' for more details" "$LINENO" 5; } | |
6eb95e99 ZW |
2115 | fi |
2116 | done | |
2117 | ||
2118 | if test -r "$cache_file"; then | |
22e05272 JM |
2119 | # Some versions of bash will fail to source /dev/null (special files |
2120 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2121 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2123 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
79035f0d | 2124 | case $cache_file in |
5213506e RW |
2125 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2126 | *) . "./$cache_file";; | |
79035f0d NN |
2127 | esac |
2128 | fi | |
6eb95e99 | 2129 | else |
5213506e RW |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2131 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
79035f0d NN |
2132 | >$cache_file |
2133 | fi | |
2134 | ||
22e05272 JM |
2135 | as_fn_append ac_header_list " stdlib.h" |
2136 | as_fn_append ac_header_list " unistd.h" | |
2137 | as_fn_append ac_header_list " sys/param.h" | |
79035f0d NN |
2138 | # Check that the precious variables saved in the cache have kept the same |
2139 | # value. | |
2140 | ac_cache_corrupted=false | |
5213506e | 2141 | for ac_var in $ac_precious_vars; do |
79035f0d NN |
2142 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2143 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2144 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2145 | eval ac_new_val=\$ac_env_${ac_var}_value | |
79035f0d NN |
2146 | case $ac_old_set,$ac_new_set in |
2147 | set,) | |
5213506e RW |
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2149 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
79035f0d NN |
2150 | ac_cache_corrupted=: ;; |
2151 | ,set) | |
5213506e RW |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2153 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
79035f0d NN |
2154 | ac_cache_corrupted=: ;; |
2155 | ,);; | |
2156 | *) | |
2157 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2158 | # differences in whitespace do not lead to failure. |
2159 | ac_old_val_w=`echo x $ac_old_val` | |
2160 | ac_new_val_w=`echo x $ac_new_val` | |
2161 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2163 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2164 | ac_cache_corrupted=: | |
2165 | else | |
2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2167 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2168 | eval $ac_var=\$ac_old_val | |
2169 | fi | |
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2171 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2173 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
79035f0d NN |
2174 | fi;; |
2175 | esac | |
2176 | # Pass precious variables to config.status. | |
2177 | if test "$ac_new_set" = set; then | |
2178 | case $ac_new_val in | |
5213506e | 2179 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
79035f0d NN |
2180 | *) ac_arg=$ac_var=$ac_new_val ;; |
2181 | esac | |
2182 | case " $ac_configure_args " in | |
2183 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2184 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
79035f0d NN |
2185 | esac |
2186 | fi | |
2187 | done | |
2188 | if $ac_cache_corrupted; then | |
5213506e RW |
2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2192 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2193 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
6eb95e99 | 2194 | fi |
5213506e RW |
2195 | ## -------------------- ## |
2196 | ## Main body of script. ## | |
2197 | ## -------------------- ## | |
6eb95e99 ZW |
2198 | |
2199 | ac_ext=c | |
2200 | ac_cpp='$CPP $CPPFLAGS' | |
79035f0d NN |
2201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6eb95e99 ZW |
2204 | |
2205 | ||
2206 | ||
2207 | ||
56694dd9 | 2208 | |
22e05272 JM |
2209 | ac_ext=c |
2210 | ac_cpp='$CPP $CPPFLAGS' | |
2211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2214 | if test -n "$ac_tool_prefix"; then | |
2215 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2216 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2218 | $as_echo_n "checking for $ac_word... " >&6; } | |
2219 | if ${ac_cv_prog_CC+:} false; then : | |
5213506e | 2220 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 2221 | else |
22e05272 JM |
2222 | if test -n "$CC"; then |
2223 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2224 | else | |
2225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2226 | for as_dir in $PATH | |
2227 | do | |
2228 | IFS=$as_save_IFS | |
2229 | test -z "$as_dir" && as_dir=. | |
2230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2232 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2234 | break 2 | |
2235 | fi | |
2236 | done | |
2237 | done | |
2238 | IFS=$as_save_IFS | |
2239 | ||
6eb95e99 | 2240 | fi |
22e05272 JM |
2241 | fi |
2242 | CC=$ac_cv_prog_CC | |
2243 | if test -n "$CC"; then | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2245 | $as_echo "$CC" >&6; } | |
6eb95e99 | 2246 | else |
5213506e RW |
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2248 | $as_echo "no" >&6; } | |
79035f0d | 2249 | fi |
5213506e | 2250 | |
79035f0d | 2251 | |
22e05272 JM |
2252 | fi |
2253 | if test -z "$ac_cv_prog_CC"; then | |
2254 | ac_ct_CC=$CC | |
2255 | # Extract the first word of "gcc", so it can be a program name with args. | |
2256 | set dummy gcc; ac_word=$2 | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2258 | $as_echo_n "checking for $ac_word... " >&6; } | |
2259 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
5213506e | 2260 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 2261 | else |
22e05272 JM |
2262 | if test -n "$ac_ct_CC"; then |
2263 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2264 | else | |
2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
79035f0d NN |
2266 | for as_dir in $PATH |
2267 | do | |
2268 | IFS=$as_save_IFS | |
2269 | test -z "$as_dir" && as_dir=. | |
22e05272 JM |
2270 | for ac_exec_ext in '' $ac_executable_extensions; do |
2271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2272 | ac_cv_prog_ac_ct_CC="gcc" | |
2273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2274 | break 2 | |
2275 | fi | |
2276 | done | |
5213506e RW |
2277 | done |
2278 | IFS=$as_save_IFS | |
79035f0d | 2279 | |
6eb95e99 | 2280 | fi |
6eb95e99 | 2281 | fi |
22e05272 JM |
2282 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2283 | if test -n "$ac_ct_CC"; then | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2285 | $as_echo "$ac_ct_CC" >&6; } | |
6eb95e99 | 2286 | else |
22e05272 JM |
2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2288 | $as_echo "no" >&6; } | |
5213506e RW |
2289 | fi |
2290 | ||
22e05272 JM |
2291 | if test "x$ac_ct_CC" = x; then |
2292 | CC="" | |
79035f0d | 2293 | else |
22e05272 JM |
2294 | case $cross_compiling:$ac_tool_warned in |
2295 | yes:) | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2298 | ac_tool_warned=yes ;; | |
2299 | esac | |
2300 | CC=$ac_ct_CC | |
79035f0d | 2301 | fi |
79035f0d | 2302 | else |
22e05272 | 2303 | CC="$ac_cv_prog_CC" |
79035f0d | 2304 | fi |
79035f0d | 2305 | |
22e05272 JM |
2306 | if test -z "$CC"; then |
2307 | if test -n "$ac_tool_prefix"; then | |
2308 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2309 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5213506e RW |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2311 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2312 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2313 | $as_echo_n "(cached) " >&6 |
79035f0d | 2314 | else |
22e05272 JM |
2315 | if test -n "$CC"; then |
2316 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2317 | else | |
2318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2319 | for as_dir in $PATH | |
2320 | do | |
2321 | IFS=$as_save_IFS | |
2322 | test -z "$as_dir" && as_dir=. | |
2323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2325 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2327 | break 2 | |
2328 | fi | |
2329 | done | |
2330 | done | |
2331 | IFS=$as_save_IFS | |
2332 | ||
79035f0d | 2333 | fi |
22e05272 JM |
2334 | fi |
2335 | CC=$ac_cv_prog_CC | |
2336 | if test -n "$CC"; then | |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2338 | $as_echo "$CC" >&6; } | |
79035f0d | 2339 | else |
5213506e RW |
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2341 | $as_echo "no" >&6; } | |
79035f0d NN |
2342 | fi |
2343 | ||
22e05272 JM |
2344 | |
2345 | fi | |
2346 | fi | |
2347 | if test -z "$CC"; then | |
2348 | # Extract the first word of "cc", so it can be a program name with args. | |
2349 | set dummy cc; ac_word=$2 | |
5213506e RW |
2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2351 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2352 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2353 | $as_echo_n "(cached) " >&6 |
79035f0d | 2354 | else |
22e05272 JM |
2355 | if test -n "$CC"; then |
2356 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2357 | else | |
2358 | ac_prog_rejected=no | |
2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
79035f0d NN |
2360 | for as_dir in $PATH |
2361 | do | |
2362 | IFS=$as_save_IFS | |
2363 | test -z "$as_dir" && as_dir=. | |
5213506e | 2364 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 JM |
2365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2366 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2367 | ac_prog_rejected=yes | |
2368 | continue | |
2369 | fi | |
2370 | ac_cv_prog_CC="cc" | |
5213506e | 2371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
2372 | break 2 |
2373 | fi | |
2374 | done | |
5213506e RW |
2375 | done |
2376 | IFS=$as_save_IFS | |
79035f0d | 2377 | |
22e05272 JM |
2378 | if test $ac_prog_rejected = yes; then |
2379 | # We found a bogon in the path, so make sure we never use it. | |
2380 | set dummy $ac_cv_prog_CC | |
2381 | shift | |
2382 | if test $# != 0; then | |
2383 | # We chose a different compiler from the bogus one. | |
2384 | # However, it has the same basename, so the bogon will be chosen | |
2385 | # first if we set CC to just the basename; use the full file name. | |
2386 | shift | |
2387 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2388 | fi | |
79035f0d | 2389 | fi |
22e05272 JM |
2390 | fi |
2391 | fi | |
2392 | CC=$ac_cv_prog_CC | |
2393 | if test -n "$CC"; then | |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2395 | $as_echo "$CC" >&6; } | |
79035f0d | 2396 | else |
5213506e RW |
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2398 | $as_echo "no" >&6; } | |
79035f0d NN |
2399 | fi |
2400 | ||
2401 | ||
79035f0d | 2402 | fi |
22e05272 JM |
2403 | if test -z "$CC"; then |
2404 | if test -n "$ac_tool_prefix"; then | |
2405 | for ac_prog in cl.exe | |
2406 | do | |
2407 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2408 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2410 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2411 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2412 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
2413 | else |
2414 | if test -n "$CC"; then | |
2415 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2416 | else | |
2417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2418 | for as_dir in $PATH | |
2419 | do | |
2420 | IFS=$as_save_IFS | |
2421 | test -z "$as_dir" && as_dir=. | |
5213506e | 2422 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 JM |
2423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2424 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
5213506e | 2425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
2426 | break 2 |
2427 | fi | |
2428 | done | |
5213506e RW |
2429 | done |
2430 | IFS=$as_save_IFS | |
79035f0d NN |
2431 | |
2432 | fi | |
2433 | fi | |
2434 | CC=$ac_cv_prog_CC | |
2435 | if test -n "$CC"; then | |
5213506e RW |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2437 | $as_echo "$CC" >&6; } | |
79035f0d | 2438 | else |
5213506e RW |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2440 | $as_echo "no" >&6; } | |
79035f0d NN |
2441 | fi |
2442 | ||
5213506e | 2443 | |
22e05272 JM |
2444 | test -n "$CC" && break |
2445 | done | |
79035f0d | 2446 | fi |
22e05272 | 2447 | if test -z "$CC"; then |
79035f0d | 2448 | ac_ct_CC=$CC |
22e05272 JM |
2449 | for ac_prog in cl.exe |
2450 | do | |
2451 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2452 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2454 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2455 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 2456 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
2457 | else |
2458 | if test -n "$ac_ct_CC"; then | |
2459 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2460 | else | |
2461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2462 | for as_dir in $PATH | |
2463 | do | |
2464 | IFS=$as_save_IFS | |
2465 | test -z "$as_dir" && as_dir=. | |
5213506e | 2466 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 JM |
2467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2468 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5213506e | 2469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
2470 | break 2 |
2471 | fi | |
2472 | done | |
5213506e RW |
2473 | done |
2474 | IFS=$as_save_IFS | |
79035f0d NN |
2475 | |
2476 | fi | |
2477 | fi | |
2478 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2479 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2481 | $as_echo "$ac_ct_CC" >&6; } | |
79035f0d | 2482 | else |
5213506e RW |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2484 | $as_echo "no" >&6; } | |
79035f0d NN |
2485 | fi |
2486 | ||
22e05272 JM |
2487 | |
2488 | test -n "$ac_ct_CC" && break | |
2489 | done | |
2490 | ||
5213506e RW |
2491 | if test "x$ac_ct_CC" = x; then |
2492 | CC="" | |
2493 | else | |
2494 | case $cross_compiling:$ac_tool_warned in | |
2495 | yes:) | |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2498 | ac_tool_warned=yes ;; | |
2499 | esac | |
2500 | CC=$ac_ct_CC | |
2501 | fi | |
79035f0d NN |
2502 | fi |
2503 | ||
79035f0d NN |
2504 | fi |
2505 | ||
5213506e | 2506 | |
22e05272 JM |
2507 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2509 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2510 | See \`config.log' for more details" "$LINENO" 5; } | |
2511 | ||
2512 | # Provide some information about the compiler. | |
2513 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2514 | set X $ac_compile | |
2515 | ac_compiler=$2 | |
2516 | for ac_option in --version -v -V -qversion; do | |
2517 | { { ac_try="$ac_compiler $ac_option >&5" | |
2518 | case "(($ac_try" in | |
2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2520 | *) ac_try_echo=$ac_try;; | |
2521 | esac | |
2522 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2523 | $as_echo "$ac_try_echo"; } >&5 | |
2524 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2525 | ac_status=$? | |
2526 | if test -s conftest.err; then | |
2527 | sed '10a\ | |
2528 | ... rest of stderr output deleted ... | |
2529 | 10q' conftest.err >conftest.er1 | |
2530 | cat conftest.er1 >&5 | |
5213506e | 2531 | fi |
22e05272 JM |
2532 | rm -f conftest.er1 conftest.err |
2533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2534 | test $ac_status = 0; } | |
79035f0d | 2535 | done |
79035f0d | 2536 | |
22e05272 JM |
2537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2538 | /* end confdefs.h. */ | |
6eb95e99 | 2539 | |
22e05272 JM |
2540 | int |
2541 | main () | |
2542 | { | |
79035f0d NN |
2543 | |
2544 | ; | |
2545 | return 0; | |
2546 | } | |
2547 | _ACEOF | |
2548 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 2549 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
79035f0d NN |
2550 | # Try to create an executable without -o first, disregard a.out. |
2551 | # It will help us diagnose broken compilers, and finding out an intuition | |
2552 | # of exeext. | |
22e05272 JM |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2554 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
2555 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2556 | ||
2557 | # The possible output files: | |
2558 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2559 | ||
2560 | ac_rmfiles= | |
2561 | for ac_file in $ac_files | |
2562 | do | |
2563 | case $ac_file in | |
2564 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2565 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2566 | esac | |
2567 | done | |
2568 | rm -f $ac_rmfiles | |
2569 | ||
2570 | if { { ac_try="$ac_link_default" | |
2571 | case "(($ac_try" in | |
2572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2573 | *) ac_try_echo=$ac_try;; | |
2574 | esac | |
2575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2576 | $as_echo "$ac_try_echo"; } >&5 | |
2577 | (eval "$ac_link_default") 2>&5 | |
79035f0d | 2578 | ac_status=$? |
5213506e RW |
2579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2580 | test $ac_status = 0; }; then : | |
2581 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2582 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2583 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2584 | # so that the user can short-circuit this test for compilers unknown to | |
2585 | # Autoconf. | |
2586 | for ac_file in $ac_files '' | |
79035f0d NN |
2587 | do |
2588 | test -f "$ac_file" || continue | |
2589 | case $ac_file in | |
5213506e | 2590 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8ab705be | 2591 | ;; |
79035f0d | 2592 | [ab].out ) |
8ab705be KC |
2593 | # We found the default executable, but exeext='' is most |
2594 | # certainly right. | |
2595 | break;; | |
79035f0d | 2596 | *.* ) |
5213506e RW |
2597 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2598 | then :; else | |
2599 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2600 | fi | |
2601 | # We set ac_cv_exeext here because the later test for it is not | |
2602 | # safe: cross compilers may not add the suffix if given an `-o' | |
2603 | # argument, so we may need to know it at that point already. | |
2604 | # Even if this section looks crufty: it has the advantage of | |
2605 | # actually working. | |
8ab705be | 2606 | break;; |
79035f0d | 2607 | * ) |
8ab705be | 2608 | break;; |
79035f0d NN |
2609 | esac |
2610 | done | |
5213506e RW |
2611 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2612 | ||
79035f0d | 2613 | else |
5213506e RW |
2614 | ac_file='' |
2615 | fi | |
5213506e | 2616 | if test -z "$ac_file"; then : |
22e05272 JM |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2618 | $as_echo "no" >&6; } | |
2619 | $as_echo "$as_me: failed program was:" >&5 | |
79035f0d NN |
2620 | sed 's/^/| /' conftest.$ac_ext >&5 |
2621 | ||
5213506e RW |
2622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2624 | as_fn_error 77 "C compiler cannot create executables |
2625 | See \`config.log' for more details" "$LINENO" 5; } | |
2626 | else | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2628 | $as_echo "yes" >&6; } | |
79035f0d | 2629 | fi |
22e05272 JM |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2631 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2633 | $as_echo "$ac_file" >&6; } | |
79035f0d | 2634 | ac_exeext=$ac_cv_exeext |
79035f0d | 2635 | |
22e05272 | 2636 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
79035f0d | 2637 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2639 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2640 | if { { ac_try="$ac_link" | |
2641 | case "(($ac_try" in | |
2642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2643 | *) ac_try_echo=$ac_try;; | |
2644 | esac | |
2645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2646 | $as_echo "$ac_try_echo"; } >&5 | |
2647 | (eval "$ac_link") 2>&5 | |
79035f0d | 2648 | ac_status=$? |
5213506e RW |
2649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2650 | test $ac_status = 0; }; then : | |
79035f0d NN |
2651 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2652 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2653 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2654 | # `rm'. | |
2655 | for ac_file in conftest.exe conftest conftest.*; do | |
2656 | test -f "$ac_file" || continue | |
2657 | case $ac_file in | |
5213506e | 2658 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
79035f0d | 2659 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8ab705be | 2660 | break;; |
79035f0d NN |
2661 | * ) break;; |
2662 | esac | |
2663 | done | |
2664 | else | |
5213506e RW |
2665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2667 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2668 | See \`config.log' for more details" "$LINENO" 5; } | |
79035f0d | 2669 | fi |
22e05272 | 2670 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2672 | $as_echo "$ac_cv_exeext" >&6; } | |
79035f0d NN |
2673 | |
2674 | rm -f conftest.$ac_ext | |
2675 | EXEEXT=$ac_cv_exeext | |
2676 | ac_exeext=$EXEEXT | |
22e05272 JM |
2677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2678 | /* end confdefs.h. */ | |
2679 | #include <stdio.h> | |
2680 | int | |
2681 | main () | |
2682 | { | |
2683 | FILE *f = fopen ("conftest.out", "w"); | |
2684 | return ferror (f) || fclose (f) != 0; | |
2685 | ||
2686 | ; | |
2687 | return 0; | |
2688 | } | |
2689 | _ACEOF | |
2690 | ac_clean_files="$ac_clean_files conftest.out" | |
2691 | # Check that the compiler produces executables we can run. If not, either | |
2692 | # the compiler is broken, or we cross compile. | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2694 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2695 | if test "$cross_compiling" != yes; then | |
2696 | { { ac_try="$ac_link" | |
2697 | case "(($ac_try" in | |
2698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2699 | *) ac_try_echo=$ac_try;; | |
2700 | esac | |
2701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2702 | $as_echo "$ac_try_echo"; } >&5 | |
2703 | (eval "$ac_link") 2>&5 | |
2704 | ac_status=$? | |
2705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2706 | test $ac_status = 0; } | |
2707 | if { ac_try='./conftest$ac_cv_exeext' | |
2708 | { { case "(($ac_try" in | |
2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2710 | *) ac_try_echo=$ac_try;; | |
2711 | esac | |
2712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2713 | $as_echo "$ac_try_echo"; } >&5 | |
2714 | (eval "$ac_try") 2>&5 | |
2715 | ac_status=$? | |
2716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2717 | test $ac_status = 0; }; }; then | |
2718 | cross_compiling=no | |
2719 | else | |
2720 | if test "$cross_compiling" = maybe; then | |
2721 | cross_compiling=yes | |
2722 | else | |
2723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2724 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2725 | as_fn_error $? "cannot run C compiled programs. | |
2726 | If you meant to cross compile, use \`--host'. | |
2727 | See \`config.log' for more details" "$LINENO" 5; } | |
2728 | fi | |
2729 | fi | |
2730 | fi | |
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2732 | $as_echo "$cross_compiling" >&6; } | |
2733 | ||
2734 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2735 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2737 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 2738 | if ${ac_cv_objext+:} false; then : |
5213506e | 2739 | $as_echo_n "(cached) " >&6 |
79035f0d | 2740 | else |
5213506e | 2741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
2742 | /* end confdefs.h. */ |
2743 | ||
2744 | int | |
2745 | main () | |
2746 | { | |
2747 | ||
2748 | ; | |
2749 | return 0; | |
2750 | } | |
2751 | _ACEOF | |
2752 | rm -f conftest.o conftest.obj | |
5213506e RW |
2753 | if { { ac_try="$ac_compile" |
2754 | case "(($ac_try" in | |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2756 | *) ac_try_echo=$ac_try;; | |
2757 | esac | |
2758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2759 | $as_echo "$ac_try_echo"; } >&5 | |
2760 | (eval "$ac_compile") 2>&5 | |
79035f0d | 2761 | ac_status=$? |
5213506e RW |
2762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2763 | test $ac_status = 0; }; then : | |
2764 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2765 | test -f "$ac_file" || continue; | |
79035f0d | 2766 | case $ac_file in |
5213506e | 2767 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
79035f0d NN |
2768 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2769 | break;; | |
2770 | esac | |
2771 | done | |
2772 | else | |
5213506e | 2773 | $as_echo "$as_me: failed program was:" >&5 |
79035f0d NN |
2774 | sed 's/^/| /' conftest.$ac_ext >&5 |
2775 | ||
5213506e RW |
2776 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2778 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2779 | See \`config.log' for more details" "$LINENO" 5; } | |
79035f0d | 2780 | fi |
79035f0d NN |
2781 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2782 | fi | |
5213506e RW |
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2784 | $as_echo "$ac_cv_objext" >&6; } | |
79035f0d NN |
2785 | OBJEXT=$ac_cv_objext |
2786 | ac_objext=$OBJEXT | |
5213506e RW |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2788 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 2789 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 2790 | $as_echo_n "(cached) " >&6 |
79035f0d | 2791 | else |
5213506e | 2792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
2793 | /* end confdefs.h. */ |
2794 | ||
2795 | int | |
2796 | main () | |
2797 | { | |
2798 | #ifndef __GNUC__ | |
2799 | choke me | |
2800 | #endif | |
2801 | ||
2802 | ; | |
2803 | return 0; | |
2804 | } | |
2805 | _ACEOF | |
5213506e | 2806 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
2807 | ac_compiler_gnu=yes |
2808 | else | |
5213506e | 2809 | ac_compiler_gnu=no |
79035f0d | 2810 | fi |
5213506e | 2811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d NN |
2812 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2813 | ||
2814 | fi | |
5213506e RW |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2816 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2817 | if test $ac_compiler_gnu = yes; then | |
2818 | GCC=yes | |
2819 | else | |
2820 | GCC= | |
2821 | fi | |
79035f0d NN |
2822 | ac_test_CFLAGS=${CFLAGS+set} |
2823 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2825 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 2826 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
2827 | $as_echo_n "(cached) " >&6 |
2828 | else | |
2829 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2830 | ac_c_werror_flag=yes | |
2831 | ac_cv_prog_cc_g=no | |
2832 | CFLAGS="-g" | |
2833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
79035f0d NN |
2834 | /* end confdefs.h. */ |
2835 | ||
2836 | int | |
2837 | main () | |
2838 | { | |
2839 | ||
2840 | ; | |
2841 | return 0; | |
2842 | } | |
2843 | _ACEOF | |
5213506e | 2844 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
2845 | ac_cv_prog_cc_g=yes |
2846 | else | |
5213506e RW |
2847 | CFLAGS="" |
2848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2849 | /* end confdefs.h. */ | |
2850 | ||
2851 | int | |
2852 | main () | |
2853 | { | |
2854 | ||
2855 | ; | |
2856 | return 0; | |
2857 | } | |
2858 | _ACEOF | |
2859 | if ac_fn_c_try_compile "$LINENO"; then : | |
2860 | ||
2861 | else | |
2862 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2863 | CFLAGS="-g" | |
2864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2865 | /* end confdefs.h. */ | |
2866 | ||
2867 | int | |
2868 | main () | |
2869 | { | |
79035f0d | 2870 | |
5213506e RW |
2871 | ; |
2872 | return 0; | |
2873 | } | |
2874 | _ACEOF | |
2875 | if ac_fn_c_try_compile "$LINENO"; then : | |
2876 | ac_cv_prog_cc_g=yes | |
2877 | fi | |
2878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
79035f0d | 2879 | fi |
5213506e | 2880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d | 2881 | fi |
5213506e RW |
2882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2883 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2884 | fi | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2886 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
79035f0d NN |
2887 | if test "$ac_test_CFLAGS" = set; then |
2888 | CFLAGS=$ac_save_CFLAGS | |
2889 | elif test $ac_cv_prog_cc_g = yes; then | |
2890 | if test "$GCC" = yes; then | |
2891 | CFLAGS="-g -O2" | |
2892 | else | |
2893 | CFLAGS="-g" | |
2894 | fi | |
2895 | else | |
2896 | if test "$GCC" = yes; then | |
2897 | CFLAGS="-O2" | |
2898 | else | |
2899 | CFLAGS= | |
2900 | fi | |
2901 | fi | |
5213506e RW |
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2903 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 2904 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 2905 | $as_echo_n "(cached) " >&6 |
79035f0d | 2906 | else |
5213506e | 2907 | ac_cv_prog_cc_c89=no |
79035f0d | 2908 | ac_save_CC=$CC |
5213506e | 2909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
2910 | /* end confdefs.h. */ |
2911 | #include <stdarg.h> | |
2912 | #include <stdio.h> | |
22e05272 | 2913 | struct stat; |
79035f0d NN |
2914 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2915 | struct buf { int x; }; | |
2916 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2917 | static char *e (p, i) | |
2918 | char **p; | |
2919 | int i; | |
2920 | { | |
2921 | return p[i]; | |
2922 | } | |
2923 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2924 | { | |
2925 | char *s; | |
2926 | va_list v; | |
2927 | va_start (v,p); | |
2928 | s = g (p, va_arg (v,int)); | |
2929 | va_end (v); | |
2930 | return s; | |
2931 | } | |
8ab705be KC |
2932 | |
2933 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2934 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2935 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 2936 | as 'x'. The following induces an error, until -std is added to get |
8ab705be KC |
2937 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2938 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 2939 | that's true only with -std. */ |
8ab705be KC |
2940 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2941 | ||
5213506e RW |
2942 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2943 | inside strings and character constants. */ | |
2944 | #define FOO(x) 'x' | |
2945 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2946 | ||
79035f0d NN |
2947 | int test (int i, double x); |
2948 | struct s1 {int (*f) (int a);}; | |
2949 | struct s2 {int (*f) (double a);}; | |
2950 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2951 | int argc; | |
2952 | char **argv; | |
2953 | int | |
2954 | main () | |
2955 | { | |
2956 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2957 | ; | |
2958 | return 0; | |
2959 | } | |
2960 | _ACEOF | |
5213506e RW |
2961 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2962 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
79035f0d NN |
2963 | do |
2964 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
2965 | if ac_fn_c_try_compile "$LINENO"; then : |
2966 | ac_cv_prog_cc_c89=$ac_arg | |
79035f0d | 2967 | fi |
5213506e RW |
2968 | rm -f core conftest.err conftest.$ac_objext |
2969 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
79035f0d | 2970 | done |
5213506e | 2971 | rm -f conftest.$ac_ext |
79035f0d NN |
2972 | CC=$ac_save_CC |
2973 | ||
2974 | fi | |
5213506e RW |
2975 | # AC_CACHE_VAL |
2976 | case "x$ac_cv_prog_cc_c89" in | |
2977 | x) | |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2979 | $as_echo "none needed" >&6; } ;; | |
2980 | xno) | |
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2982 | $as_echo "unsupported" >&6; } ;; | |
79035f0d | 2983 | *) |
5213506e RW |
2984 | CC="$CC $ac_cv_prog_cc_c89" |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2986 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
79035f0d | 2987 | esac |
5213506e | 2988 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
79035f0d | 2989 | |
79035f0d NN |
2990 | fi |
2991 | ||
79035f0d NN |
2992 | ac_ext=c |
2993 | ac_cpp='$CPP $CPPFLAGS' | |
2994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2997 | ||
5213506e | 2998 | |
22e05272 JM |
2999 | ac_ext=c |
3000 | ac_cpp='$CPP $CPPFLAGS' | |
3001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3005 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3006 | # On Suns, sometimes $CPP names a directory. | |
3007 | if test -n "$CPP" && test -d "$CPP"; then | |
3008 | CPP= | |
3009 | fi | |
3010 | if test -z "$CPP"; then | |
3011 | if ${ac_cv_prog_CPP+:} false; then : | |
5213506e | 3012 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
3013 | else |
3014 | # Double quotes because CPP needs to be expanded | |
3015 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3016 | do | |
3017 | ac_preproc_ok=false | |
3018 | for ac_c_preproc_warn_flag in '' yes | |
3019 | do | |
3020 | # Use a header file that comes with gcc, so configuring glibc | |
3021 | # with a fresh cross-compiler works. | |
3022 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3023 | # <limits.h> exists even on freestanding compilers. | |
3024 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3025 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3027 | /* end confdefs.h. */ |
3028 | #ifdef __STDC__ | |
3029 | # include <limits.h> | |
3030 | #else | |
3031 | # include <assert.h> | |
3032 | #endif | |
8ab705be | 3033 | Syntax error |
79035f0d | 3034 | _ACEOF |
5213506e | 3035 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d | 3036 | |
5213506e | 3037 | else |
79035f0d NN |
3038 | # Broken: fails on valid input. |
3039 | continue | |
3040 | fi | |
22e05272 | 3041 | rm -f conftest.err conftest.i conftest.$ac_ext |
79035f0d | 3042 | |
5213506e | 3043 | # OK, works on sane cases. Now check whether nonexistent headers |
79035f0d | 3044 | # can be detected and how. |
5213506e | 3045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3046 | /* end confdefs.h. */ |
3047 | #include <ac_nonexistent.h> | |
3048 | _ACEOF | |
5213506e | 3049 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d NN |
3050 | # Broken: success on invalid input. |
3051 | continue | |
3052 | else | |
79035f0d NN |
3053 | # Passes both tests. |
3054 | ac_preproc_ok=: | |
3055 | break | |
6eb95e99 | 3056 | fi |
22e05272 | 3057 | rm -f conftest.err conftest.i conftest.$ac_ext |
6eb95e99 | 3058 | |
79035f0d NN |
3059 | done |
3060 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3061 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e | 3062 | if $ac_preproc_ok; then : |
79035f0d | 3063 | break |
6eb95e99 ZW |
3064 | fi |
3065 | ||
79035f0d NN |
3066 | done |
3067 | ac_cv_prog_CPP=$CPP | |
6eb95e99 ZW |
3068 | |
3069 | fi | |
79035f0d | 3070 | CPP=$ac_cv_prog_CPP |
56694dd9 | 3071 | else |
79035f0d | 3072 | ac_cv_prog_CPP=$CPP |
56694dd9 | 3073 | fi |
5213506e RW |
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3075 | $as_echo "$CPP" >&6; } | |
79035f0d NN |
3076 | ac_preproc_ok=false |
3077 | for ac_c_preproc_warn_flag in '' yes | |
3078 | do | |
3079 | # Use a header file that comes with gcc, so configuring glibc | |
3080 | # with a fresh cross-compiler works. | |
3081 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3082 | # <limits.h> exists even on freestanding compilers. | |
3083 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3084 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3086 | /* end confdefs.h. */ |
3087 | #ifdef __STDC__ | |
3088 | # include <limits.h> | |
3089 | #else | |
3090 | # include <assert.h> | |
3091 | #endif | |
8ab705be | 3092 | Syntax error |
79035f0d | 3093 | _ACEOF |
5213506e | 3094 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d | 3095 | |
5213506e | 3096 | else |
79035f0d NN |
3097 | # Broken: fails on valid input. |
3098 | continue | |
3099 | fi | |
22e05272 | 3100 | rm -f conftest.err conftest.i conftest.$ac_ext |
79035f0d | 3101 | |
5213506e | 3102 | # OK, works on sane cases. Now check whether nonexistent headers |
79035f0d | 3103 | # can be detected and how. |
5213506e | 3104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3105 | /* end confdefs.h. */ |
3106 | #include <ac_nonexistent.h> | |
3107 | _ACEOF | |
5213506e | 3108 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d NN |
3109 | # Broken: success on invalid input. |
3110 | continue | |
3111 | else | |
79035f0d NN |
3112 | # Passes both tests. |
3113 | ac_preproc_ok=: | |
3114 | break | |
6eb95e99 | 3115 | fi |
22e05272 | 3116 | rm -f conftest.err conftest.i conftest.$ac_ext |
6eb95e99 | 3117 | |
79035f0d NN |
3118 | done |
3119 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3120 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e RW |
3121 | if $ac_preproc_ok; then : |
3122 | ||
6eb95e99 | 3123 | else |
5213506e RW |
3124 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3125 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3126 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3127 | See \`config.log' for more details" "$LINENO" 5; } | |
6eb95e99 ZW |
3128 | fi |
3129 | ||
79035f0d NN |
3130 | ac_ext=c |
3131 | ac_cpp='$CPP $CPPFLAGS' | |
3132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6eb95e99 ZW |
3135 | |
3136 | ||
5213506e RW |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3138 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 3139 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 3140 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 3141 | else |
5213506e RW |
3142 | if test -z "$GREP"; then |
3143 | ac_path_GREP_found=false | |
3144 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3146 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3147 | do | |
3148 | IFS=$as_save_IFS | |
3149 | test -z "$as_dir" && as_dir=. | |
3150 | for ac_prog in grep ggrep; do | |
3151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3152 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3153 | as_fn_executable_p "$ac_path_GREP" || continue |
5213506e RW |
3154 | # Check for GNU ac_path_GREP and select it if it is found. |
3155 | # Check for GNU $ac_path_GREP | |
3156 | case `"$ac_path_GREP" --version 2>&1` in | |
3157 | *GNU*) | |
3158 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3159 | *) | |
3160 | ac_count=0 | |
3161 | $as_echo_n 0123456789 >"conftest.in" | |
3162 | while : | |
3163 | do | |
3164 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3165 | mv "conftest.tmp" "conftest.in" | |
3166 | cp "conftest.in" "conftest.nl" | |
3167 | $as_echo 'GREP' >> "conftest.nl" | |
3168 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3169 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3170 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3171 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3172 | # Best one so far, save it but keep looking for a better one | |
3173 | ac_cv_path_GREP="$ac_path_GREP" | |
3174 | ac_path_GREP_max=$ac_count | |
79035f0d | 3175 | fi |
5213506e RW |
3176 | # 10*(2^10) chars as input seems more than enough |
3177 | test $ac_count -gt 10 && break | |
3178 | done | |
3179 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3180 | esac | |
3181 | ||
3182 | $ac_path_GREP_found && break 3 | |
3183 | done | |
3184 | done | |
3185 | done | |
3186 | IFS=$as_save_IFS | |
3187 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 3188 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
3189 | fi |
3190 | else | |
3191 | ac_cv_path_GREP=$GREP | |
3192 | fi | |
3193 | ||
6eb95e99 | 3194 | fi |
5213506e RW |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3196 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3197 | GREP="$ac_cv_path_GREP" | |
6eb95e99 ZW |
3198 | |
3199 | ||
5213506e RW |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3201 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 3202 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 3203 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 3204 | else |
5213506e RW |
3205 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3206 | then ac_cv_path_EGREP="$GREP -E" | |
3207 | else | |
3208 | if test -z "$EGREP"; then | |
3209 | ac_path_EGREP_found=false | |
3210 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3212 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3213 | do | |
3214 | IFS=$as_save_IFS | |
3215 | test -z "$as_dir" && as_dir=. | |
3216 | for ac_prog in egrep; do | |
3217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3218 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3219 | as_fn_executable_p "$ac_path_EGREP" || continue |
5213506e RW |
3220 | # Check for GNU ac_path_EGREP and select it if it is found. |
3221 | # Check for GNU $ac_path_EGREP | |
3222 | case `"$ac_path_EGREP" --version 2>&1` in | |
3223 | *GNU*) | |
3224 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3225 | *) | |
3226 | ac_count=0 | |
3227 | $as_echo_n 0123456789 >"conftest.in" | |
3228 | while : | |
3229 | do | |
3230 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3231 | mv "conftest.tmp" "conftest.in" | |
3232 | cp "conftest.in" "conftest.nl" | |
3233 | $as_echo 'EGREP' >> "conftest.nl" | |
3234 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3235 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3236 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3237 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3238 | # Best one so far, save it but keep looking for a better one | |
3239 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3240 | ac_path_EGREP_max=$ac_count | |
3241 | fi | |
3242 | # 10*(2^10) chars as input seems more than enough | |
3243 | test $ac_count -gt 10 && break | |
3244 | done | |
3245 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3246 | esac | |
3247 | ||
3248 | $ac_path_EGREP_found && break 3 | |
3249 | done | |
3250 | done | |
3251 | done | |
3252 | IFS=$as_save_IFS | |
3253 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 3254 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
3255 | fi |
3256 | else | |
3257 | ac_cv_path_EGREP=$EGREP | |
3258 | fi | |
3259 | ||
3260 | fi | |
3261 | fi | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3263 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3264 | EGREP="$ac_cv_path_EGREP" | |
3265 | ||
3266 | ||
22e05272 JM |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3268 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3269 | if ${ac_cv_header_stdc+:} false; then : | |
3270 | $as_echo_n "(cached) " >&6 | |
3271 | else | |
3272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3273 | /* end confdefs.h. */ | |
3274 | #include <stdlib.h> | |
3275 | #include <stdarg.h> | |
3276 | #include <string.h> | |
3277 | #include <float.h> | |
3278 | ||
3279 | int | |
3280 | main () | |
3281 | { | |
3282 | ||
3283 | ; | |
3284 | return 0; | |
3285 | } | |
3286 | _ACEOF | |
3287 | if ac_fn_c_try_compile "$LINENO"; then : | |
3288 | ac_cv_header_stdc=yes | |
3289 | else | |
3290 | ac_cv_header_stdc=no | |
3291 | fi | |
3292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3293 | ||
3294 | if test $ac_cv_header_stdc = yes; then | |
3295 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3297 | /* end confdefs.h. */ | |
3298 | #include <string.h> | |
3299 | ||
3300 | _ACEOF | |
3301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3302 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3303 | ||
3304 | else | |
3305 | ac_cv_header_stdc=no | |
3306 | fi | |
3307 | rm -f conftest* | |
3308 | ||
3309 | fi | |
3310 | ||
3311 | if test $ac_cv_header_stdc = yes; then | |
3312 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3314 | /* end confdefs.h. */ | |
3315 | #include <stdlib.h> | |
3316 | ||
3317 | _ACEOF | |
3318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3319 | $EGREP "free" >/dev/null 2>&1; then : | |
3320 | ||
3321 | else | |
3322 | ac_cv_header_stdc=no | |
3323 | fi | |
3324 | rm -f conftest* | |
3325 | ||
3326 | fi | |
3327 | ||
3328 | if test $ac_cv_header_stdc = yes; then | |
3329 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3330 | if test "$cross_compiling" = yes; then : | |
3331 | : | |
3332 | else | |
3333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3334 | /* end confdefs.h. */ | |
3335 | #include <ctype.h> | |
3336 | #include <stdlib.h> | |
3337 | #if ((' ' & 0x0FF) == 0x020) | |
3338 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3339 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3340 | #else | |
3341 | # define ISLOWER(c) \ | |
3342 | (('a' <= (c) && (c) <= 'i') \ | |
3343 | || ('j' <= (c) && (c) <= 'r') \ | |
3344 | || ('s' <= (c) && (c) <= 'z')) | |
3345 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3346 | #endif | |
3347 | ||
3348 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3349 | int | |
3350 | main () | |
3351 | { | |
3352 | int i; | |
3353 | for (i = 0; i < 256; i++) | |
3354 | if (XOR (islower (i), ISLOWER (i)) | |
3355 | || toupper (i) != TOUPPER (i)) | |
3356 | return 2; | |
3357 | return 0; | |
3358 | } | |
3359 | _ACEOF | |
3360 | if ac_fn_c_try_run "$LINENO"; then : | |
3361 | ||
3362 | else | |
3363 | ac_cv_header_stdc=no | |
3364 | fi | |
3365 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3366 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3367 | fi | |
3368 | ||
3369 | fi | |
3370 | fi | |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3372 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3373 | if test $ac_cv_header_stdc = yes; then | |
3374 | ||
3375 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3376 | ||
3377 | fi | |
3378 | ||
3379 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3380 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3381 | inttypes.h stdint.h unistd.h | |
3382 | do : | |
3383 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3384 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3385 | " | |
3386 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3387 | cat >>confdefs.h <<_ACEOF | |
3388 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3389 | _ACEOF | |
3390 | ||
3391 | fi | |
3392 | ||
3393 | done | |
3394 | ||
3395 | ||
3396 | ||
3397 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3398 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3399 | MINIX=yes | |
3400 | else | |
3401 | MINIX= | |
3402 | fi | |
3403 | ||
3404 | ||
3405 | if test "$MINIX" = yes; then | |
3406 | ||
3407 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3408 | ||
3409 | ||
3410 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3411 | ||
3412 | ||
3413 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3414 | ||
3415 | fi | |
3416 | ||
3417 | ||
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3419 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3420 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
3421 | $as_echo_n "(cached) " >&6 | |
3422 | else | |
3423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3424 | /* end confdefs.h. */ | |
3425 | ||
3426 | # define __EXTENSIONS__ 1 | |
3427 | $ac_includes_default | |
3428 | int | |
3429 | main () | |
3430 | { | |
3431 | ||
3432 | ; | |
3433 | return 0; | |
3434 | } | |
3435 | _ACEOF | |
3436 | if ac_fn_c_try_compile "$LINENO"; then : | |
3437 | ac_cv_safe_to_define___extensions__=yes | |
3438 | else | |
3439 | ac_cv_safe_to_define___extensions__=no | |
3440 | fi | |
3441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3442 | fi | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3444 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3445 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3446 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3447 | ||
3448 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3449 | ||
3450 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3451 | ||
3452 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3453 | ||
3454 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3455 | ||
3456 | ||
3457 | ||
3458 | ac_config_headers="$ac_config_headers config.h" | |
3459 | ||
3460 | ||
3461 | ||
3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3463 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3464 | set x ${MAKE-make} | |
3465 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3466 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3467 | $as_echo_n "(cached) " >&6 | |
3468 | else | |
3469 | cat >conftest.make <<\_ACEOF | |
3470 | SHELL = /bin/sh | |
3471 | all: | |
3472 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3473 | _ACEOF | |
3474 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3475 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3476 | *@@@%%%=?*=@@@%%%*) | |
3477 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3478 | *) | |
3479 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3480 | esac | |
3481 | rm -f conftest.make | |
3482 | fi | |
3483 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3485 | $as_echo "yes" >&6; } | |
3486 | SET_MAKE= | |
3487 | else | |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3489 | $as_echo "no" >&6; } | |
3490 | SET_MAKE="MAKE=${MAKE-make}" | |
3491 | fi | |
3492 | ||
3493 | ac_aux_dir= | |
3494 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3495 | if test -f "$ac_dir/install-sh"; then | |
3496 | ac_aux_dir=$ac_dir | |
3497 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3498 | break | |
3499 | elif test -f "$ac_dir/install.sh"; then | |
3500 | ac_aux_dir=$ac_dir | |
3501 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3502 | break | |
3503 | elif test -f "$ac_dir/shtool"; then | |
3504 | ac_aux_dir=$ac_dir | |
3505 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3506 | break | |
3507 | fi | |
3508 | done | |
3509 | if test -z "$ac_aux_dir"; then | |
3510 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3511 | fi | |
3512 | ||
3513 | # These three variables are undocumented and unsupported, | |
3514 | # and are intended to be withdrawn in a future Autoconf release. | |
3515 | # They can cause serious problems if a builder's source tree is in a directory | |
3516 | # whose full name contains unusual characters. | |
3517 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3518 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3519 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3520 | ||
3521 | ||
3522 | # Find a good install program. We prefer a C program (faster), | |
3523 | # so one script is as good as another. But avoid the broken or | |
3524 | # incompatible versions: | |
3525 | # SysV /etc/install, /usr/sbin/install | |
3526 | # SunOS /usr/etc/install | |
3527 | # IRIX /sbin/install | |
3528 | # AIX /bin/install | |
3529 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3530 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3531 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3532 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3533 | # OS/2's system install, which has a completely different semantic | |
3534 | # ./install, which can be erroneously created by make from ./install.sh. | |
3535 | # Reject install programs that cannot install multiple files. | |
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3537 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3538 | if test -z "$INSTALL"; then | |
3539 | if ${ac_cv_path_install+:} false; then : | |
3540 | $as_echo_n "(cached) " >&6 | |
3541 | else | |
3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3543 | for as_dir in $PATH | |
3544 | do | |
3545 | IFS=$as_save_IFS | |
3546 | test -z "$as_dir" && as_dir=. | |
3547 | # Account for people who put trailing slashes in PATH elements. | |
3548 | case $as_dir/ in #(( | |
3549 | ./ | .// | /[cC]/* | \ | |
3550 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3551 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3552 | /usr/ucb/* ) ;; | |
3553 | *) | |
3554 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3555 | # Don't use installbsd from OSF since it installs stuff as root | |
3556 | # by default. | |
3557 | for ac_prog in ginstall scoinst install; do | |
3558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3559 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3560 | if test $ac_prog = install && | |
3561 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3562 | # AIX install. It has an incompatible calling convention. | |
3563 | : | |
3564 | elif test $ac_prog = install && | |
3565 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3566 | # program-specific install script used by HP pwplus--don't use. | |
3567 | : | |
3568 | else | |
3569 | rm -rf conftest.one conftest.two conftest.dir | |
3570 | echo one > conftest.one | |
3571 | echo two > conftest.two | |
3572 | mkdir conftest.dir | |
3573 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3574 | test -s conftest.one && test -s conftest.two && | |
3575 | test -s conftest.dir/conftest.one && | |
3576 | test -s conftest.dir/conftest.two | |
3577 | then | |
3578 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3579 | break 3 | |
3580 | fi | |
3581 | fi | |
3582 | fi | |
3583 | done | |
3584 | done | |
3585 | ;; | |
3586 | esac | |
3587 | ||
3588 | done | |
3589 | IFS=$as_save_IFS | |
3590 | ||
3591 | rm -rf conftest.one conftest.two conftest.dir | |
3592 | ||
3593 | fi | |
3594 | if test "${ac_cv_path_install+set}" = set; then | |
3595 | INSTALL=$ac_cv_path_install | |
3596 | else | |
3597 | # As a last resort, use the slow shell script. Don't cache a | |
3598 | # value for INSTALL within a source directory, because that will | |
3599 | # break other packages using the cache if that directory is | |
3600 | # removed, or if the value is a relative name. | |
3601 | INSTALL=$ac_install_sh | |
3602 | fi | |
3603 | fi | |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3605 | $as_echo "$INSTALL" >&6; } | |
3606 | ||
3607 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3608 | # It thinks the first close brace ends the variable substitution. | |
3609 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3610 | ||
3611 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3612 | ||
3613 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3614 | ||
3615 | ||
3616 | MKINSTALLDIRS= | |
3617 | if test -n "$ac_aux_dir"; then | |
3618 | case "$ac_aux_dir" in | |
3619 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
3620 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
3621 | esac | |
3622 | fi | |
3623 | if test -z "$MKINSTALLDIRS"; then | |
3624 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
3625 | fi | |
3626 | ||
3627 | ||
3628 | ||
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
3630 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
3631 | # Check whether --enable-nls was given. | |
3632 | if test "${enable_nls+set}" = set; then : | |
3633 | enableval=$enable_nls; USE_NLS=$enableval | |
3634 | else | |
3635 | USE_NLS=yes | |
3636 | fi | |
3637 | ||
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
3639 | $as_echo "$USE_NLS" >&6; } | |
3640 | ||
3641 | ||
3642 | ||
3643 | ||
3644 | ||
3645 | ||
3646 | # Prepare PATH_SEPARATOR. | |
3647 | # The user is always right. | |
3648 | if test "${PATH_SEPARATOR+set}" != set; then | |
3649 | echo "#! /bin/sh" >conf$$.sh | |
3650 | echo "exit 0" >>conf$$.sh | |
3651 | chmod +x conf$$.sh | |
3652 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3653 | PATH_SEPARATOR=';' | |
3654 | else | |
3655 | PATH_SEPARATOR=: | |
3656 | fi | |
3657 | rm -f conf$$.sh | |
3658 | fi | |
3659 | ||
3660 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3661 | # as systems may use methods other than mode bits to determine executability. | |
3662 | cat >conf$$.file <<_ASEOF | |
3663 | #! /bin/sh | |
3664 | exit 0 | |
3665 | _ASEOF | |
3666 | chmod +x conf$$.file | |
3667 | if test -x conf$$.file >/dev/null 2>&1; then | |
3668 | ac_executable_p="test -x" | |
3669 | else | |
3670 | ac_executable_p="test -f" | |
3671 | fi | |
3672 | rm -f conf$$.file | |
3673 | ||
3674 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3675 | set dummy msgfmt; ac_word=$2 | |
3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3677 | $as_echo_n "checking for $ac_word... " >&6; } | |
3678 | if ${ac_cv_path_MSGFMT+:} false; then : | |
3679 | $as_echo_n "(cached) " >&6 | |
3680 | else | |
3681 | case "$MSGFMT" in | |
3682 | [\\/]* | ?:[\\/]*) | |
3683 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3684 | ;; | |
3685 | *) | |
3686 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3687 | for ac_dir in $PATH; do | |
3688 | IFS="$ac_save_IFS" | |
3689 | test -z "$ac_dir" && ac_dir=. | |
3690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3691 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3692 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
3693 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3694 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
3695 | break 2 | |
3696 | fi | |
3697 | fi | |
3698 | done | |
3699 | done | |
3700 | IFS="$ac_save_IFS" | |
3701 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
3702 | ;; | |
3703 | esac | |
3704 | fi | |
3705 | MSGFMT="$ac_cv_path_MSGFMT" | |
3706 | if test "$MSGFMT" != ":"; then | |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
3708 | $as_echo "$MSGFMT" >&6; } | |
3709 | else | |
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3711 | $as_echo "no" >&6; } | |
3712 | fi | |
3713 | ||
3714 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3715 | set dummy gmsgfmt; ac_word=$2 | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3717 | $as_echo_n "checking for $ac_word... " >&6; } | |
3718 | if ${ac_cv_path_GMSGFMT+:} false; then : | |
3719 | $as_echo_n "(cached) " >&6 | |
3720 | else | |
3721 | case $GMSGFMT in | |
3722 | [\\/]* | ?:[\\/]*) | |
3723 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3724 | ;; | |
3725 | *) | |
3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3727 | for as_dir in $PATH | |
3728 | do | |
3729 | IFS=$as_save_IFS | |
3730 | test -z "$as_dir" && as_dir=. | |
3731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3733 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
3734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3735 | break 2 | |
3736 | fi | |
3737 | done | |
3738 | done | |
3739 | IFS=$as_save_IFS | |
3740 | ||
3741 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3742 | ;; | |
3743 | esac | |
3744 | fi | |
3745 | GMSGFMT=$ac_cv_path_GMSGFMT | |
3746 | if test -n "$GMSGFMT"; then | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
3748 | $as_echo "$GMSGFMT" >&6; } | |
3749 | else | |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3751 | $as_echo "no" >&6; } | |
3752 | fi | |
3753 | ||
3754 | ||
3755 | ||
3756 | ||
3757 | # Prepare PATH_SEPARATOR. | |
3758 | # The user is always right. | |
3759 | if test "${PATH_SEPARATOR+set}" != set; then | |
3760 | echo "#! /bin/sh" >conf$$.sh | |
3761 | echo "exit 0" >>conf$$.sh | |
3762 | chmod +x conf$$.sh | |
3763 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3764 | PATH_SEPARATOR=';' | |
3765 | else | |
3766 | PATH_SEPARATOR=: | |
3767 | fi | |
3768 | rm -f conf$$.sh | |
3769 | fi | |
3770 | ||
3771 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3772 | # as systems may use methods other than mode bits to determine executability. | |
3773 | cat >conf$$.file <<_ASEOF | |
3774 | #! /bin/sh | |
3775 | exit 0 | |
3776 | _ASEOF | |
3777 | chmod +x conf$$.file | |
3778 | if test -x conf$$.file >/dev/null 2>&1; then | |
3779 | ac_executable_p="test -x" | |
3780 | else | |
3781 | ac_executable_p="test -f" | |
3782 | fi | |
3783 | rm -f conf$$.file | |
3784 | ||
3785 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3786 | set dummy xgettext; ac_word=$2 | |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3788 | $as_echo_n "checking for $ac_word... " >&6; } | |
3789 | if ${ac_cv_path_XGETTEXT+:} false; then : | |
3790 | $as_echo_n "(cached) " >&6 | |
3791 | else | |
3792 | case "$XGETTEXT" in | |
3793 | [\\/]* | ?:[\\/]*) | |
3794 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3795 | ;; | |
3796 | *) | |
3797 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3798 | for ac_dir in $PATH; do | |
3799 | IFS="$ac_save_IFS" | |
3800 | test -z "$ac_dir" && ac_dir=. | |
3801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3802 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3803 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
3804 | (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 | |
3805 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
3806 | break 2 | |
3807 | fi | |
3808 | fi | |
3809 | done | |
3810 | done | |
3811 | IFS="$ac_save_IFS" | |
3812 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3813 | ;; | |
3814 | esac | |
3815 | fi | |
3816 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3817 | if test "$XGETTEXT" != ":"; then | |
3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
3819 | $as_echo "$XGETTEXT" >&6; } | |
3820 | else | |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3822 | $as_echo "no" >&6; } | |
3823 | fi | |
3824 | ||
3825 | rm -f messages.po | |
3826 | ||
3827 | ||
3828 | # Prepare PATH_SEPARATOR. | |
3829 | # The user is always right. | |
3830 | if test "${PATH_SEPARATOR+set}" != set; then | |
3831 | echo "#! /bin/sh" >conf$$.sh | |
3832 | echo "exit 0" >>conf$$.sh | |
3833 | chmod +x conf$$.sh | |
3834 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3835 | PATH_SEPARATOR=';' | |
3836 | else | |
3837 | PATH_SEPARATOR=: | |
3838 | fi | |
3839 | rm -f conf$$.sh | |
3840 | fi | |
3841 | ||
3842 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3843 | # as systems may use methods other than mode bits to determine executability. | |
3844 | cat >conf$$.file <<_ASEOF | |
3845 | #! /bin/sh | |
3846 | exit 0 | |
3847 | _ASEOF | |
3848 | chmod +x conf$$.file | |
3849 | if test -x conf$$.file >/dev/null 2>&1; then | |
3850 | ac_executable_p="test -x" | |
3851 | else | |
3852 | ac_executable_p="test -f" | |
3853 | fi | |
3854 | rm -f conf$$.file | |
3855 | ||
3856 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
3857 | set dummy msgmerge; ac_word=$2 | |
3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3859 | $as_echo_n "checking for $ac_word... " >&6; } | |
3860 | if ${ac_cv_path_MSGMERGE+:} false; then : | |
3861 | $as_echo_n "(cached) " >&6 | |
3862 | else | |
3863 | case "$MSGMERGE" in | |
3864 | [\\/]* | ?:[\\/]*) | |
3865 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
3866 | ;; | |
3867 | *) | |
3868 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3869 | for ac_dir in $PATH; do | |
3870 | IFS="$ac_save_IFS" | |
3871 | test -z "$ac_dir" && ac_dir=. | |
3872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3873 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3874 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
3875 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
3876 | break 2 | |
3877 | fi | |
3878 | fi | |
3879 | done | |
3880 | done | |
3881 | IFS="$ac_save_IFS" | |
3882 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
3883 | ;; | |
3884 | esac | |
3885 | fi | |
3886 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
3887 | if test "$MSGMERGE" != ":"; then | |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
3889 | $as_echo "$MSGMERGE" >&6; } | |
3890 | else | |
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3892 | $as_echo "no" >&6; } | |
3893 | fi | |
3894 | ||
3895 | ||
3896 | if test "$GMSGFMT" != ":"; then | |
3897 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
3898 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3899 | : ; | |
3900 | else | |
3901 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
3903 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
3904 | GMSGFMT=":" | |
3905 | fi | |
3906 | fi | |
3907 | ||
3908 | if test "$XGETTEXT" != ":"; then | |
3909 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
3910 | (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 | |
3911 | : ; | |
3912 | else | |
3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
3914 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
3915 | XGETTEXT=":" | |
3916 | fi | |
3917 | rm -f messages.po | |
3918 | fi | |
3919 | ||
3920 | ac_config_commands="$ac_config_commands default-1" | |
3921 | ||
3922 | ||
3923 | # Make sure we can run config.sub. | |
3924 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3925 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3926 | ||
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3928 | $as_echo_n "checking build system type... " >&6; } | |
3929 | if ${ac_cv_build+:} false; then : | |
3930 | $as_echo_n "(cached) " >&6 | |
3931 | else | |
3932 | ac_build_alias=$build_alias | |
3933 | test "x$ac_build_alias" = x && | |
3934 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3935 | test "x$ac_build_alias" = x && | |
3936 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3937 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3938 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3939 | ||
3940 | fi | |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3942 | $as_echo "$ac_cv_build" >&6; } | |
3943 | case $ac_cv_build in | |
3944 | *-*-*) ;; | |
3945 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3946 | esac | |
3947 | build=$ac_cv_build | |
3948 | ac_save_IFS=$IFS; IFS='-' | |
3949 | set x $ac_cv_build | |
3950 | shift | |
3951 | build_cpu=$1 | |
3952 | build_vendor=$2 | |
3953 | shift; shift | |
3954 | # Remember, the first character of IFS is used to create $*, | |
3955 | # except with old shells: | |
3956 | build_os=$* | |
3957 | IFS=$ac_save_IFS | |
3958 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3959 | ||
3960 | ||
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3962 | $as_echo_n "checking host system type... " >&6; } | |
3963 | if ${ac_cv_host+:} false; then : | |
3964 | $as_echo_n "(cached) " >&6 | |
3965 | else | |
3966 | if test "x$host_alias" = x; then | |
3967 | ac_cv_host=$ac_cv_build | |
3968 | else | |
3969 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3970 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3971 | fi | |
3972 | ||
3973 | fi | |
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3975 | $as_echo "$ac_cv_host" >&6; } | |
3976 | case $ac_cv_host in | |
3977 | *-*-*) ;; | |
3978 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3979 | esac | |
3980 | host=$ac_cv_host | |
3981 | ac_save_IFS=$IFS; IFS='-' | |
3982 | set x $ac_cv_host | |
3983 | shift | |
3984 | host_cpu=$1 | |
3985 | host_vendor=$2 | |
3986 | shift; shift | |
3987 | # Remember, the first character of IFS is used to create $*, | |
3988 | # except with old shells: | |
3989 | host_os=$* | |
3990 | IFS=$ac_save_IFS | |
3991 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3992 | ||
3993 | ||
3994 | if test -n "$ac_tool_prefix"; then | |
3995 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3996 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3998 | $as_echo_n "checking for $ac_word... " >&6; } | |
3999 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5213506e RW |
4000 | $as_echo_n "(cached) " >&6 |
4001 | else | |
22e05272 JM |
4002 | if test -n "$RANLIB"; then |
4003 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4004 | else | |
4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4006 | for as_dir in $PATH | |
4007 | do | |
4008 | IFS=$as_save_IFS | |
4009 | test -z "$as_dir" && as_dir=. | |
4010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4012 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4014 | break 2 | |
4015 | fi | |
4016 | done | |
4017 | done | |
4018 | IFS=$as_save_IFS | |
79035f0d | 4019 | |
22e05272 JM |
4020 | fi |
4021 | fi | |
4022 | RANLIB=$ac_cv_prog_RANLIB | |
4023 | if test -n "$RANLIB"; then | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4025 | $as_echo "$RANLIB" >&6; } | |
6eb95e99 | 4026 | else |
22e05272 JM |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4028 | $as_echo "no" >&6; } | |
6eb95e99 | 4029 | fi |
6eb95e99 | 4030 | |
5213506e | 4031 | |
6eb95e99 | 4032 | fi |
22e05272 JM |
4033 | if test -z "$ac_cv_prog_RANLIB"; then |
4034 | ac_ct_RANLIB=$RANLIB | |
4035 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4036 | set dummy ranlib; ac_word=$2 | |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4038 | $as_echo_n "checking for $ac_word... " >&6; } | |
4039 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
4040 | $as_echo_n "(cached) " >&6 | |
4041 | else | |
4042 | if test -n "$ac_ct_RANLIB"; then | |
4043 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4044 | else | |
4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4046 | for as_dir in $PATH | |
4047 | do | |
4048 | IFS=$as_save_IFS | |
4049 | test -z "$as_dir" && as_dir=. | |
4050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4052 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4054 | break 2 | |
4055 | fi | |
4056 | done | |
4057 | done | |
4058 | IFS=$as_save_IFS | |
6eb95e99 ZW |
4059 | |
4060 | fi | |
22e05272 JM |
4061 | fi |
4062 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4063 | if test -n "$ac_ct_RANLIB"; then | |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4065 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6eb95e99 | 4066 | else |
22e05272 JM |
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4068 | $as_echo "no" >&6; } | |
6eb95e99 | 4069 | fi |
6eb95e99 | 4070 | |
22e05272 JM |
4071 | if test "x$ac_ct_RANLIB" = x; then |
4072 | RANLIB=":" | |
4073 | else | |
4074 | case $cross_compiling:$ac_tool_warned in | |
4075 | yes:) | |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4078 | ac_tool_warned=yes ;; | |
4079 | esac | |
4080 | RANLIB=$ac_ct_RANLIB | |
4081 | fi | |
4082 | else | |
4083 | RANLIB="$ac_cv_prog_RANLIB" | |
6eb95e99 ZW |
4084 | fi |
4085 | ||
22e05272 JM |
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4087 | $as_echo_n "checking for library containing strerror... " >&6; } | |
4088 | if ${ac_cv_search_strerror+:} false; then : | |
4089 | $as_echo_n "(cached) " >&6 | |
6eb95e99 | 4090 | else |
22e05272 JM |
4091 | ac_func_search_save_LIBS=$LIBS |
4092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
79035f0d | 4093 | /* end confdefs.h. */ |
56694dd9 | 4094 | |
22e05272 JM |
4095 | /* Override any GCC internal prototype to avoid an error. |
4096 | Use char because int might match the return type of a GCC | |
4097 | builtin and then its argument prototype would still apply. */ | |
4098 | #ifdef __cplusplus | |
4099 | extern "C" | |
4100 | #endif | |
4101 | char strerror (); | |
79035f0d NN |
4102 | int |
4103 | main () | |
4104 | { | |
22e05272 JM |
4105 | return strerror (); |
4106 | ; | |
5213506e | 4107 | return 0; |
79035f0d NN |
4108 | } |
4109 | _ACEOF | |
22e05272 JM |
4110 | for ac_lib in '' cposix; do |
4111 | if test -z "$ac_lib"; then | |
4112 | ac_res="none required" | |
4113 | else | |
4114 | ac_res=-l$ac_lib | |
4115 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4116 | fi | |
4117 | if ac_fn_c_try_link "$LINENO"; then : | |
4118 | ac_cv_search_strerror=$ac_res | |
6eb95e99 | 4119 | fi |
22e05272 JM |
4120 | rm -f core conftest.err conftest.$ac_objext \ |
4121 | conftest$ac_exeext | |
4122 | if ${ac_cv_search_strerror+:} false; then : | |
4123 | break | |
6eb95e99 | 4124 | fi |
22e05272 JM |
4125 | done |
4126 | if ${ac_cv_search_strerror+:} false; then : | |
5213506e | 4127 | |
22e05272 JM |
4128 | else |
4129 | ac_cv_search_strerror=no | |
6eb95e99 | 4130 | fi |
22e05272 JM |
4131 | rm conftest.$ac_ext |
4132 | LIBS=$ac_func_search_save_LIBS | |
6eb95e99 | 4133 | fi |
22e05272 JM |
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
4135 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4136 | ac_res=$ac_cv_search_strerror | |
4137 | if test "$ac_res" != no; then : | |
4138 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
79035f0d NN |
4139 | |
4140 | fi | |
56694dd9 | 4141 | |
5213506e RW |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
4143 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
22e05272 | 4144 | if ${ac_cv_c_const+:} false; then : |
5213506e | 4145 | $as_echo_n "(cached) " >&6 |
79035f0d | 4146 | else |
5213506e | 4147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4148 | /* end confdefs.h. */ |
4149 | ||
4150 | int | |
4151 | main () | |
4152 | { | |
22e05272 | 4153 | |
79035f0d | 4154 | #ifndef __cplusplus |
22e05272 | 4155 | /* Ultrix mips cc rejects this sort of thing. */ |
79035f0d | 4156 | typedef int charset[2]; |
22e05272 | 4157 | const charset cs = { 0, 0 }; |
79035f0d | 4158 | /* SunOS 4.1.1 cc rejects this. */ |
5213506e RW |
4159 | char const *const *pcpcc; |
4160 | char **ppc; | |
79035f0d NN |
4161 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4162 | struct point {int x, y;}; | |
4163 | static struct point const zero = {0,0}; | |
4164 | /* AIX XL C 1.02.0.0 rejects this. | |
4165 | It does not let you subtract one const X* pointer from another in | |
4166 | an arm of an if-expression whose if-part is not a constant | |
4167 | expression */ | |
4168 | const char *g = "string"; | |
5213506e | 4169 | pcpcc = &g + (g ? g-g : 0); |
79035f0d | 4170 | /* HPUX 7.0 cc rejects these. */ |
5213506e RW |
4171 | ++pcpcc; |
4172 | ppc = (char**) pcpcc; | |
4173 | pcpcc = (char const *const *) ppc; | |
22e05272 JM |
4174 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
4175 | char tx; | |
4176 | char *t = &tx; | |
79035f0d NN |
4177 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
4178 | ||
4179 | *t++ = 0; | |
5213506e | 4180 | if (s) return 0; |
79035f0d NN |
4181 | } |
4182 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4183 | int x[] = {25, 17}; | |
4184 | const int *foo = &x[0]; | |
4185 | ++foo; | |
4186 | } | |
4187 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4188 | typedef const int *iptr; | |
4189 | iptr p = 0; | |
4190 | ++p; | |
4191 | } | |
22e05272 | 4192 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
79035f0d | 4193 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
22e05272 JM |
4194 | struct s { int j; const int *ap[3]; } bx; |
4195 | struct s *b = &bx; b->j = 5; | |
79035f0d NN |
4196 | } |
4197 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4198 | const int foo = 10; | |
5213506e | 4199 | if (!foo) return 0; |
79035f0d | 4200 | } |
5213506e | 4201 | return !cs[0] && !zero.x; |
79035f0d NN |
4202 | #endif |
4203 | ||
4204 | ; | |
4205 | return 0; | |
4206 | } | |
4207 | _ACEOF | |
5213506e | 4208 | if ac_fn_c_try_compile "$LINENO"; then : |
6eb95e99 ZW |
4209 | ac_cv_c_const=yes |
4210 | else | |
5213506e | 4211 | ac_cv_c_const=no |
6eb95e99 | 4212 | fi |
5213506e | 4213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6eb95e99 | 4214 | fi |
5213506e RW |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
4216 | $as_echo "$ac_cv_c_const" >&6; } | |
56694dd9 | 4217 | if test $ac_cv_c_const = no; then |
79035f0d | 4218 | |
5213506e | 4219 | $as_echo "#define const /**/" >>confdefs.h |
6eb95e99 ZW |
4220 | |
4221 | fi | |
4222 | ||
5213506e RW |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4224 | $as_echo_n "checking for inline... " >&6; } | |
22e05272 | 4225 | if ${ac_cv_c_inline+:} false; then : |
5213506e | 4226 | $as_echo_n "(cached) " >&6 |
6eb95e99 ZW |
4227 | else |
4228 | ac_cv_c_inline=no | |
4229 | for ac_kw in inline __inline__ __inline; do | |
5213506e | 4230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4231 | /* end confdefs.h. */ |
4232 | #ifndef __cplusplus | |
4233 | typedef int foo_t; | |
4234 | static $ac_kw foo_t static_foo () {return 0; } | |
4235 | $ac_kw foo_t foo () {return 0; } | |
4236 | #endif | |
4237 | ||
4238 | _ACEOF | |
5213506e RW |
4239 | if ac_fn_c_try_compile "$LINENO"; then : |
4240 | ac_cv_c_inline=$ac_kw | |
6eb95e99 | 4241 | fi |
5213506e RW |
4242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4243 | test "$ac_cv_c_inline" != no && break | |
6eb95e99 ZW |
4244 | done |
4245 | ||
4246 | fi | |
5213506e RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
4248 | $as_echo "$ac_cv_c_inline" >&6; } | |
8ab705be | 4249 | |
79035f0d | 4250 | case $ac_cv_c_inline in |
6eb95e99 | 4251 | inline | yes) ;; |
8ab705be KC |
4252 | *) |
4253 | case $ac_cv_c_inline in | |
4254 | no) ac_val=;; | |
4255 | *) ac_val=$ac_cv_c_inline;; | |
4256 | esac | |
4257 | cat >>confdefs.h <<_ACEOF | |
4258 | #ifndef __cplusplus | |
4259 | #define inline $ac_val | |
4260 | #endif | |
79035f0d | 4261 | _ACEOF |
8ab705be | 4262 | ;; |
6eb95e99 ZW |
4263 | esac |
4264 | ||
5213506e | 4265 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 4266 | if test "x$ac_cv_type_off_t" = xyes; then : |
6eb95e99 | 4267 | |
79035f0d NN |
4268 | else |
4269 | ||
4270 | cat >>confdefs.h <<_ACEOF | |
5213506e | 4271 | #define off_t long int |
79035f0d | 4272 | _ACEOF |
6eb95e99 ZW |
4273 | |
4274 | fi | |
4275 | ||
5213506e | 4276 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
22e05272 | 4277 | if test "x$ac_cv_type_size_t" = xyes; then : |
6eb95e99 | 4278 | |
79035f0d NN |
4279 | else |
4280 | ||
4281 | cat >>confdefs.h <<_ACEOF | |
5213506e | 4282 | #define size_t unsigned int |
79035f0d | 4283 | _ACEOF |
6eb95e99 ZW |
4284 | |
4285 | fi | |
4286 | ||
4287 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4288 | # for constant arguments. Useless! | |
5213506e RW |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
4290 | $as_echo_n "checking for working alloca.h... " >&6; } | |
22e05272 | 4291 | if ${ac_cv_working_alloca_h+:} false; then : |
5213506e | 4292 | $as_echo_n "(cached) " >&6 |
79035f0d | 4293 | else |
5213506e | 4294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4295 | /* end confdefs.h. */ |
6eb95e99 | 4296 | #include <alloca.h> |
79035f0d NN |
4297 | int |
4298 | main () | |
4299 | { | |
4300 | char *p = (char *) alloca (2 * sizeof (int)); | |
5213506e | 4301 | if (p) return 0; |
79035f0d NN |
4302 | ; |
4303 | return 0; | |
4304 | } | |
4305 | _ACEOF | |
5213506e | 4306 | if ac_fn_c_try_link "$LINENO"; then : |
79035f0d NN |
4307 | ac_cv_working_alloca_h=yes |
4308 | else | |
5213506e | 4309 | ac_cv_working_alloca_h=no |
79035f0d | 4310 | fi |
5213506e RW |
4311 | rm -f core conftest.err conftest.$ac_objext \ |
4312 | conftest$ac_exeext conftest.$ac_ext | |
79035f0d | 4313 | fi |
5213506e RW |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
4315 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
79035f0d NN |
4316 | if test $ac_cv_working_alloca_h = yes; then |
4317 | ||
5213506e | 4318 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
6eb95e99 ZW |
4319 | |
4320 | fi | |
4321 | ||
5213506e RW |
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
4323 | $as_echo_n "checking for alloca... " >&6; } | |
22e05272 | 4324 | if ${ac_cv_func_alloca_works+:} false; then : |
5213506e | 4325 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4326 | else |
5213506e | 4327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4328 | /* end confdefs.h. */ |
6eb95e99 ZW |
4329 | #ifdef __GNUC__ |
4330 | # define alloca __builtin_alloca | |
4331 | #else | |
4332 | # ifdef _MSC_VER | |
4333 | # include <malloc.h> | |
4334 | # define alloca _alloca | |
4335 | # else | |
5213506e | 4336 | # ifdef HAVE_ALLOCA_H |
6eb95e99 ZW |
4337 | # include <alloca.h> |
4338 | # else | |
4339 | # ifdef _AIX | |
4340 | #pragma alloca | |
4341 | # else | |
4342 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
22e05272 | 4343 | void *alloca (size_t); |
6eb95e99 ZW |
4344 | # endif |
4345 | # endif | |
4346 | # endif | |
4347 | # endif | |
4348 | #endif | |
4349 | ||
79035f0d NN |
4350 | int |
4351 | main () | |
4352 | { | |
4353 | char *p = (char *) alloca (1); | |
5213506e | 4354 | if (p) return 0; |
79035f0d NN |
4355 | ; |
4356 | return 0; | |
4357 | } | |
4358 | _ACEOF | |
5213506e | 4359 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
4360 | ac_cv_func_alloca_works=yes |
4361 | else | |
5213506e | 4362 | ac_cv_func_alloca_works=no |
6eb95e99 | 4363 | fi |
5213506e RW |
4364 | rm -f core conftest.err conftest.$ac_objext \ |
4365 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 4366 | fi |
5213506e RW |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
4368 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
6eb95e99 ZW |
4369 | |
4370 | if test $ac_cv_func_alloca_works = yes; then | |
6eb95e99 | 4371 | |
5213506e | 4372 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
6eb95e99 | 4373 | |
79035f0d | 4374 | else |
56694dd9 | 4375 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
79035f0d NN |
4376 | # that cause trouble. Some versions do not even contain alloca or |
4377 | # contain a buggy version. If you still want to use their alloca, | |
4378 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4379 | ||
5213506e | 4380 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
79035f0d | 4381 | |
5213506e | 4382 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
6eb95e99 ZW |
4383 | |
4384 | ||
5213506e RW |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
4386 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
22e05272 | 4387 | if ${ac_cv_os_cray+:} false; then : |
5213506e | 4388 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4389 | else |
5213506e | 4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4391 | /* end confdefs.h. */ |
5213506e | 4392 | #if defined CRAY && ! defined CRAY2 |
6eb95e99 ZW |
4393 | webecray |
4394 | #else | |
4395 | wenotbecray | |
4396 | #endif | |
4397 | ||
79035f0d | 4398 | _ACEOF |
6eb95e99 | 4399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5213506e | 4400 | $EGREP "webecray" >/dev/null 2>&1; then : |
6eb95e99 ZW |
4401 | ac_cv_os_cray=yes |
4402 | else | |
4403 | ac_cv_os_cray=no | |
4404 | fi | |
4405 | rm -f conftest* | |
4406 | ||
4407 | fi | |
5213506e RW |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
4409 | $as_echo "$ac_cv_os_cray" >&6; } | |
6eb95e99 | 4410 | if test $ac_cv_os_cray = yes; then |
79035f0d | 4411 | for ac_func in _getb67 GETB67 getb67; do |
5213506e RW |
4412 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4413 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 4414 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
79035f0d NN |
4415 | |
4416 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 4417 | #define CRAY_STACKSEG_END $ac_func |
79035f0d | 4418 | _ACEOF |
6eb95e99 | 4419 | |
79035f0d | 4420 | break |
6eb95e99 ZW |
4421 | fi |
4422 | ||
79035f0d | 4423 | done |
6eb95e99 ZW |
4424 | fi |
4425 | ||
5213506e RW |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
4427 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
22e05272 | 4428 | if ${ac_cv_c_stack_direction+:} false; then : |
5213506e | 4429 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4430 | else |
5213506e | 4431 | if test "$cross_compiling" = yes; then : |
6eb95e99 ZW |
4432 | ac_cv_c_stack_direction=0 |
4433 | else | |
5213506e | 4434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4435 | /* end confdefs.h. */ |
5213506e | 4436 | $ac_includes_default |
79035f0d | 4437 | int |
22e05272 | 4438 | find_stack_direction (int *addr, int depth) |
6eb95e99 | 4439 | { |
22e05272 JM |
4440 | int dir, dummy = 0; |
4441 | if (! addr) | |
4442 | addr = &dummy; | |
4443 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
4444 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
4445 | return dir + dummy; | |
6eb95e99 | 4446 | } |
79035f0d NN |
4447 | |
4448 | int | |
22e05272 | 4449 | main (int argc, char **argv) |
6eb95e99 | 4450 | { |
22e05272 | 4451 | return find_stack_direction (0, argc + !argv + 20) < 0; |
6eb95e99 | 4452 | } |
79035f0d | 4453 | _ACEOF |
5213506e | 4454 | if ac_fn_c_try_run "$LINENO"; then : |
6eb95e99 ZW |
4455 | ac_cv_c_stack_direction=1 |
4456 | else | |
5213506e | 4457 | ac_cv_c_stack_direction=-1 |
6eb95e99 | 4458 | fi |
5213506e RW |
4459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4460 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6eb95e99 | 4461 | fi |
6eb95e99 | 4462 | |
5213506e RW |
4463 | fi |
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
4465 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
79035f0d | 4466 | cat >>confdefs.h <<_ACEOF |
6eb95e99 | 4467 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
79035f0d NN |
4468 | _ACEOF |
4469 | ||
6eb95e99 ZW |
4470 | |
4471 | fi | |
4472 | ||
22e05272 JM |
4473 | |
4474 | ||
4475 | ||
4476 | for ac_header in $ac_header_list | |
5213506e RW |
4477 | do : |
4478 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22e05272 JM |
4479 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4480 | " | |
4481 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5213506e RW |
4482 | cat >>confdefs.h <<_ACEOF |
4483 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
79035f0d | 4484 | _ACEOF |
79035f0d | 4485 | |
79035f0d | 4486 | fi |
79035f0d | 4487 | |
5213506e RW |
4488 | done |
4489 | ||
22e05272 JM |
4490 | |
4491 | ||
4492 | ||
4493 | ||
4494 | ||
4495 | ||
4496 | ||
5213506e RW |
4497 | for ac_func in getpagesize |
4498 | do : | |
4499 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
22e05272 | 4500 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
5213506e RW |
4501 | cat >>confdefs.h <<_ACEOF |
4502 | #define HAVE_GETPAGESIZE 1 | |
79035f0d | 4503 | _ACEOF |
79035f0d | 4504 | |
79035f0d | 4505 | fi |
5213506e | 4506 | done |
79035f0d | 4507 | |
5213506e RW |
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
4509 | $as_echo_n "checking for working mmap... " >&6; } | |
22e05272 | 4510 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
5213506e | 4511 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4512 | else |
5213506e | 4513 | if test "$cross_compiling" = yes; then : |
6eb95e99 ZW |
4514 | ac_cv_func_mmap_fixed_mapped=no |
4515 | else | |
5213506e | 4516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4517 | /* end confdefs.h. */ |
4518 | $ac_includes_default | |
4519 | /* malloc might have been renamed as rpl_malloc. */ | |
4520 | #undef malloc | |
6eb95e99 ZW |
4521 | |
4522 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4523 | Here is a matrix of mmap possibilities: | |
4524 | mmap private not fixed | |
4525 | mmap private fixed at somewhere currently unmapped | |
4526 | mmap private fixed at somewhere already mapped | |
4527 | mmap shared not fixed | |
4528 | mmap shared fixed at somewhere currently unmapped | |
4529 | mmap shared fixed at somewhere already mapped | |
4530 | For private mappings, we should verify that changes cannot be read() | |
4531 | back from the file, nor mmap's back from the file at a different | |
4532 | address. (There have been systems where private was not correctly | |
4533 | implemented like the infamous i386 svr4.0, and systems where the | |
79035f0d | 4534 | VM page cache was not coherent with the file system buffer cache |
6eb95e99 ZW |
4535 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
4536 | For shared mappings, we should conversely verify that changes get | |
79035f0d | 4537 | propagated back to all the places they're supposed to be. |
6eb95e99 ZW |
4538 | |
4539 | Grep wants private fixed already mapped. | |
4540 | The main things grep needs to know about mmap are: | |
4541 | * does it exist and is it safe to write into the mmap'd area | |
4542 | * how to use it (BSD variants) */ | |
79035f0d | 4543 | |
6eb95e99 ZW |
4544 | #include <fcntl.h> |
4545 | #include <sys/mman.h> | |
4546 | ||
5213506e | 4547 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
79035f0d NN |
4548 | char *malloc (); |
4549 | #endif | |
56694dd9 | 4550 | |
79035f0d | 4551 | /* This mess was copied from the GNU getpagesize.h. */ |
5213506e | 4552 | #ifndef HAVE_GETPAGESIZE |
6eb95e99 ZW |
4553 | # ifdef _SC_PAGESIZE |
4554 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4555 | # else /* no _SC_PAGESIZE */ | |
5213506e | 4556 | # ifdef HAVE_SYS_PARAM_H |
6eb95e99 ZW |
4557 | # include <sys/param.h> |
4558 | # ifdef EXEC_PAGESIZE | |
4559 | # define getpagesize() EXEC_PAGESIZE | |
4560 | # else /* no EXEC_PAGESIZE */ | |
4561 | # ifdef NBPG | |
4562 | # define getpagesize() NBPG * CLSIZE | |
4563 | # ifndef CLSIZE | |
4564 | # define CLSIZE 1 | |
4565 | # endif /* no CLSIZE */ | |
4566 | # else /* no NBPG */ | |
4567 | # ifdef NBPC | |
4568 | # define getpagesize() NBPC | |
4569 | # else /* no NBPC */ | |
4570 | # ifdef PAGESIZE | |
4571 | # define getpagesize() PAGESIZE | |
4572 | # endif /* PAGESIZE */ | |
4573 | # endif /* no NBPC */ | |
4574 | # endif /* no NBPG */ | |
4575 | # endif /* no EXEC_PAGESIZE */ | |
4576 | # else /* no HAVE_SYS_PARAM_H */ | |
4577 | # define getpagesize() 8192 /* punt totally */ | |
4578 | # endif /* no HAVE_SYS_PARAM_H */ | |
4579 | # endif /* no _SC_PAGESIZE */ | |
4580 | ||
4581 | #endif /* no HAVE_GETPAGESIZE */ | |
4582 | ||
4583 | int | |
79035f0d | 4584 | main () |
6eb95e99 | 4585 | { |
79035f0d | 4586 | char *data, *data2, *data3; |
22e05272 | 4587 | const char *cdata2; |
79035f0d | 4588 | int i, pagesize; |
22e05272 | 4589 | int fd, fd2; |
79035f0d NN |
4590 | |
4591 | pagesize = getpagesize (); | |
4592 | ||
4593 | /* First, make a file with some known garbage in it. */ | |
4594 | data = (char *) malloc (pagesize); | |
4595 | if (!data) | |
5213506e | 4596 | return 1; |
79035f0d NN |
4597 | for (i = 0; i < pagesize; ++i) |
4598 | *(data + i) = rand (); | |
4599 | umask (0); | |
4600 | fd = creat ("conftest.mmap", 0600); | |
4601 | if (fd < 0) | |
22e05272 | 4602 | return 2; |
79035f0d | 4603 | if (write (fd, data, pagesize) != pagesize) |
22e05272 | 4604 | return 3; |
79035f0d NN |
4605 | close (fd); |
4606 | ||
22e05272 JM |
4607 | /* Next, check that the tail of a page is zero-filled. File must have |
4608 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
4609 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
4610 | if (fd2 < 0) | |
4611 | return 4; | |
4612 | cdata2 = ""; | |
4613 | if (write (fd2, cdata2, 1) != 1) | |
4614 | return 5; | |
4615 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
4616 | if (data2 == MAP_FAILED) | |
4617 | return 6; | |
4618 | for (i = 0; i < pagesize; ++i) | |
4619 | if (*(data2 + i)) | |
4620 | return 7; | |
4621 | close (fd2); | |
4622 | if (munmap (data2, pagesize)) | |
4623 | return 8; | |
4624 | ||
79035f0d NN |
4625 | /* Next, try to mmap the file at a fixed address which already has |
4626 | something else allocated at it. If we can, also make sure that | |
4627 | we see the same garbage. */ | |
4628 | fd = open ("conftest.mmap", O_RDWR); | |
4629 | if (fd < 0) | |
22e05272 | 4630 | return 9; |
79035f0d | 4631 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8ab705be | 4632 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
22e05272 | 4633 | return 10; |
79035f0d NN |
4634 | for (i = 0; i < pagesize; ++i) |
4635 | if (*(data + i) != *(data2 + i)) | |
22e05272 | 4636 | return 11; |
79035f0d NN |
4637 | |
4638 | /* Finally, make sure that changes to the mapped area do not | |
4639 | percolate back to the file as seen by read(). (This is a bug on | |
4640 | some variants of i386 svr4.0.) */ | |
4641 | for (i = 0; i < pagesize; ++i) | |
4642 | *(data2 + i) = *(data2 + i) + 1; | |
4643 | data3 = (char *) malloc (pagesize); | |
4644 | if (!data3) | |
22e05272 | 4645 | return 12; |
79035f0d | 4646 | if (read (fd, data3, pagesize) != pagesize) |
22e05272 | 4647 | return 13; |
79035f0d NN |
4648 | for (i = 0; i < pagesize; ++i) |
4649 | if (*(data + i) != *(data3 + i)) | |
22e05272 | 4650 | return 14; |
79035f0d | 4651 | close (fd); |
5213506e | 4652 | return 0; |
6eb95e99 | 4653 | } |
79035f0d | 4654 | _ACEOF |
5213506e | 4655 | if ac_fn_c_try_run "$LINENO"; then : |
6eb95e99 ZW |
4656 | ac_cv_func_mmap_fixed_mapped=yes |
4657 | else | |
5213506e | 4658 | ac_cv_func_mmap_fixed_mapped=no |
6eb95e99 | 4659 | fi |
5213506e RW |
4660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4661 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6eb95e99 | 4662 | fi |
5213506e | 4663 | |
6eb95e99 | 4664 | fi |
5213506e RW |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
4666 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
56694dd9 | 4667 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
79035f0d | 4668 | |
5213506e | 4669 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
6eb95e99 ZW |
4670 | |
4671 | fi | |
22e05272 | 4672 | rm -f conftest.mmap conftest.txt |
6eb95e99 ZW |
4673 | |
4674 | ||
5213506e RW |
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
4676 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
22e05272 | 4677 | if ${ac_cv_gnu_library_2_1+:} false; then : |
5213506e | 4678 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4679 | else |
5213506e | 4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4681 | /* end confdefs.h. */ |
6eb95e99 ZW |
4682 | |
4683 | #include <features.h> | |
4684 | #ifdef __GNU_LIBRARY__ | |
4685 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
4686 | Lucky GNU user | |
4687 | #endif | |
4688 | #endif | |
79035f0d NN |
4689 | |
4690 | _ACEOF | |
6eb95e99 | 4691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5213506e | 4692 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
6eb95e99 ZW |
4693 | ac_cv_gnu_library_2_1=yes |
4694 | else | |
4695 | ac_cv_gnu_library_2_1=no | |
4696 | fi | |
4697 | rm -f conftest* | |
4698 | ||
79035f0d NN |
4699 | |
4700 | ||
6eb95e99 | 4701 | fi |
5213506e RW |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
4703 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
6eb95e99 ZW |
4704 | |
4705 | GLIBC21="$ac_cv_gnu_library_2_1" | |
4706 | ||
4707 | ||
79035f0d NN |
4708 | |
4709 | ||
5213506e RW |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
4711 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
22e05272 | 4712 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
5213506e | 4713 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4714 | else |
79035f0d | 4715 | |
5213506e | 4716 | if test "$cross_compiling" = yes; then : |
79035f0d | 4717 | |
6eb95e99 ZW |
4718 | # Guess based on the CPU. |
4719 | case "$host_cpu" in | |
4720 | alpha* | i3456786 | m68k | s390*) | |
4721 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
4722 | *) | |
4723 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
4724 | esac | |
79035f0d | 4725 | |
6eb95e99 | 4726 | else |
5213506e | 4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4728 | /* end confdefs.h. */ |
6eb95e99 ZW |
4729 | |
4730 | #include <stdlib.h> | |
4731 | #include <signal.h> | |
4732 | ||
4733 | static void | |
4734 | #ifdef __cplusplus | |
4735 | sigfpe_handler (int sig) | |
4736 | #else | |
4737 | sigfpe_handler (sig) int sig; | |
4738 | #endif | |
4739 | { | |
4740 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
4741 | exit (sig != SIGFPE); | |
4742 | } | |
4743 | ||
4744 | int x = 1; | |
4745 | int y = 0; | |
4746 | int z; | |
4747 | int nan; | |
4748 | ||
4749 | int main () | |
4750 | { | |
4751 | signal (SIGFPE, sigfpe_handler); | |
4752 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
4753 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
4754 | signal (SIGTRAP, sigfpe_handler); | |
4755 | #endif | |
4756 | /* Linux/SPARC yields signal SIGILL. */ | |
4757 | #if defined (__sparc__) && defined (__linux__) | |
4758 | signal (SIGILL, sigfpe_handler); | |
4759 | #endif | |
4760 | ||
4761 | z = x / y; | |
4762 | nan = y / y; | |
4763 | exit (1); | |
4764 | } | |
4765 | ||
79035f0d | 4766 | _ACEOF |
5213506e | 4767 | if ac_fn_c_try_run "$LINENO"; then : |
6eb95e99 ZW |
4768 | gt_cv_int_divbyzero_sigfpe=yes |
4769 | else | |
5213506e | 4770 | gt_cv_int_divbyzero_sigfpe=no |
6eb95e99 | 4771 | fi |
5213506e RW |
4772 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4773 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6eb95e99 ZW |
4774 | fi |
4775 | ||
5213506e | 4776 | |
6eb95e99 | 4777 | fi |
5213506e RW |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
4779 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
6eb95e99 ZW |
4780 | case "$gt_cv_int_divbyzero_sigfpe" in |
4781 | *yes) value=1;; | |
4782 | *) value=0;; | |
4783 | esac | |
79035f0d NN |
4784 | |
4785 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 4786 | #define INTDIV0_RAISES_SIGFPE $value |
79035f0d NN |
4787 | _ACEOF |
4788 | ||
4789 | ||
4790 | ||
5213506e RW |
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
4792 | $as_echo_n "checking for inttypes.h... " >&6; } | |
22e05272 | 4793 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
5213506e | 4794 | $as_echo_n "(cached) " >&6 |
79035f0d | 4795 | else |
5213506e | 4796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4797 | /* end confdefs.h. */ |
4798 | #include <sys/types.h> | |
4799 | #include <inttypes.h> | |
4800 | int | |
4801 | main () | |
4802 | { | |
4803 | uintmax_t i = (uintmax_t) -1; | |
4804 | ; | |
4805 | return 0; | |
4806 | } | |
4807 | _ACEOF | |
5213506e | 4808 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
4809 | jm_ac_cv_header_inttypes_h=yes |
4810 | else | |
5213506e | 4811 | jm_ac_cv_header_inttypes_h=no |
79035f0d | 4812 | fi |
5213506e | 4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d | 4814 | fi |
5213506e RW |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
4816 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
79035f0d NN |
4817 | if test $jm_ac_cv_header_inttypes_h = yes; then |
4818 | ||
4819 | cat >>confdefs.h <<_ACEOF | |
4820 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
4821 | _ACEOF | |
4822 | ||
4823 | fi | |
4824 | ||
4825 | ||
5213506e RW |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
4827 | $as_echo_n "checking for stdint.h... " >&6; } | |
22e05272 | 4828 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
5213506e | 4829 | $as_echo_n "(cached) " >&6 |
79035f0d | 4830 | else |
5213506e | 4831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4832 | /* end confdefs.h. */ |
4833 | #include <sys/types.h> | |
4834 | #include <stdint.h> | |
4835 | int | |
4836 | main () | |
4837 | { | |
4838 | uintmax_t i = (uintmax_t) -1; | |
4839 | ; | |
4840 | return 0; | |
4841 | } | |
4842 | _ACEOF | |
5213506e | 4843 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
4844 | jm_ac_cv_header_stdint_h=yes |
4845 | else | |
5213506e | 4846 | jm_ac_cv_header_stdint_h=no |
79035f0d | 4847 | fi |
5213506e | 4848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d | 4849 | fi |
5213506e RW |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
4851 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
79035f0d NN |
4852 | if test $jm_ac_cv_header_stdint_h = yes; then |
4853 | ||
4854 | cat >>confdefs.h <<_ACEOF | |
4855 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
4856 | _ACEOF | |
4857 | ||
4858 | fi | |
4859 | ||
4860 | ||
5213506e RW |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
4862 | $as_echo_n "checking for unsigned long long... " >&6; } | |
22e05272 | 4863 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
5213506e | 4864 | $as_echo_n "(cached) " >&6 |
79035f0d | 4865 | else |
5213506e | 4866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4867 | /* end confdefs.h. */ |
4868 | unsigned long long ull = 1; int i = 63; | |
4869 | int | |
4870 | main () | |
4871 | { | |
4872 | unsigned long long ullmax = (unsigned long long) -1; | |
4873 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
5213506e | 4878 | if ac_fn_c_try_link "$LINENO"; then : |
79035f0d NN |
4879 | ac_cv_type_unsigned_long_long=yes |
4880 | else | |
5213506e | 4881 | ac_cv_type_unsigned_long_long=no |
79035f0d | 4882 | fi |
5213506e RW |
4883 | rm -f core conftest.err conftest.$ac_objext \ |
4884 | conftest$ac_exeext conftest.$ac_ext | |
79035f0d | 4885 | fi |
5213506e RW |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
4887 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
79035f0d NN |
4888 | if test $ac_cv_type_unsigned_long_long = yes; then |
4889 | ||
5213506e | 4890 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
79035f0d NN |
4891 | |
4892 | fi | |
4893 | ||
6eb95e99 ZW |
4894 | |
4895 | ||
4896 | ||
4897 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
79035f0d | 4898 | |
6eb95e99 ZW |
4899 | test $ac_cv_type_unsigned_long_long = yes \ |
4900 | && ac_type='unsigned long long' \ | |
4901 | || ac_type='unsigned long' | |
79035f0d NN |
4902 | |
4903 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 4904 | #define uintmax_t $ac_type |
79035f0d | 4905 | _ACEOF |
6eb95e99 ZW |
4906 | |
4907 | else | |
79035f0d | 4908 | |
5213506e | 4909 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
6eb95e99 | 4910 | |
6eb95e99 | 4911 | fi |
6eb95e99 | 4912 | |
6eb95e99 | 4913 | |
5213506e RW |
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
4915 | $as_echo_n "checking for inttypes.h... " >&6; } | |
22e05272 | 4916 | if ${gt_cv_header_inttypes_h+:} false; then : |
5213506e | 4917 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4918 | else |
79035f0d | 4919 | |
5213506e | 4920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4921 | /* end confdefs.h. */ |
56694dd9 ZW |
4922 | #include <sys/types.h> |
4923 | #include <inttypes.h> | |
79035f0d NN |
4924 | int |
4925 | main () | |
4926 | { | |
56694dd9 | 4927 | |
79035f0d NN |
4928 | ; |
4929 | return 0; | |
4930 | } | |
4931 | _ACEOF | |
5213506e | 4932 | if ac_fn_c_try_compile "$LINENO"; then : |
56694dd9 ZW |
4933 | gt_cv_header_inttypes_h=yes |
4934 | else | |
5213506e | 4935 | gt_cv_header_inttypes_h=no |
6eb95e99 | 4936 | fi |
5213506e | 4937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6eb95e99 | 4938 | |
79035f0d | 4939 | fi |
5213506e RW |
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
4941 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
56694dd9 | 4942 | if test $gt_cv_header_inttypes_h = yes; then |
79035f0d NN |
4943 | |
4944 | cat >>confdefs.h <<_ACEOF | |
56694dd9 | 4945 | #define HAVE_INTTYPES_H 1 |
79035f0d | 4946 | _ACEOF |
6eb95e99 | 4947 | |
56694dd9 | 4948 | fi |
6eb95e99 | 4949 | |
6eb95e99 | 4950 | |
79035f0d | 4951 | |
56694dd9 | 4952 | if test $gt_cv_header_inttypes_h = yes; then |
5213506e RW |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
4954 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
22e05272 | 4955 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
5213506e | 4956 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
4957 | else |
4958 | ||
5213506e | 4959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4960 | /* end confdefs.h. */ |
56694dd9 ZW |
4961 | #include <inttypes.h> |
4962 | #ifdef PRId32 | |
4963 | char *p = PRId32; | |
4964 | #endif | |
6eb95e99 | 4965 | |
79035f0d NN |
4966 | int |
4967 | main () | |
4968 | { | |
4969 | ||
4970 | ; | |
4971 | return 0; | |
4972 | } | |
4973 | _ACEOF | |
5213506e | 4974 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
4975 | gt_cv_inttypes_pri_broken=no |
4976 | else | |
5213506e | 4977 | gt_cv_inttypes_pri_broken=yes |
79035f0d | 4978 | fi |
5213506e | 4979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d NN |
4980 | |
4981 | fi | |
5213506e RW |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
4983 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
79035f0d NN |
4984 | fi |
4985 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
4986 | ||
4987 | cat >>confdefs.h <<_ACEOF | |
4988 | #define PRI_MACROS_BROKEN 1 | |
4989 | _ACEOF | |
4990 | ||
4991 | fi | |
4992 | ||
4993 | ||
84c1b9d3 MK |
4994 | if test "X$prefix" = "XNONE"; then |
4995 | acl_final_prefix="$ac_default_prefix" | |
4996 | else | |
4997 | acl_final_prefix="$prefix" | |
4998 | fi | |
4999 | if test "X$exec_prefix" = "XNONE"; then | |
5000 | acl_final_exec_prefix='${prefix}' | |
5001 | else | |
5002 | acl_final_exec_prefix="$exec_prefix" | |
5003 | fi | |
5004 | acl_save_prefix="$prefix" | |
5005 | prefix="$acl_final_prefix" | |
5006 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5007 | prefix="$acl_save_prefix" | |
5008 | ||
5009 | ||
5010 | # Check whether --with-gnu-ld was given. | |
5011 | if test "${with_gnu_ld+set}" = set; then : | |
5012 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5013 | else | |
5014 | with_gnu_ld=no | |
5015 | fi | |
5016 | ||
5017 | # Prepare PATH_SEPARATOR. | |
5018 | # The user is always right. | |
5019 | if test "${PATH_SEPARATOR+set}" != set; then | |
5020 | echo "#! /bin/sh" >conf$$.sh | |
5021 | echo "exit 0" >>conf$$.sh | |
5022 | chmod +x conf$$.sh | |
5023 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5024 | PATH_SEPARATOR=';' | |
5025 | else | |
5026 | PATH_SEPARATOR=: | |
5027 | fi | |
5028 | rm -f conf$$.sh | |
5029 | fi | |
5030 | ac_prog=ld | |
5031 | if test "$GCC" = yes; then | |
5032 | # Check if gcc -print-prog-name=ld gives a path. | |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
5034 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
5035 | case $host in | |
5036 | *-*-mingw*) | |
5037 | # gcc leaves a trailing carriage return which upsets mingw | |
5038 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5039 | *) | |
5040 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5041 | esac | |
5042 | case $ac_prog in | |
5043 | # Accept absolute paths. | |
5044 | [\\/]* | [A-Za-z]:[\\/]*) | |
5045 | re_direlt='/[^/][^/]*/\.\./' | |
5046 | # Canonicalize the path of ld | |
5047 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5048 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5049 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5050 | done | |
5051 | test -z "$LD" && LD="$ac_prog" | |
5052 | ;; | |
5053 | "") | |
5054 | # If it fails, then pretend we aren't using GCC. | |
5055 | ac_prog=ld | |
5056 | ;; | |
5057 | *) | |
5058 | # If it is relative, then search for the first ld in PATH. | |
5059 | with_gnu_ld=unknown | |
5060 | ;; | |
5061 | esac | |
5062 | elif test "$with_gnu_ld" = yes; then | |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5064 | $as_echo_n "checking for GNU ld... " >&6; } | |
5065 | else | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5067 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5068 | fi | |
22e05272 | 5069 | if ${acl_cv_path_LD+:} false; then : |
84c1b9d3 MK |
5070 | $as_echo_n "(cached) " >&6 |
5071 | else | |
5072 | if test -z "$LD"; then | |
5073 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5074 | for ac_dir in $PATH; do | |
5075 | test -z "$ac_dir" && ac_dir=. | |
5076 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5077 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5078 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5079 | # but apparently some GNU ld's only accept -v. | |
5080 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5081 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5082 | test "$with_gnu_ld" != no && break | |
5083 | else | |
5084 | test "$with_gnu_ld" != yes && break | |
5085 | fi | |
5086 | fi | |
5087 | done | |
5088 | IFS="$ac_save_ifs" | |
5089 | else | |
5090 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5091 | fi | |
5092 | fi | |
5093 | ||
5094 | LD="$acl_cv_path_LD" | |
5095 | if test -n "$LD"; then | |
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5097 | $as_echo "$LD" >&6; } | |
5098 | else | |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5100 | $as_echo "no" >&6; } | |
5101 | fi | |
22e05272 | 5102 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
84c1b9d3 MK |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5104 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5105 | if ${acl_cv_prog_gnu_ld+:} false; then : |
84c1b9d3 MK |
5106 | $as_echo_n "(cached) " >&6 |
5107 | else | |
5108 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5109 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5110 | acl_cv_prog_gnu_ld=yes | |
5111 | else | |
5112 | acl_cv_prog_gnu_ld=no | |
5113 | fi | |
5114 | fi | |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
5116 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
5117 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5118 | ||
5119 | ||
5120 | ||
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
5122 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
22e05272 | 5123 | if ${acl_cv_rpath+:} false; then : |
84c1b9d3 MK |
5124 | $as_echo_n "(cached) " >&6 |
5125 | else | |
5126 | ||
5127 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5128 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5129 | . ./conftest.sh | |
5130 | rm -f ./conftest.sh | |
5131 | acl_cv_rpath=done | |
5132 | ||
5133 | fi | |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
5135 | $as_echo "$acl_cv_rpath" >&6; } | |
5136 | wl="$acl_cv_wl" | |
5137 | libext="$acl_cv_libext" | |
5138 | shlibext="$acl_cv_shlibext" | |
5139 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5140 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5141 | hardcode_direct="$acl_cv_hardcode_direct" | |
5142 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5143 | # Check whether --enable-rpath was given. | |
5144 | if test "${enable_rpath+set}" = set; then : | |
5145 | enableval=$enable_rpath; : | |
5146 | else | |
5147 | enable_rpath=yes | |
5148 | fi | |
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
5157 | use_additional=yes | |
5158 | ||
5159 | acl_save_prefix="$prefix" | |
5160 | prefix="$acl_final_prefix" | |
5161 | acl_save_exec_prefix="$exec_prefix" | |
5162 | exec_prefix="$acl_final_exec_prefix" | |
5163 | ||
5164 | eval additional_includedir=\"$includedir\" | |
5165 | eval additional_libdir=\"$libdir\" | |
5166 | ||
5167 | exec_prefix="$acl_save_exec_prefix" | |
5168 | prefix="$acl_save_prefix" | |
5169 | ||
5170 | ||
5171 | # Check whether --with-libiconv-prefix was given. | |
5172 | if test "${with_libiconv_prefix+set}" = set; then : | |
5173 | withval=$with_libiconv_prefix; | |
5174 | if test "X$withval" = "Xno"; then | |
5175 | use_additional=no | |
5176 | else | |
5177 | if test "X$withval" = "X"; then | |
5178 | ||
5179 | acl_save_prefix="$prefix" | |
5180 | prefix="$acl_final_prefix" | |
5181 | acl_save_exec_prefix="$exec_prefix" | |
5182 | exec_prefix="$acl_final_exec_prefix" | |
5183 | ||
5184 | eval additional_includedir=\"$includedir\" | |
5185 | eval additional_libdir=\"$libdir\" | |
5186 | ||
5187 | exec_prefix="$acl_save_exec_prefix" | |
5188 | prefix="$acl_save_prefix" | |
5189 | ||
5190 | else | |
5191 | additional_includedir="$withval/include" | |
5192 | additional_libdir="$withval/lib" | |
5193 | fi | |
5194 | fi | |
5195 | ||
5196 | fi | |
5197 | ||
5198 | LIBICONV= | |
5199 | LTLIBICONV= | |
5200 | INCICONV= | |
5201 | rpathdirs= | |
5202 | ltrpathdirs= | |
5203 | names_already_handled= | |
5204 | names_next_round='iconv ' | |
5205 | while test -n "$names_next_round"; do | |
5206 | names_this_round="$names_next_round" | |
5207 | names_next_round= | |
5208 | for name in $names_this_round; do | |
5209 | already_handled= | |
5210 | for n in $names_already_handled; do | |
5211 | if test "$n" = "$name"; then | |
5212 | already_handled=yes | |
5213 | break | |
5214 | fi | |
5215 | done | |
5216 | if test -z "$already_handled"; then | |
5217 | names_already_handled="$names_already_handled $name" | |
5218 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
5219 | eval value=\"\$HAVE_LIB$uppername\" | |
5220 | if test -n "$value"; then | |
5221 | if test "$value" = yes; then | |
5222 | eval value=\"\$LIB$uppername\" | |
5223 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
5224 | eval value=\"\$LTLIB$uppername\" | |
5225 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
5226 | else | |
5227 | : | |
5228 | fi | |
5229 | else | |
5230 | found_dir= | |
5231 | found_la= | |
5232 | found_so= | |
5233 | found_a= | |
5234 | if test $use_additional = yes; then | |
5235 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
5236 | found_dir="$additional_libdir" | |
5237 | found_so="$additional_libdir/lib$name.$shlibext" | |
5238 | if test -f "$additional_libdir/lib$name.la"; then | |
5239 | found_la="$additional_libdir/lib$name.la" | |
5240 | fi | |
5241 | else | |
5242 | if test -f "$additional_libdir/lib$name.$libext"; then | |
5243 | found_dir="$additional_libdir" | |
5244 | found_a="$additional_libdir/lib$name.$libext" | |
5245 | if test -f "$additional_libdir/lib$name.la"; then | |
5246 | found_la="$additional_libdir/lib$name.la" | |
5247 | fi | |
5248 | fi | |
5249 | fi | |
5250 | fi | |
5251 | if test "X$found_dir" = "X"; then | |
5252 | for x in $LDFLAGS $LTLIBICONV; do | |
5253 | ||
5254 | acl_save_prefix="$prefix" | |
5255 | prefix="$acl_final_prefix" | |
5256 | acl_save_exec_prefix="$exec_prefix" | |
5257 | exec_prefix="$acl_final_exec_prefix" | |
5258 | eval x=\"$x\" | |
5259 | exec_prefix="$acl_save_exec_prefix" | |
5260 | prefix="$acl_save_prefix" | |
5261 | ||
5262 | case "$x" in | |
5263 | -L*) | |
5264 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
5265 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
5266 | found_dir="$dir" | |
5267 | found_so="$dir/lib$name.$shlibext" | |
5268 | if test -f "$dir/lib$name.la"; then | |
5269 | found_la="$dir/lib$name.la" | |
5270 | fi | |
5271 | else | |
5272 | if test -f "$dir/lib$name.$libext"; then | |
5273 | found_dir="$dir" | |
5274 | found_a="$dir/lib$name.$libext" | |
5275 | if test -f "$dir/lib$name.la"; then | |
5276 | found_la="$dir/lib$name.la" | |
5277 | fi | |
5278 | fi | |
5279 | fi | |
5280 | ;; | |
5281 | esac | |
5282 | if test "X$found_dir" != "X"; then | |
5283 | break | |
5284 | fi | |
5285 | done | |
5286 | fi | |
5287 | if test "X$found_dir" != "X"; then | |
5288 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
5289 | if test "X$found_so" != "X"; then | |
5290 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
5291 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5292 | else | |
5293 | haveit= | |
5294 | for x in $ltrpathdirs; do | |
5295 | if test "X$x" = "X$found_dir"; then | |
5296 | haveit=yes | |
5297 | break | |
5298 | fi | |
5299 | done | |
5300 | if test -z "$haveit"; then | |
5301 | ltrpathdirs="$ltrpathdirs $found_dir" | |
5302 | fi | |
5303 | if test "$hardcode_direct" = yes; then | |
5304 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5305 | else | |
5306 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
5307 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5308 | haveit= | |
5309 | for x in $rpathdirs; do | |
5310 | if test "X$x" = "X$found_dir"; then | |
5311 | haveit=yes | |
5312 | break | |
5313 | fi | |
5314 | done | |
5315 | if test -z "$haveit"; then | |
5316 | rpathdirs="$rpathdirs $found_dir" | |
5317 | fi | |
5318 | else | |
5319 | haveit= | |
5320 | for x in $LDFLAGS $LIBICONV; do | |
5321 | ||
5322 | acl_save_prefix="$prefix" | |
5323 | prefix="$acl_final_prefix" | |
5324 | acl_save_exec_prefix="$exec_prefix" | |
5325 | exec_prefix="$acl_final_exec_prefix" | |
5326 | eval x=\"$x\" | |
5327 | exec_prefix="$acl_save_exec_prefix" | |
5328 | prefix="$acl_save_prefix" | |
5329 | ||
5330 | if test "X$x" = "X-L$found_dir"; then | |
5331 | haveit=yes | |
5332 | break | |
5333 | fi | |
5334 | done | |
5335 | if test -z "$haveit"; then | |
5336 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
5337 | fi | |
5338 | if test "$hardcode_minus_L" != no; then | |
5339 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5340 | else | |
5341 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
5342 | fi | |
5343 | fi | |
5344 | fi | |
5345 | fi | |
5346 | else | |
5347 | if test "X$found_a" != "X"; then | |
5348 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
5349 | else | |
5350 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
5351 | fi | |
5352 | fi | |
5353 | additional_includedir= | |
5354 | case "$found_dir" in | |
5355 | */lib | */lib/) | |
5356 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
5357 | additional_includedir="$basedir/include" | |
5358 | ;; | |
5359 | esac | |
5360 | if test "X$additional_includedir" != "X"; then | |
5361 | if test "X$additional_includedir" != "X/usr/include"; then | |
5362 | haveit= | |
5363 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
5364 | if test -n "$GCC"; then | |
5365 | case $host_os in | |
5366 | linux*) haveit=yes;; | |
5367 | esac | |
5368 | fi | |
5369 | fi | |
5370 | if test -z "$haveit"; then | |
5371 | for x in $CPPFLAGS $INCICONV; do | |
5372 | ||
5373 | acl_save_prefix="$prefix" | |
5374 | prefix="$acl_final_prefix" | |
5375 | acl_save_exec_prefix="$exec_prefix" | |
5376 | exec_prefix="$acl_final_exec_prefix" | |
5377 | eval x=\"$x\" | |
5378 | exec_prefix="$acl_save_exec_prefix" | |
5379 | prefix="$acl_save_prefix" | |
5380 | ||
5381 | if test "X$x" = "X-I$additional_includedir"; then | |
5382 | haveit=yes | |
5383 | break | |
5384 | fi | |
5385 | done | |
5386 | if test -z "$haveit"; then | |
5387 | if test -d "$additional_includedir"; then | |
5388 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
5389 | fi | |
5390 | fi | |
5391 | fi | |
5392 | fi | |
5393 | fi | |
5394 | if test -n "$found_la"; then | |
5395 | save_libdir="$libdir" | |
5396 | case "$found_la" in | |
5397 | */* | *\\*) . "$found_la" ;; | |
5398 | *) . "./$found_la" ;; | |
5399 | esac | |
5400 | libdir="$save_libdir" | |
5401 | for dep in $dependency_libs; do | |
5402 | case "$dep" in | |
5403 | -L*) | |
5404 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
5405 | if test "X$additional_libdir" != "X/usr/lib"; then | |
5406 | haveit= | |
5407 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
5408 | if test -n "$GCC"; then | |
5409 | case $host_os in | |
5410 | linux*) haveit=yes;; | |
5411 | esac | |
5412 | fi | |
5413 | fi | |
5414 | if test -z "$haveit"; then | |
5415 | haveit= | |
5416 | for x in $LDFLAGS $LIBICONV; do | |
5417 | ||
5418 | acl_save_prefix="$prefix" | |
5419 | prefix="$acl_final_prefix" | |
5420 | acl_save_exec_prefix="$exec_prefix" | |
5421 | exec_prefix="$acl_final_exec_prefix" | |
5422 | eval x=\"$x\" | |
5423 | exec_prefix="$acl_save_exec_prefix" | |
5424 | prefix="$acl_save_prefix" | |
5425 | ||
5426 | if test "X$x" = "X-L$additional_libdir"; then | |
5427 | haveit=yes | |
5428 | break | |
5429 | fi | |
5430 | done | |
5431 | if test -z "$haveit"; then | |
5432 | if test -d "$additional_libdir"; then | |
5433 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
5434 | fi | |
5435 | fi | |
5436 | haveit= | |
5437 | for x in $LDFLAGS $LTLIBICONV; do | |
5438 | ||
5439 | acl_save_prefix="$prefix" | |
5440 | prefix="$acl_final_prefix" | |
5441 | acl_save_exec_prefix="$exec_prefix" | |
5442 | exec_prefix="$acl_final_exec_prefix" | |
5443 | eval x=\"$x\" | |
5444 | exec_prefix="$acl_save_exec_prefix" | |
5445 | prefix="$acl_save_prefix" | |
5446 | ||
5447 | if test "X$x" = "X-L$additional_libdir"; then | |
5448 | haveit=yes | |
5449 | break | |
5450 | fi | |
5451 | done | |
5452 | if test -z "$haveit"; then | |
5453 | if test -d "$additional_libdir"; then | |
5454 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
5455 | fi | |
5456 | fi | |
5457 | fi | |
5458 | fi | |
5459 | ;; | |
5460 | -R*) | |
5461 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
5462 | if test "$enable_rpath" != no; then | |
5463 | haveit= | |
5464 | for x in $rpathdirs; do | |
5465 | if test "X$x" = "X$dir"; then | |
5466 | haveit=yes | |
5467 | break | |
5468 | fi | |
5469 | done | |
5470 | if test -z "$haveit"; then | |
5471 | rpathdirs="$rpathdirs $dir" | |
5472 | fi | |
5473 | haveit= | |
5474 | for x in $ltrpathdirs; do | |
5475 | if test "X$x" = "X$dir"; then | |
5476 | haveit=yes | |
5477 | break | |
5478 | fi | |
5479 | done | |
5480 | if test -z "$haveit"; then | |
5481 | ltrpathdirs="$ltrpathdirs $dir" | |
5482 | fi | |
5483 | fi | |
5484 | ;; | |
5485 | -l*) | |
5486 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
5487 | ;; | |
5488 | *.la) | |
5489 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
5490 | ;; | |
5491 | *) | |
5492 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
5493 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
5494 | ;; | |
5495 | esac | |
5496 | done | |
5497 | fi | |
5498 | else | |
5499 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
5500 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
5501 | fi | |
5502 | fi | |
5503 | fi | |
5504 | done | |
5505 | done | |
5506 | if test "X$rpathdirs" != "X"; then | |
5507 | if test -n "$hardcode_libdir_separator"; then | |
5508 | alldirs= | |
5509 | for found_dir in $rpathdirs; do | |
5510 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
5511 | done | |
5512 | acl_save_libdir="$libdir" | |
5513 | libdir="$alldirs" | |
5514 | eval flag=\"$hardcode_libdir_flag_spec\" | |
5515 | libdir="$acl_save_libdir" | |
5516 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
5517 | else | |
5518 | for found_dir in $rpathdirs; do | |
5519 | acl_save_libdir="$libdir" | |
5520 | libdir="$found_dir" | |
5521 | eval flag=\"$hardcode_libdir_flag_spec\" | |
5522 | libdir="$acl_save_libdir" | |
5523 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
5524 | done | |
5525 | fi | |
5526 | fi | |
5527 | if test "X$ltrpathdirs" != "X"; then | |
5528 | for found_dir in $ltrpathdirs; do | |
5529 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
5530 | done | |
5531 | fi | |
5532 | ||
5533 | ||
5534 | ||
79035f0d | 5535 | |
5213506e | 5536 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
6eb95e99 | 5537 | stdlib.h string.h unistd.h sys/param.h |
5213506e RW |
5538 | do : |
5539 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5540 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22e05272 | 5541 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
79035f0d | 5542 | cat >>confdefs.h <<_ACEOF |
5213506e | 5543 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
79035f0d NN |
5544 | _ACEOF |
5545 | ||
6eb95e99 | 5546 | fi |
79035f0d | 5547 | |
6eb95e99 ZW |
5548 | done |
5549 | ||
5213506e | 5550 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
6eb95e99 ZW |
5551 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
5552 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ | |
5553 | __fsetlocking | |
5213506e RW |
5554 | do : |
5555 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5556 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 5557 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
79035f0d | 5558 | cat >>confdefs.h <<_ACEOF |
5213506e | 5559 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
79035f0d | 5560 | _ACEOF |
6eb95e99 ZW |
5561 | |
5562 | fi | |
5563 | done | |
5564 | ||
5565 | ||
79035f0d NN |
5566 | |
5567 | ||
5568 | ||
6eb95e99 ZW |
5569 | |
5570 | ||
5213506e RW |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
5572 | $as_echo_n "checking for iconv... " >&6; } | |
22e05272 | 5573 | if ${am_cv_func_iconv+:} false; then : |
5213506e | 5574 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 5575 | else |
79035f0d | 5576 | |
6eb95e99 ZW |
5577 | am_cv_func_iconv="no, consider installing GNU libiconv" |
5578 | am_cv_lib_iconv=no | |
84c1b9d3 MK |
5579 | am_save_CPPFLAGS="$CPPFLAGS" |
5580 | CPPFLAGS="$CPPFLAGS $INCICONV" | |
5213506e | 5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5582 | /* end confdefs.h. */ |
6eb95e99 ZW |
5583 | #include <stdlib.h> |
5584 | #include <iconv.h> | |
79035f0d NN |
5585 | int |
5586 | main () | |
5587 | { | |
6eb95e99 | 5588 | iconv_t cd = iconv_open("",""); |
84c1b9d3 MK |
5589 | iconv(cd,NULL,NULL,NULL,NULL); |
5590 | iconv_close(cd); | |
79035f0d NN |
5591 | ; |
5592 | return 0; | |
5593 | } | |
5594 | _ACEOF | |
5213506e | 5595 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 | 5596 | am_cv_func_iconv=yes |
6eb95e99 | 5597 | fi |
5213506e RW |
5598 | rm -f core conftest.err conftest.$ac_objext \ |
5599 | conftest$ac_exeext conftest.$ac_ext | |
84c1b9d3 | 5600 | CPPFLAGS="$am_save_CPPFLAGS" |
bf5372e7 | 5601 | |
bf5372e7 | 5602 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then |
84c1b9d3 | 5603 | for _libs in .libs _libs; do |
bf5372e7 | 5604 | am_save_CPPFLAGS="$CPPFLAGS" |
84c1b9d3 MK |
5605 | am_save_LIBS="$LIBS" |
5606 | CPPFLAGS="$CPPFLAGS -I../libiconv/include" | |
5607 | LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" | |
bf5372e7 YS |
5608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5609 | /* end confdefs.h. */ | |
5610 | #include <stdlib.h> | |
5611 | #include <iconv.h> | |
5612 | int | |
5613 | main () | |
5614 | { | |
5615 | iconv_t cd = iconv_open("",""); | |
5616 | iconv(cd,NULL,NULL,NULL,NULL); | |
5617 | iconv_close(cd); | |
5618 | ; | |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
5622 | if ac_fn_c_try_link "$LINENO"; then : | |
84c1b9d3 MK |
5623 | INCICONV="-I../libiconv/include" |
5624 | LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a | |
5625 | LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la | |
bf5372e7 YS |
5626 | am_cv_lib_iconv=yes |
5627 | am_cv_func_iconv=yes | |
5628 | fi | |
5629 | rm -f core conftest.err conftest.$ac_objext \ | |
5630 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 | 5631 | CPPFLAGS="$am_save_CPPFLAGS" |
84c1b9d3 MK |
5632 | LIBS="$am_save_LIBS" |
5633 | if test "$am_cv_func_iconv" = "yes"; then | |
bf5372e7 YS |
5634 | break |
5635 | fi | |
5636 | done | |
5637 | fi | |
5638 | ||
6eb95e99 | 5639 | if test "$am_cv_func_iconv" != yes; then |
bf5372e7 | 5640 | am_save_CPPFLAGS="$CPPFLAGS" |
6eb95e99 | 5641 | am_save_LIBS="$LIBS" |
84c1b9d3 MK |
5642 | CPPFLAGS="$LIBS $INCICONV" |
5643 | LIBS="$LIBS $LIBICONV" | |
5213506e | 5644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5645 | /* end confdefs.h. */ |
6eb95e99 ZW |
5646 | #include <stdlib.h> |
5647 | #include <iconv.h> | |
79035f0d NN |
5648 | int |
5649 | main () | |
5650 | { | |
6eb95e99 ZW |
5651 | iconv_t cd = iconv_open("",""); |
5652 | iconv(cd,NULL,NULL,NULL,NULL); | |
5653 | iconv_close(cd); | |
79035f0d NN |
5654 | ; |
5655 | return 0; | |
5656 | } | |
5657 | _ACEOF | |
5213506e | 5658 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
5659 | am_cv_lib_iconv=yes |
5660 | am_cv_func_iconv=yes | |
6eb95e99 | 5661 | fi |
5213506e RW |
5662 | rm -f core conftest.err conftest.$ac_objext \ |
5663 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 | 5664 | CPPFLAGS="$am_save_CPPFLAGS" |
84c1b9d3 | 5665 | LIBS="$am_save_LIBS" |
6eb95e99 | 5666 | fi |
6eb95e99 | 5667 | |
79035f0d | 5668 | fi |
5213506e RW |
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
5670 | $as_echo "$am_cv_func_iconv" >&6; } | |
84c1b9d3 MK |
5671 | if test "$am_cv_func_iconv" = yes; then |
5672 | ||
5673 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
79035f0d | 5674 | |
84c1b9d3 | 5675 | fi |
6eb95e99 | 5676 | if test "$am_cv_lib_iconv" = yes; then |
84c1b9d3 MK |
5677 | |
5678 | for element in $INCICONV; do | |
5679 | haveit= | |
5680 | for x in $CPPFLAGS; do | |
5681 | ||
5682 | acl_save_prefix="$prefix" | |
5683 | prefix="$acl_final_prefix" | |
5684 | acl_save_exec_prefix="$exec_prefix" | |
5685 | exec_prefix="$acl_final_exec_prefix" | |
5686 | eval x=\"$x\" | |
5687 | exec_prefix="$acl_save_exec_prefix" | |
5688 | prefix="$acl_save_prefix" | |
5689 | ||
5690 | if test "X$x" = "X$element"; then | |
5691 | haveit=yes | |
5692 | break | |
5693 | fi | |
5694 | done | |
5695 | if test -z "$haveit"; then | |
5696 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
5697 | fi | |
5698 | done | |
5699 | ||
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
5701 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
5703 | $as_echo "$LIBICONV" >&6; } | |
6eb95e99 | 5704 | else |
84c1b9d3 MK |
5705 | LIBICONV= |
5706 | LTLIBICONV= | |
6eb95e99 | 5707 | fi |
79035f0d NN |
5708 | |
5709 | ||
6eb95e99 | 5710 | |
84c1b9d3 | 5711 | if test "$am_cv_func_iconv" = yes; then |
5213506e RW |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
5713 | $as_echo_n "checking for iconv declaration... " >&6; } | |
22e05272 | 5714 | if ${am_cv_proto_iconv+:} false; then : |
5213506e | 5715 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 5716 | else |
79035f0d | 5717 | |
5213506e | 5718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5719 | /* end confdefs.h. */ |
6eb95e99 ZW |
5720 | |
5721 | #include <stdlib.h> | |
5722 | #include <iconv.h> | |
5723 | extern | |
5724 | #ifdef __cplusplus | |
5725 | "C" | |
5726 | #endif | |
5727 | #if defined(__STDC__) || defined(__cplusplus) | |
5728 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
5729 | #else | |
5730 | size_t iconv(); | |
5731 | #endif | |
5732 | ||
79035f0d NN |
5733 | int |
5734 | main () | |
5735 | { | |
6eb95e99 | 5736 | |
79035f0d NN |
5737 | ; |
5738 | return 0; | |
5739 | } | |
5740 | _ACEOF | |
5213506e | 5741 | if ac_fn_c_try_compile "$LINENO"; then : |
6eb95e99 ZW |
5742 | am_cv_proto_iconv_arg1="" |
5743 | else | |
5213506e | 5744 | am_cv_proto_iconv_arg1="const" |
6eb95e99 | 5745 | fi |
5213506e | 5746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6eb95e99 ZW |
5747 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
5748 | fi | |
5749 | ||
5750 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
5213506e | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
79035f0d | 5752 | }$am_cv_proto_iconv" >&5 |
5213506e RW |
5753 | $as_echo "${ac_t:- |
5754 | }$am_cv_proto_iconv" >&6; } | |
79035f0d NN |
5755 | |
5756 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 5757 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
79035f0d | 5758 | _ACEOF |
6eb95e99 ZW |
5759 | |
5760 | fi | |
5761 | ||
79035f0d | 5762 | |
5213506e RW |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
5764 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
22e05272 | 5765 | if ${am_cv_langinfo_codeset+:} false; then : |
5213506e | 5766 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 5767 | else |
5213506e | 5768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5769 | /* end confdefs.h. */ |
6eb95e99 | 5770 | #include <langinfo.h> |
79035f0d NN |
5771 | int |
5772 | main () | |
5773 | { | |
6eb95e99 | 5774 | char* cs = nl_langinfo(CODESET); |
79035f0d NN |
5775 | ; |
5776 | return 0; | |
5777 | } | |
5778 | _ACEOF | |
5213506e | 5779 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
5780 | am_cv_langinfo_codeset=yes |
5781 | else | |
5213506e | 5782 | am_cv_langinfo_codeset=no |
6eb95e99 | 5783 | fi |
5213506e RW |
5784 | rm -f core conftest.err conftest.$ac_objext \ |
5785 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 5786 | |
79035f0d | 5787 | fi |
5213506e RW |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
5789 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
56694dd9 | 5790 | if test $am_cv_langinfo_codeset = yes; then |
79035f0d | 5791 | |
5213506e | 5792 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
6eb95e99 ZW |
5793 | |
5794 | fi | |
5795 | ||
5796 | if test $ac_cv_header_locale_h = yes; then | |
79035f0d | 5797 | |
5213506e RW |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
5799 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
22e05272 | 5800 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
5213506e | 5801 | $as_echo_n "(cached) " >&6 |
79035f0d | 5802 | else |
5213506e | 5803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5804 | /* end confdefs.h. */ |
6eb95e99 | 5805 | #include <locale.h> |
79035f0d NN |
5806 | int |
5807 | main () | |
5808 | { | |
6eb95e99 | 5809 | return LC_MESSAGES |
79035f0d NN |
5810 | ; |
5811 | return 0; | |
5812 | } | |
5813 | _ACEOF | |
5213506e | 5814 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
5815 | am_cv_val_LC_MESSAGES=yes |
5816 | else | |
5213506e | 5817 | am_cv_val_LC_MESSAGES=no |
6eb95e99 | 5818 | fi |
5213506e RW |
5819 | rm -f core conftest.err conftest.$ac_objext \ |
5820 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 5821 | fi |
5213506e RW |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
5823 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
56694dd9 | 5824 | if test $am_cv_val_LC_MESSAGES = yes; then |
79035f0d | 5825 | |
5213506e | 5826 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
6eb95e99 ZW |
5827 | |
5828 | fi | |
5829 | ||
5830 | fi | |
5831 | ||
5832 | for ac_prog in bison | |
5833 | do | |
79035f0d | 5834 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6eb95e99 | 5835 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5837 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5838 | if ${ac_cv_prog_INTLBISON+:} false; then : |
5213506e | 5839 | $as_echo_n "(cached) " >&6 |
6eb95e99 ZW |
5840 | else |
5841 | if test -n "$INTLBISON"; then | |
5842 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
5843 | else | |
79035f0d NN |
5844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5845 | for as_dir in $PATH | |
5846 | do | |
5847 | IFS=$as_save_IFS | |
5848 | test -z "$as_dir" && as_dir=. | |
5213506e | 5849 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79035f0d | 5851 | ac_cv_prog_INTLBISON="$ac_prog" |
5213506e | 5852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
5853 | break 2 |
5854 | fi | |
5855 | done | |
5213506e RW |
5856 | done |
5857 | IFS=$as_save_IFS | |
79035f0d | 5858 | |
6eb95e99 ZW |
5859 | fi |
5860 | fi | |
79035f0d | 5861 | INTLBISON=$ac_cv_prog_INTLBISON |
6eb95e99 | 5862 | if test -n "$INTLBISON"; then |
5213506e RW |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
5864 | $as_echo "$INTLBISON" >&6; } | |
6eb95e99 | 5865 | else |
5213506e RW |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5867 | $as_echo "no" >&6; } | |
6eb95e99 ZW |
5868 | fi |
5869 | ||
5213506e | 5870 | |
79035f0d | 5871 | test -n "$INTLBISON" && break |
6eb95e99 ZW |
5872 | done |
5873 | ||
5874 | if test -z "$INTLBISON"; then | |
5875 | ac_verc_fail=yes | |
5876 | else | |
5213506e RW |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
5878 | $as_echo_n "checking version of bison... " >&6; } | |
6eb95e99 ZW |
5879 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
5880 | case $ac_prog_version in | |
5881 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5882 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
5883 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5884 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5885 | esac | |
5213506e RW |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5887 | $as_echo "$ac_prog_version" >&6; } | |
6eb95e99 ZW |
5888 | fi |
5889 | if test $ac_verc_fail = yes; then | |
5890 | INTLBISON=: | |
5891 | fi | |
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
79035f0d NN |
5898 | |
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5213506e RW |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5909 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5910 | # Check whether --enable-nls was given. | |
5911 | if test "${enable_nls+set}" = set; then : | |
5912 | enableval=$enable_nls; USE_NLS=$enableval | |
6eb95e99 ZW |
5913 | else |
5914 | USE_NLS=yes | |
5213506e RW |
5915 | fi |
5916 | ||
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
5918 | $as_echo "$USE_NLS" >&6; } | |
79035f0d | 5919 | |
6eb95e99 ZW |
5920 | |
5921 | ||
5922 | ||
5923 | BUILD_INCLUDED_LIBINTL=no | |
5924 | USE_INCLUDED_LIBINTL=no | |
79035f0d | 5925 | |
6eb95e99 ZW |
5926 | LIBINTL= |
5927 | LTLIBINTL= | |
5928 | POSUB= | |
5929 | ||
5930 | if test "$USE_NLS" = "yes"; then | |
5931 | gt_use_preinstalled_gnugettext=no | |
79035f0d | 5932 | |
5213506e RW |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
5934 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
79035f0d | 5935 | |
5213506e RW |
5936 | # Check whether --with-included-gettext was given. |
5937 | if test "${with_included_gettext+set}" = set; then : | |
5938 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval | |
6eb95e99 ZW |
5939 | else |
5940 | nls_cv_force_use_gnu_gettext=no | |
5213506e RW |
5941 | fi |
5942 | ||
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 | |
5944 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
6eb95e99 ZW |
5945 | |
5946 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
5947 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
79035f0d NN |
5948 | |
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5213506e RW |
5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
5955 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
22e05272 | 5956 | if ${gt_cv_func_gnugettext2_libc+:} false; then : |
5213506e | 5957 | $as_echo_n "(cached) " >&6 |
79035f0d | 5958 | else |
5213506e | 5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5960 | /* end confdefs.h. */ |
6eb95e99 ZW |
5961 | #include <libintl.h> |
5962 | extern int _nl_msg_cat_cntr; | |
5963 | extern int *_nl_domain_bindings; | |
79035f0d NN |
5964 | int |
5965 | main () | |
5966 | { | |
6eb95e99 | 5967 | bindtextdomain ("", ""); |
2d041117 | 5968 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings |
79035f0d NN |
5969 | ; |
5970 | return 0; | |
5971 | } | |
5972 | _ACEOF | |
5213506e | 5973 | if ac_fn_c_try_link "$LINENO"; then : |
2d041117 | 5974 | gt_cv_func_gnugettext2_libc=yes |
6eb95e99 | 5975 | else |
2d041117 | 5976 | gt_cv_func_gnugettext2_libc=no |
6eb95e99 | 5977 | fi |
5213506e RW |
5978 | rm -f core conftest.err conftest.$ac_objext \ |
5979 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 5980 | fi |
2d041117 AM |
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 |
5982 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } | |
6eb95e99 | 5983 | |
2d041117 | 5984 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then |
79035f0d NN |
5985 | |
5986 | ||
5987 | ||
6eb95e99 | 5988 | use_additional=yes |
79035f0d | 5989 | |
6eb95e99 ZW |
5990 | acl_save_prefix="$prefix" |
5991 | prefix="$acl_final_prefix" | |
5992 | acl_save_exec_prefix="$exec_prefix" | |
5993 | exec_prefix="$acl_final_exec_prefix" | |
79035f0d | 5994 | |
6eb95e99 ZW |
5995 | eval additional_includedir=\"$includedir\" |
5996 | eval additional_libdir=\"$libdir\" | |
79035f0d | 5997 | |
6eb95e99 ZW |
5998 | exec_prefix="$acl_save_exec_prefix" |
5999 | prefix="$acl_save_prefix" | |
6000 | ||
79035f0d | 6001 | |
5213506e RW |
6002 | # Check whether --with-libintl-prefix was given. |
6003 | if test "${with_libintl_prefix+set}" = set; then : | |
6004 | withval=$with_libintl_prefix; | |
6eb95e99 ZW |
6005 | if test "X$withval" = "Xno"; then |
6006 | use_additional=no | |
6007 | else | |
6008 | if test "X$withval" = "X"; then | |
79035f0d | 6009 | |
6eb95e99 ZW |
6010 | acl_save_prefix="$prefix" |
6011 | prefix="$acl_final_prefix" | |
6012 | acl_save_exec_prefix="$exec_prefix" | |
6013 | exec_prefix="$acl_final_exec_prefix" | |
79035f0d | 6014 | |
6eb95e99 ZW |
6015 | eval additional_includedir=\"$includedir\" |
6016 | eval additional_libdir=\"$libdir\" | |
79035f0d | 6017 | |
6eb95e99 ZW |
6018 | exec_prefix="$acl_save_exec_prefix" |
6019 | prefix="$acl_save_prefix" | |
6020 | ||
6021 | else | |
6022 | additional_includedir="$withval/include" | |
6023 | additional_libdir="$withval/lib" | |
6024 | fi | |
6025 | fi | |
6026 | ||
5213506e RW |
6027 | fi |
6028 | ||
6eb95e99 ZW |
6029 | LIBINTL= |
6030 | LTLIBINTL= | |
6031 | INCINTL= | |
6032 | rpathdirs= | |
6033 | ltrpathdirs= | |
6034 | names_already_handled= | |
6035 | names_next_round='intl ' | |
6036 | while test -n "$names_next_round"; do | |
6037 | names_this_round="$names_next_round" | |
6038 | names_next_round= | |
6039 | for name in $names_this_round; do | |
6040 | already_handled= | |
6041 | for n in $names_already_handled; do | |
6042 | if test "$n" = "$name"; then | |
6043 | already_handled=yes | |
6044 | break | |
6045 | fi | |
6046 | done | |
6047 | if test -z "$already_handled"; then | |
6048 | names_already_handled="$names_already_handled $name" | |
6049 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
6050 | eval value=\"\$HAVE_LIB$uppername\" | |
6051 | if test -n "$value"; then | |
6052 | if test "$value" = yes; then | |
6053 | eval value=\"\$LIB$uppername\" | |
6054 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
6055 | eval value=\"\$LTLIB$uppername\" | |
6056 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
6057 | else | |
6058 | : | |
6059 | fi | |
6060 | else | |
6061 | found_dir= | |
6062 | found_la= | |
6063 | found_so= | |
6064 | found_a= | |
6065 | if test $use_additional = yes; then | |
6066 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
6067 | found_dir="$additional_libdir" | |
6068 | found_so="$additional_libdir/lib$name.$shlibext" | |
6069 | if test -f "$additional_libdir/lib$name.la"; then | |
6070 | found_la="$additional_libdir/lib$name.la" | |
6071 | fi | |
6072 | else | |
6073 | if test -f "$additional_libdir/lib$name.$libext"; then | |
6074 | found_dir="$additional_libdir" | |
6075 | found_a="$additional_libdir/lib$name.$libext" | |
6076 | if test -f "$additional_libdir/lib$name.la"; then | |
6077 | found_la="$additional_libdir/lib$name.la" | |
6078 | fi | |
6079 | fi | |
6080 | fi | |
6081 | fi | |
6082 | if test "X$found_dir" = "X"; then | |
6083 | for x in $LDFLAGS $LTLIBINTL; do | |
79035f0d | 6084 | |
6eb95e99 ZW |
6085 | acl_save_prefix="$prefix" |
6086 | prefix="$acl_final_prefix" | |
6087 | acl_save_exec_prefix="$exec_prefix" | |
6088 | exec_prefix="$acl_final_exec_prefix" | |
6089 | eval x=\"$x\" | |
6090 | exec_prefix="$acl_save_exec_prefix" | |
6091 | prefix="$acl_save_prefix" | |
6092 | ||
6093 | case "$x" in | |
6094 | -L*) | |
6095 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
6096 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
6097 | found_dir="$dir" | |
6098 | found_so="$dir/lib$name.$shlibext" | |
6099 | if test -f "$dir/lib$name.la"; then | |
6100 | found_la="$dir/lib$name.la" | |
6101 | fi | |
6102 | else | |
6103 | if test -f "$dir/lib$name.$libext"; then | |
6104 | found_dir="$dir" | |
6105 | found_a="$dir/lib$name.$libext" | |
6106 | if test -f "$dir/lib$name.la"; then | |
6107 | found_la="$dir/lib$name.la" | |
6108 | fi | |
6109 | fi | |
6110 | fi | |
6111 | ;; | |
6112 | esac | |
6113 | if test "X$found_dir" != "X"; then | |
6114 | break | |
6115 | fi | |
6116 | done | |
6117 | fi | |
6118 | if test "X$found_dir" != "X"; then | |
6119 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
6120 | if test "X$found_so" != "X"; then | |
6121 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6122 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6123 | else | |
6124 | haveit= | |
6125 | for x in $ltrpathdirs; do | |
6126 | if test "X$x" = "X$found_dir"; then | |
6127 | haveit=yes | |
6128 | break | |
6129 | fi | |
6130 | done | |
6131 | if test -z "$haveit"; then | |
6132 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6133 | fi | |
6134 | if test "$hardcode_direct" = yes; then | |
6135 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6136 | else | |
6137 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6138 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6139 | haveit= | |
6140 | for x in $rpathdirs; do | |
6141 | if test "X$x" = "X$found_dir"; then | |
6142 | haveit=yes | |
6143 | break | |
6144 | fi | |
6145 | done | |
6146 | if test -z "$haveit"; then | |
6147 | rpathdirs="$rpathdirs $found_dir" | |
6148 | fi | |
6149 | else | |
6150 | haveit= | |
6151 | for x in $LDFLAGS $LIBINTL; do | |
79035f0d | 6152 | |
6eb95e99 ZW |
6153 | acl_save_prefix="$prefix" |
6154 | prefix="$acl_final_prefix" | |
6155 | acl_save_exec_prefix="$exec_prefix" | |
6156 | exec_prefix="$acl_final_exec_prefix" | |
6157 | eval x=\"$x\" | |
6158 | exec_prefix="$acl_save_exec_prefix" | |
6159 | prefix="$acl_save_prefix" | |
6160 | ||
6161 | if test "X$x" = "X-L$found_dir"; then | |
6162 | haveit=yes | |
6163 | break | |
6164 | fi | |
6165 | done | |
6166 | if test -z "$haveit"; then | |
6167 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
6168 | fi | |
6169 | if test "$hardcode_minus_L" != no; then | |
6170 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6171 | else | |
6172 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
6173 | fi | |
6174 | fi | |
6175 | fi | |
6176 | fi | |
6177 | else | |
6178 | if test "X$found_a" != "X"; then | |
6179 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
6180 | else | |
6181 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
6182 | fi | |
6183 | fi | |
6184 | additional_includedir= | |
6185 | case "$found_dir" in | |
6186 | */lib | */lib/) | |
6187 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6188 | additional_includedir="$basedir/include" | |
6189 | ;; | |
6190 | esac | |
6191 | if test "X$additional_includedir" != "X"; then | |
6192 | if test "X$additional_includedir" != "X/usr/include"; then | |
6193 | haveit= | |
6194 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6195 | if test -n "$GCC"; then | |
6196 | case $host_os in | |
6197 | linux*) haveit=yes;; | |
6198 | esac | |
6199 | fi | |
6200 | fi | |
6201 | if test -z "$haveit"; then | |
6202 | for x in $CPPFLAGS $INCINTL; do | |
79035f0d | 6203 | |
6eb95e99 ZW |
6204 | acl_save_prefix="$prefix" |
6205 | prefix="$acl_final_prefix" | |
6206 | acl_save_exec_prefix="$exec_prefix" | |
6207 | exec_prefix="$acl_final_exec_prefix" | |
6208 | eval x=\"$x\" | |
6209 | exec_prefix="$acl_save_exec_prefix" | |
6210 | prefix="$acl_save_prefix" | |
6211 | ||
6212 | if test "X$x" = "X-I$additional_includedir"; then | |
6213 | haveit=yes | |
6214 | break | |
6215 | fi | |
6216 | done | |
6217 | if test -z "$haveit"; then | |
6218 | if test -d "$additional_includedir"; then | |
6219 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
6220 | fi | |
6221 | fi | |
6222 | fi | |
6223 | fi | |
6224 | fi | |
6225 | if test -n "$found_la"; then | |
6226 | save_libdir="$libdir" | |
6227 | case "$found_la" in | |
6228 | */* | *\\*) . "$found_la" ;; | |
6229 | *) . "./$found_la" ;; | |
6230 | esac | |
6231 | libdir="$save_libdir" | |
6232 | for dep in $dependency_libs; do | |
6233 | case "$dep" in | |
6234 | -L*) | |
6235 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6236 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6237 | haveit= | |
6238 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6239 | if test -n "$GCC"; then | |
6240 | case $host_os in | |
6241 | linux*) haveit=yes;; | |
6242 | esac | |
6243 | fi | |
6244 | fi | |
6245 | if test -z "$haveit"; then | |
6246 | haveit= | |
6247 | for x in $LDFLAGS $LIBINTL; do | |
79035f0d | 6248 | |
6eb95e99 ZW |
6249 | acl_save_prefix="$prefix" |
6250 | prefix="$acl_final_prefix" | |
6251 | acl_save_exec_prefix="$exec_prefix" | |
6252 | exec_prefix="$acl_final_exec_prefix" | |
6253 | eval x=\"$x\" | |
6254 | exec_prefix="$acl_save_exec_prefix" | |
6255 | prefix="$acl_save_prefix" | |
6256 | ||
6257 | if test "X$x" = "X-L$additional_libdir"; then | |
6258 | haveit=yes | |
6259 | break | |
6260 | fi | |
6261 | done | |
6262 | if test -z "$haveit"; then | |
6263 | if test -d "$additional_libdir"; then | |
6264 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
6265 | fi | |
6266 | fi | |
6267 | haveit= | |
6268 | for x in $LDFLAGS $LTLIBINTL; do | |
79035f0d | 6269 | |
6eb95e99 ZW |
6270 | acl_save_prefix="$prefix" |
6271 | prefix="$acl_final_prefix" | |
6272 | acl_save_exec_prefix="$exec_prefix" | |
6273 | exec_prefix="$acl_final_exec_prefix" | |
6274 | eval x=\"$x\" | |
6275 | exec_prefix="$acl_save_exec_prefix" | |
6276 | prefix="$acl_save_prefix" | |
6277 | ||
6278 | if test "X$x" = "X-L$additional_libdir"; then | |
6279 | haveit=yes | |
6280 | break | |
6281 | fi | |
6282 | done | |
6283 | if test -z "$haveit"; then | |
6284 | if test -d "$additional_libdir"; then | |
6285 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
6286 | fi | |
6287 | fi | |
6288 | fi | |
6289 | fi | |
6290 | ;; | |
6291 | -R*) | |
6292 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6293 | if test "$enable_rpath" != no; then | |
6294 | haveit= | |
6295 | for x in $rpathdirs; do | |
6296 | if test "X$x" = "X$dir"; then | |
6297 | haveit=yes | |
6298 | break | |
6299 | fi | |
6300 | done | |
6301 | if test -z "$haveit"; then | |
6302 | rpathdirs="$rpathdirs $dir" | |
6303 | fi | |
6304 | haveit= | |
6305 | for x in $ltrpathdirs; do | |
6306 | if test "X$x" = "X$dir"; then | |
6307 | haveit=yes | |
6308 | break | |
6309 | fi | |
6310 | done | |
6311 | if test -z "$haveit"; then | |
6312 | ltrpathdirs="$ltrpathdirs $dir" | |
6313 | fi | |
6314 | fi | |
6315 | ;; | |
6316 | -l*) | |
6317 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6318 | ;; | |
6319 | *.la) | |
6320 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6321 | ;; | |
6322 | *) | |
6323 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
6324 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
6325 | ;; | |
6326 | esac | |
6327 | done | |
6328 | fi | |
6329 | else | |
6330 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
6331 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
6332 | fi | |
6333 | fi | |
6334 | fi | |
6335 | done | |
6336 | done | |
6337 | if test "X$rpathdirs" != "X"; then | |
6338 | if test -n "$hardcode_libdir_separator"; then | |
6339 | alldirs= | |
6340 | for found_dir in $rpathdirs; do | |
6341 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6342 | done | |
6343 | acl_save_libdir="$libdir" | |
6344 | libdir="$alldirs" | |
6345 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6346 | libdir="$acl_save_libdir" | |
6347 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
6348 | else | |
6349 | for found_dir in $rpathdirs; do | |
6350 | acl_save_libdir="$libdir" | |
6351 | libdir="$found_dir" | |
6352 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6353 | libdir="$acl_save_libdir" | |
6354 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
6355 | done | |
6356 | fi | |
6357 | fi | |
6358 | if test "X$ltrpathdirs" != "X"; then | |
6359 | for found_dir in $ltrpathdirs; do | |
6360 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
6361 | done | |
6362 | fi | |
6363 | ||
5213506e RW |
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
6365 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
22e05272 | 6366 | if ${gt_cv_func_gnugettext2_libintl+:} false; then : |
5213506e | 6367 | $as_echo_n "(cached) " >&6 |
6eb95e99 ZW |
6368 | else |
6369 | gt_save_CPPFLAGS="$CPPFLAGS" | |
6370 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
6371 | gt_save_LIBS="$LIBS" | |
6372 | LIBS="$LIBS $LIBINTL" | |
5213506e | 6373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 6374 | /* end confdefs.h. */ |
6eb95e99 ZW |
6375 | #include <libintl.h> |
6376 | extern int _nl_msg_cat_cntr; | |
6377 | extern | |
6378 | #ifdef __cplusplus | |
6379 | "C" | |
6380 | #endif | |
6381 | const char *_nl_expand_alias (); | |
79035f0d NN |
6382 | int |
6383 | main () | |
6384 | { | |
6eb95e99 | 6385 | bindtextdomain ("", ""); |
2d041117 | 6386 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
79035f0d NN |
6387 | ; |
6388 | return 0; | |
6389 | } | |
6390 | _ACEOF | |
5213506e | 6391 | if ac_fn_c_try_link "$LINENO"; then : |
2d041117 | 6392 | gt_cv_func_gnugettext2_libintl=yes |
6eb95e99 | 6393 | else |
2d041117 | 6394 | gt_cv_func_gnugettext2_libintl=no |
6eb95e99 | 6395 | fi |
5213506e RW |
6396 | rm -f core conftest.err conftest.$ac_objext \ |
6397 | conftest$ac_exeext conftest.$ac_ext | |
2d041117 | 6398 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
6eb95e99 | 6399 | LIBS="$LIBS $LIBICONV" |
5213506e | 6400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 6401 | /* end confdefs.h. */ |
6eb95e99 ZW |
6402 | #include <libintl.h> |
6403 | extern int _nl_msg_cat_cntr; | |
6404 | extern | |
6405 | #ifdef __cplusplus | |
6406 | "C" | |
6407 | #endif | |
6408 | const char *_nl_expand_alias (); | |
79035f0d NN |
6409 | int |
6410 | main () | |
6411 | { | |
6eb95e99 | 6412 | bindtextdomain ("", ""); |
2d041117 | 6413 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
79035f0d NN |
6414 | ; |
6415 | return 0; | |
6416 | } | |
6417 | _ACEOF | |
5213506e | 6418 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
6419 | LIBINTL="$LIBINTL $LIBICONV" |
6420 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
2d041117 | 6421 | gt_cv_func_gnugettext2_libintl=yes |
79035f0d | 6422 | |
6eb95e99 | 6423 | fi |
5213506e RW |
6424 | rm -f core conftest.err conftest.$ac_objext \ |
6425 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 ZW |
6426 | fi |
6427 | CPPFLAGS="$gt_save_CPPFLAGS" | |
6428 | LIBS="$gt_save_LIBS" | |
6429 | fi | |
2d041117 AM |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 |
6431 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } | |
6eb95e99 ZW |
6432 | fi |
6433 | ||
2d041117 AM |
6434 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ |
6435 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
6eb95e99 ZW |
6436 | && test "$PACKAGE" != gettext-runtime \ |
6437 | && test "$PACKAGE" != gettext-tools; }; then | |
6438 | gt_use_preinstalled_gnugettext=yes | |
6439 | else | |
6440 | LIBINTL= | |
6441 | LTLIBINTL= | |
6442 | INCINTL= | |
6443 | fi | |
6444 | ||
79035f0d | 6445 | |
6eb95e99 ZW |
6446 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
6447 | nls_cv_use_gnu_gettext=yes | |
6448 | fi | |
6449 | fi | |
6450 | ||
6451 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6452 | BUILD_INCLUDED_LIBINTL=yes | |
6453 | USE_INCLUDED_LIBINTL=yes | |
6454 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
6455 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
6456 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
6457 | fi | |
6458 | ||
6459 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
6460 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6461 | CATOBJEXT=.gmo | |
6462 | fi | |
79035f0d | 6463 | |
6eb95e99 ZW |
6464 | |
6465 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
6466 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
79035f0d | 6467 | |
5213506e | 6468 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
6eb95e99 ZW |
6469 | |
6470 | else | |
6471 | USE_NLS=no | |
6472 | fi | |
6473 | fi | |
6474 | ||
5213506e RW |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
6476 | $as_echo_n "checking whether to use NLS... " >&6; } | |
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
6478 | $as_echo "$USE_NLS" >&6; } | |
6eb95e99 | 6479 | if test "$USE_NLS" = "yes"; then |
5213506e RW |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
6481 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
6eb95e99 | 6482 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
2d041117 | 6483 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then |
6eb95e99 ZW |
6484 | gt_source="external libintl" |
6485 | else | |
6486 | gt_source="libc" | |
6487 | fi | |
6488 | else | |
6489 | gt_source="included intl directory" | |
6490 | fi | |
5213506e RW |
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
6492 | $as_echo "$gt_source" >&6; } | |
6eb95e99 ZW |
6493 | fi |
6494 | ||
6495 | if test "$USE_NLS" = "yes"; then | |
6496 | ||
6497 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
2d041117 | 6498 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then |
5213506e RW |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
6500 | $as_echo_n "checking how to link with libintl... " >&6; } | |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
6502 | $as_echo "$LIBINTL" >&6; } | |
79035f0d | 6503 | |
6eb95e99 ZW |
6504 | for element in $INCINTL; do |
6505 | haveit= | |
6506 | for x in $CPPFLAGS; do | |
79035f0d | 6507 | |
6eb95e99 ZW |
6508 | acl_save_prefix="$prefix" |
6509 | prefix="$acl_final_prefix" | |
6510 | acl_save_exec_prefix="$exec_prefix" | |
6511 | exec_prefix="$acl_final_exec_prefix" | |
6512 | eval x=\"$x\" | |
6513 | exec_prefix="$acl_save_exec_prefix" | |
6514 | prefix="$acl_save_prefix" | |
6515 | ||
6516 | if test "X$x" = "X$element"; then | |
6517 | haveit=yes | |
6518 | break | |
6519 | fi | |
6520 | done | |
6521 | if test -z "$haveit"; then | |
6522 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6523 | fi | |
6524 | done | |
6525 | ||
6526 | fi | |
6527 | ||
79035f0d | 6528 | |
5213506e | 6529 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
79035f0d | 6530 | |
6eb95e99 | 6531 | |
5213506e | 6532 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
6eb95e99 ZW |
6533 | |
6534 | fi | |
6535 | ||
6536 | POSUB=po | |
56694dd9 | 6537 | fi |
6eb95e99 | 6538 | |
79035f0d | 6539 | |
56694dd9 ZW |
6540 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
6541 | BUILD_INCLUDED_LIBINTL=yes | |
6542 | fi | |
6eb95e99 | 6543 | |
79035f0d NN |
6544 | |
6545 | ||
6546 | ||
6eb95e99 | 6547 | |
56694dd9 ZW |
6548 | nls_cv_header_intl= |
6549 | nls_cv_header_libgt= | |
6eb95e99 | 6550 | |
56694dd9 | 6551 | DATADIRNAME=share |
79035f0d | 6552 | |
6eb95e99 | 6553 | |
56694dd9 | 6554 | INSTOBJEXT=.mo |
79035f0d | 6555 | |
6eb95e99 | 6556 | |
56694dd9 | 6557 | GENCAT=gencat |
79035f0d | 6558 | |
6eb95e99 | 6559 | |
56694dd9 ZW |
6560 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
6561 | INTLOBJS="\$(GETTOBJS)" | |
6562 | fi | |
79035f0d | 6563 | |
6eb95e99 | 6564 | |
56694dd9 | 6565 | INTL_LIBTOOL_SUFFIX_PREFIX= |
79035f0d NN |
6566 | |
6567 | ||
6eb95e99 | 6568 | |
56694dd9 | 6569 | INTLLIBS="$LIBINTL" |
6eb95e99 | 6570 | |
6eb95e99 ZW |
6571 | |
6572 | ||
79035f0d NN |
6573 | |
6574 | ||
6575 | ||
6576 | ||
6577 | # This replaces the extensive use of DEFS in the original Makefile.in. | |
6578 | ||
5213506e | 6579 | $as_echo "#define IN_LIBINTL 1" >>confdefs.h |
79035f0d | 6580 | |
6eb95e99 | 6581 | |
5213506e | 6582 | $as_echo "#define IN_LIBRARY 1" >>confdefs.h |
6eb95e99 | 6583 | |
79035f0d | 6584 | |
5213506e | 6585 | $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h |
79035f0d | 6586 | |
6eb95e99 | 6587 | |
5213506e | 6588 | $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h |
6eb95e99 | 6589 | |
79035f0d | 6590 | |
5213506e | 6591 | $as_echo "#define NO_XMALLOC 1" >>confdefs.h |
79035f0d | 6592 | |
6eb95e99 | 6593 | |
5213506e | 6594 | $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h |
6eb95e99 | 6595 | |
79035f0d | 6596 | |
5213506e | 6597 | $as_echo "#define relocate libintl_relocate" >>confdefs.h |
6eb95e99 ZW |
6598 | |
6599 | ||
88fa57d7 KC |
6600 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
6601 | for ac_prog in aclocal | |
6602 | do | |
6603 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6604 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6606 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6607 | if ${ac_cv_prog_ACLOCAL+:} false; then : |
5213506e | 6608 | $as_echo_n "(cached) " >&6 |
88fa57d7 KC |
6609 | else |
6610 | if test -n "$ACLOCAL"; then | |
6611 | ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. | |
6612 | else | |
6613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6614 | for as_dir in $PATH | |
6615 | do | |
6616 | IFS=$as_save_IFS | |
6617 | test -z "$as_dir" && as_dir=. | |
5213506e | 6618 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
88fa57d7 | 6620 | ac_cv_prog_ACLOCAL="$ac_prog" |
5213506e | 6621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
88fa57d7 KC |
6622 | break 2 |
6623 | fi | |
6624 | done | |
5213506e RW |
6625 | done |
6626 | IFS=$as_save_IFS | |
88fa57d7 KC |
6627 | |
6628 | fi | |
6629 | fi | |
6630 | ACLOCAL=$ac_cv_prog_ACLOCAL | |
6631 | if test -n "$ACLOCAL"; then | |
5213506e RW |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 |
6633 | $as_echo "$ACLOCAL" >&6; } | |
88fa57d7 | 6634 | else |
5213506e RW |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6636 | $as_echo "no" >&6; } | |
88fa57d7 KC |
6637 | fi |
6638 | ||
5213506e | 6639 | |
88fa57d7 KC |
6640 | test -n "$ACLOCAL" && break |
6641 | done | |
6642 | test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" | |
6643 | ||
6644 | for ac_prog in autoconf | |
6645 | do | |
6646 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6647 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6649 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6650 | if ${ac_cv_prog_AUTOCONF+:} false; then : |
5213506e | 6651 | $as_echo_n "(cached) " >&6 |
88fa57d7 KC |
6652 | else |
6653 | if test -n "$AUTOCONF"; then | |
6654 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
6655 | else | |
6656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6657 | for as_dir in $PATH | |
6658 | do | |
6659 | IFS=$as_save_IFS | |
6660 | test -z "$as_dir" && as_dir=. | |
5213506e | 6661 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
88fa57d7 | 6663 | ac_cv_prog_AUTOCONF="$ac_prog" |
5213506e | 6664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
88fa57d7 KC |
6665 | break 2 |
6666 | fi | |
6667 | done | |
5213506e RW |
6668 | done |
6669 | IFS=$as_save_IFS | |
88fa57d7 KC |
6670 | |
6671 | fi | |
6672 | fi | |
6673 | AUTOCONF=$ac_cv_prog_AUTOCONF | |
6674 | if test -n "$AUTOCONF"; then | |
5213506e RW |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
6676 | $as_echo "$AUTOCONF" >&6; } | |
88fa57d7 | 6677 | else |
5213506e RW |
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6679 | $as_echo "no" >&6; } | |
88fa57d7 KC |
6680 | fi |
6681 | ||
5213506e | 6682 | |
88fa57d7 KC |
6683 | test -n "$AUTOCONF" && break |
6684 | done | |
6685 | test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" | |
6686 | ||
6687 | for ac_prog in autoheader | |
6688 | do | |
6689 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6690 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6692 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6693 | if ${ac_cv_prog_AUTOHEADER+:} false; then : |
5213506e | 6694 | $as_echo_n "(cached) " >&6 |
88fa57d7 KC |
6695 | else |
6696 | if test -n "$AUTOHEADER"; then | |
6697 | ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. | |
6698 | else | |
6699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6700 | for as_dir in $PATH | |
6701 | do | |
6702 | IFS=$as_save_IFS | |
6703 | test -z "$as_dir" && as_dir=. | |
5213506e | 6704 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
88fa57d7 | 6706 | ac_cv_prog_AUTOHEADER="$ac_prog" |
5213506e | 6707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
88fa57d7 KC |
6708 | break 2 |
6709 | fi | |
6710 | done | |
5213506e RW |
6711 | done |
6712 | IFS=$as_save_IFS | |
88fa57d7 KC |
6713 | |
6714 | fi | |
6715 | fi | |
6716 | AUTOHEADER=$ac_cv_prog_AUTOHEADER | |
6717 | if test -n "$AUTOHEADER"; then | |
5213506e RW |
6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 |
6719 | $as_echo "$AUTOHEADER" >&6; } | |
88fa57d7 | 6720 | else |
5213506e RW |
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6722 | $as_echo "no" >&6; } | |
88fa57d7 KC |
6723 | fi |
6724 | ||
5213506e | 6725 | |
88fa57d7 KC |
6726 | test -n "$AUTOHEADER" && break |
6727 | done | |
6728 | test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" | |
6729 | ||
6730 | ||
5213506e RW |
6731 | # Check whether --enable-maintainer-mode was given. |
6732 | if test "${enable_maintainer_mode+set}" = set; then : | |
6733 | enableval=$enable_maintainer_mode; | |
88fa57d7 KC |
6734 | else |
6735 | enable_maintainer_mode=no | |
5213506e RW |
6736 | fi |
6737 | ||
88fa57d7 KC |
6738 | if test "x$enable_maintainer_mode" = xno; then |
6739 | MAINT='#' | |
6740 | else | |
6741 | MAINT= | |
6742 | fi | |
6743 | ||
6744 | ||
79035f0d | 6745 | # Additional info for config.intl. |
56694dd9 | 6746 | |
56694dd9 | 6747 | |
79035f0d NN |
6748 | |
6749 | LIBINTL_DEP= | |
6750 | INCINTL= | |
6751 | case $USE_INCLUDED_LIBINTL in | |
6752 | yes) | |
5da9128a PB |
6753 | LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' ` |
6754 | LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' ` | |
6755 | LIBINTL_DEP='${top_builddir}/../intl/libintl.a' | |
6756 | INCINTL='-I${top_builddir}/../intl' | |
79035f0d NN |
6757 | ;; |
6758 | esac | |
6759 | ||
5213506e | 6760 | ac_config_files="$ac_config_files Makefile config.intl" |
79035f0d NN |
6761 | |
6762 | cat >confcache <<\_ACEOF | |
6eb95e99 ZW |
6763 | # This file is a shell script that caches the results of configure |
6764 | # tests run on this system so they can be shared between configure | |
79035f0d NN |
6765 | # scripts and configure runs, see configure's option --config-cache. |
6766 | # It is not useful on other systems. If it contains results you don't | |
6767 | # want to keep, you may remove or edit it. | |
6eb95e99 | 6768 | # |
79035f0d NN |
6769 | # config.status only pays attention to the cache file if you give it |
6770 | # the --recheck option to rerun configure. | |
6eb95e99 | 6771 | # |
79035f0d NN |
6772 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
6773 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6774 | # following values. | |
6775 | ||
6776 | _ACEOF | |
6777 | ||
6eb95e99 ZW |
6778 | # The following way of writing the cache mishandles newlines in values, |
6779 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 6780 | # So, we kill variables containing newlines. |
6eb95e99 ZW |
6781 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6782 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
6783 | ( |
6784 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6785 | eval ac_val=\$$ac_var | |
6786 | case $ac_val in #( | |
6787 | *${as_nl}*) | |
6788 | case $ac_var in #( | |
6789 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6790 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6791 | esac | |
6792 | case $ac_var in #( | |
6793 | _ | IFS | as_nl) ;; #( | |
6794 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6795 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6796 | esac ;; | |
6797 | esac | |
6798 | done | |
6799 | ||
79035f0d | 6800 | (set) 2>&1 | |
5213506e RW |
6801 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6802 | *${as_nl}ac_space=\ *) | |
6803 | # `set' does not quote correctly, so add quotes: double-quote | |
6804 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
79035f0d | 6805 | sed -n \ |
8ab705be KC |
6806 | "s/'/'\\\\''/g; |
6807 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 6808 | ;; #( |
79035f0d NN |
6809 | *) |
6810 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 6811 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
79035f0d | 6812 | ;; |
5213506e RW |
6813 | esac | |
6814 | sort | |
6815 | ) | | |
79035f0d | 6816 | sed ' |
5213506e | 6817 | /^ac_cv_env_/b end |
79035f0d | 6818 | t clear |
5213506e | 6819 | :clear |
79035f0d NN |
6820 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6821 | t end | |
5213506e RW |
6822 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6823 | :end' >>confcache | |
6824 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6825 | if test -w "$cache_file"; then | |
22e05272 | 6826 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6828 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
6829 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6830 | cat confcache >"$cache_file" | |
6831 | else | |
6832 | case $cache_file in #( | |
6833 | */* | ?:*) | |
6834 | mv -f confcache "$cache_file"$$ && | |
6835 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6836 | *) | |
6837 | mv -f confcache "$cache_file" ;; | |
6838 | esac | |
6839 | fi | |
6840 | fi | |
6eb95e99 | 6841 | else |
5213506e RW |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6843 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6eb95e99 ZW |
6844 | fi |
6845 | fi | |
6846 | rm -f confcache | |
6847 | ||
6848 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6849 | # Let make expand exec_prefix. | |
6850 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6851 | ||
56694dd9 | 6852 | DEFS=-DHAVE_CONFIG_H |
6eb95e99 | 6853 | |
79035f0d NN |
6854 | ac_libobjs= |
6855 | ac_ltlibobjs= | |
22e05272 | 6856 | U= |
79035f0d NN |
6857 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6858 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
6859 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6860 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6861 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6862 | # will be set to the directory where LIBOBJS objects are built. | |
6863 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6864 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
79035f0d NN |
6865 | done |
6866 | LIBOBJS=$ac_libobjs | |
56694dd9 | 6867 | |
79035f0d NN |
6868 | LTLIBOBJS=$ac_ltlibobjs |
6869 | ||
6870 | ||
6871 | ||
22e05272 | 6872 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 6873 | ac_write_fail=0 |
79035f0d NN |
6874 | ac_clean_files_save=$ac_clean_files |
6875 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6877 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6878 | as_write_fail=0 | |
6879 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
79035f0d NN |
6880 | #! $SHELL |
6881 | # Generated by $as_me. | |
6eb95e99 ZW |
6882 | # Run this file to recreate the current configuration. |
6883 | # Compiler output produced by configure, useful for debugging | |
79035f0d | 6884 | # configure, is in config.log if it exists. |
6eb95e99 | 6885 | |
79035f0d NN |
6886 | debug=false |
6887 | ac_cs_recheck=false | |
6888 | ac_cs_silent=false | |
79035f0d | 6889 | |
5213506e RW |
6890 | SHELL=\${CONFIG_SHELL-$SHELL} |
6891 | export SHELL | |
6892 | _ASEOF | |
6893 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6894 | ## -------------------- ## | |
6895 | ## M4sh Initialization. ## | |
6896 | ## -------------------- ## | |
79035f0d | 6897 | |
5213506e RW |
6898 | # Be more Bourne compatible |
6899 | DUALCASE=1; export DUALCASE # for MKS sh | |
6900 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
79035f0d NN |
6901 | emulate sh |
6902 | NULLCMD=: | |
5213506e | 6903 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
79035f0d NN |
6904 | # is contrary to our usage. Disable this feature. |
6905 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
6906 | setopt NO_GLOB_SUBST |
6907 | else | |
6908 | case `(set -o) 2>/dev/null` in #( | |
6909 | *posix*) : | |
6910 | set -o posix ;; #( | |
6911 | *) : | |
6912 | ;; | |
6913 | esac | |
79035f0d NN |
6914 | fi |
6915 | ||
5213506e RW |
6916 | |
6917 | as_nl=' | |
6918 | ' | |
6919 | export as_nl | |
6920 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6921 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6922 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6923 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6924 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6925 | # but without wasting forks for bash or zsh. | |
6926 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6927 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6928 | as_echo='print -r --' | |
6929 | as_echo_n='print -rn --' | |
6930 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6931 | as_echo='printf %s\n' | |
6932 | as_echo_n='printf %s' | |
6933 | else | |
6934 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6935 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6936 | as_echo_n='/usr/ucb/echo -n' | |
6937 | else | |
6938 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6939 | as_echo_n_body='eval | |
6940 | arg=$1; | |
6941 | case $arg in #( | |
6942 | *"$as_nl"*) | |
6943 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6944 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6945 | esac; | |
6946 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6947 | ' | |
6948 | export as_echo_n_body | |
6949 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6950 | fi | |
6951 | export as_echo_body | |
6952 | as_echo='sh -c $as_echo_body as_echo' | |
79035f0d NN |
6953 | fi |
6954 | ||
5213506e RW |
6955 | # The user is always right. |
6956 | if test "${PATH_SEPARATOR+set}" != set; then | |
6957 | PATH_SEPARATOR=: | |
6958 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6959 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6960 | PATH_SEPARATOR=';' | |
6961 | } | |
6962 | fi | |
79035f0d | 6963 | |
5213506e RW |
6964 | |
6965 | # IFS | |
6966 | # We need space, tab and new line, in precisely that order. Quoting is | |
6967 | # there to prevent editors from complaining about space-tab. | |
6968 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6969 | # splitting by setting IFS to empty value.) | |
6970 | IFS=" "" $as_nl" | |
6971 | ||
6972 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 6973 | as_myself= |
5213506e RW |
6974 | case $0 in #(( |
6975 | *[\\/]* ) as_myself=$0 ;; | |
6976 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6977 | for as_dir in $PATH | |
6978 | do | |
6979 | IFS=$as_save_IFS | |
6980 | test -z "$as_dir" && as_dir=. | |
6981 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6982 | done | |
6983 | IFS=$as_save_IFS | |
6984 | ||
6985 | ;; | |
6986 | esac | |
6987 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6988 | # in which case we are not to be found in the path. | |
6989 | if test "x$as_myself" = x; then | |
6990 | as_myself=$0 | |
6991 | fi | |
6992 | if test ! -f "$as_myself"; then | |
6993 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6994 | exit 1 | |
6995 | fi | |
6996 | ||
6997 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6998 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6999 | # suppresses any "Segmentation fault" message there. '((' could | |
7000 | # trigger a bug in pdksh 5.2.14. | |
7001 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7002 | do eval test x\${$as_var+set} = xset \ | |
7003 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7004 | done | |
79035f0d NN |
7005 | PS1='$ ' |
7006 | PS2='> ' | |
7007 | PS4='+ ' | |
7008 | ||
7009 | # NLS nuisances. | |
5213506e RW |
7010 | LC_ALL=C |
7011 | export LC_ALL | |
7012 | LANGUAGE=C | |
7013 | export LANGUAGE | |
7014 | ||
7015 | # CDPATH. | |
7016 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7017 | ||
7018 | ||
22e05272 JM |
7019 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7020 | # ---------------------------------------- | |
5213506e RW |
7021 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7022 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 7023 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
7024 | as_fn_error () |
7025 | { | |
22e05272 JM |
7026 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7027 | if test "$4"; then | |
7028 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7029 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
79035f0d | 7030 | fi |
22e05272 | 7031 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
7032 | as_fn_exit $as_status |
7033 | } # as_fn_error | |
7034 | ||
7035 | ||
7036 | # as_fn_set_status STATUS | |
7037 | # ----------------------- | |
7038 | # Set $? to STATUS, without forking. | |
7039 | as_fn_set_status () | |
7040 | { | |
7041 | return $1 | |
7042 | } # as_fn_set_status | |
7043 | ||
7044 | # as_fn_exit STATUS | |
7045 | # ----------------- | |
7046 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7047 | as_fn_exit () | |
7048 | { | |
7049 | set +e | |
7050 | as_fn_set_status $1 | |
7051 | exit $1 | |
7052 | } # as_fn_exit | |
7053 | ||
7054 | # as_fn_unset VAR | |
7055 | # --------------- | |
7056 | # Portably unset VAR. | |
7057 | as_fn_unset () | |
7058 | { | |
7059 | { eval $1=; unset $1;} | |
7060 | } | |
7061 | as_unset=as_fn_unset | |
7062 | # as_fn_append VAR VALUE | |
7063 | # ---------------------- | |
7064 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7065 | # advantage of any shell optimizations that allow amortized linear growth over | |
7066 | # repeated appends, instead of the typical quadratic growth present in naive | |
7067 | # implementations. | |
7068 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7069 | eval 'as_fn_append () | |
7070 | { | |
7071 | eval $1+=\$2 | |
7072 | }' | |
7073 | else | |
7074 | as_fn_append () | |
7075 | { | |
7076 | eval $1=\$$1\$2 | |
7077 | } | |
7078 | fi # as_fn_append | |
7079 | ||
7080 | # as_fn_arith ARG... | |
7081 | # ------------------ | |
7082 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7083 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7084 | # must be portable across $(()) and expr. | |
7085 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7086 | eval 'as_fn_arith () | |
7087 | { | |
7088 | as_val=$(( $* )) | |
7089 | }' | |
7090 | else | |
7091 | as_fn_arith () | |
7092 | { | |
7093 | as_val=`expr "$@" || test $? -eq 1` | |
7094 | } | |
7095 | fi # as_fn_arith | |
6eb95e99 | 7096 | |
5213506e RW |
7097 | |
7098 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7099 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
79035f0d NN |
7100 | as_expr=expr |
7101 | else | |
7102 | as_expr=false | |
7103 | fi | |
7104 | ||
5213506e | 7105 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
79035f0d NN |
7106 | as_basename=basename |
7107 | else | |
7108 | as_basename=false | |
7109 | fi | |
7110 | ||
5213506e RW |
7111 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7112 | as_dirname=dirname | |
7113 | else | |
7114 | as_dirname=false | |
7115 | fi | |
6eb95e99 | 7116 | |
5213506e | 7117 | as_me=`$as_basename -- "$0" || |
79035f0d NN |
7118 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7119 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
7120 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7121 | $as_echo X/"$0" | | |
7122 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7123 | s//\1/ | |
7124 | q | |
7125 | } | |
7126 | /^X\/\(\/\/\)$/{ | |
7127 | s//\1/ | |
7128 | q | |
7129 | } | |
7130 | /^X\/\(\/\).*/{ | |
7131 | s//\1/ | |
7132 | q | |
7133 | } | |
7134 | s/.*/./; q'` | |
6eb95e99 | 7135 | |
79035f0d NN |
7136 | # Avoid depending upon Character Ranges. |
7137 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7138 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7139 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7140 | as_cr_digits='0123456789' | |
7141 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7142 | ||
5213506e RW |
7143 | ECHO_C= ECHO_N= ECHO_T= |
7144 | case `echo -n x` in #((((( | |
7145 | -n*) | |
7146 | case `echo 'xy\c'` in | |
7147 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7148 | xy) ECHO_C='\c';; | |
7149 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7150 | ECHO_T=' ';; | |
7151 | esac;; | |
7152 | *) | |
7153 | ECHO_N='-n';; | |
79035f0d NN |
7154 | esac |
7155 | ||
5213506e RW |
7156 | rm -f conf$$ conf$$.exe conf$$.file |
7157 | if test -d conf$$.dir; then | |
7158 | rm -f conf$$.dir/conf$$.file | |
79035f0d | 7159 | else |
5213506e RW |
7160 | rm -f conf$$.dir |
7161 | mkdir conf$$.dir 2>/dev/null | |
79035f0d | 7162 | fi |
5213506e RW |
7163 | if (echo >conf$$.file) 2>/dev/null; then |
7164 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
79035f0d | 7165 | as_ln_s='ln -s' |
5213506e RW |
7166 | # ... but there are two gotchas: |
7167 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7168 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 7169 | # In both cases, we have to default to `cp -pR'. |
5213506e | 7170 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 7171 | as_ln_s='cp -pR' |
5213506e RW |
7172 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7173 | as_ln_s=ln | |
7174 | else | |
22e05272 | 7175 | as_ln_s='cp -pR' |
6eb95e99 | 7176 | fi |
79035f0d | 7177 | else |
22e05272 | 7178 | as_ln_s='cp -pR' |
79035f0d | 7179 | fi |
5213506e RW |
7180 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7181 | rmdir conf$$.dir 2>/dev/null | |
7182 | ||
7183 | ||
7184 | # as_fn_mkdir_p | |
7185 | # ------------- | |
7186 | # Create "$as_dir" as a directory, including parents if necessary. | |
7187 | as_fn_mkdir_p () | |
7188 | { | |
7189 | ||
7190 | case $as_dir in #( | |
7191 | -*) as_dir=./$as_dir;; | |
7192 | esac | |
7193 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7194 | as_dirs= | |
7195 | while :; do | |
7196 | case $as_dir in #( | |
7197 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7198 | *) as_qdir=$as_dir;; | |
7199 | esac | |
7200 | as_dirs="'$as_qdir' $as_dirs" | |
7201 | as_dir=`$as_dirname -- "$as_dir" || | |
7202 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7203 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7204 | X"$as_dir" : 'X\(//\)$' \| \ | |
7205 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7206 | $as_echo X"$as_dir" | | |
7207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7208 | s//\1/ | |
7209 | q | |
7210 | } | |
7211 | /^X\(\/\/\)[^/].*/{ | |
7212 | s//\1/ | |
7213 | q | |
7214 | } | |
7215 | /^X\(\/\/\)$/{ | |
7216 | s//\1/ | |
7217 | q | |
7218 | } | |
7219 | /^X\(\/\).*/{ | |
7220 | s//\1/ | |
7221 | q | |
7222 | } | |
7223 | s/.*/./; q'` | |
7224 | test -d "$as_dir" && break | |
7225 | done | |
7226 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 7227 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
79035f0d | 7228 | |
5213506e RW |
7229 | |
7230 | } # as_fn_mkdir_p | |
79035f0d | 7231 | if mkdir -p . 2>/dev/null; then |
5213506e | 7232 | as_mkdir_p='mkdir -p "$as_dir"' |
79035f0d | 7233 | else |
8ab705be | 7234 | test -d ./-p && rmdir ./-p |
79035f0d NN |
7235 | as_mkdir_p=false |
7236 | fi | |
7237 | ||
22e05272 JM |
7238 | |
7239 | # as_fn_executable_p FILE | |
7240 | # ----------------------- | |
7241 | # Test if FILE is an executable regular file. | |
7242 | as_fn_executable_p () | |
7243 | { | |
7244 | test -f "$1" && test -x "$1" | |
7245 | } # as_fn_executable_p | |
7246 | as_test_x='test -x' | |
7247 | as_executable_p=as_fn_executable_p | |
79035f0d NN |
7248 | |
7249 | # Sed expression to map a string onto a valid CPP name. | |
8ab705be | 7250 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
7251 | |
7252 | # Sed expression to map a string onto a valid variable name. | |
8ab705be | 7253 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
7254 | |
7255 | ||
79035f0d | 7256 | exec 6>&1 |
5213506e RW |
7257 | ## ----------------------------------- ## |
7258 | ## Main body of $CONFIG_STATUS script. ## | |
7259 | ## ----------------------------------- ## | |
7260 | _ASEOF | |
7261 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
79035f0d | 7262 | |
5213506e RW |
7263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7264 | # Save the log message, to keep $0 and so on meaningful, and to | |
79035f0d | 7265 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
7266 | # values after options handling. |
7267 | ac_log=" | |
79035f0d | 7268 | This file was extended by $as_me, which was |
22e05272 | 7269 | generated by GNU Autoconf 2.69. Invocation command line was |
79035f0d NN |
7270 | |
7271 | CONFIG_FILES = $CONFIG_FILES | |
7272 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7273 | CONFIG_LINKS = $CONFIG_LINKS | |
7274 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7275 | $ $0 $@ | |
7276 | ||
5213506e RW |
7277 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7278 | " | |
7279 | ||
79035f0d NN |
7280 | _ACEOF |
7281 | ||
5213506e RW |
7282 | case $ac_config_files in *" |
7283 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7284 | esac | |
79035f0d | 7285 | |
5213506e RW |
7286 | case $ac_config_headers in *" |
7287 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7288 | esac | |
79035f0d | 7289 | |
79035f0d | 7290 | |
5213506e RW |
7291 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7292 | # Files that config.status was made for. | |
7293 | config_files="$ac_config_files" | |
7294 | config_headers="$ac_config_headers" | |
7295 | config_commands="$ac_config_commands" | |
79035f0d | 7296 | |
5213506e | 7297 | _ACEOF |
79035f0d | 7298 | |
5213506e | 7299 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
79035f0d | 7300 | ac_cs_usage="\ |
5213506e RW |
7301 | \`$as_me' instantiates files and other configuration actions |
7302 | from templates according to the current configuration. Unless the files | |
7303 | and actions are specified as TAGs, all are instantiated by default. | |
79035f0d | 7304 | |
5213506e | 7305 | Usage: $0 [OPTION]... [TAG]... |
79035f0d NN |
7306 | |
7307 | -h, --help print this help, then exit | |
5213506e | 7308 | -V, --version print version number and configuration settings, then exit |
22e05272 | 7309 | --config print configuration, then exit |
5213506e RW |
7310 | -q, --quiet, --silent |
7311 | do not print progress messages | |
79035f0d NN |
7312 | -d, --debug don't remove temporary files |
7313 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
7314 | --file=FILE[:TEMPLATE] |
7315 | instantiate the configuration file FILE | |
7316 | --header=FILE[:TEMPLATE] | |
7317 | instantiate the configuration header FILE | |
79035f0d NN |
7318 | |
7319 | Configuration files: | |
7320 | $config_files | |
7321 | ||
7322 | Configuration headers: | |
7323 | $config_headers | |
7324 | ||
7325 | Configuration commands: | |
7326 | $config_commands | |
7327 | ||
5213506e | 7328 | Report bugs to the package provider." |
79035f0d | 7329 | |
5213506e RW |
7330 | _ACEOF |
7331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 7332 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
79035f0d NN |
7333 | ac_cs_version="\\ |
7334 | config.status | |
22e05272 JM |
7335 | configured by $0, generated by GNU Autoconf 2.69, |
7336 | with options \\"\$ac_cs_config\\" | |
79035f0d | 7337 | |
22e05272 | 7338 | Copyright (C) 2012 Free Software Foundation, Inc. |
79035f0d NN |
7339 | This config.status script is free software; the Free Software Foundation |
7340 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
7341 | |
7342 | ac_pwd='$ac_pwd' | |
7343 | srcdir='$srcdir' | |
7344 | INSTALL='$INSTALL' | |
7345 | test -n "\$AWK" || AWK=awk | |
79035f0d NN |
7346 | _ACEOF |
7347 | ||
5213506e RW |
7348 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7349 | # The default lists apply if the user does not specify any file. | |
79035f0d NN |
7350 | ac_need_defaults=: |
7351 | while test $# != 0 | |
7352 | do | |
7353 | case $1 in | |
22e05272 | 7354 | --*=?*) |
5213506e RW |
7355 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7356 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
79035f0d NN |
7357 | ac_shift=: |
7358 | ;; | |
22e05272 JM |
7359 | --*=) |
7360 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7361 | ac_optarg= | |
7362 | ac_shift=: | |
7363 | ;; | |
5213506e | 7364 | *) |
79035f0d NN |
7365 | ac_option=$1 |
7366 | ac_optarg=$2 | |
7367 | ac_shift=shift | |
7368 | ;; | |
79035f0d NN |
7369 | esac |
7370 | ||
7371 | case $ac_option in | |
7372 | # Handling of the options. | |
79035f0d NN |
7373 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7374 | ac_cs_recheck=: ;; | |
5213506e RW |
7375 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7376 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
7377 | --config | --confi | --conf | --con | --co | --c ) |
7378 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 7379 | --debug | --debu | --deb | --de | --d | -d ) |
79035f0d NN |
7380 | debug=: ;; |
7381 | --file | --fil | --fi | --f ) | |
7382 | $ac_shift | |
5213506e RW |
7383 | case $ac_optarg in |
7384 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 7385 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
7386 | esac |
7387 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
79035f0d NN |
7388 | ac_need_defaults=false;; |
7389 | --header | --heade | --head | --hea ) | |
7390 | $ac_shift | |
5213506e RW |
7391 | case $ac_optarg in |
7392 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7393 | esac | |
7394 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
79035f0d | 7395 | ac_need_defaults=false;; |
5213506e RW |
7396 | --he | --h) |
7397 | # Conflict between --help and --header | |
22e05272 | 7398 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
7399 | Try \`$0 --help' for more information.";; |
7400 | --help | --hel | -h ) | |
7401 | $as_echo "$ac_cs_usage"; exit ;; | |
79035f0d NN |
7402 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7403 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7404 | ac_cs_silent=: ;; | |
7405 | ||
7406 | # This is an error. | |
22e05272 | 7407 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 7408 | Try \`$0 --help' for more information." ;; |
79035f0d | 7409 | |
5213506e RW |
7410 | *) as_fn_append ac_config_targets " $1" |
7411 | ac_need_defaults=false ;; | |
79035f0d NN |
7412 | |
7413 | esac | |
7414 | shift | |
6eb95e99 | 7415 | done |
79035f0d NN |
7416 | |
7417 | ac_configure_extra_args= | |
7418 | ||
7419 | if $ac_cs_silent; then | |
7420 | exec 6>/dev/null | |
7421 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6eb95e99 ZW |
7422 | fi |
7423 | ||
79035f0d | 7424 | _ACEOF |
5213506e | 7425 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
79035f0d | 7426 | if \$ac_cs_recheck; then |
22e05272 | 7427 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
7428 | shift |
7429 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7430 | CONFIG_SHELL='$SHELL' | |
7431 | export CONFIG_SHELL | |
7432 | exec "\$@" | |
79035f0d | 7433 | fi |
6eb95e99 | 7434 | |
79035f0d | 7435 | _ACEOF |
5213506e RW |
7436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7437 | exec 5>>config.log | |
7438 | { | |
7439 | echo | |
7440 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7441 | ## Running $as_me. ## | |
7442 | _ASBOX | |
7443 | $as_echo "$ac_log" | |
7444 | } >&5 | |
79035f0d | 7445 | |
5213506e RW |
7446 | _ACEOF |
7447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
79035f0d | 7448 | # |
5213506e | 7449 | # INIT-COMMANDS |
79035f0d | 7450 | # |
79035f0d NN |
7451 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
7452 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
7453 | # from automake. | |
7454 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
7455 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
7456 | LINGUAS="${LINGUAS-%UNSET%}" | |
7457 | ||
7458 | ||
7459 | _ACEOF | |
7460 | ||
5213506e | 7461 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
79035f0d | 7462 | |
5213506e | 7463 | # Handling of arguments. |
79035f0d NN |
7464 | for ac_config_target in $ac_config_targets |
7465 | do | |
5213506e RW |
7466 | case $ac_config_target in |
7467 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7468 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7469 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7470 | "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;; | |
7471 | ||
22e05272 | 7472 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6eb95e99 | 7473 | esac |
79035f0d NN |
7474 | done |
7475 | ||
5213506e | 7476 | |
79035f0d NN |
7477 | # If the user did not use the arguments to specify the items to instantiate, |
7478 | # then the envvar interface is used. Set only those that are not. | |
7479 | # We use the long form for the default assignment because of an extremely | |
7480 | # bizarre bug on SunOS 4.1.3. | |
7481 | if $ac_need_defaults; then | |
7482 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7483 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7484 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7485 | fi | |
7486 | ||
7487 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 7488 | # simply because there is no reason against having it here, and in addition, |
79035f0d | 7489 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
7490 | # Hook for its removal unless debugging. |
7491 | # Note that there is a small window in which the directory will not be cleaned: | |
7492 | # after its creation but before its name has been assigned to `$tmp'. | |
79035f0d NN |
7493 | $debug || |
7494 | { | |
22e05272 | 7495 | tmp= ac_tmp= |
5213506e | 7496 | trap 'exit_status=$? |
22e05272 JM |
7497 | : "${ac_tmp:=$tmp}" |
7498 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
7499 | ' 0 |
7500 | trap 'as_fn_exit 1' 1 2 13 15 | |
79035f0d | 7501 | } |
79035f0d | 7502 | # Create a (secure) tmp directory for tmp files. |
6eb95e99 | 7503 | |
79035f0d | 7504 | { |
5213506e | 7505 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 7506 | test -d "$tmp" |
79035f0d NN |
7507 | } || |
7508 | { | |
5213506e RW |
7509 | tmp=./conf$$-$RANDOM |
7510 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
7511 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
7512 | ac_tmp=$tmp | |
5213506e RW |
7513 | |
7514 | # Set up the scripts for CONFIG_FILES section. | |
7515 | # No need to generate them if there are no CONFIG_FILES. | |
7516 | # This happens for instance with `./config.status config.h'. | |
7517 | if test -n "$CONFIG_FILES"; then | |
7518 | ||
7519 | ||
7520 | ac_cr=`echo X | tr X '\015'` | |
7521 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7522 | # But we know of no other shell where ac_cr would be empty at this | |
7523 | # point, so we can use a bashism as a fallback. | |
7524 | if test "x$ac_cr" = x; then | |
7525 | eval ac_cr=\$\'\\r\' | |
7526 | fi | |
7527 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7528 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 7529 | ac_cs_awk_cr='\\r' |
5213506e RW |
7530 | else |
7531 | ac_cs_awk_cr=$ac_cr | |
7532 | fi | |
7533 | ||
22e05272 | 7534 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
7535 | _ACEOF |
7536 | ||
7537 | ||
79035f0d | 7538 | { |
5213506e RW |
7539 | echo "cat >conf$$subs.awk <<_ACEOF" && |
7540 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7541 | echo "_ACEOF" | |
7542 | } >conf$$subs.sh || | |
22e05272 JM |
7543 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7544 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
7545 | ac_delim='%!_!# ' |
7546 | for ac_last_try in false false false false false :; do | |
7547 | . ./conf$$subs.sh || | |
22e05272 | 7548 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
7549 | |
7550 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7551 | if test $ac_delim_n = $ac_delim_num; then | |
7552 | break | |
7553 | elif $ac_last_try; then | |
22e05272 | 7554 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
7555 | else |
7556 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7557 | fi | |
7558 | done | |
7559 | rm -f conf$$subs.sh | |
7560 | ||
7561 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 7562 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
7563 | _ACEOF |
7564 | sed -n ' | |
7565 | h | |
7566 | s/^/S["/; s/!.*/"]=/ | |
7567 | p | |
7568 | g | |
7569 | s/^[^!]*!// | |
7570 | :repl | |
7571 | t repl | |
7572 | s/'"$ac_delim"'$// | |
7573 | t delim | |
7574 | :nl | |
7575 | h | |
22e05272 | 7576 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
7577 | t more1 |
7578 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7579 | p | |
7580 | n | |
7581 | b repl | |
7582 | :more1 | |
7583 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7584 | p | |
7585 | g | |
7586 | s/.\{148\}// | |
7587 | t nl | |
7588 | :delim | |
7589 | h | |
22e05272 | 7590 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
7591 | t more2 |
7592 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7593 | p | |
7594 | b | |
7595 | :more2 | |
7596 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7597 | p | |
7598 | g | |
7599 | s/.\{148\}// | |
7600 | t delim | |
7601 | ' <conf$$subs.awk | sed ' | |
7602 | /^[^""]/{ | |
7603 | N | |
7604 | s/\n// | |
79035f0d | 7605 | } |
5213506e RW |
7606 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
7607 | rm -f conf$$subs.awk | |
7608 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7609 | _ACAWK | |
22e05272 | 7610 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
7611 | for (key in S) S_is_set[key] = 1 |
7612 | FS = "\a" | |
79035f0d | 7613 | |
5213506e RW |
7614 | } |
7615 | { | |
7616 | line = $ 0 | |
7617 | nfields = split(line, field, "@") | |
7618 | substed = 0 | |
7619 | len = length(field[1]) | |
7620 | for (i = 2; i < nfields; i++) { | |
7621 | key = field[i] | |
7622 | keylen = length(key) | |
7623 | if (S_is_set[key]) { | |
7624 | value = S[key] | |
7625 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7626 | len += length(value) + length(field[++i]) | |
7627 | substed = 1 | |
7628 | } else | |
7629 | len += 1 + keylen | |
7630 | } | |
79035f0d | 7631 | |
5213506e RW |
7632 | print line |
7633 | } | |
79035f0d | 7634 | |
5213506e RW |
7635 | _ACAWK |
7636 | _ACEOF | |
7637 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7638 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7639 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7640 | else | |
7641 | cat | |
22e05272 JM |
7642 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
7643 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e | 7644 | _ACEOF |
79035f0d | 7645 | |
22e05272 JM |
7646 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
7647 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
7648 | # trailing colons and then remove the whole line if VPATH becomes empty |
7649 | # (actually we leave an empty line to preserve line numbers). | |
7650 | if test "x$srcdir" = x.; then | |
22e05272 JM |
7651 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
7652 | h | |
7653 | s/// | |
7654 | s/^/:/ | |
7655 | s/[ ]*$/:/ | |
7656 | s/:\$(srcdir):/:/g | |
7657 | s/:\${srcdir}:/:/g | |
7658 | s/:@srcdir@:/:/g | |
7659 | s/^:*// | |
5213506e | 7660 | s/:*$// |
22e05272 JM |
7661 | x |
7662 | s/\(=[ ]*\).*/\1/ | |
7663 | G | |
7664 | s/\n// | |
5213506e RW |
7665 | s/^[^=]*=[ ]*$// |
7666 | }' | |
7667 | fi | |
79035f0d | 7668 | |
5213506e RW |
7669 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7670 | fi # test -n "$CONFIG_FILES" | |
7671 | ||
7672 | # Set up the scripts for CONFIG_HEADERS section. | |
7673 | # No need to generate them if there are no CONFIG_HEADERS. | |
7674 | # This happens for instance with `./config.status Makefile'. | |
7675 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 7676 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e | 7677 | BEGIN { |
79035f0d NN |
7678 | _ACEOF |
7679 | ||
5213506e RW |
7680 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
7681 | # here-document in config.status, that substitutes the proper values into | |
7682 | # config.h.in to produce config.h. | |
7683 | ||
7684 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7685 | # handling of long lines. | |
7686 | ac_delim='%!_!# ' | |
7687 | for ac_last_try in false false :; do | |
22e05272 JM |
7688 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
7689 | if test -z "$ac_tt"; then | |
5213506e RW |
7690 | break |
7691 | elif $ac_last_try; then | |
22e05272 | 7692 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
7693 | else |
7694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
56694dd9 | 7695 | fi |
5213506e | 7696 | done |
6eb95e99 | 7697 | |
5213506e RW |
7698 | # For the awk script, D is an array of macro values keyed by name, |
7699 | # likewise P contains macro parameters if any. Preserve backslash | |
7700 | # newline sequences. | |
7701 | ||
7702 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7703 | sed -n ' | |
7704 | s/.\{148\}/&'"$ac_delim"'/g | |
7705 | t rset | |
7706 | :rset | |
7707 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7708 | t def | |
7709 | d | |
7710 | :def | |
7711 | s/\\$// | |
7712 | t bsnl | |
7713 | s/["\\]/\\&/g | |
7714 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7715 | D["\1"]=" \3"/p | |
7716 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7717 | d | |
7718 | :bsnl | |
7719 | s/["\\]/\\&/g | |
7720 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7721 | D["\1"]=" \3\\\\\\n"\\/p | |
7722 | t cont | |
7723 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7724 | t cont | |
7725 | d | |
7726 | :cont | |
7727 | n | |
7728 | s/.\{148\}/&'"$ac_delim"'/g | |
7729 | t clear | |
7730 | :clear | |
7731 | s/\\$// | |
7732 | t bsnlc | |
7733 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7734 | d | |
7735 | :bsnlc | |
7736 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7737 | b cont | |
7738 | ' <confdefs.h | sed ' | |
7739 | s/'"$ac_delim"'/"\\\ | |
7740 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7741 | ||
7742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7743 | for (key in D) D_is_set[key] = 1 | |
7744 | FS = "\a" | |
7745 | } | |
7746 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7747 | line = \$ 0 | |
7748 | split(line, arg, " ") | |
7749 | if (arg[1] == "#") { | |
7750 | defundef = arg[2] | |
7751 | mac1 = arg[3] | |
7752 | } else { | |
7753 | defundef = substr(arg[1], 2) | |
7754 | mac1 = arg[2] | |
7755 | } | |
7756 | split(mac1, mac2, "(") #) | |
7757 | macro = mac2[1] | |
7758 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7759 | if (D_is_set[macro]) { | |
7760 | # Preserve the white space surrounding the "#". | |
7761 | print prefix "define", macro P[macro] D[macro] | |
7762 | next | |
7763 | } else { | |
7764 | # Replace #undef with comments. This is necessary, for example, | |
7765 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7766 | # on some systems where configure will not decide to define it. | |
7767 | if (defundef == "undef") { | |
7768 | print "/*", prefix defundef, macro, "*/" | |
7769 | next | |
7770 | } | |
7771 | } | |
7772 | } | |
7773 | { print } | |
7774 | _ACAWK | |
79035f0d | 7775 | _ACEOF |
5213506e | 7776 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 7777 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
7778 | fi # test -n "$CONFIG_HEADERS" |
7779 | ||
7780 | ||
7781 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
7782 | shift | |
7783 | for ac_tag | |
7784 | do | |
7785 | case $ac_tag in | |
7786 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7787 | esac | |
7788 | case $ac_mode$ac_tag in | |
7789 | :[FHL]*:*);; | |
22e05272 | 7790 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
7791 | :[FH]-) ac_tag=-:-;; |
7792 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7793 | esac | |
7794 | ac_save_IFS=$IFS | |
7795 | IFS=: | |
7796 | set x $ac_tag | |
7797 | IFS=$ac_save_IFS | |
7798 | shift | |
7799 | ac_file=$1 | |
7800 | shift | |
7801 | ||
7802 | case $ac_mode in | |
7803 | :L) ac_source=$1;; | |
7804 | :[FH]) | |
7805 | ac_file_inputs= | |
7806 | for ac_f | |
7807 | do | |
7808 | case $ac_f in | |
22e05272 | 7809 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
7810 | *) # Look for the file first in the build tree, then in the source tree |
7811 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7812 | # because $ac_f cannot contain `:'. | |
7813 | test -f "$ac_f" || | |
7814 | case $ac_f in | |
7815 | [\\/$]*) false;; | |
7816 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7817 | esac || | |
22e05272 | 7818 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
7819 | esac |
7820 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7821 | as_fn_append ac_file_inputs " '$ac_f'" | |
7822 | done | |
7823 | ||
7824 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7825 | # use $as_me), people would be surprised to read: | |
7826 | # /* config.h. Generated by config.status. */ | |
7827 | configure_input='Generated from '` | |
7828 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7829 | `' by configure.' | |
7830 | if test x"$ac_file" != x-; then | |
7831 | configure_input="$ac_file. $configure_input" | |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7833 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7834 | fi | |
7835 | # Neutralize special characters interpreted by sed in replacement strings. | |
7836 | case $configure_input in #( | |
7837 | *\&* | *\|* | *\\* ) | |
7838 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7839 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7840 | *) ac_sed_conf_input=$configure_input;; | |
7841 | esac | |
7842 | ||
7843 | case $ac_tag in | |
22e05272 JM |
7844 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
7845 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
7846 | esac |
7847 | ;; | |
6eb95e99 ZW |
7848 | esac |
7849 | ||
5213506e | 7850 | ac_dir=`$as_dirname -- "$ac_file" || |
79035f0d | 7851 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8ab705be KC |
7852 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7853 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
7854 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7855 | $as_echo X"$ac_file" | | |
7856 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7857 | s//\1/ | |
7858 | q | |
7859 | } | |
7860 | /^X\(\/\/\)[^/].*/{ | |
7861 | s//\1/ | |
7862 | q | |
7863 | } | |
7864 | /^X\(\/\/\)$/{ | |
7865 | s//\1/ | |
7866 | q | |
7867 | } | |
7868 | /^X\(\/\).*/{ | |
7869 | s//\1/ | |
7870 | q | |
7871 | } | |
7872 | s/.*/./; q'` | |
7873 | as_dir="$ac_dir"; as_fn_mkdir_p | |
79035f0d NN |
7874 | ac_builddir=. |
7875 | ||
5213506e RW |
7876 | case "$ac_dir" in |
7877 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7878 | *) | |
7879 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7880 | # A ".." for each directory in $ac_dir_suffix. | |
7881 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7882 | case $ac_top_builddir_sub in | |
7883 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7884 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7885 | esac ;; | |
7886 | esac | |
7887 | ac_abs_top_builddir=$ac_pwd | |
7888 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7889 | # for backward compatibility: | |
7890 | ac_top_builddir=$ac_top_build_prefix | |
79035f0d NN |
7891 | |
7892 | case $srcdir in | |
5213506e | 7893 | .) # We are building in place. |
79035f0d | 7894 | ac_srcdir=. |
5213506e RW |
7895 | ac_top_srcdir=$ac_top_builddir_sub |
7896 | ac_abs_top_srcdir=$ac_pwd ;; | |
7897 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
79035f0d | 7898 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
7899 | ac_top_srcdir=$srcdir |
7900 | ac_abs_top_srcdir=$srcdir ;; | |
7901 | *) # Relative name. | |
7902 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7903 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7904 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
79035f0d | 7905 | esac |
5213506e | 7906 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8ab705be | 7907 | |
6eb95e99 | 7908 | |
5213506e RW |
7909 | case $ac_mode in |
7910 | :F) | |
7911 | # | |
7912 | # CONFIG_FILE | |
7913 | # | |
79035f0d NN |
7914 | |
7915 | case $INSTALL in | |
7916 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 7917 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
56694dd9 | 7918 | esac |
5213506e | 7919 | _ACEOF |
6eb95e99 | 7920 | |
5213506e RW |
7921 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7922 | # If the template does not know about datarootdir, expand it. | |
7923 | # FIXME: This hack should be removed a few years after 2.60. | |
7924 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7925 | ac_sed_dataroot=' | |
7926 | /datarootdir/ { | |
7927 | p | |
7928 | q | |
7929 | } | |
7930 | /@datadir@/p | |
7931 | /@docdir@/p | |
7932 | /@infodir@/p | |
7933 | /@localedir@/p | |
7934 | /@mandir@/p' | |
7935 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7936 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7937 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7939 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7940 | _ACEOF | |
7941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7942 | ac_datarootdir_hack=' | |
7943 | s&@datadir@&$datadir&g | |
7944 | s&@docdir@&$docdir&g | |
7945 | s&@infodir@&$infodir&g | |
7946 | s&@localedir@&$localedir&g | |
7947 | s&@mandir@&$mandir&g | |
7948 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7949 | esac | |
79035f0d | 7950 | _ACEOF |
5213506e RW |
7951 | |
7952 | # Neutralize VPATH when `$srcdir' = `.'. | |
7953 | # Shell code in configure.ac might set extrasub. | |
7954 | # FIXME: do we really want to maintain this feature? | |
7955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7956 | ac_sed_extra="$ac_vpsub | |
79035f0d NN |
7957 | $extrasub |
7958 | _ACEOF | |
5213506e | 7959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
79035f0d NN |
7960 | :t |
7961 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
7962 | s|@configure_input@|$ac_sed_conf_input|;t t |
7963 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7964 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7965 | s&@srcdir@&$ac_srcdir&;t t | |
7966 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7967 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7968 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7969 | s&@builddir@&$ac_builddir&;t t | |
7970 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7971 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7972 | s&@INSTALL@&$ac_INSTALL&;t t | |
7973 | $ac_datarootdir_hack | |
7974 | " | |
22e05272 JM |
7975 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
7976 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
7977 | |
7978 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
7979 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
7980 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
7981 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 7983 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 7984 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 7985 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 7986 | |
22e05272 | 7987 | rm -f "$ac_tmp/stdin" |
79035f0d | 7988 | case $ac_file in |
22e05272 JM |
7989 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
7990 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 7991 | esac \ |
22e05272 | 7992 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
7993 | ;; |
7994 | :H) | |
7995 | # | |
7996 | # CONFIG_HEADER | |
7997 | # | |
79035f0d | 7998 | if test x"$ac_file" != x-; then |
5213506e RW |
7999 | { |
8000 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
8001 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8002 | } >"$ac_tmp/config.h" \ | |
8003 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8004 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8006 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
79035f0d | 8007 | else |
5213506e | 8008 | rm -f "$ac_file" |
22e05272 JM |
8009 | mv "$ac_tmp/config.h" "$ac_file" \ |
8010 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
79035f0d NN |
8011 | fi |
8012 | else | |
5213506e | 8013 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
8014 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8015 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
79035f0d | 8016 | fi |
5213506e | 8017 | ;; |
8ab705be | 8018 | |
5213506e RW |
8019 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8020 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8021 | ;; | |
8022 | esac | |
79035f0d NN |
8023 | |
8024 | ||
5213506e RW |
8025 | case $ac_file$ac_mode in |
8026 | "default-1":C) | |
6eb95e99 ZW |
8027 | for ac_file in $CONFIG_FILES; do |
8028 | # Support "outfile[:infile[:infile...]]" | |
8029 | case "$ac_file" in | |
8030 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8031 | esac | |
8032 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8033 | case "$ac_file" in */Makefile.in) | |
8034 | # Adjust a relative srcdir. | |
8035 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
86dfbd58 | 8036 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
6eb95e99 ZW |
8037 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
8038 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8039 | # In autoconf-2.50 it is called $srcdir. | |
8040 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8041 | case "$ac_given_srcdir" in | |
8042 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8043 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8044 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8045 | esac | |
8046 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8047 | rm -f "$ac_dir/POTFILES" | |
8048 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8049 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8050 | POMAKEFILEDEPS="POTFILES.in" | |
8051 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8052 | # on $ac_dir but don't depend on user-specified configuration | |
8053 | # parameters. | |
8054 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8055 | # The LINGUAS file contains the set of available languages. | |
8056 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
6b1786aa | 8057 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
6eb95e99 ZW |
8058 | fi |
8059 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8060 | # Hide the ALL_LINGUAS assigment from automake. | |
8061 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8062 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8063 | else | |
6b1786aa | 8064 | # The set of available languages was given in configure.ac. |
6eb95e99 ZW |
8065 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
8066 | fi | |
8067 | case "$ac_given_srcdir" in | |
8068 | .) srcdirpre= ;; | |
8069 | *) srcdirpre='$(srcdir)/' ;; | |
8070 | esac | |
8071 | POFILES= | |
8072 | GMOFILES= | |
8073 | UPDATEPOFILES= | |
8074 | DUMMYPOFILES= | |
8075 | for lang in $ALL_LINGUAS; do | |
8076 | POFILES="$POFILES $srcdirpre$lang.po" | |
8077 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8078 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8079 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8080 | done | |
8081 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8082 | # environment variable. | |
8083 | INST_LINGUAS= | |
8084 | if test -n "$ALL_LINGUAS"; then | |
8085 | for presentlang in $ALL_LINGUAS; do | |
8086 | useit=no | |
8087 | if test "%UNSET%" != "$LINGUAS"; then | |
8088 | desiredlanguages="$LINGUAS" | |
8089 | else | |
8090 | desiredlanguages="$ALL_LINGUAS" | |
8091 | fi | |
8092 | for desiredlang in $desiredlanguages; do | |
8093 | # Use the presentlang catalog if desiredlang is | |
8094 | # a. equal to presentlang, or | |
8095 | # b. a variant of presentlang (because in this case, | |
8096 | # presentlang can be used as a fallback for messages | |
8097 | # which are not translated in the desiredlang catalog). | |
8098 | case "$desiredlang" in | |
8099 | "$presentlang"*) useit=yes;; | |
8100 | esac | |
8101 | done | |
8102 | if test $useit = yes; then | |
8103 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8104 | fi | |
8105 | done | |
8106 | fi | |
8107 | CATALOGS= | |
8108 | if test -n "$INST_LINGUAS"; then | |
8109 | for lang in $INST_LINGUAS; do | |
8110 | CATALOGS="$CATALOGS $lang.gmo" | |
8111 | done | |
8112 | fi | |
8113 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
8114 | 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" | |
8115 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
8116 | if test -f "$f"; then | |
8117 | case "$f" in | |
8118 | *.orig | *.bak | *~) ;; | |
8119 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
8120 | esac | |
8121 | fi | |
8122 | done | |
8123 | fi | |
8124 | ;; | |
8125 | esac | |
79035f0d | 8126 | done ;; |
5213506e | 8127 | |
79035f0d | 8128 | esac |
5213506e | 8129 | done # for ac_tag |
6eb95e99 | 8130 | |
79035f0d | 8131 | |
5213506e | 8132 | as_fn_exit 0 |
79035f0d | 8133 | _ACEOF |
79035f0d NN |
8134 | ac_clean_files=$ac_clean_files_save |
8135 | ||
5213506e | 8136 | test $ac_write_fail = 0 || |
22e05272 | 8137 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 8138 | |
79035f0d NN |
8139 | |
8140 | # configure is writing to config.log, and then calls config.status. | |
8141 | # config.status does its own redirection, appending to config.log. | |
8142 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8143 | # by configure, so config.status won't be able to write to it; its | |
8144 | # output is simply discarded. So we exec the FD to /dev/null, | |
8145 | # effectively closing config.log, so it can be properly (re)opened and | |
8146 | # appended to by config.status. When coming back to configure, we | |
8147 | # need to make the FD available again. | |
8148 | if test "$no_create" != yes; then | |
8149 | ac_cs_success=: | |
8150 | ac_config_status_args= | |
8151 | test "$silent" = yes && | |
8152 | ac_config_status_args="$ac_config_status_args --quiet" | |
8153 | exec 5>/dev/null | |
8154 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8155 | exec 5>>config.log | |
8156 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8157 | # would make configure fail if this is the last instruction. | |
22e05272 | 8158 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
8159 | fi |
8160 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8162 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
79035f0d | 8163 | fi |
6eb95e99 | 8164 |