1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.59.
|
---|
4 | #
|
---|
5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
6 | # This configure script is free software; the Free Software Foundation
|
---|
7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
8 | ## --------------------- ##
|
---|
9 | ## M4sh Initialization. ##
|
---|
10 | ## --------------------- ##
|
---|
11 |
|
---|
12 | # Be Bourne compatible
|
---|
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
14 | emulate sh
|
---|
15 | NULLCMD=:
|
---|
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
17 | # is contrary to our usage. Disable this feature.
|
---|
18 | alias -g '${1+"$@"}'='"$@"'
|
---|
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
20 | set -o posix
|
---|
21 | fi
|
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
23 |
|
---|
24 | # Support unset when possible.
|
---|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
26 | as_unset=unset
|
---|
27 | else
|
---|
28 | as_unset=false
|
---|
29 | fi
|
---|
30 |
|
---|
31 |
|
---|
32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
33 | $as_unset ENV MAIL MAILPATH
|
---|
34 | PS1='$ '
|
---|
35 | PS2='> '
|
---|
36 | PS4='+ '
|
---|
37 |
|
---|
38 | # NLS nuisances.
|
---|
39 | for as_var in \
|
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
42 | LC_TELEPHONE LC_TIME
|
---|
43 | do
|
---|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
45 | eval $as_var=C; export $as_var
|
---|
46 | else
|
---|
47 | $as_unset $as_var
|
---|
48 | fi
|
---|
49 | done
|
---|
50 |
|
---|
51 | # Required to use basename.
|
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
53 | as_expr=expr
|
---|
54 | else
|
---|
55 | as_expr=false
|
---|
56 | fi
|
---|
57 |
|
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
59 | as_basename=basename
|
---|
60 | else
|
---|
61 | as_basename=false
|
---|
62 | fi
|
---|
63 |
|
---|
64 |
|
---|
65 | # Name of the executable.
|
---|
66 | as_me=`$as_basename "$0" ||
|
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
68 | X"$0" : 'X\(//\)$' \| \
|
---|
69 | X"$0" : 'X\(/\)$' \| \
|
---|
70 | . : '\(.\)' 2>/dev/null ||
|
---|
71 | echo X/"$0" |
|
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
75 | s/.*/./; q'`
|
---|
76 |
|
---|
77 |
|
---|
78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
79 | # Avoid depending upon Character Ranges.
|
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
83 | as_cr_digits='0123456789'
|
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
85 |
|
---|
86 | # The user is always right.
|
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
88 | echo "#! /bin/sh" >conf$$.sh
|
---|
89 | echo "exit 0" >>conf$$.sh
|
---|
90 | chmod +x conf$$.sh
|
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
92 | PATH_SEPARATOR=';'
|
---|
93 | else
|
---|
94 | PATH_SEPARATOR=:
|
---|
95 | fi
|
---|
96 | rm -f conf$$.sh
|
---|
97 | fi
|
---|
98 |
|
---|
99 |
|
---|
100 | as_lineno_1=$LINENO
|
---|
101 | as_lineno_2=$LINENO
|
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
105 | # Find who we are. Look in the path if we contain no path at all
|
---|
106 | # relative or not.
|
---|
107 | case $0 in
|
---|
108 | *[\\/]* ) as_myself=$0 ;;
|
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
110 | for as_dir in $PATH
|
---|
111 | do
|
---|
112 | IFS=$as_save_IFS
|
---|
113 | test -z "$as_dir" && as_dir=.
|
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
115 | done
|
---|
116 |
|
---|
117 | ;;
|
---|
118 | esac
|
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
120 | # in which case we are not to be found in the path.
|
---|
121 | if test "x$as_myself" = x; then
|
---|
122 | as_myself=$0
|
---|
123 | fi
|
---|
124 | if test ! -f "$as_myself"; then
|
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
126 | { (exit 1); exit 1; }; }
|
---|
127 | fi
|
---|
128 | case $CONFIG_SHELL in
|
---|
129 | '')
|
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
132 | do
|
---|
133 | IFS=$as_save_IFS
|
---|
134 | test -z "$as_dir" && as_dir=.
|
---|
135 | for as_base in sh bash ksh sh5; do
|
---|
136 | case $as_dir in
|
---|
137 | /*)
|
---|
138 | if ("$as_dir/$as_base" -c '
|
---|
139 | as_lineno_1=$LINENO
|
---|
140 | as_lineno_2=$LINENO
|
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
147 | export CONFIG_SHELL
|
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
149 | fi;;
|
---|
150 | esac
|
---|
151 | done
|
---|
152 | done
|
---|
153 | ;;
|
---|
154 | esac
|
---|
155 |
|
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
158 | # line-number line before each line; the second 'sed' does the real
|
---|
159 | # work. The second script uses 'N' to pair each line-number line
|
---|
160 | # with the numbered line, and appends trailing '-' during
|
---|
161 | # substitution so that $LINENO is not a special case at line end.
|
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
164 | sed '=' <$as_myself |
|
---|
165 | sed '
|
---|
166 | N
|
---|
167 | s,$,-,
|
---|
168 | : loop
|
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
170 | t loop
|
---|
171 | s,-$,,
|
---|
172 | s,^['$as_cr_digits']*\n,,
|
---|
173 | ' >$as_me.lineno &&
|
---|
174 | chmod +x $as_me.lineno ||
|
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
176 | { (exit 1); exit 1; }; }
|
---|
177 |
|
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
179 | # (the dirname of $[0] is not the place where we might find the
|
---|
180 | # original and so on. Autoconf is especially sensible to this).
|
---|
181 | . ./$as_me.lineno
|
---|
182 | # Exit status is that of the last command.
|
---|
183 | exit
|
---|
184 | }
|
---|
185 |
|
---|
186 |
|
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
189 | ' ECHO_T=' ' ;;
|
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
192 | esac
|
---|
193 |
|
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
195 | as_expr=expr
|
---|
196 | else
|
---|
197 | as_expr=false
|
---|
198 | fi
|
---|
199 |
|
---|
200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
201 | echo >conf$$.file
|
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
205 | if test -f conf$$.exe; then
|
---|
206 | # Don't use ln at all; we don't have any links
|
---|
207 | as_ln_s='cp -p'
|
---|
208 | else
|
---|
209 | as_ln_s='ln -s'
|
---|
210 | fi
|
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
212 | as_ln_s=ln
|
---|
213 | else
|
---|
214 | as_ln_s='cp -p'
|
---|
215 | fi
|
---|
216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
217 |
|
---|
218 | if mkdir -p . 2>/dev/null; then
|
---|
219 | as_mkdir_p=:
|
---|
220 | else
|
---|
221 | test -d ./-p && rmdir ./-p
|
---|
222 | as_mkdir_p=false
|
---|
223 | fi
|
---|
224 |
|
---|
225 | as_executable_p="test -f"
|
---|
226 |
|
---|
227 | # Sed expression to map a string onto a valid CPP name.
|
---|
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
229 |
|
---|
230 | # Sed expression to map a string onto a valid variable name.
|
---|
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
232 |
|
---|
233 |
|
---|
234 | # IFS
|
---|
235 | # We need space, tab and new line, in precisely that order.
|
---|
236 | as_nl='
|
---|
237 | '
|
---|
238 | IFS=" $as_nl"
|
---|
239 |
|
---|
240 | # CDPATH.
|
---|
241 | $as_unset CDPATH
|
---|
242 |
|
---|
243 |
|
---|
244 | # Name of the host.
|
---|
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
246 | # so uname gets run too.
|
---|
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
248 |
|
---|
249 | exec 6>&1
|
---|
250 |
|
---|
251 | #
|
---|
252 | # Initializations.
|
---|
253 | #
|
---|
254 | ac_default_prefix=/usr/local
|
---|
255 | ac_config_libobj_dir=.
|
---|
256 | cross_compiling=no
|
---|
257 | subdirs=
|
---|
258 | MFLAGS=
|
---|
259 | MAKEFLAGS=
|
---|
260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
261 |
|
---|
262 | # Maximum number of lines to put in a shell here document.
|
---|
263 | # This variable seems obsolete. It should probably be removed, and
|
---|
264 | # only ac_max_sed_lines should be used.
|
---|
265 | : ${ac_max_here_lines=38}
|
---|
266 |
|
---|
267 | # Identity of this package.
|
---|
268 | PACKAGE_NAME=
|
---|
269 | PACKAGE_TARNAME=
|
---|
270 | PACKAGE_VERSION=
|
---|
271 | PACKAGE_STRING=
|
---|
272 | PACKAGE_BUGREPORT=
|
---|
273 |
|
---|
274 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
|
---|
275 | ac_subst_files=''
|
---|
276 |
|
---|
277 | # Initialize some variables set by options.
|
---|
278 | ac_init_help=
|
---|
279 | ac_init_version=false
|
---|
280 | # The variables have the same names as the options, with
|
---|
281 | # dashes changed to underlines.
|
---|
282 | cache_file=/dev/null
|
---|
283 | exec_prefix=NONE
|
---|
284 | no_create=
|
---|
285 | no_recursion=
|
---|
286 | prefix=NONE
|
---|
287 | program_prefix=NONE
|
---|
288 | program_suffix=NONE
|
---|
289 | program_transform_name=s,x,x,
|
---|
290 | silent=
|
---|
291 | site=
|
---|
292 | srcdir=
|
---|
293 | verbose=
|
---|
294 | x_includes=NONE
|
---|
295 | x_libraries=NONE
|
---|
296 |
|
---|
297 | # Installation directory options.
|
---|
298 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
299 | # and all the variables that are supposed to be based on exec_prefix
|
---|
300 | # by default will actually change.
|
---|
301 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
302 | bindir='${exec_prefix}/bin'
|
---|
303 | sbindir='${exec_prefix}/sbin'
|
---|
304 | libexecdir='${exec_prefix}/libexec'
|
---|
305 | datadir='${prefix}/share'
|
---|
306 | sysconfdir='${prefix}/etc'
|
---|
307 | sharedstatedir='${prefix}/com'
|
---|
308 | localstatedir='${prefix}/var'
|
---|
309 | libdir='${exec_prefix}/lib'
|
---|
310 | includedir='${prefix}/include'
|
---|
311 | oldincludedir='/usr/include'
|
---|
312 | infodir='${prefix}/info'
|
---|
313 | mandir='${prefix}/man'
|
---|
314 |
|
---|
315 | ac_prev=
|
---|
316 | for ac_option
|
---|
317 | do
|
---|
318 | # If the previous option needs an argument, assign it.
|
---|
319 | if test -n "$ac_prev"; then
|
---|
320 | eval "$ac_prev=\$ac_option"
|
---|
321 | ac_prev=
|
---|
322 | continue
|
---|
323 | fi
|
---|
324 |
|
---|
325 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
326 |
|
---|
327 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
328 |
|
---|
329 | case $ac_option in
|
---|
330 |
|
---|
331 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
332 | ac_prev=bindir ;;
|
---|
333 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
334 | bindir=$ac_optarg ;;
|
---|
335 |
|
---|
336 | -build | --build | --buil | --bui | --bu)
|
---|
337 | ac_prev=build_alias ;;
|
---|
338 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
339 | build_alias=$ac_optarg ;;
|
---|
340 |
|
---|
341 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
342 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
343 | ac_prev=cache_file ;;
|
---|
344 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
345 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
346 | cache_file=$ac_optarg ;;
|
---|
347 |
|
---|
348 | --config-cache | -C)
|
---|
349 | cache_file=config.cache ;;
|
---|
350 |
|
---|
351 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
352 | ac_prev=datadir ;;
|
---|
353 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
354 | | --da=*)
|
---|
355 | datadir=$ac_optarg ;;
|
---|
356 |
|
---|
357 | -disable-* | --disable-*)
|
---|
358 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
359 | # Reject names that are not valid shell variable names.
|
---|
360 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
361 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
362 | { (exit 1); exit 1; }; }
|
---|
363 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
364 | eval "enable_$ac_feature=no" ;;
|
---|
365 |
|
---|
366 | -enable-* | --enable-*)
|
---|
367 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
368 | # Reject names that are not valid shell variable names.
|
---|
369 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
370 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
371 | { (exit 1); exit 1; }; }
|
---|
372 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
373 | case $ac_option in
|
---|
374 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
375 | *) ac_optarg=yes ;;
|
---|
376 | esac
|
---|
377 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
378 |
|
---|
379 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
380 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
381 | | --exec | --exe | --ex)
|
---|
382 | ac_prev=exec_prefix ;;
|
---|
383 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
384 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
385 | | --exec=* | --exe=* | --ex=*)
|
---|
386 | exec_prefix=$ac_optarg ;;
|
---|
387 |
|
---|
388 | -gas | --gas | --ga | --g)
|
---|
389 | # Obsolete; use --with-gas.
|
---|
390 | with_gas=yes ;;
|
---|
391 |
|
---|
392 | -help | --help | --hel | --he | -h)
|
---|
393 | ac_init_help=long ;;
|
---|
394 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
395 | ac_init_help=recursive ;;
|
---|
396 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
397 | ac_init_help=short ;;
|
---|
398 |
|
---|
399 | -host | --host | --hos | --ho)
|
---|
400 | ac_prev=host_alias ;;
|
---|
401 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
402 | host_alias=$ac_optarg ;;
|
---|
403 |
|
---|
404 | -includedir | --includedir | --includedi | --included | --include \
|
---|
405 | | --includ | --inclu | --incl | --inc)
|
---|
406 | ac_prev=includedir ;;
|
---|
407 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
408 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
409 | includedir=$ac_optarg ;;
|
---|
410 |
|
---|
411 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
412 | ac_prev=infodir ;;
|
---|
413 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
414 | infodir=$ac_optarg ;;
|
---|
415 |
|
---|
416 | -libdir | --libdir | --libdi | --libd)
|
---|
417 | ac_prev=libdir ;;
|
---|
418 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
419 | libdir=$ac_optarg ;;
|
---|
420 |
|
---|
421 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
422 | | --libexe | --libex | --libe)
|
---|
423 | ac_prev=libexecdir ;;
|
---|
424 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
425 | | --libexe=* | --libex=* | --libe=*)
|
---|
426 | libexecdir=$ac_optarg ;;
|
---|
427 |
|
---|
428 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
429 | | --localstate | --localstat | --localsta | --localst \
|
---|
430 | | --locals | --local | --loca | --loc | --lo)
|
---|
431 | ac_prev=localstatedir ;;
|
---|
432 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
433 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
434 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
435 | localstatedir=$ac_optarg ;;
|
---|
436 |
|
---|
437 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
438 | ac_prev=mandir ;;
|
---|
439 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
440 | mandir=$ac_optarg ;;
|
---|
441 |
|
---|
442 | -nfp | --nfp | --nf)
|
---|
443 | # Obsolete; use --without-fp.
|
---|
444 | with_fp=no ;;
|
---|
445 |
|
---|
446 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
447 | | --no-cr | --no-c | -n)
|
---|
448 | no_create=yes ;;
|
---|
449 |
|
---|
450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
452 | no_recursion=yes ;;
|
---|
453 |
|
---|
454 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
455 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
456 | | --oldin | --oldi | --old | --ol | --o)
|
---|
457 | ac_prev=oldincludedir ;;
|
---|
458 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
459 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
460 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
461 | oldincludedir=$ac_optarg ;;
|
---|
462 |
|
---|
463 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
464 | ac_prev=prefix ;;
|
---|
465 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
466 | prefix=$ac_optarg ;;
|
---|
467 |
|
---|
468 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
469 | | --program-pre | --program-pr | --program-p)
|
---|
470 | ac_prev=program_prefix ;;
|
---|
471 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
472 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
473 | program_prefix=$ac_optarg ;;
|
---|
474 |
|
---|
475 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
476 | | --program-suf | --program-su | --program-s)
|
---|
477 | ac_prev=program_suffix ;;
|
---|
478 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
479 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
480 | program_suffix=$ac_optarg ;;
|
---|
481 |
|
---|
482 | -program-transform-name | --program-transform-name \
|
---|
483 | | --program-transform-nam | --program-transform-na \
|
---|
484 | | --program-transform-n | --program-transform- \
|
---|
485 | | --program-transform | --program-transfor \
|
---|
486 | | --program-transfo | --program-transf \
|
---|
487 | | --program-trans | --program-tran \
|
---|
488 | | --progr-tra | --program-tr | --program-t)
|
---|
489 | ac_prev=program_transform_name ;;
|
---|
490 | -program-transform-name=* | --program-transform-name=* \
|
---|
491 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
492 | | --program-transform-n=* | --program-transform-=* \
|
---|
493 | | --program-transform=* | --program-transfor=* \
|
---|
494 | | --program-transfo=* | --program-transf=* \
|
---|
495 | | --program-trans=* | --program-tran=* \
|
---|
496 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
497 | program_transform_name=$ac_optarg ;;
|
---|
498 |
|
---|
499 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
500 | | -silent | --silent | --silen | --sile | --sil)
|
---|
501 | silent=yes ;;
|
---|
502 |
|
---|
503 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
504 | ac_prev=sbindir ;;
|
---|
505 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
506 | | --sbi=* | --sb=*)
|
---|
507 | sbindir=$ac_optarg ;;
|
---|
508 |
|
---|
509 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
510 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
511 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
512 | | --sha | --sh)
|
---|
513 | ac_prev=sharedstatedir ;;
|
---|
514 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
515 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
516 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
517 | | --sha=* | --sh=*)
|
---|
518 | sharedstatedir=$ac_optarg ;;
|
---|
519 |
|
---|
520 | -site | --site | --sit)
|
---|
521 | ac_prev=site ;;
|
---|
522 | -site=* | --site=* | --sit=*)
|
---|
523 | site=$ac_optarg ;;
|
---|
524 |
|
---|
525 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
526 | ac_prev=srcdir ;;
|
---|
527 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
528 | srcdir=$ac_optarg ;;
|
---|
529 |
|
---|
530 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
531 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
532 | ac_prev=sysconfdir ;;
|
---|
533 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
534 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
535 | sysconfdir=$ac_optarg ;;
|
---|
536 |
|
---|
537 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
538 | ac_prev=target_alias ;;
|
---|
539 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
540 | target_alias=$ac_optarg ;;
|
---|
541 |
|
---|
542 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
543 | verbose=yes ;;
|
---|
544 |
|
---|
545 | -version | --version | --versio | --versi | --vers | -V)
|
---|
546 | ac_init_version=: ;;
|
---|
547 |
|
---|
548 | -with-* | --with-*)
|
---|
549 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
550 | # Reject names that are not valid shell variable names.
|
---|
551 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
552 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
553 | { (exit 1); exit 1; }; }
|
---|
554 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
555 | case $ac_option in
|
---|
556 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
557 | *) ac_optarg=yes ;;
|
---|
558 | esac
|
---|
559 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
560 |
|
---|
561 | -without-* | --without-*)
|
---|
562 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
563 | # Reject names that are not valid shell variable names.
|
---|
564 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
565 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
566 | { (exit 1); exit 1; }; }
|
---|
567 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
568 | eval "with_$ac_package=no" ;;
|
---|
569 |
|
---|
570 | --x)
|
---|
571 | # Obsolete; use --with-x.
|
---|
572 | with_x=yes ;;
|
---|
573 |
|
---|
574 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
575 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
576 | ac_prev=x_includes ;;
|
---|
577 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
578 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
579 | x_includes=$ac_optarg ;;
|
---|
580 |
|
---|
581 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
582 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
583 | ac_prev=x_libraries ;;
|
---|
584 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
585 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
586 | x_libraries=$ac_optarg ;;
|
---|
587 |
|
---|
588 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
589 | Try \`$0 --help' for more information." >&2
|
---|
590 | { (exit 1); exit 1; }; }
|
---|
591 | ;;
|
---|
592 |
|
---|
593 | *=*)
|
---|
594 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
595 | # Reject names that are not valid shell variable names.
|
---|
596 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
597 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
598 | { (exit 1); exit 1; }; }
|
---|
599 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
600 | eval "$ac_envvar='$ac_optarg'"
|
---|
601 | export $ac_envvar ;;
|
---|
602 |
|
---|
603 | *)
|
---|
604 | # FIXME: should be removed in autoconf 3.0.
|
---|
605 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
606 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
607 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
608 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
609 | ;;
|
---|
610 |
|
---|
611 | esac
|
---|
612 | done
|
---|
613 |
|
---|
614 | if test -n "$ac_prev"; then
|
---|
615 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
616 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
617 | { (exit 1); exit 1; }; }
|
---|
618 | fi
|
---|
619 |
|
---|
620 | # Be sure to have absolute paths.
|
---|
621 | for ac_var in exec_prefix prefix
|
---|
622 | do
|
---|
623 | eval ac_val=$`echo $ac_var`
|
---|
624 | case $ac_val in
|
---|
625 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
626 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
627 | { (exit 1); exit 1; }; };;
|
---|
628 | esac
|
---|
629 | done
|
---|
630 |
|
---|
631 | # Be sure to have absolute paths.
|
---|
632 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
633 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
634 | do
|
---|
635 | eval ac_val=$`echo $ac_var`
|
---|
636 | case $ac_val in
|
---|
637 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
638 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
639 | { (exit 1); exit 1; }; };;
|
---|
640 | esac
|
---|
641 | done
|
---|
642 |
|
---|
643 | # There might be people who depend on the old broken behavior: `$host'
|
---|
644 | # used to hold the argument of --host etc.
|
---|
645 | # FIXME: To remove some day.
|
---|
646 | build=$build_alias
|
---|
647 | host=$host_alias
|
---|
648 | target=$target_alias
|
---|
649 |
|
---|
650 | # FIXME: To remove some day.
|
---|
651 | if test "x$host_alias" != x; then
|
---|
652 | if test "x$build_alias" = x; then
|
---|
653 | cross_compiling=maybe
|
---|
654 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
655 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
656 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
657 | cross_compiling=yes
|
---|
658 | fi
|
---|
659 | fi
|
---|
660 |
|
---|
661 | ac_tool_prefix=
|
---|
662 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
663 |
|
---|
664 | test "$silent" = yes && exec 6>/dev/null
|
---|
665 |
|
---|
666 |
|
---|
667 | # Find the source files, if location was not specified.
|
---|
668 | if test -z "$srcdir"; then
|
---|
669 | ac_srcdir_defaulted=yes
|
---|
670 | # Try the directory containing this script, then its parent.
|
---|
671 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
672 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
673 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
674 | X"$0" : 'X\(//\)$' \| \
|
---|
675 | X"$0" : 'X\(/\)' \| \
|
---|
676 | . : '\(.\)' 2>/dev/null ||
|
---|
677 | echo X"$0" |
|
---|
678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
679 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
680 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
681 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
682 | s/.*/./; q'`
|
---|
683 | srcdir=$ac_confdir
|
---|
684 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
685 | srcdir=..
|
---|
686 | fi
|
---|
687 | else
|
---|
688 | ac_srcdir_defaulted=no
|
---|
689 | fi
|
---|
690 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
691 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
692 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
693 | { (exit 1); exit 1; }; }
|
---|
694 | else
|
---|
695 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
696 | { (exit 1); exit 1; }; }
|
---|
697 | fi
|
---|
698 | fi
|
---|
699 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
700 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
701 | { (exit 1); exit 1; }; }
|
---|
702 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
703 | ac_env_build_alias_set=${build_alias+set}
|
---|
704 | ac_env_build_alias_value=$build_alias
|
---|
705 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
706 | ac_cv_env_build_alias_value=$build_alias
|
---|
707 | ac_env_host_alias_set=${host_alias+set}
|
---|
708 | ac_env_host_alias_value=$host_alias
|
---|
709 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
710 | ac_cv_env_host_alias_value=$host_alias
|
---|
711 | ac_env_target_alias_set=${target_alias+set}
|
---|
712 | ac_env_target_alias_value=$target_alias
|
---|
713 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
714 | ac_cv_env_target_alias_value=$target_alias
|
---|
715 | ac_env_CC_set=${CC+set}
|
---|
716 | ac_env_CC_value=$CC
|
---|
717 | ac_cv_env_CC_set=${CC+set}
|
---|
718 | ac_cv_env_CC_value=$CC
|
---|
719 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
720 | ac_env_CFLAGS_value=$CFLAGS
|
---|
721 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
722 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
723 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
724 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
725 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
726 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
727 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
728 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
729 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
730 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
731 | ac_env_CXX_set=${CXX+set}
|
---|
732 | ac_env_CXX_value=$CXX
|
---|
733 | ac_cv_env_CXX_set=${CXX+set}
|
---|
734 | ac_cv_env_CXX_value=$CXX
|
---|
735 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
736 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
737 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
738 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
739 |
|
---|
740 | #
|
---|
741 | # Report the --help message.
|
---|
742 | #
|
---|
743 | if test "$ac_init_help" = "long"; then
|
---|
744 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
745 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
746 | cat <<_ACEOF
|
---|
747 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
748 |
|
---|
749 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
750 |
|
---|
751 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
752 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
753 |
|
---|
754 | Defaults for the options are specified in brackets.
|
---|
755 |
|
---|
756 | Configuration:
|
---|
757 | -h, --help display this help and exit
|
---|
758 | --help=short display options specific to this package
|
---|
759 | --help=recursive display the short help of all the included packages
|
---|
760 | -V, --version display version information and exit
|
---|
761 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
762 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
763 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
764 | -n, --no-create do not create output files
|
---|
765 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
766 |
|
---|
767 | _ACEOF
|
---|
768 |
|
---|
769 | cat <<_ACEOF
|
---|
770 | Installation directories:
|
---|
771 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
772 | [$ac_default_prefix]
|
---|
773 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
774 | [PREFIX]
|
---|
775 |
|
---|
776 | By default, \`make install' will install all the files in
|
---|
777 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
778 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
779 | for instance \`--prefix=\$HOME'.
|
---|
780 |
|
---|
781 | For better control, use the options below.
|
---|
782 |
|
---|
783 | Fine tuning of the installation directories:
|
---|
784 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
785 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
786 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
787 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
788 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
789 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
790 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
791 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
792 | --includedir=DIR C header files [PREFIX/include]
|
---|
793 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
794 | --infodir=DIR info documentation [PREFIX/info]
|
---|
795 | --mandir=DIR man documentation [PREFIX/man]
|
---|
796 | _ACEOF
|
---|
797 |
|
---|
798 | cat <<\_ACEOF
|
---|
799 | _ACEOF
|
---|
800 | fi
|
---|
801 |
|
---|
802 | if test -n "$ac_init_help"; then
|
---|
803 |
|
---|
804 | cat <<\_ACEOF
|
---|
805 |
|
---|
806 | Some influential environment variables:
|
---|
807 | CC C compiler command
|
---|
808 | CFLAGS C compiler flags
|
---|
809 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
810 | nonstandard directory <lib dir>
|
---|
811 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
812 | headers in a nonstandard directory <include dir>
|
---|
813 | CXX C++ compiler command
|
---|
814 | CXXFLAGS C++ compiler flags
|
---|
815 |
|
---|
816 | Use these variables to override the choices made by `configure' or to help
|
---|
817 | it to find libraries and programs with nonstandard names/locations.
|
---|
818 |
|
---|
819 | _ACEOF
|
---|
820 | fi
|
---|
821 |
|
---|
822 | if test "$ac_init_help" = "recursive"; then
|
---|
823 | # If there are subdirs, report their specific --help.
|
---|
824 | ac_popdir=`pwd`
|
---|
825 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
826 | test -d $ac_dir || continue
|
---|
827 | ac_builddir=.
|
---|
828 |
|
---|
829 | if test "$ac_dir" != .; then
|
---|
830 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
831 | # A "../" for each directory in $ac_dir_suffix.
|
---|
832 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
833 | else
|
---|
834 | ac_dir_suffix= ac_top_builddir=
|
---|
835 | fi
|
---|
836 |
|
---|
837 | case $srcdir in
|
---|
838 | .) # No --srcdir option. We are building in place.
|
---|
839 | ac_srcdir=.
|
---|
840 | if test -z "$ac_top_builddir"; then
|
---|
841 | ac_top_srcdir=.
|
---|
842 | else
|
---|
843 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
844 | fi ;;
|
---|
845 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
846 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
847 | ac_top_srcdir=$srcdir ;;
|
---|
848 | *) # Relative path.
|
---|
849 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
850 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
851 | esac
|
---|
852 |
|
---|
853 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
854 | # the directories may not exist.
|
---|
855 | case `pwd` in
|
---|
856 | .) ac_abs_builddir="$ac_dir";;
|
---|
857 | *)
|
---|
858 | case "$ac_dir" in
|
---|
859 | .) ac_abs_builddir=`pwd`;;
|
---|
860 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
861 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
862 | esac;;
|
---|
863 | esac
|
---|
864 | case $ac_abs_builddir in
|
---|
865 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
866 | *)
|
---|
867 | case ${ac_top_builddir}. in
|
---|
868 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
869 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
870 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
871 | esac;;
|
---|
872 | esac
|
---|
873 | case $ac_abs_builddir in
|
---|
874 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
875 | *)
|
---|
876 | case $ac_srcdir in
|
---|
877 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
878 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
879 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
880 | esac;;
|
---|
881 | esac
|
---|
882 | case $ac_abs_builddir in
|
---|
883 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
884 | *)
|
---|
885 | case $ac_top_srcdir in
|
---|
886 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
887 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
888 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
889 | esac;;
|
---|
890 | esac
|
---|
891 |
|
---|
892 | cd $ac_dir
|
---|
893 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
894 | if test -f $ac_srcdir/configure.gnu; then
|
---|
895 | echo
|
---|
896 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
897 | elif test -f $ac_srcdir/configure; then
|
---|
898 | echo
|
---|
899 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
900 | elif test -f $ac_srcdir/configure.ac ||
|
---|
901 | test -f $ac_srcdir/configure.in; then
|
---|
902 | echo
|
---|
903 | $ac_configure --help
|
---|
904 | else
|
---|
905 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
906 | fi
|
---|
907 | cd $ac_popdir
|
---|
908 | done
|
---|
909 | fi
|
---|
910 |
|
---|
911 | test -n "$ac_init_help" && exit 0
|
---|
912 | if $ac_init_version; then
|
---|
913 | cat <<\_ACEOF
|
---|
914 |
|
---|
915 | Copyright (C) 2003 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.59. 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 | # Strip out --silent because we don't want to record it for future runs.
|
---|
980 | # Also quote any args containing shell meta-characters.
|
---|
981 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
982 | ac_configure_args=
|
---|
983 | ac_configure_args0=
|
---|
984 | ac_configure_args1=
|
---|
985 | ac_sep=
|
---|
986 | ac_must_keep_next=false
|
---|
987 | for ac_pass in 1 2
|
---|
988 | do
|
---|
989 | for ac_arg
|
---|
990 | do
|
---|
991 | case $ac_arg in
|
---|
992 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
994 | | -silent | --silent | --silen | --sile | --sil)
|
---|
995 | continue ;;
|
---|
996 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
997 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
998 | esac
|
---|
999 | case $ac_pass in
|
---|
1000 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1001 | 2)
|
---|
1002 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1003 | if test $ac_must_keep_next = true; then
|
---|
1004 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1005 | else
|
---|
1006 | case $ac_arg in
|
---|
1007 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1008 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1009 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1010 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1011 | case "$ac_configure_args0 " in
|
---|
1012 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1013 | esac
|
---|
1014 | ;;
|
---|
1015 | -* ) ac_must_keep_next=true ;;
|
---|
1016 | esac
|
---|
1017 | fi
|
---|
1018 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1019 | # Get rid of the leading space.
|
---|
1020 | ac_sep=" "
|
---|
1021 | ;;
|
---|
1022 | esac
|
---|
1023 | done
|
---|
1024 | done
|
---|
1025 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1026 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1027 |
|
---|
1028 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1029 | # config.log. We remove comments because anyway the quotes in there
|
---|
1030 | # would cause problems or look ugly.
|
---|
1031 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1032 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1033 | trap 'exit_status=$?
|
---|
1034 | # Save into config.log some information that might help in debugging.
|
---|
1035 | {
|
---|
1036 | echo
|
---|
1037 |
|
---|
1038 | cat <<\_ASBOX
|
---|
1039 | ## ---------------- ##
|
---|
1040 | ## Cache variables. ##
|
---|
1041 | ## ---------------- ##
|
---|
1042 | _ASBOX
|
---|
1043 | echo
|
---|
1044 | # The following way of writing the cache mishandles newlines in values,
|
---|
1045 | {
|
---|
1046 | (set) 2>&1 |
|
---|
1047 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1048 | *ac_space=\ *)
|
---|
1049 | sed -n \
|
---|
1050 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1051 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1052 | ;;
|
---|
1053 | *)
|
---|
1054 | sed -n \
|
---|
1055 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1056 | ;;
|
---|
1057 | esac;
|
---|
1058 | }
|
---|
1059 | echo
|
---|
1060 |
|
---|
1061 | cat <<\_ASBOX
|
---|
1062 | ## ----------------- ##
|
---|
1063 | ## Output variables. ##
|
---|
1064 | ## ----------------- ##
|
---|
1065 | _ASBOX
|
---|
1066 | echo
|
---|
1067 | for ac_var in $ac_subst_vars
|
---|
1068 | do
|
---|
1069 | eval ac_val=$`echo $ac_var`
|
---|
1070 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1071 | done | sort
|
---|
1072 | echo
|
---|
1073 |
|
---|
1074 | if test -n "$ac_subst_files"; then
|
---|
1075 | cat <<\_ASBOX
|
---|
1076 | ## ------------- ##
|
---|
1077 | ## Output files. ##
|
---|
1078 | ## ------------- ##
|
---|
1079 | _ASBOX
|
---|
1080 | echo
|
---|
1081 | for ac_var in $ac_subst_files
|
---|
1082 | do
|
---|
1083 | eval ac_val=$`echo $ac_var`
|
---|
1084 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1085 | done | sort
|
---|
1086 | echo
|
---|
1087 | fi
|
---|
1088 |
|
---|
1089 | if test -s confdefs.h; then
|
---|
1090 | cat <<\_ASBOX
|
---|
1091 | ## ----------- ##
|
---|
1092 | ## confdefs.h. ##
|
---|
1093 | ## ----------- ##
|
---|
1094 | _ASBOX
|
---|
1095 | echo
|
---|
1096 | sed "/^$/d" confdefs.h | sort
|
---|
1097 | echo
|
---|
1098 | fi
|
---|
1099 | test "$ac_signal" != 0 &&
|
---|
1100 | echo "$as_me: caught signal $ac_signal"
|
---|
1101 | echo "$as_me: exit $exit_status"
|
---|
1102 | } >&5
|
---|
1103 | rm -f core *.core &&
|
---|
1104 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1105 | exit $exit_status
|
---|
1106 | ' 0
|
---|
1107 | for ac_signal in 1 2 13 15; do
|
---|
1108 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1109 | done
|
---|
1110 | ac_signal=0
|
---|
1111 |
|
---|
1112 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1113 | rm -rf conftest* confdefs.h
|
---|
1114 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1115 | echo >confdefs.h
|
---|
1116 |
|
---|
1117 | # Predefined preprocessor variables.
|
---|
1118 |
|
---|
1119 | cat >>confdefs.h <<_ACEOF
|
---|
1120 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1121 | _ACEOF
|
---|
1122 |
|
---|
1123 |
|
---|
1124 | cat >>confdefs.h <<_ACEOF
|
---|
1125 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1126 | _ACEOF
|
---|
1127 |
|
---|
1128 |
|
---|
1129 | cat >>confdefs.h <<_ACEOF
|
---|
1130 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1131 | _ACEOF
|
---|
1132 |
|
---|
1133 |
|
---|
1134 | cat >>confdefs.h <<_ACEOF
|
---|
1135 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1136 | _ACEOF
|
---|
1137 |
|
---|
1138 |
|
---|
1139 | cat >>confdefs.h <<_ACEOF
|
---|
1140 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1141 | _ACEOF
|
---|
1142 |
|
---|
1143 |
|
---|
1144 | # Let the site file select an alternate cache file if it wants to.
|
---|
1145 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1146 | if test -z "$CONFIG_SITE"; then
|
---|
1147 | if test "x$prefix" != xNONE; then
|
---|
1148 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1149 | else
|
---|
1150 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1151 | fi
|
---|
1152 | fi
|
---|
1153 | for ac_site_file in $CONFIG_SITE; do
|
---|
1154 | if test -r "$ac_site_file"; then
|
---|
1155 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1156 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1157 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1158 | . "$ac_site_file"
|
---|
1159 | fi
|
---|
1160 | done
|
---|
1161 |
|
---|
1162 | if test -r "$cache_file"; then
|
---|
1163 | # Some versions of bash will fail to source /dev/null (special
|
---|
1164 | # files actually), so we avoid doing that.
|
---|
1165 | if test -f "$cache_file"; then
|
---|
1166 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1167 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1168 | case $cache_file in
|
---|
1169 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1170 | *) . ./$cache_file;;
|
---|
1171 | esac
|
---|
1172 | fi
|
---|
1173 | else
|
---|
1174 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1175 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1176 | >$cache_file
|
---|
1177 | fi
|
---|
1178 |
|
---|
1179 | # Check that the precious variables saved in the cache have kept the same
|
---|
1180 | # value.
|
---|
1181 | ac_cache_corrupted=false
|
---|
1182 | for ac_var in `(set) 2>&1 |
|
---|
1183 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1184 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1185 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1186 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1187 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1188 | case $ac_old_set,$ac_new_set in
|
---|
1189 | set,)
|
---|
1190 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1191 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1192 | ac_cache_corrupted=: ;;
|
---|
1193 | ,set)
|
---|
1194 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1195 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1196 | ac_cache_corrupted=: ;;
|
---|
1197 | ,);;
|
---|
1198 | *)
|
---|
1199 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1200 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1201 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1202 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1203 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1204 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1205 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1206 | ac_cache_corrupted=:
|
---|
1207 | fi;;
|
---|
1208 | esac
|
---|
1209 | # Pass precious variables to config.status.
|
---|
1210 | if test "$ac_new_set" = set; then
|
---|
1211 | case $ac_new_val in
|
---|
1212 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1213 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1214 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1215 | esac
|
---|
1216 | case " $ac_configure_args " in
|
---|
1217 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1218 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1219 | esac
|
---|
1220 | fi
|
---|
1221 | done
|
---|
1222 | if $ac_cache_corrupted; then
|
---|
1223 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1224 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1225 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1226 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1227 | { (exit 1); exit 1; }; }
|
---|
1228 | fi
|
---|
1229 |
|
---|
1230 | ac_ext=c
|
---|
1231 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1235 |
|
---|
1236 |
|
---|
1237 |
|
---|
1238 |
|
---|
1239 |
|
---|
1240 |
|
---|
1241 |
|
---|
1242 |
|
---|
1243 |
|
---|
1244 |
|
---|
1245 |
|
---|
1246 |
|
---|
1247 |
|
---|
1248 |
|
---|
1249 |
|
---|
1250 |
|
---|
1251 |
|
---|
1252 |
|
---|
1253 |
|
---|
1254 | ac_config_headers="$ac_config_headers config.h"
|
---|
1255 |
|
---|
1256 |
|
---|
1257 | PACKAGE=audioDB
|
---|
1258 | VERSION=-svn
|
---|
1259 | cat >>confdefs.h <<_ACEOF
|
---|
1260 | #define PACKAGE "$PACKAGE"
|
---|
1261 | _ACEOF
|
---|
1262 |
|
---|
1263 | cat >>confdefs.h <<_ACEOF
|
---|
1264 | #define VERSION "$VERSION"
|
---|
1265 | _ACEOF
|
---|
1266 |
|
---|
1267 |
|
---|
1268 |
|
---|
1269 |
|
---|
1270 |
|
---|
1271 | LDFLAGS=$LDFLAGS
|
---|
1272 |
|
---|
1273 | if test -z "$CFLAGS"; then
|
---|
1274 | CFLAGS=-O2
|
---|
1275 | fi
|
---|
1276 |
|
---|
1277 |
|
---|
1278 | ac_ext=c
|
---|
1279 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1283 | if test -n "$ac_tool_prefix"; then
|
---|
1284 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1285 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1286 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1288 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1289 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1290 | else
|
---|
1291 | if test -n "$CC"; then
|
---|
1292 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1293 | else
|
---|
1294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1295 | for as_dir in $PATH
|
---|
1296 | do
|
---|
1297 | IFS=$as_save_IFS
|
---|
1298 | test -z "$as_dir" && as_dir=.
|
---|
1299 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1300 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1301 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1303 | break 2
|
---|
1304 | fi
|
---|
1305 | done
|
---|
1306 | done
|
---|
1307 |
|
---|
1308 | fi
|
---|
1309 | fi
|
---|
1310 | CC=$ac_cv_prog_CC
|
---|
1311 | if test -n "$CC"; then
|
---|
1312 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1313 | echo "${ECHO_T}$CC" >&6
|
---|
1314 | else
|
---|
1315 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1316 | echo "${ECHO_T}no" >&6
|
---|
1317 | fi
|
---|
1318 |
|
---|
1319 | fi
|
---|
1320 | if test -z "$ac_cv_prog_CC"; then
|
---|
1321 | ac_ct_CC=$CC
|
---|
1322 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1323 | set dummy gcc; ac_word=$2
|
---|
1324 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1326 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1327 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1328 | else
|
---|
1329 | if test -n "$ac_ct_CC"; then
|
---|
1330 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1331 | else
|
---|
1332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1333 | for as_dir in $PATH
|
---|
1334 | do
|
---|
1335 | IFS=$as_save_IFS
|
---|
1336 | test -z "$as_dir" && as_dir=.
|
---|
1337 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1339 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1341 | break 2
|
---|
1342 | fi
|
---|
1343 | done
|
---|
1344 | done
|
---|
1345 |
|
---|
1346 | fi
|
---|
1347 | fi
|
---|
1348 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1349 | if test -n "$ac_ct_CC"; then
|
---|
1350 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1351 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1352 | else
|
---|
1353 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1354 | echo "${ECHO_T}no" >&6
|
---|
1355 | fi
|
---|
1356 |
|
---|
1357 | CC=$ac_ct_CC
|
---|
1358 | else
|
---|
1359 | CC="$ac_cv_prog_CC"
|
---|
1360 | fi
|
---|
1361 |
|
---|
1362 | if test -z "$CC"; then
|
---|
1363 | if test -n "$ac_tool_prefix"; then
|
---|
1364 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1365 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1366 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1368 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1369 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1370 | else
|
---|
1371 | if test -n "$CC"; then
|
---|
1372 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1373 | else
|
---|
1374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1375 | for as_dir in $PATH
|
---|
1376 | do
|
---|
1377 | IFS=$as_save_IFS
|
---|
1378 | test -z "$as_dir" && as_dir=.
|
---|
1379 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1381 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1383 | break 2
|
---|
1384 | fi
|
---|
1385 | done
|
---|
1386 | done
|
---|
1387 |
|
---|
1388 | fi
|
---|
1389 | fi
|
---|
1390 | CC=$ac_cv_prog_CC
|
---|
1391 | if test -n "$CC"; then
|
---|
1392 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1393 | echo "${ECHO_T}$CC" >&6
|
---|
1394 | else
|
---|
1395 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1396 | echo "${ECHO_T}no" >&6
|
---|
1397 | fi
|
---|
1398 |
|
---|
1399 | fi
|
---|
1400 | if test -z "$ac_cv_prog_CC"; then
|
---|
1401 | ac_ct_CC=$CC
|
---|
1402 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1403 | set dummy cc; ac_word=$2
|
---|
1404 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1406 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1408 | else
|
---|
1409 | if test -n "$ac_ct_CC"; then
|
---|
1410 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1411 | else
|
---|
1412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1413 | for as_dir in $PATH
|
---|
1414 | do
|
---|
1415 | IFS=$as_save_IFS
|
---|
1416 | test -z "$as_dir" && as_dir=.
|
---|
1417 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1419 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1421 | break 2
|
---|
1422 | fi
|
---|
1423 | done
|
---|
1424 | done
|
---|
1425 |
|
---|
1426 | fi
|
---|
1427 | fi
|
---|
1428 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1429 | if test -n "$ac_ct_CC"; then
|
---|
1430 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1431 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1432 | else
|
---|
1433 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1434 | echo "${ECHO_T}no" >&6
|
---|
1435 | fi
|
---|
1436 |
|
---|
1437 | CC=$ac_ct_CC
|
---|
1438 | else
|
---|
1439 | CC="$ac_cv_prog_CC"
|
---|
1440 | fi
|
---|
1441 |
|
---|
1442 | fi
|
---|
1443 | if test -z "$CC"; then
|
---|
1444 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1445 | set dummy cc; ac_word=$2
|
---|
1446 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1448 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1449 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1450 | else
|
---|
1451 | if test -n "$CC"; then
|
---|
1452 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1453 | else
|
---|
1454 | ac_prog_rejected=no
|
---|
1455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1456 | for as_dir in $PATH
|
---|
1457 | do
|
---|
1458 | IFS=$as_save_IFS
|
---|
1459 | test -z "$as_dir" && as_dir=.
|
---|
1460 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1462 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1463 | ac_prog_rejected=yes
|
---|
1464 | continue
|
---|
1465 | fi
|
---|
1466 | ac_cv_prog_CC="cc"
|
---|
1467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1468 | break 2
|
---|
1469 | fi
|
---|
1470 | done
|
---|
1471 | done
|
---|
1472 |
|
---|
1473 | if test $ac_prog_rejected = yes; then
|
---|
1474 | # We found a bogon in the path, so make sure we never use it.
|
---|
1475 | set dummy $ac_cv_prog_CC
|
---|
1476 | shift
|
---|
1477 | if test $# != 0; then
|
---|
1478 | # We chose a different compiler from the bogus one.
|
---|
1479 | # However, it has the same basename, so the bogon will be chosen
|
---|
1480 | # first if we set CC to just the basename; use the full file name.
|
---|
1481 | shift
|
---|
1482 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1483 | fi
|
---|
1484 | fi
|
---|
1485 | fi
|
---|
1486 | fi
|
---|
1487 | CC=$ac_cv_prog_CC
|
---|
1488 | if test -n "$CC"; then
|
---|
1489 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1490 | echo "${ECHO_T}$CC" >&6
|
---|
1491 | else
|
---|
1492 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1493 | echo "${ECHO_T}no" >&6
|
---|
1494 | fi
|
---|
1495 |
|
---|
1496 | fi
|
---|
1497 | if test -z "$CC"; then
|
---|
1498 | if test -n "$ac_tool_prefix"; then
|
---|
1499 | for ac_prog in cl
|
---|
1500 | do
|
---|
1501 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1502 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1503 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1505 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1506 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1507 | else
|
---|
1508 | if test -n "$CC"; then
|
---|
1509 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1510 | else
|
---|
1511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1512 | for as_dir in $PATH
|
---|
1513 | do
|
---|
1514 | IFS=$as_save_IFS
|
---|
1515 | test -z "$as_dir" && as_dir=.
|
---|
1516 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1518 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1520 | break 2
|
---|
1521 | fi
|
---|
1522 | done
|
---|
1523 | done
|
---|
1524 |
|
---|
1525 | fi
|
---|
1526 | fi
|
---|
1527 | CC=$ac_cv_prog_CC
|
---|
1528 | if test -n "$CC"; then
|
---|
1529 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1530 | echo "${ECHO_T}$CC" >&6
|
---|
1531 | else
|
---|
1532 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1533 | echo "${ECHO_T}no" >&6
|
---|
1534 | fi
|
---|
1535 |
|
---|
1536 | test -n "$CC" && break
|
---|
1537 | done
|
---|
1538 | fi
|
---|
1539 | if test -z "$CC"; then
|
---|
1540 | ac_ct_CC=$CC
|
---|
1541 | for ac_prog in cl
|
---|
1542 | do
|
---|
1543 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1544 | set dummy $ac_prog; ac_word=$2
|
---|
1545 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1547 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1548 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1549 | else
|
---|
1550 | if test -n "$ac_ct_CC"; then
|
---|
1551 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1552 | else
|
---|
1553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1554 | for as_dir in $PATH
|
---|
1555 | do
|
---|
1556 | IFS=$as_save_IFS
|
---|
1557 | test -z "$as_dir" && as_dir=.
|
---|
1558 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1560 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1562 | break 2
|
---|
1563 | fi
|
---|
1564 | done
|
---|
1565 | done
|
---|
1566 |
|
---|
1567 | fi
|
---|
1568 | fi
|
---|
1569 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1570 | if test -n "$ac_ct_CC"; then
|
---|
1571 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1572 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1573 | else
|
---|
1574 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1575 | echo "${ECHO_T}no" >&6
|
---|
1576 | fi
|
---|
1577 |
|
---|
1578 | test -n "$ac_ct_CC" && break
|
---|
1579 | done
|
---|
1580 |
|
---|
1581 | CC=$ac_ct_CC
|
---|
1582 | fi
|
---|
1583 |
|
---|
1584 | fi
|
---|
1585 |
|
---|
1586 |
|
---|
1587 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1588 | See \`config.log' for more details." >&5
|
---|
1589 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1590 | See \`config.log' for more details." >&2;}
|
---|
1591 | { (exit 1); exit 1; }; }
|
---|
1592 |
|
---|
1593 | # Provide some information about the compiler.
|
---|
1594 | echo "$as_me:$LINENO:" \
|
---|
1595 | "checking for C compiler version" >&5
|
---|
1596 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1597 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1598 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1599 | ac_status=$?
|
---|
1600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1601 | (exit $ac_status); }
|
---|
1602 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1603 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1604 | ac_status=$?
|
---|
1605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1606 | (exit $ac_status); }
|
---|
1607 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1608 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1609 | ac_status=$?
|
---|
1610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1611 | (exit $ac_status); }
|
---|
1612 |
|
---|
1613 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1614 | /* confdefs.h. */
|
---|
1615 | _ACEOF
|
---|
1616 | cat confdefs.h >>conftest.$ac_ext
|
---|
1617 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1618 | /* end confdefs.h. */
|
---|
1619 |
|
---|
1620 | int
|
---|
1621 | main ()
|
---|
1622 | {
|
---|
1623 |
|
---|
1624 | ;
|
---|
1625 | return 0;
|
---|
1626 | }
|
---|
1627 | _ACEOF
|
---|
1628 | ac_clean_files_save=$ac_clean_files
|
---|
1629 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1630 | # Try to create an executable without -o first, disregard a.out.
|
---|
1631 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1632 | # of exeext.
|
---|
1633 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1634 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1635 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1636 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1637 | (eval $ac_link_default) 2>&5
|
---|
1638 | ac_status=$?
|
---|
1639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1640 | (exit $ac_status); }; then
|
---|
1641 | # Find the output, starting from the most likely. This scheme is
|
---|
1642 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1643 | # resort.
|
---|
1644 |
|
---|
1645 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1646 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1647 | ac_cv_exeext=
|
---|
1648 | # b.out is created by i960 compilers.
|
---|
1649 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1650 | do
|
---|
1651 | test -f "$ac_file" || continue
|
---|
1652 | case $ac_file in
|
---|
1653 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1654 | ;;
|
---|
1655 | conftest.$ac_ext )
|
---|
1656 | # This is the source file.
|
---|
1657 | ;;
|
---|
1658 | [ab].out )
|
---|
1659 | # We found the default executable, but exeext='' is most
|
---|
1660 | # certainly right.
|
---|
1661 | break;;
|
---|
1662 | *.* )
|
---|
1663 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1664 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1665 | # but it would be cool to find out if it's true. Does anybody
|
---|
1666 | # maintain Libtool? --akim.
|
---|
1667 | export ac_cv_exeext
|
---|
1668 | break;;
|
---|
1669 | * )
|
---|
1670 | break;;
|
---|
1671 | esac
|
---|
1672 | done
|
---|
1673 | else
|
---|
1674 | echo "$as_me: failed program was:" >&5
|
---|
1675 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1676 |
|
---|
1677 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1678 | See \`config.log' for more details." >&5
|
---|
1679 | echo "$as_me: error: C compiler cannot create executables
|
---|
1680 | See \`config.log' for more details." >&2;}
|
---|
1681 | { (exit 77); exit 77; }; }
|
---|
1682 | fi
|
---|
1683 |
|
---|
1684 | ac_exeext=$ac_cv_exeext
|
---|
1685 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1686 | echo "${ECHO_T}$ac_file" >&6
|
---|
1687 |
|
---|
1688 | # Check the compiler produces executables we can run. If not, either
|
---|
1689 | # the compiler is broken, or we cross compile.
|
---|
1690 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1691 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1692 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1693 | # If not cross compiling, check that we can run a simple program.
|
---|
1694 | if test "$cross_compiling" != yes; then
|
---|
1695 | if { ac_try='./$ac_file'
|
---|
1696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1697 | (eval $ac_try) 2>&5
|
---|
1698 | ac_status=$?
|
---|
1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1700 | (exit $ac_status); }; }; then
|
---|
1701 | cross_compiling=no
|
---|
1702 | else
|
---|
1703 | if test "$cross_compiling" = maybe; then
|
---|
1704 | cross_compiling=yes
|
---|
1705 | else
|
---|
1706 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1707 | If you meant to cross compile, use \`--host'.
|
---|
1708 | See \`config.log' for more details." >&5
|
---|
1709 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1710 | If you meant to cross compile, use \`--host'.
|
---|
1711 | See \`config.log' for more details." >&2;}
|
---|
1712 | { (exit 1); exit 1; }; }
|
---|
1713 | fi
|
---|
1714 | fi
|
---|
1715 | fi
|
---|
1716 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1717 | echo "${ECHO_T}yes" >&6
|
---|
1718 |
|
---|
1719 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1720 | ac_clean_files=$ac_clean_files_save
|
---|
1721 | # Check the compiler produces executables we can run. If not, either
|
---|
1722 | # the compiler is broken, or we cross compile.
|
---|
1723 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1724 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1725 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
1726 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1727 |
|
---|
1728 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
1729 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
1730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
1731 | (eval $ac_link) 2>&5
|
---|
1732 | ac_status=$?
|
---|
1733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1734 | (exit $ac_status); }; then
|
---|
1735 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1736 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1737 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1738 | # `rm'.
|
---|
1739 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
1740 | test -f "$ac_file" || continue
|
---|
1741 | case $ac_file in
|
---|
1742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
1743 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1744 | export ac_cv_exeext
|
---|
1745 | break;;
|
---|
1746 | * ) break;;
|
---|
1747 | esac
|
---|
1748 | done
|
---|
1749 | else
|
---|
1750 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
1751 | See \`config.log' for more details." >&5
|
---|
1752 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
1753 | See \`config.log' for more details." >&2;}
|
---|
1754 | { (exit 1); exit 1; }; }
|
---|
1755 | fi
|
---|
1756 |
|
---|
1757 | rm -f conftest$ac_cv_exeext
|
---|
1758 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
1759 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1760 |
|
---|
1761 | rm -f conftest.$ac_ext
|
---|
1762 | EXEEXT=$ac_cv_exeext
|
---|
1763 | ac_exeext=$EXEEXT
|
---|
1764 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
1765 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
1766 | if test "${ac_cv_objext+set}" = set; then
|
---|
1767 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1768 | else
|
---|
1769 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1770 | /* confdefs.h. */
|
---|
1771 | _ACEOF
|
---|
1772 | cat confdefs.h >>conftest.$ac_ext
|
---|
1773 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1774 | /* end confdefs.h. */
|
---|
1775 |
|
---|
1776 | int
|
---|
1777 | main ()
|
---|
1778 | {
|
---|
1779 |
|
---|
1780 | ;
|
---|
1781 | return 0;
|
---|
1782 | }
|
---|
1783 | _ACEOF
|
---|
1784 | rm -f conftest.o conftest.obj
|
---|
1785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1786 | (eval $ac_compile) 2>&5
|
---|
1787 | ac_status=$?
|
---|
1788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1789 | (exit $ac_status); }; then
|
---|
1790 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1791 | case $ac_file in
|
---|
1792 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
1793 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1794 | break;;
|
---|
1795 | esac
|
---|
1796 | done
|
---|
1797 | else
|
---|
1798 | echo "$as_me: failed program was:" >&5
|
---|
1799 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1800 |
|
---|
1801 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
1802 | See \`config.log' for more details." >&5
|
---|
1803 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
1804 | See \`config.log' for more details." >&2;}
|
---|
1805 | { (exit 1); exit 1; }; }
|
---|
1806 | fi
|
---|
1807 |
|
---|
1808 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1809 | fi
|
---|
1810 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
1811 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1812 | OBJEXT=$ac_cv_objext
|
---|
1813 | ac_objext=$OBJEXT
|
---|
1814 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
1815 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
1816 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
1817 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1818 | else
|
---|
1819 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1820 | /* confdefs.h. */
|
---|
1821 | _ACEOF
|
---|
1822 | cat confdefs.h >>conftest.$ac_ext
|
---|
1823 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1824 | /* end confdefs.h. */
|
---|
1825 |
|
---|
1826 | int
|
---|
1827 | main ()
|
---|
1828 | {
|
---|
1829 | #ifndef __GNUC__
|
---|
1830 | choke me
|
---|
1831 | #endif
|
---|
1832 |
|
---|
1833 | ;
|
---|
1834 | return 0;
|
---|
1835 | }
|
---|
1836 | _ACEOF
|
---|
1837 | rm -f conftest.$ac_objext
|
---|
1838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1839 | (eval $ac_compile) 2>conftest.er1
|
---|
1840 | ac_status=$?
|
---|
1841 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1842 | rm -f conftest.er1
|
---|
1843 | cat conftest.err >&5
|
---|
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1845 | (exit $ac_status); } &&
|
---|
1846 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
1847 | || test ! -s conftest.err'
|
---|
1848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1849 | (eval $ac_try) 2>&5
|
---|
1850 | ac_status=$?
|
---|
1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1852 | (exit $ac_status); }; } &&
|
---|
1853 | { ac_try='test -s conftest.$ac_objext'
|
---|
1854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1855 | (eval $ac_try) 2>&5
|
---|
1856 | ac_status=$?
|
---|
1857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1858 | (exit $ac_status); }; }; then
|
---|
1859 | ac_compiler_gnu=yes
|
---|
1860 | else
|
---|
1861 | echo "$as_me: failed program was:" >&5
|
---|
1862 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1863 |
|
---|
1864 | ac_compiler_gnu=no
|
---|
1865 | fi
|
---|
1866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1867 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
1868 |
|
---|
1869 | fi
|
---|
1870 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
1871 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
1872 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
1873 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
1874 | ac_save_CFLAGS=$CFLAGS
|
---|
1875 | CFLAGS="-g"
|
---|
1876 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
1877 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
1878 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
1879 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1880 | else
|
---|
1881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1882 | /* confdefs.h. */
|
---|
1883 | _ACEOF
|
---|
1884 | cat confdefs.h >>conftest.$ac_ext
|
---|
1885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1886 | /* end confdefs.h. */
|
---|
1887 |
|
---|
1888 | int
|
---|
1889 | main ()
|
---|
1890 | {
|
---|
1891 |
|
---|
1892 | ;
|
---|
1893 | return 0;
|
---|
1894 | }
|
---|
1895 | _ACEOF
|
---|
1896 | rm -f conftest.$ac_objext
|
---|
1897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1898 | (eval $ac_compile) 2>conftest.er1
|
---|
1899 | ac_status=$?
|
---|
1900 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1901 | rm -f conftest.er1
|
---|
1902 | cat conftest.err >&5
|
---|
1903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1904 | (exit $ac_status); } &&
|
---|
1905 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
1906 | || test ! -s conftest.err'
|
---|
1907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1908 | (eval $ac_try) 2>&5
|
---|
1909 | ac_status=$?
|
---|
1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1911 | (exit $ac_status); }; } &&
|
---|
1912 | { ac_try='test -s conftest.$ac_objext'
|
---|
1913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1914 | (eval $ac_try) 2>&5
|
---|
1915 | ac_status=$?
|
---|
1916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1917 | (exit $ac_status); }; }; then
|
---|
1918 | ac_cv_prog_cc_g=yes
|
---|
1919 | else
|
---|
1920 | echo "$as_me: failed program was:" >&5
|
---|
1921 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1922 |
|
---|
1923 | ac_cv_prog_cc_g=no
|
---|
1924 | fi
|
---|
1925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1926 | fi
|
---|
1927 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
1928 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
1929 | if test "$ac_test_CFLAGS" = set; then
|
---|
1930 | CFLAGS=$ac_save_CFLAGS
|
---|
1931 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1932 | if test "$GCC" = yes; then
|
---|
1933 | CFLAGS="-g -O2"
|
---|
1934 | else
|
---|
1935 | CFLAGS="-g"
|
---|
1936 | fi
|
---|
1937 | else
|
---|
1938 | if test "$GCC" = yes; then
|
---|
1939 | CFLAGS="-O2"
|
---|
1940 | else
|
---|
1941 | CFLAGS=
|
---|
1942 | fi
|
---|
1943 | fi
|
---|
1944 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
1945 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
1946 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
1947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1948 | else
|
---|
1949 | ac_cv_prog_cc_stdc=no
|
---|
1950 | ac_save_CC=$CC
|
---|
1951 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1952 | /* confdefs.h. */
|
---|
1953 | _ACEOF
|
---|
1954 | cat confdefs.h >>conftest.$ac_ext
|
---|
1955 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1956 | /* end confdefs.h. */
|
---|
1957 | #include <stdarg.h>
|
---|
1958 | #include <stdio.h>
|
---|
1959 | #include <sys/types.h>
|
---|
1960 | #include <sys/stat.h>
|
---|
1961 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
1962 | struct buf { int x; };
|
---|
1963 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
1964 | static char *e (p, i)
|
---|
1965 | char **p;
|
---|
1966 | int i;
|
---|
1967 | {
|
---|
1968 | return p[i];
|
---|
1969 | }
|
---|
1970 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
1971 | {
|
---|
1972 | char *s;
|
---|
1973 | va_list v;
|
---|
1974 | va_start (v,p);
|
---|
1975 | s = g (p, va_arg (v,int));
|
---|
1976 | va_end (v);
|
---|
1977 | return s;
|
---|
1978 | }
|
---|
1979 |
|
---|
1980 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
1981 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
1982 | These don't provoke an error unfortunately, instead are silently treated
|
---|
1983 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
1984 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
1985 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
1986 | that's true only with -std1. */
|
---|
1987 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
1988 |
|
---|
1989 | int test (int i, double x);
|
---|
1990 | struct s1 {int (*f) (int a);};
|
---|
1991 | struct s2 {int (*f) (double a);};
|
---|
1992 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
1993 | int argc;
|
---|
1994 | char **argv;
|
---|
1995 | int
|
---|
1996 | main ()
|
---|
1997 | {
|
---|
1998 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
1999 | ;
|
---|
2000 | return 0;
|
---|
2001 | }
|
---|
2002 | _ACEOF
|
---|
2003 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2004 | # breaks some systems' header files.
|
---|
2005 | # AIX -qlanglvl=ansi
|
---|
2006 | # Ultrix and OSF/1 -std1
|
---|
2007 | # HP-UX 10.20 and later -Ae
|
---|
2008 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2009 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2010 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2011 | do
|
---|
2012 | CC="$ac_save_CC $ac_arg"
|
---|
2013 | rm -f conftest.$ac_objext
|
---|
2014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2015 | (eval $ac_compile) 2>conftest.er1
|
---|
2016 | ac_status=$?
|
---|
2017 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2018 | rm -f conftest.er1
|
---|
2019 | cat conftest.err >&5
|
---|
2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2021 | (exit $ac_status); } &&
|
---|
2022 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2023 | || test ! -s conftest.err'
|
---|
2024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2025 | (eval $ac_try) 2>&5
|
---|
2026 | ac_status=$?
|
---|
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2028 | (exit $ac_status); }; } &&
|
---|
2029 | { ac_try='test -s conftest.$ac_objext'
|
---|
2030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2031 | (eval $ac_try) 2>&5
|
---|
2032 | ac_status=$?
|
---|
2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2034 | (exit $ac_status); }; }; then
|
---|
2035 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2036 | break
|
---|
2037 | else
|
---|
2038 | echo "$as_me: failed program was:" >&5
|
---|
2039 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2040 |
|
---|
2041 | fi
|
---|
2042 | rm -f conftest.err conftest.$ac_objext
|
---|
2043 | done
|
---|
2044 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2045 | CC=$ac_save_CC
|
---|
2046 |
|
---|
2047 | fi
|
---|
2048 |
|
---|
2049 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2050 | x|xno)
|
---|
2051 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2052 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2053 | *)
|
---|
2054 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2055 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2056 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2057 | esac
|
---|
2058 |
|
---|
2059 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2060 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2061 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2062 | # the declaration of exit, since it's the most demanding environment.
|
---|
2063 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2064 | #ifndef __cplusplus
|
---|
2065 | choke me
|
---|
2066 | #endif
|
---|
2067 | _ACEOF
|
---|
2068 | rm -f conftest.$ac_objext
|
---|
2069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2070 | (eval $ac_compile) 2>conftest.er1
|
---|
2071 | ac_status=$?
|
---|
2072 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2073 | rm -f conftest.er1
|
---|
2074 | cat conftest.err >&5
|
---|
2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2076 | (exit $ac_status); } &&
|
---|
2077 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2078 | || test ! -s conftest.err'
|
---|
2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2080 | (eval $ac_try) 2>&5
|
---|
2081 | ac_status=$?
|
---|
2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2083 | (exit $ac_status); }; } &&
|
---|
2084 | { ac_try='test -s conftest.$ac_objext'
|
---|
2085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2086 | (eval $ac_try) 2>&5
|
---|
2087 | ac_status=$?
|
---|
2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2089 | (exit $ac_status); }; }; then
|
---|
2090 | for ac_declaration in \
|
---|
2091 | '' \
|
---|
2092 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2093 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2094 | 'extern "C" void exit (int) throw ();' \
|
---|
2095 | 'extern "C" void exit (int);' \
|
---|
2096 | 'void exit (int);'
|
---|
2097 | do
|
---|
2098 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2099 | /* confdefs.h. */
|
---|
2100 | _ACEOF
|
---|
2101 | cat confdefs.h >>conftest.$ac_ext
|
---|
2102 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2103 | /* end confdefs.h. */
|
---|
2104 | $ac_declaration
|
---|
2105 | #include <stdlib.h>
|
---|
2106 | int
|
---|
2107 | main ()
|
---|
2108 | {
|
---|
2109 | exit (42);
|
---|
2110 | ;
|
---|
2111 | return 0;
|
---|
2112 | }
|
---|
2113 | _ACEOF
|
---|
2114 | rm -f conftest.$ac_objext
|
---|
2115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2116 | (eval $ac_compile) 2>conftest.er1
|
---|
2117 | ac_status=$?
|
---|
2118 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2119 | rm -f conftest.er1
|
---|
2120 | cat conftest.err >&5
|
---|
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2122 | (exit $ac_status); } &&
|
---|
2123 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2124 | || test ! -s conftest.err'
|
---|
2125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2126 | (eval $ac_try) 2>&5
|
---|
2127 | ac_status=$?
|
---|
2128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2129 | (exit $ac_status); }; } &&
|
---|
2130 | { ac_try='test -s conftest.$ac_objext'
|
---|
2131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2132 | (eval $ac_try) 2>&5
|
---|
2133 | ac_status=$?
|
---|
2134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2135 | (exit $ac_status); }; }; then
|
---|
2136 | :
|
---|
2137 | else
|
---|
2138 | echo "$as_me: failed program was:" >&5
|
---|
2139 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2140 |
|
---|
2141 | continue
|
---|
2142 | fi
|
---|
2143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2144 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2145 | /* confdefs.h. */
|
---|
2146 | _ACEOF
|
---|
2147 | cat confdefs.h >>conftest.$ac_ext
|
---|
2148 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2149 | /* end confdefs.h. */
|
---|
2150 | $ac_declaration
|
---|
2151 | int
|
---|
2152 | main ()
|
---|
2153 | {
|
---|
2154 | exit (42);
|
---|
2155 | ;
|
---|
2156 | return 0;
|
---|
2157 | }
|
---|
2158 | _ACEOF
|
---|
2159 | rm -f conftest.$ac_objext
|
---|
2160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2161 | (eval $ac_compile) 2>conftest.er1
|
---|
2162 | ac_status=$?
|
---|
2163 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2164 | rm -f conftest.er1
|
---|
2165 | cat conftest.err >&5
|
---|
2166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2167 | (exit $ac_status); } &&
|
---|
2168 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2169 | || test ! -s conftest.err'
|
---|
2170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2171 | (eval $ac_try) 2>&5
|
---|
2172 | ac_status=$?
|
---|
2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2174 | (exit $ac_status); }; } &&
|
---|
2175 | { ac_try='test -s conftest.$ac_objext'
|
---|
2176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2177 | (eval $ac_try) 2>&5
|
---|
2178 | ac_status=$?
|
---|
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2180 | (exit $ac_status); }; }; then
|
---|
2181 | break
|
---|
2182 | else
|
---|
2183 | echo "$as_me: failed program was:" >&5
|
---|
2184 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2185 |
|
---|
2186 | fi
|
---|
2187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2188 | done
|
---|
2189 | rm -f conftest*
|
---|
2190 | if test -n "$ac_declaration"; then
|
---|
2191 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2192 | echo $ac_declaration >>confdefs.h
|
---|
2193 | echo '#endif' >>confdefs.h
|
---|
2194 | fi
|
---|
2195 |
|
---|
2196 | else
|
---|
2197 | echo "$as_me: failed program was:" >&5
|
---|
2198 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2199 |
|
---|
2200 | fi
|
---|
2201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2202 | ac_ext=c
|
---|
2203 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2207 |
|
---|
2208 | ac_ext=cc
|
---|
2209 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2213 | if test -n "$ac_tool_prefix"; then
|
---|
2214 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2215 | do
|
---|
2216 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2217 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2218 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2220 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2221 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2222 | else
|
---|
2223 | if test -n "$CXX"; then
|
---|
2224 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2225 | else
|
---|
2226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2227 | for as_dir in $PATH
|
---|
2228 | do
|
---|
2229 | IFS=$as_save_IFS
|
---|
2230 | test -z "$as_dir" && as_dir=.
|
---|
2231 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2232 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2233 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2234 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2235 | break 2
|
---|
2236 | fi
|
---|
2237 | done
|
---|
2238 | done
|
---|
2239 |
|
---|
2240 | fi
|
---|
2241 | fi
|
---|
2242 | CXX=$ac_cv_prog_CXX
|
---|
2243 | if test -n "$CXX"; then
|
---|
2244 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2245 | echo "${ECHO_T}$CXX" >&6
|
---|
2246 | else
|
---|
2247 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2248 | echo "${ECHO_T}no" >&6
|
---|
2249 | fi
|
---|
2250 |
|
---|
2251 | test -n "$CXX" && break
|
---|
2252 | done
|
---|
2253 | fi
|
---|
2254 | if test -z "$CXX"; then
|
---|
2255 | ac_ct_CXX=$CXX
|
---|
2256 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2257 | do
|
---|
2258 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2259 | set dummy $ac_prog; ac_word=$2
|
---|
2260 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2262 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2264 | else
|
---|
2265 | if test -n "$ac_ct_CXX"; then
|
---|
2266 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2267 | else
|
---|
2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2269 | for as_dir in $PATH
|
---|
2270 | do
|
---|
2271 | IFS=$as_save_IFS
|
---|
2272 | test -z "$as_dir" && as_dir=.
|
---|
2273 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2274 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2275 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2277 | break 2
|
---|
2278 | fi
|
---|
2279 | done
|
---|
2280 | done
|
---|
2281 |
|
---|
2282 | fi
|
---|
2283 | fi
|
---|
2284 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2285 | if test -n "$ac_ct_CXX"; then
|
---|
2286 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2287 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
2288 | else
|
---|
2289 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2290 | echo "${ECHO_T}no" >&6
|
---|
2291 | fi
|
---|
2292 |
|
---|
2293 | test -n "$ac_ct_CXX" && break
|
---|
2294 | done
|
---|
2295 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
2296 |
|
---|
2297 | CXX=$ac_ct_CXX
|
---|
2298 | fi
|
---|
2299 |
|
---|
2300 |
|
---|
2301 | # Provide some information about the compiler.
|
---|
2302 | echo "$as_me:$LINENO:" \
|
---|
2303 | "checking for C++ compiler version" >&5
|
---|
2304 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2305 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2306 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2307 | ac_status=$?
|
---|
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2309 | (exit $ac_status); }
|
---|
2310 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2311 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2312 | ac_status=$?
|
---|
2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2314 | (exit $ac_status); }
|
---|
2315 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2316 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2317 | ac_status=$?
|
---|
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2319 | (exit $ac_status); }
|
---|
2320 |
|
---|
2321 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2322 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
2323 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2324 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2325 | else
|
---|
2326 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2327 | /* confdefs.h. */
|
---|
2328 | _ACEOF
|
---|
2329 | cat confdefs.h >>conftest.$ac_ext
|
---|
2330 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2331 | /* end confdefs.h. */
|
---|
2332 |
|
---|
2333 | int
|
---|
2334 | main ()
|
---|
2335 | {
|
---|
2336 | #ifndef __GNUC__
|
---|
2337 | choke me
|
---|
2338 | #endif
|
---|
2339 |
|
---|
2340 | ;
|
---|
2341 | return 0;
|
---|
2342 | }
|
---|
2343 | _ACEOF
|
---|
2344 | rm -f conftest.$ac_objext
|
---|
2345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2346 | (eval $ac_compile) 2>conftest.er1
|
---|
2347 | ac_status=$?
|
---|
2348 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2349 | rm -f conftest.er1
|
---|
2350 | cat conftest.err >&5
|
---|
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2352 | (exit $ac_status); } &&
|
---|
2353 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2354 | || test ! -s conftest.err'
|
---|
2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2356 | (eval $ac_try) 2>&5
|
---|
2357 | ac_status=$?
|
---|
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2359 | (exit $ac_status); }; } &&
|
---|
2360 | { ac_try='test -s conftest.$ac_objext'
|
---|
2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2362 | (eval $ac_try) 2>&5
|
---|
2363 | ac_status=$?
|
---|
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2365 | (exit $ac_status); }; }; then
|
---|
2366 | ac_compiler_gnu=yes
|
---|
2367 | else
|
---|
2368 | echo "$as_me: failed program was:" >&5
|
---|
2369 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2370 |
|
---|
2371 | ac_compiler_gnu=no
|
---|
2372 | fi
|
---|
2373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2374 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2375 |
|
---|
2376 | fi
|
---|
2377 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2378 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
2379 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2380 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2381 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2382 | CXXFLAGS="-g"
|
---|
2383 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2384 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
2385 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2386 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2387 | else
|
---|
2388 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2389 | /* confdefs.h. */
|
---|
2390 | _ACEOF
|
---|
2391 | cat confdefs.h >>conftest.$ac_ext
|
---|
2392 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2393 | /* end confdefs.h. */
|
---|
2394 |
|
---|
2395 | int
|
---|
2396 | main ()
|
---|
2397 | {
|
---|
2398 |
|
---|
2399 | ;
|
---|
2400 | return 0;
|
---|
2401 | }
|
---|
2402 | _ACEOF
|
---|
2403 | rm -f conftest.$ac_objext
|
---|
2404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2405 | (eval $ac_compile) 2>conftest.er1
|
---|
2406 | ac_status=$?
|
---|
2407 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2408 | rm -f conftest.er1
|
---|
2409 | cat conftest.err >&5
|
---|
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2411 | (exit $ac_status); } &&
|
---|
2412 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2413 | || test ! -s conftest.err'
|
---|
2414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2415 | (eval $ac_try) 2>&5
|
---|
2416 | ac_status=$?
|
---|
2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2418 | (exit $ac_status); }; } &&
|
---|
2419 | { ac_try='test -s conftest.$ac_objext'
|
---|
2420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2421 | (eval $ac_try) 2>&5
|
---|
2422 | ac_status=$?
|
---|
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2424 | (exit $ac_status); }; }; then
|
---|
2425 | ac_cv_prog_cxx_g=yes
|
---|
2426 | else
|
---|
2427 | echo "$as_me: failed program was:" >&5
|
---|
2428 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2429 |
|
---|
2430 | ac_cv_prog_cxx_g=no
|
---|
2431 | fi
|
---|
2432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2433 | fi
|
---|
2434 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2435 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
2436 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2437 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2438 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2439 | if test "$GXX" = yes; then
|
---|
2440 | CXXFLAGS="-g -O2"
|
---|
2441 | else
|
---|
2442 | CXXFLAGS="-g"
|
---|
2443 | fi
|
---|
2444 | else
|
---|
2445 | if test "$GXX" = yes; then
|
---|
2446 | CXXFLAGS="-O2"
|
---|
2447 | else
|
---|
2448 | CXXFLAGS=
|
---|
2449 | fi
|
---|
2450 | fi
|
---|
2451 | for ac_declaration in \
|
---|
2452 | '' \
|
---|
2453 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2454 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2455 | 'extern "C" void exit (int) throw ();' \
|
---|
2456 | 'extern "C" void exit (int);' \
|
---|
2457 | 'void exit (int);'
|
---|
2458 | do
|
---|
2459 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2460 | /* confdefs.h. */
|
---|
2461 | _ACEOF
|
---|
2462 | cat confdefs.h >>conftest.$ac_ext
|
---|
2463 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2464 | /* end confdefs.h. */
|
---|
2465 | $ac_declaration
|
---|
2466 | #include <stdlib.h>
|
---|
2467 | int
|
---|
2468 | main ()
|
---|
2469 | {
|
---|
2470 | exit (42);
|
---|
2471 | ;
|
---|
2472 | return 0;
|
---|
2473 | }
|
---|
2474 | _ACEOF
|
---|
2475 | rm -f conftest.$ac_objext
|
---|
2476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2477 | (eval $ac_compile) 2>conftest.er1
|
---|
2478 | ac_status=$?
|
---|
2479 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2480 | rm -f conftest.er1
|
---|
2481 | cat conftest.err >&5
|
---|
2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2483 | (exit $ac_status); } &&
|
---|
2484 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2485 | || test ! -s conftest.err'
|
---|
2486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2487 | (eval $ac_try) 2>&5
|
---|
2488 | ac_status=$?
|
---|
2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2490 | (exit $ac_status); }; } &&
|
---|
2491 | { ac_try='test -s conftest.$ac_objext'
|
---|
2492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2493 | (eval $ac_try) 2>&5
|
---|
2494 | ac_status=$?
|
---|
2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2496 | (exit $ac_status); }; }; then
|
---|
2497 | :
|
---|
2498 | else
|
---|
2499 | echo "$as_me: failed program was:" >&5
|
---|
2500 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2501 |
|
---|
2502 | continue
|
---|
2503 | fi
|
---|
2504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2505 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2506 | /* confdefs.h. */
|
---|
2507 | _ACEOF
|
---|
2508 | cat confdefs.h >>conftest.$ac_ext
|
---|
2509 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2510 | /* end confdefs.h. */
|
---|
2511 | $ac_declaration
|
---|
2512 | int
|
---|
2513 | main ()
|
---|
2514 | {
|
---|
2515 | exit (42);
|
---|
2516 | ;
|
---|
2517 | return 0;
|
---|
2518 | }
|
---|
2519 | _ACEOF
|
---|
2520 | rm -f conftest.$ac_objext
|
---|
2521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2522 | (eval $ac_compile) 2>conftest.er1
|
---|
2523 | ac_status=$?
|
---|
2524 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2525 | rm -f conftest.er1
|
---|
2526 | cat conftest.err >&5
|
---|
2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2528 | (exit $ac_status); } &&
|
---|
2529 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2530 | || test ! -s conftest.err'
|
---|
2531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2532 | (eval $ac_try) 2>&5
|
---|
2533 | ac_status=$?
|
---|
2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2535 | (exit $ac_status); }; } &&
|
---|
2536 | { ac_try='test -s conftest.$ac_objext'
|
---|
2537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2538 | (eval $ac_try) 2>&5
|
---|
2539 | ac_status=$?
|
---|
2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2541 | (exit $ac_status); }; }; then
|
---|
2542 | break
|
---|
2543 | else
|
---|
2544 | echo "$as_me: failed program was:" >&5
|
---|
2545 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2546 |
|
---|
2547 | fi
|
---|
2548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2549 | done
|
---|
2550 | rm -f conftest*
|
---|
2551 | if test -n "$ac_declaration"; then
|
---|
2552 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2553 | echo $ac_declaration >>confdefs.h
|
---|
2554 | echo '#endif' >>confdefs.h
|
---|
2555 | fi
|
---|
2556 |
|
---|
2557 | ac_ext=c
|
---|
2558 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2562 |
|
---|
2563 |
|
---|
2564 | ac_aux_dir=
|
---|
2565 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2566 | if test -f $ac_dir/install-sh; then
|
---|
2567 | ac_aux_dir=$ac_dir
|
---|
2568 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2569 | break
|
---|
2570 | elif test -f $ac_dir/install.sh; then
|
---|
2571 | ac_aux_dir=$ac_dir
|
---|
2572 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2573 | break
|
---|
2574 | elif test -f $ac_dir/shtool; then
|
---|
2575 | ac_aux_dir=$ac_dir
|
---|
2576 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2577 | break
|
---|
2578 | fi
|
---|
2579 | done
|
---|
2580 | if test -z "$ac_aux_dir"; then
|
---|
2581 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2582 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2583 | { (exit 1); exit 1; }; }
|
---|
2584 | fi
|
---|
2585 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2586 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2587 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2588 |
|
---|
2589 | # Find a good install program. We prefer a C program (faster),
|
---|
2590 | # so one script is as good as another. But avoid the broken or
|
---|
2591 | # incompatible versions:
|
---|
2592 | # SysV /etc/install, /usr/sbin/install
|
---|
2593 | # SunOS /usr/etc/install
|
---|
2594 | # IRIX /sbin/install
|
---|
2595 | # AIX /bin/install
|
---|
2596 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2597 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2598 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2599 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2600 | # OS/2's system install, which has a completely different semantic
|
---|
2601 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2602 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2603 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2604 | if test -z "$INSTALL"; then
|
---|
2605 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2606 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2607 | else
|
---|
2608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2609 | for as_dir in $PATH
|
---|
2610 | do
|
---|
2611 | IFS=$as_save_IFS
|
---|
2612 | test -z "$as_dir" && as_dir=.
|
---|
2613 | # Account for people who put trailing slashes in PATH elements.
|
---|
2614 | case $as_dir/ in
|
---|
2615 | ./ | .// | /cC/* | \
|
---|
2616 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2617 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2618 | /usr/ucb/* ) ;;
|
---|
2619 | *)
|
---|
2620 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2621 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2622 | # by default.
|
---|
2623 | for ac_prog in ginstall scoinst install; do
|
---|
2624 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2625 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2626 | if test $ac_prog = install &&
|
---|
2627 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2628 | # AIX install. It has an incompatible calling convention.
|
---|
2629 | :
|
---|
2630 | elif test $ac_prog = install &&
|
---|
2631 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2632 | # program-specific install script used by HP pwplus--don't use.
|
---|
2633 | :
|
---|
2634 | else
|
---|
2635 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2636 | break 3
|
---|
2637 | fi
|
---|
2638 | fi
|
---|
2639 | done
|
---|
2640 | done
|
---|
2641 | ;;
|
---|
2642 | esac
|
---|
2643 | done
|
---|
2644 |
|
---|
2645 |
|
---|
2646 | fi
|
---|
2647 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2648 | INSTALL=$ac_cv_path_install
|
---|
2649 | else
|
---|
2650 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2651 | # path for INSTALL within a source directory, because that will
|
---|
2652 | # break other packages using the cache if that directory is
|
---|
2653 | # removed, or if the path is relative.
|
---|
2654 | INSTALL=$ac_install_sh
|
---|
2655 | fi
|
---|
2656 | fi
|
---|
2657 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2658 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2659 |
|
---|
2660 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2661 | # It thinks the first close brace ends the variable substitution.
|
---|
2662 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2663 |
|
---|
2664 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2665 |
|
---|
2666 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2667 |
|
---|
2668 |
|
---|
2669 | ac_config_files="$ac_config_files Makefile"
|
---|
2670 | cat >confcache <<\_ACEOF
|
---|
2671 | # This file is a shell script that caches the results of configure
|
---|
2672 | # tests run on this system so they can be shared between configure
|
---|
2673 | # scripts and configure runs, see configure's option --config-cache.
|
---|
2674 | # It is not useful on other systems. If it contains results you don't
|
---|
2675 | # want to keep, you may remove or edit it.
|
---|
2676 | #
|
---|
2677 | # config.status only pays attention to the cache file if you give it
|
---|
2678 | # the --recheck option to rerun configure.
|
---|
2679 | #
|
---|
2680 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
2681 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
2682 | # following values.
|
---|
2683 |
|
---|
2684 | _ACEOF
|
---|
2685 |
|
---|
2686 | # The following way of writing the cache mishandles newlines in values,
|
---|
2687 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2688 | # So, don't put newlines in cache variables' values.
|
---|
2689 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2690 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2691 | {
|
---|
2692 | (set) 2>&1 |
|
---|
2693 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2694 | *ac_space=\ *)
|
---|
2695 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
2696 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
2697 | sed -n \
|
---|
2698 | "s/'/'\\\\''/g;
|
---|
2699 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
2700 | ;;
|
---|
2701 | *)
|
---|
2702 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2703 | sed -n \
|
---|
2704 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
2705 | ;;
|
---|
2706 | esac;
|
---|
2707 | } |
|
---|
2708 | sed '
|
---|
2709 | t clear
|
---|
2710 | : clear
|
---|
2711 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
2712 | t end
|
---|
2713 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
2714 | : end' >>confcache
|
---|
2715 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
2716 | if test -w $cache_file; then
|
---|
2717 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
2718 | cat confcache >$cache_file
|
---|
2719 | else
|
---|
2720 | echo "not updating unwritable cache $cache_file"
|
---|
2721 | fi
|
---|
2722 | fi
|
---|
2723 | rm -f confcache
|
---|
2724 |
|
---|
2725 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
2726 | # Let make expand exec_prefix.
|
---|
2727 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
2728 |
|
---|
2729 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
2730 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
2731 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
2732 | # (actually we leave an empty line to preserve line numbers).
|
---|
2733 | if test "x$srcdir" = x.; then
|
---|
2734 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
2735 | s/:*\$(srcdir):*/:/;
|
---|
2736 | s/:*\${srcdir}:*/:/;
|
---|
2737 | s/:*@srcdir@:*/:/;
|
---|
2738 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
2739 | s/:*$//;
|
---|
2740 | s/^[^=]*=[ ]*$//;
|
---|
2741 | }'
|
---|
2742 | fi
|
---|
2743 |
|
---|
2744 | DEFS=-DHAVE_CONFIG_H
|
---|
2745 |
|
---|
2746 | ac_libobjs=
|
---|
2747 | ac_ltlibobjs=
|
---|
2748 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
2749 | # 1. Remove the extension, and $U if already installed.
|
---|
2750 | ac_i=`echo "$ac_i" |
|
---|
2751 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
2752 | # 2. Add them.
|
---|
2753 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
2754 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
2755 | done
|
---|
2756 | LIBOBJS=$ac_libobjs
|
---|
2757 |
|
---|
2758 | LTLIBOBJS=$ac_ltlibobjs
|
---|
2759 |
|
---|
2760 |
|
---|
2761 |
|
---|
2762 | : ${CONFIG_STATUS=./config.status}
|
---|
2763 | ac_clean_files_save=$ac_clean_files
|
---|
2764 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
2765 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
2766 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
2767 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
2768 | #! $SHELL
|
---|
2769 | # Generated by $as_me.
|
---|
2770 | # Run this file to recreate the current configuration.
|
---|
2771 | # Compiler output produced by configure, useful for debugging
|
---|
2772 | # configure, is in config.log if it exists.
|
---|
2773 |
|
---|
2774 | debug=false
|
---|
2775 | ac_cs_recheck=false
|
---|
2776 | ac_cs_silent=false
|
---|
2777 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
2778 | _ACEOF
|
---|
2779 |
|
---|
2780 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
2781 | ## --------------------- ##
|
---|
2782 | ## M4sh Initialization. ##
|
---|
2783 | ## --------------------- ##
|
---|
2784 |
|
---|
2785 | # Be Bourne compatible
|
---|
2786 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
2787 | emulate sh
|
---|
2788 | NULLCMD=:
|
---|
2789 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
2790 | # is contrary to our usage. Disable this feature.
|
---|
2791 | alias -g '${1+"$@"}'='"$@"'
|
---|
2792 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
2793 | set -o posix
|
---|
2794 | fi
|
---|
2795 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
2796 |
|
---|
2797 | # Support unset when possible.
|
---|
2798 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
2799 | as_unset=unset
|
---|
2800 | else
|
---|
2801 | as_unset=false
|
---|
2802 | fi
|
---|
2803 |
|
---|
2804 |
|
---|
2805 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
2806 | $as_unset ENV MAIL MAILPATH
|
---|
2807 | PS1='$ '
|
---|
2808 | PS2='> '
|
---|
2809 | PS4='+ '
|
---|
2810 |
|
---|
2811 | # NLS nuisances.
|
---|
2812 | for as_var in \
|
---|
2813 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
2814 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
2815 | LC_TELEPHONE LC_TIME
|
---|
2816 | do
|
---|
2817 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
2818 | eval $as_var=C; export $as_var
|
---|
2819 | else
|
---|
2820 | $as_unset $as_var
|
---|
2821 | fi
|
---|
2822 | done
|
---|
2823 |
|
---|
2824 | # Required to use basename.
|
---|
2825 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
2826 | as_expr=expr
|
---|
2827 | else
|
---|
2828 | as_expr=false
|
---|
2829 | fi
|
---|
2830 |
|
---|
2831 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
2832 | as_basename=basename
|
---|
2833 | else
|
---|
2834 | as_basename=false
|
---|
2835 | fi
|
---|
2836 |
|
---|
2837 |
|
---|
2838 | # Name of the executable.
|
---|
2839 | as_me=`$as_basename "$0" ||
|
---|
2840 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
2841 | X"$0" : 'X\(//\)$' \| \
|
---|
2842 | X"$0" : 'X\(/\)$' \| \
|
---|
2843 | . : '\(.\)' 2>/dev/null ||
|
---|
2844 | echo X/"$0" |
|
---|
2845 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
2846 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
2847 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
2848 | s/.*/./; q'`
|
---|
2849 |
|
---|
2850 |
|
---|
2851 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
2852 | # Avoid depending upon Character Ranges.
|
---|
2853 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
2854 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
2855 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
2856 | as_cr_digits='0123456789'
|
---|
2857 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
2858 |
|
---|
2859 | # The user is always right.
|
---|
2860 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
2861 | echo "#! /bin/sh" >conf$$.sh
|
---|
2862 | echo "exit 0" >>conf$$.sh
|
---|
2863 | chmod +x conf$$.sh
|
---|
2864 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
2865 | PATH_SEPARATOR=';'
|
---|
2866 | else
|
---|
2867 | PATH_SEPARATOR=:
|
---|
2868 | fi
|
---|
2869 | rm -f conf$$.sh
|
---|
2870 | fi
|
---|
2871 |
|
---|
2872 |
|
---|
2873 | as_lineno_1=$LINENO
|
---|
2874 | as_lineno_2=$LINENO
|
---|
2875 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
2876 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
2877 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
2878 | # Find who we are. Look in the path if we contain no path at all
|
---|
2879 | # relative or not.
|
---|
2880 | case $0 in
|
---|
2881 | *[\\/]* ) as_myself=$0 ;;
|
---|
2882 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2883 | for as_dir in $PATH
|
---|
2884 | do
|
---|
2885 | IFS=$as_save_IFS
|
---|
2886 | test -z "$as_dir" && as_dir=.
|
---|
2887 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
2888 | done
|
---|
2889 |
|
---|
2890 | ;;
|
---|
2891 | esac
|
---|
2892 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
2893 | # in which case we are not to be found in the path.
|
---|
2894 | if test "x$as_myself" = x; then
|
---|
2895 | as_myself=$0
|
---|
2896 | fi
|
---|
2897 | if test ! -f "$as_myself"; then
|
---|
2898 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
2899 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
2900 | { (exit 1); exit 1; }; }
|
---|
2901 | fi
|
---|
2902 | case $CONFIG_SHELL in
|
---|
2903 | '')
|
---|
2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2905 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
2906 | do
|
---|
2907 | IFS=$as_save_IFS
|
---|
2908 | test -z "$as_dir" && as_dir=.
|
---|
2909 | for as_base in sh bash ksh sh5; do
|
---|
2910 | case $as_dir in
|
---|
2911 | /*)
|
---|
2912 | if ("$as_dir/$as_base" -c '
|
---|
2913 | as_lineno_1=$LINENO
|
---|
2914 | as_lineno_2=$LINENO
|
---|
2915 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
2916 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
2917 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
2918 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
2919 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
2920 | CONFIG_SHELL=$as_dir/$as_base
|
---|
2921 | export CONFIG_SHELL
|
---|
2922 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
2923 | fi;;
|
---|
2924 | esac
|
---|
2925 | done
|
---|
2926 | done
|
---|
2927 | ;;
|
---|
2928 | esac
|
---|
2929 |
|
---|
2930 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
2931 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
2932 | # line-number line before each line; the second 'sed' does the real
|
---|
2933 | # work. The second script uses 'N' to pair each line-number line
|
---|
2934 | # with the numbered line, and appends trailing '-' during
|
---|
2935 | # substitution so that $LINENO is not a special case at line end.
|
---|
2936 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
2937 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
2938 | sed '=' <$as_myself |
|
---|
2939 | sed '
|
---|
2940 | N
|
---|
2941 | s,$,-,
|
---|
2942 | : loop
|
---|
2943 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
2944 | t loop
|
---|
2945 | s,-$,,
|
---|
2946 | s,^['$as_cr_digits']*\n,,
|
---|
2947 | ' >$as_me.lineno &&
|
---|
2948 | chmod +x $as_me.lineno ||
|
---|
2949 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
2950 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
2951 | { (exit 1); exit 1; }; }
|
---|
2952 |
|
---|
2953 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
2954 | # (the dirname of $[0] is not the place where we might find the
|
---|
2955 | # original and so on. Autoconf is especially sensible to this).
|
---|
2956 | . ./$as_me.lineno
|
---|
2957 | # Exit status is that of the last command.
|
---|
2958 | exit
|
---|
2959 | }
|
---|
2960 |
|
---|
2961 |
|
---|
2962 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
2963 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
2964 | ' ECHO_T=' ' ;;
|
---|
2965 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
2966 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
2967 | esac
|
---|
2968 |
|
---|
2969 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
2970 | as_expr=expr
|
---|
2971 | else
|
---|
2972 | as_expr=false
|
---|
2973 | fi
|
---|
2974 |
|
---|
2975 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
2976 | echo >conf$$.file
|
---|
2977 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
2978 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
2979 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
2980 | if test -f conf$$.exe; then
|
---|
2981 | # Don't use ln at all; we don't have any links
|
---|
2982 | as_ln_s='cp -p'
|
---|
2983 | else
|
---|
2984 | as_ln_s='ln -s'
|
---|
2985 | fi
|
---|
2986 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
2987 | as_ln_s=ln
|
---|
2988 | else
|
---|
2989 | as_ln_s='cp -p'
|
---|
2990 | fi
|
---|
2991 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
2992 |
|
---|
2993 | if mkdir -p . 2>/dev/null; then
|
---|
2994 | as_mkdir_p=:
|
---|
2995 | else
|
---|
2996 | test -d ./-p && rmdir ./-p
|
---|
2997 | as_mkdir_p=false
|
---|
2998 | fi
|
---|
2999 |
|
---|
3000 | as_executable_p="test -f"
|
---|
3001 |
|
---|
3002 | # Sed expression to map a string onto a valid CPP name.
|
---|
3003 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
3004 |
|
---|
3005 | # Sed expression to map a string onto a valid variable name.
|
---|
3006 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
3007 |
|
---|
3008 |
|
---|
3009 | # IFS
|
---|
3010 | # We need space, tab and new line, in precisely that order.
|
---|
3011 | as_nl='
|
---|
3012 | '
|
---|
3013 | IFS=" $as_nl"
|
---|
3014 |
|
---|
3015 | # CDPATH.
|
---|
3016 | $as_unset CDPATH
|
---|
3017 |
|
---|
3018 | exec 6>&1
|
---|
3019 |
|
---|
3020 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
3021 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
3022 | # values after options handling. Logging --version etc. is OK.
|
---|
3023 | exec 5>>config.log
|
---|
3024 | {
|
---|
3025 | echo
|
---|
3026 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
3027 | ## Running $as_me. ##
|
---|
3028 | _ASBOX
|
---|
3029 | } >&5
|
---|
3030 | cat >&5 <<_CSEOF
|
---|
3031 |
|
---|
3032 | This file was extended by $as_me, which was
|
---|
3033 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
3034 |
|
---|
3035 | CONFIG_FILES = $CONFIG_FILES
|
---|
3036 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
3037 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
3038 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
3039 | $ $0 $@
|
---|
3040 |
|
---|
3041 | _CSEOF
|
---|
3042 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
3043 | echo >&5
|
---|
3044 | _ACEOF
|
---|
3045 |
|
---|
3046 | # Files that config.status was made for.
|
---|
3047 | if test -n "$ac_config_files"; then
|
---|
3048 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
3049 | fi
|
---|
3050 |
|
---|
3051 | if test -n "$ac_config_headers"; then
|
---|
3052 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
3053 | fi
|
---|
3054 |
|
---|
3055 | if test -n "$ac_config_links"; then
|
---|
3056 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
3057 | fi
|
---|
3058 |
|
---|
3059 | if test -n "$ac_config_commands"; then
|
---|
3060 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
3061 | fi
|
---|
3062 |
|
---|
3063 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3064 |
|
---|
3065 | ac_cs_usage="\
|
---|
3066 | \`$as_me' instantiates files from templates according to the
|
---|
3067 | current configuration.
|
---|
3068 |
|
---|
3069 | Usage: $0 [OPTIONS] [FILE]...
|
---|
3070 |
|
---|
3071 | -h, --help print this help, then exit
|
---|
3072 | -V, --version print version number, then exit
|
---|
3073 | -q, --quiet do not print progress messages
|
---|
3074 | -d, --debug don't remove temporary files
|
---|
3075 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
3076 | --file=FILE[:TEMPLATE]
|
---|
3077 | instantiate the configuration file FILE
|
---|
3078 | --header=FILE[:TEMPLATE]
|
---|
3079 | instantiate the configuration header FILE
|
---|
3080 |
|
---|
3081 | Configuration files:
|
---|
3082 | $config_files
|
---|
3083 |
|
---|
3084 | Configuration headers:
|
---|
3085 | $config_headers
|
---|
3086 |
|
---|
3087 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
3088 | _ACEOF
|
---|
3089 |
|
---|
3090 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
3091 | ac_cs_version="\\
|
---|
3092 | config.status
|
---|
3093 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
3094 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
3095 |
|
---|
3096 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
3097 | This config.status script is free software; the Free Software Foundation
|
---|
3098 | gives unlimited permission to copy, distribute and modify it."
|
---|
3099 | srcdir=$srcdir
|
---|
3100 | INSTALL="$INSTALL"
|
---|
3101 | _ACEOF
|
---|
3102 |
|
---|
3103 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3104 | # If no file are specified by the user, then we need to provide default
|
---|
3105 | # value. By we need to know if files were specified by the user.
|
---|
3106 | ac_need_defaults=:
|
---|
3107 | while test $# != 0
|
---|
3108 | do
|
---|
3109 | case $1 in
|
---|
3110 | --*=*)
|
---|
3111 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
3112 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
3113 | ac_shift=:
|
---|
3114 | ;;
|
---|
3115 | -*)
|
---|
3116 | ac_option=$1
|
---|
3117 | ac_optarg=$2
|
---|
3118 | ac_shift=shift
|
---|
3119 | ;;
|
---|
3120 | *) # This is not an option, so the user has probably given explicit
|
---|
3121 | # arguments.
|
---|
3122 | ac_option=$1
|
---|
3123 | ac_need_defaults=false;;
|
---|
3124 | esac
|
---|
3125 |
|
---|
3126 | case $ac_option in
|
---|
3127 | # Handling of the options.
|
---|
3128 | _ACEOF
|
---|
3129 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3130 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
3131 | ac_cs_recheck=: ;;
|
---|
3132 | --version | --vers* | -V )
|
---|
3133 | echo "$ac_cs_version"; exit 0 ;;
|
---|
3134 | --he | --h)
|
---|
3135 | # Conflict between --help and --header
|
---|
3136 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
3137 | Try \`$0 --help' for more information." >&5
|
---|
3138 | echo "$as_me: error: ambiguous option: $1
|
---|
3139 | Try \`$0 --help' for more information." >&2;}
|
---|
3140 | { (exit 1); exit 1; }; };;
|
---|
3141 | --help | --hel | -h )
|
---|
3142 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
3143 | --debug | --d* | -d )
|
---|
3144 | debug=: ;;
|
---|
3145 | --file | --fil | --fi | --f )
|
---|
3146 | $ac_shift
|
---|
3147 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
3148 | ac_need_defaults=false;;
|
---|
3149 | --header | --heade | --head | --hea )
|
---|
3150 | $ac_shift
|
---|
3151 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
3152 | ac_need_defaults=false;;
|
---|
3153 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
3154 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
3155 | ac_cs_silent=: ;;
|
---|
3156 |
|
---|
3157 | # This is an error.
|
---|
3158 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
3159 | Try \`$0 --help' for more information." >&5
|
---|
3160 | echo "$as_me: error: unrecognized option: $1
|
---|
3161 | Try \`$0 --help' for more information." >&2;}
|
---|
3162 | { (exit 1); exit 1; }; } ;;
|
---|
3163 |
|
---|
3164 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
3165 |
|
---|
3166 | esac
|
---|
3167 | shift
|
---|
3168 | done
|
---|
3169 |
|
---|
3170 | ac_configure_extra_args=
|
---|
3171 |
|
---|
3172 | if $ac_cs_silent; then
|
---|
3173 | exec 6>/dev/null
|
---|
3174 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
3175 | fi
|
---|
3176 |
|
---|
3177 | _ACEOF
|
---|
3178 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
3179 | if \$ac_cs_recheck; then
|
---|
3180 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
3181 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
3182 | fi
|
---|
3183 |
|
---|
3184 | _ACEOF
|
---|
3185 |
|
---|
3186 |
|
---|
3187 |
|
---|
3188 |
|
---|
3189 |
|
---|
3190 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3191 | for ac_config_target in $ac_config_targets
|
---|
3192 | do
|
---|
3193 | case "$ac_config_target" in
|
---|
3194 | # Handling of arguments.
|
---|
3195 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
3196 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
3197 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
3198 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
3199 | { (exit 1); exit 1; }; };;
|
---|
3200 | esac
|
---|
3201 | done
|
---|
3202 |
|
---|
3203 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
3204 | # then the envvar interface is used. Set only those that are not.
|
---|
3205 | # We use the long form for the default assignment because of an extremely
|
---|
3206 | # bizarre bug on SunOS 4.1.3.
|
---|
3207 | if $ac_need_defaults; then
|
---|
3208 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
3209 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
3210 | fi
|
---|
3211 |
|
---|
3212 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
3213 | # simply because there is no reason to put it here, and in addition,
|
---|
3214 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
3215 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
3216 | $debug ||
|
---|
3217 | {
|
---|
3218 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
3219 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
3220 | }
|
---|
3221 |
|
---|
3222 | # Create a (secure) tmp directory for tmp files.
|
---|
3223 |
|
---|
3224 | {
|
---|
3225 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
3226 | test -n "$tmp" && test -d "$tmp"
|
---|
3227 | } ||
|
---|
3228 | {
|
---|
3229 | tmp=./confstat$$-$RANDOM
|
---|
3230 | (umask 077 && mkdir $tmp)
|
---|
3231 | } ||
|
---|
3232 | {
|
---|
3233 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
3234 | { (exit 1); exit 1; }
|
---|
3235 | }
|
---|
3236 |
|
---|
3237 | _ACEOF
|
---|
3238 |
|
---|
3239 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
3240 |
|
---|
3241 | #
|
---|
3242 | # CONFIG_FILES section.
|
---|
3243 | #
|
---|
3244 |
|
---|
3245 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
3246 | # This happens for instance when ./config.status config.h
|
---|
3247 | if test -n "\$CONFIG_FILES"; then
|
---|
3248 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3249 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
3250 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
3251 | s,@SHELL@,$SHELL,;t t
|
---|
3252 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
3253 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
3254 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
3255 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
3256 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
3257 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
3258 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
3259 | s,@prefix@,$prefix,;t t
|
---|
3260 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
3261 | s,@bindir@,$bindir,;t t
|
---|
3262 | s,@sbindir@,$sbindir,;t t
|
---|
3263 | s,@libexecdir@,$libexecdir,;t t
|
---|
3264 | s,@datadir@,$datadir,;t t
|
---|
3265 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
3266 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
3267 | s,@localstatedir@,$localstatedir,;t t
|
---|
3268 | s,@libdir@,$libdir,;t t
|
---|
3269 | s,@includedir@,$includedir,;t t
|
---|
3270 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
3271 | s,@infodir@,$infodir,;t t
|
---|
3272 | s,@mandir@,$mandir,;t t
|
---|
3273 | s,@build_alias@,$build_alias,;t t
|
---|
3274 | s,@host_alias@,$host_alias,;t t
|
---|
3275 | s,@target_alias@,$target_alias,;t t
|
---|
3276 | s,@DEFS@,$DEFS,;t t
|
---|
3277 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
3278 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
3279 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
3280 | s,@LIBS@,$LIBS,;t t
|
---|
3281 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
3282 | s,@VERSION@,$VERSION,;t t
|
---|
3283 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
3284 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
3285 | s,@CC@,$CC,;t t
|
---|
3286 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
3287 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
3288 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
3289 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
3290 | s,@CXX@,$CXX,;t t
|
---|
3291 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
3292 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
3293 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
3294 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
3295 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
3296 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
3297 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
3298 | CEOF
|
---|
3299 |
|
---|
3300 | _ACEOF
|
---|
3301 |
|
---|
3302 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3303 | # Split the substitutions into bite-sized pieces for seds with
|
---|
3304 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
3305 | ac_max_sed_lines=48
|
---|
3306 | ac_sed_frag=1 # Number of current file.
|
---|
3307 | ac_beg=1 # First line for current file.
|
---|
3308 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
3309 | ac_more_lines=:
|
---|
3310 | ac_sed_cmds=
|
---|
3311 | while $ac_more_lines; do
|
---|
3312 | if test $ac_beg -gt 1; then
|
---|
3313 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
3314 | else
|
---|
3315 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
3316 | fi
|
---|
3317 | if test ! -s $tmp/subs.frag; then
|
---|
3318 | ac_more_lines=false
|
---|
3319 | else
|
---|
3320 | # The purpose of the label and of the branching condition is to
|
---|
3321 | # speed up the sed processing (if there are no `@' at all, there
|
---|
3322 | # is no need to browse any of the substitutions).
|
---|
3323 | # These are the two extra sed commands mentioned above.
|
---|
3324 | (echo ':t
|
---|
3325 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
3326 | if test -z "$ac_sed_cmds"; then
|
---|
3327 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
3328 | else
|
---|
3329 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
3330 | fi
|
---|
3331 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
3332 | ac_beg=$ac_end
|
---|
3333 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
3334 | fi
|
---|
3335 | done
|
---|
3336 | if test -z "$ac_sed_cmds"; then
|
---|
3337 | ac_sed_cmds=cat
|
---|
3338 | fi
|
---|
3339 | fi # test -n "$CONFIG_FILES"
|
---|
3340 |
|
---|
3341 | _ACEOF
|
---|
3342 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3343 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
3344 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3345 | case $ac_file in
|
---|
3346 | - | *:- | *:-:* ) # input from stdin
|
---|
3347 | cat >$tmp/stdin
|
---|
3348 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
3349 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
3350 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
3351 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
3352 | * ) ac_file_in=$ac_file.in ;;
|
---|
3353 | esac
|
---|
3354 |
|
---|
3355 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
3356 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
3357 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
3358 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
3359 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
3360 | X"$ac_file" : 'X\(/\)' \| \
|
---|
3361 | . : '\(.\)' 2>/dev/null ||
|
---|
3362 | echo X"$ac_file" |
|
---|
3363 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
3364 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
3365 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
3366 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
3367 | s/.*/./; q'`
|
---|
3368 | { if $as_mkdir_p; then
|
---|
3369 | mkdir -p "$ac_dir"
|
---|
3370 | else
|
---|
3371 | as_dir="$ac_dir"
|
---|
3372 | as_dirs=
|
---|
3373 | while test ! -d "$as_dir"; do
|
---|
3374 | as_dirs="$as_dir $as_dirs"
|
---|
3375 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
3376 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
3377 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
3378 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
3379 | X"$as_dir" : 'X\(/\)' \| \
|
---|
3380 | . : '\(.\)' 2>/dev/null ||
|
---|
3381 | echo X"$as_dir" |
|
---|
3382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
3383 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
3384 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
3385 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
3386 | s/.*/./; q'`
|
---|
3387 | done
|
---|
3388 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
3389 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
3390 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
3391 | { (exit 1); exit 1; }; }; }
|
---|
3392 |
|
---|
3393 | ac_builddir=.
|
---|
3394 |
|
---|
3395 | if test "$ac_dir" != .; then
|
---|
3396 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
3397 | # A "../" for each directory in $ac_dir_suffix.
|
---|
3398 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
3399 | else
|
---|
3400 | ac_dir_suffix= ac_top_builddir=
|
---|
3401 | fi
|
---|
3402 |
|
---|
3403 | case $srcdir in
|
---|
3404 | .) # No --srcdir option. We are building in place.
|
---|
3405 | ac_srcdir=.
|
---|
3406 | if test -z "$ac_top_builddir"; then
|
---|
3407 | ac_top_srcdir=.
|
---|
3408 | else
|
---|
3409 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
3410 | fi ;;
|
---|
3411 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
3412 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
3413 | ac_top_srcdir=$srcdir ;;
|
---|
3414 | *) # Relative path.
|
---|
3415 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
3416 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
3417 | esac
|
---|
3418 |
|
---|
3419 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
3420 | # the directories may not exist.
|
---|
3421 | case `pwd` in
|
---|
3422 | .) ac_abs_builddir="$ac_dir";;
|
---|
3423 | *)
|
---|
3424 | case "$ac_dir" in
|
---|
3425 | .) ac_abs_builddir=`pwd`;;
|
---|
3426 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
3427 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
3428 | esac;;
|
---|
3429 | esac
|
---|
3430 | case $ac_abs_builddir in
|
---|
3431 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
3432 | *)
|
---|
3433 | case ${ac_top_builddir}. in
|
---|
3434 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
3435 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
3436 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
3437 | esac;;
|
---|
3438 | esac
|
---|
3439 | case $ac_abs_builddir in
|
---|
3440 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
3441 | *)
|
---|
3442 | case $ac_srcdir in
|
---|
3443 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
3444 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
3445 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
3446 | esac;;
|
---|
3447 | esac
|
---|
3448 | case $ac_abs_builddir in
|
---|
3449 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
3450 | *)
|
---|
3451 | case $ac_top_srcdir in
|
---|
3452 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
3453 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
3454 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
3455 | esac;;
|
---|
3456 | esac
|
---|
3457 |
|
---|
3458 |
|
---|
3459 | case $INSTALL in
|
---|
3460 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
3461 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
3462 | esac
|
---|
3463 |
|
---|
3464 | if test x"$ac_file" != x-; then
|
---|
3465 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
3466 | echo "$as_me: creating $ac_file" >&6;}
|
---|
3467 | rm -f "$ac_file"
|
---|
3468 | fi
|
---|
3469 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
3470 | # use $as_me), people would be surprised to read:
|
---|
3471 | # /* config.h. Generated by config.status. */
|
---|
3472 | if test x"$ac_file" = x-; then
|
---|
3473 | configure_input=
|
---|
3474 | else
|
---|
3475 | configure_input="$ac_file. "
|
---|
3476 | fi
|
---|
3477 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
3478 | sed 's,.*/,,'` by configure."
|
---|
3479 |
|
---|
3480 | # First look for the input files in the build tree, otherwise in the
|
---|
3481 | # src tree.
|
---|
3482 | ac_file_inputs=`IFS=:
|
---|
3483 | for f in $ac_file_in; do
|
---|
3484 | case $f in
|
---|
3485 | -) echo $tmp/stdin ;;
|
---|
3486 | [\\/$]*)
|
---|
3487 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
3488 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
3489 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
3490 | { (exit 1); exit 1; }; }
|
---|
3491 | echo "$f";;
|
---|
3492 | *) # Relative
|
---|
3493 | if test -f "$f"; then
|
---|
3494 | # Build tree
|
---|
3495 | echo "$f"
|
---|
3496 | elif test -f "$srcdir/$f"; then
|
---|
3497 | # Source tree
|
---|
3498 | echo "$srcdir/$f"
|
---|
3499 | else
|
---|
3500 | # /dev/null tree
|
---|
3501 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
3502 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
3503 | { (exit 1); exit 1; }; }
|
---|
3504 | fi;;
|
---|
3505 | esac
|
---|
3506 | done` || { (exit 1); exit 1; }
|
---|
3507 | _ACEOF
|
---|
3508 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
3509 | sed "$ac_vpsub
|
---|
3510 | $extrasub
|
---|
3511 | _ACEOF
|
---|
3512 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3513 | :t
|
---|
3514 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
3515 | s,@configure_input@,$configure_input,;t t
|
---|
3516 | s,@srcdir@,$ac_srcdir,;t t
|
---|
3517 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
3518 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
3519 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
3520 | s,@builddir@,$ac_builddir,;t t
|
---|
3521 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
3522 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
3523 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
3524 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
3525 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
3526 | rm -f $tmp/stdin
|
---|
3527 | if test x"$ac_file" != x-; then
|
---|
3528 | mv $tmp/out $ac_file
|
---|
3529 | else
|
---|
3530 | cat $tmp/out
|
---|
3531 | rm -f $tmp/out
|
---|
3532 | fi
|
---|
3533 |
|
---|
3534 | done
|
---|
3535 | _ACEOF
|
---|
3536 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3537 |
|
---|
3538 | #
|
---|
3539 | # CONFIG_HEADER section.
|
---|
3540 | #
|
---|
3541 |
|
---|
3542 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
3543 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
3544 | #
|
---|
3545 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
3546 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
3547 | ac_dB='[ ].*$,\1#\2'
|
---|
3548 | ac_dC=' '
|
---|
3549 | ac_dD=',;t'
|
---|
3550 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
3551 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3552 | ac_uB='$,\1#\2define\3'
|
---|
3553 | ac_uC=' '
|
---|
3554 | ac_uD=',;t'
|
---|
3555 |
|
---|
3556 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
3557 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3558 | case $ac_file in
|
---|
3559 | - | *:- | *:-:* ) # input from stdin
|
---|
3560 | cat >$tmp/stdin
|
---|
3561 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
3562 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
3563 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
3564 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
3565 | * ) ac_file_in=$ac_file.in ;;
|
---|
3566 | esac
|
---|
3567 |
|
---|
3568 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
3569 | echo "$as_me: creating $ac_file" >&6;}
|
---|
3570 |
|
---|
3571 | # First look for the input files in the build tree, otherwise in the
|
---|
3572 | # src tree.
|
---|
3573 | ac_file_inputs=`IFS=:
|
---|
3574 | for f in $ac_file_in; do
|
---|
3575 | case $f in
|
---|
3576 | -) echo $tmp/stdin ;;
|
---|
3577 | [\\/$]*)
|
---|
3578 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
3579 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
3580 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
3581 | { (exit 1); exit 1; }; }
|
---|
3582 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
3583 | echo "$f";;
|
---|
3584 | *) # Relative
|
---|
3585 | if test -f "$f"; then
|
---|
3586 | # Build tree
|
---|
3587 | echo "$f"
|
---|
3588 | elif test -f "$srcdir/$f"; then
|
---|
3589 | # Source tree
|
---|
3590 | echo "$srcdir/$f"
|
---|
3591 | else
|
---|
3592 | # /dev/null tree
|
---|
3593 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
3594 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
3595 | { (exit 1); exit 1; }; }
|
---|
3596 | fi;;
|
---|
3597 | esac
|
---|
3598 | done` || { (exit 1); exit 1; }
|
---|
3599 | # Remove the trailing spaces.
|
---|
3600 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
3601 |
|
---|
3602 | _ACEOF
|
---|
3603 |
|
---|
3604 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
3605 | # `conftest.undefs', that substitutes the proper values into
|
---|
3606 | # config.h.in to produce config.h. The first handles `#define'
|
---|
3607 | # templates, and the second `#undef' templates.
|
---|
3608 | # And first: Protect against being on the right side of a sed subst in
|
---|
3609 | # config.status. Protect against being in an unquoted here document
|
---|
3610 | # in config.status.
|
---|
3611 | rm -f conftest.defines conftest.undefs
|
---|
3612 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
3613 | # Putting comments in sed scripts is not portable.
|
---|
3614 | #
|
---|
3615 | # `end' is used to avoid that the second main sed command (meant for
|
---|
3616 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
3617 | # See the Autoconf documentation for `clear'.
|
---|
3618 | cat >confdef2sed.sed <<\_ACEOF
|
---|
3619 | s/[\\&,]/\\&/g
|
---|
3620 | s,[\\$`],\\&,g
|
---|
3621 | t clear
|
---|
3622 | : clear
|
---|
3623 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
3624 | t end
|
---|
3625 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
3626 | : end
|
---|
3627 | _ACEOF
|
---|
3628 | # If some macros were called several times there might be several times
|
---|
3629 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
3630 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
3631 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
3632 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
3633 | rm -f confdef2sed.sed
|
---|
3634 |
|
---|
3635 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
3636 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
3637 | # on some systems where configure will not decide to define it.
|
---|
3638 | cat >>conftest.undefs <<\_ACEOF
|
---|
3639 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
3640 | _ACEOF
|
---|
3641 |
|
---|
3642 | # Break up conftest.defines because some shells have a limit on the size
|
---|
3643 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
3644 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
3645 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
3646 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
3647 | echo ' :' >>$CONFIG_STATUS
|
---|
3648 | rm -f conftest.tail
|
---|
3649 | while grep . conftest.defines >/dev/null
|
---|
3650 | do
|
---|
3651 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
3652 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
3653 | # Speed up: don't consider the non `#define' lines.
|
---|
3654 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
3655 | # Work around the forget-to-reset-the-flag bug.
|
---|
3656 | echo 't clr' >>$CONFIG_STATUS
|
---|
3657 | echo ': clr' >>$CONFIG_STATUS
|
---|
3658 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
3659 | echo 'CEOF
|
---|
3660 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
3661 | rm -f $tmp/in
|
---|
3662 | mv $tmp/out $tmp/in
|
---|
3663 | ' >>$CONFIG_STATUS
|
---|
3664 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
3665 | rm -f conftest.defines
|
---|
3666 | mv conftest.tail conftest.defines
|
---|
3667 | done
|
---|
3668 | rm -f conftest.defines
|
---|
3669 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
3670 | echo >>$CONFIG_STATUS
|
---|
3671 |
|
---|
3672 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
3673 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
3674 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
3675 | rm -f conftest.tail
|
---|
3676 | while grep . conftest.undefs >/dev/null
|
---|
3677 | do
|
---|
3678 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
3679 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
3680 | # Speed up: don't consider the non `#undef'
|
---|
3681 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
3682 | # Work around the forget-to-reset-the-flag bug.
|
---|
3683 | echo 't clr' >>$CONFIG_STATUS
|
---|
3684 | echo ': clr' >>$CONFIG_STATUS
|
---|
3685 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
3686 | echo 'CEOF
|
---|
3687 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
3688 | rm -f $tmp/in
|
---|
3689 | mv $tmp/out $tmp/in
|
---|
3690 | ' >>$CONFIG_STATUS
|
---|
3691 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
3692 | rm -f conftest.undefs
|
---|
3693 | mv conftest.tail conftest.undefs
|
---|
3694 | done
|
---|
3695 | rm -f conftest.undefs
|
---|
3696 |
|
---|
3697 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3698 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
3699 | # use $as_me), people would be surprised to read:
|
---|
3700 | # /* config.h. Generated by config.status. */
|
---|
3701 | if test x"$ac_file" = x-; then
|
---|
3702 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
3703 | else
|
---|
3704 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
3705 | fi
|
---|
3706 | cat $tmp/in >>$tmp/config.h
|
---|
3707 | rm -f $tmp/in
|
---|
3708 | if test x"$ac_file" != x-; then
|
---|
3709 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
3710 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
3711 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
3712 | else
|
---|
3713 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
3714 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
3715 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
3716 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
3717 | X"$ac_file" : 'X\(/\)' \| \
|
---|
3718 | . : '\(.\)' 2>/dev/null ||
|
---|
3719 | echo X"$ac_file" |
|
---|
3720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
3721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
3722 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
3723 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
3724 | s/.*/./; q'`
|
---|
3725 | { if $as_mkdir_p; then
|
---|
3726 | mkdir -p "$ac_dir"
|
---|
3727 | else
|
---|
3728 | as_dir="$ac_dir"
|
---|
3729 | as_dirs=
|
---|
3730 | while test ! -d "$as_dir"; do
|
---|
3731 | as_dirs="$as_dir $as_dirs"
|
---|
3732 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
3733 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
3734 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
3735 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
3736 | X"$as_dir" : 'X\(/\)' \| \
|
---|
3737 | . : '\(.\)' 2>/dev/null ||
|
---|
3738 | echo X"$as_dir" |
|
---|
3739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
3740 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
3741 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
3742 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
3743 | s/.*/./; q'`
|
---|
3744 | done
|
---|
3745 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
3746 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
3747 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
3748 | { (exit 1); exit 1; }; }; }
|
---|
3749 |
|
---|
3750 | rm -f $ac_file
|
---|
3751 | mv $tmp/config.h $ac_file
|
---|
3752 | fi
|
---|
3753 | else
|
---|
3754 | cat $tmp/config.h
|
---|
3755 | rm -f $tmp/config.h
|
---|
3756 | fi
|
---|
3757 | done
|
---|
3758 | _ACEOF
|
---|
3759 |
|
---|
3760 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3761 |
|
---|
3762 | { (exit 0); exit 0; }
|
---|
3763 | _ACEOF
|
---|
3764 | chmod +x $CONFIG_STATUS
|
---|
3765 | ac_clean_files=$ac_clean_files_save
|
---|
3766 |
|
---|
3767 |
|
---|
3768 | # configure is writing to config.log, and then calls config.status.
|
---|
3769 | # config.status does its own redirection, appending to config.log.
|
---|
3770 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
3771 | # by configure, so config.status won't be able to write to it; its
|
---|
3772 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
3773 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
3774 | # appended to by config.status. When coming back to configure, we
|
---|
3775 | # need to make the FD available again.
|
---|
3776 | if test "$no_create" != yes; then
|
---|
3777 | ac_cs_success=:
|
---|
3778 | ac_config_status_args=
|
---|
3779 | test "$silent" = yes &&
|
---|
3780 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
3781 | exec 5>/dev/null
|
---|
3782 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
3783 | exec 5>>config.log
|
---|
3784 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
3785 | # would make configure fail if this is the last instruction.
|
---|
3786 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
3787 | fi
|
---|