/[PAMELA software]/yoda/configure
ViewVC logotype

Contents of /yoda/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2.1 - (show annotations) (download)
Sun Oct 17 12:27:43 2004 UTC (20 years, 1 month ago) by kusanagi
Branch: MAIN
Changes since 2.0: +3 -2 lines
Error occurred while calculating annotation data.
*** empty log message ***

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263 ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
269 shift
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
272 :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
275 :
276 else
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
283 shift
284 cat <<EOF
285
286 EOF
287 exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302 then
303 break
304 fi
305 done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
311 :
312 else
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
316 #
317 # So, first we look for a working echo in the user's PATH.
318
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 echo="$dir/echo"
326 break
327 fi
328 done
329 IFS="$save_ifs"
330
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
337 echo='print -r'
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
344 export CONFIG_SHELL
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346 else
347 # Try using printf.
348 echo='printf %s\n'
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 # Cool, printf works
353 :
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359 export CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
361 export SHELL
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
368 else
369 # maybe with a smaller string...
370 prev=:
371
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 then
375 break
376 fi
377 prev="$cmd"
378 done
379
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384 else
385 # Oops. We lost completely, so just stick with echo.
386 echo=echo
387 fi
388 fi
389 fi
390 fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="event/PamelaRun.h"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 # include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 # include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
520 fi
521
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
526 case $ac_option in
527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir=$ac_optarg ;;
532
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
537
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
544
545 --config-cache | -C)
546 cache_file=config.cache ;;
547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
552 datadir=$ac_optarg ;;
553
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
562
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 case $ac_option in
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 *) ac_optarg=yes ;;
573 esac
574 eval "enable_$ac_feature='$ac_optarg'" ;;
575
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
589 -help | --help | --hel | --he | -h)
590 ac_init_help=long ;;
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
595
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir=$ac_optarg ;;
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir=$ac_optarg ;;
638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix=$ac_optarg ;;
664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
704 sbindir=$ac_optarg ;;
705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
715 sharedstatedir=$ac_optarg ;;
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site=$ac_optarg ;;
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir=$ac_optarg ;;
726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
744
745 -with-* | --with-*)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 *) ac_optarg=yes ;;
755 esac
756 eval "with_$ac_package='$ac_optarg'" ;;
757
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
766
767 --x)
768 # Obsolete; use --with-x.
769 with_x=yes ;;
770
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
777
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
784
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
788 ;;
789
790 *=*)
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
798 export $ac_envvar ;;
799
800 *)
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 ;;
807
808 esac
809 done
810
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820 eval ac_val=$`echo $ac_var`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
825 esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
831 do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
854 cross_compiling=yes
855 fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
879 s/.*/./; q'`
880 srcdir=$ac_confdir
881 if test ! -r $srcdir/$ac_unique_file; then
882 srcdir=..
883 fi
884 else
885 ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
891 else
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
894 fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_F77_set=${F77+set}
929 ac_env_F77_value=$F77
930 ac_cv_env_F77_set=${F77+set}
931 ac_cv_env_F77_value=$F77
932 ac_env_FFLAGS_set=${FFLAGS+set}
933 ac_env_FFLAGS_value=$FFLAGS
934 ac_cv_env_FFLAGS_set=${FFLAGS+set}
935 ac_cv_env_FFLAGS_value=$FFLAGS
936 ac_env_CXX_set=${CXX+set}
937 ac_env_CXX_value=$CXX
938 ac_cv_env_CXX_set=${CXX+set}
939 ac_cv_env_CXX_value=$CXX
940 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
941 ac_env_CXXFLAGS_value=$CXXFLAGS
942 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
943 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
944 ac_env_CPP_set=${CPP+set}
945 ac_env_CPP_value=$CPP
946 ac_cv_env_CPP_set=${CPP+set}
947 ac_cv_env_CPP_value=$CPP
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1006
1007 cat <<\_ACEOF
1008
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013
1014 System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024 Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-shared=PKGS build shared libraries default=yes
1028 --enable-static=PKGS build static libraries default=yes
1029 --enable-fast-install=PKGS optimize for fast installation default=yes
1030 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --enable-gprof enable memory profiling with gprof
1032
1033 Optional Packages:
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-gnu-ld assume the C compiler uses GNU ld default=no
1037 --with-pic try to use only PIC/non-PIC objects default=use both
1038 --with-root=path Use the specified ROOT directory
1039 --with-log4cxx=path Use the specified directroy for log4cxx
1040
1041 Some influential environment variables:
1042 CC C compiler command
1043 CFLAGS C compiler flags
1044 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1045 nonstandard directory <lib dir>
1046 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047 headers in a nonstandard directory <include dir>
1048 F77 Fortran 77 compiler command
1049 FFLAGS Fortran 77 compiler flags
1050 CXX C++ compiler command
1051 CXXFLAGS C++ compiler flags
1052 CPP C preprocessor
1053
1054 Use these variables to override the choices made by `configure' or to help
1055 it to find libraries and programs with nonstandard names/locations.
1056
1057 _ACEOF
1058 fi
1059
1060 if test "$ac_init_help" = "recursive"; then
1061 # If there are subdirs, report their specific --help.
1062 ac_popdir=`pwd`
1063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1064 test -d $ac_dir || continue
1065 ac_builddir=.
1066
1067 if test "$ac_dir" != .; then
1068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1069 # A "../" for each directory in $ac_dir_suffix.
1070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071 else
1072 ac_dir_suffix= ac_top_builddir=
1073 fi
1074
1075 case $srcdir in
1076 .) # No --srcdir option. We are building in place.
1077 ac_srcdir=.
1078 if test -z "$ac_top_builddir"; then
1079 ac_top_srcdir=.
1080 else
1081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082 fi ;;
1083 [\\/]* | ?:[\\/]* ) # Absolute path.
1084 ac_srcdir=$srcdir$ac_dir_suffix;
1085 ac_top_srcdir=$srcdir ;;
1086 *) # Relative path.
1087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089 esac
1090
1091 # Do not use `cd foo && pwd` to compute absolute paths, because
1092 # the directories may not exist.
1093 case `pwd` in
1094 .) ac_abs_builddir="$ac_dir";;
1095 *)
1096 case "$ac_dir" in
1097 .) ac_abs_builddir=`pwd`;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1100 esac;;
1101 esac
1102 case $ac_abs_builddir in
1103 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1104 *)
1105 case ${ac_top_builddir}. in
1106 .) ac_abs_top_builddir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1109 esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_srcdir=$ac_srcdir;;
1113 *)
1114 case $ac_srcdir in
1115 .) ac_abs_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1118 esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1122 *)
1123 case $ac_top_srcdir in
1124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1127 esac;;
1128 esac
1129
1130 cd $ac_dir
1131 # Check for guested configure; otherwise get Cygnus style configure.
1132 if test -f $ac_srcdir/configure.gnu; then
1133 echo
1134 $SHELL $ac_srcdir/configure.gnu --help=recursive
1135 elif test -f $ac_srcdir/configure; then
1136 echo
1137 $SHELL $ac_srcdir/configure --help=recursive
1138 elif test -f $ac_srcdir/configure.ac ||
1139 test -f $ac_srcdir/configure.in; then
1140 echo
1141 $ac_configure --help
1142 else
1143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1144 fi
1145 cd $ac_popdir
1146 done
1147 fi
1148
1149 test -n "$ac_init_help" && exit 0
1150 if $ac_init_version; then
1151 cat <<\_ACEOF
1152
1153 Copyright (C) 2003 Free Software Foundation, Inc.
1154 This configure script is free software; the Free Software Foundation
1155 gives unlimited permission to copy, distribute and modify it.
1156 _ACEOF
1157 exit 0
1158 fi
1159 exec 5>config.log
1160 cat >&5 <<_ACEOF
1161 This file contains any messages produced by compilers while
1162 running configure, to aid debugging if configure makes a mistake.
1163
1164 It was created by $as_me, which was
1165 generated by GNU Autoconf 2.59. Invocation command line was
1166
1167 $ $0 $@
1168
1169 _ACEOF
1170 {
1171 cat <<_ASUNAME
1172 ## --------- ##
1173 ## Platform. ##
1174 ## --------- ##
1175
1176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1181
1182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1184
1185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1188 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1192
1193 _ASUNAME
1194
1195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1196 for as_dir in $PATH
1197 do
1198 IFS=$as_save_IFS
1199 test -z "$as_dir" && as_dir=.
1200 echo "PATH: $as_dir"
1201 done
1202
1203 } >&5
1204
1205 cat >&5 <<_ACEOF
1206
1207
1208 ## ----------- ##
1209 ## Core tests. ##
1210 ## ----------- ##
1211
1212 _ACEOF
1213
1214
1215 # Keep a trace of the command line.
1216 # Strip out --no-create and --no-recursion so they do not pile up.
1217 # Strip out --silent because we don't want to record it for future runs.
1218 # Also quote any args containing shell meta-characters.
1219 # Make two passes to allow for proper duplicate-argument suppression.
1220 ac_configure_args=
1221 ac_configure_args0=
1222 ac_configure_args1=
1223 ac_sep=
1224 ac_must_keep_next=false
1225 for ac_pass in 1 2
1226 do
1227 for ac_arg
1228 do
1229 case $ac_arg in
1230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 continue ;;
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 esac
1237 case $ac_pass in
1238 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1239 2)
1240 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1241 if test $ac_must_keep_next = true; then
1242 ac_must_keep_next=false # Got value, back to normal.
1243 else
1244 case $ac_arg in
1245 *=* | --config-cache | -C | -disable-* | --disable-* \
1246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1248 | -with-* | --with-* | -without-* | --without-* | --x)
1249 case "$ac_configure_args0 " in
1250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1251 esac
1252 ;;
1253 -* ) ac_must_keep_next=true ;;
1254 esac
1255 fi
1256 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1257 # Get rid of the leading space.
1258 ac_sep=" "
1259 ;;
1260 esac
1261 done
1262 done
1263 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1264 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1265
1266 # When interrupted or exit'd, cleanup temporary files, and complete
1267 # config.log. We remove comments because anyway the quotes in there
1268 # would cause problems or look ugly.
1269 # WARNING: Be sure not to use single quotes in there, as some shells,
1270 # such as our DU 5.0 friend, will then `close' the trap.
1271 trap 'exit_status=$?
1272 # Save into config.log some information that might help in debugging.
1273 {
1274 echo
1275
1276 cat <<\_ASBOX
1277 ## ---------------- ##
1278 ## Cache variables. ##
1279 ## ---------------- ##
1280 _ASBOX
1281 echo
1282 # The following way of writing the cache mishandles newlines in values,
1283 {
1284 (set) 2>&1 |
1285 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1286 *ac_space=\ *)
1287 sed -n \
1288 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1290 ;;
1291 *)
1292 sed -n \
1293 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1294 ;;
1295 esac;
1296 }
1297 echo
1298
1299 cat <<\_ASBOX
1300 ## ----------------- ##
1301 ## Output variables. ##
1302 ## ----------------- ##
1303 _ASBOX
1304 echo
1305 for ac_var in $ac_subst_vars
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311
1312 if test -n "$ac_subst_files"; then
1313 cat <<\_ASBOX
1314 ## ------------- ##
1315 ## Output files. ##
1316 ## ------------- ##
1317 _ASBOX
1318 echo
1319 for ac_var in $ac_subst_files
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325 fi
1326
1327 if test -s confdefs.h; then
1328 cat <<\_ASBOX
1329 ## ----------- ##
1330 ## confdefs.h. ##
1331 ## ----------- ##
1332 _ASBOX
1333 echo
1334 sed "/^$/d" confdefs.h | sort
1335 echo
1336 fi
1337 test "$ac_signal" != 0 &&
1338 echo "$as_me: caught signal $ac_signal"
1339 echo "$as_me: exit $exit_status"
1340 } >&5
1341 rm -f core *.core &&
1342 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1343 exit $exit_status
1344 ' 0
1345 for ac_signal in 1 2 13 15; do
1346 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1347 done
1348 ac_signal=0
1349
1350 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1351 rm -rf conftest* confdefs.h
1352 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1353 echo >confdefs.h
1354
1355 # Predefined preprocessor variables.
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_NAME "$PACKAGE_NAME"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_STRING "$PACKAGE_STRING"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1379 _ACEOF
1380
1381
1382 # Let the site file select an alternate cache file if it wants to.
1383 # Prefer explicitly selected file to automatically selected ones.
1384 if test -z "$CONFIG_SITE"; then
1385 if test "x$prefix" != xNONE; then
1386 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1387 else
1388 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1389 fi
1390 fi
1391 for ac_site_file in $CONFIG_SITE; do
1392 if test -r "$ac_site_file"; then
1393 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1394 echo "$as_me: loading site script $ac_site_file" >&6;}
1395 sed 's/^/| /' "$ac_site_file" >&5
1396 . "$ac_site_file"
1397 fi
1398 done
1399
1400 if test -r "$cache_file"; then
1401 # Some versions of bash will fail to source /dev/null (special
1402 # files actually), so we avoid doing that.
1403 if test -f "$cache_file"; then
1404 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1405 echo "$as_me: loading cache $cache_file" >&6;}
1406 case $cache_file in
1407 [\\/]* | ?:[\\/]* ) . $cache_file;;
1408 *) . ./$cache_file;;
1409 esac
1410 fi
1411 else
1412 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1413 echo "$as_me: creating cache $cache_file" >&6;}
1414 >$cache_file
1415 fi
1416
1417 # Check that the precious variables saved in the cache have kept the same
1418 # value.
1419 ac_cache_corrupted=false
1420 for ac_var in `(set) 2>&1 |
1421 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1423 eval ac_new_set=\$ac_env_${ac_var}_set
1424 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1425 eval ac_new_val="\$ac_env_${ac_var}_value"
1426 case $ac_old_set,$ac_new_set in
1427 set,)
1428 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1429 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1430 ac_cache_corrupted=: ;;
1431 ,set)
1432 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1433 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1434 ac_cache_corrupted=: ;;
1435 ,);;
1436 *)
1437 if test "x$ac_old_val" != "x$ac_new_val"; then
1438 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1439 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1440 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1441 echo "$as_me: former value: $ac_old_val" >&2;}
1442 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1443 echo "$as_me: current value: $ac_new_val" >&2;}
1444 ac_cache_corrupted=:
1445 fi;;
1446 esac
1447 # Pass precious variables to config.status.
1448 if test "$ac_new_set" = set; then
1449 case $ac_new_val in
1450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1452 *) ac_arg=$ac_var=$ac_new_val ;;
1453 esac
1454 case " $ac_configure_args " in
1455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1456 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1457 esac
1458 fi
1459 done
1460 if $ac_cache_corrupted; then
1461 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1462 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1463 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1464 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1465 { (exit 1); exit 1; }; }
1466 fi
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493 am__api_version="1.4"
1494 ac_aux_dir=
1495 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1508 fi
1509 done
1510 if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1514 fi
1515 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
1519 # Find a good install program. We prefer a C program (faster),
1520 # so one script is as good as another. But avoid the broken or
1521 # incompatible versions:
1522 # SysV /etc/install, /usr/sbin/install
1523 # SunOS /usr/etc/install
1524 # IRIX /sbin/install
1525 # AIX /bin/install
1526 # AmigaOS /C/install, which installs bootblocks on floppy discs
1527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1530 # OS/2's system install, which has a completely different semantic
1531 # ./install, which can be erroneously created by make from ./install.sh.
1532 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1533 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1534 if test -z "$INSTALL"; then
1535 if test "${ac_cv_path_install+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 # Account for people who put trailing slashes in PATH elements.
1544 case $as_dir/ in
1545 ./ | .// | /cC/* | \
1546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1547 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1548 /usr/ucb/* ) ;;
1549 *)
1550 # OSF1 and SCO ODT 3.0 have their own names for install.
1551 # Don't use installbsd from OSF since it installs stuff as root
1552 # by default.
1553 for ac_prog in ginstall scoinst install; do
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1556 if test $ac_prog = install &&
1557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1558 # AIX install. It has an incompatible calling convention.
1559 :
1560 elif test $ac_prog = install &&
1561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1562 # program-specific install script used by HP pwplus--don't use.
1563 :
1564 else
1565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1566 break 3
1567 fi
1568 fi
1569 done
1570 done
1571 ;;
1572 esac
1573 done
1574
1575
1576 fi
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL=$ac_cv_path_install
1579 else
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL=$ac_install_sh
1585 fi
1586 fi
1587 echo "$as_me:$LINENO: result: $INSTALL" >&5
1588 echo "${ECHO_T}$INSTALL" >&6
1589
1590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1591 # It thinks the first close brace ends the variable substitution.
1592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593
1594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1595
1596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1597
1598 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1599 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1600 # Just in case
1601 sleep 1
1602 echo timestamp > conftestfile
1603 # Do `set' in a subshell so we don't clobber the current shell's
1604 # arguments. Must try -L first in case configure is actually a
1605 # symlink; some systems play weird games with the mod time of symlinks
1606 # (eg FreeBSD returns the mod time of the symlink's containing
1607 # directory).
1608 if (
1609 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1610 if test "$*" = "X"; then
1611 # -L didn't work.
1612 set X `ls -t $srcdir/configure conftestfile`
1613 fi
1614 if test "$*" != "X $srcdir/configure conftestfile" \
1615 && test "$*" != "X conftestfile $srcdir/configure"; then
1616
1617 # If neither matched, then we have a broken ls. This can happen
1618 # if, for instance, CONFIG_SHELL is bash and it inherits a
1619 # broken ls alias from the environment. This has actually
1620 # happened. Such a system could not be considered "sane".
1621 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1622 alias in your environment" >&5
1623 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1624 alias in your environment" >&2;}
1625 { (exit 1); exit 1; }; }
1626 fi
1627
1628 test "$2" = conftestfile
1629 )
1630 then
1631 # Ok.
1632 :
1633 else
1634 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1635 Check your system clock" >&5
1636 echo "$as_me: error: newly created file is older than distributed files!
1637 Check your system clock" >&2;}
1638 { (exit 1); exit 1; }; }
1639 fi
1640 rm -f conftest*
1641 echo "$as_me:$LINENO: result: yes" >&5
1642 echo "${ECHO_T}yes" >&6
1643 test "$program_prefix" != NONE &&
1644 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1645 # Use a double $ so make ignores it.
1646 test "$program_suffix" != NONE &&
1647 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1648 # Double any \ or $. echo might interpret backslashes.
1649 # By default was `s,x,x', remove it if useless.
1650 cat <<\_ACEOF >conftest.sed
1651 s/[\\$]/&&/g;s/;s,x,x,$//
1652 _ACEOF
1653 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1654 rm conftest.sed
1655
1656 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1657 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1658 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1659 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 cat >conftest.make <<\_ACEOF
1663 all:
1664 @echo 'ac_maketemp="$(MAKE)"'
1665 _ACEOF
1666 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1667 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1668 if test -n "$ac_maketemp"; then
1669 eval ac_cv_prog_make_${ac_make}_set=yes
1670 else
1671 eval ac_cv_prog_make_${ac_make}_set=no
1672 fi
1673 rm -f conftest.make
1674 fi
1675 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1676 echo "$as_me:$LINENO: result: yes" >&5
1677 echo "${ECHO_T}yes" >&6
1678 SET_MAKE=
1679 else
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682 SET_MAKE="MAKE=${MAKE-make}"
1683 fi
1684
1685
1686 PACKAGE=yoda
1687
1688 VERSION=0.1.0
1689
1690 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1691 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1692 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE "$PACKAGE"
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define VERSION "$VERSION"
1703 _ACEOF
1704
1705
1706
1707 missing_dir=`cd $ac_aux_dir && pwd`
1708 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1709 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1710 # Run test in a subshell; some versions of sh will print an error if
1711 # an executable is not found, even if stderr is redirected.
1712 # Redirect stdin to placate older versions of autoconf. Sigh.
1713 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1714 ACLOCAL=aclocal-${am__api_version}
1715 echo "$as_me:$LINENO: result: found" >&5
1716 echo "${ECHO_T}found" >&6
1717 else
1718 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1719 echo "$as_me:$LINENO: result: missing" >&5
1720 echo "${ECHO_T}missing" >&6
1721 fi
1722
1723 echo "$as_me:$LINENO: checking for working autoconf" >&5
1724 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1725 # Run test in a subshell; some versions of sh will print an error if
1726 # an executable is not found, even if stderr is redirected.
1727 # Redirect stdin to placate older versions of autoconf. Sigh.
1728 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1729 AUTOCONF=autoconf
1730 echo "$as_me:$LINENO: result: found" >&5
1731 echo "${ECHO_T}found" >&6
1732 else
1733 AUTOCONF="$missing_dir/missing autoconf"
1734 echo "$as_me:$LINENO: result: missing" >&5
1735 echo "${ECHO_T}missing" >&6
1736 fi
1737
1738 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1739 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1740 # Run test in a subshell; some versions of sh will print an error if
1741 # an executable is not found, even if stderr is redirected.
1742 # Redirect stdin to placate older versions of autoconf. Sigh.
1743 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1744 AUTOMAKE=automake-${am__api_version}
1745 echo "$as_me:$LINENO: result: found" >&5
1746 echo "${ECHO_T}found" >&6
1747 else
1748 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1749 echo "$as_me:$LINENO: result: missing" >&5
1750 echo "${ECHO_T}missing" >&6
1751 fi
1752
1753 echo "$as_me:$LINENO: checking for working autoheader" >&5
1754 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1755 # Run test in a subshell; some versions of sh will print an error if
1756 # an executable is not found, even if stderr is redirected.
1757 # Redirect stdin to placate older versions of autoconf. Sigh.
1758 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1759 AUTOHEADER=autoheader
1760 echo "$as_me:$LINENO: result: found" >&5
1761 echo "${ECHO_T}found" >&6
1762 else
1763 AUTOHEADER="$missing_dir/missing autoheader"
1764 echo "$as_me:$LINENO: result: missing" >&5
1765 echo "${ECHO_T}missing" >&6
1766 fi
1767
1768 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1769 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1770 # Run test in a subshell; some versions of sh will print an error if
1771 # an executable is not found, even if stderr is redirected.
1772 # Redirect stdin to placate older versions of autoconf. Sigh.
1773 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1774 MAKEINFO=makeinfo
1775 echo "$as_me:$LINENO: result: found" >&5
1776 echo "${ECHO_T}found" >&6
1777 else
1778 MAKEINFO="$missing_dir/missing makeinfo"
1779 echo "$as_me:$LINENO: result: missing" >&5
1780 echo "${ECHO_T}missing" >&6
1781 fi
1782
1783
1784
1785
1786 ac_config_headers="$ac_config_headers config.h"
1787
1788 ac_config_commands="$ac_config_commands default-1"
1789
1790
1791
1792
1793 # Make sure we can run config.sub.
1794 $ac_config_sub sun4 >/dev/null 2>&1 ||
1795 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1796 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1797 { (exit 1); exit 1; }; }
1798
1799 echo "$as_me:$LINENO: checking build system type" >&5
1800 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1801 if test "${ac_cv_build+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 ac_cv_build_alias=$build_alias
1805 test -z "$ac_cv_build_alias" &&
1806 ac_cv_build_alias=`$ac_config_guess`
1807 test -z "$ac_cv_build_alias" &&
1808 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1809 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1810 { (exit 1); exit 1; }; }
1811 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1812 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1813 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1814 { (exit 1); exit 1; }; }
1815
1816 fi
1817 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1818 echo "${ECHO_T}$ac_cv_build" >&6
1819 build=$ac_cv_build
1820 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1821 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1822 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1823
1824
1825 echo "$as_me:$LINENO: checking host system type" >&5
1826 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1827 if test "${ac_cv_host+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 ac_cv_host_alias=$host_alias
1831 test -z "$ac_cv_host_alias" &&
1832 ac_cv_host_alias=$ac_cv_build_alias
1833 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1834 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1835 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1837
1838 fi
1839 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1840 echo "${ECHO_T}$ac_cv_host" >&6
1841 host=$ac_cv_host
1842 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1843 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1844 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1845
1846
1847
1848 ac_ext=c
1849 ac_cpp='$CPP $CPPFLAGS'
1850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1853 if test -n "$ac_tool_prefix"; then
1854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 CC=$ac_cv_prog_CC
1881 if test -n "$CC"; then
1882 echo "$as_me:$LINENO: result: $CC" >&5
1883 echo "${ECHO_T}$CC" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889 fi
1890 if test -z "$ac_cv_prog_CC"; then
1891 ac_ct_CC=$CC
1892 # Extract the first word of "gcc", so it can be a program name with args.
1893 set dummy gcc; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="gcc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913 done
1914 done
1915
1916 fi
1917 fi
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1925 fi
1926
1927 CC=$ac_ct_CC
1928 else
1929 CC="$ac_cv_prog_CC"
1930 fi
1931
1932 if test -z "$CC"; then
1933 if test -n "$ac_tool_prefix"; then
1934 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1935 set dummy ${ac_tool_prefix}cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_CC="${ac_tool_prefix}cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962 echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6
1964 else
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969 fi
1970 if test -z "$ac_cv_prog_CC"; then
1971 ac_ct_CC=$CC
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 if test -n "$ac_ct_CC"; then
1980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_ac_ct_CC="cc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1992 fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1999 if test -n "$ac_ct_CC"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2001 echo "${ECHO_T}$ac_ct_CC" >&6
2002 else
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007 CC=$ac_ct_CC
2008 else
2009 CC="$ac_cv_prog_CC"
2010 fi
2011
2012 fi
2013 if test -z "$CC"; then
2014 # Extract the first word of "cc", so it can be a program name with args.
2015 set dummy cc; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 if test -n "$CC"; then
2022 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 else
2024 ac_prog_rejected=no
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2033 ac_prog_rejected=yes
2034 continue
2035 fi
2036 ac_cv_prog_CC="cc"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040 done
2041 done
2042
2043 if test $ac_prog_rejected = yes; then
2044 # We found a bogon in the path, so make sure we never use it.
2045 set dummy $ac_cv_prog_CC
2046 shift
2047 if test $# != 0; then
2048 # We chose a different compiler from the bogus one.
2049 # However, it has the same basename, so the bogon will be chosen
2050 # first if we set CC to just the basename; use the full file name.
2051 shift
2052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053 fi
2054 fi
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059 echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066 fi
2067 if test -z "$CC"; then
2068 if test -n "$ac_tool_prefix"; then
2069 for ac_prog in cl
2070 do
2071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092 done
2093 done
2094
2095 fi
2096 fi
2097 CC=$ac_cv_prog_CC
2098 if test -n "$CC"; then
2099 echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6
2101 else
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2104 fi
2105
2106 test -n "$CC" && break
2107 done
2108 fi
2109 if test -z "$CC"; then
2110 ac_ct_CC=$CC
2111 for ac_prog in cl
2112 do
2113 # Extract the first word of "$ac_prog", so it can be a program name with args.
2114 set dummy $ac_prog; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2125 do
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_ac_ct_CC="$ac_prog"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2133 fi
2134 done
2135 done
2136
2137 fi
2138 fi
2139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142 echo "${ECHO_T}$ac_ct_CC" >&6
2143 else
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2146 fi
2147
2148 test -n "$ac_ct_CC" && break
2149 done
2150
2151 CC=$ac_ct_CC
2152 fi
2153
2154 fi
2155
2156
2157 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: no acceptable C compiler found in \$PATH
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2162
2163 # Provide some information about the compiler.
2164 echo "$as_me:$LINENO:" \
2165 "checking for C compiler version" >&5
2166 ac_compiler=`set X $ac_compile; echo $2`
2167 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2168 (eval $ac_compiler --version </dev/null >&5) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }
2172 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2173 (eval $ac_compiler -v </dev/null >&5) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }
2177 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2178 (eval $ac_compiler -V </dev/null >&5) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }
2182
2183 cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h. */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2189
2190 int
2191 main ()
2192 {
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 ac_clean_files_save=$ac_clean_files
2199 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2200 # Try to create an executable without -o first, disregard a.out.
2201 # It will help us diagnose broken compilers, and finding out an intuition
2202 # of exeext.
2203 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2204 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2205 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2207 (eval $ac_link_default) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # Find the output, starting from the most likely. This scheme is
2212 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2213 # resort.
2214
2215 # Be careful to initialize this variable, since it used to be cached.
2216 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2217 ac_cv_exeext=
2218 # b.out is created by i960 compilers.
2219 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2220 do
2221 test -f "$ac_file" || continue
2222 case $ac_file in
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2224 ;;
2225 conftest.$ac_ext )
2226 # This is the source file.
2227 ;;
2228 [ab].out )
2229 # We found the default executable, but exeext='' is most
2230 # certainly right.
2231 break;;
2232 *.* )
2233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234 # FIXME: I believe we export ac_cv_exeext for Libtool,
2235 # but it would be cool to find out if it's true. Does anybody
2236 # maintain Libtool? --akim.
2237 export ac_cv_exeext
2238 break;;
2239 * )
2240 break;;
2241 esac
2242 done
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&2;}
2251 { (exit 77); exit 77; }; }
2252 fi
2253
2254 ac_exeext=$ac_cv_exeext
2255 echo "$as_me:$LINENO: result: $ac_file" >&5
2256 echo "${ECHO_T}$ac_file" >&6
2257
2258 # Check the compiler produces executables we can run. If not, either
2259 # the compiler is broken, or we cross compile.
2260 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2261 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2262 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2263 # If not cross compiling, check that we can run a simple program.
2264 if test "$cross_compiling" != yes; then
2265 if { ac_try='./$ac_file'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 cross_compiling=no
2272 else
2273 if test "$cross_compiling" = maybe; then
2274 cross_compiling=yes
2275 else
2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot run C compiled programs.
2280 If you meant to cross compile, use \`--host'.
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2283 fi
2284 fi
2285 fi
2286 echo "$as_me:$LINENO: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6
2288
2289 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 # Check the compiler produces executables we can run. If not, either
2292 # the compiler is broken, or we cross compile.
2293 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2295 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296 echo "${ECHO_T}$cross_compiling" >&6
2297
2298 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2301 (eval $ac_link) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2307 # work properly (i.e., refer to `conftest.exe'), while it won't with
2308 # `rm'.
2309 for ac_file in conftest.exe conftest conftest.*; do
2310 test -f "$ac_file" || continue
2311 case $ac_file in
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314 export ac_cv_exeext
2315 break;;
2316 * ) break;;
2317 esac
2318 done
2319 else
2320 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&2;}
2324 { (exit 1); exit 1; }; }
2325 fi
2326
2327 rm -f conftest$ac_cv_exeext
2328 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2329 echo "${ECHO_T}$ac_cv_exeext" >&6
2330
2331 rm -f conftest.$ac_ext
2332 EXEEXT=$ac_cv_exeext
2333 ac_exeext=$EXEEXT
2334 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2335 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2336 if test "${ac_cv_objext+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2345
2346 int
2347 main ()
2348 {
2349
2350 ;
2351 return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.o conftest.obj
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2361 case $ac_file in
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 break;;
2365 esac
2366 done
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2376 fi
2377
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 fi
2380 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6
2382 OBJEXT=$ac_cv_objext
2383 ac_objext=$OBJEXT
2384 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389 cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2395
2396 int
2397 main ()
2398 {
2399 #ifndef __GNUC__
2400 choke me
2401 #endif
2402
2403 ;
2404 return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 ac_compiler_gnu=yes
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_compiler_gnu=no
2435 fi
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2438
2439 fi
2440 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2441 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2442 GCC=`test $ac_compiler_gnu = yes && echo yes`
2443 ac_test_CFLAGS=${CFLAGS+set}
2444 ac_save_CFLAGS=$CFLAGS
2445 CFLAGS="-g"
2446 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2448 if test "${ac_cv_prog_cc_g+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457
2458 int
2459 main ()
2460 {
2461
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_prog_cc_g=yes
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_cv_prog_cc_g=no
2494 fi
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2498 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2499 if test "$ac_test_CFLAGS" = set; then
2500 CFLAGS=$ac_save_CFLAGS
2501 elif test $ac_cv_prog_cc_g = yes; then
2502 if test "$GCC" = yes; then
2503 CFLAGS="-g -O2"
2504 else
2505 CFLAGS="-g"
2506 fi
2507 else
2508 if test "$GCC" = yes; then
2509 CFLAGS="-O2"
2510 else
2511 CFLAGS=
2512 fi
2513 fi
2514 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2515 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2516 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 ac_cv_prog_cc_stdc=no
2520 ac_save_CC=$CC
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <stdarg.h>
2528 #include <stdio.h>
2529 #include <sys/types.h>
2530 #include <sys/stat.h>
2531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2532 struct buf { int x; };
2533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2534 static char *e (p, i)
2535 char **p;
2536 int i;
2537 {
2538 return p[i];
2539 }
2540 static char *f (char * (*g) (char **, int), char **p, ...)
2541 {
2542 char *s;
2543 va_list v;
2544 va_start (v,p);
2545 s = g (p, va_arg (v,int));
2546 va_end (v);
2547 return s;
2548 }
2549
2550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2551 function prototypes and stuff, but not '\xHH' hex character constants.
2552 These don't provoke an error unfortunately, instead are silently treated
2553 as 'x'. The following induces an error, until -std1 is added to get
2554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2555 array size at least. It's necessary to write '\x00'==0 to get something
2556 that's true only with -std1. */
2557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2558
2559 int test (int i, double x);
2560 struct s1 {int (*f) (int a);};
2561 struct s2 {int (*f) (double a);};
2562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2563 int argc;
2564 char **argv;
2565 int
2566 main ()
2567 {
2568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 # Don't try gcc -ansi; that turns off useful extensions and
2574 # breaks some systems' header files.
2575 # AIX -qlanglvl=ansi
2576 # Ultrix and OSF/1 -std1
2577 # HP-UX 10.20 and later -Ae
2578 # HP-UX older versions -Aa -D_HPUX_SOURCE
2579 # SVR4 -Xc -D__EXTENSIONS__
2580 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2581 do
2582 CC="$ac_save_CC $ac_arg"
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_c_werror_flag"
2593 || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 ac_cv_prog_cc_stdc=$ac_arg
2606 break
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 fi
2612 rm -f conftest.err conftest.$ac_objext
2613 done
2614 rm -f conftest.$ac_ext conftest.$ac_objext
2615 CC=$ac_save_CC
2616
2617 fi
2618
2619 case "x$ac_cv_prog_cc_stdc" in
2620 x|xno)
2621 echo "$as_me:$LINENO: result: none needed" >&5
2622 echo "${ECHO_T}none needed" >&6 ;;
2623 *)
2624 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2625 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2626 CC="$CC $ac_cv_prog_cc_stdc" ;;
2627 esac
2628
2629 # Some people use a C++ compiler to compile C. Since we use `exit',
2630 # in C++ we need to declare it. In case someone uses the same compiler
2631 # for both compiling C and C++ we need to have the C++ compiler decide
2632 # the declaration of exit, since it's the most demanding environment.
2633 cat >conftest.$ac_ext <<_ACEOF
2634 #ifndef __cplusplus
2635 choke me
2636 #endif
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>conftest.er1
2641 ac_status=$?
2642 grep -v '^ *+' conftest.er1 >conftest.err
2643 rm -f conftest.er1
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_c_werror_flag"
2648 || test ! -s conftest.err'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 (eval $ac_try) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 for ac_declaration in \
2661 '' \
2662 'extern "C" void std::exit (int) throw (); using std::exit;' \
2663 'extern "C" void std::exit (int); using std::exit;' \
2664 'extern "C" void exit (int) throw ();' \
2665 'extern "C" void exit (int);' \
2666 'void exit (int);'
2667 do
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h. */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2674 $ac_declaration
2675 #include <stdlib.h>
2676 int
2677 main ()
2678 {
2679 exit (42);
2680 ;
2681 return 0;
2682 }
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -z "$ac_c_werror_flag"
2694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 :
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 continue
2712 fi
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720 $ac_declaration
2721 int
2722 main ()
2723 {
2724 exit (42);
2725 ;
2726 return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 break
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 fi
2757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 done
2759 rm -f conftest*
2760 if test -n "$ac_declaration"; then
2761 echo '#ifdef __cplusplus' >>confdefs.h
2762 echo $ac_declaration >>confdefs.h
2763 echo '#endif' >>confdefs.h
2764 fi
2765
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 fi
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778
2779 ac_ext=f
2780 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2781 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in f77 fort77 g77
2785 do
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_F77+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$F77"; then
2794 ac_cv_prog_F77="$F77" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809
2810 fi
2811 fi
2812 F77=$ac_cv_prog_F77
2813 if test -n "$F77"; then
2814 echo "$as_me:$LINENO: result: $F77" >&5
2815 echo "${ECHO_T}$F77" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 test -n "$F77" && break
2822 done
2823 fi
2824 if test -z "$F77"; then
2825 ac_ct_F77=$F77
2826 for ac_prog in f77 fort77 g77
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$ac_ct_F77"; then
2836 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_ac_ct_F77="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851
2852 fi
2853 fi
2854 ac_ct_F77=$ac_cv_prog_ac_ct_F77
2855 if test -n "$ac_ct_F77"; then
2856 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
2857 echo "${ECHO_T}$ac_ct_F77" >&6
2858 else
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2861 fi
2862
2863 test -n "$ac_ct_F77" && break
2864 done
2865
2866 F77=$ac_ct_F77
2867 fi
2868
2869
2870 # Provide some information about the compiler.
2871 echo "$as_me:2871:" \
2872 "checking for Fortran 77 compiler version" >&5
2873 ac_compiler=`set X $ac_compile; echo $2`
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2875 (eval $ac_compiler --version </dev/null >&5) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2879 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2880 (eval $ac_compiler -v </dev/null >&5) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2885 (eval $ac_compiler -V </dev/null >&5) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889 rm -f a.out
2890
2891 # If we don't use `.F' as extension, the preprocessor is not run on the
2892 # input file. (Note that this only needs to work for GNU compilers.)
2893 ac_save_ext=$ac_ext
2894 ac_ext=F
2895 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2896 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2897 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 cat >conftest.$ac_ext <<_ACEOF
2901 program main
2902 #ifndef __GNUC__
2903 choke me
2904 #endif
2905
2906 end
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -z "$ac_f77_werror_flag"
2918 || test ! -s conftest.err'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; } &&
2924 { ac_try='test -s conftest.$ac_objext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_compiler_gnu=yes
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 ac_compiler_gnu=no
2936 fi
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2938 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2939
2940 fi
2941 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2942 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2943 ac_ext=$ac_save_ext
2944 ac_test_FFLAGS=${FFLAGS+set}
2945 ac_save_FFLAGS=$FFLAGS
2946 FFLAGS=
2947 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2948 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2949 if test "${ac_cv_prog_f77_g+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 FFLAGS=-g
2953 cat >conftest.$ac_ext <<_ACEOF
2954 program main
2955
2956 end
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -z "$ac_f77_werror_flag"
2968 || test ! -s conftest.err'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_cv_prog_f77_g=yes
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 ac_cv_prog_f77_g=no
2986 fi
2987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2988
2989 fi
2990 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2991 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2992 if test "$ac_test_FFLAGS" = set; then
2993 FFLAGS=$ac_save_FFLAGS
2994 elif test $ac_cv_prog_f77_g = yes; then
2995 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2996 FFLAGS="-g -O2"
2997 else
2998 FFLAGS="-g"
2999 fi
3000 else
3001 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3002 FFLAGS="-O2"
3003 else
3004 FFLAGS=
3005 fi
3006 fi
3007
3008 G77=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014
3015
3016
3017 ac_ext=f
3018 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3019 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3021 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3022 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3023 if test "${ac_cv_prog_f77_v+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 program main
3028
3029 end
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_f77_werror_flag"
3041 || test ! -s conftest.err'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_f77_v=
3054 # Try some options frequently used verbose output
3055 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3056 cat >conftest.$ac_ext <<_ACEOF
3057 program main
3058
3059 end
3060 _ACEOF
3061
3062 # Compile and link our simple test program by passing a flag (argument
3063 # 1 to this macro) to the Fortran compiler in order to get
3064 # "verbose" output that we can then parse for the Fortran linker
3065 # flags.
3066 ac_save_FFLAGS=$FFLAGS
3067 FFLAGS="$FFLAGS $ac_verb"
3068 (eval echo $as_me:3068: \"$ac_link\") >&5
3069 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3070 echo "$ac_f77_v_output" >&5
3071 FFLAGS=$ac_save_FFLAGS
3072
3073 rm -f conftest*
3074
3075 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3076 # /foo, /bar, and /baz are search directories for the Fortran linker.
3077 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3078 ac_f77_v_output="`echo $ac_f77_v_output |
3079 grep 'LPATH is:' |
3080 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3081
3082 case $ac_f77_v_output in
3083 # If we are using xlf then replace all the commas with spaces.
3084 *xlfentry*)
3085 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3086
3087 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3088 # $LIBS confuse us, and the libraries appear later in the output anyway).
3089 *mGLOB_options_string*)
3090 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3091
3092 # If we are using Cray Fortran then delete quotes.
3093 # Use "\"" instead of '"' for font-lock-mode.
3094 # FIXME: a more general fix for quoted arguments with spaces?
3095 *cft90*)
3096 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3097 esac
3098
3099
3100 # look for -l* and *.a constructs in the output
3101 for ac_arg in $ac_f77_v_output; do
3102 case $ac_arg in
3103 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3104 ac_cv_prog_f77_v=$ac_verb
3105 break 2 ;;
3106 esac
3107 done
3108 done
3109 if test -z "$ac_cv_prog_f77_v"; then
3110 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3111 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3112 fi
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3118 echo "$as_me: WARNING: compilation failed" >&2;}
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121
3122 fi
3123 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3124 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3125 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3126 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3127 if test "${ac_cv_f77_libs+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test "x$FLIBS" != "x"; then
3131 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3132 else
3133
3134 cat >conftest.$ac_ext <<_ACEOF
3135 program main
3136
3137 end
3138 _ACEOF
3139
3140 # Compile and link our simple test program by passing a flag (argument
3141 # 1 to this macro) to the Fortran compiler in order to get
3142 # "verbose" output that we can then parse for the Fortran linker
3143 # flags.
3144 ac_save_FFLAGS=$FFLAGS
3145 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3146 (eval echo $as_me:3146: \"$ac_link\") >&5
3147 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3148 echo "$ac_f77_v_output" >&5
3149 FFLAGS=$ac_save_FFLAGS
3150
3151 rm -f conftest*
3152
3153 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3154 # /foo, /bar, and /baz are search directories for the Fortran linker.
3155 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3156 ac_f77_v_output="`echo $ac_f77_v_output |
3157 grep 'LPATH is:' |
3158 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3159
3160 case $ac_f77_v_output in
3161 # If we are using xlf then replace all the commas with spaces.
3162 *xlfentry*)
3163 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3164
3165 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3166 # $LIBS confuse us, and the libraries appear later in the output anyway).
3167 *mGLOB_options_string*)
3168 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3169
3170 # If we are using Cray Fortran then delete quotes.
3171 # Use "\"" instead of '"' for font-lock-mode.
3172 # FIXME: a more general fix for quoted arguments with spaces?
3173 *cft90*)
3174 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3175 esac
3176
3177
3178
3179 ac_cv_f77_libs=
3180
3181 # Save positional arguments (if any)
3182 ac_save_positional="$@"
3183
3184 set X $ac_f77_v_output
3185 while test $# != 1; do
3186 shift
3187 ac_arg=$1
3188 case $ac_arg in
3189 [\\/]*.a | ?:[\\/]*.a)
3190 ac_exists=false
3191 for ac_i in $ac_cv_f77_libs; do
3192 if test x"$ac_arg" = x"$ac_i"; then
3193 ac_exists=true
3194 break
3195 fi
3196 done
3197
3198 if test x"$ac_exists" = xtrue; then
3199 :
3200 else
3201 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3202 fi
3203
3204 ;;
3205 -bI:*)
3206 ac_exists=false
3207 for ac_i in $ac_cv_f77_libs; do
3208 if test x"$ac_arg" = x"$ac_i"; then
3209 ac_exists=true
3210 break
3211 fi
3212 done
3213
3214 if test x"$ac_exists" = xtrue; then
3215 :
3216 else
3217 if test "$ac_compiler_gnu" = yes; then
3218 for ac_link_opt in $ac_arg; do
3219 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
3220 done
3221 else
3222 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3223 fi
3224 fi
3225
3226 ;;
3227 # Ignore these flags.
3228 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
3229 ;;
3230 -lkernel32)
3231 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3232 ;;
3233 -[LRuY])
3234 # These flags, when seen by themselves, take an argument.
3235 # We remove the space between option and argument and re-iterate
3236 # unless we find an empty arg or a new option (starting with -)
3237 case $2 in
3238 "" | -*);;
3239 *)
3240 ac_arg="$ac_arg$2"
3241 shift; shift
3242 set X $ac_arg "$@"
3243 ;;
3244 esac
3245 ;;
3246 -YP,*)
3247 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3248 ac_exists=false
3249 for ac_i in $ac_cv_f77_libs; do
3250 if test x"$ac_j" = x"$ac_i"; then
3251 ac_exists=true
3252 break
3253 fi
3254 done
3255
3256 if test x"$ac_exists" = xtrue; then
3257 :
3258 else
3259 ac_arg="$ac_arg $ac_j"
3260 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
3261 fi
3262
3263 done
3264 ;;
3265 -[lLR]*)
3266 ac_exists=false
3267 for ac_i in $ac_cv_f77_libs; do
3268 if test x"$ac_arg" = x"$ac_i"; then
3269 ac_exists=true
3270 break
3271 fi
3272 done
3273
3274 if test x"$ac_exists" = xtrue; then
3275 :
3276 else
3277 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3278 fi
3279
3280 ;;
3281 # Ignore everything else.
3282 esac
3283 done
3284 # restore positional arguments
3285 set X $ac_save_positional; shift
3286
3287 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3288 # then we insist that the "run path" must be an absolute path (i.e. it
3289 # must begin with a "/").
3290 case `(uname -sr) 2>/dev/null` in
3291 "SunOS 5"*)
3292 ac_ld_run_path=`echo $ac_f77_v_output |
3293 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3294 test "x$ac_ld_run_path" != x &&
3295 if test "$ac_compiler_gnu" = yes; then
3296 for ac_link_opt in $ac_ld_run_path; do
3297 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
3298 done
3299 else
3300 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
3301 fi
3302 ;;
3303 esac
3304 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
3305
3306 fi
3307 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
3308 echo "${ECHO_T}$ac_cv_f77_libs" >&6
3309 FLIBS="$ac_cv_f77_libs"
3310
3311
3312 ac_ext=c
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318
3319
3320 ac_ext=cc
3321 ac_cpp='$CXXCPP $CPPFLAGS'
3322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3325 if test -n "$ac_tool_prefix"; then
3326 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3327 do
3328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_CXX+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 if test -n "$CXX"; then
3336 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351
3352 fi
3353 fi
3354 CXX=$ac_cv_prog_CXX
3355 if test -n "$CXX"; then
3356 echo "$as_me:$LINENO: result: $CXX" >&5
3357 echo "${ECHO_T}$CXX" >&6
3358 else
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362
3363 test -n "$CXX" && break
3364 done
3365 fi
3366 if test -z "$CXX"; then
3367 ac_ct_CXX=$CXX
3368 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3369 do
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy $ac_prog; ac_word=$2
3372 echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if test -n "$ac_ct_CXX"; then
3378 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_ac_ct_CXX="$ac_prog"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393
3394 fi
3395 fi
3396 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3397 if test -n "$ac_ct_CXX"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3399 echo "${ECHO_T}$ac_ct_CXX" >&6
3400 else
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3403 fi
3404
3405 test -n "$ac_ct_CXX" && break
3406 done
3407 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3408
3409 CXX=$ac_ct_CXX
3410 fi
3411
3412
3413 # Provide some information about the compiler.
3414 echo "$as_me:$LINENO:" \
3415 "checking for C++ compiler version" >&5
3416 ac_compiler=`set X $ac_compile; echo $2`
3417 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3418 (eval $ac_compiler --version </dev/null >&5) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }
3422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3423 (eval $ac_compiler -v </dev/null >&5) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }
3427 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3428 (eval $ac_compiler -V </dev/null >&5) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }
3432
3433 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3434 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3435 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444
3445 int
3446 main ()
3447 {
3448 #ifndef __GNUC__
3449 choke me
3450 #endif
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>conftest.er1
3459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try='test -z "$ac_cxx_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 ac_compiler_gnu=yes
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 ac_compiler_gnu=no
3484 fi
3485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3487
3488 fi
3489 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3491 GXX=`test $ac_compiler_gnu = yes && echo yes`
3492 ac_test_CXXFLAGS=${CXXFLAGS+set}
3493 ac_save_CXXFLAGS=$CXXFLAGS
3494 CXXFLAGS="-g"
3495 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3496 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3497 if test "${ac_cv_prog_cxx_g+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_prog_cxx_g=yes
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 ac_cv_prog_cxx_g=no
3543 fi
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3547 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3548 if test "$ac_test_CXXFLAGS" = set; then
3549 CXXFLAGS=$ac_save_CXXFLAGS
3550 elif test $ac_cv_prog_cxx_g = yes; then
3551 if test "$GXX" = yes; then
3552 CXXFLAGS="-g -O2"
3553 else
3554 CXXFLAGS="-g"
3555 fi
3556 else
3557 if test "$GXX" = yes; then
3558 CXXFLAGS="-O2"
3559 else
3560 CXXFLAGS=
3561 fi
3562 fi
3563 for ac_declaration in \
3564 '' \
3565 'extern "C" void std::exit (int) throw (); using std::exit;' \
3566 'extern "C" void std::exit (int); using std::exit;' \
3567 'extern "C" void exit (int) throw ();' \
3568 'extern "C" void exit (int);' \
3569 'void exit (int);'
3570 do
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 $ac_declaration
3578 #include <stdlib.h>
3579 int
3580 main ()
3581 {
3582 exit (42);
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 rm -f conftest.$ac_objext
3588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589 (eval $ac_compile) 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try='test -z "$ac_cxx_werror_flag"
3597 || test ! -s conftest.err'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; } &&
3603 { ac_try='test -s conftest.$ac_objext'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 :
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 continue
3615 fi
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 $ac_declaration
3624 int
3625 main ()
3626 {
3627 exit (42);
3628 ;
3629 return 0;
3630 }
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_cxx_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 break
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 fi
3660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3661 done
3662 rm -f conftest*
3663 if test -n "$ac_declaration"; then
3664 echo '#ifdef __cplusplus' >>confdefs.h
3665 echo $ac_declaration >>confdefs.h
3666 echo '#endif' >>confdefs.h
3667 fi
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675 # Check whether --enable-shared or --disable-shared was given.
3676 if test "${enable_shared+set}" = set; then
3677 enableval="$enable_shared"
3678 p=${PACKAGE-default}
3679 case $enableval in
3680 yes) enable_shared=yes ;;
3681 no) enable_shared=no ;;
3682 *)
3683 enable_shared=no
3684 # Look at the argument we got. We use all the common list separators.
3685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3686 for pkg in $enableval; do
3687 if test "X$pkg" = "X$p"; then
3688 enable_shared=yes
3689 fi
3690 done
3691 IFS="$ac_save_ifs"
3692 ;;
3693 esac
3694 else
3695 enable_shared=yes
3696 fi;
3697 # Check whether --enable-static or --disable-static was given.
3698 if test "${enable_static+set}" = set; then
3699 enableval="$enable_static"
3700 p=${PACKAGE-default}
3701 case $enableval in
3702 yes) enable_static=yes ;;
3703 no) enable_static=no ;;
3704 *)
3705 enable_static=no
3706 # Look at the argument we got. We use all the common list separators.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3710 enable_static=yes
3711 fi
3712 done
3713 IFS="$ac_save_ifs"
3714 ;;
3715 esac
3716 else
3717 enable_static=yes
3718 fi;
3719 # Check whether --enable-fast-install or --disable-fast-install was given.
3720 if test "${enable_fast_install+set}" = set; then
3721 enableval="$enable_fast_install"
3722 p=${PACKAGE-default}
3723 case $enableval in
3724 yes) enable_fast_install=yes ;;
3725 no) enable_fast_install=no ;;
3726 *)
3727 enable_fast_install=no
3728 # Look at the argument we got. We use all the common list separators.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3732 enable_fast_install=yes
3733 fi
3734 done
3735 IFS="$ac_save_ifs"
3736 ;;
3737 esac
3738 else
3739 enable_fast_install=yes
3740 fi;
3741 # Find the correct PATH separator. Usually this is `:', but
3742 # DJGPP uses `;' like DOS.
3743 if test "X${PATH_SEPARATOR+set}" != Xset; then
3744 UNAME=${UNAME-`uname 2>/dev/null`}
3745 case X$UNAME in
3746 *-DOS) lt_cv_sys_path_separator=';' ;;
3747 *) lt_cv_sys_path_separator=':' ;;
3748 esac
3749 PATH_SEPARATOR=$lt_cv_sys_path_separator
3750 fi
3751
3752
3753 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3754 if test "${with_gnu_ld+set}" = set; then
3755 withval="$with_gnu_ld"
3756 test "$withval" = no || with_gnu_ld=yes
3757 else
3758 with_gnu_ld=no
3759 fi;
3760 ac_prog=ld
3761 if test "$GCC" = yes; then
3762 # Check if gcc -print-prog-name=ld gives a path.
3763 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3764 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3765 case $host in
3766 *-*-mingw*)
3767 # gcc leaves a trailing carriage return which upsets mingw
3768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3769 *)
3770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3771 esac
3772 case $ac_prog in
3773 # Accept absolute paths.
3774 [\\/]* | [A-Za-z]:[\\/]*)
3775 re_direlt='/[^/][^/]*/\.\./'
3776 # Canonicalize the path of ld
3777 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3778 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3779 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3780 done
3781 test -z "$LD" && LD="$ac_prog"
3782 ;;
3783 "")
3784 # If it fails, then pretend we aren't using GCC.
3785 ac_prog=ld
3786 ;;
3787 *)
3788 # If it is relative, then search for the first ld in PATH.
3789 with_gnu_ld=unknown
3790 ;;
3791 esac
3792 elif test "$with_gnu_ld" = yes; then
3793 echo "$as_me:$LINENO: checking for GNU ld" >&5
3794 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3795 else
3796 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3797 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3798 fi
3799 if test "${lt_cv_path_LD+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -z "$LD"; then
3803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3804 for ac_dir in $PATH; do
3805 test -z "$ac_dir" && ac_dir=.
3806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3807 lt_cv_path_LD="$ac_dir/$ac_prog"
3808 # Check to see if the program is GNU ld. I'd rather use --version,
3809 # but apparently some GNU ld's only accept -v.
3810 # Break only if it was the GNU/non-GNU ld that we prefer.
3811 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3812 test "$with_gnu_ld" != no && break
3813 else
3814 test "$with_gnu_ld" != yes && break
3815 fi
3816 fi
3817 done
3818 IFS="$ac_save_ifs"
3819 else
3820 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3821 fi
3822 fi
3823
3824 LD="$lt_cv_path_LD"
3825 if test -n "$LD"; then
3826 echo "$as_me:$LINENO: result: $LD" >&5
3827 echo "${ECHO_T}$LD" >&6
3828 else
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3831 fi
3832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3834 { (exit 1); exit 1; }; }
3835 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3837 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3841 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3842 lt_cv_prog_gnu_ld=yes
3843 else
3844 lt_cv_prog_gnu_ld=no
3845 fi
3846 fi
3847 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3848 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3849 with_gnu_ld=$lt_cv_prog_gnu_ld
3850
3851
3852 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3853 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3854 if test "${lt_cv_ld_reload_flag+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 lt_cv_ld_reload_flag='-r'
3858 fi
3859 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3860 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3861 reload_flag=$lt_cv_ld_reload_flag
3862 test -n "$reload_flag" && reload_flag=" $reload_flag"
3863
3864 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3865 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3866 if test "${lt_cv_path_NM+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if test -n "$NM"; then
3870 # Let the user override the test.
3871 lt_cv_path_NM="$NM"
3872 else
3873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3874 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3875 test -z "$ac_dir" && ac_dir=.
3876 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3877 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3878 # Check to see if the nm accepts a BSD-compat flag.
3879 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3880 # nm: unknown option "B" ignored
3881 # Tru64's nm complains that /dev/null is an invalid object file
3882 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3883 lt_cv_path_NM="$tmp_nm -B"
3884 break
3885 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3886 lt_cv_path_NM="$tmp_nm -p"
3887 break
3888 else
3889 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3890 continue # so that we can try to find one that supports BSD flags
3891 fi
3892 fi
3893 done
3894 IFS="$ac_save_ifs"
3895 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3896 fi
3897 fi
3898
3899 NM="$lt_cv_path_NM"
3900 echo "$as_me:$LINENO: result: $NM" >&5
3901 echo "${ECHO_T}$NM" >&6
3902
3903 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3905 if test "${lt_cv_path_SED+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 # Loop through the user's path and test for sed and gsed.
3909 # Then use that list of sed's as ones to test for truncation.
3910 as_executable_p="test -f"
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in sed gsed; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3919 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3920 fi
3921 done
3922 done
3923 done
3924
3925 # Create a temporary directory, and hook for its removal unless debugging.
3926 $debug ||
3927 {
3928 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3929 trap '{ (exit 1); exit 1; }' 1 2 13 15
3930 }
3931
3932 # Create a (secure) tmp directory for tmp files.
3933 : ${TMPDIR=/tmp}
3934 {
3935 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3936 test -n "$tmp" && test -d "$tmp"
3937 } ||
3938 {
3939 tmp=$TMPDIR/sed$$-$RANDOM
3940 (umask 077 && mkdir $tmp)
3941 } ||
3942 {
3943 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3944 { (exit 1); exit 1; }
3945 }
3946 _max=0
3947 _count=0
3948 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3949 # along with /bin/sed that truncates output.
3950 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3951 test ! -f ${_sed} && break
3952 cat /dev/null > "$tmp/sed.in"
3953 _count=0
3954 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3955 # Check for GNU sed and select it if it is found.
3956 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3957 lt_cv_path_SED=${_sed}
3958 break
3959 fi
3960 while true; do
3961 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3962 mv "$tmp/sed.tmp" "$tmp/sed.in"
3963 cp "$tmp/sed.in" "$tmp/sed.nl"
3964 echo >>"$tmp/sed.nl"
3965 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3966 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3967 # 40000 chars as input seems more than enough
3968 test $_count -gt 10 && break
3969 _count=`expr $_count + 1`
3970 if test $_count -gt $_max; then
3971 _max=$_count
3972 lt_cv_path_SED=$_sed
3973 fi
3974 done
3975 done
3976 rm -rf "$tmp"
3977
3978 fi
3979
3980 if test "X$SED" != "X"; then
3981 lt_cv_path_SED=$SED
3982 else
3983 SED=$lt_cv_path_SED
3984 fi
3985 echo "$as_me:$LINENO: result: $SED" >&5
3986 echo "${ECHO_T}$SED" >&6
3987
3988 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3989 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3990 LN_S=$as_ln_s
3991 if test "$LN_S" = "ln -s"; then
3992 echo "$as_me:$LINENO: result: yes" >&5
3993 echo "${ECHO_T}yes" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3996 echo "${ECHO_T}no, using $LN_S" >&6
3997 fi
3998
3999 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4000 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4001 if test "${lt_cv_deplibs_check_method+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 lt_cv_file_magic_cmd='$MAGIC_CMD'
4005 lt_cv_file_magic_test_file=
4006 lt_cv_deplibs_check_method='unknown'
4007 # Need to set the preceding variable on all platforms that support
4008 # interlibrary dependencies.
4009 # 'none' -- dependencies not supported.
4010 # `unknown' -- same as none, but documents that we really don't know.
4011 # 'pass_all' -- all dependencies passed with no checks.
4012 # 'test_compile' -- check by making test program.
4013 # 'file_magic [[regex]]' -- check by looking for files in library path
4014 # which responds to the $file_magic_cmd with a given egrep regex.
4015 # If you have `file' or equivalent on your system and you're not sure
4016 # whether `pass_all' will *always* work, you probably want this one.
4017
4018 case $host_os in
4019 aix4* | aix5*)
4020 lt_cv_deplibs_check_method=pass_all
4021 ;;
4022
4023 beos*)
4024 lt_cv_deplibs_check_method=pass_all
4025 ;;
4026
4027 bsdi4*)
4028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4029 lt_cv_file_magic_cmd='/usr/bin/file -L'
4030 lt_cv_file_magic_test_file=/shlib/libc.so
4031 ;;
4032
4033 cygwin* | mingw* | pw32*)
4034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4035 lt_cv_file_magic_cmd='$OBJDUMP -f'
4036 ;;
4037
4038 darwin* | rhapsody*)
4039 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4040 lt_cv_file_magic_cmd='/usr/bin/file -L'
4041 case "$host_os" in
4042 rhapsody* | darwin1.[012])
4043 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4044 ;;
4045 *) # Darwin 1.3 on
4046 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4047 ;;
4048 esac
4049 ;;
4050
4051 freebsd*)
4052 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4053 case $host_cpu in
4054 i*86 )
4055 # Not sure whether the presence of OpenBSD here was a mistake.
4056 # Let's accept both of them until this is cleared up.
4057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4058 lt_cv_file_magic_cmd=/usr/bin/file
4059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4060 ;;
4061 esac
4062 else
4063 lt_cv_deplibs_check_method=pass_all
4064 fi
4065 ;;
4066
4067 gnu*)
4068 lt_cv_deplibs_check_method=pass_all
4069 ;;
4070
4071 hpux10.20*|hpux11*)
4072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4073 lt_cv_file_magic_cmd=/usr/bin/file
4074 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4075 ;;
4076
4077 irix5* | irix6* | nonstopux*)
4078 case $host_os in
4079 irix5* | nonstopux*)
4080 # this will be overridden with pass_all, but let us keep it just in case
4081 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4082 ;;
4083 *)
4084 case $LD in
4085 *-32|*"-32 ") libmagic=32-bit;;
4086 *-n32|*"-n32 ") libmagic=N32;;
4087 *-64|*"-64 ") libmagic=64-bit;;
4088 *) libmagic=never-match;;
4089 esac
4090 # this will be overridden with pass_all, but let us keep it just in case
4091 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4092 ;;
4093 esac
4094 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4095 lt_cv_deplibs_check_method=pass_all
4096 ;;
4097
4098 # This must be Linux ELF.
4099 linux-gnu*)
4100 case $host_cpu in
4101 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
4102 lt_cv_deplibs_check_method=pass_all ;;
4103 *)
4104 # glibc up to 2.1.1 does not perform some relocations on ARM
4105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4106 esac
4107 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4108 ;;
4109
4110 netbsd*)
4111 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4112 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4113 else
4114 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4115 fi
4116 ;;
4117
4118 newos6*)
4119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4120 lt_cv_file_magic_cmd=/usr/bin/file
4121 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4122 ;;
4123
4124 openbsd*)
4125 lt_cv_file_magic_cmd=/usr/bin/file
4126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4129 else
4130 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4131 fi
4132 ;;
4133
4134 osf3* | osf4* | osf5*)
4135 # this will be overridden with pass_all, but let us keep it just in case
4136 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4137 lt_cv_file_magic_test_file=/shlib/libc.so
4138 lt_cv_deplibs_check_method=pass_all
4139 ;;
4140
4141 sco3.2v5*)
4142 lt_cv_deplibs_check_method=pass_all
4143 ;;
4144
4145 solaris*)
4146 lt_cv_deplibs_check_method=pass_all
4147 lt_cv_file_magic_test_file=/lib/libc.so
4148 ;;
4149
4150 sysv5uw[78]* | sysv4*uw2*)
4151 lt_cv_deplibs_check_method=pass_all
4152 ;;
4153
4154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4155 case $host_vendor in
4156 motorola)
4157 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]'
4158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4159 ;;
4160 ncr)
4161 lt_cv_deplibs_check_method=pass_all
4162 ;;
4163 sequent)
4164 lt_cv_file_magic_cmd='/bin/file'
4165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4166 ;;
4167 sni)
4168 lt_cv_file_magic_cmd='/bin/file'
4169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4170 lt_cv_file_magic_test_file=/lib/libc.so
4171 ;;
4172 siemens)
4173 lt_cv_deplibs_check_method=pass_all
4174 ;;
4175 esac
4176 ;;
4177 esac
4178
4179 fi
4180 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4181 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4182 file_magic_cmd=$lt_cv_file_magic_cmd
4183 deplibs_check_method=$lt_cv_deplibs_check_method
4184
4185
4186
4187
4188
4189
4190
4191
4192 # Check for command to grab the raw symbol name followed by C symbol from nm.
4193 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4194 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4195 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198
4199 # These are sane defaults that work on at least a few old systems.
4200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4201
4202 # Character class describing NM global symbol codes.
4203 symcode='[BCDEGRST]'
4204
4205 # Regexp to match symbols that can be accessed directly from C.
4206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4207
4208 # Transform the above into a raw symbol and a C symbol.
4209 symxfrm='\1 \2\3 \3'
4210
4211 # Transform an extracted symbol line into a proper C declaration
4212 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4213
4214 # Transform an extracted symbol line into symbol name and symbol address
4215 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'"
4216
4217 # Define system-specific variables.
4218 case $host_os in
4219 aix*)
4220 symcode='[BCDT]'
4221 ;;
4222 cygwin* | mingw* | pw32*)
4223 symcode='[ABCDGISTW]'
4224 ;;
4225 hpux*) # Its linker distinguishes data from code symbols
4226 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4227 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'"
4228 ;;
4229 irix* | nonstopux*)
4230 symcode='[BCDEGRST]'
4231 ;;
4232 osf*)
4233 symcode='[BCDEGQRST]'
4234 ;;
4235 solaris* | sysv5*)
4236 symcode='[BDT]'
4237 ;;
4238 sysv4)
4239 symcode='[DFNSTU]'
4240 ;;
4241 esac
4242
4243 # Handle CRLF in mingw tool chain
4244 opt_cr=
4245 case $host_os in
4246 mingw*)
4247 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4248 ;;
4249 esac
4250
4251 # If we're using GNU nm, then use its standard symbol codes.
4252 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4253 symcode='[ABCDGISTW]'
4254 fi
4255
4256 # Try without a prefix undercore, then with it.
4257 for ac_symprfx in "" "_"; do
4258
4259 # Write the raw and C identifiers.
4260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4261
4262 # Check to see that the pipe works correctly.
4263 pipe_works=no
4264 rm -f conftest*
4265 cat > conftest.$ac_ext <<EOF
4266 #ifdef __cplusplus
4267 extern "C" {
4268 #endif
4269 char nm_test_var;
4270 void nm_test_func(){}
4271 #ifdef __cplusplus
4272 }
4273 #endif
4274 int main(){nm_test_var='a';nm_test_func();return(0);}
4275 EOF
4276
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; then
4282 # Now try to grab the symbols.
4283 nlist=conftest.nm
4284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && test -s "$nlist"; then
4289 # Try sorting and uniquifying the output.
4290 if sort "$nlist" | uniq > "$nlist"T; then
4291 mv -f "$nlist"T "$nlist"
4292 else
4293 rm -f "$nlist"T
4294 fi
4295
4296 # Make sure that we snagged all the symbols we need.
4297 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4298 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4299 cat <<EOF > conftest.$ac_ext
4300 #ifdef __cplusplus
4301 extern "C" {
4302 #endif
4303
4304 EOF
4305 # Now generate the symbol file.
4306 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4307
4308 cat <<EOF >> conftest.$ac_ext
4309 #if defined (__STDC__) && __STDC__
4310 # define lt_ptr void *
4311 #else
4312 # define lt_ptr char *
4313 # define const
4314 #endif
4315
4316 /* The mapping between symbol names and symbols. */
4317 const struct {
4318 const char *name;
4319 lt_ptr address;
4320 }
4321 lt_preloaded_symbols[] =
4322 {
4323 EOF
4324 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4325 cat <<\EOF >> conftest.$ac_ext
4326 {0, (lt_ptr) 0}
4327 };
4328
4329 #ifdef __cplusplus
4330 }
4331 #endif
4332 EOF
4333 # Now try linking the two files.
4334 mv conftest.$ac_objext conftstm.$ac_objext
4335 save_LIBS="$LIBS"
4336 save_CFLAGS="$CFLAGS"
4337 LIBS="conftstm.$ac_objext"
4338 CFLAGS="$CFLAGS$no_builtin_flag"
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && test -s conftest$ac_exeext; then
4344 pipe_works=yes
4345 fi
4346 LIBS="$save_LIBS"
4347 CFLAGS="$save_CFLAGS"
4348 else
4349 echo "cannot find nm_test_func in $nlist" >&5
4350 fi
4351 else
4352 echo "cannot find nm_test_var in $nlist" >&5
4353 fi
4354 else
4355 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4356 fi
4357 else
4358 echo "$progname: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4360 fi
4361 rm -f conftest* conftst*
4362
4363 # Do not use the global_symbol_pipe unless it works.
4364 if test "$pipe_works" = yes; then
4365 break
4366 else
4367 lt_cv_sys_global_symbol_pipe=
4368 fi
4369 done
4370
4371 fi
4372
4373 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4374 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4375 global_symbol_to_cdecl=
4376 global_symbol_to_c_name_address=
4377 else
4378 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4379 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4380 fi
4381 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4382 then
4383 echo "$as_me:$LINENO: result: failed" >&5
4384 echo "${ECHO_T}failed" >&6
4385 else
4386 echo "$as_me:$LINENO: result: ok" >&5
4387 echo "${ECHO_T}ok" >&6
4388 fi
4389
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4397 # On Suns, sometimes $CPP names a directory.
4398 if test -n "$CPP" && test -d "$CPP"; then
4399 CPP=
4400 fi
4401 if test -z "$CPP"; then
4402 if test "${ac_cv_prog_CPP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 # Double quotes because CPP needs to be expanded
4406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4407 do
4408 ac_preproc_ok=false
4409 for ac_c_preproc_warn_flag in '' yes
4410 do
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error" is here to catch this case.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #ifdef __STDC__
4424 # include <limits.h>
4425 #else
4426 # include <assert.h>
4427 #endif
4428 Syntax error
4429 _ACEOF
4430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } >/dev/null; then
4438 if test -s conftest.err; then
4439 ac_cpp_err=$ac_c_preproc_warn_flag
4440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4441 else
4442 ac_cpp_err=
4443 fi
4444 else
4445 ac_cpp_err=yes
4446 fi
4447 if test -z "$ac_cpp_err"; then
4448 :
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 # Broken: fails on valid input.
4454 continue
4455 fi
4456 rm -f conftest.err conftest.$ac_ext
4457
4458 # OK, works on sane cases. Now check whether non-existent headers
4459 # can be detected and how.
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4467 _ACEOF
4468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } >/dev/null; then
4476 if test -s conftest.err; then
4477 ac_cpp_err=$ac_c_preproc_warn_flag
4478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4479 else
4480 ac_cpp_err=
4481 fi
4482 else
4483 ac_cpp_err=yes
4484 fi
4485 if test -z "$ac_cpp_err"; then
4486 # Broken: success on invalid input.
4487 continue
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4495 fi
4496 rm -f conftest.err conftest.$ac_ext
4497
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then
4502 break
4503 fi
4504
4505 done
4506 ac_cv_prog_CPP=$CPP
4507
4508 fi
4509 CPP=$ac_cv_prog_CPP
4510 else
4511 ac_cv_prog_CPP=$CPP
4512 fi
4513 echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4517 do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535 Syntax error
4536 _ACEOF
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_c_preproc_warn_flag
4547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4548 else
4549 ac_cpp_err=
4550 fi
4551 else
4552 ac_cpp_err=yes
4553 fi
4554 if test -z "$ac_cpp_err"; then
4555 :
4556 else
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 # Broken: fails on valid input.
4561 continue
4562 fi
4563 rm -f conftest.err conftest.$ac_ext
4564
4565 # OK, works on sane cases. Now check whether non-existent headers
4566 # can be detected and how.
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <ac_nonexistent.h>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_c_preproc_warn_flag
4585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4586 else
4587 ac_cpp_err=
4588 fi
4589 else
4590 ac_cpp_err=yes
4591 fi
4592 if test -z "$ac_cpp_err"; then
4593 # Broken: success on invalid input.
4594 continue
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 # Passes both tests.
4600 ac_preproc_ok=:
4601 break
4602 fi
4603 rm -f conftest.err conftest.$ac_ext
4604
4605 done
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then
4609 :
4610 else
4611 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&5
4613 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details." >&2;}
4615 { (exit 1); exit 1; }; }
4616 fi
4617
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624
4625 echo "$as_me:$LINENO: checking for egrep" >&5
4626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4627 if test "${ac_cv_prog_egrep+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4631 then ac_cv_prog_egrep='grep -E'
4632 else ac_cv_prog_egrep='egrep'
4633 fi
4634 fi
4635 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4636 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4637 EGREP=$ac_cv_prog_egrep
4638
4639
4640 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4641 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4642 if test "${ac_cv_header_stdc+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <stdlib.h>
4652 #include <stdarg.h>
4653 #include <string.h>
4654 #include <float.h>
4655
4656 int
4657 main ()
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.$ac_objext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_c_werror_flag"
4674 || test ! -s conftest.err'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_header_stdc=yes
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 ac_cv_header_stdc=no
4692 fi
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694
4695 if test $ac_cv_header_stdc = yes; then
4696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <string.h>
4704
4705 _ACEOF
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707 $EGREP "memchr" >/dev/null 2>&1; then
4708 :
4709 else
4710 ac_cv_header_stdc=no
4711 fi
4712 rm -f conftest*
4713
4714 fi
4715
4716 if test $ac_cv_header_stdc = yes; then
4717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <stdlib.h>
4725
4726 _ACEOF
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 $EGREP "free" >/dev/null 2>&1; then
4729 :
4730 else
4731 ac_cv_header_stdc=no
4732 fi
4733 rm -f conftest*
4734
4735 fi
4736
4737 if test $ac_cv_header_stdc = yes; then
4738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4739 if test "$cross_compiling" = yes; then
4740 :
4741 else
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <ctype.h>
4749 #if ((' ' & 0x0FF) == 0x020)
4750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4752 #else
4753 # define ISLOWER(c) \
4754 (('a' <= (c) && (c) <= 'i') \
4755 || ('j' <= (c) && (c) <= 'r') \
4756 || ('s' <= (c) && (c) <= 'z'))
4757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4758 #endif
4759
4760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4761 int
4762 main ()
4763 {
4764 int i;
4765 for (i = 0; i < 256; i++)
4766 if (XOR (islower (i), ISLOWER (i))
4767 || toupper (i) != TOUPPER (i))
4768 exit(2);
4769 exit (0);
4770 }
4771 _ACEOF
4772 rm -f conftest$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 :
4784 else
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 ( exit $ac_status )
4790 ac_cv_header_stdc=no
4791 fi
4792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4793 fi
4794 fi
4795 fi
4796 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4797 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4798 if test $ac_cv_header_stdc = yes; then
4799
4800 cat >>confdefs.h <<\_ACEOF
4801 #define STDC_HEADERS 1
4802 _ACEOF
4803
4804 fi
4805
4806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4817 inttypes.h stdint.h unistd.h
4818 do
4819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 echo "$as_me:$LINENO: checking for $ac_header" >&5
4821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 $ac_includes_default
4832
4833 #include <$ac_header>
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 eval "$as_ac_Header=yes"
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 eval "$as_ac_Header=no"
4863 fi
4864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4869 cat >>confdefs.h <<_ACEOF
4870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871 _ACEOF
4872
4873 fi
4874
4875 done
4876
4877
4878
4879 for ac_header in dlfcn.h
4880 do
4881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883 echo "$as_me:$LINENO: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 fi
4888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4890 else
4891 # Is the header compilable?
4892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4901 #include <$ac_header>
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4905 (eval $ac_compile) 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } &&
4912 { ac_try='test -z "$ac_c_werror_flag"
4913 || test ! -s conftest.err'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; } &&
4919 { ac_try='test -s conftest.$ac_objext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 ac_header_compiler=yes
4926 else
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 ac_header_compiler=no
4931 fi
4932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4934 echo "${ECHO_T}$ac_header_compiler" >&6
4935
4936 # Is the header present?
4937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 #include <$ac_header>
4946 _ACEOF
4947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_c_preproc_warn_flag
4957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4958 else
4959 ac_cpp_err=
4960 fi
4961 else
4962 ac_cpp_err=yes
4963 fi
4964 if test -z "$ac_cpp_err"; then
4965 ac_header_preproc=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_header_preproc=no
4971 fi
4972 rm -f conftest.err conftest.$ac_ext
4973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4974 echo "${ECHO_T}$ac_header_preproc" >&6
4975
4976 # So? What about this header?
4977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4978 yes:no: )
4979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4983 ac_header_preproc=yes
4984 ;;
4985 no:yes:* )
4986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4998 (
4999 cat <<\_ASBOX
5000 ## ------------------------------------------ ##
5001 ## Report this to the AC_PACKAGE_NAME lists. ##
5002 ## ------------------------------------------ ##
5003 _ASBOX
5004 ) |
5005 sed "s/^/$as_me: WARNING: /" >&2
5006 ;;
5007 esac
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 eval "$as_ac_Header=\$ac_header_preproc"
5014 fi
5015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017
5018 fi
5019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5020 cat >>confdefs.h <<_ACEOF
5021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5022 _ACEOF
5023
5024 fi
5025
5026 done
5027
5028
5029
5030
5031
5032
5033 # Only perform the check for file, if the check method requires it
5034 case $deplibs_check_method in
5035 file_magic*)
5036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5037 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5038 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 case $MAGIC_CMD in
5043 /*)
5044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5045 ;;
5046 ?:/*)
5047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5048 ;;
5049 *)
5050 ac_save_MAGIC_CMD="$MAGIC_CMD"
5051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5052 ac_dummy="/usr/bin:$PATH"
5053 for ac_dir in $ac_dummy; do
5054 test -z "$ac_dir" && ac_dir=.
5055 if test -f $ac_dir/${ac_tool_prefix}file; then
5056 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5057 if test -n "$file_magic_test_file"; then
5058 case $deplibs_check_method in
5059 "file_magic "*)
5060 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5062 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5063 egrep "$file_magic_regex" > /dev/null; then
5064 :
5065 else
5066 cat <<EOF 1>&2
5067
5068 *** Warning: the command libtool uses to detect shared libraries,
5069 *** $file_magic_cmd, produces output that libtool cannot recognize.
5070 *** The result is that libtool may fail to recognize shared libraries
5071 *** as such. This will affect the creation of libtool libraries that
5072 *** depend on shared libraries, but programs linked with such libtool
5073 *** libraries will work regardless of this problem. Nevertheless, you
5074 *** may want to report the problem to your system manager and/or to
5075 *** bug-libtool@gnu.org
5076
5077 EOF
5078 fi ;;
5079 esac
5080 fi
5081 break
5082 fi
5083 done
5084 IFS="$ac_save_ifs"
5085 MAGIC_CMD="$ac_save_MAGIC_CMD"
5086 ;;
5087 esac
5088 fi
5089
5090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5091 if test -n "$MAGIC_CMD"; then
5092 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5093 echo "${ECHO_T}$MAGIC_CMD" >&6
5094 else
5095 echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099 if test -z "$lt_cv_path_MAGIC_CMD"; then
5100 if test -n "$ac_tool_prefix"; then
5101 echo "$as_me:$LINENO: checking for file" >&5
5102 echo $ECHO_N "checking for file... $ECHO_C" >&6
5103 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 case $MAGIC_CMD in
5107 /*)
5108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5109 ;;
5110 ?:/*)
5111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5112 ;;
5113 *)
5114 ac_save_MAGIC_CMD="$MAGIC_CMD"
5115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5116 ac_dummy="/usr/bin:$PATH"
5117 for ac_dir in $ac_dummy; do
5118 test -z "$ac_dir" && ac_dir=.
5119 if test -f $ac_dir/file; then
5120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5121 if test -n "$file_magic_test_file"; then
5122 case $deplibs_check_method in
5123 "file_magic "*)
5124 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5127 egrep "$file_magic_regex" > /dev/null; then
5128 :
5129 else
5130 cat <<EOF 1>&2
5131
5132 *** Warning: the command libtool uses to detect shared libraries,
5133 *** $file_magic_cmd, produces output that libtool cannot recognize.
5134 *** The result is that libtool may fail to recognize shared libraries
5135 *** as such. This will affect the creation of libtool libraries that
5136 *** depend on shared libraries, but programs linked with such libtool
5137 *** libraries will work regardless of this problem. Nevertheless, you
5138 *** may want to report the problem to your system manager and/or to
5139 *** bug-libtool@gnu.org
5140
5141 EOF
5142 fi ;;
5143 esac
5144 fi
5145 break
5146 fi
5147 done
5148 IFS="$ac_save_ifs"
5149 MAGIC_CMD="$ac_save_MAGIC_CMD"
5150 ;;
5151 esac
5152 fi
5153
5154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5155 if test -n "$MAGIC_CMD"; then
5156 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5157 echo "${ECHO_T}$MAGIC_CMD" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6
5161 fi
5162
5163 else
5164 MAGIC_CMD=:
5165 fi
5166 fi
5167
5168 fi
5169 ;;
5170 esac
5171
5172 if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5175 echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177 if test "${ac_cv_prog_RANLIB+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 if test -n "$RANLIB"; then
5181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194 done
5195 done
5196
5197 fi
5198 fi
5199 RANLIB=$ac_cv_prog_RANLIB
5200 if test -n "$RANLIB"; then
5201 echo "$as_me:$LINENO: result: $RANLIB" >&5
5202 echo "${ECHO_T}$RANLIB" >&6
5203 else
5204 echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5206 fi
5207
5208 fi
5209 if test -z "$ac_cv_prog_RANLIB"; then
5210 ac_ct_RANLIB=$RANLIB
5211 # Extract the first word of "ranlib", so it can be a program name with args.
5212 set dummy ranlib; ac_word=$2
5213 echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 if test -n "$ac_ct_RANLIB"; then
5219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_RANLIB="ranlib"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234
5235 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5236 fi
5237 fi
5238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5239 if test -n "$ac_ct_RANLIB"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5242 else
5243 echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5245 fi
5246
5247 RANLIB=$ac_ct_RANLIB
5248 else
5249 RANLIB="$ac_cv_prog_RANLIB"
5250 fi
5251
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}strip; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_STRIP+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 if test -n "$STRIP"; then
5261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276
5277 fi
5278 fi
5279 STRIP=$ac_cv_prog_STRIP
5280 if test -n "$STRIP"; then
5281 echo "$as_me:$LINENO: result: $STRIP" >&5
5282 echo "${ECHO_T}$STRIP" >&6
5283 else
5284 echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288 fi
5289 if test -z "$ac_cv_prog_STRIP"; then
5290 ac_ct_STRIP=$STRIP
5291 # Extract the first word of "strip", so it can be a program name with args.
5292 set dummy strip; ac_word=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 if test -n "$ac_ct_STRIP"; then
5299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_ac_ct_STRIP="strip"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314
5315 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5316 fi
5317 fi
5318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5319 if test -n "$ac_ct_STRIP"; then
5320 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5321 echo "${ECHO_T}$ac_ct_STRIP" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5325 fi
5326
5327 STRIP=$ac_ct_STRIP
5328 else
5329 STRIP="$ac_cv_prog_STRIP"
5330 fi
5331
5332
5333 enable_dlopen=no
5334 enable_win32_dll=no
5335
5336 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5337 if test "${enable_libtool_lock+set}" = set; then
5338 enableval="$enable_libtool_lock"
5339
5340 fi;
5341 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5342
5343 # Some flags need to be propagated to the compiler or linker for good
5344 # libtool support.
5345 case $host in
5346 *-*-irix6*)
5347 # Find out which ABI we are using.
5348 echo '#line 5348 "configure"' > conftest.$ac_ext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; then
5354 case `/usr/bin/file conftest.$ac_objext` in
5355 *32-bit*)
5356 LD="${LD-ld} -32"
5357 ;;
5358 *N32*)
5359 LD="${LD-ld} -n32"
5360 ;;
5361 *64-bit*)
5362 LD="${LD-ld} -64"
5363 ;;
5364 esac
5365 fi
5366 rm -rf conftest*
5367 ;;
5368
5369 *-*-linux*)
5370 # Test if the compiler is 64bit
5371 echo 'int i;' > conftest.$ac_ext
5372 lt_cv_cc_64bit_output=no
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; then
5378 case `/usr/bin/file conftest.$ac_objext` in
5379 *"ELF 64"*)
5380 lt_cv_cc_64bit_output=yes
5381 ;;
5382 esac
5383 fi
5384 rm -rf conftest*
5385 ;;
5386
5387 *-*-sco3.2v5*)
5388 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5389 SAVE_CFLAGS="$CFLAGS"
5390 CFLAGS="$CFLAGS -belf"
5391 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5392 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5393 if test "${lt_cv_cc_needs_belf+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396
5397
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410
5411 int
5412 main ()
5413 {
5414
5415 ;
5416 return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5421 (eval $ac_link) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag"
5429 || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest$ac_exeext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 lt_cv_cc_needs_belf=yes
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 lt_cv_cc_needs_belf=no
5447 fi
5448 rm -f conftest.err conftest.$ac_objext \
5449 conftest$ac_exeext conftest.$ac_ext
5450 ac_ext=c
5451 ac_cpp='$CPP $CPPFLAGS'
5452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455
5456 fi
5457 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5458 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5459 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5460 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5461 CFLAGS="$SAVE_CFLAGS"
5462 fi
5463 ;;
5464
5465
5466 esac
5467
5468 # Sed substitution that helps us do robust quoting. It backslashifies
5469 # metacharacters that are still active within double-quoted strings.
5470 Xsed='sed -e s/^X//'
5471 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5472
5473 # Same as above, but do not quote variable references.
5474 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5475
5476 # Sed substitution to delay expansion of an escaped shell variable in a
5477 # double_quote_subst'ed string.
5478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5479
5480 # Constants:
5481 rm="rm -f"
5482
5483 # Global variables:
5484 default_ofile=libtool
5485 can_build_shared=yes
5486
5487 # All known linkers require a `.a' archive for static linking (except M$VC,
5488 # which needs '.lib').
5489 libext=a
5490 ltmain="$ac_aux_dir/ltmain.sh"
5491 ofile="$default_ofile"
5492 with_gnu_ld="$lt_cv_prog_gnu_ld"
5493 need_locks="$enable_libtool_lock"
5494
5495 old_CC="$CC"
5496 old_CFLAGS="$CFLAGS"
5497
5498 # Set sane defaults for various variables
5499 test -z "$AR" && AR=ar
5500 test -z "$AR_FLAGS" && AR_FLAGS=cru
5501 test -z "$AS" && AS=as
5502 test -z "$CC" && CC=cc
5503 test -z "$DLLTOOL" && DLLTOOL=dlltool
5504 test -z "$LD" && LD=ld
5505 test -z "$LN_S" && LN_S="ln -s"
5506 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5507 test -z "$NM" && NM=nm
5508 test -z "$OBJDUMP" && OBJDUMP=objdump
5509 test -z "$RANLIB" && RANLIB=:
5510 test -z "$STRIP" && STRIP=:
5511 test -z "$ac_objext" && ac_objext=o
5512
5513 if test x"$host" != x"$build"; then
5514 ac_tool_prefix=${host_alias}-
5515 else
5516 ac_tool_prefix=
5517 fi
5518
5519 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5520 case $host_os in
5521 linux-gnu*) ;;
5522 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5523 esac
5524
5525 case $host_os in
5526 aix3*)
5527 # AIX sometimes has problems with the GCC collect2 program. For some
5528 # reason, if we set the COLLECT_NAMES environment variable, the problems
5529 # vanish in a puff of smoke.
5530 if test "X${COLLECT_NAMES+set}" != Xset; then
5531 COLLECT_NAMES=
5532 export COLLECT_NAMES
5533 fi
5534 ;;
5535 esac
5536
5537 # Determine commands to create old-style static archives.
5538 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5539 old_postinstall_cmds='chmod 644 $oldlib'
5540 old_postuninstall_cmds=
5541
5542 if test -n "$RANLIB"; then
5543 case $host_os in
5544 openbsd*)
5545 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5546 ;;
5547 *)
5548 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5549 ;;
5550 esac
5551 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5552 fi
5553
5554 # Allow CC to be a program name with arguments.
5555 set dummy $CC
5556 compiler="$2"
5557
5558 echo "$as_me:$LINENO: checking for objdir" >&5
5559 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5560 rm -f .libs 2>/dev/null
5561 mkdir .libs 2>/dev/null
5562 if test -d .libs; then
5563 objdir=.libs
5564 else
5565 # MS-DOS does not allow filenames that begin with a dot.
5566 objdir=_libs
5567 fi
5568 rmdir .libs 2>/dev/null
5569 echo "$as_me:$LINENO: result: $objdir" >&5
5570 echo "${ECHO_T}$objdir" >&6
5571
5572
5573
5574 # Check whether --with-pic or --without-pic was given.
5575 if test "${with_pic+set}" = set; then
5576 withval="$with_pic"
5577 pic_mode="$withval"
5578 else
5579 pic_mode=default
5580 fi;
5581 test -z "$pic_mode" && pic_mode=default
5582
5583 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5584 # in isolation, and that seeing it set (from the cache) indicates that
5585 # the associated values are set (in the cache) correctly too.
5586 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5588 if test "${lt_cv_prog_cc_pic+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 lt_cv_prog_cc_pic=
5592 lt_cv_prog_cc_shlib=
5593 lt_cv_prog_cc_wl=
5594 lt_cv_prog_cc_static=
5595 lt_cv_prog_cc_no_builtin=
5596 lt_cv_prog_cc_can_build_shared=$can_build_shared
5597
5598 if test "$GCC" = yes; then
5599 lt_cv_prog_cc_wl='-Wl,'
5600 lt_cv_prog_cc_static='-static'
5601
5602 case $host_os in
5603 aix*)
5604 # Below there is a dirty hack to force normal static linking with -ldl
5605 # The problem is because libdl dynamically linked with both libc and
5606 # libC (AIX C++ library), which obviously doesn't included in libraries
5607 # list by gcc. This cause undefined symbols with -static flags.
5608 # This hack allows C programs to be linked with "-static -ldl", but
5609 # not sure about C++ programs.
5610 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5611 ;;
5612 amigaos*)
5613 # FIXME: we need at least 68020 code to build shared libraries, but
5614 # adding the `-m68020' flag to GCC prevents building anything better,
5615 # like `-m68040'.
5616 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5617 ;;
5618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5619 # PIC is the default for these OSes.
5620 ;;
5621 darwin* | rhapsody*)
5622 # PIC is the default on this platform
5623 # Common symbols not allowed in MH_DYLIB files
5624 lt_cv_prog_cc_pic='-fno-common'
5625 ;;
5626 cygwin* | mingw* | pw32* | os2*)
5627 # This hack is so that the source file can tell whether it is being
5628 # built for inclusion in a dll (and should export symbols for example).
5629 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5630 ;;
5631 sysv4*MP*)
5632 if test -d /usr/nec; then
5633 lt_cv_prog_cc_pic=-Kconform_pic
5634 fi
5635 ;;
5636 *)
5637 lt_cv_prog_cc_pic='-fPIC'
5638 ;;
5639 esac
5640 else
5641 # PORTME Check for PIC flags for the system compiler.
5642 case $host_os in
5643 aix3* | aix4* | aix5*)
5644 lt_cv_prog_cc_wl='-Wl,'
5645 # All AIX code is PIC.
5646 if test "$host_cpu" = ia64; then
5647 # AIX 5 now supports IA64 processor
5648 lt_cv_prog_cc_static='-Bstatic'
5649 else
5650 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5651 fi
5652 ;;
5653
5654 hpux9* | hpux10* | hpux11*)
5655 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5656 lt_cv_prog_cc_wl='-Wl,'
5657 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5658 lt_cv_prog_cc_pic='+Z'
5659 ;;
5660
5661 irix5* | irix6* | nonstopux*)
5662 lt_cv_prog_cc_wl='-Wl,'
5663 lt_cv_prog_cc_static='-non_shared'
5664 # PIC (with -KPIC) is the default.
5665 ;;
5666
5667 cygwin* | mingw* | pw32* | os2*)
5668 # This hack is so that the source file can tell whether it is being
5669 # built for inclusion in a dll (and should export symbols for example).
5670 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5671 ;;
5672
5673 newsos6)
5674 lt_cv_prog_cc_pic='-KPIC'
5675 lt_cv_prog_cc_static='-Bstatic'
5676 ;;
5677
5678 osf3* | osf4* | osf5*)
5679 # All OSF/1 code is PIC.
5680 lt_cv_prog_cc_wl='-Wl,'
5681 lt_cv_prog_cc_static='-non_shared'
5682 ;;
5683
5684 sco3.2v5*)
5685 lt_cv_prog_cc_pic='-Kpic'
5686 lt_cv_prog_cc_static='-dn'
5687 lt_cv_prog_cc_shlib='-belf'
5688 ;;
5689
5690 solaris*)
5691 lt_cv_prog_cc_pic='-KPIC'
5692 lt_cv_prog_cc_static='-Bstatic'
5693 lt_cv_prog_cc_wl='-Wl,'
5694 ;;
5695
5696 sunos4*)
5697 lt_cv_prog_cc_pic='-PIC'
5698 lt_cv_prog_cc_static='-Bstatic'
5699 lt_cv_prog_cc_wl='-Qoption ld '
5700 ;;
5701
5702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5703 lt_cv_prog_cc_pic='-KPIC'
5704 lt_cv_prog_cc_static='-Bstatic'
5705 lt_cv_prog_cc_wl='-Wl,'
5706 ;;
5707
5708 uts4*)
5709 lt_cv_prog_cc_pic='-pic'
5710 lt_cv_prog_cc_static='-Bstatic'
5711 ;;
5712
5713 sysv4*MP*)
5714 if test -d /usr/nec ;then
5715 lt_cv_prog_cc_pic='-Kconform_pic'
5716 lt_cv_prog_cc_static='-Bstatic'
5717 fi
5718 ;;
5719
5720 *)
5721 lt_cv_prog_cc_can_build_shared=no
5722 ;;
5723 esac
5724 fi
5725
5726 fi
5727
5728 if test -z "$lt_cv_prog_cc_pic"; then
5729 echo "$as_me:$LINENO: result: none" >&5
5730 echo "${ECHO_T}none" >&6
5731 else
5732 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5733 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5734
5735 # Check to make sure the pic_flag actually works.
5736 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5737 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5738 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 save_CFLAGS="$CFLAGS"
5742 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749
5750 int
5751 main ()
5752 {
5753
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 case $host_os in
5781 hpux9* | hpux10* | hpux11*)
5782 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5783 # they create non-PIC objects. So, if there were any warnings, we
5784 # assume that PIC is not supported.
5785 if test -s conftest.err; then
5786 lt_cv_prog_cc_pic_works=no
5787 else
5788 lt_cv_prog_cc_pic_works=yes
5789 fi
5790 ;;
5791 *)
5792 lt_cv_prog_cc_pic_works=yes
5793 ;;
5794 esac
5795
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 lt_cv_prog_cc_pic_works=no
5801
5802 fi
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 CFLAGS="$save_CFLAGS"
5805
5806 fi
5807
5808
5809 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5810 lt_cv_prog_cc_pic=
5811 lt_cv_prog_cc_can_build_shared=no
5812 else
5813 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5814 fi
5815
5816 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5817 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5818 fi
5819
5820 # Check for any special shared library compilation flags.
5821 if test -n "$lt_cv_prog_cc_shlib"; then
5822 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5823 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5824 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5825 else
5826 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5827 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5828 lt_cv_prog_cc_can_build_shared=no
5829 fi
5830 fi
5831
5832 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5833 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5834 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 lt_cv_prog_cc_static_works=no
5838 save_LDFLAGS="$LDFLAGS"
5839 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846
5847 int
5848 main ()
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest$ac_exeext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 lt_cv_prog_cc_static_works=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 fi
5883 rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 LDFLAGS="$save_LDFLAGS"
5886
5887 fi
5888
5889
5890 # Belt *and* braces to stop my trousers falling down:
5891 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5892 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5893 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5894
5895 pic_flag="$lt_cv_prog_cc_pic"
5896 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5897 wl="$lt_cv_prog_cc_wl"
5898 link_static_flag="$lt_cv_prog_cc_static"
5899 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5900 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5901
5902
5903 # Check to see if options -o and -c are simultaneously supported by compiler
5904 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5906 if test "${lt_cv_compiler_c_o+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909
5910 $rm -r conftest 2>/dev/null
5911 mkdir conftest
5912 cd conftest
5913 echo "int some_variable = 0;" > conftest.$ac_ext
5914 mkdir out
5915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5916 # that will create temporary files in the current directory regardless of
5917 # the output directory. Thus, making CWD read-only will cause this test
5918 # to fail, enabling locking or at least warning the user not to do parallel
5919 # builds.
5920 chmod -w .
5921 save_CFLAGS="$CFLAGS"
5922 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5923 compiler_c_o=no
5924 if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5925 # The compiler can only warn and ignore the option if not recognized
5926 # So say no if there are warnings
5927 if test -s out/conftest.err; then
5928 lt_cv_compiler_c_o=no
5929 else
5930 lt_cv_compiler_c_o=yes
5931 fi
5932 else
5933 # Append any errors to the config.log.
5934 cat out/conftest.err 1>&5
5935 lt_cv_compiler_c_o=no
5936 fi
5937 CFLAGS="$save_CFLAGS"
5938 chmod u+w .
5939 $rm conftest* out/*
5940 rmdir out
5941 cd ..
5942 rmdir conftest
5943 $rm -r conftest 2>/dev/null
5944
5945 fi
5946
5947 compiler_c_o=$lt_cv_compiler_c_o
5948 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5949 echo "${ECHO_T}$compiler_c_o" >&6
5950
5951 if test x"$compiler_c_o" = x"yes"; then
5952 # Check to see if we can write to a .lo
5953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5954 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5955 if test "${lt_cv_compiler_o_lo+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958
5959 lt_cv_compiler_o_lo=no
5960 save_CFLAGS="$CFLAGS"
5961 CFLAGS="$CFLAGS -c -o conftest.lo"
5962 save_objext="$ac_objext"
5963 ac_objext=lo
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970
5971 int
5972 main ()
5973 {
5974 int some_variable = 0;
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag"
5989 || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 # The compiler can only warn and ignore the option if not recognized
6002 # So say no if there are warnings
6003 if test -s conftest.err; then
6004 lt_cv_compiler_o_lo=no
6005 else
6006 lt_cv_compiler_o_lo=yes
6007 fi
6008
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 ac_objext="$save_objext"
6016 CFLAGS="$save_CFLAGS"
6017
6018 fi
6019
6020 compiler_o_lo=$lt_cv_compiler_o_lo
6021 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6022 echo "${ECHO_T}$compiler_o_lo" >&6
6023 else
6024 compiler_o_lo=no
6025 fi
6026
6027 # Check to see if we can do hard links to lock some files if needed
6028 hard_links="nottested"
6029 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6030 # do not overwrite the value of need_locks provided by the user
6031 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6032 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6033 hard_links=yes
6034 $rm conftest*
6035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6036 touch conftest.a
6037 ln conftest.a conftest.b 2>&5 || hard_links=no
6038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6039 echo "$as_me:$LINENO: result: $hard_links" >&5
6040 echo "${ECHO_T}$hard_links" >&6
6041 if test "$hard_links" = no; then
6042 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6043 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6044 need_locks=warn
6045 fi
6046 else
6047 need_locks=no
6048 fi
6049
6050 if test "$GCC" = yes; then
6051 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6052 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6053 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6054 echo "int some_variable = 0;" > conftest.$ac_ext
6055 save_CFLAGS="$CFLAGS"
6056 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6057 compiler_rtti_exceptions=no
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064
6065 int
6066 main ()
6067 {
6068 int some_variable = 0;
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 # The compiler can only warn and ignore the option if not recognized
6096 # So say no if there are warnings
6097 if test -s conftest.err; then
6098 compiler_rtti_exceptions=no
6099 else
6100 compiler_rtti_exceptions=yes
6101 fi
6102
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 fi
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109 CFLAGS="$save_CFLAGS"
6110 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6111 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6112
6113 if test "$compiler_rtti_exceptions" = "yes"; then
6114 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6115 else
6116 no_builtin_flag=' -fno-builtin'
6117 fi
6118 fi
6119
6120 # See if the linker supports building shared libraries.
6121 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6122 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6123
6124 allow_undefined_flag=
6125 no_undefined_flag=
6126 need_lib_prefix=unknown
6127 need_version=unknown
6128 # when you set need_version to no, make sure it does not cause -set_version
6129 # flags to be left without arguments
6130 archive_cmds=
6131 archive_expsym_cmds=
6132 old_archive_from_new_cmds=
6133 old_archive_from_expsyms_cmds=
6134 export_dynamic_flag_spec=
6135 whole_archive_flag_spec=
6136 thread_safe_flag_spec=
6137 hardcode_into_libs=no
6138 hardcode_libdir_flag_spec=
6139 hardcode_libdir_separator=
6140 hardcode_direct=no
6141 hardcode_minus_L=no
6142 hardcode_shlibpath_var=unsupported
6143 runpath_var=
6144 link_all_deplibs=unknown
6145 always_export_symbols=no
6146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6147 # include_expsyms should be a list of space-separated symbols to be *always*
6148 # included in the symbol list
6149 include_expsyms=
6150 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6151 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6152 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6153 # as well as any symbol that contains `d'.
6154 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6156 # platforms (ab)use it in PIC code, but their linkers get confused if
6157 # the symbol is explicitly referenced. Since portable code cannot
6158 # rely on this symbol name, it's probably fine to never include it in
6159 # preloaded symbol tables.
6160 extract_expsyms_cmds=
6161
6162 case $host_os in
6163 cygwin* | mingw* | pw32*)
6164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6165 # When not using gcc, we currently assume that we are using
6166 # Microsoft Visual C++.
6167 if test "$GCC" != yes; then
6168 with_gnu_ld=no
6169 fi
6170 ;;
6171 openbsd*)
6172 with_gnu_ld=no
6173 ;;
6174 esac
6175
6176 ld_shlibs=yes
6177 if test "$with_gnu_ld" = yes; then
6178 # If archive_cmds runs LD, not CC, wlarc should be empty
6179 wlarc='${wl}'
6180
6181 # See if GNU ld supports shared libraries.
6182 case $host_os in
6183 aix3* | aix4* | aix5*)
6184 # On AIX, the GNU linker is very broken
6185 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6186 ld_shlibs=no
6187 cat <<EOF 1>&2
6188
6189 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6190 *** to be unable to reliably create shared libraries on AIX.
6191 *** Therefore, libtool is disabling shared libraries support. If you
6192 *** really care for shared libraries, you may want to modify your PATH
6193 *** so that a non-GNU linker is found, and then restart.
6194
6195 EOF
6196 ;;
6197
6198 amigaos*)
6199 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6200 hardcode_libdir_flag_spec='-L$libdir'
6201 hardcode_minus_L=yes
6202
6203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6204 # that the semantics of dynamic libraries on AmigaOS, at least up
6205 # to version 4, is to share data among multiple programs linked
6206 # with the same dynamic library. Since this doesn't match the
6207 # behavior of shared libraries on other platforms, we can use
6208 # them.
6209 ld_shlibs=no
6210 ;;
6211
6212 beos*)
6213 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6214 allow_undefined_flag=unsupported
6215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6216 # support --undefined. This deserves some investigation. FIXME
6217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6218 else
6219 ld_shlibs=no
6220 fi
6221 ;;
6222
6223 cygwin* | mingw* | pw32*)
6224 # hardcode_libdir_flag_spec is actually meaningless, as there is
6225 # no search path for DLLs.
6226 hardcode_libdir_flag_spec='-L$libdir'
6227 allow_undefined_flag=unsupported
6228 always_export_symbols=yes
6229
6230 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6231 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6232 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6233 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6234 else $CC -o impgen impgen.c ; fi)~
6235 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6236
6237 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6238
6239 # cygwin and mingw dlls have different entry points and sets of symbols
6240 # to exclude.
6241 # FIXME: what about values for MSVC?
6242 dll_entry=__cygwin_dll_entry@12
6243 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6244 case $host_os in
6245 mingw*)
6246 # mingw values
6247 dll_entry=_DllMainCRTStartup@12
6248 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6249 ;;
6250 esac
6251
6252 # mingw and cygwin differ, and it's simplest to just exclude the union
6253 # of the two symbol sets.
6254 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6255
6256 # recent cygwin and mingw systems supply a stub DllMain which the user
6257 # can override, but on older systems we have to supply one (in ltdll.c)
6258 if test "x$lt_cv_need_dllmain" = "xyes"; then
6259 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6260 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6261 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6262 else
6263 ltdll_obj=
6264 ltdll_cmds=
6265 fi
6266
6267 # Extract the symbol export list from an `--export-all' def file,
6268 # then regenerate the def file from the symbol export list, so that
6269 # the compiled dll only exports the symbol export list.
6270 # Be careful not to strip the DATA tag left be newer dlltools.
6271 export_symbols_cmds="$ltdll_cmds"'
6272 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6273 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6274
6275 # If the export-symbols file already is a .def file (1st line
6276 # is EXPORTS), use it as is.
6277 # If DATA tags from a recent dlltool are present, honour them!
6278 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6279 cp $export_symbols $output_objdir/$soname-def;
6280 else
6281 echo EXPORTS > $output_objdir/$soname-def;
6282 _lt_hint=1;
6283 cat $export_symbols | while read symbol; do
6284 set dummy \$symbol;
6285 case \$# in
6286 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6287 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6288 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6289 esac;
6290 _lt_hint=`expr 1 + \$_lt_hint`;
6291 done;
6292 fi~
6293 '"$ltdll_cmds"'
6294 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6295 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6296 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6297 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6298 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6299 ;;
6300
6301 netbsd*)
6302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6303 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6304 wlarc=
6305 else
6306 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6307 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6308 fi
6309 ;;
6310
6311 solaris* | sysv5*)
6312 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6313 ld_shlibs=no
6314 cat <<EOF 1>&2
6315
6316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6317 *** create shared libraries on Solaris systems. Therefore, libtool
6318 *** is disabling shared libraries support. We urge you to upgrade GNU
6319 *** binutils to release 2.9.1 or newer. Another option is to modify
6320 *** your PATH or compiler configuration so that the native linker is
6321 *** used, and then restart.
6322
6323 EOF
6324 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6327 else
6328 ld_shlibs=no
6329 fi
6330 ;;
6331
6332 sunos4*)
6333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6334 wlarc=
6335 hardcode_direct=yes
6336 hardcode_shlibpath_var=no
6337 ;;
6338
6339 *)
6340 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6343 else
6344 ld_shlibs=no
6345 fi
6346 ;;
6347 esac
6348
6349 if test "$ld_shlibs" = yes; then
6350 runpath_var=LD_RUN_PATH
6351 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6352 export_dynamic_flag_spec='${wl}--export-dynamic'
6353 case $host_os in
6354 cygwin* | mingw* | pw32*)
6355 # dlltool doesn't understand --whole-archive et. al.
6356 whole_archive_flag_spec=
6357 ;;
6358 *)
6359 # ancient GNU ld didn't support --whole-archive et. al.
6360 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6361 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6362 else
6363 whole_archive_flag_spec=
6364 fi
6365 ;;
6366 esac
6367 fi
6368 else
6369 # PORTME fill in a description of your system's linker (not GNU ld)
6370 case $host_os in
6371 aix3*)
6372 allow_undefined_flag=unsupported
6373 always_export_symbols=yes
6374 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6375 # Note: this linker hardcodes the directories in LIBPATH if there
6376 # are no directories specified by -L.
6377 hardcode_minus_L=yes
6378 if test "$GCC" = yes && test -z "$link_static_flag"; then
6379 # Neither direct hardcoding nor static linking is supported with a
6380 # broken collect2.
6381 hardcode_direct=unsupported
6382 fi
6383 ;;
6384
6385 aix4* | aix5*)
6386 if test "$host_cpu" = ia64; then
6387 # On IA64, the linker does run time linking by default, so we don't
6388 # have to do anything special.
6389 aix_use_runtimelinking=no
6390 exp_sym_flag='-Bexport'
6391 no_entry_flag=""
6392 else
6393 aix_use_runtimelinking=no
6394
6395 # Test if we are trying to use run time linking or normal
6396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6397 # need to do runtime linking.
6398 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6399 for ld_flag in $LDFLAGS; do
6400 case $ld_flag in
6401 *-brtl*)
6402 aix_use_runtimelinking=yes
6403 break
6404 ;;
6405 esac
6406 done
6407 esac
6408
6409 exp_sym_flag='-bexport'
6410 no_entry_flag='-bnoentry'
6411 fi
6412
6413 # When large executables or shared objects are built, AIX ld can
6414 # have problems creating the table of contents. If linking a library
6415 # or program results in "error TOC overflow" add -mminimal-toc to
6416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6418
6419 hardcode_direct=yes
6420 archive_cmds=''
6421 hardcode_libdir_separator=':'
6422 if test "$GCC" = yes; then
6423 case $host_os in aix4.[012]|aix4.[012].*)
6424 collect2name=`${CC} -print-prog-name=collect2`
6425 if test -f "$collect2name" && \
6426 strings "$collect2name" | grep resolve_lib_name >/dev/null
6427 then
6428 # We have reworked collect2
6429 hardcode_direct=yes
6430 else
6431 # We have old collect2
6432 hardcode_direct=unsupported
6433 # It fails to find uninstalled libraries when the uninstalled
6434 # path is not listed in the libpath. Setting hardcode_minus_L
6435 # to unsupported forces relinking
6436 hardcode_minus_L=yes
6437 hardcode_libdir_flag_spec='-L$libdir'
6438 hardcode_libdir_separator=
6439 fi
6440 esac
6441
6442 shared_flag='-shared'
6443 else
6444 # not using gcc
6445 if test "$host_cpu" = ia64; then
6446 shared_flag='${wl}-G'
6447 else
6448 if test "$aix_use_runtimelinking" = yes; then
6449 shared_flag='${wl}-G'
6450 else
6451 shared_flag='${wl}-bM:SRE'
6452 fi
6453 fi
6454 fi
6455
6456 # It seems that -bexpall can do strange things, so it is better to
6457 # generate a list of symbols to export.
6458 always_export_symbols=yes
6459 if test "$aix_use_runtimelinking" = yes; then
6460 # Warning - without using the other runtime loading flags (-brtl),
6461 # -berok will link without error, but may produce a broken library.
6462 allow_undefined_flag='-berok'
6463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6464 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6465 else
6466 if test "$host_cpu" = ia64; then
6467 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6468 allow_undefined_flag="-z nodefs"
6469 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6470 else
6471 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6472 # Warning - without using the other run time loading flags,
6473 # -berok will link without error, but may produce a broken library.
6474 allow_undefined_flag='${wl}-berok'
6475 # This is a bit strange, but is similar to how AIX traditionally builds
6476 # it's shared libraries.
6477 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6478 fi
6479 fi
6480 ;;
6481
6482 amigaos*)
6483 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6484 hardcode_libdir_flag_spec='-L$libdir'
6485 hardcode_minus_L=yes
6486 # see comment about different semantics on the GNU ld section
6487 ld_shlibs=no
6488 ;;
6489
6490 cygwin* | mingw* | pw32*)
6491 # When not using gcc, we currently assume that we are using
6492 # Microsoft Visual C++.
6493 # hardcode_libdir_flag_spec is actually meaningless, as there is
6494 # no search path for DLLs.
6495 hardcode_libdir_flag_spec=' '
6496 allow_undefined_flag=unsupported
6497 # Tell ltmain to make .lib files, not .a files.
6498 libext=lib
6499 # FIXME: Setting linknames here is a bad hack.
6500 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6501 # The linker will automatically build a .lib file if we build a DLL.
6502 old_archive_from_new_cmds='true'
6503 # FIXME: Should let the user specify the lib program.
6504 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6505 fix_srcfile_path='`cygpath -w "$srcfile"`'
6506 ;;
6507
6508 darwin* | rhapsody*)
6509 case "$host_os" in
6510 rhapsody* | darwin1.[012])
6511 allow_undefined_flag='-undefined suppress'
6512 ;;
6513 *) # Darwin 1.3 on
6514 allow_undefined_flag='-flat_namespace -undefined suppress'
6515 ;;
6516 esac
6517 # FIXME: Relying on posixy $() will cause problems for
6518 # cross-compilation, but unfortunately the echo tests do not
6519 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6520 # `"' quotes if we put them in here... so don't!
6521 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6522 # We need to add '_' to the symbols in $export_symbols first
6523 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6524 hardcode_direct=yes
6525 hardcode_shlibpath_var=no
6526 whole_archive_flag_spec='-all_load $convenience'
6527 ;;
6528
6529 freebsd1*)
6530 ld_shlibs=no
6531 ;;
6532
6533 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6534 # support. Future versions do this automatically, but an explicit c++rt0.o
6535 # does not break anything, and helps significantly (at the cost of a little
6536 # extra space).
6537 freebsd2.2*)
6538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6539 hardcode_libdir_flag_spec='-R$libdir'
6540 hardcode_direct=yes
6541 hardcode_shlibpath_var=no
6542 ;;
6543
6544 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6545 freebsd2*)
6546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6547 hardcode_direct=yes
6548 hardcode_minus_L=yes
6549 hardcode_shlibpath_var=no
6550 ;;
6551
6552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6553 freebsd*)
6554 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6555 hardcode_libdir_flag_spec='-R$libdir'
6556 hardcode_direct=yes
6557 hardcode_shlibpath_var=no
6558 ;;
6559
6560 hpux9* | hpux10* | hpux11*)
6561 case $host_os in
6562 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6563 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6564 esac
6565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6566 hardcode_libdir_separator=:
6567 hardcode_direct=yes
6568 hardcode_minus_L=yes # Not in the search PATH, but as the default
6569 # location of the library.
6570 export_dynamic_flag_spec='${wl}-E'
6571 ;;
6572
6573 irix5* | irix6* | nonstopux*)
6574 if test "$GCC" = yes; then
6575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6577 else
6578 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6579 hardcode_libdir_flag_spec='-rpath $libdir'
6580 fi
6581 hardcode_libdir_separator=:
6582 link_all_deplibs=yes
6583 ;;
6584
6585 netbsd*)
6586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6588 else
6589 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6590 fi
6591 hardcode_libdir_flag_spec='-R$libdir'
6592 hardcode_direct=yes
6593 hardcode_shlibpath_var=no
6594 ;;
6595
6596 newsos6)
6597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6598 hardcode_direct=yes
6599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6600 hardcode_libdir_separator=:
6601 hardcode_shlibpath_var=no
6602 ;;
6603
6604 openbsd*)
6605 hardcode_direct=yes
6606 hardcode_shlibpath_var=no
6607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6610 export_dynamic_flag_spec='${wl}-E'
6611 else
6612 case "$host_os" in
6613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6615 hardcode_libdir_flag_spec='-R$libdir'
6616 ;;
6617 *)
6618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6620 ;;
6621 esac
6622 fi
6623 ;;
6624
6625 os2*)
6626 hardcode_libdir_flag_spec='-L$libdir'
6627 hardcode_minus_L=yes
6628 allow_undefined_flag=unsupported
6629 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6630 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6631 ;;
6632
6633 osf3*)
6634 if test "$GCC" = yes; then
6635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6636 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6637 else
6638 allow_undefined_flag=' -expect_unresolved \*'
6639 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6640 fi
6641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6642 hardcode_libdir_separator=:
6643 ;;
6644
6645 osf4* | osf5*) # as osf3* with the addition of -msym flag
6646 if test "$GCC" = yes; then
6647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6648 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6650 else
6651 allow_undefined_flag=' -expect_unresolved \*'
6652 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6654 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6655
6656 #Both c and cxx compiler support -rpath directly
6657 hardcode_libdir_flag_spec='-rpath $libdir'
6658 fi
6659 hardcode_libdir_separator=:
6660 ;;
6661
6662 sco3.2v5*)
6663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_shlibpath_var=no
6665 runpath_var=LD_RUN_PATH
6666 hardcode_runpath_var=yes
6667 export_dynamic_flag_spec='${wl}-Bexport'
6668 ;;
6669
6670 solaris*)
6671 # gcc --version < 3.0 without binutils cannot create self contained
6672 # shared libraries reliably, requiring libgcc.a to resolve some of
6673 # the object symbols generated in some cases. Libraries that use
6674 # assert need libgcc.a to resolve __eprintf, for example. Linking
6675 # a copy of libgcc.a into every shared library to guarantee resolving
6676 # such symbols causes other problems: According to Tim Van Holder
6677 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6678 # (to the application) exception stack for one thing.
6679 no_undefined_flag=' -z defs'
6680 if test "$GCC" = yes; then
6681 case `$CC --version 2>/dev/null` in
6682 [12].*)
6683 cat <<EOF 1>&2
6684
6685 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6686 *** create self contained shared libraries on Solaris systems, without
6687 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6688 *** -no-undefined support, which will at least allow you to build shared
6689 *** libraries. However, you may find that when you link such libraries
6690 *** into an application without using GCC, you have to manually add
6691 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6692 *** upgrade to a newer version of GCC. Another option is to rebuild your
6693 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6694
6695 EOF
6696 no_undefined_flag=
6697 ;;
6698 esac
6699 fi
6700 # $CC -shared without GNU ld will not create a library from C++
6701 # object files and a static libstdc++, better avoid it by now
6702 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6705 hardcode_libdir_flag_spec='-R$libdir'
6706 hardcode_shlibpath_var=no
6707 case $host_os in
6708 solaris2.[0-5] | solaris2.[0-5].*) ;;
6709 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6711 esac
6712 link_all_deplibs=yes
6713 ;;
6714
6715 sunos4*)
6716 if test "x$host_vendor" = xsequent; then
6717 # Use $CC to link under sequent, because it throws in some extra .o
6718 # files that make .init and .fini sections work.
6719 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6720 else
6721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6722 fi
6723 hardcode_libdir_flag_spec='-L$libdir'
6724 hardcode_direct=yes
6725 hardcode_minus_L=yes
6726 hardcode_shlibpath_var=no
6727 ;;
6728
6729 sysv4)
6730 case $host_vendor in
6731 sni)
6732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6733 hardcode_direct=yes # is this really true???
6734 ;;
6735 siemens)
6736 ## LD is ld it makes a PLAMLIB
6737 ## CC just makes a GrossModule.
6738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6739 reload_cmds='$CC -r -o $output$reload_objs'
6740 hardcode_direct=no
6741 ;;
6742 motorola)
6743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6745 ;;
6746 esac
6747 runpath_var='LD_RUN_PATH'
6748 hardcode_shlibpath_var=no
6749 ;;
6750
6751 sysv4.3*)
6752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6753 hardcode_shlibpath_var=no
6754 export_dynamic_flag_spec='-Bexport'
6755 ;;
6756
6757 sysv5*)
6758 no_undefined_flag=' -z text'
6759 # $CC -shared without GNU ld will not create a library from C++
6760 # object files and a static libstdc++, better avoid it by now
6761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6762 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6764 hardcode_libdir_flag_spec=
6765 hardcode_shlibpath_var=no
6766 runpath_var='LD_RUN_PATH'
6767 ;;
6768
6769 uts4*)
6770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6771 hardcode_libdir_flag_spec='-L$libdir'
6772 hardcode_shlibpath_var=no
6773 ;;
6774
6775 dgux*)
6776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6777 hardcode_libdir_flag_spec='-L$libdir'
6778 hardcode_shlibpath_var=no
6779 ;;
6780
6781 sysv4*MP*)
6782 if test -d /usr/nec; then
6783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6784 hardcode_shlibpath_var=no
6785 runpath_var=LD_RUN_PATH
6786 hardcode_runpath_var=yes
6787 ld_shlibs=yes
6788 fi
6789 ;;
6790
6791 sysv4.2uw2*)
6792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6793 hardcode_direct=yes
6794 hardcode_minus_L=no
6795 hardcode_shlibpath_var=no
6796 hardcode_runpath_var=yes
6797 runpath_var=LD_RUN_PATH
6798 ;;
6799
6800 sysv5uw7* | unixware7*)
6801 no_undefined_flag='${wl}-z ${wl}text'
6802 if test "$GCC" = yes; then
6803 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6804 else
6805 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6806 fi
6807 runpath_var='LD_RUN_PATH'
6808 hardcode_shlibpath_var=no
6809 ;;
6810
6811 *)
6812 ld_shlibs=no
6813 ;;
6814 esac
6815 fi
6816 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6817 echo "${ECHO_T}$ld_shlibs" >&6
6818 test "$ld_shlibs" = no && can_build_shared=no
6819
6820 # Check hardcoding attributes.
6821 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6823 hardcode_action=
6824 if test -n "$hardcode_libdir_flag_spec" || \
6825 test -n "$runpath_var"; then
6826
6827 # We can hardcode non-existant directories.
6828 if test "$hardcode_direct" != no &&
6829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6830 # have to relink, otherwise we might link with an installed library
6831 # when we should be linking with a yet-to-be-installed one
6832 ## test "$hardcode_shlibpath_var" != no &&
6833 test "$hardcode_minus_L" != no; then
6834 # Linking always hardcodes the temporary library directory.
6835 hardcode_action=relink
6836 else
6837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6838 hardcode_action=immediate
6839 fi
6840 else
6841 # We cannot hardcode anything, or else we can only hardcode existing
6842 # directories.
6843 hardcode_action=unsupported
6844 fi
6845 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6846 echo "${ECHO_T}$hardcode_action" >&6
6847
6848 striplib=
6849 old_striplib=
6850 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6852 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6855 echo "$as_me:$LINENO: result: yes" >&5
6856 echo "${ECHO_T}yes" >&6
6857 else
6858 echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6860 fi
6861
6862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6863 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6864
6865 # PORTME Fill in your ld.so characteristics
6866 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6867 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6868 library_names_spec=
6869 libname_spec='lib$name'
6870 soname_spec=
6871 postinstall_cmds=
6872 postuninstall_cmds=
6873 finish_cmds=
6874 finish_eval=
6875 shlibpath_var=
6876 shlibpath_overrides_runpath=unknown
6877 version_type=none
6878 dynamic_linker="$host_os ld.so"
6879 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6880 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6881
6882 case $host_os in
6883 aix3*)
6884 version_type=linux
6885 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6886 shlibpath_var=LIBPATH
6887
6888 # AIX has no versioning support, so we append a major version to the name.
6889 soname_spec='${libname}${release}.so$major'
6890 ;;
6891
6892 aix4* | aix5*)
6893 version_type=linux
6894 need_lib_prefix=no
6895 need_version=no
6896 hardcode_into_libs=yes
6897 if test "$host_cpu" = ia64; then
6898 # AIX 5 supports IA64
6899 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6900 shlibpath_var=LD_LIBRARY_PATH
6901 else
6902 # With GCC up to 2.95.x, collect2 would create an import file
6903 # for dependence libraries. The import file would start with
6904 # the line `#! .'. This would cause the generated library to
6905 # depend on `.', always an invalid library. This was fixed in
6906 # development snapshots of GCC prior to 3.0.
6907 case $host_os in
6908 aix4 | aix4.[01] | aix4.[01].*)
6909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6910 echo ' yes '
6911 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6912 :
6913 else
6914 can_build_shared=no
6915 fi
6916 ;;
6917 esac
6918 # AIX (on Power*) has no versioning support, so currently we can
6919 # not hardcode correct soname into executable. Probably we can
6920 # add versioning support to collect2, so additional links can
6921 # be useful in future.
6922 if test "$aix_use_runtimelinking" = yes; then
6923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6924 # instead of lib<name>.a to let people know that these are not
6925 # typical AIX shared libraries.
6926 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6927 else
6928 # We preserve .a as extension for shared libraries through AIX4.2
6929 # and later when we are not doing run time linking.
6930 library_names_spec='${libname}${release}.a $libname.a'
6931 soname_spec='${libname}${release}.so$major'
6932 fi
6933 shlibpath_var=LIBPATH
6934 fi
6935 hardcode_into_libs=yes
6936 ;;
6937
6938 amigaos*)
6939 library_names_spec='$libname.ixlibrary $libname.a'
6940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6941 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6942 ;;
6943
6944 beos*)
6945 library_names_spec='${libname}.so'
6946 dynamic_linker="$host_os ld.so"
6947 shlibpath_var=LIBRARY_PATH
6948 ;;
6949
6950 bsdi4*)
6951 version_type=linux
6952 need_version=no
6953 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6954 soname_spec='${libname}${release}.so$major'
6955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6956 shlibpath_var=LD_LIBRARY_PATH
6957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6959 export_dynamic_flag_spec=-rdynamic
6960 # the default ld.so.conf also contains /usr/contrib/lib and
6961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6962 # libtool to hard-code these into programs
6963 ;;
6964
6965 cygwin* | mingw* | pw32*)
6966 version_type=windows
6967 need_version=no
6968 need_lib_prefix=no
6969 case $GCC,$host_os in
6970 yes,cygwin*)
6971 library_names_spec='$libname.dll.a'
6972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6973 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6974 dldir=$destdir/`dirname \$dlpath`~
6975 test -d \$dldir || mkdir -p \$dldir~
6976 $install_prog .libs/$dlname \$dldir/$dlname'
6977 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6978 dlpath=$dir/\$dldll~
6979 $rm \$dlpath'
6980 ;;
6981 yes,mingw*)
6982 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6984 ;;
6985 yes,pw32*)
6986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6987 ;;
6988 *)
6989 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6990 ;;
6991 esac
6992 dynamic_linker='Win32 ld.exe'
6993 # FIXME: first we should search . and the directory the executable is in
6994 shlibpath_var=PATH
6995 ;;
6996
6997 darwin* | rhapsody*)
6998 dynamic_linker="$host_os dyld"
6999 version_type=darwin
7000 need_lib_prefix=no
7001 need_version=no
7002 # FIXME: Relying on posixy $() will cause problems for
7003 # cross-compilation, but unfortunately the echo tests do not
7004 # yet detect zsh echo's removal of \ escapes.
7005 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7006 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7007 shlibpath_overrides_runpath=yes
7008 shlibpath_var=DYLD_LIBRARY_PATH
7009 ;;
7010
7011 freebsd1*)
7012 dynamic_linker=no
7013 ;;
7014
7015 freebsd*)
7016 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7017 version_type=freebsd-$objformat
7018 case $version_type in
7019 freebsd-elf*)
7020 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7021 need_version=no
7022 need_lib_prefix=no
7023 ;;
7024 freebsd-*)
7025 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7026 need_version=yes
7027 ;;
7028 esac
7029 shlibpath_var=LD_LIBRARY_PATH
7030 case $host_os in
7031 freebsd2*)
7032 shlibpath_overrides_runpath=yes
7033 ;;
7034 *)
7035 shlibpath_overrides_runpath=no
7036 hardcode_into_libs=yes
7037 ;;
7038 esac
7039 ;;
7040
7041 gnu*)
7042 version_type=linux
7043 need_lib_prefix=no
7044 need_version=no
7045 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7046 soname_spec='${libname}${release}.so$major'
7047 shlibpath_var=LD_LIBRARY_PATH
7048 hardcode_into_libs=yes
7049 ;;
7050
7051 hpux9* | hpux10* | hpux11*)
7052 # Give a soname corresponding to the major version so that dld.sl refuses to
7053 # link against other versions.
7054 dynamic_linker="$host_os dld.sl"
7055 version_type=sunos
7056 need_lib_prefix=no
7057 need_version=no
7058 shlibpath_var=SHLIB_PATH
7059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7060 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7061 soname_spec='${libname}${release}.sl$major'
7062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7063 postinstall_cmds='chmod 555 $lib'
7064 ;;
7065
7066 irix5* | irix6* | nonstopux*)
7067 case $host_os in
7068 nonstopux*) version_type=nonstopux ;;
7069 *) version_type=irix ;;
7070 esac
7071 need_lib_prefix=no
7072 need_version=no
7073 soname_spec='${libname}${release}.so$major'
7074 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7075 case $host_os in
7076 irix5* | nonstopux*)
7077 libsuff= shlibsuff=
7078 ;;
7079 *)
7080 case $LD in # libtool.m4 will add one of these switches to LD
7081 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7082 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7083 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7084 *) libsuff= shlibsuff= libmagic=never-match;;
7085 esac
7086 ;;
7087 esac
7088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7089 shlibpath_overrides_runpath=no
7090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7092 ;;
7093
7094 # No shared lib support for Linux oldld, aout, or coff.
7095 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7096 dynamic_linker=no
7097 ;;
7098
7099 # This must be Linux ELF.
7100 linux-gnu*)
7101 version_type=linux
7102 need_lib_prefix=no
7103 need_version=no
7104 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7105 soname_spec='${libname}${release}.so$major'
7106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7107 shlibpath_var=LD_LIBRARY_PATH
7108 shlibpath_overrides_runpath=no
7109 # This implies no fast_install, which is unacceptable.
7110 # Some rework will be needed to allow for fast_install
7111 # before this can be enabled.
7112 hardcode_into_libs=yes
7113
7114 case $host_cpu:$lt_cv_cc_64bit_output in
7115 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7116 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7117 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7118 ;;
7119 esac
7120
7121 # We used to test for /lib/ld.so.1 and disable shared libraries on
7122 # powerpc, because MkLinux only supported shared libraries with the
7123 # GNU dynamic linker. Since this was broken with cross compilers,
7124 # most powerpc-linux boxes support dynamic linking these days and
7125 # people can always --disable-shared, the test was removed, and we
7126 # assume the GNU/Linux dynamic linker is in use.
7127 dynamic_linker='GNU/Linux ld.so'
7128 ;;
7129
7130 netbsd*)
7131 version_type=sunos
7132 need_lib_prefix=no
7133 need_version=no
7134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7135 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7137 dynamic_linker='NetBSD (a.out) ld.so'
7138 else
7139 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7140 soname_spec='${libname}${release}.so$major'
7141 dynamic_linker='NetBSD ld.elf_so'
7142 fi
7143 shlibpath_var=LD_LIBRARY_PATH
7144 shlibpath_overrides_runpath=yes
7145 hardcode_into_libs=yes
7146 ;;
7147
7148 newsos6)
7149 version_type=linux
7150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7151 shlibpath_var=LD_LIBRARY_PATH
7152 shlibpath_overrides_runpath=yes
7153 ;;
7154
7155 openbsd*)
7156 version_type=sunos
7157 need_lib_prefix=no
7158 need_version=no
7159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7160 case "$host_os" in
7161 openbsd2.[89] | openbsd2.[89].*)
7162 shlibpath_overrides_runpath=no
7163 ;;
7164 *)
7165 shlibpath_overrides_runpath=yes
7166 ;;
7167 esac
7168 else
7169 shlibpath_overrides_runpath=yes
7170 fi
7171 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7173 shlibpath_var=LD_LIBRARY_PATH
7174 ;;
7175
7176 os2*)
7177 libname_spec='$name'
7178 need_lib_prefix=no
7179 library_names_spec='$libname.dll $libname.a'
7180 dynamic_linker='OS/2 ld.exe'
7181 shlibpath_var=LIBPATH
7182 ;;
7183
7184 osf3* | osf4* | osf5*)
7185 version_type=osf
7186 need_version=no
7187 soname_spec='${libname}${release}.so$major'
7188 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7189 shlibpath_var=LD_LIBRARY_PATH
7190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7192 hardcode_into_libs=yes
7193 ;;
7194
7195 sco3.2v5*)
7196 version_type=osf
7197 soname_spec='${libname}${release}.so$major'
7198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7199 shlibpath_var=LD_LIBRARY_PATH
7200 ;;
7201
7202 solaris*)
7203 version_type=linux
7204 need_lib_prefix=no
7205 need_version=no
7206 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7207 soname_spec='${libname}${release}.so$major'
7208 shlibpath_var=LD_LIBRARY_PATH
7209 shlibpath_overrides_runpath=yes
7210 hardcode_into_libs=yes
7211 # ldd complains unless libraries are executable
7212 postinstall_cmds='chmod +x $lib'
7213 ;;
7214
7215 sunos4*)
7216 version_type=sunos
7217 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7218 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7219 shlibpath_var=LD_LIBRARY_PATH
7220 shlibpath_overrides_runpath=yes
7221 if test "$with_gnu_ld" = yes; then
7222 need_lib_prefix=no
7223 fi
7224 need_version=yes
7225 ;;
7226
7227 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7228 version_type=linux
7229 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7230 soname_spec='${libname}${release}.so$major'
7231 shlibpath_var=LD_LIBRARY_PATH
7232 case $host_vendor in
7233 sni)
7234 shlibpath_overrides_runpath=no
7235 need_lib_prefix=no
7236 export_dynamic_flag_spec='${wl}-Blargedynsym'
7237 runpath_var=LD_RUN_PATH
7238 ;;
7239 siemens)
7240 need_lib_prefix=no
7241 ;;
7242 motorola)
7243 need_lib_prefix=no
7244 need_version=no
7245 shlibpath_overrides_runpath=no
7246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7247 ;;
7248 esac
7249 ;;
7250
7251 uts4*)
7252 version_type=linux
7253 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7254 soname_spec='${libname}${release}.so$major'
7255 shlibpath_var=LD_LIBRARY_PATH
7256 ;;
7257
7258 dgux*)
7259 version_type=linux
7260 need_lib_prefix=no
7261 need_version=no
7262 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7263 soname_spec='${libname}${release}.so$major'
7264 shlibpath_var=LD_LIBRARY_PATH
7265 ;;
7266
7267 sysv4*MP*)
7268 if test -d /usr/nec ;then
7269 version_type=linux
7270 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7271 soname_spec='$libname.so.$major'
7272 shlibpath_var=LD_LIBRARY_PATH
7273 fi
7274 ;;
7275
7276 *)
7277 dynamic_linker=no
7278 ;;
7279 esac
7280 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7281 echo "${ECHO_T}$dynamic_linker" >&6
7282 test "$dynamic_linker" = no && can_build_shared=no
7283
7284 # Report the final consequences.
7285 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7286 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7287 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7288 echo "${ECHO_T}$can_build_shared" >&6
7289
7290 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7291 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7292 test "$can_build_shared" = "no" && enable_shared=no
7293
7294 # On AIX, shared libraries and static libraries use the same namespace, and
7295 # are all built from PIC.
7296 case "$host_os" in
7297 aix3*)
7298 test "$enable_shared" = yes && enable_static=no
7299 if test -n "$RANLIB"; then
7300 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7301 postinstall_cmds='$RANLIB $lib'
7302 fi
7303 ;;
7304
7305 aix4*)
7306 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7307 test "$enable_shared" = yes && enable_static=no
7308 fi
7309 ;;
7310 esac
7311 echo "$as_me:$LINENO: result: $enable_shared" >&5
7312 echo "${ECHO_T}$enable_shared" >&6
7313
7314 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7315 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7316 # Make sure either enable_shared or enable_static is yes.
7317 test "$enable_shared" = yes || enable_static=yes
7318 echo "$as_me:$LINENO: result: $enable_static" >&5
7319 echo "${ECHO_T}$enable_static" >&6
7320
7321 if test "$hardcode_action" = relink; then
7322 # Fast installation is not supported
7323 enable_fast_install=no
7324 elif test "$shlibpath_overrides_runpath" = yes ||
7325 test "$enable_shared" = no; then
7326 # Fast installation is not necessary
7327 enable_fast_install=needless
7328 fi
7329
7330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7331 if test "$GCC" = yes; then
7332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7333 fi
7334
7335 if test "x$enable_dlopen" != xyes; then
7336 enable_dlopen=unknown
7337 enable_dlopen_self=unknown
7338 enable_dlopen_self_static=unknown
7339 else
7340 lt_cv_dlopen=no
7341 lt_cv_dlopen_libs=
7342
7343 case $host_os in
7344 beos*)
7345 lt_cv_dlopen="load_add_on"
7346 lt_cv_dlopen_libs=
7347 lt_cv_dlopen_self=yes
7348 ;;
7349
7350 cygwin* | mingw* | pw32*)
7351 lt_cv_dlopen="LoadLibrary"
7352 lt_cv_dlopen_libs=
7353 ;;
7354
7355 *)
7356 echo "$as_me:$LINENO: checking for shl_load" >&5
7357 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7358 if test "${ac_cv_func_shl_load+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7369 #define shl_load innocuous_shl_load
7370
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char shl_load (); below.
7373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 <limits.h> exists even on freestanding compilers. */
7375
7376 #ifdef __STDC__
7377 # include <limits.h>
7378 #else
7379 # include <assert.h>
7380 #endif
7381
7382 #undef shl_load
7383
7384 /* Override any gcc2 internal prototype to avoid an error. */
7385 #ifdef __cplusplus
7386 extern "C"
7387 {
7388 #endif
7389 /* We use char because int might match the return type of a gcc2
7390 builtin and then its argument prototype would still apply. */
7391 char shl_load ();
7392 /* The GNU C library defines this for functions which it implements
7393 to always fail with ENOSYS. Some functions are actually named
7394 something starting with __ and the normal name is an alias. */
7395 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7396 choke me
7397 #else
7398 char (*f) () = shl_load;
7399 #endif
7400 #ifdef __cplusplus
7401 }
7402 #endif
7403
7404 int
7405 main ()
7406 {
7407 return f != shl_load;
7408 ;
7409 return 0;
7410 }
7411 _ACEOF
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7414 (eval $ac_link) 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } &&
7421 { ac_try='test -z "$ac_c_werror_flag"
7422 || test ! -s conftest.err'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; } &&
7428 { ac_try='test -s conftest$ac_exeext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_cv_func_shl_load=yes
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 ac_cv_func_shl_load=no
7440 fi
7441 rm -f conftest.err conftest.$ac_objext \
7442 conftest$ac_exeext conftest.$ac_ext
7443 fi
7444 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7445 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7446 if test $ac_cv_func_shl_load = yes; then
7447 lt_cv_dlopen="shl_load"
7448 else
7449 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7450 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7451 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 ac_check_lib_save_LIBS=$LIBS
7455 LIBS="-ldld $LIBS"
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7469 char shl_load ();
7470 int
7471 main ()
7472 {
7473 shl_load ();
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -z "$ac_c_werror_flag"
7488 || test ! -s conftest.err'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; } &&
7494 { ac_try='test -s conftest$ac_exeext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_cv_lib_dld_shl_load=yes
7501 else
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505 ac_cv_lib_dld_shl_load=no
7506 fi
7507 rm -f conftest.err conftest.$ac_objext \
7508 conftest$ac_exeext conftest.$ac_ext
7509 LIBS=$ac_check_lib_save_LIBS
7510 fi
7511 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7512 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7513 if test $ac_cv_lib_dld_shl_load = yes; then
7514 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7515 else
7516 echo "$as_me:$LINENO: checking for dlopen" >&5
7517 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7518 if test "${ac_cv_func_dlopen+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7529 #define dlopen innocuous_dlopen
7530
7531 /* System header to define __stub macros and hopefully few prototypes,
7532 which can conflict with char dlopen (); below.
7533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534 <limits.h> exists even on freestanding compilers. */
7535
7536 #ifdef __STDC__
7537 # include <limits.h>
7538 #else
7539 # include <assert.h>
7540 #endif
7541
7542 #undef dlopen
7543
7544 /* Override any gcc2 internal prototype to avoid an error. */
7545 #ifdef __cplusplus
7546 extern "C"
7547 {
7548 #endif
7549 /* We use char because int might match the return type of a gcc2
7550 builtin and then its argument prototype would still apply. */
7551 char dlopen ();
7552 /* The GNU C library defines this for functions which it implements
7553 to always fail with ENOSYS. Some functions are actually named
7554 something starting with __ and the normal name is an alias. */
7555 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7556 choke me
7557 #else
7558 char (*f) () = dlopen;
7559 #endif
7560 #ifdef __cplusplus
7561 }
7562 #endif
7563
7564 int
7565 main ()
7566 {
7567 return f != dlopen;
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_func_dlopen=yes
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_cv_func_dlopen=no
7600 fi
7601 rm -f conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603 fi
7604 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7605 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7606 if test $ac_cv_func_dlopen = yes; then
7607 lt_cv_dlopen="dlopen"
7608 else
7609 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7610 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 ac_check_lib_save_LIBS=$LIBS
7615 LIBS="-ldl $LIBS"
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622
7623 /* Override any gcc2 internal prototype to avoid an error. */
7624 #ifdef __cplusplus
7625 extern "C"
7626 #endif
7627 /* We use char because int might match the return type of a gcc2
7628 builtin and then its argument prototype would still apply. */
7629 char dlopen ();
7630 int
7631 main ()
7632 {
7633 dlopen ();
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext conftest$ac_exeext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7640 (eval $ac_link) 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try='test -s conftest$ac_exeext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 ac_cv_lib_dl_dlopen=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 ac_cv_lib_dl_dlopen=no
7666 fi
7667 rm -f conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 LIBS=$ac_check_lib_save_LIBS
7670 fi
7671 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7672 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7673 if test $ac_cv_lib_dl_dlopen = yes; then
7674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7675 else
7676 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7677 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7678 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681 ac_check_lib_save_LIBS=$LIBS
7682 LIBS="-lsvld $LIBS"
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689
7690 /* Override any gcc2 internal prototype to avoid an error. */
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7696 char dlopen ();
7697 int
7698 main ()
7699 {
7700 dlopen ();
7701 ;
7702 return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_c_werror_flag"
7715 || test ! -s conftest.err'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 ac_cv_lib_svld_dlopen=yes
7728 else
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ac_cv_lib_svld_dlopen=no
7733 fi
7734 rm -f conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LIBS=$ac_check_lib_save_LIBS
7737 fi
7738 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7739 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7740 if test $ac_cv_lib_svld_dlopen = yes; then
7741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7742 else
7743 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7744 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-ldld $LIBS"
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756
7757 /* Override any gcc2 internal prototype to avoid an error. */
7758 #ifdef __cplusplus
7759 extern "C"
7760 #endif
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7763 char dld_link ();
7764 int
7765 main ()
7766 {
7767 dld_link ();
7768 ;
7769 return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag"
7782 || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try='test -s conftest$ac_exeext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_lib_dld_dld_link=yes
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 ac_cv_lib_dld_dld_link=no
7800 fi
7801 rm -f conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 LIBS=$ac_check_lib_save_LIBS
7804 fi
7805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7807 if test $ac_cv_lib_dld_dld_link = yes; then
7808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7809 fi
7810
7811
7812 fi
7813
7814
7815 fi
7816
7817
7818 fi
7819
7820
7821 fi
7822
7823
7824 fi
7825
7826 ;;
7827 esac
7828
7829 if test "x$lt_cv_dlopen" != xno; then
7830 enable_dlopen=yes
7831 else
7832 enable_dlopen=no
7833 fi
7834
7835 case $lt_cv_dlopen in
7836 dlopen)
7837 save_CPPFLAGS="$CPPFLAGS"
7838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7839
7840 save_LDFLAGS="$LDFLAGS"
7841 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7842
7843 save_LIBS="$LIBS"
7844 LIBS="$lt_cv_dlopen_libs $LIBS"
7845
7846 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7847 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7848 if test "${lt_cv_dlopen_self+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851 if test "$cross_compiling" = yes; then :
7852 lt_cv_dlopen_self=cross
7853 else
7854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7855 lt_status=$lt_dlunknown
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7857 "configure"
7858 #include "confdefs.h"
7859
7860 #if HAVE_DLFCN_H
7861 #include <dlfcn.h>
7862 #endif
7863
7864 #include <stdio.h>
7865
7866 #ifdef RTLD_GLOBAL
7867 # define LT_DLGLOBAL RTLD_GLOBAL
7868 #else
7869 # ifdef DL_GLOBAL
7870 # define LT_DLGLOBAL DL_GLOBAL
7871 # else
7872 # define LT_DLGLOBAL 0
7873 # endif
7874 #endif
7875
7876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7877 find out it does not work in some platform. */
7878 #ifndef LT_DLLAZY_OR_NOW
7879 # ifdef RTLD_LAZY
7880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7881 # else
7882 # ifdef DL_LAZY
7883 # define LT_DLLAZY_OR_NOW DL_LAZY
7884 # else
7885 # ifdef RTLD_NOW
7886 # define LT_DLLAZY_OR_NOW RTLD_NOW
7887 # else
7888 # ifdef DL_NOW
7889 # define LT_DLLAZY_OR_NOW DL_NOW
7890 # else
7891 # define LT_DLLAZY_OR_NOW 0
7892 # endif
7893 # endif
7894 # endif
7895 # endif
7896 #endif
7897
7898 #ifdef __cplusplus
7899 extern "C" void exit (int);
7900 #endif
7901
7902 void fnord() { int i=42;}
7903 int main ()
7904 {
7905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7906 int status = $lt_dlunknown;
7907
7908 if (self)
7909 {
7910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7911 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7912 /* dlclose (self); */
7913 }
7914
7915 exit (status);
7916 }
7917 EOF
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7923 (./conftest; exit; ) 2>/dev/null
7924 lt_status=$?
7925 case x$lt_status in
7926 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7927 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7928 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7929 esac
7930 else :
7931 # compilation failed
7932 lt_cv_dlopen_self=no
7933 fi
7934 fi
7935 rm -fr conftest*
7936
7937
7938 fi
7939 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7940 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7941
7942 if test "x$lt_cv_dlopen_self" = xyes; then
7943 LDFLAGS="$LDFLAGS $link_static_flag"
7944 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7945 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7946 if test "${lt_cv_dlopen_self_static+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949 if test "$cross_compiling" = yes; then :
7950 lt_cv_dlopen_self_static=cross
7951 else
7952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7953 lt_status=$lt_dlunknown
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7955 "configure"
7956 #include "confdefs.h"
7957
7958 #if HAVE_DLFCN_H
7959 #include <dlfcn.h>
7960 #endif
7961
7962 #include <stdio.h>
7963
7964 #ifdef RTLD_GLOBAL
7965 # define LT_DLGLOBAL RTLD_GLOBAL
7966 #else
7967 # ifdef DL_GLOBAL
7968 # define LT_DLGLOBAL DL_GLOBAL
7969 # else
7970 # define LT_DLGLOBAL 0
7971 # endif
7972 #endif
7973
7974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7975 find out it does not work in some platform. */
7976 #ifndef LT_DLLAZY_OR_NOW
7977 # ifdef RTLD_LAZY
7978 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7979 # else
7980 # ifdef DL_LAZY
7981 # define LT_DLLAZY_OR_NOW DL_LAZY
7982 # else
7983 # ifdef RTLD_NOW
7984 # define LT_DLLAZY_OR_NOW RTLD_NOW
7985 # else
7986 # ifdef DL_NOW
7987 # define LT_DLLAZY_OR_NOW DL_NOW
7988 # else
7989 # define LT_DLLAZY_OR_NOW 0
7990 # endif
7991 # endif
7992 # endif
7993 # endif
7994 #endif
7995
7996 #ifdef __cplusplus
7997 extern "C" void exit (int);
7998 #endif
7999
8000 void fnord() { int i=42;}
8001 int main ()
8002 {
8003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8004 int status = $lt_dlunknown;
8005
8006 if (self)
8007 {
8008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8010 /* dlclose (self); */
8011 }
8012
8013 exit (status);
8014 }
8015 EOF
8016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8021 (./conftest; exit; ) 2>/dev/null
8022 lt_status=$?
8023 case x$lt_status in
8024 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8025 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8026 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8027 esac
8028 else :
8029 # compilation failed
8030 lt_cv_dlopen_self_static=no
8031 fi
8032 fi
8033 rm -fr conftest*
8034
8035
8036 fi
8037 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8038 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8039 fi
8040
8041 CPPFLAGS="$save_CPPFLAGS"
8042 LDFLAGS="$save_LDFLAGS"
8043 LIBS="$save_LIBS"
8044 ;;
8045 esac
8046
8047 case $lt_cv_dlopen_self in
8048 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8049 *) enable_dlopen_self=unknown ;;
8050 esac
8051
8052 case $lt_cv_dlopen_self_static in
8053 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8054 *) enable_dlopen_self_static=unknown ;;
8055 esac
8056 fi
8057
8058
8059 if test "$enable_shared" = yes && test "$GCC" = yes; then
8060 case $archive_cmds in
8061 *'~'*)
8062 # FIXME: we may have to deal with multi-command sequences.
8063 ;;
8064 '$CC '*)
8065 # Test whether the compiler implicitly links with -lc since on some
8066 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8067 # to ld, don't add -lc before -lgcc.
8068 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8069 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8070 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 $rm conftest*
8074 echo 'static int dummy;' > conftest.$ac_ext
8075
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; then
8081 soname=conftest
8082 lib=conftest
8083 libobjs=conftest.$ac_objext
8084 deplibs=
8085 wl=$lt_cv_prog_cc_wl
8086 compiler_flags=-v
8087 linker_flags=-v
8088 verstring=
8089 output_objdir=.
8090 libname=conftest
8091 save_allow_undefined_flag=$allow_undefined_flag
8092 allow_undefined_flag=
8093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8094 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }
8098 then
8099 lt_cv_archive_cmds_need_lc=no
8100 else
8101 lt_cv_archive_cmds_need_lc=yes
8102 fi
8103 allow_undefined_flag=$save_allow_undefined_flag
8104 else
8105 cat conftest.err 1>&5
8106 fi
8107 fi
8108
8109 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8110 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8111 ;;
8112 esac
8113 fi
8114 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8115
8116 # The second clause should only fire when bootstrapping the
8117 # libtool distribution, otherwise you forgot to ship ltmain.sh
8118 # with your package, and you will get complaints that there are
8119 # no rules to generate ltmain.sh.
8120 if test -f "$ltmain"; then
8121 :
8122 else
8123 # If there is no Makefile yet, we rely on a make rule to execute
8124 # `config.status --recheck' to rerun these tests and create the
8125 # libtool script then.
8126 test -f Makefile && make "$ltmain"
8127 fi
8128
8129 if test -f "$ltmain"; then
8130 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8131 $rm -f "${ofile}T"
8132
8133 echo creating $ofile
8134
8135 # Now quote all the things that may contain metacharacters while being
8136 # careful not to overquote the AC_SUBSTed values. We take copies of the
8137 # variables and quote the copies for generation of the libtool script.
8138 for var in echo old_CC old_CFLAGS SED \
8139 AR AR_FLAGS CC LD LN_S NM SHELL \
8140 reload_flag reload_cmds wl \
8141 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8142 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8143 library_names_spec soname_spec \
8144 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8145 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8146 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8147 old_striplib striplib file_magic_cmd export_symbols_cmds \
8148 deplibs_check_method allow_undefined_flag no_undefined_flag \
8149 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8150 global_symbol_to_c_name_address \
8151 hardcode_libdir_flag_spec hardcode_libdir_separator \
8152 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8153 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8154
8155 case $var in
8156 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8157 old_postinstall_cmds | old_postuninstall_cmds | \
8158 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8159 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8160 postinstall_cmds | postuninstall_cmds | \
8161 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8162 # Double-quote double-evaled strings.
8163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8164 ;;
8165 *)
8166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8167 ;;
8168 esac
8169 done
8170
8171 cat <<__EOF__ > "${ofile}T"
8172 #! $SHELL
8173
8174 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8175 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8176 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8177 #
8178 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8179 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8180 #
8181 # This program is free software; you can redistribute it and/or modify
8182 # it under the terms of the GNU General Public License as published by
8183 # the Free Software Foundation; either version 2 of the License, or
8184 # (at your option) any later version.
8185 #
8186 # This program is distributed in the hope that it will be useful, but
8187 # WITHOUT ANY WARRANTY; without even the implied warranty of
8188 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8189 # General Public License for more details.
8190 #
8191 # You should have received a copy of the GNU General Public License
8192 # along with this program; if not, write to the Free Software
8193 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8194 #
8195 # As a special exception to the GNU General Public License, if you
8196 # distribute this file as part of a program that contains a
8197 # configuration script generated by Autoconf, you may include it under
8198 # the same distribution terms that you use for the rest of that program.
8199
8200 # A sed that does not truncate output.
8201 SED=$lt_SED
8202
8203 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8204 Xsed="${SED} -e s/^X//"
8205
8206 # The HP-UX ksh and POSIX shell print the target directory to stdout
8207 # if CDPATH is set.
8208 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8209
8210 # ### BEGIN LIBTOOL CONFIG
8211
8212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8213
8214 # Shell to use when invoking shell scripts.
8215 SHELL=$lt_SHELL
8216
8217 # Whether or not to build shared libraries.
8218 build_libtool_libs=$enable_shared
8219
8220 # Whether or not to build static libraries.
8221 build_old_libs=$enable_static
8222
8223 # Whether or not to add -lc for building shared libraries.
8224 build_libtool_need_lc=$need_lc
8225
8226 # Whether or not to optimize for fast installation.
8227 fast_install=$enable_fast_install
8228
8229 # The host system.
8230 host_alias=$host_alias
8231 host=$host
8232
8233 # An echo program that does not interpret backslashes.
8234 echo=$lt_echo
8235
8236 # The archiver.
8237 AR=$lt_AR
8238 AR_FLAGS=$lt_AR_FLAGS
8239
8240 # The default C compiler.
8241 CC=$lt_CC
8242
8243 # Is the compiler the GNU C compiler?
8244 with_gcc=$GCC
8245
8246 # The linker used to build libraries.
8247 LD=$lt_LD
8248
8249 # Whether we need hard or soft links.
8250 LN_S=$lt_LN_S
8251
8252 # A BSD-compatible nm program.
8253 NM=$lt_NM
8254
8255 # A symbol stripping program
8256 STRIP=$STRIP
8257
8258 # Used to examine libraries when file_magic_cmd begins "file"
8259 MAGIC_CMD=$MAGIC_CMD
8260
8261 # Used on cygwin: DLL creation program.
8262 DLLTOOL="$DLLTOOL"
8263
8264 # Used on cygwin: object dumper.
8265 OBJDUMP="$OBJDUMP"
8266
8267 # Used on cygwin: assembler.
8268 AS="$AS"
8269
8270 # The name of the directory that contains temporary libtool files.
8271 objdir=$objdir
8272
8273 # How to create reloadable object files.
8274 reload_flag=$lt_reload_flag
8275 reload_cmds=$lt_reload_cmds
8276
8277 # How to pass a linker flag through the compiler.
8278 wl=$lt_wl
8279
8280 # Object file suffix (normally "o").
8281 objext="$ac_objext"
8282
8283 # Old archive suffix (normally "a").
8284 libext="$libext"
8285
8286 # Executable file suffix (normally "").
8287 exeext="$exeext"
8288
8289 # Additional compiler flags for building library objects.
8290 pic_flag=$lt_pic_flag
8291 pic_mode=$pic_mode
8292
8293 # Does compiler simultaneously support -c and -o options?
8294 compiler_c_o=$lt_compiler_c_o
8295
8296 # Can we write directly to a .lo ?
8297 compiler_o_lo=$lt_compiler_o_lo
8298
8299 # Must we lock files when doing compilation ?
8300 need_locks=$lt_need_locks
8301
8302 # Do we need the lib prefix for modules?
8303 need_lib_prefix=$need_lib_prefix
8304
8305 # Do we need a version for libraries?
8306 need_version=$need_version
8307
8308 # Whether dlopen is supported.
8309 dlopen_support=$enable_dlopen
8310
8311 # Whether dlopen of programs is supported.
8312 dlopen_self=$enable_dlopen_self
8313
8314 # Whether dlopen of statically linked programs is supported.
8315 dlopen_self_static=$enable_dlopen_self_static
8316
8317 # Compiler flag to prevent dynamic linking.
8318 link_static_flag=$lt_link_static_flag
8319
8320 # Compiler flag to turn off builtin functions.
8321 no_builtin_flag=$lt_no_builtin_flag
8322
8323 # Compiler flag to allow reflexive dlopens.
8324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8325
8326 # Compiler flag to generate shared objects directly from archives.
8327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8328
8329 # Compiler flag to generate thread-safe objects.
8330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8331
8332 # Library versioning type.
8333 version_type=$version_type
8334
8335 # Format of library name prefix.
8336 libname_spec=$lt_libname_spec
8337
8338 # List of archive names. First name is the real one, the rest are links.
8339 # The last name is the one that the linker finds with -lNAME.
8340 library_names_spec=$lt_library_names_spec
8341
8342 # The coded name of the library, if different from the real name.
8343 soname_spec=$lt_soname_spec
8344
8345 # Commands used to build and install an old-style archive.
8346 RANLIB=$lt_RANLIB
8347 old_archive_cmds=$lt_old_archive_cmds
8348 old_postinstall_cmds=$lt_old_postinstall_cmds
8349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8350
8351 # Create an old-style archive from a shared archive.
8352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8353
8354 # Create a temporary old-style archive to link instead of a shared archive.
8355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8356
8357 # Commands used to build and install a shared archive.
8358 archive_cmds=$lt_archive_cmds
8359 archive_expsym_cmds=$lt_archive_expsym_cmds
8360 postinstall_cmds=$lt_postinstall_cmds
8361 postuninstall_cmds=$lt_postuninstall_cmds
8362
8363 # Commands to strip libraries.
8364 old_striplib=$lt_old_striplib
8365 striplib=$lt_striplib
8366
8367 # Method to check whether dependent libraries are shared objects.
8368 deplibs_check_method=$lt_deplibs_check_method
8369
8370 # Command to use when deplibs_check_method == file_magic.
8371 file_magic_cmd=$lt_file_magic_cmd
8372
8373 # Flag that allows shared libraries with undefined symbols to be built.
8374 allow_undefined_flag=$lt_allow_undefined_flag
8375
8376 # Flag that forces no undefined symbols.
8377 no_undefined_flag=$lt_no_undefined_flag
8378
8379 # Commands used to finish a libtool library installation in a directory.
8380 finish_cmds=$lt_finish_cmds
8381
8382 # Same as above, but a single script fragment to be evaled but not shown.
8383 finish_eval=$lt_finish_eval
8384
8385 # Take the output of nm and produce a listing of raw symbols and C names.
8386 global_symbol_pipe=$lt_global_symbol_pipe
8387
8388 # Transform the output of nm in a proper C declaration
8389 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8390
8391 # Transform the output of nm in a C name address pair
8392 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8393
8394 # This is the shared library runtime path variable.
8395 runpath_var=$runpath_var
8396
8397 # This is the shared library path variable.
8398 shlibpath_var=$shlibpath_var
8399
8400 # Is shlibpath searched before the hard-coded library search path?
8401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8402
8403 # How to hardcode a shared library path into an executable.
8404 hardcode_action=$hardcode_action
8405
8406 # Whether we should hardcode library paths into libraries.
8407 hardcode_into_libs=$hardcode_into_libs
8408
8409 # Flag to hardcode \$libdir into a binary during linking.
8410 # This must work even if \$libdir does not exist.
8411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8412
8413 # Whether we need a single -rpath flag with a separated argument.
8414 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8415
8416 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8417 # resulting binary.
8418 hardcode_direct=$hardcode_direct
8419
8420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8421 # resulting binary.
8422 hardcode_minus_L=$hardcode_minus_L
8423
8424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8425 # the resulting binary.
8426 hardcode_shlibpath_var=$hardcode_shlibpath_var
8427
8428 # Variables whose values should be saved in libtool wrapper scripts and
8429 # restored at relink time.
8430 variables_saved_for_relink="$variables_saved_for_relink"
8431
8432 # Whether libtool must link a program against all its dependency libraries.
8433 link_all_deplibs=$link_all_deplibs
8434
8435 # Compile-time system search path for libraries
8436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8437
8438 # Run-time system search path for libraries
8439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8440
8441 # Fix the shell variable \$srcfile for the compiler.
8442 fix_srcfile_path="$fix_srcfile_path"
8443
8444 # Set to yes if exported symbols are required.
8445 always_export_symbols=$always_export_symbols
8446
8447 # The commands to list exported symbols.
8448 export_symbols_cmds=$lt_export_symbols_cmds
8449
8450 # The commands to extract the exported symbol list from a shared archive.
8451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8452
8453 # Symbols that should not be listed in the preloaded symbols.
8454 exclude_expsyms=$lt_exclude_expsyms
8455
8456 # Symbols that must always be exported.
8457 include_expsyms=$lt_include_expsyms
8458
8459 # ### END LIBTOOL CONFIG
8460
8461 __EOF__
8462
8463 case $host_os in
8464 aix3*)
8465 cat <<\EOF >> "${ofile}T"
8466
8467 # AIX sometimes has problems with the GCC collect2 program. For some
8468 # reason, if we set the COLLECT_NAMES environment variable, the problems
8469 # vanish in a puff of smoke.
8470 if test "X${COLLECT_NAMES+set}" != Xset; then
8471 COLLECT_NAMES=
8472 export COLLECT_NAMES
8473 fi
8474 EOF
8475 ;;
8476 esac
8477
8478 case $host_os in
8479 cygwin* | mingw* | pw32* | os2*)
8480 cat <<'EOF' >> "${ofile}T"
8481 # This is a source program that is used to create dlls on Windows
8482 # Don't remove nor modify the starting and closing comments
8483 # /* ltdll.c starts here */
8484 # #define WIN32_LEAN_AND_MEAN
8485 # #include <windows.h>
8486 # #undef WIN32_LEAN_AND_MEAN
8487 # #include <stdio.h>
8488 #
8489 # #ifndef __CYGWIN__
8490 # # ifdef __CYGWIN32__
8491 # # define __CYGWIN__ __CYGWIN32__
8492 # # endif
8493 # #endif
8494 #
8495 # #ifdef __cplusplus
8496 # extern "C" {
8497 # #endif
8498 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8499 # #ifdef __cplusplus
8500 # }
8501 # #endif
8502 #
8503 # #ifdef __CYGWIN__
8504 # #include <cygwin/cygwin_dll.h>
8505 # DECLARE_CYGWIN_DLL( DllMain );
8506 # #endif
8507 # HINSTANCE __hDllInstance_base;
8508 #
8509 # BOOL APIENTRY
8510 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8511 # {
8512 # __hDllInstance_base = hInst;
8513 # return TRUE;
8514 # }
8515 # /* ltdll.c ends here */
8516 # This is a source program that is used to create import libraries
8517 # on Windows for dlls which lack them. Don't remove nor modify the
8518 # starting and closing comments
8519 # /* impgen.c starts here */
8520 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8521 #
8522 # This file is part of GNU libtool.
8523 #
8524 # This program is free software; you can redistribute it and/or modify
8525 # it under the terms of the GNU General Public License as published by
8526 # the Free Software Foundation; either version 2 of the License, or
8527 # (at your option) any later version.
8528 #
8529 # This program is distributed in the hope that it will be useful,
8530 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8531 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8532 # GNU General Public License for more details.
8533 #
8534 # You should have received a copy of the GNU General Public License
8535 # along with this program; if not, write to the Free Software
8536 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8537 # */
8538 #
8539 # #include <stdio.h> /* for printf() */
8540 # #include <unistd.h> /* for open(), lseek(), read() */
8541 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8542 # #include <string.h> /* for strdup() */
8543 #
8544 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8545 # #ifndef O_BINARY
8546 # #define O_BINARY 0
8547 # #endif
8548 #
8549 # static unsigned int
8550 # pe_get16 (fd, offset)
8551 # int fd;
8552 # int offset;
8553 # {
8554 # unsigned char b[2];
8555 # lseek (fd, offset, SEEK_SET);
8556 # read (fd, b, 2);
8557 # return b[0] + (b[1]<<8);
8558 # }
8559 #
8560 # static unsigned int
8561 # pe_get32 (fd, offset)
8562 # int fd;
8563 # int offset;
8564 # {
8565 # unsigned char b[4];
8566 # lseek (fd, offset, SEEK_SET);
8567 # read (fd, b, 4);
8568 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8569 # }
8570 #
8571 # static unsigned int
8572 # pe_as32 (ptr)
8573 # void *ptr;
8574 # {
8575 # unsigned char *b = ptr;
8576 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8577 # }
8578 #
8579 # int
8580 # main (argc, argv)
8581 # int argc;
8582 # char *argv[];
8583 # {
8584 # int dll;
8585 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8586 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8587 # unsigned long name_rvas, nexp;
8588 # unsigned char *expdata, *erva;
8589 # char *filename, *dll_name;
8590 #
8591 # filename = argv[1];
8592 #
8593 # dll = open(filename, O_RDONLY|O_BINARY);
8594 # if (dll < 1)
8595 # return 1;
8596 #
8597 # dll_name = filename;
8598 #
8599 # for (i=0; filename[i]; i++)
8600 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8601 # dll_name = filename + i +1;
8602 #
8603 # pe_header_offset = pe_get32 (dll, 0x3c);
8604 # opthdr_ofs = pe_header_offset + 4 + 20;
8605 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8606 #
8607 # if (num_entries < 1) /* no exports */
8608 # return 1;
8609 #
8610 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8611 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8612 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8613 # secptr = (pe_header_offset + 4 + 20 +
8614 # pe_get16 (dll, pe_header_offset + 4 + 16));
8615 #
8616 # expptr = 0;
8617 # for (i = 0; i < nsections; i++)
8618 # {
8619 # char sname[8];
8620 # unsigned long secptr1 = secptr + 40 * i;
8621 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8622 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8623 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8624 # lseek(dll, secptr1, SEEK_SET);
8625 # read(dll, sname, 8);
8626 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8627 # {
8628 # expptr = fptr + (export_rva - vaddr);
8629 # if (export_rva + export_size > vaddr + vsize)
8630 # export_size = vsize - (export_rva - vaddr);
8631 # break;
8632 # }
8633 # }
8634 #
8635 # expdata = (unsigned char*)malloc(export_size);
8636 # lseek (dll, expptr, SEEK_SET);
8637 # read (dll, expdata, export_size);
8638 # erva = expdata - export_rva;
8639 #
8640 # nexp = pe_as32 (expdata+24);
8641 # name_rvas = pe_as32 (expdata+32);
8642 #
8643 # printf ("EXPORTS\n");
8644 # for (i = 0; i<nexp; i++)
8645 # {
8646 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8647 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8648 # }
8649 #
8650 # return 0;
8651 # }
8652 # /* impgen.c ends here */
8653
8654 EOF
8655 ;;
8656 esac
8657
8658 # We use sed instead of cat because bash on DJGPP gets confused if
8659 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8660 # text mode, it properly converts lines to CR/LF. This bash problem
8661 # is reportedly fixed, but why not run on old versions too?
8662 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8663
8664 mv -f "${ofile}T" "$ofile" || \
8665 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8666 chmod +x "$ofile"
8667 fi
8668
8669
8670
8671
8672
8673 # This can be used to rebuild libtool when needed
8674 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8675
8676 # Always use our own libtool.
8677 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8678
8679 # Prevent multiple expansion
8680
8681
8682
8683 # Find a good install program. We prefer a C program (faster),
8684 # so one script is as good as another. But avoid the broken or
8685 # incompatible versions:
8686 # SysV /etc/install, /usr/sbin/install
8687 # SunOS /usr/etc/install
8688 # IRIX /sbin/install
8689 # AIX /bin/install
8690 # AmigaOS /C/install, which installs bootblocks on floppy discs
8691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8694 # OS/2's system install, which has a completely different semantic
8695 # ./install, which can be erroneously created by make from ./install.sh.
8696 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8697 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8698 if test -z "$INSTALL"; then
8699 if test "${ac_cv_path_install+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 # Account for people who put trailing slashes in PATH elements.
8708 case $as_dir/ in
8709 ./ | .// | /cC/* | \
8710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8712 /usr/ucb/* ) ;;
8713 *)
8714 # OSF1 and SCO ODT 3.0 have their own names for install.
8715 # Don't use installbsd from OSF since it installs stuff as root
8716 # by default.
8717 for ac_prog in ginstall scoinst install; do
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8720 if test $ac_prog = install &&
8721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8722 # AIX install. It has an incompatible calling convention.
8723 :
8724 elif test $ac_prog = install &&
8725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8726 # program-specific install script used by HP pwplus--don't use.
8727 :
8728 else
8729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8730 break 3
8731 fi
8732 fi
8733 done
8734 done
8735 ;;
8736 esac
8737 done
8738
8739
8740 fi
8741 if test "${ac_cv_path_install+set}" = set; then
8742 INSTALL=$ac_cv_path_install
8743 else
8744 # As a last resort, use the slow shell script. We don't cache a
8745 # path for INSTALL within a source directory, because that will
8746 # break other packages using the cache if that directory is
8747 # removed, or if the path is relative.
8748 INSTALL=$ac_install_sh
8749 fi
8750 fi
8751 echo "$as_me:$LINENO: result: $INSTALL" >&5
8752 echo "${ECHO_T}$INSTALL" >&6
8753
8754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8755 # It thinks the first close brace ends the variable substitution.
8756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8757
8758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8759
8760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8761
8762
8763 if test -n "$ac_tool_prefix"; then
8764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8766 echo "$as_me:$LINENO: checking for $ac_word" >&5
8767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8768 if test "${ac_cv_prog_RANLIB+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 if test -n "$RANLIB"; then
8772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787
8788 fi
8789 fi
8790 RANLIB=$ac_cv_prog_RANLIB
8791 if test -n "$RANLIB"; then
8792 echo "$as_me:$LINENO: result: $RANLIB" >&5
8793 echo "${ECHO_T}$RANLIB" >&6
8794 else
8795 echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6
8797 fi
8798
8799 fi
8800 if test -z "$ac_cv_prog_RANLIB"; then
8801 ac_ct_RANLIB=$RANLIB
8802 # Extract the first word of "ranlib", so it can be a program name with args.
8803 set dummy ranlib; ac_word=$2
8804 echo "$as_me:$LINENO: checking for $ac_word" >&5
8805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8806 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809 if test -n "$ac_ct_RANLIB"; then
8810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_ac_ct_RANLIB="ranlib"
8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823 done
8824 done
8825
8826 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8827 fi
8828 fi
8829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8830 if test -n "$ac_ct_RANLIB"; then
8831 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8832 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8833 else
8834 echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8836 fi
8837
8838 RANLIB=$ac_ct_RANLIB
8839 else
8840 RANLIB="$ac_cv_prog_RANLIB"
8841 fi
8842
8843
8844
8845 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8846 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8847 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8848 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 cat >conftest.make <<\_ACEOF
8852 all:
8853 @echo 'ac_maketemp="$(MAKE)"'
8854 _ACEOF
8855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8856 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8857 if test -n "$ac_maketemp"; then
8858 eval ac_cv_prog_make_${ac_make}_set=yes
8859 else
8860 eval ac_cv_prog_make_${ac_make}_set=no
8861 fi
8862 rm -f conftest.make
8863 fi
8864 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8865 echo "$as_me:$LINENO: result: yes" >&5
8866 echo "${ECHO_T}yes" >&6
8867 SET_MAKE=
8868 else
8869 echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8871 SET_MAKE="MAKE=${MAKE-make}"
8872 fi
8873
8874 # Extract the first word of "doxygen", so it can be a program name with args.
8875 set dummy doxygen; ac_word=$2
8876 echo "$as_me:$LINENO: checking for $ac_word" >&5
8877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8878 if test "${ac_cv_prog_HAS_DOXYFILE+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 if test -n "$HAS_DOXYFILE"; then
8882 ac_cv_prog_HAS_DOXYFILE="$HAS_DOXYFILE" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8886 do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891 ac_cv_prog_HAS_DOXYFILE="yes"
8892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8894 fi
8895 done
8896 done
8897
8898 fi
8899 fi
8900 HAS_DOXYFILE=$ac_cv_prog_HAS_DOXYFILE
8901 if test -n "$HAS_DOXYFILE"; then
8902 echo "$as_me:$LINENO: result: $HAS_DOXYFILE" >&5
8903 echo "${ECHO_T}$HAS_DOXYFILE" >&6
8904 else
8905 echo "$as_me:$LINENO: result: no" >&5
8906 echo "${ECHO_T}no" >&6
8907 fi
8908
8909
8910 missing_dir=`cd $ac_aux_dir && pwd`
8911 echo "$as_me:$LINENO: checking for working aclocal" >&5
8912 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
8913 # Run test in a subshell; some versions of sh will print an error if
8914 # an executable is not found, even if stderr is redirected.
8915 # Redirect stdin to placate older versions of autoconf. Sigh.
8916 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
8917 ACLOCAL=aclocal
8918 echo "$as_me:$LINENO: result: found" >&5
8919 echo "${ECHO_T}found" >&6
8920 else
8921 ACLOCAL="$missing_dir/missing aclocal"
8922 echo "$as_me:$LINENO: result: missing" >&5
8923 echo "${ECHO_T}missing" >&6
8924 fi
8925
8926 echo "$as_me:$LINENO: checking for working autoconf" >&5
8927 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
8928 # Run test in a subshell; some versions of sh will print an error if
8929 # an executable is not found, even if stderr is redirected.
8930 # Redirect stdin to placate older versions of autoconf. Sigh.
8931 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
8932 AUTOCONF=autoconf
8933 echo "$as_me:$LINENO: result: found" >&5
8934 echo "${ECHO_T}found" >&6
8935 else
8936 AUTOCONF="$missing_dir/missing autoconf"
8937 echo "$as_me:$LINENO: result: missing" >&5
8938 echo "${ECHO_T}missing" >&6
8939 fi
8940
8941 echo "$as_me:$LINENO: checking for working automake" >&5
8942 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
8943 # Run test in a subshell; some versions of sh will print an error if
8944 # an executable is not found, even if stderr is redirected.
8945 # Redirect stdin to placate older versions of autoconf. Sigh.
8946 if (automake --version) < /dev/null > /dev/null 2>&1; then
8947 AUTOMAKE=automake
8948 echo "$as_me:$LINENO: result: found" >&5
8949 echo "${ECHO_T}found" >&6
8950 else
8951 AUTOMAKE="$missing_dir/missing automake"
8952 echo "$as_me:$LINENO: result: missing" >&5
8953 echo "${ECHO_T}missing" >&6
8954 fi
8955
8956 echo "$as_me:$LINENO: checking for working autoheader" >&5
8957 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
8958 # Run test in a subshell; some versions of sh will print an error if
8959 # an executable is not found, even if stderr is redirected.
8960 # Redirect stdin to placate older versions of autoconf. Sigh.
8961 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
8962 AUTOHEADER=autoheader
8963 echo "$as_me:$LINENO: result: found" >&5
8964 echo "${ECHO_T}found" >&6
8965 else
8966 AUTOHEADER="$missing_dir/missing autoheader"
8967 echo "$as_me:$LINENO: result: missing" >&5
8968 echo "${ECHO_T}missing" >&6
8969 fi
8970
8971 echo "$as_me:$LINENO: checking for working makeinfo" >&5
8972 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
8973 # Run test in a subshell; some versions of sh will print an error if
8974 # an executable is not found, even if stderr is redirected.
8975 # Redirect stdin to placate older versions of autoconf. Sigh.
8976 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
8977 MAKEINFO=makeinfo
8978 echo "$as_me:$LINENO: result: found" >&5
8979 echo "${ECHO_T}found" >&6
8980 else
8981 MAKEINFO="$missing_dir/missing makeinfo"
8982 echo "$as_me:$LINENO: result: missing" >&5
8983 echo "${ECHO_T}missing" >&6
8984 fi
8985
8986
8987
8988 # Check whether --with-root or --without-root was given.
8989 if test "${with_root+set}" = set; then
8990 withval="$with_root"
8991 ROOTSYS=$with_root
8992 fi;
8993
8994 ROOT_LIBRARY="${ROOTSYS}/lib"
8995 ROOT_LDFLAGS="${ROOT_LIBRARY}/libHist.so ${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libCore.so ${ROOT_LIBRARY}/libCint.so -ldl"
8996
8997 ROOT_INCLUDES="-I${ROOTSYS}/include"
8998
8999
9000 ROOTCINT=${ROOTSYS}/bin/rootcint
9001
9002
9003 echo "$as_me:$LINENO: checking for gprof" >&5
9004 echo $ECHO_N "checking for gprof... $ECHO_C" >&6
9005 # Check whether --enable-gprof or --disable-gprof was given.
9006 if test "${enable_gprof+set}" = set; then
9007 enableval="$enable_gprof"
9008 gprof=$enableval
9009 else
9010 gprof=no
9011 fi;
9012 if test "$gprof" != no
9013 then
9014 CXXFLAGS="-pg $CXXFLAGS"
9015 echo "$as_me:$LINENO: result: enabled" >&5
9016 echo "${ECHO_T}enabled" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023 # Check whether --with-log4cxx or --without-log4cxx was given.
9024 if test "${with_log4cxx+set}" = set; then
9025 withval="$with_log4cxx"
9026 LOG4CXX=$with_log4cxx
9027 fi;
9028 LOG4CXX_INCLUDES="-I${LOG4CXX}/include"
9029
9030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9032 if test "${ac_cv_header_stdc+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 #include <stdlib.h>
9042 #include <stdarg.h>
9043 #include <string.h>
9044 #include <float.h>
9045
9046 int
9047 main ()
9048 {
9049
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_header_stdc=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 ac_cv_header_stdc=no
9082 fi
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9084
9085 if test $ac_cv_header_stdc = yes; then
9086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h. */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 #include <string.h>
9094
9095 _ACEOF
9096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9097 $EGREP "memchr" >/dev/null 2>&1; then
9098 :
9099 else
9100 ac_cv_header_stdc=no
9101 fi
9102 rm -f conftest*
9103
9104 fi
9105
9106 if test $ac_cv_header_stdc = yes; then
9107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <stdlib.h>
9115
9116 _ACEOF
9117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9118 $EGREP "free" >/dev/null 2>&1; then
9119 :
9120 else
9121 ac_cv_header_stdc=no
9122 fi
9123 rm -f conftest*
9124
9125 fi
9126
9127 if test $ac_cv_header_stdc = yes; then
9128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9129 if test "$cross_compiling" = yes; then
9130 :
9131 else
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h. */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9138 #include <ctype.h>
9139 #if ((' ' & 0x0FF) == 0x020)
9140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9142 #else
9143 # define ISLOWER(c) \
9144 (('a' <= (c) && (c) <= 'i') \
9145 || ('j' <= (c) && (c) <= 'r') \
9146 || ('s' <= (c) && (c) <= 'z'))
9147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9148 #endif
9149
9150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9151 int
9152 main ()
9153 {
9154 int i;
9155 for (i = 0; i < 256; i++)
9156 if (XOR (islower (i), ISLOWER (i))
9157 || toupper (i) != TOUPPER (i))
9158 exit(2);
9159 exit (0);
9160 }
9161 _ACEOF
9162 rm -f conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 :
9174 else
9175 echo "$as_me: program exited with status $ac_status" >&5
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 ( exit $ac_status )
9180 ac_cv_header_stdc=no
9181 fi
9182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9183 fi
9184 fi
9185 fi
9186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9188 if test $ac_cv_header_stdc = yes; then
9189
9190 cat >>confdefs.h <<\_ACEOF
9191 #define STDC_HEADERS 1
9192 _ACEOF
9193
9194 fi
9195
9196
9197
9198 ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile event/physics/S4/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile"
9199 cat >confcache <<\_ACEOF
9200 # This file is a shell script that caches the results of configure
9201 # tests run on this system so they can be shared between configure
9202 # scripts and configure runs, see configure's option --config-cache.
9203 # It is not useful on other systems. If it contains results you don't
9204 # want to keep, you may remove or edit it.
9205 #
9206 # config.status only pays attention to the cache file if you give it
9207 # the --recheck option to rerun configure.
9208 #
9209 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9210 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9211 # following values.
9212
9213 _ACEOF
9214
9215 # The following way of writing the cache mishandles newlines in values,
9216 # but we know of no workaround that is simple, portable, and efficient.
9217 # So, don't put newlines in cache variables' values.
9218 # Ultrix sh set writes to stderr and can't be redirected directly,
9219 # and sets the high bit in the cache file unless we assign to the vars.
9220 {
9221 (set) 2>&1 |
9222 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9223 *ac_space=\ *)
9224 # `set' does not quote correctly, so add quotes (double-quote
9225 # substitution turns \\\\ into \\, and sed turns \\ into \).
9226 sed -n \
9227 "s/'/'\\\\''/g;
9228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9229 ;;
9230 *)
9231 # `set' quotes correctly as required by POSIX, so do not add quotes.
9232 sed -n \
9233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9234 ;;
9235 esac;
9236 } |
9237 sed '
9238 t clear
9239 : clear
9240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9241 t end
9242 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9243 : end' >>confcache
9244 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9245 if test -w $cache_file; then
9246 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9247 cat confcache >$cache_file
9248 else
9249 echo "not updating unwritable cache $cache_file"
9250 fi
9251 fi
9252 rm -f confcache
9253
9254 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9255 # Let make expand exec_prefix.
9256 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9257
9258 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9259 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9260 # trailing colons and then remove the whole line if VPATH becomes empty
9261 # (actually we leave an empty line to preserve line numbers).
9262 if test "x$srcdir" = x.; then
9263 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9264 s/:*\$(srcdir):*/:/;
9265 s/:*\${srcdir}:*/:/;
9266 s/:*@srcdir@:*/:/;
9267 s/^\([^=]*=[ ]*\):*/\1/;
9268 s/:*$//;
9269 s/^[^=]*=[ ]*$//;
9270 }'
9271 fi
9272
9273 DEFS=-DHAVE_CONFIG_H
9274
9275 ac_libobjs=
9276 ac_ltlibobjs=
9277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9278 # 1. Remove the extension, and $U if already installed.
9279 ac_i=`echo "$ac_i" |
9280 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9281 # 2. Add them.
9282 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9283 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9284 done
9285 LIBOBJS=$ac_libobjs
9286
9287 LTLIBOBJS=$ac_ltlibobjs
9288
9289
9290
9291 : ${CONFIG_STATUS=./config.status}
9292 ac_clean_files_save=$ac_clean_files
9293 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9294 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9295 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9296 cat >$CONFIG_STATUS <<_ACEOF
9297 #! $SHELL
9298 # Generated by $as_me.
9299 # Run this file to recreate the current configuration.
9300 # Compiler output produced by configure, useful for debugging
9301 # configure, is in config.log if it exists.
9302
9303 debug=false
9304 ac_cs_recheck=false
9305 ac_cs_silent=false
9306 SHELL=\${CONFIG_SHELL-$SHELL}
9307 _ACEOF
9308
9309 cat >>$CONFIG_STATUS <<\_ACEOF
9310 ## --------------------- ##
9311 ## M4sh Initialization. ##
9312 ## --------------------- ##
9313
9314 # Be Bourne compatible
9315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9316 emulate sh
9317 NULLCMD=:
9318 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9319 # is contrary to our usage. Disable this feature.
9320 alias -g '${1+"$@"}'='"$@"'
9321 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9322 set -o posix
9323 fi
9324 DUALCASE=1; export DUALCASE # for MKS sh
9325
9326 # Support unset when possible.
9327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9328 as_unset=unset
9329 else
9330 as_unset=false
9331 fi
9332
9333
9334 # Work around bugs in pre-3.0 UWIN ksh.
9335 $as_unset ENV MAIL MAILPATH
9336 PS1='$ '
9337 PS2='> '
9338 PS4='+ '
9339
9340 # NLS nuisances.
9341 for as_var in \
9342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9344 LC_TELEPHONE LC_TIME
9345 do
9346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9347 eval $as_var=C; export $as_var
9348 else
9349 $as_unset $as_var
9350 fi
9351 done
9352
9353 # Required to use basename.
9354 if expr a : '\(a\)' >/dev/null 2>&1; then
9355 as_expr=expr
9356 else
9357 as_expr=false
9358 fi
9359
9360 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9361 as_basename=basename
9362 else
9363 as_basename=false
9364 fi
9365
9366
9367 # Name of the executable.
9368 as_me=`$as_basename "$0" ||
9369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9370 X"$0" : 'X\(//\)$' \| \
9371 X"$0" : 'X\(/\)$' \| \
9372 . : '\(.\)' 2>/dev/null ||
9373 echo X/"$0" |
9374 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9375 /^X\/\(\/\/\)$/{ s//\1/; q; }
9376 /^X\/\(\/\).*/{ s//\1/; q; }
9377 s/.*/./; q'`
9378
9379
9380 # PATH needs CR, and LINENO needs CR and PATH.
9381 # Avoid depending upon Character Ranges.
9382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9385 as_cr_digits='0123456789'
9386 as_cr_alnum=$as_cr_Letters$as_cr_digits
9387
9388 # The user is always right.
9389 if test "${PATH_SEPARATOR+set}" != set; then
9390 echo "#! /bin/sh" >conf$$.sh
9391 echo "exit 0" >>conf$$.sh
9392 chmod +x conf$$.sh
9393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9394 PATH_SEPARATOR=';'
9395 else
9396 PATH_SEPARATOR=:
9397 fi
9398 rm -f conf$$.sh
9399 fi
9400
9401
9402 as_lineno_1=$LINENO
9403 as_lineno_2=$LINENO
9404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9405 test "x$as_lineno_1" != "x$as_lineno_2" &&
9406 test "x$as_lineno_3" = "x$as_lineno_2" || {
9407 # Find who we are. Look in the path if we contain no path at all
9408 # relative or not.
9409 case $0 in
9410 *[\\/]* ) as_myself=$0 ;;
9411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9413 do
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9417 done
9418
9419 ;;
9420 esac
9421 # We did not find ourselves, most probably we were run as `sh COMMAND'
9422 # in which case we are not to be found in the path.
9423 if test "x$as_myself" = x; then
9424 as_myself=$0
9425 fi
9426 if test ! -f "$as_myself"; then
9427 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9428 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9429 { (exit 1); exit 1; }; }
9430 fi
9431 case $CONFIG_SHELL in
9432 '')
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9435 do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for as_base in sh bash ksh sh5; do
9439 case $as_dir in
9440 /*)
9441 if ("$as_dir/$as_base" -c '
9442 as_lineno_1=$LINENO
9443 as_lineno_2=$LINENO
9444 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9445 test "x$as_lineno_1" != "x$as_lineno_2" &&
9446 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9447 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9448 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9449 CONFIG_SHELL=$as_dir/$as_base
9450 export CONFIG_SHELL
9451 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9452 fi;;
9453 esac
9454 done
9455 done
9456 ;;
9457 esac
9458
9459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9460 # uniformly replaced by the line number. The first 'sed' inserts a
9461 # line-number line before each line; the second 'sed' does the real
9462 # work. The second script uses 'N' to pair each line-number line
9463 # with the numbered line, and appends trailing '-' during
9464 # substitution so that $LINENO is not a special case at line end.
9465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9466 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9467 sed '=' <$as_myself |
9468 sed '
9469 N
9470 s,$,-,
9471 : loop
9472 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9473 t loop
9474 s,-$,,
9475 s,^['$as_cr_digits']*\n,,
9476 ' >$as_me.lineno &&
9477 chmod +x $as_me.lineno ||
9478 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9479 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9480 { (exit 1); exit 1; }; }
9481
9482 # Don't try to exec as it changes $[0], causing all sort of problems
9483 # (the dirname of $[0] is not the place where we might find the
9484 # original and so on. Autoconf is especially sensible to this).
9485 . ./$as_me.lineno
9486 # Exit status is that of the last command.
9487 exit
9488 }
9489
9490
9491 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9492 *c*,-n*) ECHO_N= ECHO_C='
9493 ' ECHO_T=' ' ;;
9494 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9495 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9496 esac
9497
9498 if expr a : '\(a\)' >/dev/null 2>&1; then
9499 as_expr=expr
9500 else
9501 as_expr=false
9502 fi
9503
9504 rm -f conf$$ conf$$.exe conf$$.file
9505 echo >conf$$.file
9506 if ln -s conf$$.file conf$$ 2>/dev/null; then
9507 # We could just check for DJGPP; but this test a) works b) is more generic
9508 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9509 if test -f conf$$.exe; then
9510 # Don't use ln at all; we don't have any links
9511 as_ln_s='cp -p'
9512 else
9513 as_ln_s='ln -s'
9514 fi
9515 elif ln conf$$.file conf$$ 2>/dev/null; then
9516 as_ln_s=ln
9517 else
9518 as_ln_s='cp -p'
9519 fi
9520 rm -f conf$$ conf$$.exe conf$$.file
9521
9522 if mkdir -p . 2>/dev/null; then
9523 as_mkdir_p=:
9524 else
9525 test -d ./-p && rmdir ./-p
9526 as_mkdir_p=false
9527 fi
9528
9529 as_executable_p="test -f"
9530
9531 # Sed expression to map a string onto a valid CPP name.
9532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9533
9534 # Sed expression to map a string onto a valid variable name.
9535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9536
9537
9538 # IFS
9539 # We need space, tab and new line, in precisely that order.
9540 as_nl='
9541 '
9542 IFS=" $as_nl"
9543
9544 # CDPATH.
9545 $as_unset CDPATH
9546
9547 exec 6>&1
9548
9549 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9550 # report actual input values of CONFIG_FILES etc. instead of their
9551 # values after options handling. Logging --version etc. is OK.
9552 exec 5>>config.log
9553 {
9554 echo
9555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9556 ## Running $as_me. ##
9557 _ASBOX
9558 } >&5
9559 cat >&5 <<_CSEOF
9560
9561 This file was extended by $as_me, which was
9562 generated by GNU Autoconf 2.59. Invocation command line was
9563
9564 CONFIG_FILES = $CONFIG_FILES
9565 CONFIG_HEADERS = $CONFIG_HEADERS
9566 CONFIG_LINKS = $CONFIG_LINKS
9567 CONFIG_COMMANDS = $CONFIG_COMMANDS
9568 $ $0 $@
9569
9570 _CSEOF
9571 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9572 echo >&5
9573 _ACEOF
9574
9575 # Files that config.status was made for.
9576 if test -n "$ac_config_files"; then
9577 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9578 fi
9579
9580 if test -n "$ac_config_headers"; then
9581 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9582 fi
9583
9584 if test -n "$ac_config_links"; then
9585 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9586 fi
9587
9588 if test -n "$ac_config_commands"; then
9589 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9590 fi
9591
9592 cat >>$CONFIG_STATUS <<\_ACEOF
9593
9594 ac_cs_usage="\
9595 \`$as_me' instantiates files from templates according to the
9596 current configuration.
9597
9598 Usage: $0 [OPTIONS] [FILE]...
9599
9600 -h, --help print this help, then exit
9601 -V, --version print version number, then exit
9602 -q, --quiet do not print progress messages
9603 -d, --debug don't remove temporary files
9604 --recheck update $as_me by reconfiguring in the same conditions
9605 --file=FILE[:TEMPLATE]
9606 instantiate the configuration file FILE
9607 --header=FILE[:TEMPLATE]
9608 instantiate the configuration header FILE
9609
9610 Configuration files:
9611 $config_files
9612
9613 Configuration headers:
9614 $config_headers
9615
9616 Configuration commands:
9617 $config_commands
9618
9619 Report bugs to <bug-autoconf@gnu.org>."
9620 _ACEOF
9621
9622 cat >>$CONFIG_STATUS <<_ACEOF
9623 ac_cs_version="\\
9624 config.status
9625 configured by $0, generated by GNU Autoconf 2.59,
9626 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9627
9628 Copyright (C) 2003 Free Software Foundation, Inc.
9629 This config.status script is free software; the Free Software Foundation
9630 gives unlimited permission to copy, distribute and modify it."
9631 srcdir=$srcdir
9632 INSTALL="$INSTALL"
9633 _ACEOF
9634
9635 cat >>$CONFIG_STATUS <<\_ACEOF
9636 # If no file are specified by the user, then we need to provide default
9637 # value. By we need to know if files were specified by the user.
9638 ac_need_defaults=:
9639 while test $# != 0
9640 do
9641 case $1 in
9642 --*=*)
9643 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9644 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9645 ac_shift=:
9646 ;;
9647 -*)
9648 ac_option=$1
9649 ac_optarg=$2
9650 ac_shift=shift
9651 ;;
9652 *) # This is not an option, so the user has probably given explicit
9653 # arguments.
9654 ac_option=$1
9655 ac_need_defaults=false;;
9656 esac
9657
9658 case $ac_option in
9659 # Handling of the options.
9660 _ACEOF
9661 cat >>$CONFIG_STATUS <<\_ACEOF
9662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9663 ac_cs_recheck=: ;;
9664 --version | --vers* | -V )
9665 echo "$ac_cs_version"; exit 0 ;;
9666 --he | --h)
9667 # Conflict between --help and --header
9668 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9669 Try \`$0 --help' for more information." >&5
9670 echo "$as_me: error: ambiguous option: $1
9671 Try \`$0 --help' for more information." >&2;}
9672 { (exit 1); exit 1; }; };;
9673 --help | --hel | -h )
9674 echo "$ac_cs_usage"; exit 0 ;;
9675 --debug | --d* | -d )
9676 debug=: ;;
9677 --file | --fil | --fi | --f )
9678 $ac_shift
9679 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9680 ac_need_defaults=false;;
9681 --header | --heade | --head | --hea )
9682 $ac_shift
9683 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9684 ac_need_defaults=false;;
9685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9687 ac_cs_silent=: ;;
9688
9689 # This is an error.
9690 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9691 Try \`$0 --help' for more information." >&5
9692 echo "$as_me: error: unrecognized option: $1
9693 Try \`$0 --help' for more information." >&2;}
9694 { (exit 1); exit 1; }; } ;;
9695
9696 *) ac_config_targets="$ac_config_targets $1" ;;
9697
9698 esac
9699 shift
9700 done
9701
9702 ac_configure_extra_args=
9703
9704 if $ac_cs_silent; then
9705 exec 6>/dev/null
9706 ac_configure_extra_args="$ac_configure_extra_args --silent"
9707 fi
9708
9709 _ACEOF
9710 cat >>$CONFIG_STATUS <<_ACEOF
9711 if \$ac_cs_recheck; then
9712 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9713 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9714 fi
9715
9716 _ACEOF
9717
9718 cat >>$CONFIG_STATUS <<_ACEOF
9719 #
9720 # INIT-COMMANDS section.
9721 #
9722
9723
9724
9725 _ACEOF
9726
9727
9728
9729 cat >>$CONFIG_STATUS <<\_ACEOF
9730 for ac_config_target in $ac_config_targets
9731 do
9732 case "$ac_config_target" in
9733 # Handling of arguments.
9734 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9735 "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
9736 "event/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/Makefile" ;;
9737 "event/mcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/mcmd/Makefile" ;;
9738 "event/tmtc/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tmtc/Makefile" ;;
9739 "event/log/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/log/Makefile" ;;
9740 "event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;;
9741 "event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;;
9742 "event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;;
9743 "event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;;
9744 "event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;;
9745 "event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;;
9746 "event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;;
9747 "event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;;
9748 "event/physics/S4/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/S4/Makefile" ;;
9749 "techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;;
9750 "techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;;
9751 "techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;;
9752 "techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;;
9753 "techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;;
9754 "techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;;
9755 "techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;;
9756 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9757 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9758 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9759 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9760 { (exit 1); exit 1; }; };;
9761 esac
9762 done
9763
9764 # If the user did not use the arguments to specify the items to instantiate,
9765 # then the envvar interface is used. Set only those that are not.
9766 # We use the long form for the default assignment because of an extremely
9767 # bizarre bug on SunOS 4.1.3.
9768 if $ac_need_defaults; then
9769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9772 fi
9773
9774 # Have a temporary directory for convenience. Make it in the build tree
9775 # simply because there is no reason to put it here, and in addition,
9776 # creating and moving files from /tmp can sometimes cause problems.
9777 # Create a temporary directory, and hook for its removal unless debugging.
9778 $debug ||
9779 {
9780 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9781 trap '{ (exit 1); exit 1; }' 1 2 13 15
9782 }
9783
9784 # Create a (secure) tmp directory for tmp files.
9785
9786 {
9787 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9788 test -n "$tmp" && test -d "$tmp"
9789 } ||
9790 {
9791 tmp=./confstat$$-$RANDOM
9792 (umask 077 && mkdir $tmp)
9793 } ||
9794 {
9795 echo "$me: cannot create a temporary directory in ." >&2
9796 { (exit 1); exit 1; }
9797 }
9798
9799 _ACEOF
9800
9801 cat >>$CONFIG_STATUS <<_ACEOF
9802
9803 #
9804 # CONFIG_FILES section.
9805 #
9806
9807 # No need to generate the scripts if there are no CONFIG_FILES.
9808 # This happens for instance when ./config.status config.h
9809 if test -n "\$CONFIG_FILES"; then
9810 # Protect against being on the right side of a sed subst in config.status.
9811 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9812 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9813 s,@SHELL@,$SHELL,;t t
9814 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9815 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9816 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9817 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9818 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9819 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9820 s,@exec_prefix@,$exec_prefix,;t t
9821 s,@prefix@,$prefix,;t t
9822 s,@program_transform_name@,$program_transform_name,;t t
9823 s,@bindir@,$bindir,;t t
9824 s,@sbindir@,$sbindir,;t t
9825 s,@libexecdir@,$libexecdir,;t t
9826 s,@datadir@,$datadir,;t t
9827 s,@sysconfdir@,$sysconfdir,;t t
9828 s,@sharedstatedir@,$sharedstatedir,;t t
9829 s,@localstatedir@,$localstatedir,;t t
9830 s,@libdir@,$libdir,;t t
9831 s,@includedir@,$includedir,;t t
9832 s,@oldincludedir@,$oldincludedir,;t t
9833 s,@infodir@,$infodir,;t t
9834 s,@mandir@,$mandir,;t t
9835 s,@build_alias@,$build_alias,;t t
9836 s,@host_alias@,$host_alias,;t t
9837 s,@target_alias@,$target_alias,;t t
9838 s,@DEFS@,$DEFS,;t t
9839 s,@ECHO_C@,$ECHO_C,;t t
9840 s,@ECHO_N@,$ECHO_N,;t t
9841 s,@ECHO_T@,$ECHO_T,;t t
9842 s,@LIBS@,$LIBS,;t t
9843 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9844 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9845 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9846 s,@PACKAGE@,$PACKAGE,;t t
9847 s,@VERSION@,$VERSION,;t t
9848 s,@ACLOCAL@,$ACLOCAL,;t t
9849 s,@AUTOCONF@,$AUTOCONF,;t t
9850 s,@AUTOMAKE@,$AUTOMAKE,;t t
9851 s,@AUTOHEADER@,$AUTOHEADER,;t t
9852 s,@MAKEINFO@,$MAKEINFO,;t t
9853 s,@SET_MAKE@,$SET_MAKE,;t t
9854 s,@build@,$build,;t t
9855 s,@build_cpu@,$build_cpu,;t t
9856 s,@build_vendor@,$build_vendor,;t t
9857 s,@build_os@,$build_os,;t t
9858 s,@host@,$host,;t t
9859 s,@host_cpu@,$host_cpu,;t t
9860 s,@host_vendor@,$host_vendor,;t t
9861 s,@host_os@,$host_os,;t t
9862 s,@CC@,$CC,;t t
9863 s,@CFLAGS@,$CFLAGS,;t t
9864 s,@LDFLAGS@,$LDFLAGS,;t t
9865 s,@CPPFLAGS@,$CPPFLAGS,;t t
9866 s,@ac_ct_CC@,$ac_ct_CC,;t t
9867 s,@EXEEXT@,$EXEEXT,;t t
9868 s,@OBJEXT@,$OBJEXT,;t t
9869 s,@F77@,$F77,;t t
9870 s,@FFLAGS@,$FFLAGS,;t t
9871 s,@ac_ct_F77@,$ac_ct_F77,;t t
9872 s,@FLIBS@,$FLIBS,;t t
9873 s,@CXX@,$CXX,;t t
9874 s,@CXXFLAGS@,$CXXFLAGS,;t t
9875 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9876 s,@LN_S@,$LN_S,;t t
9877 s,@ECHO@,$ECHO,;t t
9878 s,@RANLIB@,$RANLIB,;t t
9879 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9880 s,@STRIP@,$STRIP,;t t
9881 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9882 s,@CPP@,$CPP,;t t
9883 s,@EGREP@,$EGREP,;t t
9884 s,@LIBTOOL@,$LIBTOOL,;t t
9885 s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t
9886 s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t
9887 s,@ROOT_LDFLAGS@,$ROOT_LDFLAGS,;t t
9888 s,@ROOTCINT@,$ROOTCINT,;t t
9889 s,@LIBOBJS@,$LIBOBJS,;t t
9890 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9891 CEOF
9892
9893 _ACEOF
9894
9895 cat >>$CONFIG_STATUS <<\_ACEOF
9896 # Split the substitutions into bite-sized pieces for seds with
9897 # small command number limits, like on Digital OSF/1 and HP-UX.
9898 ac_max_sed_lines=48
9899 ac_sed_frag=1 # Number of current file.
9900 ac_beg=1 # First line for current file.
9901 ac_end=$ac_max_sed_lines # Line after last line for current file.
9902 ac_more_lines=:
9903 ac_sed_cmds=
9904 while $ac_more_lines; do
9905 if test $ac_beg -gt 1; then
9906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9907 else
9908 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9909 fi
9910 if test ! -s $tmp/subs.frag; then
9911 ac_more_lines=false
9912 else
9913 # The purpose of the label and of the branching condition is to
9914 # speed up the sed processing (if there are no `@' at all, there
9915 # is no need to browse any of the substitutions).
9916 # These are the two extra sed commands mentioned above.
9917 (echo ':t
9918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9919 if test -z "$ac_sed_cmds"; then
9920 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9921 else
9922 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9923 fi
9924 ac_sed_frag=`expr $ac_sed_frag + 1`
9925 ac_beg=$ac_end
9926 ac_end=`expr $ac_end + $ac_max_sed_lines`
9927 fi
9928 done
9929 if test -z "$ac_sed_cmds"; then
9930 ac_sed_cmds=cat
9931 fi
9932 fi # test -n "$CONFIG_FILES"
9933
9934 _ACEOF
9935 cat >>$CONFIG_STATUS <<\_ACEOF
9936 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9938 case $ac_file in
9939 - | *:- | *:-:* ) # input from stdin
9940 cat >$tmp/stdin
9941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9945 * ) ac_file_in=$ac_file.in ;;
9946 esac
9947
9948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9949 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9951 X"$ac_file" : 'X\(//\)[^/]' \| \
9952 X"$ac_file" : 'X\(//\)$' \| \
9953 X"$ac_file" : 'X\(/\)' \| \
9954 . : '\(.\)' 2>/dev/null ||
9955 echo X"$ac_file" |
9956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9958 /^X\(\/\/\)$/{ s//\1/; q; }
9959 /^X\(\/\).*/{ s//\1/; q; }
9960 s/.*/./; q'`
9961 { if $as_mkdir_p; then
9962 mkdir -p "$ac_dir"
9963 else
9964 as_dir="$ac_dir"
9965 as_dirs=
9966 while test ! -d "$as_dir"; do
9967 as_dirs="$as_dir $as_dirs"
9968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9970 X"$as_dir" : 'X\(//\)[^/]' \| \
9971 X"$as_dir" : 'X\(//\)$' \| \
9972 X"$as_dir" : 'X\(/\)' \| \
9973 . : '\(.\)' 2>/dev/null ||
9974 echo X"$as_dir" |
9975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9977 /^X\(\/\/\)$/{ s//\1/; q; }
9978 /^X\(\/\).*/{ s//\1/; q; }
9979 s/.*/./; q'`
9980 done
9981 test ! -n "$as_dirs" || mkdir $as_dirs
9982 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9984 { (exit 1); exit 1; }; }; }
9985
9986 ac_builddir=.
9987
9988 if test "$ac_dir" != .; then
9989 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9990 # A "../" for each directory in $ac_dir_suffix.
9991 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9992 else
9993 ac_dir_suffix= ac_top_builddir=
9994 fi
9995
9996 case $srcdir in
9997 .) # No --srcdir option. We are building in place.
9998 ac_srcdir=.
9999 if test -z "$ac_top_builddir"; then
10000 ac_top_srcdir=.
10001 else
10002 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10003 fi ;;
10004 [\\/]* | ?:[\\/]* ) # Absolute path.
10005 ac_srcdir=$srcdir$ac_dir_suffix;
10006 ac_top_srcdir=$srcdir ;;
10007 *) # Relative path.
10008 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10009 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10010 esac
10011
10012 # Do not use `cd foo && pwd` to compute absolute paths, because
10013 # the directories may not exist.
10014 case `pwd` in
10015 .) ac_abs_builddir="$ac_dir";;
10016 *)
10017 case "$ac_dir" in
10018 .) ac_abs_builddir=`pwd`;;
10019 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10020 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10021 esac;;
10022 esac
10023 case $ac_abs_builddir in
10024 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10025 *)
10026 case ${ac_top_builddir}. in
10027 .) ac_abs_top_builddir=$ac_abs_builddir;;
10028 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10029 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10030 esac;;
10031 esac
10032 case $ac_abs_builddir in
10033 .) ac_abs_srcdir=$ac_srcdir;;
10034 *)
10035 case $ac_srcdir in
10036 .) ac_abs_srcdir=$ac_abs_builddir;;
10037 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10038 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10039 esac;;
10040 esac
10041 case $ac_abs_builddir in
10042 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10043 *)
10044 case $ac_top_srcdir in
10045 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10046 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10047 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10048 esac;;
10049 esac
10050
10051
10052 case $INSTALL in
10053 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10054 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10055 esac
10056
10057 if test x"$ac_file" != x-; then
10058 { echo "$as_me:$LINENO: creating $ac_file" >&5
10059 echo "$as_me: creating $ac_file" >&6;}
10060 rm -f "$ac_file"
10061 fi
10062 # Let's still pretend it is `configure' which instantiates (i.e., don't
10063 # use $as_me), people would be surprised to read:
10064 # /* config.h. Generated by config.status. */
10065 if test x"$ac_file" = x-; then
10066 configure_input=
10067 else
10068 configure_input="$ac_file. "
10069 fi
10070 configure_input=$configure_input"Generated from `echo $ac_file_in |
10071 sed 's,.*/,,'` by configure."
10072
10073 # First look for the input files in the build tree, otherwise in the
10074 # src tree.
10075 ac_file_inputs=`IFS=:
10076 for f in $ac_file_in; do
10077 case $f in
10078 -) echo $tmp/stdin ;;
10079 [\\/$]*)
10080 # Absolute (can't be DOS-style, as IFS=:)
10081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10082 echo "$as_me: error: cannot find input file: $f" >&2;}
10083 { (exit 1); exit 1; }; }
10084 echo "$f";;
10085 *) # Relative
10086 if test -f "$f"; then
10087 # Build tree
10088 echo "$f"
10089 elif test -f "$srcdir/$f"; then
10090 # Source tree
10091 echo "$srcdir/$f"
10092 else
10093 # /dev/null tree
10094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10095 echo "$as_me: error: cannot find input file: $f" >&2;}
10096 { (exit 1); exit 1; }; }
10097 fi;;
10098 esac
10099 done` || { (exit 1); exit 1; }
10100 _ACEOF
10101 cat >>$CONFIG_STATUS <<_ACEOF
10102 sed "$ac_vpsub
10103 $extrasub
10104 _ACEOF
10105 cat >>$CONFIG_STATUS <<\_ACEOF
10106 :t
10107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10108 s,@configure_input@,$configure_input,;t t
10109 s,@srcdir@,$ac_srcdir,;t t
10110 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10111 s,@top_srcdir@,$ac_top_srcdir,;t t
10112 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10113 s,@builddir@,$ac_builddir,;t t
10114 s,@abs_builddir@,$ac_abs_builddir,;t t
10115 s,@top_builddir@,$ac_top_builddir,;t t
10116 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10117 s,@INSTALL@,$ac_INSTALL,;t t
10118 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10119 rm -f $tmp/stdin
10120 if test x"$ac_file" != x-; then
10121 mv $tmp/out $ac_file
10122 else
10123 cat $tmp/out
10124 rm -f $tmp/out
10125 fi
10126
10127 done
10128 _ACEOF
10129 cat >>$CONFIG_STATUS <<\_ACEOF
10130
10131 #
10132 # CONFIG_HEADER section.
10133 #
10134
10135 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10136 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10137 #
10138 # ac_d sets the value in "#define NAME VALUE" lines.
10139 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10140 ac_dB='[ ].*$,\1#\2'
10141 ac_dC=' '
10142 ac_dD=',;t'
10143 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10144 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10145 ac_uB='$,\1#\2define\3'
10146 ac_uC=' '
10147 ac_uD=',;t'
10148
10149 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10151 case $ac_file in
10152 - | *:- | *:-:* ) # input from stdin
10153 cat >$tmp/stdin
10154 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10156 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10158 * ) ac_file_in=$ac_file.in ;;
10159 esac
10160
10161 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10162 echo "$as_me: creating $ac_file" >&6;}
10163
10164 # First look for the input files in the build tree, otherwise in the
10165 # src tree.
10166 ac_file_inputs=`IFS=:
10167 for f in $ac_file_in; do
10168 case $f in
10169 -) echo $tmp/stdin ;;
10170 [\\/$]*)
10171 # Absolute (can't be DOS-style, as IFS=:)
10172 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10173 echo "$as_me: error: cannot find input file: $f" >&2;}
10174 { (exit 1); exit 1; }; }
10175 # Do quote $f, to prevent DOS paths from being IFS'd.
10176 echo "$f";;
10177 *) # Relative
10178 if test -f "$f"; then
10179 # Build tree
10180 echo "$f"
10181 elif test -f "$srcdir/$f"; then
10182 # Source tree
10183 echo "$srcdir/$f"
10184 else
10185 # /dev/null tree
10186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10187 echo "$as_me: error: cannot find input file: $f" >&2;}
10188 { (exit 1); exit 1; }; }
10189 fi;;
10190 esac
10191 done` || { (exit 1); exit 1; }
10192 # Remove the trailing spaces.
10193 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10194
10195 _ACEOF
10196
10197 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10198 # `conftest.undefs', that substitutes the proper values into
10199 # config.h.in to produce config.h. The first handles `#define'
10200 # templates, and the second `#undef' templates.
10201 # And first: Protect against being on the right side of a sed subst in
10202 # config.status. Protect against being in an unquoted here document
10203 # in config.status.
10204 rm -f conftest.defines conftest.undefs
10205 # Using a here document instead of a string reduces the quoting nightmare.
10206 # Putting comments in sed scripts is not portable.
10207 #
10208 # `end' is used to avoid that the second main sed command (meant for
10209 # 0-ary CPP macros) applies to n-ary macro definitions.
10210 # See the Autoconf documentation for `clear'.
10211 cat >confdef2sed.sed <<\_ACEOF
10212 s/[\\&,]/\\&/g
10213 s,[\\$`],\\&,g
10214 t clear
10215 : clear
10216 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10217 t end
10218 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10219 : end
10220 _ACEOF
10221 # If some macros were called several times there might be several times
10222 # the same #defines, which is useless. Nevertheless, we may not want to
10223 # sort them, since we want the *last* AC-DEFINE to be honored.
10224 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10225 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10226 rm -f confdef2sed.sed
10227
10228 # This sed command replaces #undef with comments. This is necessary, for
10229 # example, in the case of _POSIX_SOURCE, which is predefined and required
10230 # on some systems where configure will not decide to define it.
10231 cat >>conftest.undefs <<\_ACEOF
10232 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10233 _ACEOF
10234
10235 # Break up conftest.defines because some shells have a limit on the size
10236 # of here documents, and old seds have small limits too (100 cmds).
10237 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10238 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10239 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10240 echo ' :' >>$CONFIG_STATUS
10241 rm -f conftest.tail
10242 while grep . conftest.defines >/dev/null
10243 do
10244 # Write a limited-size here document to $tmp/defines.sed.
10245 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10246 # Speed up: don't consider the non `#define' lines.
10247 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10248 # Work around the forget-to-reset-the-flag bug.
10249 echo 't clr' >>$CONFIG_STATUS
10250 echo ': clr' >>$CONFIG_STATUS
10251 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10252 echo 'CEOF
10253 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10254 rm -f $tmp/in
10255 mv $tmp/out $tmp/in
10256 ' >>$CONFIG_STATUS
10257 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10258 rm -f conftest.defines
10259 mv conftest.tail conftest.defines
10260 done
10261 rm -f conftest.defines
10262 echo ' fi # grep' >>$CONFIG_STATUS
10263 echo >>$CONFIG_STATUS
10264
10265 # Break up conftest.undefs because some shells have a limit on the size
10266 # of here documents, and old seds have small limits too (100 cmds).
10267 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10268 rm -f conftest.tail
10269 while grep . conftest.undefs >/dev/null
10270 do
10271 # Write a limited-size here document to $tmp/undefs.sed.
10272 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10273 # Speed up: don't consider the non `#undef'
10274 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10275 # Work around the forget-to-reset-the-flag bug.
10276 echo 't clr' >>$CONFIG_STATUS
10277 echo ': clr' >>$CONFIG_STATUS
10278 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10279 echo 'CEOF
10280 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10281 rm -f $tmp/in
10282 mv $tmp/out $tmp/in
10283 ' >>$CONFIG_STATUS
10284 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10285 rm -f conftest.undefs
10286 mv conftest.tail conftest.undefs
10287 done
10288 rm -f conftest.undefs
10289
10290 cat >>$CONFIG_STATUS <<\_ACEOF
10291 # Let's still pretend it is `configure' which instantiates (i.e., don't
10292 # use $as_me), people would be surprised to read:
10293 # /* config.h. Generated by config.status. */
10294 if test x"$ac_file" = x-; then
10295 echo "/* Generated by configure. */" >$tmp/config.h
10296 else
10297 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10298 fi
10299 cat $tmp/in >>$tmp/config.h
10300 rm -f $tmp/in
10301 if test x"$ac_file" != x-; then
10302 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10303 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10304 echo "$as_me: $ac_file is unchanged" >&6;}
10305 else
10306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10308 X"$ac_file" : 'X\(//\)[^/]' \| \
10309 X"$ac_file" : 'X\(//\)$' \| \
10310 X"$ac_file" : 'X\(/\)' \| \
10311 . : '\(.\)' 2>/dev/null ||
10312 echo X"$ac_file" |
10313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10315 /^X\(\/\/\)$/{ s//\1/; q; }
10316 /^X\(\/\).*/{ s//\1/; q; }
10317 s/.*/./; q'`
10318 { if $as_mkdir_p; then
10319 mkdir -p "$ac_dir"
10320 else
10321 as_dir="$ac_dir"
10322 as_dirs=
10323 while test ! -d "$as_dir"; do
10324 as_dirs="$as_dir $as_dirs"
10325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10327 X"$as_dir" : 'X\(//\)[^/]' \| \
10328 X"$as_dir" : 'X\(//\)$' \| \
10329 X"$as_dir" : 'X\(/\)' \| \
10330 . : '\(.\)' 2>/dev/null ||
10331 echo X"$as_dir" |
10332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10334 /^X\(\/\/\)$/{ s//\1/; q; }
10335 /^X\(\/\).*/{ s//\1/; q; }
10336 s/.*/./; q'`
10337 done
10338 test ! -n "$as_dirs" || mkdir $as_dirs
10339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10341 { (exit 1); exit 1; }; }; }
10342
10343 rm -f $ac_file
10344 mv $tmp/config.h $ac_file
10345 fi
10346 else
10347 cat $tmp/config.h
10348 rm -f $tmp/config.h
10349 fi
10350 done
10351 _ACEOF
10352 cat >>$CONFIG_STATUS <<\_ACEOF
10353
10354 #
10355 # CONFIG_COMMANDS section.
10356 #
10357 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10358 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10359 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10360 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10361 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10362 X"$ac_dest" : 'X\(//\)[^/]' \| \
10363 X"$ac_dest" : 'X\(//\)$' \| \
10364 X"$ac_dest" : 'X\(/\)' \| \
10365 . : '\(.\)' 2>/dev/null ||
10366 echo X"$ac_dest" |
10367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10369 /^X\(\/\/\)$/{ s//\1/; q; }
10370 /^X\(\/\).*/{ s//\1/; q; }
10371 s/.*/./; q'`
10372 { if $as_mkdir_p; then
10373 mkdir -p "$ac_dir"
10374 else
10375 as_dir="$ac_dir"
10376 as_dirs=
10377 while test ! -d "$as_dir"; do
10378 as_dirs="$as_dir $as_dirs"
10379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10381 X"$as_dir" : 'X\(//\)[^/]' \| \
10382 X"$as_dir" : 'X\(//\)$' \| \
10383 X"$as_dir" : 'X\(/\)' \| \
10384 . : '\(.\)' 2>/dev/null ||
10385 echo X"$as_dir" |
10386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10388 /^X\(\/\/\)$/{ s//\1/; q; }
10389 /^X\(\/\).*/{ s//\1/; q; }
10390 s/.*/./; q'`
10391 done
10392 test ! -n "$as_dirs" || mkdir $as_dirs
10393 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10395 { (exit 1); exit 1; }; }; }
10396
10397 ac_builddir=.
10398
10399 if test "$ac_dir" != .; then
10400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10401 # A "../" for each directory in $ac_dir_suffix.
10402 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10403 else
10404 ac_dir_suffix= ac_top_builddir=
10405 fi
10406
10407 case $srcdir in
10408 .) # No --srcdir option. We are building in place.
10409 ac_srcdir=.
10410 if test -z "$ac_top_builddir"; then
10411 ac_top_srcdir=.
10412 else
10413 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10414 fi ;;
10415 [\\/]* | ?:[\\/]* ) # Absolute path.
10416 ac_srcdir=$srcdir$ac_dir_suffix;
10417 ac_top_srcdir=$srcdir ;;
10418 *) # Relative path.
10419 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10420 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10421 esac
10422
10423 # Do not use `cd foo && pwd` to compute absolute paths, because
10424 # the directories may not exist.
10425 case `pwd` in
10426 .) ac_abs_builddir="$ac_dir";;
10427 *)
10428 case "$ac_dir" in
10429 .) ac_abs_builddir=`pwd`;;
10430 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10431 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10432 esac;;
10433 esac
10434 case $ac_abs_builddir in
10435 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10436 *)
10437 case ${ac_top_builddir}. in
10438 .) ac_abs_top_builddir=$ac_abs_builddir;;
10439 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10440 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10441 esac;;
10442 esac
10443 case $ac_abs_builddir in
10444 .) ac_abs_srcdir=$ac_srcdir;;
10445 *)
10446 case $ac_srcdir in
10447 .) ac_abs_srcdir=$ac_abs_builddir;;
10448 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10449 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10450 esac;;
10451 esac
10452 case $ac_abs_builddir in
10453 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10454 *)
10455 case $ac_top_srcdir in
10456 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10457 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10458 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10459 esac;;
10460 esac
10461
10462
10463 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10464 echo "$as_me: executing $ac_dest commands" >&6;}
10465 case $ac_dest in
10466 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10467 esac
10468 done
10469 _ACEOF
10470
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10472
10473 { (exit 0); exit 0; }
10474 _ACEOF
10475 chmod +x $CONFIG_STATUS
10476 ac_clean_files=$ac_clean_files_save
10477
10478
10479 # configure is writing to config.log, and then calls config.status.
10480 # config.status does its own redirection, appending to config.log.
10481 # Unfortunately, on DOS this fails, as config.log is still kept open
10482 # by configure, so config.status won't be able to write to it; its
10483 # output is simply discarded. So we exec the FD to /dev/null,
10484 # effectively closing config.log, so it can be properly (re)opened and
10485 # appended to by config.status. When coming back to configure, we
10486 # need to make the FD available again.
10487 if test "$no_create" != yes; then
10488 ac_cs_success=:
10489 ac_config_status_args=
10490 test "$silent" = yes &&
10491 ac_config_status_args="$ac_config_status_args --quiet"
10492 exec 5>/dev/null
10493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10494 exec 5>>config.log
10495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10496 # would make configure fail if this is the last instruction.
10497 $ac_cs_success || { (exit 1); exit 1; }
10498 fi
10499
10500

  ViewVC Help
Powered by ViewVC 1.1.23