1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.53. |
---|
4 | # |
---|
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
6 | # Free Software Foundation, Inc. |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
11 | as_expr=expr |
---|
12 | else |
---|
13 | as_expr=false |
---|
14 | fi |
---|
15 | |
---|
16 | |
---|
17 | ## --------------------- ## |
---|
18 | ## M4sh Initialization. ## |
---|
19 | ## --------------------- ## |
---|
20 | |
---|
21 | # Be Bourne compatible |
---|
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
23 | emulate sh |
---|
24 | NULLCMD=: |
---|
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
26 | set -o posix |
---|
27 | fi |
---|
28 | |
---|
29 | # NLS nuisances. |
---|
30 | # Support unset when possible. |
---|
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
32 | as_unset=unset |
---|
33 | else |
---|
34 | as_unset=false |
---|
35 | fi |
---|
36 | |
---|
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
---|
38 | { $as_unset LANG || test "${LANG+set}" != set; } || |
---|
39 | { LANG=C; export LANG; } |
---|
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
---|
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
---|
42 | { LC_ALL=C; export LC_ALL; } |
---|
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
---|
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
---|
45 | { LC_TIME=C; export LC_TIME; } |
---|
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
---|
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
---|
48 | { LC_CTYPE=C; export LC_CTYPE; } |
---|
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
---|
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
---|
51 | { LANGUAGE=C; export LANGUAGE; } |
---|
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
---|
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
---|
54 | { LC_COLLATE=C; export LC_COLLATE; } |
---|
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
---|
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
---|
57 | { LC_NUMERIC=C; export LC_NUMERIC; } |
---|
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
---|
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
---|
60 | { LC_MESSAGES=C; export LC_MESSAGES; } |
---|
61 | |
---|
62 | |
---|
63 | # Name of the executable. |
---|
64 | as_me=`(basename "$0") 2>/dev/null || |
---|
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
66 | X"$0" : 'X\(//\)$' \| \ |
---|
67 | X"$0" : 'X\(/\)$' \| \ |
---|
68 | . : '\(.\)' 2>/dev/null || |
---|
69 | echo X/"$0" | |
---|
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
72 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
73 | s/.*/./; q'` |
---|
74 | |
---|
75 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
76 | # Avoid depending upon Character Ranges. |
---|
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
80 | as_cr_digits='0123456789' |
---|
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
82 | |
---|
83 | # The user is always right. |
---|
84 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
85 | echo "#! /bin/sh" >conftest.sh |
---|
86 | echo "exit 0" >>conftest.sh |
---|
87 | chmod +x conftest.sh |
---|
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
---|
89 | PATH_SEPARATOR=';' |
---|
90 | else |
---|
91 | PATH_SEPARATOR=: |
---|
92 | fi |
---|
93 | rm -f conftest.sh |
---|
94 | fi |
---|
95 | |
---|
96 | |
---|
97 | as_lineno_1=$LINENO |
---|
98 | as_lineno_2=$LINENO |
---|
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
102 | # Find who we are. Look in the path if we contain no path at all |
---|
103 | # relative or not. |
---|
104 | case $0 in |
---|
105 | *[\\/]* ) as_myself=$0 ;; |
---|
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
107 | for as_dir in $PATH |
---|
108 | do |
---|
109 | IFS=$as_save_IFS |
---|
110 | test -z "$as_dir" && as_dir=. |
---|
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
112 | done |
---|
113 | |
---|
114 | ;; |
---|
115 | esac |
---|
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
117 | # in which case we are not to be found in the path. |
---|
118 | if test "x$as_myself" = x; then |
---|
119 | as_myself=$0 |
---|
120 | fi |
---|
121 | if test ! -f "$as_myself"; then |
---|
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
123 | { (exit 1); exit 1; }; } |
---|
124 | fi |
---|
125 | case $CONFIG_SHELL in |
---|
126 | '') |
---|
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
129 | do |
---|
130 | IFS=$as_save_IFS |
---|
131 | test -z "$as_dir" && as_dir=. |
---|
132 | for as_base in sh bash ksh sh5; do |
---|
133 | case $as_dir in |
---|
134 | /*) |
---|
135 | if ("$as_dir/$as_base" -c ' |
---|
136 | as_lineno_1=$LINENO |
---|
137 | as_lineno_2=$LINENO |
---|
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
141 | CONFIG_SHELL=$as_dir/$as_base |
---|
142 | export CONFIG_SHELL |
---|
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
144 | fi;; |
---|
145 | esac |
---|
146 | done |
---|
147 | done |
---|
148 | ;; |
---|
149 | esac |
---|
150 | |
---|
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
152 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
153 | # line-number line before each line; the second 'sed' does the real |
---|
154 | # work. The second script uses 'N' to pair each line-number line |
---|
155 | # with the numbered line, and appends trailing '-' during |
---|
156 | # substitution so that $LINENO is not a special case at line end. |
---|
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
159 | sed '=' <$as_myself | |
---|
160 | sed ' |
---|
161 | N |
---|
162 | s,$,-, |
---|
163 | : loop |
---|
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
165 | t loop |
---|
166 | s,-$,, |
---|
167 | s,^['$as_cr_digits']*\n,, |
---|
168 | ' >$as_me.lineno && |
---|
169 | chmod +x $as_me.lineno || |
---|
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
171 | { (exit 1); exit 1; }; } |
---|
172 | |
---|
173 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
174 | # (the dirname of $[0] is not the place where we might find the |
---|
175 | # original and so on. Autoconf is especially sensible to this). |
---|
176 | . ./$as_me.lineno |
---|
177 | # Exit status is that of the last command. |
---|
178 | exit |
---|
179 | } |
---|
180 | |
---|
181 | |
---|
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
183 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
184 | ' ECHO_T=' ' ;; |
---|
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
187 | esac |
---|
188 | |
---|
189 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
190 | as_expr=expr |
---|
191 | else |
---|
192 | as_expr=false |
---|
193 | fi |
---|
194 | |
---|
195 | rm -f conf$$ conf$$.exe conf$$.file |
---|
196 | echo >conf$$.file |
---|
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
198 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
200 | if test -f conf$$.exe; then |
---|
201 | # Don't use ln at all; we don't have any links |
---|
202 | as_ln_s='cp -p' |
---|
203 | else |
---|
204 | as_ln_s='ln -s' |
---|
205 | fi |
---|
206 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
207 | as_ln_s=ln |
---|
208 | else |
---|
209 | as_ln_s='cp -p' |
---|
210 | fi |
---|
211 | rm -f conf$$ conf$$.exe conf$$.file |
---|
212 | |
---|
213 | as_executable_p="test -f" |
---|
214 | |
---|
215 | # Sed expression to map a string onto a valid CPP name. |
---|
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
217 | |
---|
218 | # Sed expression to map a string onto a valid variable name. |
---|
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
220 | |
---|
221 | |
---|
222 | # IFS |
---|
223 | # We need space, tab and new line, in precisely that order. |
---|
224 | as_nl=' |
---|
225 | ' |
---|
226 | IFS=" $as_nl" |
---|
227 | |
---|
228 | # CDPATH. |
---|
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
---|
230 | |
---|
231 | |
---|
232 | # Name of the host. |
---|
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
234 | # so uname gets run too. |
---|
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
236 | |
---|
237 | exec 6>&1 |
---|
238 | |
---|
239 | # |
---|
240 | # Initializations. |
---|
241 | # |
---|
242 | ac_default_prefix=/usr/local |
---|
243 | cross_compiling=no |
---|
244 | subdirs= |
---|
245 | MFLAGS= |
---|
246 | MAKEFLAGS= |
---|
247 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
248 | |
---|
249 | # Maximum number of lines to put in a shell here document. |
---|
250 | # This variable seems obsolete. It should probably be removed, and |
---|
251 | # only ac_max_sed_lines should be used. |
---|
252 | : ${ac_max_here_lines=38} |
---|
253 | |
---|
254 | # Identity of this package. |
---|
255 | PACKAGE_NAME= |
---|
256 | PACKAGE_TARNAME= |
---|
257 | PACKAGE_VERSION= |
---|
258 | PACKAGE_STRING= |
---|
259 | PACKAGE_BUGREPORT= |
---|
260 | |
---|
261 | ac_unique_file="configure.in" |
---|
262 | # Factoring default headers for most tests. |
---|
263 | ac_includes_default="\ |
---|
264 | #include <stdio.h> |
---|
265 | #if HAVE_SYS_TYPES_H |
---|
266 | # include <sys/types.h> |
---|
267 | #endif |
---|
268 | #if HAVE_SYS_STAT_H |
---|
269 | # include <sys/stat.h> |
---|
270 | #endif |
---|
271 | #if STDC_HEADERS |
---|
272 | # include <stdlib.h> |
---|
273 | # include <stddef.h> |
---|
274 | #else |
---|
275 | # if HAVE_STDLIB_H |
---|
276 | # include <stdlib.h> |
---|
277 | # endif |
---|
278 | #endif |
---|
279 | #if HAVE_STRING_H |
---|
280 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
281 | # include <memory.h> |
---|
282 | # endif |
---|
283 | # include <string.h> |
---|
284 | #endif |
---|
285 | #if HAVE_STRINGS_H |
---|
286 | # include <strings.h> |
---|
287 | #endif |
---|
288 | #if HAVE_INTTYPES_H |
---|
289 | # include <inttypes.h> |
---|
290 | #else |
---|
291 | # if HAVE_STDINT_H |
---|
292 | # include <stdint.h> |
---|
293 | # endif |
---|
294 | #endif |
---|
295 | #if HAVE_UNISTD_H |
---|
296 | # include <unistd.h> |
---|
297 | #endif" |
---|
298 | |
---|
299 | |
---|
300 | # Initialize some variables set by options. |
---|
301 | ac_init_help= |
---|
302 | ac_init_version=false |
---|
303 | # The variables have the same names as the options, with |
---|
304 | # dashes changed to underlines. |
---|
305 | cache_file=/dev/null |
---|
306 | exec_prefix=NONE |
---|
307 | no_create= |
---|
308 | no_recursion= |
---|
309 | prefix=NONE |
---|
310 | program_prefix=NONE |
---|
311 | program_suffix=NONE |
---|
312 | program_transform_name=s,x,x, |
---|
313 | silent= |
---|
314 | site= |
---|
315 | srcdir= |
---|
316 | verbose= |
---|
317 | x_includes=NONE |
---|
318 | x_libraries=NONE |
---|
319 | |
---|
320 | # Installation directory options. |
---|
321 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
322 | # and all the variables that are supposed to be based on exec_prefix |
---|
323 | # by default will actually change. |
---|
324 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
325 | bindir='${exec_prefix}/bin' |
---|
326 | sbindir='${exec_prefix}/sbin' |
---|
327 | libexecdir='${exec_prefix}/libexec' |
---|
328 | datadir='${prefix}/share' |
---|
329 | sysconfdir='${prefix}/etc' |
---|
330 | sharedstatedir='${prefix}/com' |
---|
331 | localstatedir='${prefix}/var' |
---|
332 | libdir='${exec_prefix}/lib' |
---|
333 | includedir='${prefix}/include' |
---|
334 | oldincludedir='/usr/include' |
---|
335 | infodir='${prefix}/info' |
---|
336 | mandir='${prefix}/man' |
---|
337 | |
---|
338 | ac_prev= |
---|
339 | for ac_option |
---|
340 | do |
---|
341 | # If the previous option needs an argument, assign it. |
---|
342 | if test -n "$ac_prev"; then |
---|
343 | eval "$ac_prev=\$ac_option" |
---|
344 | ac_prev= |
---|
345 | continue |
---|
346 | fi |
---|
347 | |
---|
348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
349 | |
---|
350 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
351 | |
---|
352 | case $ac_option in |
---|
353 | |
---|
354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
355 | ac_prev=bindir ;; |
---|
356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
357 | bindir=$ac_optarg ;; |
---|
358 | |
---|
359 | -build | --build | --buil | --bui | --bu) |
---|
360 | ac_prev=build_alias ;; |
---|
361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
362 | build_alias=$ac_optarg ;; |
---|
363 | |
---|
364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
366 | ac_prev=cache_file ;; |
---|
367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
369 | cache_file=$ac_optarg ;; |
---|
370 | |
---|
371 | --config-cache | -C) |
---|
372 | cache_file=config.cache ;; |
---|
373 | |
---|
374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
375 | ac_prev=datadir ;; |
---|
376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
377 | | --da=*) |
---|
378 | datadir=$ac_optarg ;; |
---|
379 | |
---|
380 | -disable-* | --disable-*) |
---|
381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
382 | # Reject names that are not valid shell variable names. |
---|
383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
385 | { (exit 1); exit 1; }; } |
---|
386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
387 | eval "enable_$ac_feature=no" ;; |
---|
388 | |
---|
389 | -enable-* | --enable-*) |
---|
390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
391 | # Reject names that are not valid shell variable names. |
---|
392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
394 | { (exit 1); exit 1; }; } |
---|
395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
396 | case $ac_option in |
---|
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
398 | *) ac_optarg=yes ;; |
---|
399 | esac |
---|
400 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
401 | |
---|
402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
404 | | --exec | --exe | --ex) |
---|
405 | ac_prev=exec_prefix ;; |
---|
406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
408 | | --exec=* | --exe=* | --ex=*) |
---|
409 | exec_prefix=$ac_optarg ;; |
---|
410 | |
---|
411 | -gas | --gas | --ga | --g) |
---|
412 | # Obsolete; use --with-gas. |
---|
413 | with_gas=yes ;; |
---|
414 | |
---|
415 | -help | --help | --hel | --he | -h) |
---|
416 | ac_init_help=long ;; |
---|
417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
418 | ac_init_help=recursive ;; |
---|
419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
420 | ac_init_help=short ;; |
---|
421 | |
---|
422 | -host | --host | --hos | --ho) |
---|
423 | ac_prev=host_alias ;; |
---|
424 | -host=* | --host=* | --hos=* | --ho=*) |
---|
425 | host_alias=$ac_optarg ;; |
---|
426 | |
---|
427 | -includedir | --includedir | --includedi | --included | --include \ |
---|
428 | | --includ | --inclu | --incl | --inc) |
---|
429 | ac_prev=includedir ;; |
---|
430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
431 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
432 | includedir=$ac_optarg ;; |
---|
433 | |
---|
434 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
435 | ac_prev=infodir ;; |
---|
436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
437 | infodir=$ac_optarg ;; |
---|
438 | |
---|
439 | -libdir | --libdir | --libdi | --libd) |
---|
440 | ac_prev=libdir ;; |
---|
441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
442 | libdir=$ac_optarg ;; |
---|
443 | |
---|
444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
445 | | --libexe | --libex | --libe) |
---|
446 | ac_prev=libexecdir ;; |
---|
447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
448 | | --libexe=* | --libex=* | --libe=*) |
---|
449 | libexecdir=$ac_optarg ;; |
---|
450 | |
---|
451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
452 | | --localstate | --localstat | --localsta | --localst \ |
---|
453 | | --locals | --local | --loca | --loc | --lo) |
---|
454 | ac_prev=localstatedir ;; |
---|
455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
458 | localstatedir=$ac_optarg ;; |
---|
459 | |
---|
460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
461 | ac_prev=mandir ;; |
---|
462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
463 | mandir=$ac_optarg ;; |
---|
464 | |
---|
465 | -nfp | --nfp | --nf) |
---|
466 | # Obsolete; use --without-fp. |
---|
467 | with_fp=no ;; |
---|
468 | |
---|
469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
470 | | --no-cr | --no-c | -n) |
---|
471 | no_create=yes ;; |
---|
472 | |
---|
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
475 | no_recursion=yes ;; |
---|
476 | |
---|
477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
479 | | --oldin | --oldi | --old | --ol | --o) |
---|
480 | ac_prev=oldincludedir ;; |
---|
481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
484 | oldincludedir=$ac_optarg ;; |
---|
485 | |
---|
486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
487 | ac_prev=prefix ;; |
---|
488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
489 | prefix=$ac_optarg ;; |
---|
490 | |
---|
491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
492 | | --program-pre | --program-pr | --program-p) |
---|
493 | ac_prev=program_prefix ;; |
---|
494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
496 | program_prefix=$ac_optarg ;; |
---|
497 | |
---|
498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
499 | | --program-suf | --program-su | --program-s) |
---|
500 | ac_prev=program_suffix ;; |
---|
501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
503 | program_suffix=$ac_optarg ;; |
---|
504 | |
---|
505 | -program-transform-name | --program-transform-name \ |
---|
506 | | --program-transform-nam | --program-transform-na \ |
---|
507 | | --program-transform-n | --program-transform- \ |
---|
508 | | --program-transform | --program-transfor \ |
---|
509 | | --program-transfo | --program-transf \ |
---|
510 | | --program-trans | --program-tran \ |
---|
511 | | --progr-tra | --program-tr | --program-t) |
---|
512 | ac_prev=program_transform_name ;; |
---|
513 | -program-transform-name=* | --program-transform-name=* \ |
---|
514 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
515 | | --program-transform-n=* | --program-transform-=* \ |
---|
516 | | --program-transform=* | --program-transfor=* \ |
---|
517 | | --program-transfo=* | --program-transf=* \ |
---|
518 | | --program-trans=* | --program-tran=* \ |
---|
519 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
520 | program_transform_name=$ac_optarg ;; |
---|
521 | |
---|
522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
523 | | -silent | --silent | --silen | --sile | --sil) |
---|
524 | silent=yes ;; |
---|
525 | |
---|
526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
527 | ac_prev=sbindir ;; |
---|
528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
529 | | --sbi=* | --sb=*) |
---|
530 | sbindir=$ac_optarg ;; |
---|
531 | |
---|
532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
534 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
535 | | --sha | --sh) |
---|
536 | ac_prev=sharedstatedir ;; |
---|
537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
540 | | --sha=* | --sh=*) |
---|
541 | sharedstatedir=$ac_optarg ;; |
---|
542 | |
---|
543 | -site | --site | --sit) |
---|
544 | ac_prev=site ;; |
---|
545 | -site=* | --site=* | --sit=*) |
---|
546 | site=$ac_optarg ;; |
---|
547 | |
---|
548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
549 | ac_prev=srcdir ;; |
---|
550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
551 | srcdir=$ac_optarg ;; |
---|
552 | |
---|
553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
554 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
555 | ac_prev=sysconfdir ;; |
---|
556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
558 | sysconfdir=$ac_optarg ;; |
---|
559 | |
---|
560 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
561 | ac_prev=target_alias ;; |
---|
562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
563 | target_alias=$ac_optarg ;; |
---|
564 | |
---|
565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
566 | verbose=yes ;; |
---|
567 | |
---|
568 | -version | --version | --versio | --versi | --vers | -V) |
---|
569 | ac_init_version=: ;; |
---|
570 | |
---|
571 | -with-* | --with-*) |
---|
572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
573 | # Reject names that are not valid shell variable names. |
---|
574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
576 | { (exit 1); exit 1; }; } |
---|
577 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
578 | case $ac_option in |
---|
579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
580 | *) ac_optarg=yes ;; |
---|
581 | esac |
---|
582 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
583 | |
---|
584 | -without-* | --without-*) |
---|
585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
586 | # Reject names that are not valid shell variable names. |
---|
587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
589 | { (exit 1); exit 1; }; } |
---|
590 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
591 | eval "with_$ac_package=no" ;; |
---|
592 | |
---|
593 | --x) |
---|
594 | # Obsolete; use --with-x. |
---|
595 | with_x=yes ;; |
---|
596 | |
---|
597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
598 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
599 | ac_prev=x_includes ;; |
---|
600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
602 | x_includes=$ac_optarg ;; |
---|
603 | |
---|
604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
606 | ac_prev=x_libraries ;; |
---|
607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
609 | x_libraries=$ac_optarg ;; |
---|
610 | |
---|
611 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
612 | Try \`$0 --help' for more information." >&2 |
---|
613 | { (exit 1); exit 1; }; } |
---|
614 | ;; |
---|
615 | |
---|
616 | *=*) |
---|
617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
618 | # Reject names that are not valid shell variable names. |
---|
619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
621 | { (exit 1); exit 1; }; } |
---|
622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
623 | eval "$ac_envvar='$ac_optarg'" |
---|
624 | export $ac_envvar ;; |
---|
625 | |
---|
626 | *) |
---|
627 | # FIXME: should be removed in autoconf 3.0. |
---|
628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
632 | ;; |
---|
633 | |
---|
634 | esac |
---|
635 | done |
---|
636 | |
---|
637 | if test -n "$ac_prev"; then |
---|
638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
639 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
640 | { (exit 1); exit 1; }; } |
---|
641 | fi |
---|
642 | |
---|
643 | # Be sure to have absolute paths. |
---|
644 | for ac_var in exec_prefix prefix |
---|
645 | do |
---|
646 | eval ac_val=$`echo $ac_var` |
---|
647 | case $ac_val in |
---|
648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
650 | { (exit 1); exit 1; }; };; |
---|
651 | esac |
---|
652 | done |
---|
653 | |
---|
654 | # Be sure to have absolute paths. |
---|
655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
656 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
657 | do |
---|
658 | eval ac_val=$`echo $ac_var` |
---|
659 | case $ac_val in |
---|
660 | [\\/$]* | ?:[\\/]* ) ;; |
---|
661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
662 | { (exit 1); exit 1; }; };; |
---|
663 | esac |
---|
664 | done |
---|
665 | |
---|
666 | # There might be people who depend on the old broken behavior: `$host' |
---|
667 | # used to hold the argument of --host etc. |
---|
668 | # FIXME: To remove some day. |
---|
669 | build=$build_alias |
---|
670 | host=$host_alias |
---|
671 | target=$target_alias |
---|
672 | |
---|
673 | # FIXME: To remove some day. |
---|
674 | if test "x$host_alias" != x; then |
---|
675 | if test "x$build_alias" = x; then |
---|
676 | cross_compiling=maybe |
---|
677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
678 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
679 | elif test "x$build_alias" != "x$host_alias"; then |
---|
680 | cross_compiling=yes |
---|
681 | fi |
---|
682 | fi |
---|
683 | |
---|
684 | ac_tool_prefix= |
---|
685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
686 | |
---|
687 | test "$silent" = yes && exec 6>/dev/null |
---|
688 | |
---|
689 | |
---|
690 | # Find the source files, if location was not specified. |
---|
691 | if test -z "$srcdir"; then |
---|
692 | ac_srcdir_defaulted=yes |
---|
693 | # Try the directory containing this script, then its parent. |
---|
694 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
696 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
697 | X"$0" : 'X\(//\)$' \| \ |
---|
698 | X"$0" : 'X\(/\)' \| \ |
---|
699 | . : '\(.\)' 2>/dev/null || |
---|
700 | echo X"$0" | |
---|
701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
703 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
704 | /^X\(\/\).*/{ s//\1/; q; } |
---|
705 | s/.*/./; q'` |
---|
706 | srcdir=$ac_confdir |
---|
707 | if test ! -r $srcdir/$ac_unique_file; then |
---|
708 | srcdir=.. |
---|
709 | fi |
---|
710 | else |
---|
711 | ac_srcdir_defaulted=no |
---|
712 | fi |
---|
713 | if test ! -r $srcdir/$ac_unique_file; then |
---|
714 | if test "$ac_srcdir_defaulted" = yes; then |
---|
715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
716 | { (exit 1); exit 1; }; } |
---|
717 | else |
---|
718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
719 | { (exit 1); exit 1; }; } |
---|
720 | fi |
---|
721 | fi |
---|
722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
723 | ac_env_build_alias_set=${build_alias+set} |
---|
724 | ac_env_build_alias_value=$build_alias |
---|
725 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
726 | ac_cv_env_build_alias_value=$build_alias |
---|
727 | ac_env_host_alias_set=${host_alias+set} |
---|
728 | ac_env_host_alias_value=$host_alias |
---|
729 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
730 | ac_cv_env_host_alias_value=$host_alias |
---|
731 | ac_env_target_alias_set=${target_alias+set} |
---|
732 | ac_env_target_alias_value=$target_alias |
---|
733 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
734 | ac_cv_env_target_alias_value=$target_alias |
---|
735 | ac_env_CC_set=${CC+set} |
---|
736 | ac_env_CC_value=$CC |
---|
737 | ac_cv_env_CC_set=${CC+set} |
---|
738 | ac_cv_env_CC_value=$CC |
---|
739 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
740 | ac_env_CFLAGS_value=$CFLAGS |
---|
741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
742 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
743 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
744 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
746 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
748 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
751 | ac_env_CPP_set=${CPP+set} |
---|
752 | ac_env_CPP_value=$CPP |
---|
753 | ac_cv_env_CPP_set=${CPP+set} |
---|
754 | ac_cv_env_CPP_value=$CPP |
---|
755 | |
---|
756 | # |
---|
757 | # Report the --help message. |
---|
758 | # |
---|
759 | if test "$ac_init_help" = "long"; then |
---|
760 | # Omit some internal or obsolete options to make the list less imposing. |
---|
761 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
762 | cat <<_ACEOF |
---|
763 | \`configure' configures this package to adapt to many kinds of systems. |
---|
764 | |
---|
765 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
766 | |
---|
767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
768 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
769 | |
---|
770 | Defaults for the options are specified in brackets. |
---|
771 | |
---|
772 | Configuration: |
---|
773 | -h, --help display this help and exit |
---|
774 | --help=short display options specific to this package |
---|
775 | --help=recursive display the short help of all the included packages |
---|
776 | -V, --version display version information and exit |
---|
777 | -q, --quiet, --silent do not print \`checking...' messages |
---|
778 | --cache-file=FILE cache test results in FILE [disabled] |
---|
779 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
780 | -n, --no-create do not create output files |
---|
781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
782 | |
---|
783 | _ACEOF |
---|
784 | |
---|
785 | cat <<_ACEOF |
---|
786 | Installation directories: |
---|
787 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
788 | [$ac_default_prefix] |
---|
789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
790 | [PREFIX] |
---|
791 | |
---|
792 | By default, \`make install' will install all the files in |
---|
793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
795 | for instance \`--prefix=\$HOME'. |
---|
796 | |
---|
797 | For better control, use the options below. |
---|
798 | |
---|
799 | Fine tuning of the installation directories: |
---|
800 | --bindir=DIR user executables [EPREFIX/bin] |
---|
801 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
802 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
807 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
808 | --includedir=DIR C header files [PREFIX/include] |
---|
809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
810 | --infodir=DIR info documentation [PREFIX/info] |
---|
811 | --mandir=DIR man documentation [PREFIX/man] |
---|
812 | _ACEOF |
---|
813 | |
---|
814 | cat <<\_ACEOF |
---|
815 | |
---|
816 | Program names: |
---|
817 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
818 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
819 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
820 | _ACEOF |
---|
821 | fi |
---|
822 | |
---|
823 | if test -n "$ac_init_help"; then |
---|
824 | |
---|
825 | cat <<\_ACEOF |
---|
826 | |
---|
827 | Optional Features: |
---|
828 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
829 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
830 | --enable-compile-warnings=no/minimum/yes/maximum/error Turn on compiler warnings. |
---|
831 | --enable-iso-c Try to warn if code is not ISO C |
---|
832 | |
---|
833 | Optional Packages: |
---|
834 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
835 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
836 | --with-gconf-source=sourceaddress Config database for installing schema files. |
---|
837 | --with-gconf-schema-file-dir=dir Directory for installing schema files. |
---|
838 | |
---|
839 | Some influential environment variables: |
---|
840 | CC C compiler command |
---|
841 | CFLAGS C compiler flags |
---|
842 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
843 | nonstandard directory <lib dir> |
---|
844 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
845 | headers in a nonstandard directory <include dir> |
---|
846 | CPP C preprocessor |
---|
847 | |
---|
848 | Use these variables to override the choices made by `configure' or to help |
---|
849 | it to find libraries and programs with nonstandard names/locations. |
---|
850 | |
---|
851 | _ACEOF |
---|
852 | fi |
---|
853 | |
---|
854 | if test "$ac_init_help" = "recursive"; then |
---|
855 | # If there are subdirs, report their specific --help. |
---|
856 | ac_popdir=`pwd` |
---|
857 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
858 | test -d $ac_dir || continue |
---|
859 | ac_builddir=. |
---|
860 | |
---|
861 | if test "$ac_dir" != .; then |
---|
862 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
863 | # A "../" for each directory in $ac_dir_suffix. |
---|
864 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
865 | else |
---|
866 | ac_dir_suffix= ac_top_builddir= |
---|
867 | fi |
---|
868 | |
---|
869 | case $srcdir in |
---|
870 | .) # No --srcdir option. We are building in place. |
---|
871 | ac_srcdir=. |
---|
872 | if test -z "$ac_top_builddir"; then |
---|
873 | ac_top_srcdir=. |
---|
874 | else |
---|
875 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
876 | fi ;; |
---|
877 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
878 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
879 | ac_top_srcdir=$srcdir ;; |
---|
880 | *) # Relative path. |
---|
881 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
882 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
883 | esac |
---|
884 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
885 | # absolute. |
---|
886 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
887 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
---|
888 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
889 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
890 | |
---|
891 | cd $ac_dir |
---|
892 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
893 | if test -f $ac_srcdir/configure.gnu; then |
---|
894 | echo |
---|
895 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
896 | elif test -f $ac_srcdir/configure; then |
---|
897 | echo |
---|
898 | $SHELL $ac_srcdir/configure --help=recursive |
---|
899 | elif test -f $ac_srcdir/configure.ac || |
---|
900 | test -f $ac_srcdir/configure.in; then |
---|
901 | echo |
---|
902 | $ac_configure --help |
---|
903 | else |
---|
904 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
905 | fi |
---|
906 | cd $ac_popdir |
---|
907 | done |
---|
908 | fi |
---|
909 | |
---|
910 | test -n "$ac_init_help" && exit 0 |
---|
911 | if $ac_init_version; then |
---|
912 | cat <<\_ACEOF |
---|
913 | |
---|
914 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
915 | Free Software Foundation, Inc. |
---|
916 | This configure script is free software; the Free Software Foundation |
---|
917 | gives unlimited permission to copy, distribute and modify it. |
---|
918 | _ACEOF |
---|
919 | exit 0 |
---|
920 | fi |
---|
921 | exec 5>config.log |
---|
922 | cat >&5 <<_ACEOF |
---|
923 | This file contains any messages produced by compilers while |
---|
924 | running configure, to aid debugging if configure makes a mistake. |
---|
925 | |
---|
926 | It was created by $as_me, which was |
---|
927 | generated by GNU Autoconf 2.53. Invocation command line was |
---|
928 | |
---|
929 | $ $0 $@ |
---|
930 | |
---|
931 | _ACEOF |
---|
932 | { |
---|
933 | cat <<_ASUNAME |
---|
934 | ## --------- ## |
---|
935 | ## Platform. ## |
---|
936 | ## --------- ## |
---|
937 | |
---|
938 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
939 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
940 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
941 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
942 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
943 | |
---|
944 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
945 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
946 | |
---|
947 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
948 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
949 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
950 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
951 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
952 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
953 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
954 | |
---|
955 | _ASUNAME |
---|
956 | |
---|
957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
958 | for as_dir in $PATH |
---|
959 | do |
---|
960 | IFS=$as_save_IFS |
---|
961 | test -z "$as_dir" && as_dir=. |
---|
962 | echo "PATH: $as_dir" |
---|
963 | done |
---|
964 | |
---|
965 | } >&5 |
---|
966 | |
---|
967 | cat >&5 <<_ACEOF |
---|
968 | |
---|
969 | |
---|
970 | ## ----------- ## |
---|
971 | ## Core tests. ## |
---|
972 | ## ----------- ## |
---|
973 | |
---|
974 | _ACEOF |
---|
975 | |
---|
976 | |
---|
977 | # Keep a trace of the command line. |
---|
978 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
979 | # Also quote any args containing shell meta-characters. |
---|
980 | ac_configure_args= |
---|
981 | ac_sep= |
---|
982 | for ac_arg |
---|
983 | do |
---|
984 | case $ac_arg in |
---|
985 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
986 | | --no-cr | --no-c | -n ) continue ;; |
---|
987 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
988 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
989 | continue ;; |
---|
990 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
991 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
992 | esac |
---|
993 | case " $ac_configure_args " in |
---|
994 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
995 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
996 | ac_sep=" " ;; |
---|
997 | esac |
---|
998 | # Get rid of the leading space. |
---|
999 | done |
---|
1000 | |
---|
1001 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1002 | # config.log. We remove comments because anyway the quotes in there |
---|
1003 | # would cause problems or look ugly. |
---|
1004 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1005 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1006 | trap 'exit_status=$? |
---|
1007 | # Save into config.log some information that might help in debugging. |
---|
1008 | { |
---|
1009 | echo |
---|
1010 | cat <<\_ASBOX |
---|
1011 | ## ---------------- ## |
---|
1012 | ## Cache variables. ## |
---|
1013 | ## ---------------- ## |
---|
1014 | _ASBOX |
---|
1015 | echo |
---|
1016 | # The following way of writing the cache mishandles newlines in values, |
---|
1017 | { |
---|
1018 | (set) 2>&1 | |
---|
1019 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1020 | *ac_space=\ *) |
---|
1021 | sed -n \ |
---|
1022 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1023 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1024 | ;; |
---|
1025 | *) |
---|
1026 | sed -n \ |
---|
1027 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1028 | ;; |
---|
1029 | esac; |
---|
1030 | } |
---|
1031 | echo |
---|
1032 | if test -s confdefs.h; then |
---|
1033 | cat <<\_ASBOX |
---|
1034 | ## ----------- ## |
---|
1035 | ## confdefs.h. ## |
---|
1036 | ## ----------- ## |
---|
1037 | _ASBOX |
---|
1038 | echo |
---|
1039 | sed "/^$/d" confdefs.h |
---|
1040 | echo |
---|
1041 | fi |
---|
1042 | test "$ac_signal" != 0 && |
---|
1043 | echo "$as_me: caught signal $ac_signal" |
---|
1044 | echo "$as_me: exit $exit_status" |
---|
1045 | } >&5 |
---|
1046 | rm -f core core.* *.core && |
---|
1047 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1048 | exit $exit_status |
---|
1049 | ' 0 |
---|
1050 | for ac_signal in 1 2 13 15; do |
---|
1051 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1052 | done |
---|
1053 | ac_signal=0 |
---|
1054 | |
---|
1055 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1056 | rm -rf conftest* confdefs.h |
---|
1057 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1058 | echo >confdefs.h |
---|
1059 | |
---|
1060 | # Predefined preprocessor variables. |
---|
1061 | |
---|
1062 | cat >>confdefs.h <<_ACEOF |
---|
1063 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1064 | _ACEOF |
---|
1065 | |
---|
1066 | |
---|
1067 | cat >>confdefs.h <<_ACEOF |
---|
1068 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1069 | _ACEOF |
---|
1070 | |
---|
1071 | |
---|
1072 | cat >>confdefs.h <<_ACEOF |
---|
1073 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1074 | _ACEOF |
---|
1075 | |
---|
1076 | |
---|
1077 | cat >>confdefs.h <<_ACEOF |
---|
1078 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1079 | _ACEOF |
---|
1080 | |
---|
1081 | |
---|
1082 | cat >>confdefs.h <<_ACEOF |
---|
1083 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1084 | _ACEOF |
---|
1085 | |
---|
1086 | |
---|
1087 | # Let the site file select an alternate cache file if it wants to. |
---|
1088 | # Prefer explicitly selected file to automatically selected ones. |
---|
1089 | if test -z "$CONFIG_SITE"; then |
---|
1090 | if test "x$prefix" != xNONE; then |
---|
1091 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1092 | else |
---|
1093 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1094 | fi |
---|
1095 | fi |
---|
1096 | for ac_site_file in $CONFIG_SITE; do |
---|
1097 | if test -r "$ac_site_file"; then |
---|
1098 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1099 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1100 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1101 | . "$ac_site_file" |
---|
1102 | fi |
---|
1103 | done |
---|
1104 | |
---|
1105 | if test -r "$cache_file"; then |
---|
1106 | # Some versions of bash will fail to source /dev/null (special |
---|
1107 | # files actually), so we avoid doing that. |
---|
1108 | if test -f "$cache_file"; then |
---|
1109 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1110 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1111 | case $cache_file in |
---|
1112 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1113 | *) . ./$cache_file;; |
---|
1114 | esac |
---|
1115 | fi |
---|
1116 | else |
---|
1117 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1118 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1119 | >$cache_file |
---|
1120 | fi |
---|
1121 | |
---|
1122 | # Check that the precious variables saved in the cache have kept the same |
---|
1123 | # value. |
---|
1124 | ac_cache_corrupted=false |
---|
1125 | for ac_var in `(set) 2>&1 | |
---|
1126 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1127 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1128 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1129 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1130 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1131 | case $ac_old_set,$ac_new_set in |
---|
1132 | set,) |
---|
1133 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1134 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1135 | ac_cache_corrupted=: ;; |
---|
1136 | ,set) |
---|
1137 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1138 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1139 | ac_cache_corrupted=: ;; |
---|
1140 | ,);; |
---|
1141 | *) |
---|
1142 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1143 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1144 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1145 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1146 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1147 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1148 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1149 | ac_cache_corrupted=: |
---|
1150 | fi;; |
---|
1151 | esac |
---|
1152 | # Pass precious variables to config.status. |
---|
1153 | if test "$ac_new_set" = set; then |
---|
1154 | case $ac_new_val in |
---|
1155 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1156 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1157 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1158 | esac |
---|
1159 | case " $ac_configure_args " in |
---|
1160 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1161 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1162 | esac |
---|
1163 | fi |
---|
1164 | done |
---|
1165 | if $ac_cache_corrupted; then |
---|
1166 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1167 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1168 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1169 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1170 | { (exit 1); exit 1; }; } |
---|
1171 | fi |
---|
1172 | |
---|
1173 | ac_ext=c |
---|
1174 | ac_cpp='$CPP $CPPFLAGS' |
---|
1175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1178 | |
---|
1179 | |
---|
1180 | |
---|
1181 | |
---|
1182 | |
---|
1183 | |
---|
1184 | |
---|
1185 | |
---|
1186 | |
---|
1187 | |
---|
1188 | |
---|
1189 | |
---|
1190 | |
---|
1191 | |
---|
1192 | |
---|
1193 | |
---|
1194 | |
---|
1195 | |
---|
1196 | am__api_version="1.4" |
---|
1197 | ac_aux_dir= |
---|
1198 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1199 | if test -f $ac_dir/install-sh; then |
---|
1200 | ac_aux_dir=$ac_dir |
---|
1201 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1202 | break |
---|
1203 | elif test -f $ac_dir/install.sh; then |
---|
1204 | ac_aux_dir=$ac_dir |
---|
1205 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1206 | break |
---|
1207 | elif test -f $ac_dir/shtool; then |
---|
1208 | ac_aux_dir=$ac_dir |
---|
1209 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1210 | break |
---|
1211 | fi |
---|
1212 | done |
---|
1213 | if test -z "$ac_aux_dir"; then |
---|
1214 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1215 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1216 | { (exit 1); exit 1; }; } |
---|
1217 | fi |
---|
1218 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1219 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1220 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1221 | |
---|
1222 | # Find a good install program. We prefer a C program (faster), |
---|
1223 | # so one script is as good as another. But avoid the broken or |
---|
1224 | # incompatible versions: |
---|
1225 | # SysV /etc/install, /usr/sbin/install |
---|
1226 | # SunOS /usr/etc/install |
---|
1227 | # IRIX /sbin/install |
---|
1228 | # AIX /bin/install |
---|
1229 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1230 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1231 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1232 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1233 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1234 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1235 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1236 | if test -z "$INSTALL"; then |
---|
1237 | if test "${ac_cv_path_install+set}" = set; then |
---|
1238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1239 | else |
---|
1240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1241 | for as_dir in $PATH |
---|
1242 | do |
---|
1243 | IFS=$as_save_IFS |
---|
1244 | test -z "$as_dir" && as_dir=. |
---|
1245 | # Account for people who put trailing slashes in PATH elements. |
---|
1246 | case $as_dir/ in |
---|
1247 | ./ | .// | /cC/* | \ |
---|
1248 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1249 | /usr/ucb/* ) ;; |
---|
1250 | *) |
---|
1251 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1252 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1253 | # by default. |
---|
1254 | for ac_prog in ginstall scoinst install; do |
---|
1255 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1256 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1257 | if test $ac_prog = install && |
---|
1258 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1259 | # AIX install. It has an incompatible calling convention. |
---|
1260 | : |
---|
1261 | elif test $ac_prog = install && |
---|
1262 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1263 | # program-specific install script used by HP pwplus--don't use. |
---|
1264 | : |
---|
1265 | else |
---|
1266 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1267 | break 3 |
---|
1268 | fi |
---|
1269 | fi |
---|
1270 | done |
---|
1271 | done |
---|
1272 | ;; |
---|
1273 | esac |
---|
1274 | done |
---|
1275 | |
---|
1276 | |
---|
1277 | fi |
---|
1278 | if test "${ac_cv_path_install+set}" = set; then |
---|
1279 | INSTALL=$ac_cv_path_install |
---|
1280 | else |
---|
1281 | # As a last resort, use the slow shell script. We don't cache a |
---|
1282 | # path for INSTALL within a source directory, because that will |
---|
1283 | # break other packages using the cache if that directory is |
---|
1284 | # removed, or if the path is relative. |
---|
1285 | INSTALL=$ac_install_sh |
---|
1286 | fi |
---|
1287 | fi |
---|
1288 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1289 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1290 | |
---|
1291 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1292 | # It thinks the first close brace ends the variable substitution. |
---|
1293 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1294 | |
---|
1295 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1296 | |
---|
1297 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1298 | |
---|
1299 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1300 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1301 | # Just in case |
---|
1302 | sleep 1 |
---|
1303 | echo timestamp > conftestfile |
---|
1304 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1305 | # arguments. Must try -L first in case configure is actually a |
---|
1306 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1307 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1308 | # directory). |
---|
1309 | if ( |
---|
1310 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
1311 | if test "$*" = "X"; then |
---|
1312 | # -L didn't work. |
---|
1313 | set X `ls -t $srcdir/configure conftestfile` |
---|
1314 | fi |
---|
1315 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
1316 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
1317 | |
---|
1318 | # If neither matched, then we have a broken ls. This can happen |
---|
1319 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1320 | # broken ls alias from the environment. This has actually |
---|
1321 | # happened. Such a system could not be considered "sane". |
---|
1322 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1323 | alias in your environment" >&5 |
---|
1324 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1325 | alias in your environment" >&2;} |
---|
1326 | { (exit 1); exit 1; }; } |
---|
1327 | fi |
---|
1328 | |
---|
1329 | test "$2" = conftestfile |
---|
1330 | ) |
---|
1331 | then |
---|
1332 | # Ok. |
---|
1333 | : |
---|
1334 | else |
---|
1335 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1336 | Check your system clock" >&5 |
---|
1337 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1338 | Check your system clock" >&2;} |
---|
1339 | { (exit 1); exit 1; }; } |
---|
1340 | fi |
---|
1341 | rm -f conftest* |
---|
1342 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1343 | echo "${ECHO_T}yes" >&6 |
---|
1344 | test "$program_prefix" != NONE && |
---|
1345 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1346 | # Use a double $ so make ignores it. |
---|
1347 | test "$program_suffix" != NONE && |
---|
1348 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1349 | # Double any \ or $. echo might interpret backslashes. |
---|
1350 | # By default was `s,x,x', remove it if useless. |
---|
1351 | cat <<\_ACEOF >conftest.sed |
---|
1352 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1353 | _ACEOF |
---|
1354 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1355 | rm conftest.sed |
---|
1356 | |
---|
1357 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1358 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
---|
1359 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
1360 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1362 | else |
---|
1363 | cat >conftest.make <<\_ACEOF |
---|
1364 | all: |
---|
1365 | @echo 'ac_maketemp="${MAKE}"' |
---|
1366 | _ACEOF |
---|
1367 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1368 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1369 | if test -n "$ac_maketemp"; then |
---|
1370 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1371 | else |
---|
1372 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1373 | fi |
---|
1374 | rm -f conftest.make |
---|
1375 | fi |
---|
1376 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1377 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1378 | echo "${ECHO_T}yes" >&6 |
---|
1379 | SET_MAKE= |
---|
1380 | else |
---|
1381 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1382 | echo "${ECHO_T}no" >&6 |
---|
1383 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1384 | fi |
---|
1385 | |
---|
1386 | |
---|
1387 | PACKAGE=gnome-system-monitor |
---|
1388 | |
---|
1389 | VERSION=2.0.3 |
---|
1390 | |
---|
1391 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
1392 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1393 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1394 | { (exit 1); exit 1; }; } |
---|
1395 | fi |
---|
1396 | |
---|
1397 | cat >>confdefs.h <<_ACEOF |
---|
1398 | #define PACKAGE "$PACKAGE" |
---|
1399 | _ACEOF |
---|
1400 | |
---|
1401 | |
---|
1402 | cat >>confdefs.h <<_ACEOF |
---|
1403 | #define VERSION "$VERSION" |
---|
1404 | _ACEOF |
---|
1405 | |
---|
1406 | |
---|
1407 | |
---|
1408 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
1409 | echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
---|
1410 | echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 |
---|
1411 | # Run test in a subshell; some versions of sh will print an error if |
---|
1412 | # an executable is not found, even if stderr is redirected. |
---|
1413 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1414 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
---|
1415 | ACLOCAL=aclocal-${am__api_version} |
---|
1416 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1417 | echo "${ECHO_T}found" >&6 |
---|
1418 | else |
---|
1419 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
---|
1420 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1421 | echo "${ECHO_T}missing" >&6 |
---|
1422 | fi |
---|
1423 | |
---|
1424 | echo "$as_me:$LINENO: checking for working autoconf" >&5 |
---|
1425 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
---|
1426 | # Run test in a subshell; some versions of sh will print an error if |
---|
1427 | # an executable is not found, even if stderr is redirected. |
---|
1428 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1429 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
1430 | AUTOCONF=autoconf |
---|
1431 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1432 | echo "${ECHO_T}found" >&6 |
---|
1433 | else |
---|
1434 | AUTOCONF="$missing_dir/missing autoconf" |
---|
1435 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1436 | echo "${ECHO_T}missing" >&6 |
---|
1437 | fi |
---|
1438 | |
---|
1439 | echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
---|
1440 | echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 |
---|
1441 | # Run test in a subshell; some versions of sh will print an error if |
---|
1442 | # an executable is not found, even if stderr is redirected. |
---|
1443 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1444 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
---|
1445 | AUTOMAKE=automake-${am__api_version} |
---|
1446 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1447 | echo "${ECHO_T}found" >&6 |
---|
1448 | else |
---|
1449 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
---|
1450 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1451 | echo "${ECHO_T}missing" >&6 |
---|
1452 | fi |
---|
1453 | |
---|
1454 | echo "$as_me:$LINENO: checking for working autoheader" >&5 |
---|
1455 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
---|
1456 | # Run test in a subshell; some versions of sh will print an error if |
---|
1457 | # an executable is not found, even if stderr is redirected. |
---|
1458 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1459 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
1460 | AUTOHEADER=autoheader |
---|
1461 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1462 | echo "${ECHO_T}found" >&6 |
---|
1463 | else |
---|
1464 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
1465 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1466 | echo "${ECHO_T}missing" >&6 |
---|
1467 | fi |
---|
1468 | |
---|
1469 | echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
---|
1470 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
---|
1471 | # Run test in a subshell; some versions of sh will print an error if |
---|
1472 | # an executable is not found, even if stderr is redirected. |
---|
1473 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1474 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
1475 | MAKEINFO=makeinfo |
---|
1476 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1477 | echo "${ECHO_T}found" >&6 |
---|
1478 | else |
---|
1479 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
1480 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1481 | echo "${ECHO_T}missing" >&6 |
---|
1482 | fi |
---|
1483 | |
---|
1484 | |
---|
1485 | |
---|
1486 | ac_config_headers="$ac_config_headers config.h" |
---|
1487 | |
---|
1488 | ac_config_commands="$ac_config_commands default-1" |
---|
1489 | |
---|
1490 | |
---|
1491 | |
---|
1492 | |
---|
1493 | if test -n ""; then |
---|
1494 | echo "$as_me:$LINENO: checking for intltool >= " >&5 |
---|
1495 | echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6 |
---|
1496 | |
---|
1497 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'` |
---|
1498 | INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${srcdir}/intltool-update.in` |
---|
1499 | |
---|
1500 | INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${srcdir}/intltool-update.in` |
---|
1501 | |
---|
1502 | |
---|
1503 | if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then |
---|
1504 | echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 |
---|
1505 | echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6 |
---|
1506 | else |
---|
1507 | echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5 |
---|
1508 | echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6 |
---|
1509 | exit 1 |
---|
1510 | fi |
---|
1511 | fi |
---|
1512 | |
---|
1513 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1514 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1515 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1516 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1517 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p' |
---|
1518 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1519 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1520 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1521 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1522 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1523 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1524 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1525 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1526 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1527 | |
---|
1528 | |
---|
1529 | |
---|
1530 | |
---|
1531 | |
---|
1532 | |
---|
1533 | |
---|
1534 | |
---|
1535 | |
---|
1536 | |
---|
1537 | |
---|
1538 | |
---|
1539 | |
---|
1540 | |
---|
1541 | |
---|
1542 | |
---|
1543 | # Use the tools built into the package, not the ones that are installed. |
---|
1544 | |
---|
1545 | INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' |
---|
1546 | INTLTOOL_MERGE='$(top_builddir)/intltool-merge' |
---|
1547 | INTLTOOL_UPDATE='$(top_builddir)/intltool-update' |
---|
1548 | |
---|
1549 | |
---|
1550 | |
---|
1551 | |
---|
1552 | |
---|
1553 | # Extract the first word of "perl", so it can be a program name with args. |
---|
1554 | set dummy perl; ac_word=$2 |
---|
1555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1557 | if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then |
---|
1558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1559 | else |
---|
1560 | case $INTLTOOL_PERL in |
---|
1561 | [\\/]* | ?:[\\/]*) |
---|
1562 | ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. |
---|
1563 | ;; |
---|
1564 | *) |
---|
1565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1566 | for as_dir in $PATH |
---|
1567 | do |
---|
1568 | IFS=$as_save_IFS |
---|
1569 | test -z "$as_dir" && as_dir=. |
---|
1570 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1572 | ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
---|
1573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1574 | break 2 |
---|
1575 | fi |
---|
1576 | done |
---|
1577 | done |
---|
1578 | |
---|
1579 | ;; |
---|
1580 | esac |
---|
1581 | fi |
---|
1582 | INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL |
---|
1583 | |
---|
1584 | if test -n "$INTLTOOL_PERL"; then |
---|
1585 | echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 |
---|
1586 | echo "${ECHO_T}$INTLTOOL_PERL" >&6 |
---|
1587 | else |
---|
1588 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1589 | echo "${ECHO_T}no" >&6 |
---|
1590 | fi |
---|
1591 | |
---|
1592 | if test -z "$INTLTOOL_PERL"; then |
---|
1593 | { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 |
---|
1594 | echo "$as_me: error: perl not found; required for intltool" >&2;} |
---|
1595 | { (exit 1); exit 1; }; } |
---|
1596 | fi |
---|
1597 | if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then |
---|
1598 | { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 |
---|
1599 | echo "$as_me: error: perl 5.x required for intltool" >&2;} |
---|
1600 | { (exit 1); exit 1; }; } |
---|
1601 | fi |
---|
1602 | |
---|
1603 | # Remove file type tags (using []) from po/POTFILES. |
---|
1604 | |
---|
1605 | |
---|
1606 | |
---|
1607 | |
---|
1608 | |
---|
1609 | |
---|
1610 | |
---|
1611 | # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. |
---|
1612 | |
---|
1613 | ac_config_commands="$ac_config_commands default-2" |
---|
1614 | |
---|
1615 | |
---|
1616 | |
---|
1617 | |
---|
1618 | ac_ext=c |
---|
1619 | ac_cpp='$CPP $CPPFLAGS' |
---|
1620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1623 | if test -n "$ac_tool_prefix"; then |
---|
1624 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1625 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1628 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1630 | else |
---|
1631 | if test -n "$CC"; then |
---|
1632 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1633 | else |
---|
1634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1635 | for as_dir in $PATH |
---|
1636 | do |
---|
1637 | IFS=$as_save_IFS |
---|
1638 | test -z "$as_dir" && as_dir=. |
---|
1639 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1641 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1643 | break 2 |
---|
1644 | fi |
---|
1645 | done |
---|
1646 | done |
---|
1647 | |
---|
1648 | fi |
---|
1649 | fi |
---|
1650 | CC=$ac_cv_prog_CC |
---|
1651 | if test -n "$CC"; then |
---|
1652 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1653 | echo "${ECHO_T}$CC" >&6 |
---|
1654 | else |
---|
1655 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1656 | echo "${ECHO_T}no" >&6 |
---|
1657 | fi |
---|
1658 | |
---|
1659 | fi |
---|
1660 | if test -z "$ac_cv_prog_CC"; then |
---|
1661 | ac_ct_CC=$CC |
---|
1662 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1663 | set dummy gcc; ac_word=$2 |
---|
1664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1666 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1668 | else |
---|
1669 | if test -n "$ac_ct_CC"; then |
---|
1670 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1671 | else |
---|
1672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1673 | for as_dir in $PATH |
---|
1674 | do |
---|
1675 | IFS=$as_save_IFS |
---|
1676 | test -z "$as_dir" && as_dir=. |
---|
1677 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1679 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1681 | break 2 |
---|
1682 | fi |
---|
1683 | done |
---|
1684 | done |
---|
1685 | |
---|
1686 | fi |
---|
1687 | fi |
---|
1688 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1689 | if test -n "$ac_ct_CC"; then |
---|
1690 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1691 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1692 | else |
---|
1693 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1694 | echo "${ECHO_T}no" >&6 |
---|
1695 | fi |
---|
1696 | |
---|
1697 | CC=$ac_ct_CC |
---|
1698 | else |
---|
1699 | CC="$ac_cv_prog_CC" |
---|
1700 | fi |
---|
1701 | |
---|
1702 | if test -z "$CC"; then |
---|
1703 | if test -n "$ac_tool_prefix"; then |
---|
1704 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1705 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1708 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1710 | else |
---|
1711 | if test -n "$CC"; then |
---|
1712 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1713 | else |
---|
1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1715 | for as_dir in $PATH |
---|
1716 | do |
---|
1717 | IFS=$as_save_IFS |
---|
1718 | test -z "$as_dir" && as_dir=. |
---|
1719 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1721 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1723 | break 2 |
---|
1724 | fi |
---|
1725 | done |
---|
1726 | done |
---|
1727 | |
---|
1728 | fi |
---|
1729 | fi |
---|
1730 | CC=$ac_cv_prog_CC |
---|
1731 | if test -n "$CC"; then |
---|
1732 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1733 | echo "${ECHO_T}$CC" >&6 |
---|
1734 | else |
---|
1735 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1736 | echo "${ECHO_T}no" >&6 |
---|
1737 | fi |
---|
1738 | |
---|
1739 | fi |
---|
1740 | if test -z "$ac_cv_prog_CC"; then |
---|
1741 | ac_ct_CC=$CC |
---|
1742 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1743 | set dummy cc; ac_word=$2 |
---|
1744 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1746 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1748 | else |
---|
1749 | if test -n "$ac_ct_CC"; then |
---|
1750 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1751 | else |
---|
1752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1753 | for as_dir in $PATH |
---|
1754 | do |
---|
1755 | IFS=$as_save_IFS |
---|
1756 | test -z "$as_dir" && as_dir=. |
---|
1757 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1759 | ac_cv_prog_ac_ct_CC="cc" |
---|
1760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1761 | break 2 |
---|
1762 | fi |
---|
1763 | done |
---|
1764 | done |
---|
1765 | |
---|
1766 | fi |
---|
1767 | fi |
---|
1768 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1769 | if test -n "$ac_ct_CC"; then |
---|
1770 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1771 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1772 | else |
---|
1773 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1774 | echo "${ECHO_T}no" >&6 |
---|
1775 | fi |
---|
1776 | |
---|
1777 | CC=$ac_ct_CC |
---|
1778 | else |
---|
1779 | CC="$ac_cv_prog_CC" |
---|
1780 | fi |
---|
1781 | |
---|
1782 | fi |
---|
1783 | if test -z "$CC"; then |
---|
1784 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1785 | set dummy cc; ac_word=$2 |
---|
1786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1788 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1790 | else |
---|
1791 | if test -n "$CC"; then |
---|
1792 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1793 | else |
---|
1794 | ac_prog_rejected=no |
---|
1795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1796 | for as_dir in $PATH |
---|
1797 | do |
---|
1798 | IFS=$as_save_IFS |
---|
1799 | test -z "$as_dir" && as_dir=. |
---|
1800 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1802 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1803 | ac_prog_rejected=yes |
---|
1804 | continue |
---|
1805 | fi |
---|
1806 | ac_cv_prog_CC="cc" |
---|
1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1808 | break 2 |
---|
1809 | fi |
---|
1810 | done |
---|
1811 | done |
---|
1812 | |
---|
1813 | if test $ac_prog_rejected = yes; then |
---|
1814 | # We found a bogon in the path, so make sure we never use it. |
---|
1815 | set dummy $ac_cv_prog_CC |
---|
1816 | shift |
---|
1817 | if test $# != 0; then |
---|
1818 | # We chose a different compiler from the bogus one. |
---|
1819 | # However, it has the same basename, so the bogon will be chosen |
---|
1820 | # first if we set CC to just the basename; use the full file name. |
---|
1821 | shift |
---|
1822 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
---|
1823 | shift |
---|
1824 | ac_cv_prog_CC="$@" |
---|
1825 | fi |
---|
1826 | fi |
---|
1827 | fi |
---|
1828 | fi |
---|
1829 | CC=$ac_cv_prog_CC |
---|
1830 | if test -n "$CC"; then |
---|
1831 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1832 | echo "${ECHO_T}$CC" >&6 |
---|
1833 | else |
---|
1834 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1835 | echo "${ECHO_T}no" >&6 |
---|
1836 | fi |
---|
1837 | |
---|
1838 | fi |
---|
1839 | if test -z "$CC"; then |
---|
1840 | if test -n "$ac_tool_prefix"; then |
---|
1841 | for ac_prog in cl |
---|
1842 | do |
---|
1843 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1844 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1847 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1849 | else |
---|
1850 | if test -n "$CC"; then |
---|
1851 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1852 | else |
---|
1853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1854 | for as_dir in $PATH |
---|
1855 | do |
---|
1856 | IFS=$as_save_IFS |
---|
1857 | test -z "$as_dir" && as_dir=. |
---|
1858 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1860 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1862 | break 2 |
---|
1863 | fi |
---|
1864 | done |
---|
1865 | done |
---|
1866 | |
---|
1867 | fi |
---|
1868 | fi |
---|
1869 | CC=$ac_cv_prog_CC |
---|
1870 | if test -n "$CC"; then |
---|
1871 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1872 | echo "${ECHO_T}$CC" >&6 |
---|
1873 | else |
---|
1874 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1875 | echo "${ECHO_T}no" >&6 |
---|
1876 | fi |
---|
1877 | |
---|
1878 | test -n "$CC" && break |
---|
1879 | done |
---|
1880 | fi |
---|
1881 | if test -z "$CC"; then |
---|
1882 | ac_ct_CC=$CC |
---|
1883 | for ac_prog in cl |
---|
1884 | do |
---|
1885 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1886 | set dummy $ac_prog; ac_word=$2 |
---|
1887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1889 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1891 | else |
---|
1892 | if test -n "$ac_ct_CC"; then |
---|
1893 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1894 | else |
---|
1895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1896 | for as_dir in $PATH |
---|
1897 | do |
---|
1898 | IFS=$as_save_IFS |
---|
1899 | test -z "$as_dir" && as_dir=. |
---|
1900 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1902 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1904 | break 2 |
---|
1905 | fi |
---|
1906 | done |
---|
1907 | done |
---|
1908 | |
---|
1909 | fi |
---|
1910 | fi |
---|
1911 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1912 | if test -n "$ac_ct_CC"; then |
---|
1913 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1914 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1915 | else |
---|
1916 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1917 | echo "${ECHO_T}no" >&6 |
---|
1918 | fi |
---|
1919 | |
---|
1920 | test -n "$ac_ct_CC" && break |
---|
1921 | done |
---|
1922 | |
---|
1923 | CC=$ac_ct_CC |
---|
1924 | fi |
---|
1925 | |
---|
1926 | fi |
---|
1927 | |
---|
1928 | |
---|
1929 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
---|
1930 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
---|
1931 | { (exit 1); exit 1; }; } |
---|
1932 | |
---|
1933 | # Provide some information about the compiler. |
---|
1934 | echo "$as_me:$LINENO:" \ |
---|
1935 | "checking for C compiler version" >&5 |
---|
1936 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1937 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1938 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1939 | ac_status=$? |
---|
1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1941 | (exit $ac_status); } |
---|
1942 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1943 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1944 | ac_status=$? |
---|
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1946 | (exit $ac_status); } |
---|
1947 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1948 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1949 | ac_status=$? |
---|
1950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1951 | (exit $ac_status); } |
---|
1952 | |
---|
1953 | cat >conftest.$ac_ext <<_ACEOF |
---|
1954 | #line $LINENO "configure" |
---|
1955 | #include "confdefs.h" |
---|
1956 | |
---|
1957 | #ifdef F77_DUMMY_MAIN |
---|
1958 | # ifdef __cplusplus |
---|
1959 | extern "C" |
---|
1960 | # endif |
---|
1961 | int F77_DUMMY_MAIN() { return 1; } |
---|
1962 | #endif |
---|
1963 | int |
---|
1964 | main () |
---|
1965 | { |
---|
1966 | |
---|
1967 | ; |
---|
1968 | return 0; |
---|
1969 | } |
---|
1970 | _ACEOF |
---|
1971 | ac_clean_files_save=$ac_clean_files |
---|
1972 | ac_clean_files="$ac_clean_files a.out a.exe" |
---|
1973 | # Try to create an executable without -o first, disregard a.out. |
---|
1974 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1975 | # of exeext. |
---|
1976 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
---|
1977 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
---|
1978 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1979 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1980 | (eval $ac_link_default) 2>&5 |
---|
1981 | ac_status=$? |
---|
1982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1983 | (exit $ac_status); }; then |
---|
1984 | # Find the output, starting from the most likely. This scheme is |
---|
1985 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1986 | # resort. |
---|
1987 | |
---|
1988 | # Be careful to initialize this variable, since it used to be cached. |
---|
1989 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1990 | ac_cv_exeext= |
---|
1991 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
---|
1992 | ls a.out conftest 2>/dev/null; |
---|
1993 | ls a.* conftest.* 2>/dev/null`; do |
---|
1994 | case $ac_file in |
---|
1995 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
---|
1996 | a.out ) # We found the default executable, but exeext='' is most |
---|
1997 | # certainly right. |
---|
1998 | break;; |
---|
1999 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2000 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
---|
2001 | export ac_cv_exeext |
---|
2002 | break;; |
---|
2003 | * ) break;; |
---|
2004 | esac |
---|
2005 | done |
---|
2006 | else |
---|
2007 | echo "$as_me: failed program was:" >&5 |
---|
2008 | cat conftest.$ac_ext >&5 |
---|
2009 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
---|
2010 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
---|
2011 | { (exit 77); exit 77; }; } |
---|
2012 | fi |
---|
2013 | |
---|
2014 | ac_exeext=$ac_cv_exeext |
---|
2015 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2016 | echo "${ECHO_T}$ac_file" >&6 |
---|
2017 | |
---|
2018 | # Check the compiler produces executables we can run. If not, either |
---|
2019 | # the compiler is broken, or we cross compile. |
---|
2020 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2021 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2022 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2023 | # If not cross compiling, check that we can run a simple program. |
---|
2024 | if test "$cross_compiling" != yes; then |
---|
2025 | if { ac_try='./$ac_file' |
---|
2026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2027 | (eval $ac_try) 2>&5 |
---|
2028 | ac_status=$? |
---|
2029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2030 | (exit $ac_status); }; }; then |
---|
2031 | cross_compiling=no |
---|
2032 | else |
---|
2033 | if test "$cross_compiling" = maybe; then |
---|
2034 | cross_compiling=yes |
---|
2035 | else |
---|
2036 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2037 | If you meant to cross compile, use \`--host'." >&5 |
---|
2038 | echo "$as_me: error: cannot run C compiled programs. |
---|
2039 | If you meant to cross compile, use \`--host'." >&2;} |
---|
2040 | { (exit 1); exit 1; }; } |
---|
2041 | fi |
---|
2042 | fi |
---|
2043 | fi |
---|
2044 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2045 | echo "${ECHO_T}yes" >&6 |
---|
2046 | |
---|
2047 | rm -f a.out a.exe conftest$ac_cv_exeext |
---|
2048 | ac_clean_files=$ac_clean_files_save |
---|
2049 | # Check the compiler produces executables we can run. If not, either |
---|
2050 | # the compiler is broken, or we cross compile. |
---|
2051 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2052 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2053 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2054 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2055 | |
---|
2056 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2057 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2059 | (eval $ac_link) 2>&5 |
---|
2060 | ac_status=$? |
---|
2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2062 | (exit $ac_status); }; then |
---|
2063 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2064 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2065 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2066 | # `rm'. |
---|
2067 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
---|
2068 | case $ac_file in |
---|
2069 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
---|
2070 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2071 | export ac_cv_exeext |
---|
2072 | break;; |
---|
2073 | * ) break;; |
---|
2074 | esac |
---|
2075 | done |
---|
2076 | else |
---|
2077 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
---|
2078 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
---|
2079 | { (exit 1); exit 1; }; } |
---|
2080 | fi |
---|
2081 | |
---|
2082 | rm -f conftest$ac_cv_exeext |
---|
2083 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2084 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2085 | |
---|
2086 | rm -f conftest.$ac_ext |
---|
2087 | EXEEXT=$ac_cv_exeext |
---|
2088 | ac_exeext=$EXEEXT |
---|
2089 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2090 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2091 | if test "${ac_cv_objext+set}" = set; then |
---|
2092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2093 | else |
---|
2094 | cat >conftest.$ac_ext <<_ACEOF |
---|
2095 | #line $LINENO "configure" |
---|
2096 | #include "confdefs.h" |
---|
2097 | |
---|
2098 | #ifdef F77_DUMMY_MAIN |
---|
2099 | # ifdef __cplusplus |
---|
2100 | extern "C" |
---|
2101 | # endif |
---|
2102 | int F77_DUMMY_MAIN() { return 1; } |
---|
2103 | #endif |
---|
2104 | int |
---|
2105 | main () |
---|
2106 | { |
---|
2107 | |
---|
2108 | ; |
---|
2109 | return 0; |
---|
2110 | } |
---|
2111 | _ACEOF |
---|
2112 | rm -f conftest.o conftest.obj |
---|
2113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2114 | (eval $ac_compile) 2>&5 |
---|
2115 | ac_status=$? |
---|
2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2117 | (exit $ac_status); }; then |
---|
2118 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2119 | case $ac_file in |
---|
2120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
---|
2121 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2122 | break;; |
---|
2123 | esac |
---|
2124 | done |
---|
2125 | else |
---|
2126 | echo "$as_me: failed program was:" >&5 |
---|
2127 | cat conftest.$ac_ext >&5 |
---|
2128 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
---|
2129 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
---|
2130 | { (exit 1); exit 1; }; } |
---|
2131 | fi |
---|
2132 | |
---|
2133 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2134 | fi |
---|
2135 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2136 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2137 | OBJEXT=$ac_cv_objext |
---|
2138 | ac_objext=$OBJEXT |
---|
2139 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2140 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2141 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2143 | else |
---|
2144 | cat >conftest.$ac_ext <<_ACEOF |
---|
2145 | #line $LINENO "configure" |
---|
2146 | #include "confdefs.h" |
---|
2147 | |
---|
2148 | #ifdef F77_DUMMY_MAIN |
---|
2149 | # ifdef __cplusplus |
---|
2150 | extern "C" |
---|
2151 | # endif |
---|
2152 | int F77_DUMMY_MAIN() { return 1; } |
---|
2153 | #endif |
---|
2154 | int |
---|
2155 | main () |
---|
2156 | { |
---|
2157 | #ifndef __GNUC__ |
---|
2158 | choke me |
---|
2159 | #endif |
---|
2160 | |
---|
2161 | ; |
---|
2162 | return 0; |
---|
2163 | } |
---|
2164 | _ACEOF |
---|
2165 | rm -f conftest.$ac_objext |
---|
2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2167 | (eval $ac_compile) 2>&5 |
---|
2168 | ac_status=$? |
---|
2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2170 | (exit $ac_status); } && |
---|
2171 | { ac_try='test -s conftest.$ac_objext' |
---|
2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2173 | (eval $ac_try) 2>&5 |
---|
2174 | ac_status=$? |
---|
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2176 | (exit $ac_status); }; }; then |
---|
2177 | ac_compiler_gnu=yes |
---|
2178 | else |
---|
2179 | echo "$as_me: failed program was:" >&5 |
---|
2180 | cat conftest.$ac_ext >&5 |
---|
2181 | ac_compiler_gnu=no |
---|
2182 | fi |
---|
2183 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2184 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2185 | |
---|
2186 | fi |
---|
2187 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2188 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2189 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2190 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2191 | ac_save_CFLAGS=$CFLAGS |
---|
2192 | CFLAGS="-g" |
---|
2193 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2194 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2195 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2197 | else |
---|
2198 | cat >conftest.$ac_ext <<_ACEOF |
---|
2199 | #line $LINENO "configure" |
---|
2200 | #include "confdefs.h" |
---|
2201 | |
---|
2202 | #ifdef F77_DUMMY_MAIN |
---|
2203 | # ifdef __cplusplus |
---|
2204 | extern "C" |
---|
2205 | # endif |
---|
2206 | int F77_DUMMY_MAIN() { return 1; } |
---|
2207 | #endif |
---|
2208 | int |
---|
2209 | main () |
---|
2210 | { |
---|
2211 | |
---|
2212 | ; |
---|
2213 | return 0; |
---|
2214 | } |
---|
2215 | _ACEOF |
---|
2216 | rm -f conftest.$ac_objext |
---|
2217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2218 | (eval $ac_compile) 2>&5 |
---|
2219 | ac_status=$? |
---|
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2221 | (exit $ac_status); } && |
---|
2222 | { ac_try='test -s conftest.$ac_objext' |
---|
2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2224 | (eval $ac_try) 2>&5 |
---|
2225 | ac_status=$? |
---|
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2227 | (exit $ac_status); }; }; then |
---|
2228 | ac_cv_prog_cc_g=yes |
---|
2229 | else |
---|
2230 | echo "$as_me: failed program was:" >&5 |
---|
2231 | cat conftest.$ac_ext >&5 |
---|
2232 | ac_cv_prog_cc_g=no |
---|
2233 | fi |
---|
2234 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2235 | fi |
---|
2236 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2237 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2238 | if test "$ac_test_CFLAGS" = set; then |
---|
2239 | CFLAGS=$ac_save_CFLAGS |
---|
2240 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2241 | if test "$GCC" = yes; then |
---|
2242 | CFLAGS="-g -O2" |
---|
2243 | else |
---|
2244 | CFLAGS="-g" |
---|
2245 | fi |
---|
2246 | else |
---|
2247 | if test "$GCC" = yes; then |
---|
2248 | CFLAGS="-O2" |
---|
2249 | else |
---|
2250 | CFLAGS= |
---|
2251 | fi |
---|
2252 | fi |
---|
2253 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2254 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2255 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2256 | # the declaration of exit, since it's the most demanding environment. |
---|
2257 | cat >conftest.$ac_ext <<_ACEOF |
---|
2258 | #ifndef __cplusplus |
---|
2259 | choke me |
---|
2260 | #endif |
---|
2261 | _ACEOF |
---|
2262 | rm -f conftest.$ac_objext |
---|
2263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2264 | (eval $ac_compile) 2>&5 |
---|
2265 | ac_status=$? |
---|
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2267 | (exit $ac_status); } && |
---|
2268 | { ac_try='test -s conftest.$ac_objext' |
---|
2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2270 | (eval $ac_try) 2>&5 |
---|
2271 | ac_status=$? |
---|
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2273 | (exit $ac_status); }; }; then |
---|
2274 | for ac_declaration in \ |
---|
2275 | ''\ |
---|
2276 | '#include <stdlib.h>' \ |
---|
2277 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2278 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2279 | 'extern "C" void exit (int) throw ();' \ |
---|
2280 | 'extern "C" void exit (int);' \ |
---|
2281 | 'void exit (int);' |
---|
2282 | do |
---|
2283 | cat >conftest.$ac_ext <<_ACEOF |
---|
2284 | #line $LINENO "configure" |
---|
2285 | #include "confdefs.h" |
---|
2286 | #include <stdlib.h> |
---|
2287 | $ac_declaration |
---|
2288 | #ifdef F77_DUMMY_MAIN |
---|
2289 | # ifdef __cplusplus |
---|
2290 | extern "C" |
---|
2291 | # endif |
---|
2292 | int F77_DUMMY_MAIN() { return 1; } |
---|
2293 | #endif |
---|
2294 | int |
---|
2295 | main () |
---|
2296 | { |
---|
2297 | exit (42); |
---|
2298 | ; |
---|
2299 | return 0; |
---|
2300 | } |
---|
2301 | _ACEOF |
---|
2302 | rm -f conftest.$ac_objext |
---|
2303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2304 | (eval $ac_compile) 2>&5 |
---|
2305 | ac_status=$? |
---|
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2307 | (exit $ac_status); } && |
---|
2308 | { ac_try='test -s conftest.$ac_objext' |
---|
2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2310 | (eval $ac_try) 2>&5 |
---|
2311 | ac_status=$? |
---|
2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2313 | (exit $ac_status); }; }; then |
---|
2314 | : |
---|
2315 | else |
---|
2316 | echo "$as_me: failed program was:" >&5 |
---|
2317 | cat conftest.$ac_ext >&5 |
---|
2318 | continue |
---|
2319 | fi |
---|
2320 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2321 | cat >conftest.$ac_ext <<_ACEOF |
---|
2322 | #line $LINENO "configure" |
---|
2323 | #include "confdefs.h" |
---|
2324 | $ac_declaration |
---|
2325 | #ifdef F77_DUMMY_MAIN |
---|
2326 | # ifdef __cplusplus |
---|
2327 | extern "C" |
---|
2328 | # endif |
---|
2329 | int F77_DUMMY_MAIN() { return 1; } |
---|
2330 | #endif |
---|
2331 | int |
---|
2332 | main () |
---|
2333 | { |
---|
2334 | exit (42); |
---|
2335 | ; |
---|
2336 | return 0; |
---|
2337 | } |
---|
2338 | _ACEOF |
---|
2339 | rm -f conftest.$ac_objext |
---|
2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2341 | (eval $ac_compile) 2>&5 |
---|
2342 | ac_status=$? |
---|
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2344 | (exit $ac_status); } && |
---|
2345 | { ac_try='test -s conftest.$ac_objext' |
---|
2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2347 | (eval $ac_try) 2>&5 |
---|
2348 | ac_status=$? |
---|
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2350 | (exit $ac_status); }; }; then |
---|
2351 | break |
---|
2352 | else |
---|
2353 | echo "$as_me: failed program was:" >&5 |
---|
2354 | cat conftest.$ac_ext >&5 |
---|
2355 | fi |
---|
2356 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2357 | done |
---|
2358 | rm -f conftest* |
---|
2359 | if test -n "$ac_declaration"; then |
---|
2360 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2361 | echo $ac_declaration >>confdefs.h |
---|
2362 | echo '#endif' >>confdefs.h |
---|
2363 | fi |
---|
2364 | |
---|
2365 | else |
---|
2366 | echo "$as_me: failed program was:" >&5 |
---|
2367 | cat conftest.$ac_ext >&5 |
---|
2368 | fi |
---|
2369 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2370 | ac_ext=c |
---|
2371 | ac_cpp='$CPP $CPPFLAGS' |
---|
2372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2375 | |
---|
2376 | |
---|
2377 | |
---|
2378 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
---|
2379 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
---|
2380 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
---|
2381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2382 | else |
---|
2383 | ac_check_lib_save_LIBS=$LIBS |
---|
2384 | LIBS="-lcposix $LIBS" |
---|
2385 | cat >conftest.$ac_ext <<_ACEOF |
---|
2386 | #line $LINENO "configure" |
---|
2387 | #include "confdefs.h" |
---|
2388 | |
---|
2389 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2390 | #ifdef __cplusplus |
---|
2391 | extern "C" |
---|
2392 | #endif |
---|
2393 | /* We use char because int might match the return type of a gcc2 |
---|
2394 | builtin and then its argument prototype would still apply. */ |
---|
2395 | char strerror (); |
---|
2396 | #ifdef F77_DUMMY_MAIN |
---|
2397 | # ifdef __cplusplus |
---|
2398 | extern "C" |
---|
2399 | # endif |
---|
2400 | int F77_DUMMY_MAIN() { return 1; } |
---|
2401 | #endif |
---|
2402 | int |
---|
2403 | main () |
---|
2404 | { |
---|
2405 | strerror (); |
---|
2406 | ; |
---|
2407 | return 0; |
---|
2408 | } |
---|
2409 | _ACEOF |
---|
2410 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2412 | (eval $ac_link) 2>&5 |
---|
2413 | ac_status=$? |
---|
2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2415 | (exit $ac_status); } && |
---|
2416 | { ac_try='test -s conftest$ac_exeext' |
---|
2417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2418 | (eval $ac_try) 2>&5 |
---|
2419 | ac_status=$? |
---|
2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2421 | (exit $ac_status); }; }; then |
---|
2422 | ac_cv_lib_cposix_strerror=yes |
---|
2423 | else |
---|
2424 | echo "$as_me: failed program was:" >&5 |
---|
2425 | cat conftest.$ac_ext >&5 |
---|
2426 | ac_cv_lib_cposix_strerror=no |
---|
2427 | fi |
---|
2428 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
2429 | LIBS=$ac_check_lib_save_LIBS |
---|
2430 | fi |
---|
2431 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
---|
2432 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
---|
2433 | if test $ac_cv_lib_cposix_strerror = yes; then |
---|
2434 | LIBS="$LIBS -lcposix" |
---|
2435 | fi |
---|
2436 | |
---|
2437 | |
---|
2438 | |
---|
2439 | ac_ext=c |
---|
2440 | ac_cpp='$CPP $CPPFLAGS' |
---|
2441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2444 | if test -n "$ac_tool_prefix"; then |
---|
2445 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2446 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2449 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2451 | else |
---|
2452 | if test -n "$CC"; then |
---|
2453 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2454 | else |
---|
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2456 | for as_dir in $PATH |
---|
2457 | do |
---|
2458 | IFS=$as_save_IFS |
---|
2459 | test -z "$as_dir" && as_dir=. |
---|
2460 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2462 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2464 | break 2 |
---|
2465 | fi |
---|
2466 | done |
---|
2467 | done |
---|
2468 | |
---|
2469 | fi |
---|
2470 | fi |
---|
2471 | CC=$ac_cv_prog_CC |
---|
2472 | if test -n "$CC"; then |
---|
2473 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2474 | echo "${ECHO_T}$CC" >&6 |
---|
2475 | else |
---|
2476 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2477 | echo "${ECHO_T}no" >&6 |
---|
2478 | fi |
---|
2479 | |
---|
2480 | fi |
---|
2481 | if test -z "$ac_cv_prog_CC"; then |
---|
2482 | ac_ct_CC=$CC |
---|
2483 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2484 | set dummy gcc; ac_word=$2 |
---|
2485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2487 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2489 | else |
---|
2490 | if test -n "$ac_ct_CC"; then |
---|
2491 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2492 | else |
---|
2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2494 | for as_dir in $PATH |
---|
2495 | do |
---|
2496 | IFS=$as_save_IFS |
---|
2497 | test -z "$as_dir" && as_dir=. |
---|
2498 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2500 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2502 | break 2 |
---|
2503 | fi |
---|
2504 | done |
---|
2505 | done |
---|
2506 | |
---|
2507 | fi |
---|
2508 | fi |
---|
2509 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2510 | if test -n "$ac_ct_CC"; then |
---|
2511 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2512 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2513 | else |
---|
2514 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2515 | echo "${ECHO_T}no" >&6 |
---|
2516 | fi |
---|
2517 | |
---|
2518 | CC=$ac_ct_CC |
---|
2519 | else |
---|
2520 | CC="$ac_cv_prog_CC" |
---|
2521 | fi |
---|
2522 | |
---|
2523 | if test -z "$CC"; then |
---|
2524 | if test -n "$ac_tool_prefix"; then |
---|
2525 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2526 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2529 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2531 | else |
---|
2532 | if test -n "$CC"; then |
---|
2533 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2534 | else |
---|
2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2536 | for as_dir in $PATH |
---|
2537 | do |
---|
2538 | IFS=$as_save_IFS |
---|
2539 | test -z "$as_dir" && as_dir=. |
---|
2540 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2542 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2544 | break 2 |
---|
2545 | fi |
---|
2546 | done |
---|
2547 | done |
---|
2548 | |
---|
2549 | fi |
---|
2550 | fi |
---|
2551 | CC=$ac_cv_prog_CC |
---|
2552 | if test -n "$CC"; then |
---|
2553 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2554 | echo "${ECHO_T}$CC" >&6 |
---|
2555 | else |
---|
2556 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2557 | echo "${ECHO_T}no" >&6 |
---|
2558 | fi |
---|
2559 | |
---|
2560 | fi |
---|
2561 | if test -z "$ac_cv_prog_CC"; then |
---|
2562 | ac_ct_CC=$CC |
---|
2563 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2564 | set dummy cc; ac_word=$2 |
---|
2565 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2567 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2569 | else |
---|
2570 | if test -n "$ac_ct_CC"; then |
---|
2571 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2572 | else |
---|
2573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2574 | for as_dir in $PATH |
---|
2575 | do |
---|
2576 | IFS=$as_save_IFS |
---|
2577 | test -z "$as_dir" && as_dir=. |
---|
2578 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2579 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2580 | ac_cv_prog_ac_ct_CC="cc" |
---|
2581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2582 | break 2 |
---|
2583 | fi |
---|
2584 | done |
---|
2585 | done |
---|
2586 | |
---|
2587 | fi |
---|
2588 | fi |
---|
2589 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2590 | if test -n "$ac_ct_CC"; then |
---|
2591 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2592 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2593 | else |
---|
2594 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2595 | echo "${ECHO_T}no" >&6 |
---|
2596 | fi |
---|
2597 | |
---|
2598 | CC=$ac_ct_CC |
---|
2599 | else |
---|
2600 | CC="$ac_cv_prog_CC" |
---|
2601 | fi |
---|
2602 | |
---|
2603 | fi |
---|
2604 | if test -z "$CC"; then |
---|
2605 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2606 | set dummy cc; ac_word=$2 |
---|
2607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2609 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2611 | else |
---|
2612 | if test -n "$CC"; then |
---|
2613 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2614 | else |
---|
2615 | ac_prog_rejected=no |
---|
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2617 | for as_dir in $PATH |
---|
2618 | do |
---|
2619 | IFS=$as_save_IFS |
---|
2620 | test -z "$as_dir" && as_dir=. |
---|
2621 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2623 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2624 | ac_prog_rejected=yes |
---|
2625 | continue |
---|
2626 | fi |
---|
2627 | ac_cv_prog_CC="cc" |
---|
2628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2629 | break 2 |
---|
2630 | fi |
---|
2631 | done |
---|
2632 | done |
---|
2633 | |
---|
2634 | if test $ac_prog_rejected = yes; then |
---|
2635 | # We found a bogon in the path, so make sure we never use it. |
---|
2636 | set dummy $ac_cv_prog_CC |
---|
2637 | shift |
---|
2638 | if test $# != 0; then |
---|
2639 | # We chose a different compiler from the bogus one. |
---|
2640 | # However, it has the same basename, so the bogon will be chosen |
---|
2641 | # first if we set CC to just the basename; use the full file name. |
---|
2642 | shift |
---|
2643 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
---|
2644 | shift |
---|
2645 | ac_cv_prog_CC="$@" |
---|
2646 | fi |
---|
2647 | fi |
---|
2648 | fi |
---|
2649 | fi |
---|
2650 | CC=$ac_cv_prog_CC |
---|
2651 | if test -n "$CC"; then |
---|
2652 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2653 | echo "${ECHO_T}$CC" >&6 |
---|
2654 | else |
---|
2655 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2656 | echo "${ECHO_T}no" >&6 |
---|
2657 | fi |
---|
2658 | |
---|
2659 | fi |
---|
2660 | if test -z "$CC"; then |
---|
2661 | if test -n "$ac_tool_prefix"; then |
---|
2662 | for ac_prog in cl |
---|
2663 | do |
---|
2664 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2665 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2668 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2670 | else |
---|
2671 | if test -n "$CC"; then |
---|
2672 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2673 | else |
---|
2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2675 | for as_dir in $PATH |
---|
2676 | do |
---|
2677 | IFS=$as_save_IFS |
---|
2678 | test -z "$as_dir" && as_dir=. |
---|
2679 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2681 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2683 | break 2 |
---|
2684 | fi |
---|
2685 | done |
---|
2686 | done |
---|
2687 | |
---|
2688 | fi |
---|
2689 | fi |
---|
2690 | CC=$ac_cv_prog_CC |
---|
2691 | if test -n "$CC"; then |
---|
2692 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2693 | echo "${ECHO_T}$CC" >&6 |
---|
2694 | else |
---|
2695 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2696 | echo "${ECHO_T}no" >&6 |
---|
2697 | fi |
---|
2698 | |
---|
2699 | test -n "$CC" && break |
---|
2700 | done |
---|
2701 | fi |
---|
2702 | if test -z "$CC"; then |
---|
2703 | ac_ct_CC=$CC |
---|
2704 | for ac_prog in cl |
---|
2705 | do |
---|
2706 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2707 | set dummy $ac_prog; ac_word=$2 |
---|
2708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2710 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2712 | else |
---|
2713 | if test -n "$ac_ct_CC"; then |
---|
2714 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2715 | else |
---|
2716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2717 | for as_dir in $PATH |
---|
2718 | do |
---|
2719 | IFS=$as_save_IFS |
---|
2720 | test -z "$as_dir" && as_dir=. |
---|
2721 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2723 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2725 | break 2 |
---|
2726 | fi |
---|
2727 | done |
---|
2728 | done |
---|
2729 | |
---|
2730 | fi |
---|
2731 | fi |
---|
2732 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2733 | if test -n "$ac_ct_CC"; then |
---|
2734 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2735 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2736 | else |
---|
2737 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2738 | echo "${ECHO_T}no" >&6 |
---|
2739 | fi |
---|
2740 | |
---|
2741 | test -n "$ac_ct_CC" && break |
---|
2742 | done |
---|
2743 | |
---|
2744 | CC=$ac_ct_CC |
---|
2745 | fi |
---|
2746 | |
---|
2747 | fi |
---|
2748 | |
---|
2749 | |
---|
2750 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
---|
2751 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
---|
2752 | { (exit 1); exit 1; }; } |
---|
2753 | |
---|
2754 | # Provide some information about the compiler. |
---|
2755 | echo "$as_me:$LINENO:" \ |
---|
2756 | "checking for C compiler version" >&5 |
---|
2757 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2758 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2759 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2760 | ac_status=$? |
---|
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2762 | (exit $ac_status); } |
---|
2763 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2764 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2765 | ac_status=$? |
---|
2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2767 | (exit $ac_status); } |
---|
2768 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2769 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2770 | ac_status=$? |
---|
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2772 | (exit $ac_status); } |
---|
2773 | |
---|
2774 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2775 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2776 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2778 | else |
---|
2779 | cat >conftest.$ac_ext <<_ACEOF |
---|
2780 | #line $LINENO "configure" |
---|
2781 | #include "confdefs.h" |
---|
2782 | |
---|
2783 | #ifdef F77_DUMMY_MAIN |
---|
2784 | # ifdef __cplusplus |
---|
2785 | extern "C" |
---|
2786 | # endif |
---|
2787 | int F77_DUMMY_MAIN() { return 1; } |
---|
2788 | #endif |
---|
2789 | int |
---|
2790 | main () |
---|
2791 | { |
---|
2792 | #ifndef __GNUC__ |
---|
2793 | choke me |
---|
2794 | #endif |
---|
2795 | |
---|
2796 | ; |
---|
2797 | return 0; |
---|
2798 | } |
---|
2799 | _ACEOF |
---|
2800 | rm -f conftest.$ac_objext |
---|
2801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2802 | (eval $ac_compile) 2>&5 |
---|
2803 | ac_status=$? |
---|
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2805 | (exit $ac_status); } && |
---|
2806 | { ac_try='test -s conftest.$ac_objext' |
---|
2807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2808 | (eval $ac_try) 2>&5 |
---|
2809 | ac_status=$? |
---|
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2811 | (exit $ac_status); }; }; then |
---|
2812 | ac_compiler_gnu=yes |
---|
2813 | else |
---|
2814 | echo "$as_me: failed program was:" >&5 |
---|
2815 | cat conftest.$ac_ext >&5 |
---|
2816 | ac_compiler_gnu=no |
---|
2817 | fi |
---|
2818 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2819 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2820 | |
---|
2821 | fi |
---|
2822 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2823 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2824 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2825 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2826 | ac_save_CFLAGS=$CFLAGS |
---|
2827 | CFLAGS="-g" |
---|
2828 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2829 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2830 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2832 | else |
---|
2833 | cat >conftest.$ac_ext <<_ACEOF |
---|
2834 | #line $LINENO "configure" |
---|
2835 | #include "confdefs.h" |
---|
2836 | |
---|
2837 | #ifdef F77_DUMMY_MAIN |
---|
2838 | # ifdef __cplusplus |
---|
2839 | extern "C" |
---|
2840 | # endif |
---|
2841 | int F77_DUMMY_MAIN() { return 1; } |
---|
2842 | #endif |
---|
2843 | int |
---|
2844 | main () |
---|
2845 | { |
---|
2846 | |
---|
2847 | ; |
---|
2848 | return 0; |
---|
2849 | } |
---|
2850 | _ACEOF |
---|
2851 | rm -f conftest.$ac_objext |
---|
2852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2853 | (eval $ac_compile) 2>&5 |
---|
2854 | ac_status=$? |
---|
2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2856 | (exit $ac_status); } && |
---|
2857 | { ac_try='test -s conftest.$ac_objext' |
---|
2858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2859 | (eval $ac_try) 2>&5 |
---|
2860 | ac_status=$? |
---|
2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2862 | (exit $ac_status); }; }; then |
---|
2863 | ac_cv_prog_cc_g=yes |
---|
2864 | else |
---|
2865 | echo "$as_me: failed program was:" >&5 |
---|
2866 | cat conftest.$ac_ext >&5 |
---|
2867 | ac_cv_prog_cc_g=no |
---|
2868 | fi |
---|
2869 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2870 | fi |
---|
2871 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2872 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2873 | if test "$ac_test_CFLAGS" = set; then |
---|
2874 | CFLAGS=$ac_save_CFLAGS |
---|
2875 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2876 | if test "$GCC" = yes; then |
---|
2877 | CFLAGS="-g -O2" |
---|
2878 | else |
---|
2879 | CFLAGS="-g" |
---|
2880 | fi |
---|
2881 | else |
---|
2882 | if test "$GCC" = yes; then |
---|
2883 | CFLAGS="-O2" |
---|
2884 | else |
---|
2885 | CFLAGS= |
---|
2886 | fi |
---|
2887 | fi |
---|
2888 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2889 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2890 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2891 | # the declaration of exit, since it's the most demanding environment. |
---|
2892 | cat >conftest.$ac_ext <<_ACEOF |
---|
2893 | #ifndef __cplusplus |
---|
2894 | choke me |
---|
2895 | #endif |
---|
2896 | _ACEOF |
---|
2897 | rm -f conftest.$ac_objext |
---|
2898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2899 | (eval $ac_compile) 2>&5 |
---|
2900 | ac_status=$? |
---|
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2902 | (exit $ac_status); } && |
---|
2903 | { ac_try='test -s conftest.$ac_objext' |
---|
2904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2905 | (eval $ac_try) 2>&5 |
---|
2906 | ac_status=$? |
---|
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2908 | (exit $ac_status); }; }; then |
---|
2909 | for ac_declaration in \ |
---|
2910 | ''\ |
---|
2911 | '#include <stdlib.h>' \ |
---|
2912 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2913 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2914 | 'extern "C" void exit (int) throw ();' \ |
---|
2915 | 'extern "C" void exit (int);' \ |
---|
2916 | 'void exit (int);' |
---|
2917 | do |
---|
2918 | cat >conftest.$ac_ext <<_ACEOF |
---|
2919 | #line $LINENO "configure" |
---|
2920 | #include "confdefs.h" |
---|
2921 | #include <stdlib.h> |
---|
2922 | $ac_declaration |
---|
2923 | #ifdef F77_DUMMY_MAIN |
---|
2924 | # ifdef __cplusplus |
---|
2925 | extern "C" |
---|
2926 | # endif |
---|
2927 | int F77_DUMMY_MAIN() { return 1; } |
---|
2928 | #endif |
---|
2929 | int |
---|
2930 | main () |
---|
2931 | { |
---|
2932 | exit (42); |
---|
2933 | ; |
---|
2934 | return 0; |
---|
2935 | } |
---|
2936 | _ACEOF |
---|
2937 | rm -f conftest.$ac_objext |
---|
2938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2939 | (eval $ac_compile) 2>&5 |
---|
2940 | ac_status=$? |
---|
2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2942 | (exit $ac_status); } && |
---|
2943 | { ac_try='test -s conftest.$ac_objext' |
---|
2944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2945 | (eval $ac_try) 2>&5 |
---|
2946 | ac_status=$? |
---|
2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2948 | (exit $ac_status); }; }; then |
---|
2949 | : |
---|
2950 | else |
---|
2951 | echo "$as_me: failed program was:" >&5 |
---|
2952 | cat conftest.$ac_ext >&5 |
---|
2953 | continue |
---|
2954 | fi |
---|
2955 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2956 | cat >conftest.$ac_ext <<_ACEOF |
---|
2957 | #line $LINENO "configure" |
---|
2958 | #include "confdefs.h" |
---|
2959 | $ac_declaration |
---|
2960 | #ifdef F77_DUMMY_MAIN |
---|
2961 | # ifdef __cplusplus |
---|
2962 | extern "C" |
---|
2963 | # endif |
---|
2964 | int F77_DUMMY_MAIN() { return 1; } |
---|
2965 | #endif |
---|
2966 | int |
---|
2967 | main () |
---|
2968 | { |
---|
2969 | exit (42); |
---|
2970 | ; |
---|
2971 | return 0; |
---|
2972 | } |
---|
2973 | _ACEOF |
---|
2974 | rm -f conftest.$ac_objext |
---|
2975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2976 | (eval $ac_compile) 2>&5 |
---|
2977 | ac_status=$? |
---|
2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2979 | (exit $ac_status); } && |
---|
2980 | { ac_try='test -s conftest.$ac_objext' |
---|
2981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2982 | (eval $ac_try) 2>&5 |
---|
2983 | ac_status=$? |
---|
2984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2985 | (exit $ac_status); }; }; then |
---|
2986 | break |
---|
2987 | else |
---|
2988 | echo "$as_me: failed program was:" >&5 |
---|
2989 | cat conftest.$ac_ext >&5 |
---|
2990 | fi |
---|
2991 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2992 | done |
---|
2993 | rm -f conftest* |
---|
2994 | if test -n "$ac_declaration"; then |
---|
2995 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2996 | echo $ac_declaration >>confdefs.h |
---|
2997 | echo '#endif' >>confdefs.h |
---|
2998 | fi |
---|
2999 | |
---|
3000 | else |
---|
3001 | echo "$as_me: failed program was:" >&5 |
---|
3002 | cat conftest.$ac_ext >&5 |
---|
3003 | fi |
---|
3004 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3005 | ac_ext=c |
---|
3006 | ac_cpp='$CPP $CPPFLAGS' |
---|
3007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3010 | |
---|
3011 | |
---|
3012 | |
---|
3013 | |
---|
3014 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
---|
3015 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
---|
3016 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
---|
3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3018 | else |
---|
3019 | am_cv_prog_cc_stdc=no |
---|
3020 | ac_save_CC="$CC" |
---|
3021 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3022 | # breaks some systems' header files. |
---|
3023 | # AIX -qlanglvl=ansi |
---|
3024 | # Ultrix and OSF/1 -std1 |
---|
3025 | # HP-UX -Aa -D_HPUX_SOURCE |
---|
3026 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3027 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3028 | do |
---|
3029 | CC="$ac_save_CC $ac_arg" |
---|
3030 | cat >conftest.$ac_ext <<_ACEOF |
---|
3031 | #line $LINENO "configure" |
---|
3032 | #include "confdefs.h" |
---|
3033 | #include <stdarg.h> |
---|
3034 | #include <stdio.h> |
---|
3035 | #include <sys/types.h> |
---|
3036 | #include <sys/stat.h> |
---|
3037 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3038 | struct buf { int x; }; |
---|
3039 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3040 | static char *e (p, i) |
---|
3041 | char **p; |
---|
3042 | int i; |
---|
3043 | { |
---|
3044 | return p[i]; |
---|
3045 | } |
---|
3046 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3047 | { |
---|
3048 | char *s; |
---|
3049 | va_list v; |
---|
3050 | va_start (v,p); |
---|
3051 | s = g (p, va_arg (v,int)); |
---|
3052 | va_end (v); |
---|
3053 | return s; |
---|
3054 | } |
---|
3055 | int test (int i, double x); |
---|
3056 | struct s1 {int (*f) (int a);}; |
---|
3057 | struct s2 {int (*f) (double a);}; |
---|
3058 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3059 | int argc; |
---|
3060 | char **argv; |
---|
3061 | |
---|
3062 | #ifdef F77_DUMMY_MAIN |
---|
3063 | # ifdef __cplusplus |
---|
3064 | extern "C" |
---|
3065 | # endif |
---|
3066 | int F77_DUMMY_MAIN() { return 1; } |
---|
3067 | #endif |
---|
3068 | int |
---|
3069 | main () |
---|
3070 | { |
---|
3071 | |
---|
3072 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3073 | |
---|
3074 | ; |
---|
3075 | return 0; |
---|
3076 | } |
---|
3077 | _ACEOF |
---|
3078 | rm -f conftest.$ac_objext |
---|
3079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3080 | (eval $ac_compile) 2>&5 |
---|
3081 | ac_status=$? |
---|
3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3083 | (exit $ac_status); } && |
---|
3084 | { ac_try='test -s conftest.$ac_objext' |
---|
3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3086 | (eval $ac_try) 2>&5 |
---|
3087 | ac_status=$? |
---|
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3089 | (exit $ac_status); }; }; then |
---|
3090 | am_cv_prog_cc_stdc="$ac_arg"; break |
---|
3091 | else |
---|
3092 | echo "$as_me: failed program was:" >&5 |
---|
3093 | cat conftest.$ac_ext >&5 |
---|
3094 | fi |
---|
3095 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3096 | done |
---|
3097 | CC="$ac_save_CC" |
---|
3098 | |
---|
3099 | fi |
---|
3100 | |
---|
3101 | if test -z "$am_cv_prog_cc_stdc"; then |
---|
3102 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3103 | echo "${ECHO_T}none needed" >&6 |
---|
3104 | else |
---|
3105 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
---|
3106 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
---|
3107 | fi |
---|
3108 | case "x$am_cv_prog_cc_stdc" in |
---|
3109 | x|xno) ;; |
---|
3110 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
---|
3111 | esac |
---|
3112 | |
---|
3113 | ac_ext=c |
---|
3114 | ac_cpp='$CPP $CPPFLAGS' |
---|
3115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3118 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3119 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3120 | # On Suns, sometimes $CPP names a directory. |
---|
3121 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3122 | CPP= |
---|
3123 | fi |
---|
3124 | if test -z "$CPP"; then |
---|
3125 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3127 | else |
---|
3128 | # Double quotes because CPP needs to be expanded |
---|
3129 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3130 | do |
---|
3131 | ac_preproc_ok=false |
---|
3132 | for ac_c_preproc_warn_flag in '' yes |
---|
3133 | do |
---|
3134 | # Use a header file that comes with gcc, so configuring glibc |
---|
3135 | # with a fresh cross-compiler works. |
---|
3136 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3137 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3138 | cat >conftest.$ac_ext <<_ACEOF |
---|
3139 | #line $LINENO "configure" |
---|
3140 | #include "confdefs.h" |
---|
3141 | #include <assert.h> |
---|
3142 | Syntax error |
---|
3143 | _ACEOF |
---|
3144 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3145 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3146 | ac_status=$? |
---|
3147 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3148 | rm -f conftest.er1 |
---|
3149 | cat conftest.err >&5 |
---|
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3151 | (exit $ac_status); } >/dev/null; then |
---|
3152 | if test -s conftest.err; then |
---|
3153 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3154 | else |
---|
3155 | ac_cpp_err= |
---|
3156 | fi |
---|
3157 | else |
---|
3158 | ac_cpp_err=yes |
---|
3159 | fi |
---|
3160 | if test -z "$ac_cpp_err"; then |
---|
3161 | : |
---|
3162 | else |
---|
3163 | echo "$as_me: failed program was:" >&5 |
---|
3164 | cat conftest.$ac_ext >&5 |
---|
3165 | # Broken: fails on valid input. |
---|
3166 | continue |
---|
3167 | fi |
---|
3168 | rm -f conftest.err conftest.$ac_ext |
---|
3169 | |
---|
3170 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3171 | # can be detected and how. |
---|
3172 | cat >conftest.$ac_ext <<_ACEOF |
---|
3173 | #line $LINENO "configure" |
---|
3174 | #include "confdefs.h" |
---|
3175 | #include <ac_nonexistent.h> |
---|
3176 | _ACEOF |
---|
3177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3179 | ac_status=$? |
---|
3180 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3181 | rm -f conftest.er1 |
---|
3182 | cat conftest.err >&5 |
---|
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3184 | (exit $ac_status); } >/dev/null; then |
---|
3185 | if test -s conftest.err; then |
---|
3186 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3187 | else |
---|
3188 | ac_cpp_err= |
---|
3189 | fi |
---|
3190 | else |
---|
3191 | ac_cpp_err=yes |
---|
3192 | fi |
---|
3193 | if test -z "$ac_cpp_err"; then |
---|
3194 | # Broken: success on invalid input. |
---|
3195 | continue |
---|
3196 | else |
---|
3197 | echo "$as_me: failed program was:" >&5 |
---|
3198 | cat conftest.$ac_ext >&5 |
---|
3199 | # Passes both tests. |
---|
3200 | ac_preproc_ok=: |
---|
3201 | break |
---|
3202 | fi |
---|
3203 | rm -f conftest.err conftest.$ac_ext |
---|
3204 | |
---|
3205 | done |
---|
3206 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3207 | rm -f conftest.err conftest.$ac_ext |
---|
3208 | if $ac_preproc_ok; then |
---|
3209 | break |
---|
3210 | fi |
---|
3211 | |
---|
3212 | done |
---|
3213 | ac_cv_prog_CPP=$CPP |
---|
3214 | |
---|
3215 | fi |
---|
3216 | CPP=$ac_cv_prog_CPP |
---|
3217 | else |
---|
3218 | ac_cv_prog_CPP=$CPP |
---|
3219 | fi |
---|
3220 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3221 | echo "${ECHO_T}$CPP" >&6 |
---|
3222 | ac_preproc_ok=false |
---|
3223 | for ac_c_preproc_warn_flag in '' yes |
---|
3224 | do |
---|
3225 | # Use a header file that comes with gcc, so configuring glibc |
---|
3226 | # with a fresh cross-compiler works. |
---|
3227 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3228 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3229 | cat >conftest.$ac_ext <<_ACEOF |
---|
3230 | #line $LINENO "configure" |
---|
3231 | #include "confdefs.h" |
---|
3232 | #include <assert.h> |
---|
3233 | Syntax error |
---|
3234 | _ACEOF |
---|
3235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3237 | ac_status=$? |
---|
3238 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3239 | rm -f conftest.er1 |
---|
3240 | cat conftest.err >&5 |
---|
3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3242 | (exit $ac_status); } >/dev/null; then |
---|
3243 | if test -s conftest.err; then |
---|
3244 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3245 | else |
---|
3246 | ac_cpp_err= |
---|
3247 | fi |
---|
3248 | else |
---|
3249 | ac_cpp_err=yes |
---|
3250 | fi |
---|
3251 | if test -z "$ac_cpp_err"; then |
---|
3252 | : |
---|
3253 | else |
---|
3254 | echo "$as_me: failed program was:" >&5 |
---|
3255 | cat conftest.$ac_ext >&5 |
---|
3256 | # Broken: fails on valid input. |
---|
3257 | continue |
---|
3258 | fi |
---|
3259 | rm -f conftest.err conftest.$ac_ext |
---|
3260 | |
---|
3261 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3262 | # can be detected and how. |
---|
3263 | cat >conftest.$ac_ext <<_ACEOF |
---|
3264 | #line $LINENO "configure" |
---|
3265 | #include "confdefs.h" |
---|
3266 | #include <ac_nonexistent.h> |
---|
3267 | _ACEOF |
---|
3268 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3269 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3270 | ac_status=$? |
---|
3271 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3272 | rm -f conftest.er1 |
---|
3273 | cat conftest.err >&5 |
---|
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3275 | (exit $ac_status); } >/dev/null; then |
---|
3276 | if test -s conftest.err; then |
---|
3277 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3278 | else |
---|
3279 | ac_cpp_err= |
---|
3280 | fi |
---|
3281 | else |
---|
3282 | ac_cpp_err=yes |
---|
3283 | fi |
---|
3284 | if test -z "$ac_cpp_err"; then |
---|
3285 | # Broken: success on invalid input. |
---|
3286 | continue |
---|
3287 | else |
---|
3288 | echo "$as_me: failed program was:" >&5 |
---|
3289 | cat conftest.$ac_ext >&5 |
---|
3290 | # Passes both tests. |
---|
3291 | ac_preproc_ok=: |
---|
3292 | break |
---|
3293 | fi |
---|
3294 | rm -f conftest.err conftest.$ac_ext |
---|
3295 | |
---|
3296 | done |
---|
3297 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3298 | rm -f conftest.err conftest.$ac_ext |
---|
3299 | if $ac_preproc_ok; then |
---|
3300 | : |
---|
3301 | else |
---|
3302 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
---|
3303 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
---|
3304 | { (exit 1); exit 1; }; } |
---|
3305 | fi |
---|
3306 | |
---|
3307 | ac_ext=c |
---|
3308 | ac_cpp='$CPP $CPPFLAGS' |
---|
3309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3312 | |
---|
3313 | |
---|
3314 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3315 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3316 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3318 | else |
---|
3319 | cat >conftest.$ac_ext <<_ACEOF |
---|
3320 | #line $LINENO "configure" |
---|
3321 | #include "confdefs.h" |
---|
3322 | #include <stdlib.h> |
---|
3323 | #include <stdarg.h> |
---|
3324 | #include <string.h> |
---|
3325 | #include <float.h> |
---|
3326 | |
---|
3327 | _ACEOF |
---|
3328 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3329 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3330 | ac_status=$? |
---|
3331 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
3332 | rm -f conftest.er1 |
---|
3333 | cat conftest.err >&5 |
---|
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3335 | (exit $ac_status); } >/dev/null; then |
---|
3336 | if test -s conftest.err; then |
---|
3337 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3338 | else |
---|
3339 | ac_cpp_err= |
---|
3340 | fi |
---|
3341 | else |
---|
3342 | ac_cpp_err=yes |
---|
3343 | fi |
---|
3344 | if test -z "$ac_cpp_err"; then |
---|
3345 | ac_cv_header_stdc=yes |
---|
3346 | else |
---|
3347 | echo "$as_me: failed program was:" >&5 |
---|
3348 | cat conftest.$ac_ext >&5 |
---|
3349 | ac_cv_header_stdc=no |
---|
3350 | fi |
---|
3351 | rm -f conftest.err conftest.$ac_ext |
---|
3352 | |
---|
3353 | if test $ac_cv_header_stdc = yes; then |
---|
3354 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3355 | cat >conftest.$ac_ext <<_ACEOF |
---|
3356 | #line $LINENO "configure" |
---|
3357 | #include "confdefs.h" |
---|
3358 | #include <string.h> |
---|
3359 | |
---|
3360 | _ACEOF |
---|
3361 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3362 | egrep "memchr" >/dev/null 2>&1; then |
---|
3363 | : |
---|
3364 | else |
---|
3365 | ac_cv_header_stdc=no |
---|
3366 | fi |
---|
3367 | rm -f conftest* |
---|
3368 | |
---|
3369 | fi |
---|
3370 | |
---|
3371 | if test $ac_cv_header_stdc = yes; then |
---|
3372 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3373 | cat >conftest.$ac_ext <<_ACEOF |
---|
3374 | #line $LINENO "configure" |
---|
3375 | #include "confdefs.h" |
---|
3376 | #include <stdlib.h> |
---|
3377 | |
---|
3378 | _ACEOF |
---|
3379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3380 | egrep "free" >/dev/null 2>&1; then |
---|
3381 | : |
---|
3382 | else |
---|
3383 | ac_cv_header_stdc=no |
---|
3384 | fi |
---|
3385 | rm -f conftest* |
---|
3386 | |
---|
3387 | fi |
---|
3388 | |
---|
3389 | if test $ac_cv_header_stdc = yes; then |
---|
3390 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3391 | if test "$cross_compiling" = yes; then |
---|
3392 | : |
---|
3393 | else |
---|
3394 | cat >conftest.$ac_ext <<_ACEOF |
---|
3395 | #line $LINENO "configure" |
---|
3396 | #include "confdefs.h" |
---|
3397 | #include <ctype.h> |
---|
3398 | #if ((' ' & 0x0FF) == 0x020) |
---|
3399 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3400 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3401 | #else |
---|
3402 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
---|
3403 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3404 | || ('s' <= (c) && (c) <= 'z')) |
---|
3405 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3406 | #endif |
---|
3407 | |
---|
3408 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3409 | int |
---|
3410 | main () |
---|
3411 | { |
---|
3412 | int i; |
---|
3413 | for (i = 0; i < 256; i++) |
---|
3414 | if (XOR (islower (i), ISLOWER (i)) |
---|
3415 | || toupper (i) != TOUPPER (i)) |
---|
3416 | exit(2); |
---|
3417 | exit (0); |
---|
3418 | } |
---|
3419 | _ACEOF |
---|
3420 | rm -f conftest$ac_exeext |
---|
3421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3422 | (eval $ac_link) 2>&5 |
---|
3423 | ac_status=$? |
---|
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3427 | (eval $ac_try) 2>&5 |
---|
3428 | ac_status=$? |
---|
3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3430 | (exit $ac_status); }; }; then |
---|
3431 | : |
---|
3432 | else |
---|
3433 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3434 | echo "$as_me: failed program was:" >&5 |
---|
3435 | cat conftest.$ac_ext >&5 |
---|
3436 | ( exit $ac_status ) |
---|
3437 | ac_cv_header_stdc=no |
---|
3438 | fi |
---|
3439 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3440 | fi |
---|
3441 | fi |
---|
3442 | fi |
---|
3443 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3444 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3445 | if test $ac_cv_header_stdc = yes; then |
---|
3446 | |
---|
3447 | cat >>confdefs.h <<\_ACEOF |
---|
3448 | #define STDC_HEADERS 1 |
---|
3449 | _ACEOF |
---|
3450 | |
---|
3451 | fi |
---|
3452 | |
---|
3453 | |
---|
3454 | |
---|
3455 | if test -z "" ; then |
---|
3456 | default_compile_warnings=no |
---|
3457 | else |
---|
3458 | default_compile_warnings="" |
---|
3459 | fi |
---|
3460 | |
---|
3461 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
---|
3462 | if test "${enable_compile_warnings+set}" = set; then |
---|
3463 | enableval="$enable_compile_warnings" |
---|
3464 | enable_compile_warnings="$default_compile_warnings" |
---|
3465 | else |
---|
3466 | enable_compile_warnings=yes |
---|
3467 | fi; |
---|
3468 | |
---|
3469 | warnCFLAGS= |
---|
3470 | if test "x$GCC" != xyes; then |
---|
3471 | enable_compile_warnings=no |
---|
3472 | fi |
---|
3473 | |
---|
3474 | warning_flags= |
---|
3475 | realsave_CFLAGS="$CFLAGS" |
---|
3476 | |
---|
3477 | case "$enable_compile_warnings" in |
---|
3478 | no) |
---|
3479 | warning_flags= |
---|
3480 | ;; |
---|
3481 | minimum) |
---|
3482 | warning_flags="-Wall -Wunused" |
---|
3483 | ;; |
---|
3484 | yes) |
---|
3485 | warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations" |
---|
3486 | ;; |
---|
3487 | maximum|error) |
---|
3488 | warning_flags="-Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith" |
---|
3489 | CFLAGS="$warning_flags $CFLAGS" |
---|
3490 | for option in -Wsign-promo -Wno-sign-compare; do |
---|
3491 | SAVE_CFLAGS="$CFLAGS" |
---|
3492 | CFLAGS="$CFLAGS $option" |
---|
3493 | echo "$as_me:$LINENO: checking whether gcc understands $option" >&5 |
---|
3494 | echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6 |
---|
3495 | cat >conftest.$ac_ext <<_ACEOF |
---|
3496 | #line $LINENO "configure" |
---|
3497 | #include "confdefs.h" |
---|
3498 | |
---|
3499 | #ifdef F77_DUMMY_MAIN |
---|
3500 | # ifdef __cplusplus |
---|
3501 | extern "C" |
---|
3502 | # endif |
---|
3503 | int F77_DUMMY_MAIN() { return 1; } |
---|
3504 | #endif |
---|
3505 | int |
---|
3506 | main () |
---|
3507 | { |
---|
3508 | |
---|
3509 | ; |
---|
3510 | return 0; |
---|
3511 | } |
---|
3512 | _ACEOF |
---|
3513 | rm -f conftest.$ac_objext |
---|
3514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3515 | (eval $ac_compile) 2>&5 |
---|
3516 | ac_status=$? |
---|
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3518 | (exit $ac_status); } && |
---|
3519 | { ac_try='test -s conftest.$ac_objext' |
---|
3520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3521 | (eval $ac_try) 2>&5 |
---|
3522 | ac_status=$? |
---|
3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3524 | (exit $ac_status); }; }; then |
---|
3525 | has_option=yes |
---|
3526 | else |
---|
3527 | echo "$as_me: failed program was:" >&5 |
---|
3528 | cat conftest.$ac_ext >&5 |
---|
3529 | has_option=no |
---|
3530 | fi |
---|
3531 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3532 | CFLAGS="$SAVE_CFLAGS" |
---|
3533 | echo "$as_me:$LINENO: result: $has_option" >&5 |
---|
3534 | echo "${ECHO_T}$has_option" >&6 |
---|
3535 | if test $has_option = yes; then |
---|
3536 | warning_flags="$warning_flags $option" |
---|
3537 | fi |
---|
3538 | unset has_option |
---|
3539 | unset SAVE_CFLAGS |
---|
3540 | done |
---|
3541 | unset option |
---|
3542 | if test "$enable_compile_warnings" = "error" ; then |
---|
3543 | warning_flags="$warning_flags -Werror" |
---|
3544 | fi |
---|
3545 | ;; |
---|
3546 | *) |
---|
3547 | { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5 |
---|
3548 | echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;} |
---|
3549 | { (exit 1); exit 1; }; } |
---|
3550 | ;; |
---|
3551 | esac |
---|
3552 | CFLAGS="$realsave_CFLAGS" |
---|
3553 | echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5 |
---|
3554 | echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6 |
---|
3555 | echo "$as_me:$LINENO: result: $warning_flags" >&5 |
---|
3556 | echo "${ECHO_T}$warning_flags" >&6 |
---|
3557 | |
---|
3558 | # Check whether --enable-iso-c or --disable-iso-c was given. |
---|
3559 | if test "${enable_iso_c+set}" = set; then |
---|
3560 | enableval="$enable_iso_c" |
---|
3561 | |
---|
3562 | else |
---|
3563 | enable_iso_c=no |
---|
3564 | fi; |
---|
3565 | |
---|
3566 | echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5 |
---|
3567 | echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6 |
---|
3568 | complCFLAGS= |
---|
3569 | if test "x$enable_iso_c" != "xno"; then |
---|
3570 | if test "x$GCC" = "xyes"; then |
---|
3571 | case " $CFLAGS " in |
---|
3572 | *\ \ -ansi\ \ *) ;; |
---|
3573 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
---|
3574 | esac |
---|
3575 | case " $CFLAGS " in |
---|
3576 | *\ \ -pedantic\ \ *) ;; |
---|
3577 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
---|
3578 | esac |
---|
3579 | fi |
---|
3580 | fi |
---|
3581 | echo "$as_me:$LINENO: result: $complCFLAGS" >&5 |
---|
3582 | echo "${ECHO_T}$complCFLAGS" >&6 |
---|
3583 | |
---|
3584 | WARN_CFLAGS="$warning_flags $complCFLAGS" |
---|
3585 | |
---|
3586 | |
---|
3587 | |
---|
3588 | LIBGNOME_REQUIRED=2.0.0 |
---|
3589 | LIBGNOMEUI_REQUIRED=2.0.0 |
---|
3590 | GCONF_REQUIRED=1.1.5 |
---|
3591 | LIBWNCK_REQUIRED=0.12 |
---|
3592 | LIBGTOP_REQUIRED=2.0.0 |
---|
3593 | GTK_REQUIRED=2.0.0 |
---|
3594 | |
---|
3595 | |
---|
3596 | succeeded=no |
---|
3597 | |
---|
3598 | if test -z "$PKG_CONFIG"; then |
---|
3599 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
3600 | set dummy pkg-config; ac_word=$2 |
---|
3601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3603 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3605 | else |
---|
3606 | case $PKG_CONFIG in |
---|
3607 | [\\/]* | ?:[\\/]*) |
---|
3608 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
3609 | ;; |
---|
3610 | *) |
---|
3611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3612 | for as_dir in $PATH |
---|
3613 | do |
---|
3614 | IFS=$as_save_IFS |
---|
3615 | test -z "$as_dir" && as_dir=. |
---|
3616 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3618 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
3619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3620 | break 2 |
---|
3621 | fi |
---|
3622 | done |
---|
3623 | done |
---|
3624 | |
---|
3625 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
---|
3626 | ;; |
---|
3627 | esac |
---|
3628 | fi |
---|
3629 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
3630 | |
---|
3631 | if test -n "$PKG_CONFIG"; then |
---|
3632 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
3633 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
3634 | else |
---|
3635 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3636 | echo "${ECHO_T}no" >&6 |
---|
3637 | fi |
---|
3638 | |
---|
3639 | fi |
---|
3640 | |
---|
3641 | if test "$PKG_CONFIG" = "no" ; then |
---|
3642 | echo "*** The pkg-config script could not be found. Make sure it is" |
---|
3643 | echo "*** in your path, or set the PKG_CONFIG environment variable" |
---|
3644 | echo "*** to the full path to pkg-config." |
---|
3645 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
---|
3646 | else |
---|
3647 | PKG_CONFIG_MIN_VERSION=0.9.0 |
---|
3648 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
---|
3649 | echo "$as_me:$LINENO: checking for libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED" >&5 |
---|
3650 | echo $ECHO_N "checking for libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED... $ECHO_C" >&6 |
---|
3651 | |
---|
3652 | if $PKG_CONFIG --exists "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED" ; then |
---|
3653 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3654 | echo "${ECHO_T}yes" >&6 |
---|
3655 | succeeded=yes |
---|
3656 | |
---|
3657 | echo "$as_me:$LINENO: checking PROCMAN_CFLAGS" >&5 |
---|
3658 | echo $ECHO_N "checking PROCMAN_CFLAGS... $ECHO_C" >&6 |
---|
3659 | PROCMAN_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED"` |
---|
3660 | echo "$as_me:$LINENO: result: $PROCMAN_CFLAGS" >&5 |
---|
3661 | echo "${ECHO_T}$PROCMAN_CFLAGS" >&6 |
---|
3662 | |
---|
3663 | echo "$as_me:$LINENO: checking PROCMAN_LIBS" >&5 |
---|
3664 | echo $ECHO_N "checking PROCMAN_LIBS... $ECHO_C" >&6 |
---|
3665 | PROCMAN_LIBS=`$PKG_CONFIG --libs "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED"` |
---|
3666 | echo "$as_me:$LINENO: result: $PROCMAN_LIBS" >&5 |
---|
3667 | echo "${ECHO_T}$PROCMAN_LIBS" >&6 |
---|
3668 | else |
---|
3669 | PROCMAN_CFLAGS="" |
---|
3670 | PROCMAN_LIBS="" |
---|
3671 | ## If we have a custom action on failure, don't print errors, but |
---|
3672 | ## do set a variable so people can do so. |
---|
3673 | PROCMAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED"` |
---|
3674 | echo $PROCMAN_PKG_ERRORS |
---|
3675 | fi |
---|
3676 | |
---|
3677 | |
---|
3678 | |
---|
3679 | else |
---|
3680 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
---|
3681 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
---|
3682 | fi |
---|
3683 | fi |
---|
3684 | |
---|
3685 | if test $succeeded = yes; then |
---|
3686 | : |
---|
3687 | else |
---|
3688 | { { echo "$as_me:$LINENO: error: Library requirements (libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 |
---|
3689 | echo "$as_me: error: Library requirements (libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} |
---|
3690 | { (exit 1); exit 1; }; } |
---|
3691 | fi |
---|
3692 | |
---|
3693 | |
---|
3694 | |
---|
3695 | |
---|
3696 | |
---|
3697 | |
---|
3698 | if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then |
---|
3699 | GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
3700 | else |
---|
3701 | GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE |
---|
3702 | fi |
---|
3703 | |
---|
3704 | |
---|
3705 | # Check whether --with-gconf-source or --without-gconf-source was given. |
---|
3706 | if test "${with_gconf_source+set}" = set; then |
---|
3707 | withval="$with_gconf_source" |
---|
3708 | GCONF_SCHEMA_CONFIG_SOURCE="$withval" |
---|
3709 | fi; |
---|
3710 | |
---|
3711 | |
---|
3712 | echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5 |
---|
3713 | echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6 |
---|
3714 | |
---|
3715 | if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then |
---|
3716 | GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas/' |
---|
3717 | else |
---|
3718 | GCONF_SCHEMA_FILE_DIR=$GCONF_SCHEMA_FILE_DIR |
---|
3719 | fi |
---|
3720 | |
---|
3721 | |
---|
3722 | # Check whether --with-gconf-schema-file-dir or --without-gconf-schema-file-dir was given. |
---|
3723 | if test "${with_gconf_schema_file_dir+set}" = set; then |
---|
3724 | withval="$with_gconf_schema_file_dir" |
---|
3725 | GCONF_SCHEMA_FILE_DIR="$withval" |
---|
3726 | fi; |
---|
3727 | |
---|
3728 | |
---|
3729 | echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5 |
---|
3730 | echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6 |
---|
3731 | |
---|
3732 | |
---|
3733 | cat >>confdefs.h <<_ACEOF |
---|
3734 | #define GNOME_ICONDIR "${prefix}/share/pixmaps" |
---|
3735 | _ACEOF |
---|
3736 | |
---|
3737 | |
---|
3738 | ALL_LINGUAS="am ar az be bg ca cs da de el es fr gl hu it ja ko lv mk ms nl no pl pt pt_BR ro ru sk sl sq sv tr uk vi zh_CN zh_TW" |
---|
3739 | |
---|
3740 | GETTEXT_PACKAGE=gnome-system-monitor |
---|
3741 | |
---|
3742 | cat >>confdefs.h <<_ACEOF |
---|
3743 | #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" |
---|
3744 | _ACEOF |
---|
3745 | |
---|
3746 | if test -n "$ac_tool_prefix"; then |
---|
3747 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
3748 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
3749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3751 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3753 | else |
---|
3754 | if test -n "$RANLIB"; then |
---|
3755 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
3756 | else |
---|
3757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3758 | for as_dir in $PATH |
---|
3759 | do |
---|
3760 | IFS=$as_save_IFS |
---|
3761 | test -z "$as_dir" && as_dir=. |
---|
3762 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3764 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
3765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3766 | break 2 |
---|
3767 | fi |
---|
3768 | done |
---|
3769 | done |
---|
3770 | |
---|
3771 | fi |
---|
3772 | fi |
---|
3773 | RANLIB=$ac_cv_prog_RANLIB |
---|
3774 | if test -n "$RANLIB"; then |
---|
3775 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
3776 | echo "${ECHO_T}$RANLIB" >&6 |
---|
3777 | else |
---|
3778 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3779 | echo "${ECHO_T}no" >&6 |
---|
3780 | fi |
---|
3781 | |
---|
3782 | fi |
---|
3783 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
3784 | ac_ct_RANLIB=$RANLIB |
---|
3785 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
3786 | set dummy ranlib; ac_word=$2 |
---|
3787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3789 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
3790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3791 | else |
---|
3792 | if test -n "$ac_ct_RANLIB"; then |
---|
3793 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
3794 | else |
---|
3795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3796 | for as_dir in $PATH |
---|
3797 | do |
---|
3798 | IFS=$as_save_IFS |
---|
3799 | test -z "$as_dir" && as_dir=. |
---|
3800 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3802 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
3803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3804 | break 2 |
---|
3805 | fi |
---|
3806 | done |
---|
3807 | done |
---|
3808 | |
---|
3809 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
3810 | fi |
---|
3811 | fi |
---|
3812 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
3813 | if test -n "$ac_ct_RANLIB"; then |
---|
3814 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
3815 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
3816 | else |
---|
3817 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3818 | echo "${ECHO_T}no" >&6 |
---|
3819 | fi |
---|
3820 | |
---|
3821 | RANLIB=$ac_ct_RANLIB |
---|
3822 | else |
---|
3823 | RANLIB="$ac_cv_prog_RANLIB" |
---|
3824 | fi |
---|
3825 | |
---|
3826 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3827 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3828 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3830 | else |
---|
3831 | ac_cv_prog_cc_stdc=no |
---|
3832 | ac_save_CC=$CC |
---|
3833 | cat >conftest.$ac_ext <<_ACEOF |
---|
3834 | #line $LINENO "configure" |
---|
3835 | #include "confdefs.h" |
---|
3836 | #include <stdarg.h> |
---|
3837 | #include <stdio.h> |
---|
3838 | #include <sys/types.h> |
---|
3839 | #include <sys/stat.h> |
---|
3840 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3841 | struct buf { int x; }; |
---|
3842 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3843 | static char *e (p, i) |
---|
3844 | char **p; |
---|
3845 | int i; |
---|
3846 | { |
---|
3847 | return p[i]; |
---|
3848 | } |
---|
3849 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3850 | { |
---|
3851 | char *s; |
---|
3852 | va_list v; |
---|
3853 | va_start (v,p); |
---|
3854 | s = g (p, va_arg (v,int)); |
---|
3855 | va_end (v); |
---|
3856 | return s; |
---|
3857 | } |
---|
3858 | int test (int i, double x); |
---|
3859 | struct s1 {int (*f) (int a);}; |
---|
3860 | struct s2 {int (*f) (double a);}; |
---|
3861 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3862 | int argc; |
---|
3863 | char **argv; |
---|
3864 | #ifdef F77_DUMMY_MAIN |
---|
3865 | # ifdef __cplusplus |
---|
3866 | extern "C" |
---|
3867 | # endif |
---|
3868 | int F77_DUMMY_MAIN() { return 1; } |
---|
3869 | #endif |
---|
3870 | int |
---|
3871 | main () |
---|
3872 | { |
---|
3873 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3874 | ; |
---|
3875 | return 0; |
---|
3876 | } |
---|
3877 | _ACEOF |
---|
3878 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3879 | # breaks some systems' header files. |
---|
3880 | # AIX -qlanglvl=ansi |
---|
3881 | # Ultrix and OSF/1 -std1 |
---|
3882 | # HP-UX 10.20 and later -Ae |
---|
3883 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3884 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3885 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3886 | do |
---|
3887 | CC="$ac_save_CC $ac_arg" |
---|
3888 | rm -f conftest.$ac_objext |
---|
3889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3890 | (eval $ac_compile) 2>&5 |
---|
3891 | ac_status=$? |
---|
3892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3893 | (exit $ac_status); } && |
---|
3894 | { ac_try='test -s conftest.$ac_objext' |
---|
3895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3896 | (eval $ac_try) 2>&5 |
---|
3897 | ac_status=$? |
---|
3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3899 | (exit $ac_status); }; }; then |
---|
3900 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3901 | break |
---|
3902 | else |
---|
3903 | echo "$as_me: failed program was:" >&5 |
---|
3904 | cat conftest.$ac_ext >&5 |
---|
3905 | fi |
---|
3906 | rm -f conftest.$ac_objext |
---|
3907 | done |
---|
3908 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3909 | CC=$ac_save_CC |
---|
3910 | |
---|
3911 | fi |
---|
3912 | |
---|
3913 | case "x$ac_cv_prog_cc_stdc" in |
---|
3914 | x|xno) |
---|
3915 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3916 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3917 | *) |
---|
3918 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3919 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3920 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3921 | esac |
---|
3922 | |
---|
3923 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
3924 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
3925 | if test "${ac_cv_c_const+set}" = set; then |
---|
3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3927 | else |
---|
3928 | cat >conftest.$ac_ext <<_ACEOF |
---|
3929 | #line $LINENO "configure" |
---|
3930 | #include "confdefs.h" |
---|
3931 | |
---|
3932 | #ifdef F77_DUMMY_MAIN |
---|
3933 | # ifdef __cplusplus |
---|
3934 | extern "C" |
---|
3935 | # endif |
---|
3936 | int F77_DUMMY_MAIN() { return 1; } |
---|
3937 | #endif |
---|
3938 | int |
---|
3939 | main () |
---|
3940 | { |
---|
3941 | /* FIXME: Include the comments suggested by Paul. */ |
---|
3942 | #ifndef __cplusplus |
---|
3943 | /* Ultrix mips cc rejects this. */ |
---|
3944 | typedef int charset[2]; |
---|
3945 | const charset x; |
---|
3946 | /* SunOS 4.1.1 cc rejects this. */ |
---|
3947 | char const *const *ccp; |
---|
3948 | char **p; |
---|
3949 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
3950 | struct point {int x, y;}; |
---|
3951 | static struct point const zero = {0,0}; |
---|
3952 | /* AIX XL C 1.02.0.0 rejects this. |
---|
3953 | It does not let you subtract one const X* pointer from another in |
---|
3954 | an arm of an if-expression whose if-part is not a constant |
---|
3955 | expression */ |
---|
3956 | const char *g = "string"; |
---|
3957 | ccp = &g + (g ? g-g : 0); |
---|
3958 | /* HPUX 7.0 cc rejects these. */ |
---|
3959 | ++ccp; |
---|
3960 | p = (char**) ccp; |
---|
3961 | ccp = (char const *const *) p; |
---|
3962 | { /* SCO 3.2v4 cc rejects this. */ |
---|
3963 | char *t; |
---|
3964 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
3965 | |
---|
3966 | *t++ = 0; |
---|
3967 | } |
---|
3968 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
3969 | int x[] = {25, 17}; |
---|
3970 | const int *foo = &x[0]; |
---|
3971 | ++foo; |
---|
3972 | } |
---|
3973 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
3974 | typedef const int *iptr; |
---|
3975 | iptr p = 0; |
---|
3976 | ++p; |
---|
3977 | } |
---|
3978 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
3979 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
3980 | struct s { int j; const int *ap[3]; }; |
---|
3981 | struct s *b; b->j = 5; |
---|
3982 | } |
---|
3983 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
3984 | const int foo = 10; |
---|
3985 | } |
---|
3986 | #endif |
---|
3987 | |
---|
3988 | ; |
---|
3989 | return 0; |
---|
3990 | } |
---|
3991 | _ACEOF |
---|
3992 | rm -f conftest.$ac_objext |
---|
3993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3994 | (eval $ac_compile) 2>&5 |
---|
3995 | ac_status=$? |
---|
3996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3997 | (exit $ac_status); } && |
---|
3998 | { ac_try='test -s conftest.$ac_objext' |
---|
3999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4000 | (eval $ac_try) 2>&5 |
---|
4001 | ac_status=$? |
---|
4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4003 | (exit $ac_status); }; }; then |
---|
4004 | ac_cv_c_const=yes |
---|
4005 | else |
---|
4006 | echo "$as_me: failed program was:" >&5 |
---|
4007 | cat conftest.$ac_ext >&5 |
---|
4008 | ac_cv_c_const=no |
---|
4009 | fi |
---|
4010 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4011 | fi |
---|
4012 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
4013 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
4014 | if test $ac_cv_c_const = no; then |
---|
4015 | |
---|
4016 | cat >>confdefs.h <<\_ACEOF |
---|
4017 | #define const |
---|
4018 | _ACEOF |
---|
4019 | |
---|
4020 | fi |
---|
4021 | |
---|
4022 | echo "$as_me:$LINENO: checking for inline" >&5 |
---|
4023 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
---|
4024 | if test "${ac_cv_c_inline+set}" = set; then |
---|
4025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4026 | else |
---|
4027 | ac_cv_c_inline=no |
---|
4028 | for ac_kw in inline __inline__ __inline; do |
---|
4029 | cat >conftest.$ac_ext <<_ACEOF |
---|
4030 | #line $LINENO "configure" |
---|
4031 | #include "confdefs.h" |
---|
4032 | #ifndef __cplusplus |
---|
4033 | static $ac_kw int static_foo () {return 0; } |
---|
4034 | $ac_kw int foo () {return 0; } |
---|
4035 | #endif |
---|
4036 | |
---|
4037 | _ACEOF |
---|
4038 | rm -f conftest.$ac_objext |
---|
4039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4040 | (eval $ac_compile) 2>&5 |
---|
4041 | ac_status=$? |
---|
4042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4043 | (exit $ac_status); } && |
---|
4044 | { ac_try='test -s conftest.$ac_objext' |
---|
4045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4046 | (eval $ac_try) 2>&5 |
---|
4047 | ac_status=$? |
---|
4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4049 | (exit $ac_status); }; }; then |
---|
4050 | ac_cv_c_inline=$ac_kw; break |
---|
4051 | else |
---|
4052 | echo "$as_me: failed program was:" >&5 |
---|
4053 | cat conftest.$ac_ext >&5 |
---|
4054 | fi |
---|
4055 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4056 | done |
---|
4057 | |
---|
4058 | fi |
---|
4059 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
4060 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
---|
4061 | case $ac_cv_c_inline in |
---|
4062 | inline | yes) ;; |
---|
4063 | no) |
---|
4064 | cat >>confdefs.h <<\_ACEOF |
---|
4065 | #define inline |
---|
4066 | _ACEOF |
---|
4067 | ;; |
---|
4068 | *) cat >>confdefs.h <<_ACEOF |
---|
4069 | #define inline $ac_cv_c_inline |
---|
4070 | _ACEOF |
---|
4071 | ;; |
---|
4072 | esac |
---|
4073 | |
---|
4074 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4075 | |
---|
4076 | |
---|
4077 | |
---|
4078 | |
---|
4079 | |
---|
4080 | |
---|
4081 | |
---|
4082 | |
---|
4083 | |
---|
4084 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4085 | inttypes.h stdint.h unistd.h |
---|
4086 | do |
---|
4087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4088 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4092 | else |
---|
4093 | cat >conftest.$ac_ext <<_ACEOF |
---|
4094 | #line $LINENO "configure" |
---|
4095 | #include "confdefs.h" |
---|
4096 | $ac_includes_default |
---|
4097 | |
---|
4098 | #include <$ac_header> |
---|
4099 | _ACEOF |
---|
4100 | rm -f conftest.$ac_objext |
---|
4101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4102 | (eval $ac_compile) 2>&5 |
---|
4103 | ac_status=$? |
---|
4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4105 | (exit $ac_status); } && |
---|
4106 | { ac_try='test -s conftest.$ac_objext' |
---|
4107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4108 | (eval $ac_try) 2>&5 |
---|
4109 | ac_status=$? |
---|
4110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4111 | (exit $ac_status); }; }; then |
---|
4112 | eval "$as_ac_Header=yes" |
---|
4113 | else |
---|
4114 | echo "$as_me: failed program was:" >&5 |
---|
4115 | cat conftest.$ac_ext >&5 |
---|
4116 | eval "$as_ac_Header=no" |
---|
4117 | fi |
---|
4118 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4119 | fi |
---|
4120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4121 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4123 | cat >>confdefs.h <<_ACEOF |
---|
4124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4125 | _ACEOF |
---|
4126 | |
---|
4127 | fi |
---|
4128 | |
---|
4129 | done |
---|
4130 | |
---|
4131 | |
---|
4132 | echo "$as_me:$LINENO: checking for off_t" >&5 |
---|
4133 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
---|
4134 | if test "${ac_cv_type_off_t+set}" = set; then |
---|
4135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4136 | else |
---|
4137 | cat >conftest.$ac_ext <<_ACEOF |
---|
4138 | #line $LINENO "configure" |
---|
4139 | #include "confdefs.h" |
---|
4140 | $ac_includes_default |
---|
4141 | #ifdef F77_DUMMY_MAIN |
---|
4142 | # ifdef __cplusplus |
---|
4143 | extern "C" |
---|
4144 | # endif |
---|
4145 | int F77_DUMMY_MAIN() { return 1; } |
---|
4146 | #endif |
---|
4147 | int |
---|
4148 | main () |
---|
4149 | { |
---|
4150 | if ((off_t *) 0) |
---|
4151 | return 0; |
---|
4152 | if (sizeof (off_t)) |
---|
4153 | return 0; |
---|
4154 | ; |
---|
4155 | return 0; |
---|
4156 | } |
---|
4157 | _ACEOF |
---|
4158 | rm -f conftest.$ac_objext |
---|
4159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4160 | (eval $ac_compile) 2>&5 |
---|
4161 | ac_status=$? |
---|
4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4163 | (exit $ac_status); } && |
---|
4164 | { ac_try='test -s conftest.$ac_objext' |
---|
4165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4166 | (eval $ac_try) 2>&5 |
---|
4167 | ac_status=$? |
---|
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4169 | (exit $ac_status); }; }; then |
---|
4170 | ac_cv_type_off_t=yes |
---|
4171 | else |
---|
4172 | echo "$as_me: failed program was:" >&5 |
---|
4173 | cat conftest.$ac_ext >&5 |
---|
4174 | ac_cv_type_off_t=no |
---|
4175 | fi |
---|
4176 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4177 | fi |
---|
4178 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
---|
4179 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
---|
4180 | if test $ac_cv_type_off_t = yes; then |
---|
4181 | : |
---|
4182 | else |
---|
4183 | |
---|
4184 | cat >>confdefs.h <<_ACEOF |
---|
4185 | #define off_t long |
---|
4186 | _ACEOF |
---|
4187 | |
---|
4188 | fi |
---|
4189 | |
---|
4190 | echo "$as_me:$LINENO: checking for size_t" >&5 |
---|
4191 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
---|
4192 | if test "${ac_cv_type_size_t+set}" = set; then |
---|
4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4194 | else |
---|
4195 | cat >conftest.$ac_ext <<_ACEOF |
---|
4196 | #line $LINENO "configure" |
---|
4197 | #include "confdefs.h" |
---|
4198 | $ac_includes_default |
---|
4199 | #ifdef F77_DUMMY_MAIN |
---|
4200 | # ifdef __cplusplus |
---|
4201 | extern "C" |
---|
4202 | # endif |
---|
4203 | int F77_DUMMY_MAIN() { return 1; } |
---|
4204 | #endif |
---|
4205 | int |
---|
4206 | main () |
---|
4207 | { |
---|
4208 | if ((size_t *) 0) |
---|
4209 | return 0; |
---|
4210 | if (sizeof (size_t)) |
---|
4211 | return 0; |
---|
4212 | ; |
---|
4213 | return 0; |
---|
4214 | } |
---|
4215 | _ACEOF |
---|
4216 | rm -f conftest.$ac_objext |
---|
4217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4218 | (eval $ac_compile) 2>&5 |
---|
4219 | ac_status=$? |
---|
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4221 | (exit $ac_status); } && |
---|
4222 | { ac_try='test -s conftest.$ac_objext' |
---|
4223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4224 | (eval $ac_try) 2>&5 |
---|
4225 | ac_status=$? |
---|
4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4227 | (exit $ac_status); }; }; then |
---|
4228 | ac_cv_type_size_t=yes |
---|
4229 | else |
---|
4230 | echo "$as_me: failed program was:" >&5 |
---|
4231 | cat conftest.$ac_ext >&5 |
---|
4232 | ac_cv_type_size_t=no |
---|
4233 | fi |
---|
4234 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4235 | fi |
---|
4236 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
---|
4237 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
---|
4238 | if test $ac_cv_type_size_t = yes; then |
---|
4239 | : |
---|
4240 | else |
---|
4241 | |
---|
4242 | cat >>confdefs.h <<_ACEOF |
---|
4243 | #define size_t unsigned |
---|
4244 | _ACEOF |
---|
4245 | |
---|
4246 | fi |
---|
4247 | |
---|
4248 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
4249 | # for constant arguments. Useless! |
---|
4250 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
---|
4251 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
---|
4252 | if test "${ac_cv_working_alloca_h+set}" = set; then |
---|
4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4254 | else |
---|
4255 | cat >conftest.$ac_ext <<_ACEOF |
---|
4256 | #line $LINENO "configure" |
---|
4257 | #include "confdefs.h" |
---|
4258 | #include <alloca.h> |
---|
4259 | #ifdef F77_DUMMY_MAIN |
---|
4260 | # ifdef __cplusplus |
---|
4261 | extern "C" |
---|
4262 | # endif |
---|
4263 | int F77_DUMMY_MAIN() { return 1; } |
---|
4264 | #endif |
---|
4265 | int |
---|
4266 | main () |
---|
4267 | { |
---|
4268 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
4269 | ; |
---|
4270 | return 0; |
---|
4271 | } |
---|
4272 | _ACEOF |
---|
4273 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4275 | (eval $ac_link) 2>&5 |
---|
4276 | ac_status=$? |
---|
4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4278 | (exit $ac_status); } && |
---|
4279 | { ac_try='test -s conftest$ac_exeext' |
---|
4280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4281 | (eval $ac_try) 2>&5 |
---|
4282 | ac_status=$? |
---|
4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4284 | (exit $ac_status); }; }; then |
---|
4285 | ac_cv_working_alloca_h=yes |
---|
4286 | else |
---|
4287 | echo "$as_me: failed program was:" >&5 |
---|
4288 | cat conftest.$ac_ext >&5 |
---|
4289 | ac_cv_working_alloca_h=no |
---|
4290 | fi |
---|
4291 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4292 | fi |
---|
4293 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
---|
4294 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
---|
4295 | if test $ac_cv_working_alloca_h = yes; then |
---|
4296 | |
---|
4297 | cat >>confdefs.h <<\_ACEOF |
---|
4298 | #define HAVE_ALLOCA_H 1 |
---|
4299 | _ACEOF |
---|
4300 | |
---|
4301 | fi |
---|
4302 | |
---|
4303 | echo "$as_me:$LINENO: checking for alloca" >&5 |
---|
4304 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
---|
4305 | if test "${ac_cv_func_alloca_works+set}" = set; then |
---|
4306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4307 | else |
---|
4308 | cat >conftest.$ac_ext <<_ACEOF |
---|
4309 | #line $LINENO "configure" |
---|
4310 | #include "confdefs.h" |
---|
4311 | #ifdef __GNUC__ |
---|
4312 | # define alloca __builtin_alloca |
---|
4313 | #else |
---|
4314 | # ifdef _MSC_VER |
---|
4315 | # include <malloc.h> |
---|
4316 | # define alloca _alloca |
---|
4317 | # else |
---|
4318 | # if HAVE_ALLOCA_H |
---|
4319 | # include <alloca.h> |
---|
4320 | # else |
---|
4321 | # ifdef _AIX |
---|
4322 | #pragma alloca |
---|
4323 | # else |
---|
4324 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
4325 | char *alloca (); |
---|
4326 | # endif |
---|
4327 | # endif |
---|
4328 | # endif |
---|
4329 | # endif |
---|
4330 | #endif |
---|
4331 | |
---|
4332 | #ifdef F77_DUMMY_MAIN |
---|
4333 | # ifdef __cplusplus |
---|
4334 | extern "C" |
---|
4335 | # endif |
---|
4336 | int F77_DUMMY_MAIN() { return 1; } |
---|
4337 | #endif |
---|
4338 | int |
---|
4339 | main () |
---|
4340 | { |
---|
4341 | char *p = (char *) alloca (1); |
---|
4342 | ; |
---|
4343 | return 0; |
---|
4344 | } |
---|
4345 | _ACEOF |
---|
4346 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4348 | (eval $ac_link) 2>&5 |
---|
4349 | ac_status=$? |
---|
4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4351 | (exit $ac_status); } && |
---|
4352 | { ac_try='test -s conftest$ac_exeext' |
---|
4353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4354 | (eval $ac_try) 2>&5 |
---|
4355 | ac_status=$? |
---|
4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4357 | (exit $ac_status); }; }; then |
---|
4358 | ac_cv_func_alloca_works=yes |
---|
4359 | else |
---|
4360 | echo "$as_me: failed program was:" >&5 |
---|
4361 | cat conftest.$ac_ext >&5 |
---|
4362 | ac_cv_func_alloca_works=no |
---|
4363 | fi |
---|
4364 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4365 | fi |
---|
4366 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
---|
4367 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
---|
4368 | |
---|
4369 | if test $ac_cv_func_alloca_works = yes; then |
---|
4370 | |
---|
4371 | cat >>confdefs.h <<\_ACEOF |
---|
4372 | #define HAVE_ALLOCA 1 |
---|
4373 | _ACEOF |
---|
4374 | |
---|
4375 | else |
---|
4376 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4377 | # that cause trouble. Some versions do not even contain alloca or |
---|
4378 | # contain a buggy version. If you still want to use their alloca, |
---|
4379 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4380 | |
---|
4381 | ALLOCA=alloca.$ac_objext |
---|
4382 | |
---|
4383 | cat >>confdefs.h <<\_ACEOF |
---|
4384 | #define C_ALLOCA 1 |
---|
4385 | _ACEOF |
---|
4386 | |
---|
4387 | |
---|
4388 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
4389 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
---|
4390 | if test "${ac_cv_os_cray+set}" = set; then |
---|
4391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4392 | else |
---|
4393 | cat >conftest.$ac_ext <<_ACEOF |
---|
4394 | #line $LINENO "configure" |
---|
4395 | #include "confdefs.h" |
---|
4396 | #if defined(CRAY) && ! defined(CRAY2) |
---|
4397 | webecray |
---|
4398 | #else |
---|
4399 | wenotbecray |
---|
4400 | #endif |
---|
4401 | |
---|
4402 | _ACEOF |
---|
4403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4404 | egrep "webecray" >/dev/null 2>&1; then |
---|
4405 | ac_cv_os_cray=yes |
---|
4406 | else |
---|
4407 | ac_cv_os_cray=no |
---|
4408 | fi |
---|
4409 | rm -f conftest* |
---|
4410 | |
---|
4411 | fi |
---|
4412 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
---|
4413 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
---|
4414 | if test $ac_cv_os_cray = yes; then |
---|
4415 | for ac_func in _getb67 GETB67 getb67; do |
---|
4416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4417 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
4419 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
4420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4421 | else |
---|
4422 | cat >conftest.$ac_ext <<_ACEOF |
---|
4423 | #line $LINENO "configure" |
---|
4424 | #include "confdefs.h" |
---|
4425 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4426 | which can conflict with char $ac_func (); below. */ |
---|
4427 | #include <assert.h> |
---|
4428 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4429 | #ifdef __cplusplus |
---|
4430 | extern "C" |
---|
4431 | #endif |
---|
4432 | /* We use char because int might match the return type of a gcc2 |
---|
4433 | builtin and then its argument prototype would still apply. */ |
---|
4434 | char $ac_func (); |
---|
4435 | char (*f) (); |
---|
4436 | |
---|
4437 | #ifdef F77_DUMMY_MAIN |
---|
4438 | # ifdef __cplusplus |
---|
4439 | extern "C" |
---|
4440 | # endif |
---|
4441 | int F77_DUMMY_MAIN() { return 1; } |
---|
4442 | #endif |
---|
4443 | int |
---|
4444 | main () |
---|
4445 | { |
---|
4446 | /* The GNU C library defines this for functions which it implements |
---|
4447 | to always fail with ENOSYS. Some functions are actually named |
---|
4448 | something starting with __ and the normal name is an alias. */ |
---|
4449 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4450 | choke me |
---|
4451 | #else |
---|
4452 | f = $ac_func; |
---|
4453 | #endif |
---|
4454 | |
---|
4455 | ; |
---|
4456 | return 0; |
---|
4457 | } |
---|
4458 | _ACEOF |
---|
4459 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4461 | (eval $ac_link) 2>&5 |
---|
4462 | ac_status=$? |
---|
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4464 | (exit $ac_status); } && |
---|
4465 | { ac_try='test -s conftest$ac_exeext' |
---|
4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4467 | (eval $ac_try) 2>&5 |
---|
4468 | ac_status=$? |
---|
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4470 | (exit $ac_status); }; }; then |
---|
4471 | eval "$as_ac_var=yes" |
---|
4472 | else |
---|
4473 | echo "$as_me: failed program was:" >&5 |
---|
4474 | cat conftest.$ac_ext >&5 |
---|
4475 | eval "$as_ac_var=no" |
---|
4476 | fi |
---|
4477 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4478 | fi |
---|
4479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
4480 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
4481 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
4482 | |
---|
4483 | cat >>confdefs.h <<_ACEOF |
---|
4484 | #define CRAY_STACKSEG_END $ac_func |
---|
4485 | _ACEOF |
---|
4486 | |
---|
4487 | break |
---|
4488 | fi |
---|
4489 | |
---|
4490 | done |
---|
4491 | fi |
---|
4492 | |
---|
4493 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
---|
4494 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
---|
4495 | if test "${ac_cv_c_stack_direction+set}" = set; then |
---|
4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4497 | else |
---|
4498 | if test "$cross_compiling" = yes; then |
---|
4499 | ac_cv_c_stack_direction=0 |
---|
4500 | else |
---|
4501 | cat >conftest.$ac_ext <<_ACEOF |
---|
4502 | #line $LINENO "configure" |
---|
4503 | #include "confdefs.h" |
---|
4504 | int |
---|
4505 | find_stack_direction () |
---|
4506 | { |
---|
4507 | static char *addr = 0; |
---|
4508 | auto char dummy; |
---|
4509 | if (addr == 0) |
---|
4510 | { |
---|
4511 | addr = &dummy; |
---|
4512 | return find_stack_direction (); |
---|
4513 | } |
---|
4514 | else |
---|
4515 | return (&dummy > addr) ? 1 : -1; |
---|
4516 | } |
---|
4517 | |
---|
4518 | int |
---|
4519 | main () |
---|
4520 | { |
---|
4521 | exit (find_stack_direction () < 0); |
---|
4522 | } |
---|
4523 | _ACEOF |
---|
4524 | rm -f conftest$ac_exeext |
---|
4525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4526 | (eval $ac_link) 2>&5 |
---|
4527 | ac_status=$? |
---|
4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4529 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4531 | (eval $ac_try) 2>&5 |
---|
4532 | ac_status=$? |
---|
4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4534 | (exit $ac_status); }; }; then |
---|
4535 | ac_cv_c_stack_direction=1 |
---|
4536 | else |
---|
4537 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4538 | echo "$as_me: failed program was:" >&5 |
---|
4539 | cat conftest.$ac_ext >&5 |
---|
4540 | ( exit $ac_status ) |
---|
4541 | ac_cv_c_stack_direction=-1 |
---|
4542 | fi |
---|
4543 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4544 | fi |
---|
4545 | fi |
---|
4546 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
---|
4547 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
---|
4548 | |
---|
4549 | cat >>confdefs.h <<_ACEOF |
---|
4550 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
4551 | _ACEOF |
---|
4552 | |
---|
4553 | |
---|
4554 | fi |
---|
4555 | |
---|
4556 | |
---|
4557 | |
---|
4558 | for ac_header in stdlib.h unistd.h |
---|
4559 | do |
---|
4560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4566 | fi |
---|
4567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4569 | else |
---|
4570 | # Is the header compilable? |
---|
4571 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4572 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4573 | cat >conftest.$ac_ext <<_ACEOF |
---|
4574 | #line $LINENO "configure" |
---|
4575 | #include "confdefs.h" |
---|
4576 | $ac_includes_default |
---|
4577 | #include <$ac_header> |
---|
4578 | _ACEOF |
---|
4579 | rm -f conftest.$ac_objext |
---|
4580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4581 | (eval $ac_compile) 2>&5 |
---|
4582 | ac_status=$? |
---|
4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4584 | (exit $ac_status); } && |
---|
4585 | { ac_try='test -s conftest.$ac_objext' |
---|
4586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4587 | (eval $ac_try) 2>&5 |
---|
4588 | ac_status=$? |
---|
4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4590 | (exit $ac_status); }; }; then |
---|
4591 | ac_header_compiler=yes |
---|
4592 | else |
---|
4593 | echo "$as_me: failed program was:" >&5 |
---|
4594 | cat conftest.$ac_ext >&5 |
---|
4595 | ac_header_compiler=no |
---|
4596 | fi |
---|
4597 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4598 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4599 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4600 | |
---|
4601 | # Is the header present? |
---|
4602 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4603 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4604 | cat >conftest.$ac_ext <<_ACEOF |
---|
4605 | #line $LINENO "configure" |
---|
4606 | #include "confdefs.h" |
---|
4607 | #include <$ac_header> |
---|
4608 | _ACEOF |
---|
4609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4611 | ac_status=$? |
---|
4612 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
4613 | rm -f conftest.er1 |
---|
4614 | cat conftest.err >&5 |
---|
4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4616 | (exit $ac_status); } >/dev/null; then |
---|
4617 | if test -s conftest.err; then |
---|
4618 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4619 | else |
---|
4620 | ac_cpp_err= |
---|
4621 | fi |
---|
4622 | else |
---|
4623 | ac_cpp_err=yes |
---|
4624 | fi |
---|
4625 | if test -z "$ac_cpp_err"; then |
---|
4626 | ac_header_preproc=yes |
---|
4627 | else |
---|
4628 | echo "$as_me: failed program was:" >&5 |
---|
4629 | cat conftest.$ac_ext >&5 |
---|
4630 | ac_header_preproc=no |
---|
4631 | fi |
---|
4632 | rm -f conftest.err conftest.$ac_ext |
---|
4633 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4634 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4635 | |
---|
4636 | # So? What about this header? |
---|
4637 | case $ac_header_compiler:$ac_header_preproc in |
---|
4638 | yes:no ) |
---|
4639 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4640 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4642 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
4643 | no:yes ) |
---|
4644 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4645 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4646 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4647 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4649 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
4650 | esac |
---|
4651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4655 | else |
---|
4656 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4657 | fi |
---|
4658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4659 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4660 | |
---|
4661 | fi |
---|
4662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4663 | cat >>confdefs.h <<_ACEOF |
---|
4664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4665 | _ACEOF |
---|
4666 | |
---|
4667 | fi |
---|
4668 | |
---|
4669 | done |
---|
4670 | |
---|
4671 | |
---|
4672 | for ac_func in getpagesize |
---|
4673 | do |
---|
4674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
4677 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4679 | else |
---|
4680 | cat >conftest.$ac_ext <<_ACEOF |
---|
4681 | #line $LINENO "configure" |
---|
4682 | #include "confdefs.h" |
---|
4683 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4684 | which can conflict with char $ac_func (); below. */ |
---|
4685 | #include <assert.h> |
---|
4686 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4687 | #ifdef __cplusplus |
---|
4688 | extern "C" |
---|
4689 | #endif |
---|
4690 | /* We use char because int might match the return type of a gcc2 |
---|
4691 | builtin and then its argument prototype would still apply. */ |
---|
4692 | char $ac_func (); |
---|
4693 | char (*f) (); |
---|
4694 | |
---|
4695 | #ifdef F77_DUMMY_MAIN |
---|
4696 | # ifdef __cplusplus |
---|
4697 | extern "C" |
---|
4698 | # endif |
---|
4699 | int F77_DUMMY_MAIN() { return 1; } |
---|
4700 | #endif |
---|
4701 | int |
---|
4702 | main () |
---|
4703 | { |
---|
4704 | /* The GNU C library defines this for functions which it implements |
---|
4705 | to always fail with ENOSYS. Some functions are actually named |
---|
4706 | something starting with __ and the normal name is an alias. */ |
---|
4707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4708 | choke me |
---|
4709 | #else |
---|
4710 | f = $ac_func; |
---|
4711 | #endif |
---|
4712 | |
---|
4713 | ; |
---|
4714 | return 0; |
---|
4715 | } |
---|
4716 | _ACEOF |
---|
4717 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4719 | (eval $ac_link) 2>&5 |
---|
4720 | ac_status=$? |
---|
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4722 | (exit $ac_status); } && |
---|
4723 | { ac_try='test -s conftest$ac_exeext' |
---|
4724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4725 | (eval $ac_try) 2>&5 |
---|
4726 | ac_status=$? |
---|
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4728 | (exit $ac_status); }; }; then |
---|
4729 | eval "$as_ac_var=yes" |
---|
4730 | else |
---|
4731 | echo "$as_me: failed program was:" >&5 |
---|
4732 | cat conftest.$ac_ext >&5 |
---|
4733 | eval "$as_ac_var=no" |
---|
4734 | fi |
---|
4735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4736 | fi |
---|
4737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
4738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
4739 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
4740 | cat >>confdefs.h <<_ACEOF |
---|
4741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
4742 | _ACEOF |
---|
4743 | |
---|
4744 | fi |
---|
4745 | done |
---|
4746 | |
---|
4747 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
---|
4748 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
---|
4749 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
---|
4750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4751 | else |
---|
4752 | if test "$cross_compiling" = yes; then |
---|
4753 | ac_cv_func_mmap_fixed_mapped=no |
---|
4754 | else |
---|
4755 | cat >conftest.$ac_ext <<_ACEOF |
---|
4756 | #line $LINENO "configure" |
---|
4757 | #include "confdefs.h" |
---|
4758 | $ac_includes_default |
---|
4759 | /* malloc might have been renamed as rpl_malloc. */ |
---|
4760 | #undef malloc |
---|
4761 | |
---|
4762 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
4763 | Here is a matrix of mmap possibilities: |
---|
4764 | mmap private not fixed |
---|
4765 | mmap private fixed at somewhere currently unmapped |
---|
4766 | mmap private fixed at somewhere already mapped |
---|
4767 | mmap shared not fixed |
---|
4768 | mmap shared fixed at somewhere currently unmapped |
---|
4769 | mmap shared fixed at somewhere already mapped |
---|
4770 | For private mappings, we should verify that changes cannot be read() |
---|
4771 | back from the file, nor mmap's back from the file at a different |
---|
4772 | address. (There have been systems where private was not correctly |
---|
4773 | implemented like the infamous i386 svr4.0, and systems where the |
---|
4774 | VM page cache was not coherent with the file system buffer cache |
---|
4775 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
4776 | For shared mappings, we should conversely verify that changes get |
---|
4777 | propagated back to all the places they're supposed to be. |
---|
4778 | |
---|
4779 | Grep wants private fixed already mapped. |
---|
4780 | The main things grep needs to know about mmap are: |
---|
4781 | * does it exist and is it safe to write into the mmap'd area |
---|
4782 | * how to use it (BSD variants) */ |
---|
4783 | |
---|
4784 | #include <fcntl.h> |
---|
4785 | #include <sys/mman.h> |
---|
4786 | |
---|
4787 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
---|
4788 | char *malloc (); |
---|
4789 | #endif |
---|
4790 | |
---|
4791 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
4792 | #if !HAVE_GETPAGESIZE |
---|
4793 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
4794 | # if !HAVE_SYS_PARAM_H |
---|
4795 | # define HAVE_SYS_PARAM_H 1 |
---|
4796 | # endif |
---|
4797 | |
---|
4798 | # ifdef _SC_PAGESIZE |
---|
4799 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
4800 | # else /* no _SC_PAGESIZE */ |
---|
4801 | # if HAVE_SYS_PARAM_H |
---|
4802 | # include <sys/param.h> |
---|
4803 | # ifdef EXEC_PAGESIZE |
---|
4804 | # define getpagesize() EXEC_PAGESIZE |
---|
4805 | # else /* no EXEC_PAGESIZE */ |
---|
4806 | # ifdef NBPG |
---|
4807 | # define getpagesize() NBPG * CLSIZE |
---|
4808 | # ifndef CLSIZE |
---|
4809 | # define CLSIZE 1 |
---|
4810 | # endif /* no CLSIZE */ |
---|
4811 | # else /* no NBPG */ |
---|
4812 | # ifdef NBPC |
---|
4813 | # define getpagesize() NBPC |
---|
4814 | # else /* no NBPC */ |
---|
4815 | # ifdef PAGESIZE |
---|
4816 | # define getpagesize() PAGESIZE |
---|
4817 | # endif /* PAGESIZE */ |
---|
4818 | # endif /* no NBPC */ |
---|
4819 | # endif /* no NBPG */ |
---|
4820 | # endif /* no EXEC_PAGESIZE */ |
---|
4821 | # else /* no HAVE_SYS_PARAM_H */ |
---|
4822 | # define getpagesize() 8192 /* punt totally */ |
---|
4823 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
4824 | # endif /* no _SC_PAGESIZE */ |
---|
4825 | |
---|
4826 | #endif /* no HAVE_GETPAGESIZE */ |
---|
4827 | |
---|
4828 | int |
---|
4829 | main () |
---|
4830 | { |
---|
4831 | char *data, *data2, *data3; |
---|
4832 | int i, pagesize; |
---|
4833 | int fd; |
---|
4834 | |
---|
4835 | pagesize = getpagesize (); |
---|
4836 | |
---|
4837 | /* First, make a file with some known garbage in it. */ |
---|
4838 | data = (char *) malloc (pagesize); |
---|
4839 | if (!data) |
---|
4840 | exit (1); |
---|
4841 | for (i = 0; i < pagesize; ++i) |
---|
4842 | *(data + i) = rand (); |
---|
4843 | umask (0); |
---|
4844 | fd = creat ("conftest.mmap", 0600); |
---|
4845 | if (fd < 0) |
---|
4846 | exit (1); |
---|
4847 | if (write (fd, data, pagesize) != pagesize) |
---|
4848 | exit (1); |
---|
4849 | close (fd); |
---|
4850 | |
---|
4851 | /* Next, try to mmap the file at a fixed address which already has |
---|
4852 | something else allocated at it. If we can, also make sure that |
---|
4853 | we see the same garbage. */ |
---|
4854 | fd = open ("conftest.mmap", O_RDWR); |
---|
4855 | if (fd < 0) |
---|
4856 | exit (1); |
---|
4857 | data2 = (char *) malloc (2 * pagesize); |
---|
4858 | if (!data2) |
---|
4859 | exit (1); |
---|
4860 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
4861 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
---|
4862 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
4863 | exit (1); |
---|
4864 | for (i = 0; i < pagesize; ++i) |
---|
4865 | if (*(data + i) != *(data2 + i)) |
---|
4866 | exit (1); |
---|
4867 | |
---|
4868 | /* Finally, make sure that changes to the mapped area do not |
---|
4869 | percolate back to the file as seen by read(). (This is a bug on |
---|
4870 | some variants of i386 svr4.0.) */ |
---|
4871 | for (i = 0; i < pagesize; ++i) |
---|
4872 | *(data2 + i) = *(data2 + i) + 1; |
---|
4873 | data3 = (char *) malloc (pagesize); |
---|
4874 | if (!data3) |
---|
4875 | exit (1); |
---|
4876 | if (read (fd, data3, pagesize) != pagesize) |
---|
4877 | exit (1); |
---|
4878 | for (i = 0; i < pagesize; ++i) |
---|
4879 | if (*(data + i) != *(data3 + i)) |
---|
4880 | exit (1); |
---|
4881 | close (fd); |
---|
4882 | exit (0); |
---|
4883 | } |
---|
4884 | _ACEOF |
---|
4885 | rm -f conftest$ac_exeext |
---|
4886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4887 | (eval $ac_link) 2>&5 |
---|
4888 | ac_status=$? |
---|
4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4890 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4892 | (eval $ac_try) 2>&5 |
---|
4893 | ac_status=$? |
---|
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4895 | (exit $ac_status); }; }; then |
---|
4896 | ac_cv_func_mmap_fixed_mapped=yes |
---|
4897 | else |
---|
4898 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4899 | echo "$as_me: failed program was:" >&5 |
---|
4900 | cat conftest.$ac_ext >&5 |
---|
4901 | ( exit $ac_status ) |
---|
4902 | ac_cv_func_mmap_fixed_mapped=no |
---|
4903 | fi |
---|
4904 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4905 | fi |
---|
4906 | fi |
---|
4907 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
---|
4908 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
---|
4909 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
4910 | |
---|
4911 | cat >>confdefs.h <<\_ACEOF |
---|
4912 | #define HAVE_MMAP 1 |
---|
4913 | _ACEOF |
---|
4914 | |
---|
4915 | fi |
---|
4916 | rm -f conftest.mmap |
---|
4917 | |
---|
4918 | |
---|
4919 | |
---|
4920 | |
---|
4921 | |
---|
4922 | |
---|
4923 | |
---|
4924 | |
---|
4925 | |
---|
4926 | |
---|
4927 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
---|
4928 | unistd.h sys/param.h |
---|
4929 | do |
---|
4930 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4932 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4933 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4934 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4936 | fi |
---|
4937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4939 | else |
---|
4940 | # Is the header compilable? |
---|
4941 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4942 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4943 | cat >conftest.$ac_ext <<_ACEOF |
---|
4944 | #line $LINENO "configure" |
---|
4945 | #include "confdefs.h" |
---|
4946 | $ac_includes_default |
---|
4947 | #include <$ac_header> |
---|
4948 | _ACEOF |
---|
4949 | rm -f conftest.$ac_objext |
---|
4950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4951 | (eval $ac_compile) 2>&5 |
---|
4952 | ac_status=$? |
---|
4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4954 | (exit $ac_status); } && |
---|
4955 | { ac_try='test -s conftest.$ac_objext' |
---|
4956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4957 | (eval $ac_try) 2>&5 |
---|
4958 | ac_status=$? |
---|
4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4960 | (exit $ac_status); }; }; then |
---|
4961 | ac_header_compiler=yes |
---|
4962 | else |
---|
4963 | echo "$as_me: failed program was:" >&5 |
---|
4964 | cat conftest.$ac_ext >&5 |
---|
4965 | ac_header_compiler=no |
---|
4966 | fi |
---|
4967 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4969 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4970 | |
---|
4971 | # Is the header present? |
---|
4972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4974 | cat >conftest.$ac_ext <<_ACEOF |
---|
4975 | #line $LINENO "configure" |
---|
4976 | #include "confdefs.h" |
---|
4977 | #include <$ac_header> |
---|
4978 | _ACEOF |
---|
4979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4981 | ac_status=$? |
---|
4982 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
4983 | rm -f conftest.er1 |
---|
4984 | cat conftest.err >&5 |
---|
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4986 | (exit $ac_status); } >/dev/null; then |
---|
4987 | if test -s conftest.err; then |
---|
4988 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4989 | else |
---|
4990 | ac_cpp_err= |
---|
4991 | fi |
---|
4992 | else |
---|
4993 | ac_cpp_err=yes |
---|
4994 | fi |
---|
4995 | if test -z "$ac_cpp_err"; then |
---|
4996 | ac_header_preproc=yes |
---|
4997 | else |
---|
4998 | echo "$as_me: failed program was:" >&5 |
---|
4999 | cat conftest.$ac_ext >&5 |
---|
5000 | ac_header_preproc=no |
---|
5001 | fi |
---|
5002 | rm -f conftest.err conftest.$ac_ext |
---|
5003 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5004 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5005 | |
---|
5006 | # So? What about this header? |
---|
5007 | case $ac_header_compiler:$ac_header_preproc in |
---|
5008 | yes:no ) |
---|
5009 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5010 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
5013 | no:yes ) |
---|
5014 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5015 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5016 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5017 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5019 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
5020 | esac |
---|
5021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5025 | else |
---|
5026 | eval "$as_ac_Header=$ac_header_preproc" |
---|
5027 | fi |
---|
5028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5030 | |
---|
5031 | fi |
---|
5032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5033 | cat >>confdefs.h <<_ACEOF |
---|
5034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5035 | _ACEOF |
---|
5036 | |
---|
5037 | fi |
---|
5038 | |
---|
5039 | done |
---|
5040 | |
---|
5041 | |
---|
5042 | |
---|
5043 | |
---|
5044 | |
---|
5045 | |
---|
5046 | |
---|
5047 | |
---|
5048 | |
---|
5049 | |
---|
5050 | |
---|
5051 | |
---|
5052 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
---|
5053 | strdup __argz_count __argz_stringify __argz_next |
---|
5054 | do |
---|
5055 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5056 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5057 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5058 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5060 | else |
---|
5061 | cat >conftest.$ac_ext <<_ACEOF |
---|
5062 | #line $LINENO "configure" |
---|
5063 | #include "confdefs.h" |
---|
5064 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5065 | which can conflict with char $ac_func (); below. */ |
---|
5066 | #include <assert.h> |
---|
5067 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5068 | #ifdef __cplusplus |
---|
5069 | extern "C" |
---|
5070 | #endif |
---|
5071 | /* We use char because int might match the return type of a gcc2 |
---|
5072 | builtin and then its argument prototype would still apply. */ |
---|
5073 | char $ac_func (); |
---|
5074 | char (*f) (); |
---|
5075 | |
---|
5076 | #ifdef F77_DUMMY_MAIN |
---|
5077 | # ifdef __cplusplus |
---|
5078 | extern "C" |
---|
5079 | # endif |
---|
5080 | int F77_DUMMY_MAIN() { return 1; } |
---|
5081 | #endif |
---|
5082 | int |
---|
5083 | main () |
---|
5084 | { |
---|
5085 | /* The GNU C library defines this for functions which it implements |
---|
5086 | to always fail with ENOSYS. Some functions are actually named |
---|
5087 | something starting with __ and the normal name is an alias. */ |
---|
5088 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5089 | choke me |
---|
5090 | #else |
---|
5091 | f = $ac_func; |
---|
5092 | #endif |
---|
5093 | |
---|
5094 | ; |
---|
5095 | return 0; |
---|
5096 | } |
---|
5097 | _ACEOF |
---|
5098 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5100 | (eval $ac_link) 2>&5 |
---|
5101 | ac_status=$? |
---|
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5103 | (exit $ac_status); } && |
---|
5104 | { ac_try='test -s conftest$ac_exeext' |
---|
5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5106 | (eval $ac_try) 2>&5 |
---|
5107 | ac_status=$? |
---|
5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5109 | (exit $ac_status); }; }; then |
---|
5110 | eval "$as_ac_var=yes" |
---|
5111 | else |
---|
5112 | echo "$as_me: failed program was:" >&5 |
---|
5113 | cat conftest.$ac_ext >&5 |
---|
5114 | eval "$as_ac_var=no" |
---|
5115 | fi |
---|
5116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5117 | fi |
---|
5118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5120 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5121 | cat >>confdefs.h <<_ACEOF |
---|
5122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5123 | _ACEOF |
---|
5124 | |
---|
5125 | fi |
---|
5126 | done |
---|
5127 | |
---|
5128 | |
---|
5129 | if test $ac_cv_header_locale_h = yes; then |
---|
5130 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
---|
5131 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
---|
5132 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
---|
5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5134 | else |
---|
5135 | cat >conftest.$ac_ext <<_ACEOF |
---|
5136 | #line $LINENO "configure" |
---|
5137 | #include "confdefs.h" |
---|
5138 | #include <locale.h> |
---|
5139 | #ifdef F77_DUMMY_MAIN |
---|
5140 | # ifdef __cplusplus |
---|
5141 | extern "C" |
---|
5142 | # endif |
---|
5143 | int F77_DUMMY_MAIN() { return 1; } |
---|
5144 | #endif |
---|
5145 | int |
---|
5146 | main () |
---|
5147 | { |
---|
5148 | return LC_MESSAGES |
---|
5149 | ; |
---|
5150 | return 0; |
---|
5151 | } |
---|
5152 | _ACEOF |
---|
5153 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5155 | (eval $ac_link) 2>&5 |
---|
5156 | ac_status=$? |
---|
5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5158 | (exit $ac_status); } && |
---|
5159 | { ac_try='test -s conftest$ac_exeext' |
---|
5160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5161 | (eval $ac_try) 2>&5 |
---|
5162 | ac_status=$? |
---|
5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5164 | (exit $ac_status); }; }; then |
---|
5165 | am_cv_val_LC_MESSAGES=yes |
---|
5166 | else |
---|
5167 | echo "$as_me: failed program was:" >&5 |
---|
5168 | cat conftest.$ac_ext >&5 |
---|
5169 | am_cv_val_LC_MESSAGES=no |
---|
5170 | fi |
---|
5171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5172 | fi |
---|
5173 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
---|
5174 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
---|
5175 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
5176 | |
---|
5177 | cat >>confdefs.h <<\_ACEOF |
---|
5178 | #define HAVE_LC_MESSAGES 1 |
---|
5179 | _ACEOF |
---|
5180 | |
---|
5181 | fi |
---|
5182 | fi |
---|
5183 | USE_NLS=yes |
---|
5184 | |
---|
5185 | |
---|
5186 | nls_cv_force_use_gnu_gettext="no" |
---|
5187 | |
---|
5188 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
---|
5189 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
---|
5190 | nls_cv_header_intl= |
---|
5191 | nls_cv_header_libgt= |
---|
5192 | CATOBJEXT=NONE |
---|
5193 | XGETTEXT=: |
---|
5194 | |
---|
5195 | if test "${ac_cv_header_libintl_h+set}" = set; then |
---|
5196 | echo "$as_me:$LINENO: checking for libintl.h" >&5 |
---|
5197 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
---|
5198 | if test "${ac_cv_header_libintl_h+set}" = set; then |
---|
5199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5200 | fi |
---|
5201 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
---|
5202 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
---|
5203 | else |
---|
5204 | # Is the header compilable? |
---|
5205 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 |
---|
5206 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 |
---|
5207 | cat >conftest.$ac_ext <<_ACEOF |
---|
5208 | #line $LINENO "configure" |
---|
5209 | #include "confdefs.h" |
---|
5210 | $ac_includes_default |
---|
5211 | #include <libintl.h> |
---|
5212 | _ACEOF |
---|
5213 | rm -f conftest.$ac_objext |
---|
5214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5215 | (eval $ac_compile) 2>&5 |
---|
5216 | ac_status=$? |
---|
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5218 | (exit $ac_status); } && |
---|
5219 | { ac_try='test -s conftest.$ac_objext' |
---|
5220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5221 | (eval $ac_try) 2>&5 |
---|
5222 | ac_status=$? |
---|
5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5224 | (exit $ac_status); }; }; then |
---|
5225 | ac_header_compiler=yes |
---|
5226 | else |
---|
5227 | echo "$as_me: failed program was:" >&5 |
---|
5228 | cat conftest.$ac_ext >&5 |
---|
5229 | ac_header_compiler=no |
---|
5230 | fi |
---|
5231 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5232 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5233 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5234 | |
---|
5235 | # Is the header present? |
---|
5236 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 |
---|
5237 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 |
---|
5238 | cat >conftest.$ac_ext <<_ACEOF |
---|
5239 | #line $LINENO "configure" |
---|
5240 | #include "confdefs.h" |
---|
5241 | #include <libintl.h> |
---|
5242 | _ACEOF |
---|
5243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5245 | ac_status=$? |
---|
5246 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
5247 | rm -f conftest.er1 |
---|
5248 | cat conftest.err >&5 |
---|
5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5250 | (exit $ac_status); } >/dev/null; then |
---|
5251 | if test -s conftest.err; then |
---|
5252 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5253 | else |
---|
5254 | ac_cpp_err= |
---|
5255 | fi |
---|
5256 | else |
---|
5257 | ac_cpp_err=yes |
---|
5258 | fi |
---|
5259 | if test -z "$ac_cpp_err"; then |
---|
5260 | ac_header_preproc=yes |
---|
5261 | else |
---|
5262 | echo "$as_me: failed program was:" >&5 |
---|
5263 | cat conftest.$ac_ext >&5 |
---|
5264 | ac_header_preproc=no |
---|
5265 | fi |
---|
5266 | rm -f conftest.err conftest.$ac_ext |
---|
5267 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5268 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5269 | |
---|
5270 | # So? What about this header? |
---|
5271 | case $ac_header_compiler:$ac_header_preproc in |
---|
5272 | yes:no ) |
---|
5273 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5274 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5275 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
---|
5276 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; |
---|
5277 | no:yes ) |
---|
5278 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 |
---|
5279 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} |
---|
5280 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 |
---|
5281 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} |
---|
5282 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
---|
5283 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; |
---|
5284 | esac |
---|
5285 | echo "$as_me:$LINENO: checking for libintl.h" >&5 |
---|
5286 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
---|
5287 | if test "${ac_cv_header_libintl_h+set}" = set; then |
---|
5288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5289 | else |
---|
5290 | ac_cv_header_libintl_h=$ac_header_preproc |
---|
5291 | fi |
---|
5292 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
---|
5293 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
---|
5294 | |
---|
5295 | fi |
---|
5296 | if test $ac_cv_header_libintl_h = yes; then |
---|
5297 | echo "$as_me:$LINENO: checking for dgettext in libc" >&5 |
---|
5298 | echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6 |
---|
5299 | if test "${gt_cv_func_dgettext_libc+set}" = set; then |
---|
5300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5301 | else |
---|
5302 | cat >conftest.$ac_ext <<_ACEOF |
---|
5303 | #line $LINENO "configure" |
---|
5304 | #include "confdefs.h" |
---|
5305 | #include <libintl.h> |
---|
5306 | #ifdef F77_DUMMY_MAIN |
---|
5307 | # ifdef __cplusplus |
---|
5308 | extern "C" |
---|
5309 | # endif |
---|
5310 | int F77_DUMMY_MAIN() { return 1; } |
---|
5311 | #endif |
---|
5312 | int |
---|
5313 | main () |
---|
5314 | { |
---|
5315 | return (int) dgettext ("","") |
---|
5316 | ; |
---|
5317 | return 0; |
---|
5318 | } |
---|
5319 | _ACEOF |
---|
5320 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5322 | (eval $ac_link) 2>&5 |
---|
5323 | ac_status=$? |
---|
5324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5325 | (exit $ac_status); } && |
---|
5326 | { ac_try='test -s conftest$ac_exeext' |
---|
5327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5328 | (eval $ac_try) 2>&5 |
---|
5329 | ac_status=$? |
---|
5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5331 | (exit $ac_status); }; }; then |
---|
5332 | gt_cv_func_dgettext_libc=yes |
---|
5333 | else |
---|
5334 | echo "$as_me: failed program was:" >&5 |
---|
5335 | cat conftest.$ac_ext >&5 |
---|
5336 | gt_cv_func_dgettext_libc=no |
---|
5337 | fi |
---|
5338 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5339 | fi |
---|
5340 | echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 |
---|
5341 | echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6 |
---|
5342 | |
---|
5343 | gt_cv_func_dgettext_libintl="no" |
---|
5344 | libintl_extra_libs="" |
---|
5345 | |
---|
5346 | if test "$gt_cv_func_dgettext_libc" != "yes" ; then |
---|
5347 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
---|
5348 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 |
---|
5349 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then |
---|
5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5351 | else |
---|
5352 | ac_check_lib_save_LIBS=$LIBS |
---|
5353 | LIBS="-lintl $LIBS" |
---|
5354 | cat >conftest.$ac_ext <<_ACEOF |
---|
5355 | #line $LINENO "configure" |
---|
5356 | #include "confdefs.h" |
---|
5357 | |
---|
5358 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5359 | #ifdef __cplusplus |
---|
5360 | extern "C" |
---|
5361 | #endif |
---|
5362 | /* We use char because int might match the return type of a gcc2 |
---|
5363 | builtin and then its argument prototype would still apply. */ |
---|
5364 | char bindtextdomain (); |
---|
5365 | #ifdef F77_DUMMY_MAIN |
---|
5366 | # ifdef __cplusplus |
---|
5367 | extern "C" |
---|
5368 | # endif |
---|
5369 | int F77_DUMMY_MAIN() { return 1; } |
---|
5370 | #endif |
---|
5371 | int |
---|
5372 | main () |
---|
5373 | { |
---|
5374 | bindtextdomain (); |
---|
5375 | ; |
---|
5376 | return 0; |
---|
5377 | } |
---|
5378 | _ACEOF |
---|
5379 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5381 | (eval $ac_link) 2>&5 |
---|
5382 | ac_status=$? |
---|
5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5384 | (exit $ac_status); } && |
---|
5385 | { ac_try='test -s conftest$ac_exeext' |
---|
5386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5387 | (eval $ac_try) 2>&5 |
---|
5388 | ac_status=$? |
---|
5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5390 | (exit $ac_status); }; }; then |
---|
5391 | ac_cv_lib_intl_bindtextdomain=yes |
---|
5392 | else |
---|
5393 | echo "$as_me: failed program was:" >&5 |
---|
5394 | cat conftest.$ac_ext >&5 |
---|
5395 | ac_cv_lib_intl_bindtextdomain=no |
---|
5396 | fi |
---|
5397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5398 | LIBS=$ac_check_lib_save_LIBS |
---|
5399 | fi |
---|
5400 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 |
---|
5401 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 |
---|
5402 | if test $ac_cv_lib_intl_bindtextdomain = yes; then |
---|
5403 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
---|
5404 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
---|
5405 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
---|
5406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5407 | else |
---|
5408 | ac_check_lib_save_LIBS=$LIBS |
---|
5409 | LIBS="-lintl $LIBS" |
---|
5410 | cat >conftest.$ac_ext <<_ACEOF |
---|
5411 | #line $LINENO "configure" |
---|
5412 | #include "confdefs.h" |
---|
5413 | |
---|
5414 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5415 | #ifdef __cplusplus |
---|
5416 | extern "C" |
---|
5417 | #endif |
---|
5418 | /* We use char because int might match the return type of a gcc2 |
---|
5419 | builtin and then its argument prototype would still apply. */ |
---|
5420 | char dgettext (); |
---|
5421 | #ifdef F77_DUMMY_MAIN |
---|
5422 | # ifdef __cplusplus |
---|
5423 | extern "C" |
---|
5424 | # endif |
---|
5425 | int F77_DUMMY_MAIN() { return 1; } |
---|
5426 | #endif |
---|
5427 | int |
---|
5428 | main () |
---|
5429 | { |
---|
5430 | dgettext (); |
---|
5431 | ; |
---|
5432 | return 0; |
---|
5433 | } |
---|
5434 | _ACEOF |
---|
5435 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5437 | (eval $ac_link) 2>&5 |
---|
5438 | ac_status=$? |
---|
5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5440 | (exit $ac_status); } && |
---|
5441 | { ac_try='test -s conftest$ac_exeext' |
---|
5442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5443 | (eval $ac_try) 2>&5 |
---|
5444 | ac_status=$? |
---|
5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5446 | (exit $ac_status); }; }; then |
---|
5447 | ac_cv_lib_intl_dgettext=yes |
---|
5448 | else |
---|
5449 | echo "$as_me: failed program was:" >&5 |
---|
5450 | cat conftest.$ac_ext >&5 |
---|
5451 | ac_cv_lib_intl_dgettext=no |
---|
5452 | fi |
---|
5453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5454 | LIBS=$ac_check_lib_save_LIBS |
---|
5455 | fi |
---|
5456 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
---|
5457 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
---|
5458 | if test $ac_cv_lib_intl_dgettext = yes; then |
---|
5459 | gt_cv_func_dgettext_libintl=yes |
---|
5460 | fi |
---|
5461 | |
---|
5462 | fi |
---|
5463 | |
---|
5464 | |
---|
5465 | if test "$gt_cv_func_dgettext_libc" != "yes" ; then |
---|
5466 | echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 |
---|
5467 | echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6 |
---|
5468 | echo "$as_me:$LINENO: result: " >&5 |
---|
5469 | echo "${ECHO_T}" >&6 |
---|
5470 | echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 |
---|
5471 | echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6 |
---|
5472 | if test "${ac_cv_lib_intl_dcgettext+set}" = set; then |
---|
5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5474 | else |
---|
5475 | ac_check_lib_save_LIBS=$LIBS |
---|
5476 | LIBS="-lintl -liconv $LIBS" |
---|
5477 | cat >conftest.$ac_ext <<_ACEOF |
---|
5478 | #line $LINENO "configure" |
---|
5479 | #include "confdefs.h" |
---|
5480 | |
---|
5481 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5482 | #ifdef __cplusplus |
---|
5483 | extern "C" |
---|
5484 | #endif |
---|
5485 | /* We use char because int might match the return type of a gcc2 |
---|
5486 | builtin and then its argument prototype would still apply. */ |
---|
5487 | char dcgettext (); |
---|
5488 | #ifdef F77_DUMMY_MAIN |
---|
5489 | # ifdef __cplusplus |
---|
5490 | extern "C" |
---|
5491 | # endif |
---|
5492 | int F77_DUMMY_MAIN() { return 1; } |
---|
5493 | #endif |
---|
5494 | int |
---|
5495 | main () |
---|
5496 | { |
---|
5497 | dcgettext (); |
---|
5498 | ; |
---|
5499 | return 0; |
---|
5500 | } |
---|
5501 | _ACEOF |
---|
5502 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5504 | (eval $ac_link) 2>&5 |
---|
5505 | ac_status=$? |
---|
5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5507 | (exit $ac_status); } && |
---|
5508 | { ac_try='test -s conftest$ac_exeext' |
---|
5509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5510 | (eval $ac_try) 2>&5 |
---|
5511 | ac_status=$? |
---|
5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5513 | (exit $ac_status); }; }; then |
---|
5514 | ac_cv_lib_intl_dcgettext=yes |
---|
5515 | else |
---|
5516 | echo "$as_me: failed program was:" >&5 |
---|
5517 | cat conftest.$ac_ext >&5 |
---|
5518 | ac_cv_lib_intl_dcgettext=no |
---|
5519 | fi |
---|
5520 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5521 | LIBS=$ac_check_lib_save_LIBS |
---|
5522 | fi |
---|
5523 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 |
---|
5524 | echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6 |
---|
5525 | if test $ac_cv_lib_intl_dcgettext = yes; then |
---|
5526 | gt_cv_func_dgettext_libintl=yes |
---|
5527 | libintl_extra_libs=-liconv |
---|
5528 | else |
---|
5529 | : |
---|
5530 | fi |
---|
5531 | |
---|
5532 | fi |
---|
5533 | fi |
---|
5534 | |
---|
5535 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
5536 | LIBS="$LIBS -lintl $libintl_extra_libs"; |
---|
5537 | fi |
---|
5538 | |
---|
5539 | if test "$gt_cv_func_dgettext_libc" = "yes" \ |
---|
5540 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
5541 | |
---|
5542 | cat >>confdefs.h <<\_ACEOF |
---|
5543 | #define HAVE_GETTEXT 1 |
---|
5544 | _ACEOF |
---|
5545 | |
---|
5546 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
5547 | set dummy msgfmt; ac_word=$2 |
---|
5548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5550 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
---|
5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5552 | else |
---|
5553 | case "$MSGFMT" in |
---|
5554 | /*) |
---|
5555 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
5556 | ;; |
---|
5557 | *) |
---|
5558 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
5559 | for ac_dir in $PATH; do |
---|
5560 | test -z "$ac_dir" && ac_dir=. |
---|
5561 | if test -f $ac_dir/$ac_word; then |
---|
5562 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
5563 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
5564 | break |
---|
5565 | fi |
---|
5566 | fi |
---|
5567 | done |
---|
5568 | IFS="$ac_save_ifs" |
---|
5569 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
---|
5570 | ;; |
---|
5571 | esac |
---|
5572 | fi |
---|
5573 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
5574 | if test "$MSGFMT" != "no"; then |
---|
5575 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
---|
5576 | echo "${ECHO_T}$MSGFMT" >&6 |
---|
5577 | else |
---|
5578 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5579 | echo "${ECHO_T}no" >&6 |
---|
5580 | fi |
---|
5581 | if test "$MSGFMT" != "no"; then |
---|
5582 | |
---|
5583 | for ac_func in dcgettext |
---|
5584 | do |
---|
5585 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5586 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5587 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5588 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5590 | else |
---|
5591 | cat >conftest.$ac_ext <<_ACEOF |
---|
5592 | #line $LINENO "configure" |
---|
5593 | #include "confdefs.h" |
---|
5594 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5595 | which can conflict with char $ac_func (); below. */ |
---|
5596 | #include <assert.h> |
---|
5597 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5598 | #ifdef __cplusplus |
---|
5599 | extern "C" |
---|
5600 | #endif |
---|
5601 | /* We use char because int might match the return type of a gcc2 |
---|
5602 | builtin and then its argument prototype would still apply. */ |
---|
5603 | char $ac_func (); |
---|
5604 | char (*f) (); |
---|
5605 | |
---|
5606 | #ifdef F77_DUMMY_MAIN |
---|
5607 | # ifdef __cplusplus |
---|
5608 | extern "C" |
---|
5609 | # endif |
---|
5610 | int F77_DUMMY_MAIN() { return 1; } |
---|
5611 | #endif |
---|
5612 | int |
---|
5613 | main () |
---|
5614 | { |
---|
5615 | /* The GNU C library defines this for functions which it implements |
---|
5616 | to always fail with ENOSYS. Some functions are actually named |
---|
5617 | something starting with __ and the normal name is an alias. */ |
---|
5618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5619 | choke me |
---|
5620 | #else |
---|
5621 | f = $ac_func; |
---|
5622 | #endif |
---|
5623 | |
---|
5624 | ; |
---|
5625 | return 0; |
---|
5626 | } |
---|
5627 | _ACEOF |
---|
5628 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5630 | (eval $ac_link) 2>&5 |
---|
5631 | ac_status=$? |
---|
5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5633 | (exit $ac_status); } && |
---|
5634 | { ac_try='test -s conftest$ac_exeext' |
---|
5635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5636 | (eval $ac_try) 2>&5 |
---|
5637 | ac_status=$? |
---|
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5639 | (exit $ac_status); }; }; then |
---|
5640 | eval "$as_ac_var=yes" |
---|
5641 | else |
---|
5642 | echo "$as_me: failed program was:" >&5 |
---|
5643 | cat conftest.$ac_ext >&5 |
---|
5644 | eval "$as_ac_var=no" |
---|
5645 | fi |
---|
5646 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5647 | fi |
---|
5648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5650 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5651 | cat >>confdefs.h <<_ACEOF |
---|
5652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5653 | _ACEOF |
---|
5654 | |
---|
5655 | fi |
---|
5656 | done |
---|
5657 | |
---|
5658 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
5659 | set dummy gmsgfmt; ac_word=$2 |
---|
5660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5662 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
---|
5663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5664 | else |
---|
5665 | case $GMSGFMT in |
---|
5666 | [\\/]* | ?:[\\/]*) |
---|
5667 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
5668 | ;; |
---|
5669 | *) |
---|
5670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5671 | for as_dir in $PATH |
---|
5672 | do |
---|
5673 | IFS=$as_save_IFS |
---|
5674 | test -z "$as_dir" && as_dir=. |
---|
5675 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5677 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
---|
5678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5679 | break 2 |
---|
5680 | fi |
---|
5681 | done |
---|
5682 | done |
---|
5683 | |
---|
5684 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
5685 | ;; |
---|
5686 | esac |
---|
5687 | fi |
---|
5688 | GMSGFMT=$ac_cv_path_GMSGFMT |
---|
5689 | |
---|
5690 | if test -n "$GMSGFMT"; then |
---|
5691 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
---|
5692 | echo "${ECHO_T}$GMSGFMT" >&6 |
---|
5693 | else |
---|
5694 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5695 | echo "${ECHO_T}no" >&6 |
---|
5696 | fi |
---|
5697 | |
---|
5698 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
5699 | set dummy xgettext; ac_word=$2 |
---|
5700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5702 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
---|
5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5704 | else |
---|
5705 | case "$XGETTEXT" in |
---|
5706 | /*) |
---|
5707 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
5708 | ;; |
---|
5709 | *) |
---|
5710 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
5711 | for ac_dir in $PATH; do |
---|
5712 | test -z "$ac_dir" && ac_dir=. |
---|
5713 | if test -f $ac_dir/$ac_word; then |
---|
5714 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
5715 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
5716 | break |
---|
5717 | fi |
---|
5718 | fi |
---|
5719 | done |
---|
5720 | IFS="$ac_save_ifs" |
---|
5721 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
5722 | ;; |
---|
5723 | esac |
---|
5724 | fi |
---|
5725 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
5726 | if test "$XGETTEXT" != ":"; then |
---|
5727 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
---|
5728 | echo "${ECHO_T}$XGETTEXT" >&6 |
---|
5729 | else |
---|
5730 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5731 | echo "${ECHO_T}no" >&6 |
---|
5732 | fi |
---|
5733 | |
---|
5734 | cat >conftest.$ac_ext <<_ACEOF |
---|
5735 | #line $LINENO "configure" |
---|
5736 | #include "confdefs.h" |
---|
5737 | |
---|
5738 | #ifdef F77_DUMMY_MAIN |
---|
5739 | # ifdef __cplusplus |
---|
5740 | extern "C" |
---|
5741 | # endif |
---|
5742 | int F77_DUMMY_MAIN() { return 1; } |
---|
5743 | #endif |
---|
5744 | int |
---|
5745 | main () |
---|
5746 | { |
---|
5747 | extern int _nl_msg_cat_cntr; |
---|
5748 | return _nl_msg_cat_cntr |
---|
5749 | ; |
---|
5750 | return 0; |
---|
5751 | } |
---|
5752 | _ACEOF |
---|
5753 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5755 | (eval $ac_link) 2>&5 |
---|
5756 | ac_status=$? |
---|
5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5758 | (exit $ac_status); } && |
---|
5759 | { ac_try='test -s conftest$ac_exeext' |
---|
5760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5761 | (eval $ac_try) 2>&5 |
---|
5762 | ac_status=$? |
---|
5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5764 | (exit $ac_status); }; }; then |
---|
5765 | CATOBJEXT=.gmo |
---|
5766 | DATADIRNAME=share |
---|
5767 | else |
---|
5768 | echo "$as_me: failed program was:" >&5 |
---|
5769 | cat conftest.$ac_ext >&5 |
---|
5770 | CATOBJEXT=.mo |
---|
5771 | DATADIRNAME=lib |
---|
5772 | fi |
---|
5773 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5774 | INSTOBJEXT=.mo |
---|
5775 | fi |
---|
5776 | fi |
---|
5777 | |
---|
5778 | # Added by Martin Baulig 12/15/98 for libc5 systems |
---|
5779 | if test "$gt_cv_func_dgettext_libc" != "yes" \ |
---|
5780 | && test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
5781 | INTLLIBS="-lintl $libintl_extra_libs" |
---|
5782 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5783 | fi |
---|
5784 | |
---|
5785 | fi |
---|
5786 | |
---|
5787 | |
---|
5788 | |
---|
5789 | if test "$CATOBJEXT" = "NONE"; then |
---|
5790 | nls_cv_use_gnu_gettext=yes |
---|
5791 | fi |
---|
5792 | fi |
---|
5793 | |
---|
5794 | if test "$nls_cv_use_gnu_gettext" != "yes"; then |
---|
5795 | |
---|
5796 | cat >>confdefs.h <<\_ACEOF |
---|
5797 | #define ENABLE_NLS 1 |
---|
5798 | _ACEOF |
---|
5799 | |
---|
5800 | else |
---|
5801 | CATOBJEXT= |
---|
5802 | fi |
---|
5803 | |
---|
5804 | if test "$XGETTEXT" != ":"; then |
---|
5805 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
5806 | : ; |
---|
5807 | else |
---|
5808 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
---|
5809 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
---|
5810 | XGETTEXT=":" |
---|
5811 | fi |
---|
5812 | fi |
---|
5813 | |
---|
5814 | # We need to process the po/ directory. |
---|
5815 | POSUB=po |
---|
5816 | |
---|
5817 | ac_config_commands="$ac_config_commands default-3" |
---|
5818 | |
---|
5819 | |
---|
5820 | for lang in $ALL_LINGUAS; do |
---|
5821 | GMOFILES="$GMOFILES $lang.gmo" |
---|
5822 | POFILES="$POFILES $lang.po" |
---|
5823 | done |
---|
5824 | |
---|
5825 | |
---|
5826 | |
---|
5827 | |
---|
5828 | |
---|
5829 | |
---|
5830 | |
---|
5831 | |
---|
5832 | |
---|
5833 | |
---|
5834 | |
---|
5835 | |
---|
5836 | |
---|
5837 | if test "x$CATOBJEXT" != "x"; then |
---|
5838 | if test "x$ALL_LINGUAS" = "x"; then |
---|
5839 | LINGUAS= |
---|
5840 | else |
---|
5841 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
---|
5842 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
---|
5843 | NEW_LINGUAS= |
---|
5844 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
---|
5845 | case "$ALL_LINGUAS" in |
---|
5846 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
---|
5847 | esac |
---|
5848 | done |
---|
5849 | LINGUAS=$NEW_LINGUAS |
---|
5850 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
---|
5851 | echo "${ECHO_T}$LINGUAS" >&6 |
---|
5852 | fi |
---|
5853 | |
---|
5854 | if test -n "$LINGUAS"; then |
---|
5855 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
5856 | fi |
---|
5857 | fi |
---|
5858 | |
---|
5859 | test -d po || mkdir po |
---|
5860 | if test "$CATOBJEXT" = ".cat"; then |
---|
5861 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
---|
5862 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 |
---|
5863 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 |
---|
5864 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
---|
5865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5866 | fi |
---|
5867 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
---|
5868 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 |
---|
5869 | else |
---|
5870 | # Is the header compilable? |
---|
5871 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 |
---|
5872 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 |
---|
5873 | cat >conftest.$ac_ext <<_ACEOF |
---|
5874 | #line $LINENO "configure" |
---|
5875 | #include "confdefs.h" |
---|
5876 | $ac_includes_default |
---|
5877 | #include <linux/version.h> |
---|
5878 | _ACEOF |
---|
5879 | rm -f conftest.$ac_objext |
---|
5880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5881 | (eval $ac_compile) 2>&5 |
---|
5882 | ac_status=$? |
---|
5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5884 | (exit $ac_status); } && |
---|
5885 | { ac_try='test -s conftest.$ac_objext' |
---|
5886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5887 | (eval $ac_try) 2>&5 |
---|
5888 | ac_status=$? |
---|
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5890 | (exit $ac_status); }; }; then |
---|
5891 | ac_header_compiler=yes |
---|
5892 | else |
---|
5893 | echo "$as_me: failed program was:" >&5 |
---|
5894 | cat conftest.$ac_ext >&5 |
---|
5895 | ac_header_compiler=no |
---|
5896 | fi |
---|
5897 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5898 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5899 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5900 | |
---|
5901 | # Is the header present? |
---|
5902 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 |
---|
5903 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 |
---|
5904 | cat >conftest.$ac_ext <<_ACEOF |
---|
5905 | #line $LINENO "configure" |
---|
5906 | #include "confdefs.h" |
---|
5907 | #include <linux/version.h> |
---|
5908 | _ACEOF |
---|
5909 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5910 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5911 | ac_status=$? |
---|
5912 | egrep -v '^ *\+' conftest.er1 >conftest.err |
---|
5913 | rm -f conftest.er1 |
---|
5914 | cat conftest.err >&5 |
---|
5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5916 | (exit $ac_status); } >/dev/null; then |
---|
5917 | if test -s conftest.err; then |
---|
5918 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5919 | else |
---|
5920 | ac_cpp_err= |
---|
5921 | fi |
---|
5922 | else |
---|
5923 | ac_cpp_err=yes |
---|
5924 | fi |
---|
5925 | if test -z "$ac_cpp_err"; then |
---|
5926 | ac_header_preproc=yes |
---|
5927 | else |
---|
5928 | echo "$as_me: failed program was:" >&5 |
---|
5929 | cat conftest.$ac_ext >&5 |
---|
5930 | ac_header_preproc=no |
---|
5931 | fi |
---|
5932 | rm -f conftest.err conftest.$ac_ext |
---|
5933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5934 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5935 | |
---|
5936 | # So? What about this header? |
---|
5937 | case $ac_header_compiler:$ac_header_preproc in |
---|
5938 | yes:no ) |
---|
5939 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5940 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5941 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 |
---|
5942 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};; |
---|
5943 | no:yes ) |
---|
5944 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 |
---|
5945 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} |
---|
5946 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 |
---|
5947 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} |
---|
5948 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 |
---|
5949 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};; |
---|
5950 | esac |
---|
5951 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 |
---|
5952 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 |
---|
5953 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
---|
5954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5955 | else |
---|
5956 | ac_cv_header_linux_version_h=$ac_header_preproc |
---|
5957 | fi |
---|
5958 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
---|
5959 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 |
---|
5960 | |
---|
5961 | fi |
---|
5962 | if test $ac_cv_header_linux_version_h = yes; then |
---|
5963 | msgformat=linux |
---|
5964 | else |
---|
5965 | msgformat=xopen |
---|
5966 | fi |
---|
5967 | |
---|
5968 | |
---|
5969 | |
---|
5970 | sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed |
---|
5971 | fi |
---|
5972 | |
---|
5973 | MKINSTALLDIRS= |
---|
5974 | if test -n "$ac_aux_dir"; then |
---|
5975 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
5976 | fi |
---|
5977 | if test -z "$MKINSTALLDIRS"; then |
---|
5978 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
5979 | fi |
---|
5980 | |
---|
5981 | |
---|
5982 | test -d po || mkdir po |
---|
5983 | if test "x$srcdir" != "x."; then |
---|
5984 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
5985 | posrcprefix="$srcdir/" |
---|
5986 | else |
---|
5987 | posrcprefix="../$srcdir/" |
---|
5988 | fi |
---|
5989 | else |
---|
5990 | posrcprefix="../" |
---|
5991 | fi |
---|
5992 | rm -f po/POTFILES |
---|
5993 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
5994 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
5995 | |
---|
5996 | |
---|
5997 | if test "x${prefix}" = "xNONE"; then |
---|
5998 | cat >>confdefs.h <<_ACEOF |
---|
5999 | #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale" |
---|
6000 | _ACEOF |
---|
6001 | |
---|
6002 | else |
---|
6003 | cat >>confdefs.h <<_ACEOF |
---|
6004 | #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale" |
---|
6005 | _ACEOF |
---|
6006 | |
---|
6007 | fi |
---|
6008 | |
---|
6009 | ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
---|
6010 | |
---|
6011 | ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in help/Makefile help/C/Makefile" |
---|
6012 | cat >confcache <<\_ACEOF |
---|
6013 | # This file is a shell script that caches the results of configure |
---|
6014 | # tests run on this system so they can be shared between configure |
---|
6015 | # scripts and configure runs, see configure's option --config-cache. |
---|
6016 | # It is not useful on other systems. If it contains results you don't |
---|
6017 | # want to keep, you may remove or edit it. |
---|
6018 | # |
---|
6019 | # config.status only pays attention to the cache file if you give it |
---|
6020 | # the --recheck option to rerun configure. |
---|
6021 | # |
---|
6022 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
---|
6023 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6024 | # following values. |
---|
6025 | |
---|
6026 | _ACEOF |
---|
6027 | |
---|
6028 | # The following way of writing the cache mishandles newlines in values, |
---|
6029 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6030 | # So, don't put newlines in cache variables' values. |
---|
6031 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6032 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6033 | { |
---|
6034 | (set) 2>&1 | |
---|
6035 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6036 | *ac_space=\ *) |
---|
6037 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6038 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6039 | sed -n \ |
---|
6040 | "s/'/'\\\\''/g; |
---|
6041 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6042 | ;; |
---|
6043 | *) |
---|
6044 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6045 | sed -n \ |
---|
6046 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6047 | ;; |
---|
6048 | esac; |
---|
6049 | } | |
---|
6050 | sed ' |
---|
6051 | t clear |
---|
6052 | : clear |
---|
6053 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6054 | t end |
---|
6055 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6056 | : end' >>confcache |
---|
6057 | if cmp -s $cache_file confcache; then :; else |
---|
6058 | if test -w $cache_file; then |
---|
6059 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6060 | cat confcache >$cache_file |
---|
6061 | else |
---|
6062 | echo "not updating unwritable cache $cache_file" |
---|
6063 | fi |
---|
6064 | fi |
---|
6065 | rm -f confcache |
---|
6066 | |
---|
6067 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6068 | # Let make expand exec_prefix. |
---|
6069 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6070 | |
---|
6071 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6072 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6073 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6074 | # (actually we leave an empty line to preserve line numbers). |
---|
6075 | if test "x$srcdir" = x.; then |
---|
6076 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6077 | s/:*\$(srcdir):*/:/; |
---|
6078 | s/:*\${srcdir}:*/:/; |
---|
6079 | s/:*@srcdir@:*/:/; |
---|
6080 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6081 | s/:*$//; |
---|
6082 | s/^[^=]*=[ ]*$//; |
---|
6083 | }' |
---|
6084 | fi |
---|
6085 | |
---|
6086 | DEFS=-DHAVE_CONFIG_H |
---|
6087 | |
---|
6088 | |
---|
6089 | |
---|
6090 | mv -f po/POTFILES po/POTFILES.tmp |
---|
6091 | sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES |
---|
6092 | rm -f po/POTFILES.tmp |
---|
6093 | |
---|
6094 | |
---|
6095 | |
---|
6096 | : ${CONFIG_STATUS=./config.status} |
---|
6097 | ac_clean_files_save=$ac_clean_files |
---|
6098 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6099 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6100 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6101 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6102 | #! $SHELL |
---|
6103 | # Generated by $as_me. |
---|
6104 | # Run this file to recreate the current configuration. |
---|
6105 | # Compiler output produced by configure, useful for debugging |
---|
6106 | # configure, is in config.log if it exists. |
---|
6107 | |
---|
6108 | debug=false |
---|
6109 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6110 | _ACEOF |
---|
6111 | |
---|
6112 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6113 | |
---|
6114 | ## --------------------- ## |
---|
6115 | ## M4sh Initialization. ## |
---|
6116 | ## --------------------- ## |
---|
6117 | |
---|
6118 | # Be Bourne compatible |
---|
6119 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6120 | emulate sh |
---|
6121 | NULLCMD=: |
---|
6122 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6123 | set -o posix |
---|
6124 | fi |
---|
6125 | |
---|
6126 | # NLS nuisances. |
---|
6127 | # Support unset when possible. |
---|
6128 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
6129 | as_unset=unset |
---|
6130 | else |
---|
6131 | as_unset=false |
---|
6132 | fi |
---|
6133 | |
---|
6134 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
---|
6135 | { $as_unset LANG || test "${LANG+set}" != set; } || |
---|
6136 | { LANG=C; export LANG; } |
---|
6137 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
---|
6138 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
---|
6139 | { LC_ALL=C; export LC_ALL; } |
---|
6140 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
---|
6141 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
---|
6142 | { LC_TIME=C; export LC_TIME; } |
---|
6143 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
---|
6144 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
---|
6145 | { LC_CTYPE=C; export LC_CTYPE; } |
---|
6146 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
---|
6147 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
---|
6148 | { LANGUAGE=C; export LANGUAGE; } |
---|
6149 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
---|
6150 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
---|
6151 | { LC_COLLATE=C; export LC_COLLATE; } |
---|
6152 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
---|
6153 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
---|
6154 | { LC_NUMERIC=C; export LC_NUMERIC; } |
---|
6155 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
---|
6156 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
---|
6157 | { LC_MESSAGES=C; export LC_MESSAGES; } |
---|
6158 | |
---|
6159 | |
---|
6160 | # Name of the executable. |
---|
6161 | as_me=`(basename "$0") 2>/dev/null || |
---|
6162 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6163 | X"$0" : 'X\(//\)$' \| \ |
---|
6164 | X"$0" : 'X\(/\)$' \| \ |
---|
6165 | . : '\(.\)' 2>/dev/null || |
---|
6166 | echo X/"$0" | |
---|
6167 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6168 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6169 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6170 | s/.*/./; q'` |
---|
6171 | |
---|
6172 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6173 | # Avoid depending upon Character Ranges. |
---|
6174 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6175 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6176 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6177 | as_cr_digits='0123456789' |
---|
6178 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6179 | |
---|
6180 | # The user is always right. |
---|
6181 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6182 | echo "#! /bin/sh" >conftest.sh |
---|
6183 | echo "exit 0" >>conftest.sh |
---|
6184 | chmod +x conftest.sh |
---|
6185 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
---|
6186 | PATH_SEPARATOR=';' |
---|
6187 | else |
---|
6188 | PATH_SEPARATOR=: |
---|
6189 | fi |
---|
6190 | rm -f conftest.sh |
---|
6191 | fi |
---|
6192 | |
---|
6193 | |
---|
6194 | as_lineno_1=$LINENO |
---|
6195 | as_lineno_2=$LINENO |
---|
6196 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6197 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6198 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6199 | # Find who we are. Look in the path if we contain no path at all |
---|
6200 | # relative or not. |
---|
6201 | case $0 in |
---|
6202 | *[\\/]* ) as_myself=$0 ;; |
---|
6203 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6204 | for as_dir in $PATH |
---|
6205 | do |
---|
6206 | IFS=$as_save_IFS |
---|
6207 | test -z "$as_dir" && as_dir=. |
---|
6208 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6209 | done |
---|
6210 | |
---|
6211 | ;; |
---|
6212 | esac |
---|
6213 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6214 | # in which case we are not to be found in the path. |
---|
6215 | if test "x$as_myself" = x; then |
---|
6216 | as_myself=$0 |
---|
6217 | fi |
---|
6218 | if test ! -f "$as_myself"; then |
---|
6219 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6220 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6221 | { (exit 1); exit 1; }; } |
---|
6222 | fi |
---|
6223 | case $CONFIG_SHELL in |
---|
6224 | '') |
---|
6225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6226 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6227 | do |
---|
6228 | IFS=$as_save_IFS |
---|
6229 | test -z "$as_dir" && as_dir=. |
---|
6230 | for as_base in sh bash ksh sh5; do |
---|
6231 | case $as_dir in |
---|
6232 | /*) |
---|
6233 | if ("$as_dir/$as_base" -c ' |
---|
6234 | as_lineno_1=$LINENO |
---|
6235 | as_lineno_2=$LINENO |
---|
6236 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6237 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6238 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6239 | CONFIG_SHELL=$as_dir/$as_base |
---|
6240 | export CONFIG_SHELL |
---|
6241 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6242 | fi;; |
---|
6243 | esac |
---|
6244 | done |
---|
6245 | done |
---|
6246 | ;; |
---|
6247 | esac |
---|
6248 | |
---|
6249 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6250 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6251 | # line-number line before each line; the second 'sed' does the real |
---|
6252 | # work. The second script uses 'N' to pair each line-number line |
---|
6253 | # with the numbered line, and appends trailing '-' during |
---|
6254 | # substitution so that $LINENO is not a special case at line end. |
---|
6255 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6256 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6257 | sed '=' <$as_myself | |
---|
6258 | sed ' |
---|
6259 | N |
---|
6260 | s,$,-, |
---|
6261 | : loop |
---|
6262 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6263 | t loop |
---|
6264 | s,-$,, |
---|
6265 | s,^['$as_cr_digits']*\n,, |
---|
6266 | ' >$as_me.lineno && |
---|
6267 | chmod +x $as_me.lineno || |
---|
6268 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6269 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6270 | { (exit 1); exit 1; }; } |
---|
6271 | |
---|
6272 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6273 | # (the dirname of $[0] is not the place where we might find the |
---|
6274 | # original and so on. Autoconf is especially sensible to this). |
---|
6275 | . ./$as_me.lineno |
---|
6276 | # Exit status is that of the last command. |
---|
6277 | exit |
---|
6278 | } |
---|
6279 | |
---|
6280 | |
---|
6281 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6282 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6283 | ' ECHO_T=' ' ;; |
---|
6284 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6285 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6286 | esac |
---|
6287 | |
---|
6288 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6289 | as_expr=expr |
---|
6290 | else |
---|
6291 | as_expr=false |
---|
6292 | fi |
---|
6293 | |
---|
6294 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6295 | echo >conf$$.file |
---|
6296 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6297 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6298 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6299 | if test -f conf$$.exe; then |
---|
6300 | # Don't use ln at all; we don't have any links |
---|
6301 | as_ln_s='cp -p' |
---|
6302 | else |
---|
6303 | as_ln_s='ln -s' |
---|
6304 | fi |
---|
6305 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6306 | as_ln_s=ln |
---|
6307 | else |
---|
6308 | as_ln_s='cp -p' |
---|
6309 | fi |
---|
6310 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6311 | |
---|
6312 | as_executable_p="test -f" |
---|
6313 | |
---|
6314 | # Sed expression to map a string onto a valid CPP name. |
---|
6315 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
6316 | |
---|
6317 | # Sed expression to map a string onto a valid variable name. |
---|
6318 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
6319 | |
---|
6320 | |
---|
6321 | # IFS |
---|
6322 | # We need space, tab and new line, in precisely that order. |
---|
6323 | as_nl=' |
---|
6324 | ' |
---|
6325 | IFS=" $as_nl" |
---|
6326 | |
---|
6327 | # CDPATH. |
---|
6328 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
---|
6329 | |
---|
6330 | exec 6>&1 |
---|
6331 | |
---|
6332 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6333 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6334 | # values after options handling. Logging --version etc. is OK. |
---|
6335 | exec 5>>config.log |
---|
6336 | { |
---|
6337 | echo |
---|
6338 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6339 | ## Running $as_me. ## |
---|
6340 | _ASBOX |
---|
6341 | } >&5 |
---|
6342 | cat >&5 <<_CSEOF |
---|
6343 | |
---|
6344 | This file was extended by $as_me, which was |
---|
6345 | generated by GNU Autoconf 2.53. Invocation command line was |
---|
6346 | |
---|
6347 | CONFIG_FILES = $CONFIG_FILES |
---|
6348 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6349 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6350 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6351 | $ $0 $@ |
---|
6352 | |
---|
6353 | _CSEOF |
---|
6354 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6355 | echo >&5 |
---|
6356 | _ACEOF |
---|
6357 | |
---|
6358 | # Files that config.status was made for. |
---|
6359 | if test -n "$ac_config_files"; then |
---|
6360 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6361 | fi |
---|
6362 | |
---|
6363 | if test -n "$ac_config_headers"; then |
---|
6364 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6365 | fi |
---|
6366 | |
---|
6367 | if test -n "$ac_config_links"; then |
---|
6368 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6369 | fi |
---|
6370 | |
---|
6371 | if test -n "$ac_config_commands"; then |
---|
6372 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6373 | fi |
---|
6374 | |
---|
6375 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6376 | |
---|
6377 | ac_cs_usage="\ |
---|
6378 | \`$as_me' instantiates files from templates according to the |
---|
6379 | current configuration. |
---|
6380 | |
---|
6381 | Usage: $0 [OPTIONS] [FILE]... |
---|
6382 | |
---|
6383 | -h, --help print this help, then exit |
---|
6384 | -V, --version print version number, then exit |
---|
6385 | -d, --debug don't remove temporary files |
---|
6386 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6387 | --file=FILE[:TEMPLATE] |
---|
6388 | instantiate the configuration file FILE |
---|
6389 | --header=FILE[:TEMPLATE] |
---|
6390 | instantiate the configuration header FILE |
---|
6391 | |
---|
6392 | Configuration files: |
---|
6393 | $config_files |
---|
6394 | |
---|
6395 | Configuration headers: |
---|
6396 | $config_headers |
---|
6397 | |
---|
6398 | Configuration commands: |
---|
6399 | $config_commands |
---|
6400 | |
---|
6401 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6402 | _ACEOF |
---|
6403 | |
---|
6404 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6405 | ac_cs_version="\\ |
---|
6406 | config.status |
---|
6407 | configured by $0, generated by GNU Autoconf 2.53, |
---|
6408 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6409 | |
---|
6410 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
6411 | Free Software Foundation, Inc. |
---|
6412 | This config.status script is free software; the Free Software Foundation |
---|
6413 | gives unlimited permission to copy, distribute and modify it." |
---|
6414 | srcdir=$srcdir |
---|
6415 | INSTALL="$INSTALL" |
---|
6416 | _ACEOF |
---|
6417 | |
---|
6418 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6419 | # If no file are specified by the user, then we need to provide default |
---|
6420 | # value. By we need to know if files were specified by the user. |
---|
6421 | ac_need_defaults=: |
---|
6422 | while test $# != 0 |
---|
6423 | do |
---|
6424 | case $1 in |
---|
6425 | --*=*) |
---|
6426 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6427 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6428 | shift |
---|
6429 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
---|
6430 | shift |
---|
6431 | ;; |
---|
6432 | -*);; |
---|
6433 | *) # This is not an option, so the user has probably given explicit |
---|
6434 | # arguments. |
---|
6435 | ac_need_defaults=false;; |
---|
6436 | esac |
---|
6437 | |
---|
6438 | case $1 in |
---|
6439 | # Handling of the options. |
---|
6440 | _ACEOF |
---|
6441 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6442 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6443 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
---|
6444 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
---|
6445 | _ACEOF |
---|
6446 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6447 | --version | --vers* | -V ) |
---|
6448 | echo "$ac_cs_version"; exit 0 ;; |
---|
6449 | --he | --h) |
---|
6450 | # Conflict between --help and --header |
---|
6451 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6452 | Try \`$0 --help' for more information." >&5 |
---|
6453 | echo "$as_me: error: ambiguous option: $1 |
---|
6454 | Try \`$0 --help' for more information." >&2;} |
---|
6455 | { (exit 1); exit 1; }; };; |
---|
6456 | --help | --hel | -h ) |
---|
6457 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6458 | --debug | --d* | -d ) |
---|
6459 | debug=: ;; |
---|
6460 | --file | --fil | --fi | --f ) |
---|
6461 | shift |
---|
6462 | CONFIG_FILES="$CONFIG_FILES $1" |
---|
6463 | ac_need_defaults=false;; |
---|
6464 | --header | --heade | --head | --hea ) |
---|
6465 | shift |
---|
6466 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
---|
6467 | ac_need_defaults=false;; |
---|
6468 | |
---|
6469 | # This is an error. |
---|
6470 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6471 | Try \`$0 --help' for more information." >&5 |
---|
6472 | echo "$as_me: error: unrecognized option: $1 |
---|
6473 | Try \`$0 --help' for more information." >&2;} |
---|
6474 | { (exit 1); exit 1; }; } ;; |
---|
6475 | |
---|
6476 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6477 | |
---|
6478 | esac |
---|
6479 | shift |
---|
6480 | done |
---|
6481 | |
---|
6482 | _ACEOF |
---|
6483 | |
---|
6484 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6485 | # |
---|
6486 | # INIT-COMMANDS section. |
---|
6487 | # |
---|
6488 | |
---|
6489 | |
---|
6490 | INTLTOOL_PERL=${INTLTOOL_PERL} |
---|
6491 | |
---|
6492 | |
---|
6493 | _ACEOF |
---|
6494 | |
---|
6495 | |
---|
6496 | |
---|
6497 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6498 | for ac_config_target in $ac_config_targets |
---|
6499 | do |
---|
6500 | case "$ac_config_target" in |
---|
6501 | # Handling of arguments. |
---|
6502 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6503 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6504 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
---|
6505 | "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
---|
6506 | "help/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/C/Makefile" ;; |
---|
6507 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
---|
6508 | "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; |
---|
6509 | "default-3" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;; |
---|
6510 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6511 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6512 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6513 | { (exit 1); exit 1; }; };; |
---|
6514 | esac |
---|
6515 | done |
---|
6516 | |
---|
6517 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6518 | # then the envvar interface is used. Set only those that are not. |
---|
6519 | # We use the long form for the default assignment because of an extremely |
---|
6520 | # bizarre bug on SunOS 4.1.3. |
---|
6521 | if $ac_need_defaults; then |
---|
6522 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6523 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6524 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6525 | fi |
---|
6526 | |
---|
6527 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6528 | $debug || |
---|
6529 | { |
---|
6530 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6531 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6532 | } |
---|
6533 | |
---|
6534 | # Create a (secure) tmp directory for tmp files. |
---|
6535 | : ${TMPDIR=/tmp} |
---|
6536 | { |
---|
6537 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
---|
6538 | test -n "$tmp" && test -d "$tmp" |
---|
6539 | } || |
---|
6540 | { |
---|
6541 | tmp=$TMPDIR/cs$$-$RANDOM |
---|
6542 | (umask 077 && mkdir $tmp) |
---|
6543 | } || |
---|
6544 | { |
---|
6545 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
---|
6546 | { (exit 1); exit 1; } |
---|
6547 | } |
---|
6548 | |
---|
6549 | _ACEOF |
---|
6550 | |
---|
6551 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6552 | |
---|
6553 | # |
---|
6554 | # CONFIG_FILES section. |
---|
6555 | # |
---|
6556 | |
---|
6557 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6558 | # This happens for instance when ./config.status config.h |
---|
6559 | if test -n "\$CONFIG_FILES"; then |
---|
6560 | # Protect against being on the right side of a sed subst in config.status. |
---|
6561 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6562 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6563 | s,@SHELL@,$SHELL,;t t |
---|
6564 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6565 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6566 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6567 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6568 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6569 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6570 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6571 | s,@prefix@,$prefix,;t t |
---|
6572 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6573 | s,@bindir@,$bindir,;t t |
---|
6574 | s,@sbindir@,$sbindir,;t t |
---|
6575 | s,@libexecdir@,$libexecdir,;t t |
---|
6576 | s,@datadir@,$datadir,;t t |
---|
6577 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6578 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6579 | s,@localstatedir@,$localstatedir,;t t |
---|
6580 | s,@libdir@,$libdir,;t t |
---|
6581 | s,@includedir@,$includedir,;t t |
---|
6582 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6583 | s,@infodir@,$infodir,;t t |
---|
6584 | s,@mandir@,$mandir,;t t |
---|
6585 | s,@build_alias@,$build_alias,;t t |
---|
6586 | s,@host_alias@,$host_alias,;t t |
---|
6587 | s,@target_alias@,$target_alias,;t t |
---|
6588 | s,@DEFS@,$DEFS,;t t |
---|
6589 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6590 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6591 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6592 | s,@LIBS@,$LIBS,;t t |
---|
6593 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6594 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6595 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6596 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6597 | s,@VERSION@,$VERSION,;t t |
---|
6598 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6599 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6600 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6601 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6602 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6603 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6604 | s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t |
---|
6605 | s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t |
---|
6606 | s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t |
---|
6607 | s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t |
---|
6608 | s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t |
---|
6609 | s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t |
---|
6610 | s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t |
---|
6611 | s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t |
---|
6612 | s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t |
---|
6613 | s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t |
---|
6614 | s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t |
---|
6615 | s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t |
---|
6616 | s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t |
---|
6617 | s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t |
---|
6618 | s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t |
---|
6619 | s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t |
---|
6620 | s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t |
---|
6621 | s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t |
---|
6622 | s,@CC@,$CC,;t t |
---|
6623 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6624 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6625 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6626 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6627 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6628 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6629 | s,@CPP@,$CPP,;t t |
---|
6630 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
---|
6631 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
6632 | s,@PROCMAN_CFLAGS@,$PROCMAN_CFLAGS,;t t |
---|
6633 | s,@PROCMAN_LIBS@,$PROCMAN_LIBS,;t t |
---|
6634 | s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t |
---|
6635 | s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t |
---|
6636 | s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t |
---|
6637 | s,@RANLIB@,$RANLIB,;t t |
---|
6638 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
6639 | s,@ALLOCA@,$ALLOCA,;t t |
---|
6640 | s,@USE_NLS@,$USE_NLS,;t t |
---|
6641 | s,@MSGFMT@,$MSGFMT,;t t |
---|
6642 | s,@GMSGFMT@,$GMSGFMT,;t t |
---|
6643 | s,@XGETTEXT@,$XGETTEXT,;t t |
---|
6644 | s,@CATALOGS@,$CATALOGS,;t t |
---|
6645 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
---|
6646 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
---|
6647 | s,@GMOFILES@,$GMOFILES,;t t |
---|
6648 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
---|
6649 | s,@INTLDEPS@,$INTLDEPS,;t t |
---|
6650 | s,@INTLLIBS@,$INTLLIBS,;t t |
---|
6651 | s,@INTLOBJS@,$INTLOBJS,;t t |
---|
6652 | s,@POFILES@,$POFILES,;t t |
---|
6653 | s,@POSUB@,$POSUB,;t t |
---|
6654 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
---|
6655 | CEOF |
---|
6656 | |
---|
6657 | _ACEOF |
---|
6658 | |
---|
6659 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6660 | # Split the substitutions into bite-sized pieces for seds with |
---|
6661 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6662 | ac_max_sed_lines=48 |
---|
6663 | ac_sed_frag=1 # Number of current file. |
---|
6664 | ac_beg=1 # First line for current file. |
---|
6665 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6666 | ac_more_lines=: |
---|
6667 | ac_sed_cmds= |
---|
6668 | while $ac_more_lines; do |
---|
6669 | if test $ac_beg -gt 1; then |
---|
6670 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6671 | else |
---|
6672 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6673 | fi |
---|
6674 | if test ! -s $tmp/subs.frag; then |
---|
6675 | ac_more_lines=false |
---|
6676 | else |
---|
6677 | # The purpose of the label and of the branching condition is to |
---|
6678 | # speed up the sed processing (if there are no `@' at all, there |
---|
6679 | # is no need to browse any of the substitutions). |
---|
6680 | # These are the two extra sed commands mentioned above. |
---|
6681 | (echo ':t |
---|
6682 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6683 | if test -z "$ac_sed_cmds"; then |
---|
6684 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6685 | else |
---|
6686 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6687 | fi |
---|
6688 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6689 | ac_beg=$ac_end |
---|
6690 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6691 | fi |
---|
6692 | done |
---|
6693 | if test -z "$ac_sed_cmds"; then |
---|
6694 | ac_sed_cmds=cat |
---|
6695 | fi |
---|
6696 | fi # test -n "$CONFIG_FILES" |
---|
6697 | |
---|
6698 | _ACEOF |
---|
6699 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6700 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6701 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6702 | case $ac_file in |
---|
6703 | - | *:- | *:-:* ) # input from stdin |
---|
6704 | cat >$tmp/stdin |
---|
6705 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6706 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6707 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6708 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6709 | * ) ac_file_in=$ac_file.in ;; |
---|
6710 | esac |
---|
6711 | |
---|
6712 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6713 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6714 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6715 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6716 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6717 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6718 | . : '\(.\)' 2>/dev/null || |
---|
6719 | echo X"$ac_file" | |
---|
6720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6722 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6723 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6724 | s/.*/./; q'` |
---|
6725 | { case "$ac_dir" in |
---|
6726 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
---|
6727 | *) as_incr_dir=.;; |
---|
6728 | esac |
---|
6729 | as_dummy="$ac_dir" |
---|
6730 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
---|
6731 | case $as_mkdir_dir in |
---|
6732 | # Skip DOS drivespec |
---|
6733 | ?:) as_incr_dir=$as_mkdir_dir ;; |
---|
6734 | *) |
---|
6735 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
---|
6736 | test -d "$as_incr_dir" || |
---|
6737 | mkdir "$as_incr_dir" || |
---|
6738 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
---|
6739 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
---|
6740 | { (exit 1); exit 1; }; } |
---|
6741 | ;; |
---|
6742 | esac |
---|
6743 | done; } |
---|
6744 | |
---|
6745 | ac_builddir=. |
---|
6746 | |
---|
6747 | if test "$ac_dir" != .; then |
---|
6748 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6749 | # A "../" for each directory in $ac_dir_suffix. |
---|
6750 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6751 | else |
---|
6752 | ac_dir_suffix= ac_top_builddir= |
---|
6753 | fi |
---|
6754 | |
---|
6755 | case $srcdir in |
---|
6756 | .) # No --srcdir option. We are building in place. |
---|
6757 | ac_srcdir=. |
---|
6758 | if test -z "$ac_top_builddir"; then |
---|
6759 | ac_top_srcdir=. |
---|
6760 | else |
---|
6761 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6762 | fi ;; |
---|
6763 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6764 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6765 | ac_top_srcdir=$srcdir ;; |
---|
6766 | *) # Relative path. |
---|
6767 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6768 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6769 | esac |
---|
6770 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
6771 | # absolute. |
---|
6772 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
6773 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
---|
6774 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
6775 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
6776 | |
---|
6777 | |
---|
6778 | case $INSTALL in |
---|
6779 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6780 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
6781 | esac |
---|
6782 | |
---|
6783 | if test x"$ac_file" != x-; then |
---|
6784 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6785 | echo "$as_me: creating $ac_file" >&6;} |
---|
6786 | rm -f "$ac_file" |
---|
6787 | fi |
---|
6788 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6789 | # use $as_me), people would be surprised to read: |
---|
6790 | # /* config.h. Generated by config.status. */ |
---|
6791 | if test x"$ac_file" = x-; then |
---|
6792 | configure_input= |
---|
6793 | else |
---|
6794 | configure_input="$ac_file. " |
---|
6795 | fi |
---|
6796 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
6797 | sed 's,.*/,,'` by configure." |
---|
6798 | |
---|
6799 | # First look for the input files in the build tree, otherwise in the |
---|
6800 | # src tree. |
---|
6801 | ac_file_inputs=`IFS=: |
---|
6802 | for f in $ac_file_in; do |
---|
6803 | case $f in |
---|
6804 | -) echo $tmp/stdin ;; |
---|
6805 | [\\/$]*) |
---|
6806 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6807 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6808 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6809 | { (exit 1); exit 1; }; } |
---|
6810 | echo $f;; |
---|
6811 | *) # Relative |
---|
6812 | if test -f "$f"; then |
---|
6813 | # Build tree |
---|
6814 | echo $f |
---|
6815 | elif test -f "$srcdir/$f"; then |
---|
6816 | # Source tree |
---|
6817 | echo $srcdir/$f |
---|
6818 | else |
---|
6819 | # /dev/null tree |
---|
6820 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6821 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6822 | { (exit 1); exit 1; }; } |
---|
6823 | fi;; |
---|
6824 | esac |
---|
6825 | done` || { (exit 1); exit 1; } |
---|
6826 | _ACEOF |
---|
6827 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6828 | sed "$ac_vpsub |
---|
6829 | $extrasub |
---|
6830 | _ACEOF |
---|
6831 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6832 | :t |
---|
6833 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6834 | s,@configure_input@,$configure_input,;t t |
---|
6835 | s,@srcdir@,$ac_srcdir,;t t |
---|
6836 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
6837 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
6838 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
6839 | s,@builddir@,$ac_builddir,;t t |
---|
6840 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
6841 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
6842 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
6843 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
6844 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
6845 | rm -f $tmp/stdin |
---|
6846 | if test x"$ac_file" != x-; then |
---|
6847 | mv $tmp/out $ac_file |
---|
6848 | else |
---|
6849 | cat $tmp/out |
---|
6850 | rm -f $tmp/out |
---|
6851 | fi |
---|
6852 | |
---|
6853 | done |
---|
6854 | _ACEOF |
---|
6855 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6856 | |
---|
6857 | # |
---|
6858 | # CONFIG_HEADER section. |
---|
6859 | # |
---|
6860 | |
---|
6861 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
6862 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
6863 | # |
---|
6864 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
6865 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
6866 | ac_dB='[ ].*$,\1#\2' |
---|
6867 | ac_dC=' ' |
---|
6868 | ac_dD=',;t' |
---|
6869 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
6870 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6871 | ac_uB='$,\1#\2define\3' |
---|
6872 | ac_uC=' ' |
---|
6873 | ac_uD=',;t' |
---|
6874 | |
---|
6875 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
6876 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6877 | case $ac_file in |
---|
6878 | - | *:- | *:-:* ) # input from stdin |
---|
6879 | cat >$tmp/stdin |
---|
6880 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6881 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6882 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6883 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6884 | * ) ac_file_in=$ac_file.in ;; |
---|
6885 | esac |
---|
6886 | |
---|
6887 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6888 | echo "$as_me: creating $ac_file" >&6;} |
---|
6889 | |
---|
6890 | # First look for the input files in the build tree, otherwise in the |
---|
6891 | # src tree. |
---|
6892 | ac_file_inputs=`IFS=: |
---|
6893 | for f in $ac_file_in; do |
---|
6894 | case $f in |
---|
6895 | -) echo $tmp/stdin ;; |
---|
6896 | [\\/$]*) |
---|
6897 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6898 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6899 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6900 | { (exit 1); exit 1; }; } |
---|
6901 | echo $f;; |
---|
6902 | *) # Relative |
---|
6903 | if test -f "$f"; then |
---|
6904 | # Build tree |
---|
6905 | echo $f |
---|
6906 | elif test -f "$srcdir/$f"; then |
---|
6907 | # Source tree |
---|
6908 | echo $srcdir/$f |
---|
6909 | else |
---|
6910 | # /dev/null tree |
---|
6911 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6912 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6913 | { (exit 1); exit 1; }; } |
---|
6914 | fi;; |
---|
6915 | esac |
---|
6916 | done` || { (exit 1); exit 1; } |
---|
6917 | # Remove the trailing spaces. |
---|
6918 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
6919 | |
---|
6920 | _ACEOF |
---|
6921 | |
---|
6922 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
6923 | # `conftest.undefs', that substitutes the proper values into |
---|
6924 | # config.h.in to produce config.h. The first handles `#define' |
---|
6925 | # templates, and the second `#undef' templates. |
---|
6926 | # And first: Protect against being on the right side of a sed subst in |
---|
6927 | # config.status. Protect against being in an unquoted here document |
---|
6928 | # in config.status. |
---|
6929 | rm -f conftest.defines conftest.undefs |
---|
6930 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
6931 | # Putting comments in sed scripts is not portable. |
---|
6932 | # |
---|
6933 | # `end' is used to avoid that the second main sed command (meant for |
---|
6934 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
6935 | # See the Autoconf documentation for `clear'. |
---|
6936 | cat >confdef2sed.sed <<\_ACEOF |
---|
6937 | s/[\\&,]/\\&/g |
---|
6938 | s,[\\$`],\\&,g |
---|
6939 | t clear |
---|
6940 | : clear |
---|
6941 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
6942 | t end |
---|
6943 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
6944 | : end |
---|
6945 | _ACEOF |
---|
6946 | # If some macros were called several times there might be several times |
---|
6947 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
6948 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
6949 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
6950 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
6951 | rm -f confdef2sed.sed |
---|
6952 | |
---|
6953 | # This sed command replaces #undef with comments. This is necessary, for |
---|
6954 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
6955 | # on some systems where configure will not decide to define it. |
---|
6956 | cat >>conftest.undefs <<\_ACEOF |
---|
6957 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
6958 | _ACEOF |
---|
6959 | |
---|
6960 | # Break up conftest.defines because some shells have a limit on the size |
---|
6961 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6962 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
6963 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
6964 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
6965 | echo ' :' >>$CONFIG_STATUS |
---|
6966 | rm -f conftest.tail |
---|
6967 | while grep . conftest.defines >/dev/null |
---|
6968 | do |
---|
6969 | # Write a limited-size here document to $tmp/defines.sed. |
---|
6970 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
6971 | # Speed up: don't consider the non `#define' lines. |
---|
6972 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
6973 | # Work around the forget-to-reset-the-flag bug. |
---|
6974 | echo 't clr' >>$CONFIG_STATUS |
---|
6975 | echo ': clr' >>$CONFIG_STATUS |
---|
6976 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
6977 | echo 'CEOF |
---|
6978 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
6979 | rm -f $tmp/in |
---|
6980 | mv $tmp/out $tmp/in |
---|
6981 | ' >>$CONFIG_STATUS |
---|
6982 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
6983 | rm -f conftest.defines |
---|
6984 | mv conftest.tail conftest.defines |
---|
6985 | done |
---|
6986 | rm -f conftest.defines |
---|
6987 | echo ' fi # egrep' >>$CONFIG_STATUS |
---|
6988 | echo >>$CONFIG_STATUS |
---|
6989 | |
---|
6990 | # Break up conftest.undefs because some shells have a limit on the size |
---|
6991 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6992 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
6993 | rm -f conftest.tail |
---|
6994 | while grep . conftest.undefs >/dev/null |
---|
6995 | do |
---|
6996 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
6997 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
6998 | # Speed up: don't consider the non `#undef' |
---|
6999 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7000 | # Work around the forget-to-reset-the-flag bug. |
---|
7001 | echo 't clr' >>$CONFIG_STATUS |
---|
7002 | echo ': clr' >>$CONFIG_STATUS |
---|
7003 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7004 | echo 'CEOF |
---|
7005 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7006 | rm -f $tmp/in |
---|
7007 | mv $tmp/out $tmp/in |
---|
7008 | ' >>$CONFIG_STATUS |
---|
7009 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7010 | rm -f conftest.undefs |
---|
7011 | mv conftest.tail conftest.undefs |
---|
7012 | done |
---|
7013 | rm -f conftest.undefs |
---|
7014 | |
---|
7015 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7016 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7017 | # use $as_me), people would be surprised to read: |
---|
7018 | # /* config.h. Generated by config.status. */ |
---|
7019 | if test x"$ac_file" = x-; then |
---|
7020 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7021 | else |
---|
7022 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7023 | fi |
---|
7024 | cat $tmp/in >>$tmp/config.h |
---|
7025 | rm -f $tmp/in |
---|
7026 | if test x"$ac_file" != x-; then |
---|
7027 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
---|
7028 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7029 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7030 | else |
---|
7031 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7032 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7033 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7034 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7035 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7036 | . : '\(.\)' 2>/dev/null || |
---|
7037 | echo X"$ac_file" | |
---|
7038 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7039 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7040 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7041 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7042 | s/.*/./; q'` |
---|
7043 | { case "$ac_dir" in |
---|
7044 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
---|
7045 | *) as_incr_dir=.;; |
---|
7046 | esac |
---|
7047 | as_dummy="$ac_dir" |
---|
7048 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
---|
7049 | case $as_mkdir_dir in |
---|
7050 | # Skip DOS drivespec |
---|
7051 | ?:) as_incr_dir=$as_mkdir_dir ;; |
---|
7052 | *) |
---|
7053 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
---|
7054 | test -d "$as_incr_dir" || |
---|
7055 | mkdir "$as_incr_dir" || |
---|
7056 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
---|
7057 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
---|
7058 | { (exit 1); exit 1; }; } |
---|
7059 | ;; |
---|
7060 | esac |
---|
7061 | done; } |
---|
7062 | |
---|
7063 | rm -f $ac_file |
---|
7064 | mv $tmp/config.h $ac_file |
---|
7065 | fi |
---|
7066 | else |
---|
7067 | cat $tmp/config.h |
---|
7068 | rm -f $tmp/config.h |
---|
7069 | fi |
---|
7070 | done |
---|
7071 | _ACEOF |
---|
7072 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7073 | |
---|
7074 | # |
---|
7075 | # CONFIG_COMMANDS section. |
---|
7076 | # |
---|
7077 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7078 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7079 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7080 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7081 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7082 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7083 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7084 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7085 | . : '\(.\)' 2>/dev/null || |
---|
7086 | echo X"$ac_dest" | |
---|
7087 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7088 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7089 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7090 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7091 | s/.*/./; q'` |
---|
7092 | ac_builddir=. |
---|
7093 | |
---|
7094 | if test "$ac_dir" != .; then |
---|
7095 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7096 | # A "../" for each directory in $ac_dir_suffix. |
---|
7097 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7098 | else |
---|
7099 | ac_dir_suffix= ac_top_builddir= |
---|
7100 | fi |
---|
7101 | |
---|
7102 | case $srcdir in |
---|
7103 | .) # No --srcdir option. We are building in place. |
---|
7104 | ac_srcdir=. |
---|
7105 | if test -z "$ac_top_builddir"; then |
---|
7106 | ac_top_srcdir=. |
---|
7107 | else |
---|
7108 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7109 | fi ;; |
---|
7110 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7111 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7112 | ac_top_srcdir=$srcdir ;; |
---|
7113 | *) # Relative path. |
---|
7114 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7115 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7116 | esac |
---|
7117 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
7118 | # absolute. |
---|
7119 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
7120 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
---|
7121 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
7122 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
7123 | |
---|
7124 | |
---|
7125 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7126 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7127 | case $ac_dest in |
---|
7128 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
---|
7129 | default-2 ) |
---|
7130 | |
---|
7131 | sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out |
---|
7132 | if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then |
---|
7133 | rm -f intltool-extract.out |
---|
7134 | else |
---|
7135 | mv -f intltool-extract.out intltool-extract |
---|
7136 | fi |
---|
7137 | chmod ugo+x intltool-extract |
---|
7138 | chmod u+w intltool-extract |
---|
7139 | |
---|
7140 | sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out |
---|
7141 | if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then |
---|
7142 | rm -f intltool-merge.out |
---|
7143 | else |
---|
7144 | mv -f intltool-merge.out intltool-merge |
---|
7145 | fi |
---|
7146 | chmod ugo+x intltool-merge |
---|
7147 | chmod u+w intltool-merge |
---|
7148 | |
---|
7149 | sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out |
---|
7150 | if cmp -s intltool-update intltool-update.out 2>/dev/null; then |
---|
7151 | rm -f intltool-update.out |
---|
7152 | else |
---|
7153 | mv -f intltool-update.out intltool-update |
---|
7154 | fi |
---|
7155 | chmod ugo+x intltool-update |
---|
7156 | chmod u+w intltool-update |
---|
7157 | |
---|
7158 | ;; |
---|
7159 | default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*) |
---|
7160 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
---|
7161 | esac ;; |
---|
7162 | esac |
---|
7163 | done |
---|
7164 | _ACEOF |
---|
7165 | |
---|
7166 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7167 | |
---|
7168 | { (exit 0); exit 0; } |
---|
7169 | _ACEOF |
---|
7170 | chmod +x $CONFIG_STATUS |
---|
7171 | ac_clean_files=$ac_clean_files_save |
---|
7172 | |
---|
7173 | |
---|
7174 | # configure is writing to config.log, and then calls config.status. |
---|
7175 | # config.status does its own redirection, appending to config.log. |
---|
7176 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7177 | # by configure, so config.status won't be able to write to it; its |
---|
7178 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7179 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7180 | # appended to by config.status. When coming back to configure, we |
---|
7181 | # need to make the FD available again. |
---|
7182 | if test "$no_create" != yes; then |
---|
7183 | ac_cs_success=: |
---|
7184 | exec 5>/dev/null |
---|
7185 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
---|
7186 | exec 5>>config.log |
---|
7187 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7188 | # would make configure fail if this is the last instruction. |
---|
7189 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7190 | fi |
---|
7191 | |
---|
7192 | |
---|