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