Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac 0.9.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Vol 1.5.4.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 #
13 # Copyright 2006 International Business Machines and others.
14 # All Rights Reserved.
15 # This file is part of the open source package Coin which is distributed
16 # under the Eclipse Public License.
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31 DUALCASE=1; export DUALCASE # for MKS sh
32
33 # Support unset when possible.
34 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 as_unset=unset
36 else
37 as_unset=false
38 fi
39
40
41 # Work around bugs in pre-3.0 UWIN ksh.
42 $as_unset ENV MAIL MAILPATH
43 PS1='$ '
44 PS2='> '
45 PS4='+ '
46
47 # NLS nuisances.
48 for as_var in \
49 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51 LC_TELEPHONE LC_TIME
52 do
53 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54 eval $as_var=C; export $as_var
55 else
56 $as_unset $as_var
57 fi
58 done
59
60 # Required to use basename.
61 if expr a : '\(a\)' >/dev/null 2>&1; then
62 as_expr=expr
63 else
64 as_expr=false
65 fi
66
67 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 as_basename=basename
69 else
70 as_basename=false
71 fi
72
73
74 # Name of the executable.
75 as_me=`$as_basename "$0" ||
76 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77 X"$0" : 'X\(//\)$' \| \
78 X"$0" : 'X\(/\)$' \| \
79 . : '\(.\)' 2>/dev/null ||
80 echo X/"$0" |
81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82 /^X\/\(\/\/\)$/{ s//\1/; q; }
83 /^X\/\(\/\).*/{ s//\1/; q; }
84 s/.*/./; q'`
85
86
87 # PATH needs CR, and LINENO needs CR and PATH.
88 # Avoid depending upon Character Ranges.
89 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92 as_cr_digits='0123456789'
93 as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95 # The user is always right.
96 if test "${PATH_SEPARATOR+set}" != set; then
97 echo "#! /bin/sh" >conf$$.sh
98 echo "exit 0" >>conf$$.sh
99 chmod +x conf$$.sh
100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101 PATH_SEPARATOR=';'
102 else
103 PATH_SEPARATOR=:
104 fi
105 rm -f conf$$.sh
106 fi
107
108
109 as_lineno_1=$LINENO
110 as_lineno_2=$LINENO
111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112 test "x$as_lineno_1" != "x$as_lineno_2" &&
113 test "x$as_lineno_3" = "x$as_lineno_2" || {
114 # Find who we are. Look in the path if we contain no path at all
115 # relative or not.
116 case $0 in
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 for as_dir in $PATH
120 do
121 IFS=$as_save_IFS
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124 done
125
126 ;;
127 esac
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
131 as_myself=$0
132 fi
133 if test ! -f "$as_myself"; then
134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135 { (exit 1); exit 1; }; }
136 fi
137 case $CONFIG_SHELL in
138 '')
139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141 do
142 IFS=$as_save_IFS
143 test -z "$as_dir" && as_dir=.
144 for as_base in sh bash ksh sh5; do
145 case $as_dir in
146 /*)
147 if ("$as_dir/$as_base" -c '
148 as_lineno_1=$LINENO
149 as_lineno_2=$LINENO
150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151 test "x$as_lineno_1" != "x$as_lineno_2" &&
152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155 CONFIG_SHELL=$as_dir/$as_base
156 export CONFIG_SHELL
157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 fi;;
159 esac
160 done
161 done
162 ;;
163 esac
164
165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166 # uniformly replaced by the line number. The first 'sed' inserts a
167 # line-number line before each line; the second 'sed' does the real
168 # work. The second script uses 'N' to pair each line-number line
169 # with the numbered line, and appends trailing '-' during
170 # substitution so that $LINENO is not a special case at line end.
171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
173 sed '=' <$as_myself |
174 sed '
175 N
176 s,$,-,
177 : loop
178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179 t loop
180 s,-$,,
181 s,^['$as_cr_digits']*\n,,
182 ' >$as_me.lineno &&
183 chmod +x $as_me.lineno ||
184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185 { (exit 1); exit 1; }; }
186
187 # Don't try to exec as it changes $[0], causing all sort of problems
188 # (the dirname of $[0] is not the place where we might find the
189 # original and so on. Autoconf is especially sensible to this).
190 . ./$as_me.lineno
191 # Exit status is that of the last command.
192 exit
193 }
194
195
196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197 *c*,-n*) ECHO_N= ECHO_C='
198 ' ECHO_T=' ' ;;
199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
201 esac
202
203 if expr a : '\(a\)' >/dev/null 2>&1; then
204 as_expr=expr
205 else
206 as_expr=false
207 fi
208
209 rm -f conf$$ conf$$.exe conf$$.file
210 echo >conf$$.file
211 if ln -s conf$$.file conf$$ 2>/dev/null; then
212 # We could just check for DJGPP; but this test a) works b) is more generic
213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214 if test -f conf$$.exe; then
215 # Don't use ln at all; we don't have any links
216 as_ln_s='cp -p'
217 else
218 as_ln_s='ln -s'
219 fi
220 elif ln conf$$.file conf$$ 2>/dev/null; then
221 as_ln_s=ln
222 else
223 as_ln_s='cp -p'
224 fi
225 rm -f conf$$ conf$$.exe conf$$.file
226
227 if mkdir -p . 2>/dev/null; then
228 as_mkdir_p=:
229 else
230 test -d ./-p && rmdir ./-p
231 as_mkdir_p=false
232 fi
233
234 as_executable_p="test -f"
235
236 # Sed expression to map a string onto a valid CPP name.
237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239 # Sed expression to map a string onto a valid variable name.
240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243 # IFS
244 # We need space, tab and new line, in precisely that order.
245 as_nl='
246 '
247 IFS=" $as_nl"
248
249 # CDPATH.
250 $as_unset CDPATH
251
252
253
254 # Check that we are running under the correct shell.
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 case X$ECHO in
258 X*--fallback-echo)
259 # Remove one level of quotation (which was required for Make).
260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261 ;;
262 esac
263
264 echo=${ECHO-echo}
265 if test "X$1" = X--no-reexec; then
266 # Discard the --no-reexec flag, and continue.
267 shift
268 elif test "X$1" = X--fallback-echo; then
269 # Avoid inline document here, it may be left over
270 :
271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272 # Yippee, $echo works!
273 :
274 else
275 # Restart under the correct shell.
276 exec $SHELL "$0" --no-reexec ${1+"$@"}
277 fi
278
279 if test "X$1" = X--fallback-echo; then
280 # used as fallback echo
281 shift
282 cat <<EOF
283 $*
284 EOF
285 exit 0
286 fi
287
288 # The HP-UX ksh and POSIX shell print the target directory to stdout
289 # if CDPATH is set.
290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292 if test -z "$ECHO"; then
293 if test "X${echo_test_string+set}" != Xset; then
294 # find a string as large as possible, as long as the shell can cope with it
295 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298 echo_test_string=`eval $cmd` &&
299 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 then
301 break
302 fi
303 done
304 fi
305
306 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308 test "X$echo_testing_string" = "X$echo_test_string"; then
309 :
310 else
311 # The Solaris, AIX, and Digital Unix default echo programs unquote
312 # backslashes. This makes it impossible to quote backslashes using
313 # echo "$something" | sed 's/\\/\\\\/g'
314 #
315 # So, first we look for a working echo in the user's PATH.
316
317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318 for dir in $PATH /usr/ucb; do
319 IFS="$lt_save_ifs"
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$lt_save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402
403 tagnames=${tagnames+${tagnames},}CXX
404
405 tagnames=${tagnames+${tagnames},}F77
406
407 # Name of the host.
408 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409 # so uname gets run too.
410 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412 exec 6>&1
413
414 #
415 # Initializations.
416 #
417 ac_default_prefix=/usr/local
418 ac_config_libobj_dir=.
419 cross_compiling=no
420 subdirs=
421 MFLAGS=
422 MAKEFLAGS=
423 SHELL=${CONFIG_SHELL-/bin/sh}
424
425 # Maximum number of lines to put in a shell here document.
426 # This variable seems obsolete. It should probably be removed, and
427 # only ac_max_sed_lines should be used.
428 : ${ac_max_here_lines=38}
429
430 # Identity of this package.
431 PACKAGE_NAME='Vol'
432 PACKAGE_TARNAME='vol'
433 PACKAGE_VERSION='1.5.4'
434 PACKAGE_STRING='Vol 1.5.4'
435 PACKAGE_BUGREPORT='[email protected]'
436
437 ac_unique_file="configure.ac"
438 ac_default_prefix=`pwd`
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 # include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 # include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 ac_subdirs_all="$ac_subdirs_all Data/Sample"
477 ac_subdirs_all="$ac_subdirs_all CoinUtils"
478 ac_subdirs_all="$ac_subdirs_all Osi"
479 ac_subdirs_all="$ac_subdirs_all Vol"
480 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 build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
481 ac_subst_files=''
482
483 # Initialize some variables set by options.
484 ac_init_help=
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
488 cache_file=/dev/null
489 exec_prefix=NONE
490 no_create=
491 no_recursion=
492 prefix=NONE
493 program_prefix=NONE
494 program_suffix=NONE
495 program_transform_name=s,x,x,
496 silent=
497 site=
498 srcdir=
499 verbose=
500 x_includes=NONE
501 x_libraries=NONE
502
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
520
521 ac_prev=
522 for ac_option
523 do
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
527 ac_prev=
528 continue
529 fi
530
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533 # Accept the important Cygnus configure options, so we can diagnose typos.
534
535 case $ac_option in
536
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 ac_prev=bindir ;;
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 bindir=$ac_optarg ;;
541
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
546
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
553
554 --config-cache | -C)
555 cache_file=config.cache ;;
556
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 ac_prev=datadir ;;
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 | --da=*)
561 datadir=$ac_optarg ;;
562
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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 eval "enable_$ac_feature=no" ;;
571
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
583 eval "enable_$ac_feature='$ac_optarg'" ;;
584
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
593
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
596 with_gas=yes ;;
597
598 -help | --help | --hel | --he | -h)
599 ac_init_help=long ;;
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
604
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
609
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
616
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 ac_prev=infodir ;;
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
621
622 -libdir | --libdir | --libdi | --libd)
623 ac_prev=libdir ;;
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 libdir=$ac_optarg ;;
626
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
633
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
642
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 ac_prev=mandir ;;
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 mandir=$ac_optarg ;;
647
648 -nfp | --nfp | --nf)
649 # Obsolete; use --without-fp.
650 with_fp=no ;;
651
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
654 no_create=yes ;;
655
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 no_recursion=yes ;;
659
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
668
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 ac_prev=prefix ;;
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 prefix=$ac_optarg ;;
673
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
680
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
687
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
704
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
707 silent=yes ;;
708
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 ac_prev=sbindir ;;
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 | --sbi=* | --sb=*)
713 sbindir=$ac_optarg ;;
714
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
718 | --sha | --sh)
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 | --sha=* | --sh=*)
724 sharedstatedir=$ac_optarg ;;
725
726 -site | --site | --sit)
727 ac_prev=site ;;
728 -site=* | --site=* | --sit=*)
729 site=$ac_optarg ;;
730
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 ac_prev=srcdir ;;
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 srcdir=$ac_optarg ;;
735
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
742
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
747
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 verbose=yes ;;
750
751 -version | --version | --versio | --versi | --vers | -V)
752 ac_init_version=: ;;
753
754 -with-* | --with-*)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 case $ac_option in
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 *) ac_optarg=yes ;;
764 esac
765 eval "with_$ac_package='$ac_optarg'" ;;
766
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
775
776 --x)
777 # Obsolete; use --with-x.
778 with_x=yes ;;
779
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
786
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
793
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
797 ;;
798
799 *=*)
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
807 export $ac_envvar ;;
808
809 *)
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815 ;;
816
817 esac
818 done
819
820 if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
824 fi
825
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839 localstatedir libdir includedir oldincludedir infodir mandir
840 do
841 eval ac_val=$`echo $ac_var`
842 case $ac_val in
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
846 esac
847 done
848
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
852 build=$build_alias
853 host=$host_alias
854 target=$target_alias
855
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
863 cross_compiling=yes
864 fi
865 fi
866
867 ac_tool_prefix=
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870 test "$silent" = yes && exec 6>/dev/null
871
872
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
883 echo X"$0" |
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
888 s/.*/./; q'`
889 srcdir=$ac_confdir
890 if test ! -r $srcdir/$ac_unique_file; then
891 srcdir=..
892 fi
893 else
894 ac_srcdir_defaulted=no
895 fi
896 if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
900 else
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
903 fi
904 fi
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CDEFS_set=${CDEFS+set}
922 ac_env_CDEFS_value=$CDEFS
923 ac_cv_env_CDEFS_set=${CDEFS+set}
924 ac_cv_env_CDEFS_value=$CDEFS
925 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
926 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
927 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
928 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
929 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
930 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
931 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
932 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
933 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
934 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
935 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
936 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
937 ac_env_CC_set=${CC+set}
938 ac_env_CC_value=$CC
939 ac_cv_env_CC_set=${CC+set}
940 ac_cv_env_CC_value=$CC
941 ac_env_CFLAGS_set=${CFLAGS+set}
942 ac_env_CFLAGS_value=$CFLAGS
943 ac_cv_env_CFLAGS_set=${CFLAGS+set}
944 ac_cv_env_CFLAGS_value=$CFLAGS
945 ac_env_LDFLAGS_set=${LDFLAGS+set}
946 ac_env_LDFLAGS_value=$LDFLAGS
947 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
948 ac_cv_env_LDFLAGS_value=$LDFLAGS
949 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
950 ac_env_CPPFLAGS_value=$CPPFLAGS
951 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
952 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953 ac_env_MPICC_set=${MPICC+set}
954 ac_env_MPICC_value=$MPICC
955 ac_cv_env_MPICC_set=${MPICC+set}
956 ac_cv_env_MPICC_value=$MPICC
957 ac_env_CXXDEFS_set=${CXXDEFS+set}
958 ac_env_CXXDEFS_value=$CXXDEFS
959 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
960 ac_cv_env_CXXDEFS_value=$CXXDEFS
961 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
962 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
963 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
964 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
965 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
966 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
967 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
968 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
969 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
970 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
971 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
972 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
973 ac_env_CXX_set=${CXX+set}
974 ac_env_CXX_value=$CXX
975 ac_cv_env_CXX_set=${CXX+set}
976 ac_cv_env_CXX_value=$CXX
977 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
978 ac_env_CXXFLAGS_value=$CXXFLAGS
979 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
980 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
981 ac_env_MPICXX_set=${MPICXX+set}
982 ac_env_MPICXX_value=$MPICXX
983 ac_cv_env_MPICXX_set=${MPICXX+set}
984 ac_cv_env_MPICXX_value=$MPICXX
985 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
986 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
987 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
988 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
989 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
990 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
991 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
992 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
993 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
994 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
995 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
996 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
997 ac_env_F77_set=${F77+set}
998 ac_env_F77_value=$F77
999 ac_cv_env_F77_set=${F77+set}
1000 ac_cv_env_F77_value=$F77
1001 ac_env_FFLAGS_set=${FFLAGS+set}
1002 ac_env_FFLAGS_value=$FFLAGS
1003 ac_cv_env_FFLAGS_set=${FFLAGS+set}
1004 ac_cv_env_FFLAGS_value=$FFLAGS
1005 ac_env_MPIF77_set=${MPIF77+set}
1006 ac_env_MPIF77_value=$MPIF77
1007 ac_cv_env_MPIF77_set=${MPIF77+set}
1008 ac_cv_env_MPIF77_value=$MPIF77
1009 ac_env_CPP_set=${CPP+set}
1010 ac_env_CPP_value=$CPP
1011 ac_cv_env_CPP_set=${CPP+set}
1012 ac_cv_env_CPP_value=$CPP
1013 ac_env_CXXCPP_set=${CXXCPP+set}
1014 ac_env_CXXCPP_value=$CXXCPP
1015 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1016 ac_cv_env_CXXCPP_value=$CXXCPP
1017 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1018 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1019 ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1020 ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1021
1022 #
1023 # Report the --help message.
1024 #
1025 if test "$ac_init_help" = "long"; then
1026 # Omit some internal or obsolete options to make the list less imposing.
1027 # This message is too long to be a string in the A/UX 3.1 sh.
1028 cat <<_ACEOF
1029 \`configure' configures Vol 1.5.4 to adapt to many kinds of systems.
1030
1031 Usage: $0 [OPTION]... [VAR=VALUE]...
1032
1033 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1034 VAR=VALUE. See below for descriptions of some of the useful variables.
1035
1036 Defaults for the options are specified in brackets.
1037
1038 Configuration:
1039 -h, --help display this help and exit
1040 --help=short display options specific to this package
1041 --help=recursive display the short help of all the included packages
1042 -V, --version display version information and exit
1043 -q, --quiet, --silent do not print \`checking...' messages
1044 --cache-file=FILE cache test results in FILE [disabled]
1045 -C, --config-cache alias for \`--cache-file=config.cache'
1046 -n, --no-create do not create output files
1047 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1048
1049 _ACEOF
1050
1051 cat <<_ACEOF
1052 Installation directories:
1053 --prefix=PREFIX install architecture-independent files in PREFIX
1054 [$ac_default_prefix]
1055 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1056 [PREFIX]
1057
1058 By default, \`make install' will install all the files in
1059 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1060 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1061 for instance \`--prefix=\$HOME'.
1062
1063 For better control, use the options below.
1064
1065 Fine tuning of the installation directories:
1066 --bindir=DIR user executables [EPREFIX/bin]
1067 --sbindir=DIR system admin executables [EPREFIX/sbin]
1068 --libexecdir=DIR program executables [EPREFIX/libexec]
1069 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1070 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1071 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1072 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1073 --libdir=DIR object code libraries [EPREFIX/lib]
1074 --includedir=DIR C header files [PREFIX/include]
1075 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1076 --infodir=DIR info documentation [PREFIX/info]
1077 --mandir=DIR man documentation [PREFIX/man]
1078 _ACEOF
1079
1080 cat <<\_ACEOF
1081
1082 Program names:
1083 --program-prefix=PREFIX prepend PREFIX to installed program names
1084 --program-suffix=SUFFIX append SUFFIX to installed program names
1085 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1086
1087 System types:
1088 --build=BUILD configure for building on BUILD [guessed]
1089 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1090 _ACEOF
1091 fi
1092
1093 if test -n "$ac_init_help"; then
1094 case $ac_init_help in
1095 short | recursive ) echo "Configuration of Vol 1.5.4:";;
1096 esac
1097 cat <<\_ACEOF
1098
1099 Optional Features:
1100 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1101 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1102 --enable-debug compile all projects with debug options tests
1103 (implies --disable-shared)
1104
1105 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1106 --enable-static[=PKGS]
1107 build static libraries [default=no]
1108 --disable-dependency-tracking speeds up one-time build
1109 --enable-dependency-tracking do not reject slow dependency extractors
1110 --enable-maintainer-mode enable make rules and dependencies not useful
1111 (and sometimes confusing) to the casual installer
1112 --enable-shared[=PKGS]
1113 build shared libraries [default=yes]
1114 --enable-fast-install[=PKGS]
1115 optimize for fast installation [default=yes]
1116 --disable-libtool-lock avoid locking (might break parallel builds)
1117 --disable-dependency-linking
1118 disable linking library dependencies into shared
1119 libraries
1120
1121 Optional Packages:
1122 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1123 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1124 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1125 --with-pic try to use only PIC/non-PIC objects [default=use
1126 both]
1127 --with-tags[=TAGS]
1128 include additional configurations [automatic]
1129
1130 --with-sample-lib linker flags for using project Sample
1131 --with-sample-incdir directory with header files for using project Sample
1132 --with-sample-datadir directory with data files for using project Sample
1133 --with-coinutils-lib linker flags for using project CoinUtils
1134 --with-coinutils-incdir directory with header files for using project
1135 CoinUtils
1136 --with-coinutils-datadir
1137 directory with data files for using project
1138 CoinUtils
1139 --with-osi-lib linker flags for using project Osi
1140 --with-osi-incdir directory with header files for using project Osi
1141 --with-osi-datadir directory with data files for using project Osi
1142 --with-vol-lib linker flags for using project Vol
1143 --with-vol-incdir directory with header files for using project Vol
1144 --with-vol-datadir directory with data files for using project Vol
1145 --with-dot use dot (from graphviz) when creating documentation
1146 with doxygen if available; --without-dot to disable
1147
1148 Some influential environment variables:
1149 CDEFS Additional -D flags to be used when compiling C code.
1150 ADD_CFLAGS Additional C compiler options
1151 DBG_CFLAGS Debug C compiler options
1152 OPT_CFLAGS Optimize C compiler options
1153 CC C compiler command
1154 CFLAGS C compiler flags
1155 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1156 nonstandard directory <lib dir>
1157 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1158 headers in a nonstandard directory <include dir>
1159 MPICC C MPI Compiler
1160 CXXDEFS Additional -D flags to be used when compiling C++ code.
1161 ADD_CXXFLAGS
1162 Additional C++ compiler options
1163 DBG_CXXFLAGS
1164 Debug C++ compiler options
1165 OPT_CXXFLAGS
1166 Optimize C++ compiler options
1167 CXX C++ compiler command
1168 CXXFLAGS C++ compiler flags
1169 MPICXX C++ MPI Compiler
1170 ADD_FFLAGS Additional Fortran compiler options
1171 DBG_FFLAGS Debug Fortran compiler options
1172 OPT_FFLAGS Optimize Fortran compiler options
1173 F77 Fortran 77 compiler command
1174 FFLAGS Fortran 77 compiler flags
1175 MPIF77 Fortran MPI Compiler
1176 CPP C preprocessor
1177 CXXCPP C++ preprocessor
1178 COIN_SKIP_PROJECTS
1179 Set to the subdirectories of projects that should be skipped in
1180 the configuration
1181
1182 Use these variables to override the choices made by `configure' or to help
1183 it to find libraries and programs with nonstandard names/locations.
1184
1185 Report bugs to <[email protected]>.
1186 _ACEOF
1187 fi
1188
1189 if test "$ac_init_help" = "recursive"; then
1190 # If there are subdirs, report their specific --help.
1191 ac_popdir=`pwd`
1192 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1193 test -d $ac_dir || continue
1194 ac_builddir=.
1195
1196 if test "$ac_dir" != .; then
1197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1198 # A "../" for each directory in $ac_dir_suffix.
1199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1200 else
1201 ac_dir_suffix= ac_top_builddir=
1202 fi
1203
1204 case $srcdir in
1205 .) # No --srcdir option. We are building in place.
1206 ac_srcdir=.
1207 if test -z "$ac_top_builddir"; then
1208 ac_top_srcdir=.
1209 else
1210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1211 fi ;;
1212 [\\/]* | ?:[\\/]* ) # Absolute path.
1213 ac_srcdir=$srcdir$ac_dir_suffix;
1214 ac_top_srcdir=$srcdir ;;
1215 *) # Relative path.
1216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1218 esac
1219
1220 # Do not use `cd foo && pwd` to compute absolute paths, because
1221 # the directories may not exist.
1222 case `pwd` in
1223 .) ac_abs_builddir="$ac_dir";;
1224 *)
1225 case "$ac_dir" in
1226 .) ac_abs_builddir=`pwd`;;
1227 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1228 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1229 esac;;
1230 esac
1231 case $ac_abs_builddir in
1232 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1233 *)
1234 case ${ac_top_builddir}. in
1235 .) ac_abs_top_builddir=$ac_abs_builddir;;
1236 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1237 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1238 esac;;
1239 esac
1240 case $ac_abs_builddir in
1241 .) ac_abs_srcdir=$ac_srcdir;;
1242 *)
1243 case $ac_srcdir in
1244 .) ac_abs_srcdir=$ac_abs_builddir;;
1245 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1246 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1247 esac;;
1248 esac
1249 case $ac_abs_builddir in
1250 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1251 *)
1252 case $ac_top_srcdir in
1253 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1254 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1255 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1256 esac;;
1257 esac
1258
1259 cd $ac_dir
1260 # Check for guested configure; otherwise get Cygnus style configure.
1261 if test -f $ac_srcdir/configure.gnu; then
1262 echo
1263 $SHELL $ac_srcdir/configure.gnu --help=recursive
1264 elif test -f $ac_srcdir/configure; then
1265 echo
1266 $SHELL $ac_srcdir/configure --help=recursive
1267 elif test -f $ac_srcdir/configure.ac ||
1268 test -f $ac_srcdir/configure.in; then
1269 echo
1270 $ac_configure --help
1271 else
1272 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1273 fi
1274 cd $ac_popdir
1275 done
1276 fi
1277
1278 test -n "$ac_init_help" && exit 0
1279 if $ac_init_version; then
1280 cat <<\_ACEOF
1281 Vol configure 1.5.4
1282 generated by GNU Autoconf 2.59
1283
1284 Copyright (C) 2003 Free Software Foundation, Inc.
1285 This configure script is free software; the Free Software Foundation
1286 gives unlimited permission to copy, distribute and modify it.
1287
1288
1289 Copyright 2006 International Business Machines and others.
1290 All Rights Reserved.
1291 This file is part of the open source package Coin which is distributed
1292 under the Eclipse Public License.
1293 _ACEOF
1294 exit 0
1295 fi
1296 exec 5>config.log
1297 cat >&5 <<_ACEOF
1298 This file contains any messages produced by compilers while
1299 running configure, to aid debugging if configure makes a mistake.
1300
1301 It was created by Vol $as_me 1.5.4, which was
1302 generated by GNU Autoconf 2.59. Invocation command line was
1303
1304 $ $0 $@
1305
1306 _ACEOF
1307 {
1308 cat <<_ASUNAME
1309 ## --------- ##
1310 ## Platform. ##
1311 ## --------- ##
1312
1313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1318
1319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1321
1322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1325 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1329
1330 _ASUNAME
1331
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1334 do
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 echo "PATH: $as_dir"
1338 done
1339
1340 } >&5
1341
1342 cat >&5 <<_ACEOF
1343
1344
1345 ## ----------- ##
1346 ## Core tests. ##
1347 ## ----------- ##
1348
1349 _ACEOF
1350
1351
1352 # Keep a trace of the command line.
1353 # Strip out --no-create and --no-recursion so they do not pile up.
1354 # Strip out --silent because we don't want to record it for future runs.
1355 # Also quote any args containing shell meta-characters.
1356 # Make two passes to allow for proper duplicate-argument suppression.
1357 ac_configure_args=
1358 ac_configure_args0=
1359 ac_configure_args1=
1360 ac_sep=
1361 ac_must_keep_next=false
1362 for ac_pass in 1 2
1363 do
1364 for ac_arg
1365 do
1366 case $ac_arg in
1367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1369 | -silent | --silent | --silen | --sile | --sil)
1370 continue ;;
1371 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1372 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1373 esac
1374 case $ac_pass in
1375 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1376 2)
1377 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1378 if test $ac_must_keep_next = true; then
1379 ac_must_keep_next=false # Got value, back to normal.
1380 else
1381 case $ac_arg in
1382 *=* | --config-cache | -C | -disable-* | --disable-* \
1383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1385 | -with-* | --with-* | -without-* | --without-* | --x)
1386 case "$ac_configure_args0 " in
1387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1388 esac
1389 ;;
1390 -* ) ac_must_keep_next=true ;;
1391 esac
1392 fi
1393 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1394 # Get rid of the leading space.
1395 ac_sep=" "
1396 ;;
1397 esac
1398 done
1399 done
1400 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1401 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1402
1403 # When interrupted or exit'd, cleanup temporary files, and complete
1404 # config.log. We remove comments because anyway the quotes in there
1405 # would cause problems or look ugly.
1406 # WARNING: Be sure not to use single quotes in there, as some shells,
1407 # such as our DU 5.0 friend, will then `close' the trap.
1408 trap 'exit_status=$?
1409 # Save into config.log some information that might help in debugging.
1410 {
1411 echo
1412
1413 cat <<\_ASBOX
1414 ## ---------------- ##
1415 ## Cache variables. ##
1416 ## ---------------- ##
1417 _ASBOX
1418 echo
1419 # The following way of writing the cache mishandles newlines in values,
1420 {
1421 (set) 2>&1 |
1422 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1423 *ac_space=\ *)
1424 sed -n \
1425 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1427 ;;
1428 *)
1429 sed -n \
1430 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1431 ;;
1432 esac;
1433 }
1434 echo
1435
1436 cat <<\_ASBOX
1437 ## ----------------- ##
1438 ## Output variables. ##
1439 ## ----------------- ##
1440 _ASBOX
1441 echo
1442 for ac_var in $ac_subst_vars
1443 do
1444 eval ac_val=$`echo $ac_var`
1445 echo "$ac_var='"'"'$ac_val'"'"'"
1446 done | sort
1447 echo
1448
1449 if test -n "$ac_subst_files"; then
1450 cat <<\_ASBOX
1451 ## ------------- ##
1452 ## Output files. ##
1453 ## ------------- ##
1454 _ASBOX
1455 echo
1456 for ac_var in $ac_subst_files
1457 do
1458 eval ac_val=$`echo $ac_var`
1459 echo "$ac_var='"'"'$ac_val'"'"'"
1460 done | sort
1461 echo
1462 fi
1463
1464 if test -s confdefs.h; then
1465 cat <<\_ASBOX
1466 ## ----------- ##
1467 ## confdefs.h. ##
1468 ## ----------- ##
1469 _ASBOX
1470 echo
1471 sed "/^$/d" confdefs.h | sort
1472 echo
1473 fi
1474 test "$ac_signal" != 0 &&
1475 echo "$as_me: caught signal $ac_signal"
1476 echo "$as_me: exit $exit_status"
1477 } >&5
1478 rm -f core *.core &&
1479 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1480 exit $exit_status
1481 ' 0
1482 for ac_signal in 1 2 13 15; do
1483 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1484 done
1485 ac_signal=0
1486
1487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1488 rm -rf conftest* confdefs.h
1489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1490 echo >confdefs.h
1491
1492 # Predefined preprocessor variables.
1493
1494 cat >>confdefs.h <<_ACEOF
1495 #define PACKAGE_NAME "$PACKAGE_NAME"
1496 _ACEOF
1497
1498
1499 cat >>confdefs.h <<_ACEOF
1500 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1501 _ACEOF
1502
1503
1504 cat >>confdefs.h <<_ACEOF
1505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1506 _ACEOF
1507
1508
1509 cat >>confdefs.h <<_ACEOF
1510 #define PACKAGE_STRING "$PACKAGE_STRING"
1511 _ACEOF
1512
1513
1514 cat >>confdefs.h <<_ACEOF
1515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1516 _ACEOF
1517
1518
1519 # Let the site file select an alternate cache file if it wants to.
1520 # Prefer explicitly selected file to automatically selected ones.
1521 if test -z "$CONFIG_SITE"; then
1522 if test "x$prefix" != xNONE; then
1523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1524 else
1525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1526 fi
1527 fi
1528 for ac_site_file in $CONFIG_SITE; do
1529 if test -r "$ac_site_file"; then
1530 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1531 echo "$as_me: loading site script $ac_site_file" >&6;}
1532 sed 's/^/| /' "$ac_site_file" >&5
1533 . "$ac_site_file"
1534 fi
1535 done
1536
1537 if test -r "$cache_file"; then
1538 # Some versions of bash will fail to source /dev/null (special
1539 # files actually), so we avoid doing that.
1540 if test -f "$cache_file"; then
1541 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1542 echo "$as_me: loading cache $cache_file" >&6;}
1543 case $cache_file in
1544 [\\/]* | ?:[\\/]* ) . $cache_file;;
1545 *) . ./$cache_file;;
1546 esac
1547 fi
1548 else
1549 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1550 echo "$as_me: creating cache $cache_file" >&6;}
1551 >$cache_file
1552 fi
1553
1554 # Check that the precious variables saved in the cache have kept the same
1555 # value.
1556 ac_cache_corrupted=false
1557 for ac_var in `(set) 2>&1 |
1558 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1559 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1560 eval ac_new_set=\$ac_env_${ac_var}_set
1561 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1562 eval ac_new_val="\$ac_env_${ac_var}_value"
1563 case $ac_old_set,$ac_new_set in
1564 set,)
1565 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1566 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1567 ac_cache_corrupted=: ;;
1568 ,set)
1569 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1570 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1571 ac_cache_corrupted=: ;;
1572 ,);;
1573 *)
1574 if test "x$ac_old_val" != "x$ac_new_val"; then
1575 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1576 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1577 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1578 echo "$as_me: former value: $ac_old_val" >&2;}
1579 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1580 echo "$as_me: current value: $ac_new_val" >&2;}
1581 ac_cache_corrupted=:
1582 fi;;
1583 esac
1584 # Pass precious variables to config.status.
1585 if test "$ac_new_set" = set; then
1586 case $ac_new_val in
1587 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1588 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1589 *) ac_arg=$ac_var=$ac_new_val ;;
1590 esac
1591 case " $ac_configure_args " in
1592 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1593 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1594 esac
1595 fi
1596 done
1597 if $ac_cache_corrupted; then
1598 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1599 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1600 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1601 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604
1605 ac_ext=c
1606 ac_cpp='$CPP $CPPFLAGS'
1607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642 # List one file in the package so that the configure script can test
1643 # whether the package is actually there
1644
1645
1646 # Where should everything be installed by default? Here, we want it
1647 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1648 # of the directory where configure is run. The default would be
1649 # /usr/local.
1650
1651
1652 #############################################################################
1653 # Create the libtool script for the subdirectories #
1654 #############################################################################
1655
1656 ac_aux_dir=
1657 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1658 if test -f $ac_dir/install-sh; then
1659 ac_aux_dir=$ac_dir
1660 ac_install_sh="$ac_aux_dir/install-sh -c"
1661 break
1662 elif test -f $ac_dir/install.sh; then
1663 ac_aux_dir=$ac_dir
1664 ac_install_sh="$ac_aux_dir/install.sh -c"
1665 break
1666 elif test -f $ac_dir/shtool; then
1667 ac_aux_dir=$ac_dir
1668 ac_install_sh="$ac_aux_dir/shtool install -c"
1669 break
1670 fi
1671 done
1672 if test -z "$ac_aux_dir"; then
1673 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1674 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1675 { (exit 1); exit 1; }; }
1676 fi
1677 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1678 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1679 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1680
1681 # Make sure we can run config.sub.
1682 $ac_config_sub sun4 >/dev/null 2>&1 ||
1683 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1684 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687 echo "$as_me:$LINENO: checking build system type" >&5
1688 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1689 if test "${ac_cv_build+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 ac_cv_build_alias=$build_alias
1693 test -z "$ac_cv_build_alias" &&
1694 ac_cv_build_alias=`$ac_config_guess`
1695 test -z "$ac_cv_build_alias" &&
1696 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1697 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1698 { (exit 1); exit 1; }; }
1699 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1702 { (exit 1); exit 1; }; }
1703
1704 fi
1705 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1706 echo "${ECHO_T}$ac_cv_build" >&6
1707 build=$ac_cv_build
1708 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
1713
1714 # Check if user wants to produce debugging code
1715
1716 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1717 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1718
1719 # Check whether --enable-debug or --disable-debug was given.
1720 if test "${enable_debug+set}" = set; then
1721 enableval="$enable_debug"
1722 case "${enableval}" in
1723 yes) coin_debug_compile=true
1724 if test "${enable_shared+set}" = set; then :; else
1725 enable_shared=no
1726 fi
1727 ;;
1728 no) coin_debug_compile=false
1729 ;;
1730 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1731 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1732 { (exit 1); exit 1; }; }
1733 ;;
1734 esac
1735 else
1736 coin_debug_compile=false
1737 fi;
1738
1739 # m4_ifvaln([],
1740
1741 if test $coin_debug_compile = true; then
1742 echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1747 fi
1748
1749 # m4_ifvaln([],
1750
1751
1752
1753 # Get the name of the C compiler and appropriate compiler options
1754
1755
1756 # for backward compatibility
1757 # Check whether --enable-doscompile or --disable-doscompile was given.
1758 if test "${enable_doscompile+set}" = set; then
1759 enableval="$enable_doscompile"
1760 enable_doscompile=$enableval
1761 else
1762 enable_doscompile=no
1763 fi;
1764
1765 # Check whether --enable-msvc or --disable-msvc was given.
1766 if test "${enable_msvc+set}" = set; then
1767 enableval="$enable_msvc"
1768 enable_msvc=$enableval
1769 else
1770 enable_msvc=no
1771 if test "$enable_doscompile" = msvc ; then
1772 enable_msvc=yes
1773 elif test "$enable_doscompile" != no ; then
1774 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1775 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1776 { (exit 1); exit 1; }; }
1777 fi
1778
1779 fi;
1780
1781 if test "$enable_msvc" = MD; then
1782 enable_shared=yes
1783 enable_msvc=yes
1784 fi
1785
1786 if test "$enable_msvc" = yes; then
1787 case $build in
1788 *-cygwin* | *-mingw*) ;;
1789 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1790 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1791 { (exit 1); exit 1; }; } ;;
1792 esac
1793 fi
1794
1795
1796
1797 ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802
1803
1804 # For consistency, we set the C compiler to the same value of the C++
1805 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1806 if test x"$CXX" != x; then
1807 case "$CXX" in
1808 clang* ) ;;
1809 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1810 if test x"$CC" = x; then
1811 CC="$CXX"
1812 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1813 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1814 fi
1815 ;;
1816 esac
1817 fi
1818
1819
1820
1821
1822
1823
1824 coin_has_cc=yes
1825
1826 save_cflags="$CFLAGS"
1827
1828 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1829 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1830 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1831 # compiler. In this case, put cc after gcc.
1832
1833 case $build in
1834 *-cygwin* | *-mingw*)
1835 if test "$enable_msvc" = yes ; then
1836 comps="icl cl gcc"
1837 else
1838 comps="gcc icl cl"
1839 fi ;;
1840 *-*-solaris*)
1841 # Extract the first word of "cc", so it can be a program name with args.
1842 set dummy cc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test -n "$sol_cc_compiler"; then
1849 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1850 else
1851 ac_prog_rejected=no
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1860 ac_prog_rejected=yes
1861 continue
1862 fi
1863 ac_cv_prog_sol_cc_compiler="cc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867 done
1868 done
1869
1870 if test $ac_prog_rejected = yes; then
1871 # We found a bogon in the path, so make sure we never use it.
1872 set dummy $ac_cv_prog_sol_cc_compiler
1873 shift
1874 if test $# != 0; then
1875 # We chose a different compiler from the bogus one.
1876 # However, it has the same basename, so the bogon will be chosen
1877 # first if we set sol_cc_compiler to just the basename; use the full file name.
1878 shift
1879 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1880 fi
1881 fi
1882 fi
1883 fi
1884 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1885 if test -n "$sol_cc_compiler"; then
1886 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1887 echo "${ECHO_T}$sol_cc_compiler" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893 if test "$sol_cc_compiler" = "cc" ; then
1894 comps="cc xlc gcc pgcc icc"
1895 else
1896 comps="xlc gcc pgcc icc cc"
1897 fi
1898 ;;
1899 *-*-darwin*) comps="clang gcc cc" ;;
1900 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1901 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1902 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
1903 esac
1904
1905 # We delete the cached value, since the test might not have been
1906 # performed with our choice of compilers earlier
1907 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1908 # AC_MSG_NOTICE([C compiler candidates: $comps])
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 if test -n "$ac_tool_prefix"; then
1915 for ac_prog in $comps
1916 do
1917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938 done
1939 done
1940
1941 fi
1942 fi
1943 CC=$ac_cv_prog_CC
1944 if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 test -n "$CC" && break
1953 done
1954 fi
1955 if test -z "$CC"; then
1956 ac_ct_CC=$CC
1957 for ac_prog in $comps
1958 do
1959 # Extract the first word of "$ac_prog", so it can be a program name with args.
1960 set dummy $ac_prog; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 if test -n "$ac_ct_CC"; then
1967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 ac_cv_prog_ac_ct_CC="$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 break 2
1979 fi
1980 done
1981 done
1982
1983 fi
1984 fi
1985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1986 if test -n "$ac_ct_CC"; then
1987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1988 echo "${ECHO_T}$ac_ct_CC" >&6
1989 else
1990 echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1992 fi
1993
1994 test -n "$ac_ct_CC" && break
1995 done
1996
1997 CC=$ac_ct_CC
1998 fi
1999
2000
2001 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: no acceptable C compiler found in \$PATH
2004 See \`config.log' for more details." >&2;}
2005 { (exit 1); exit 1; }; }
2006
2007 # Provide some information about the compiler.
2008 echo "$as_me:$LINENO:" \
2009 "checking for C compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012 (eval $ac_compiler --version </dev/null >&5) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017 (eval $ac_compiler -v </dev/null >&5) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022 (eval $ac_compiler -V </dev/null >&5) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026
2027 cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h. */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2033
2034 int
2035 main ()
2036 {
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 ac_clean_files_save=$ac_clean_files
2043 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2044 # Try to create an executable without -o first, disregard a.out.
2045 # It will help us diagnose broken compilers, and finding out an intuition
2046 # of exeext.
2047 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2048 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051 (eval $ac_link_default) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Find the output, starting from the most likely. This scheme is
2056 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057 # resort.
2058
2059 # Be careful to initialize this variable, since it used to be cached.
2060 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2061 ac_cv_exeext=
2062 # b.out is created by i960 compilers.
2063 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2064 do
2065 test -f "$ac_file" || continue
2066 case $ac_file in
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2068 ;;
2069 conftest.$ac_ext )
2070 # This is the source file.
2071 ;;
2072 [ab].out )
2073 # We found the default executable, but exeext='' is most
2074 # certainly right.
2075 break;;
2076 *.* )
2077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 # FIXME: I believe we export ac_cv_exeext for Libtool,
2079 # but it would be cool to find out if it's true. Does anybody
2080 # maintain Libtool? --akim.
2081 export ac_cv_exeext
2082 break;;
2083 * )
2084 break;;
2085 esac
2086 done
2087 else
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: C compiler cannot create executables
2094 See \`config.log' for more details." >&2;}
2095 { (exit 77); exit 77; }; }
2096 fi
2097
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2101
2102 # Check the compiler produces executables we can run. If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2105 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109 if { ac_try='./$ac_file'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 cross_compiling=no
2116 else
2117 if test "$cross_compiling" = maybe; then
2118 cross_compiling=yes
2119 else
2120 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot run C compiled programs.
2124 If you meant to cross compile, use \`--host'.
2125 See \`config.log' for more details." >&2;}
2126 { (exit 1); exit 1; }; }
2127 fi
2128 fi
2129 fi
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2132
2133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2134 ac_clean_files=$ac_clean_files_save
2135 # Check the compiler produces executables we can run. If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2141
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2152 # `rm'.
2153 for ac_file in conftest.exe conftest conftest.*; do
2154 test -f "$ac_file" || continue
2155 case $ac_file in
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158 export ac_cv_exeext
2159 break;;
2160 * ) break;;
2161 esac
2162 done
2163 else
2164 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 rm -f conftest$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173 echo "${ECHO_T}$ac_cv_exeext" >&6
2174
2175 rm -f conftest.$ac_ext
2176 EXEEXT=$ac_cv_exeext
2177 ac_exeext=$EXEEXT
2178 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180 if test "${ac_cv_objext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
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 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 case $ac_file in
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208 break;;
2209 esac
2210 done
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225 echo "${ECHO_T}$ac_cv_objext" >&6
2226 OBJEXT=$ac_cv_objext
2227 ac_objext=$OBJEXT
2228 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2229 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2230 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h. */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2239
2240 int
2241 main ()
2242 {
2243 #ifndef __GNUC__
2244 choke me
2245 #endif
2246
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 ac_compiler_gnu=yes
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 ac_compiler_gnu=no
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2282
2283 fi
2284 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2285 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2286 GCC=`test $ac_compiler_gnu = yes && echo yes`
2287 ac_test_CFLAGS=${CFLAGS+set}
2288 ac_save_CFLAGS=$CFLAGS
2289 CFLAGS="-g"
2290 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2291 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2292 if test "${ac_cv_prog_cc_g+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301
2302 int
2303 main ()
2304 {
2305
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cc_g=yes
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 ac_cv_prog_cc_g=no
2338 fi
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2343 if test "$ac_test_CFLAGS" = set; then
2344 CFLAGS=$ac_save_CFLAGS
2345 elif test $ac_cv_prog_cc_g = yes; then
2346 if test "$GCC" = yes; then
2347 CFLAGS="-g -O2"
2348 else
2349 CFLAGS="-g"
2350 fi
2351 else
2352 if test "$GCC" = yes; then
2353 CFLAGS="-O2"
2354 else
2355 CFLAGS=
2356 fi
2357 fi
2358 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2359 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2360 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 ac_cv_prog_cc_stdc=no
2364 ac_save_CC=$CC
2365 cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h. */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2371 #include <stdarg.h>
2372 #include <stdio.h>
2373 #include <sys/types.h>
2374 #include <sys/stat.h>
2375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2376 struct buf { int x; };
2377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2378 static char *e (p, i)
2379 char **p;
2380 int i;
2381 {
2382 return p[i];
2383 }
2384 static char *f (char * (*g) (char **, int), char **p, ...)
2385 {
2386 char *s;
2387 va_list v;
2388 va_start (v,p);
2389 s = g (p, va_arg (v,int));
2390 va_end (v);
2391 return s;
2392 }
2393
2394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2395 function prototypes and stuff, but not '\xHH' hex character constants.
2396 These don't provoke an error unfortunately, instead are silently treated
2397 as 'x'. The following induces an error, until -std1 is added to get
2398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2399 array size at least. It's necessary to write '\x00'==0 to get something
2400 that's true only with -std1. */
2401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2402
2403 int test (int i, double x);
2404 struct s1 {int (*f) (int a);};
2405 struct s2 {int (*f) (double a);};
2406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2407 int argc;
2408 char **argv;
2409 int
2410 main ()
2411 {
2412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 # Don't try gcc -ansi; that turns off useful extensions and
2418 # breaks some systems' header files.
2419 # AIX -qlanglvl=ansi
2420 # Ultrix and OSF/1 -std1
2421 # HP-UX 10.20 and later -Ae
2422 # HP-UX older versions -Aa -D_HPUX_SOURCE
2423 # SVR4 -Xc -D__EXTENSIONS__
2424 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2425 do
2426 CC="$ac_save_CC $ac_arg"
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2430 ac_status=$?
2431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 ac_cv_prog_cc_stdc=$ac_arg
2450 break
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 fi
2456 rm -f conftest.err conftest.$ac_objext
2457 done
2458 rm -f conftest.$ac_ext conftest.$ac_objext
2459 CC=$ac_save_CC
2460
2461 fi
2462
2463 case "x$ac_cv_prog_cc_stdc" in
2464 x|xno)
2465 echo "$as_me:$LINENO: result: none needed" >&5
2466 echo "${ECHO_T}none needed" >&6 ;;
2467 *)
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2470 CC="$CC $ac_cv_prog_cc_stdc" ;;
2471 esac
2472
2473 # Some people use a C++ compiler to compile C. Since we use `exit',
2474 # in C++ we need to declare it. In case someone uses the same compiler
2475 # for both compiling C and C++ we need to have the C++ compiler decide
2476 # the declaration of exit, since it's the most demanding environment.
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #ifndef __cplusplus
2479 choke me
2480 #endif
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag"
2492 || test ! -s conftest.err'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 for ac_declaration in \
2505 '' \
2506 'extern "C" void std::exit (int) throw (); using std::exit;' \
2507 'extern "C" void std::exit (int); using std::exit;' \
2508 'extern "C" void exit (int) throw ();' \
2509 'extern "C" void exit (int);' \
2510 'void exit (int);'
2511 do
2512 cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h. */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2518 $ac_declaration
2519 #include <stdlib.h>
2520 int
2521 main ()
2522 {
2523 exit (42);
2524 ;
2525 return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag"
2538 || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 :
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 continue
2556 fi
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564 $ac_declaration
2565 int
2566 main ()
2567 {
2568 exit (42);
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag"
2583 || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 break
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 done
2603 rm -f conftest*
2604 if test -n "$ac_declaration"; then
2605 echo '#ifdef __cplusplus' >>confdefs.h
2606 echo $ac_declaration >>confdefs.h
2607 echo '#endif' >>confdefs.h
2608 fi
2609
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 fi
2615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622 if test -z "$CC" ; then
2623 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2624 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2625 { (exit 1); exit 1; }; }
2626 fi
2627 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2628 case "$CC" in
2629 clang* ) ;;
2630 cl* | */cl* | CL* | */CL* )
2631 if test "$ac_cv_prog_cc_g" = yes ; then
2632 ac_cv_prog_cc_g=no
2633 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2634 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2635 fi ;;
2636 * )
2637 if test x"$CYGPATH_W" = x ; then
2638 CYGPATH_W=echo
2639 fi
2640 ;;
2641 esac
2642 CFLAGS="$save_cflags"
2643
2644 # add automake conditional so we can recognize cl compiler in makefile
2645 coin_cc_is_cl=false
2646 case "$CC" in
2647 clang* ) ;;
2648 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2649 coin_cc_is_cl=true
2650 ;;
2651 esac
2652
2653
2654 if test $coin_cc_is_cl = true; then
2655 COIN_CC_IS_CL_TRUE=
2656 COIN_CC_IS_CL_FALSE='#'
2657 else
2658 COIN_CC_IS_CL_TRUE='#'
2659 COIN_CC_IS_CL_FALSE=
2660 fi
2661
2662
2663 # Check if a project specific CFLAGS variable has been set
2664 if test x$COIN_PRJCT != x; then
2665 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2666 if test x$coin_tmp = xset; then
2667 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2668 fi
2669 fi
2670
2671 if test x"$CFLAGS" = x; then
2672
2673 coin_add_cflags=
2674 coin_opt_cflags=
2675 coin_dbg_cflags=
2676 coin_warn_cflags=
2677
2678 if test "$GCC" = "yes"; then
2679 case "$CC" in
2680 icc* | */icc*)
2681 ;;
2682 *)
2683 coin_opt_cflags="-O3"
2684 coin_add_cflags="-pipe"
2685 coin_dbg_cflags="-g -O0"
2686 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2687 esac
2688 fi
2689 if test -z "$coin_opt_cflags"; then
2690 case $build in
2691 *-cygwin* | *-mingw*)
2692 case "$CC" in
2693 clang* ) ;;
2694 cl* | */cl* | CL* | */CL*)
2695 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2696 coin_opt_cflags='-MD -O2'
2697 coin_dbg_cflags='-MDd'
2698 else
2699 coin_opt_cflags='-MT -O2'
2700 coin_dbg_cflags='-MTd'
2701 fi
2702 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2703 ;;
2704 icl* | */icl* | ICL* | */ICL*)
2705 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2706 coin_opt_cflags='-MD -Ox'
2707 coin_dbg_cflags='-MDd -debug'
2708 else
2709 coin_opt_cflags='-MT -Ox'
2710 coin_dbg_cflags='-MTd -debug'
2711 fi
2712 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2713 ;;
2714 esac
2715 ;;
2716 *-linux-*)
2717 case "$CC" in
2718 icc* | */icc*)
2719 coin_opt_cflags="-O3 -ip -mp1"
2720 coin_add_cflags=""
2721 coin_dbg_cflags="-g"
2722 # Check if -i_dynamic is necessary (for new glibc library)
2723 CFLAGS=
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730
2731 int
2732 main ()
2733 {
2734 int i=0; i++;
2735 ;
2736 return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext conftest$ac_exeext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741 (eval $ac_link) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 :
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 coin_add_cflags="-i_dynamic $coin_add_cflags"
2767 fi
2768 rm -f conftest.err conftest.$ac_objext \
2769 conftest$ac_exeext conftest.$ac_ext
2770 ;;
2771 pgcc* | */pgcc*)
2772 coin_opt_cflags="-fast"
2773 coin_add_cflags="-Kieee -pc 64"
2774 coin_dbg_cflags="-g"
2775 ;;
2776 esac
2777 ;;
2778 *-ibm-*)
2779 case "$CC" in
2780 xlc* | */xlc* | mpxlc* | */mpxlc*)
2781 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2782 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2783 coin_dbg_cflags="-g"
2784 ;;
2785 esac
2786 ;;
2787 *-hp-*)
2788 coin_opt_cflags="-O"
2789 coin_add_cflags="-Ae"
2790 coin_dbg_cflags="-g"
2791 ;;
2792 *-*-solaris*)
2793 coin_opt_cflags="-xO4"
2794 coin_dbg_cflags="-g"
2795 ;;
2796 *-sgi-*)
2797 coin_opt_cflags="-O -OPT:Olimit=0"
2798 coin_dbg_cflags="-g"
2799 ;;
2800 esac
2801 fi
2802
2803 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2804 coin_dbg_cflags="-g"
2805 fi
2806
2807 if test -z "$coin_opt_cflags"; then
2808 # Try if -O option works if nothing else is set
2809 CFLAGS="-O"
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816
2817 int
2818 main ()
2819 {
2820 int i=0; i++;
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext conftest$ac_exeext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2827 (eval $ac_link) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest$ac_exeext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 coin_opt_cflags="-O"
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 fi
2853 rm -f conftest.err conftest.$ac_objext \
2854 conftest$ac_exeext conftest.$ac_ext
2855 fi
2856
2857 # if PM doesn't want the warning messages, take them out
2858 if test x"$coin_skip_warn_cflags" = xyes; then
2859 coin_warn_cflags=
2860 fi
2861
2862 if test x${DBG_CFLAGS+set} != xset; then
2863 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2864 fi
2865 if test x${OPT_CFLAGS+set} != xset; then
2866 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2867 fi
2868
2869 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2870 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2871
2872 if test "$coin_debug_compile" = "true"; then
2873 CFLAGS="$DBG_CFLAGS"
2874 else
2875 CFLAGS="$OPT_CFLAGS"
2876 fi
2877 else
2878 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2879 if test x${DBG_CFLAGS+set} != xset; then
2880 DBG_CFLAGS="$CFLAGS"
2881 fi
2882 if test x${OPT_CFLAGS+set} != xset; then
2883 OPT_CFLAGS="$CFLAGS"
2884 fi
2885 fi
2886
2887 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2888 if test x$COIN_PRJCT != x; then
2889 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2890 fi
2891
2892 # Try if CFLAGS works
2893 save_CFLAGS="$CFLAGS"
2894 cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900
2901 int
2902 main ()
2903 {
2904 int i=0; i++;
2905 ;
2906 return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext conftest$ac_exeext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911 (eval $ac_link) 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 :
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 CFLAGS=
2937 fi
2938 rm -f conftest.err conftest.$ac_objext \
2939 conftest$ac_exeext conftest.$ac_ext
2940 if test -z "$CFLAGS"; then
2941 { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5
2942 echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2943 CFLAGS='-O'
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950
2951 int
2952 main ()
2953 {
2954 int i=0; i++;
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext conftest$ac_exeext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -z "$ac_c_werror_flag"
2969 || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest$ac_exeext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 :
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 CFLAGS=
2987 fi
2988 rm -f conftest.err conftest.$ac_objext \
2989 conftest$ac_exeext conftest.$ac_ext
2990 if test -z "$CFLAGS"; then
2991 { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
2992 echo "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
2993 fi
2994 fi
2995
2996 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2997 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2998
2999
3000 if test x"$MPICC" = x; then :; else
3001 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3002 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3003 CC="$MPICC"
3004 fi
3005
3006 # Correct the LD variable if we are using the MS or Intel-windows compiler
3007 case "$CC" in
3008 clang* ) ;;
3009 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3010 LD=link
3011 ;;
3012 esac
3013
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019
3020
3021
3022 # Get the name of the C++ compiler and appropriate compiler options
3023
3024 #Let's try if that overcomes configuration problem with VC++ 6.0
3025
3026 ac_ext=cc
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3031
3032
3033
3034
3035
3036
3037
3038 coin_has_cxx=yes
3039
3040 save_cxxflags="$CXXFLAGS"
3041 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3042 case $build in
3043 *-cygwin* | *-mingw*)
3044 if test "$enable_msvc" = yes ; then
3045 comps="icl cl g++"
3046 else
3047 comps="g++ icl cl"
3048 fi ;;
3049 *-*-solaris*)
3050 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3051 *-darwin*) comps="clang++ g++ c++ CC" ;;
3052 *-linux-gnu*)
3053 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3054 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3055 esac
3056
3057 # We delete the cached value, since the test might not have been
3058 # performed with our choice of compilers earlier
3059 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3060 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3061 ac_ext=cc
3062 ac_cpp='$CXXCPP $CPPFLAGS'
3063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3066 if test -n "$ac_tool_prefix"; then
3067 for ac_prog in $CCC $comps
3068 do
3069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3071 echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073 if test "${ac_cv_prog_CXX+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 if test -n "$CXX"; then
3077 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092
3093 fi
3094 fi
3095 CXX=$ac_cv_prog_CXX
3096 if test -n "$CXX"; then
3097 echo "$as_me:$LINENO: result: $CXX" >&5
3098 echo "${ECHO_T}$CXX" >&6
3099 else
3100 echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3102 fi
3103
3104 test -n "$CXX" && break
3105 done
3106 fi
3107 if test -z "$CXX"; then
3108 ac_ct_CXX=$CXX
3109 for ac_prog in $CCC $comps
3110 do
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3115 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 if test -n "$ac_ct_CXX"; then
3119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_CXX="$ac_prog"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134
3135 fi
3136 fi
3137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3138 if test -n "$ac_ct_CXX"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3140 echo "${ECHO_T}$ac_ct_CXX" >&6
3141 else
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3144 fi
3145
3146 test -n "$ac_ct_CXX" && break
3147 done
3148 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3149
3150 CXX=$ac_ct_CXX
3151 fi
3152
3153
3154 # Provide some information about the compiler.
3155 echo "$as_me:$LINENO:" \
3156 "checking for C++ compiler version" >&5
3157 ac_compiler=`set X $ac_compile; echo $2`
3158 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3159 (eval $ac_compiler --version </dev/null >&5) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }
3163 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3164 (eval $ac_compiler -v </dev/null >&5) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }
3168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3169 (eval $ac_compiler -V </dev/null >&5) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }
3173
3174 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3175 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3176 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189 #ifndef __GNUC__
3190 choke me
3191 #endif
3192
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_cxx_werror_flag"
3207 || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_compiler_gnu=yes
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 ac_compiler_gnu=no
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3228
3229 fi
3230 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3231 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3232 GXX=`test $ac_compiler_gnu = yes && echo yes`
3233 ac_test_CXXFLAGS=${CXXFLAGS+set}
3234 ac_save_CXXFLAGS=$CXXFLAGS
3235 CXXFLAGS="-g"
3236 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3237 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3238 if test "${ac_cv_prog_cxx_g+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247
3248 int
3249 main ()
3250 {
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_cxx_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_prog_cxx_g=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_cv_prog_cxx_g=no
3284 fi
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3289 if test "$ac_test_CXXFLAGS" = set; then
3290 CXXFLAGS=$ac_save_CXXFLAGS
3291 elif test $ac_cv_prog_cxx_g = yes; then
3292 if test "$GXX" = yes; then
3293 CXXFLAGS="-g -O2"
3294 else
3295 CXXFLAGS="-g"
3296 fi
3297 else
3298 if test "$GXX" = yes; then
3299 CXXFLAGS="-O2"
3300 else
3301 CXXFLAGS=
3302 fi
3303 fi
3304 for ac_declaration in \
3305 '' \
3306 'extern "C" void std::exit (int) throw (); using std::exit;' \
3307 'extern "C" void std::exit (int); using std::exit;' \
3308 'extern "C" void exit (int) throw ();' \
3309 'extern "C" void exit (int);' \
3310 'void exit (int);'
3311 do
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318 $ac_declaration
3319 #include <stdlib.h>
3320 int
3321 main ()
3322 {
3323 exit (42);
3324 ;
3325 return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_cxx_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 :
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 continue
3356 fi
3357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 $ac_declaration
3365 int
3366 main ()
3367 {
3368 exit (42);
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_cxx_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 break
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 fi
3401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3402 done
3403 rm -f conftest*
3404 if test -n "$ac_declaration"; then
3405 echo '#ifdef __cplusplus' >>confdefs.h
3406 echo $ac_declaration >>confdefs.h
3407 echo '#endif' >>confdefs.h
3408 fi
3409
3410 ac_ext=cc
3411 ac_cpp='$CXXCPP $CPPFLAGS'
3412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3415
3416
3417 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3418 #thus, we test here whether $CXX is actually working
3419 ac_ext=cc
3420 ac_cpp='$CXXCPP $CPPFLAGS'
3421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3424
3425 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3426 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437 int i=0;
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_cxx_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3472 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3473 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3474 { (exit 1); exit 1; }; }
3475
3476 fi
3477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_ext=cc
3479 ac_cpp='$CXXCPP $CPPFLAGS'
3480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3483
3484
3485 coin_cxx_is_cl=false
3486 # It seems that we need to cleanup something here for the Windows
3487 case "$CXX" in
3488 clang* | */clang*) ;;
3489 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3490 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3491 mv confdefs.hh confdefs.h
3492 coin_cxx_is_cl=true
3493 ;;
3494 esac
3495
3496 # add automake conditional so we can recognize cl compiler in makefile
3497
3498
3499 if test $coin_cxx_is_cl = true; then
3500 COIN_CXX_IS_CL_TRUE=
3501 COIN_CXX_IS_CL_FALSE='#'
3502 else
3503 COIN_CXX_IS_CL_TRUE='#'
3504 COIN_CXX_IS_CL_FALSE=
3505 fi
3506
3507
3508 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3509 case "$CXX" in
3510 clang* ) ;;
3511 cl* | */cl* | CL* | */CL* )
3512 if test "$ac_cv_prog_cxx_g" = yes ; then
3513 ac_cv_prog_cxx_g=no
3514 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3515 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3516 fi ;;
3517 * )
3518 if test x"$CYGPATH_W" = x ; then
3519 CYGPATH_W=echo
3520 fi
3521 ;;
3522 esac
3523 CXXFLAGS="$save_cxxflags"
3524
3525 # Check if a project specific CXXFLAGS variable has been set
3526 if test x$COIN_PRJCT != x; then
3527 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3528 if test x$coin_tmp = xset; then
3529 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3530 fi
3531 fi
3532
3533 if test x"$CXXFLAGS" = x; then
3534
3535 # ToDo decide whether we want -DNDEBUG for optimization
3536 coin_add_cxxflags=
3537 coin_opt_cxxflags=
3538 coin_dbg_cxxflags=
3539 coin_warn_cxxflags=
3540
3541 if test "$GXX" = "yes"; then
3542 case "$CXX" in
3543 icpc* | */icpc*)
3544 ;;
3545 *)
3546 # ToDo decide about unroll-loops
3547 coin_opt_cxxflags="-O3"
3548 coin_add_cxxflags="-pipe"
3549 coin_dbg_cxxflags="-g -O0"
3550 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3551 esac
3552 fi
3553
3554 # Note that we do not need to cover GCC in the following tests.
3555
3556 if test -z "$coin_opt_cxxflags"; then
3557 case $build in
3558 *-cygwin* | *-mingw*)
3559 case "$CXX" in
3560 clang* ) ;;
3561 cl* | */cl* | CL* | */CL*)
3562 # The MT and MTd options are mutually exclusive
3563 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3564 coin_opt_cxxflags='-MD -O2'
3565 coin_dbg_cxxflags='-MDd'
3566 else
3567 coin_opt_cxxflags='-MT -O2'
3568 coin_dbg_cxxflags='-MTd'
3569 fi
3570 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3571 ;;
3572 icl* | */icl* | ICL* | */ICL*)
3573 # The MT and MTd options are mutually exclusive
3574 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3575 coin_opt_cxxflags='-MD -Ox'
3576 coin_dbg_cxxflags='-MDd -debug'
3577 else
3578 coin_opt_cxxflags='-MT -Ox'
3579 coin_dbg_cxxflags='-MTd -debug'
3580 fi
3581 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3582 ;;
3583 esac
3584 ;;
3585 *-linux-*)
3586 case "$CXX" in
3587 icpc* | */icpc*)
3588 coin_opt_cxxflags="-O3 -ip -mp1"
3589 coin_add_cxxflags=""
3590 coin_dbg_cxxflags="-g"
3591 # Check if -i_dynamic is necessary (for new glibc library)
3592 CXXFLAGS=
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603 int i=0; i++;
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext conftest$ac_exeext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3610 (eval $ac_link) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_cxx_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest$ac_exeext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 :
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3636 fi
3637 rm -f conftest.err conftest.$ac_objext \
3638 conftest$ac_exeext conftest.$ac_ext
3639 ;;
3640 pgCC* | */pgCC*)
3641 coin_opt_cxxflags="-fast"
3642 coin_add_cxxflags="-Kieee -pc 64"
3643 coin_dbg_cxxflags="-g"
3644 ;;
3645 esac
3646 ;;
3647 *-ibm-*)
3648 case "$CXX" in
3649 xlC* | */xlC* | mpxlC* | */mpxlC*)
3650 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3651 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3652 coin_dbg_cxxflags="-g"
3653 ;;
3654 esac
3655 ;;
3656 *-hp-*)
3657 case "$CXX" in
3658 aCC* | */aCC* )
3659 coin_opt_cxxflags="-O"
3660 coin_add_cxxflags="-AA"
3661 coin_dbg_cxxflags="-g"
3662 ;;
3663 esac
3664 ;;
3665 *-*-solaris*)
3666 coin_opt_cxxflags="-O4"
3667 coin_dbg_cxxflags="-g"
3668 ;;
3669 esac
3670 fi
3671
3672 # Generic flag settings. If these don't work, add a case above.
3673
3674 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3675 coin_dbg_cxxflags="-g"
3676 fi
3677
3678 if test -z "$coin_opt_cxxflags"; then
3679 # Try if -O option works if nothing else is set
3680 CXXFLAGS=-O
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691 int i=0; i++;
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext conftest$ac_exeext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_cxx_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 coin_opt_cxxflags="-O"
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 fi
3724 rm -f conftest.err conftest.$ac_objext \
3725 conftest$ac_exeext conftest.$ac_ext
3726 fi
3727
3728 # if PM doesn't want the warning messages, take them out
3729 if test x"$coin_skip_warn_cxxflags" = xyes; then
3730 coin_warn_cxxflags=
3731 fi
3732
3733 # Do final setup of flags based on values determined above.
3734
3735 if test x${DBG_CXXFLAGS+set} != xset; then
3736 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3737 fi
3738 if test x${OPT_CXXFLAGS+set} != xset; then
3739 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3740 fi
3741
3742 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3743 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3744
3745 if test "$coin_debug_compile" = "true"; then
3746 CXXFLAGS="$DBG_CXXFLAGS"
3747 else
3748 CXXFLAGS="$OPT_CXXFLAGS"
3749 fi
3750
3751 # Handle the case where CXXFLAGS was set externally.
3752 else
3753 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3754 if test x${DBG_CXXFLAGS+set} != xset; then
3755 DBG_CXXFLAGS="$CXXFLAGS"
3756 fi
3757 if test x${OPT_CXXFLAGS+set} != xset; then
3758 OPT_CXXFLAGS="$CXXFLAGS"
3759 fi
3760 fi
3761
3762 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3763 if test x$COIN_PRJCT != x; then
3764 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3765 fi
3766
3767 # Try if CXXFLAGS works
3768 save_CXXFLAGS="$CXXFLAGS"
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779 int i=0; i++;
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext conftest$ac_exeext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786 (eval $ac_link) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_cxx_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest$ac_exeext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 :
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 CXXFLAGS=
3812 fi
3813 rm -f conftest.err conftest.$ac_objext \
3814 conftest$ac_exeext conftest.$ac_ext
3815 if test -z "$CXXFLAGS"; then
3816 { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3817 echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3818 CXXFLAGS='-O'
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825
3826 int
3827 main ()
3828 {
3829 int i=0; i++;
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -z "$ac_cxx_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 :
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 CXXFLAGS=
3862 fi
3863 rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
3865 if test -z "$CXXFLAGS"; then
3866 { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
3867 echo "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
3868 fi
3869 fi
3870
3871 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3872 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3873
3874
3875 if test x"$MPICXX" = x; then :; else
3876 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3877 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3878 CXX="$MPICXX"
3879 fi
3880
3881 # correct the LD variable in a build with MS or Intel-windows compiler
3882 case "$CXX" in
3883 clang* ) ;;
3884 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3885 LD=link
3886 ;;
3887 esac
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895
3896
3897 # Get the name of the Fortran compiler and appropriate compiler options
3898 case $build in
3899 *-cygwin* | *-mingw*)
3900 if test "$enable_msvc" = yes ; then
3901 coin_f77_comps="ifort fl32 compile_f2c"
3902 else
3903 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3904 fi ;;
3905 *-*-solaris*)
3906 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3907 *-linux-gnu*)
3908 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3909 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3910 esac
3911
3912
3913
3914
3915
3916 ac_ext=f
3917 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3918 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3920
3921
3922
3923
3924
3925
3926 coin_has_f77=yes
3927
3928 save_fflags="$FFLAGS"
3929
3930 # We delete the cached value, since the test might not have been
3931 # performed with our choice of compilers earlier
3932 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3933
3934 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3935 # coin_f77_comps to see if there's a program that matches one of the names.
3936 # If there's no such program, F77 = unavailable. If we match the name,
3937 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3938 # compiler.
3939 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3940
3941
3942 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3943 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog in $coin_f77_comps
3946 do
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_F77+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 if test -n "$F77"; then
3955 ac_cv_prog_F77="$F77" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970
3971 fi
3972 fi
3973 F77=$ac_cv_prog_F77
3974 if test -n "$F77"; then
3975 echo "$as_me:$LINENO: result: $F77" >&5
3976 echo "${ECHO_T}$F77" >&6
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981
3982 test -n "$F77" && break
3983 done
3984 fi
3985 if test -z "$F77"; then
3986 ac_ct_F77=$F77
3987 for ac_prog in $coin_f77_comps
3988 do
3989 # Extract the first word of "$ac_prog", so it can be a program name with args.
3990 set dummy $ac_prog; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 if test -n "$ac_ct_F77"; then
3997 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_F77="$ac_prog"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012
4013 fi
4014 fi
4015 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4016 if test -n "$ac_ct_F77"; then
4017 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4018 echo "${ECHO_T}$ac_ct_F77" >&6
4019 else
4020 echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022 fi
4023
4024 test -n "$ac_ct_F77" && break
4025 done
4026 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4027
4028 F77=$ac_ct_F77
4029 fi
4030
4031
4032 if test "$F77" != "unavailable" ; then
4033 ac_ext=f
4034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4037 if test -n "$ac_tool_prefix"; then
4038 for ac_prog in $coin_f77_comps
4039 do
4040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_F77+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 if test -n "$F77"; then
4048 ac_cv_prog_F77="$F77" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061 done
4062 done
4063
4064 fi
4065 fi
4066 F77=$ac_cv_prog_F77
4067 if test -n "$F77"; then
4068 echo "$as_me:$LINENO: result: $F77" >&5
4069 echo "${ECHO_T}$F77" >&6
4070 else
4071 echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4073 fi
4074
4075 test -n "$F77" && break
4076 done
4077 fi
4078 if test -z "$F77"; then
4079 ac_ct_F77=$F77
4080 for ac_prog in $coin_f77_comps
4081 do
4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 if test -n "$ac_ct_F77"; then
4090 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_F77="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4109 if test -n "$ac_ct_F77"; then
4110 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4111 echo "${ECHO_T}$ac_ct_F77" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 test -n "$ac_ct_F77" && break
4118 done
4119
4120 F77=$ac_ct_F77
4121 fi
4122
4123
4124 # Provide some information about the compiler.
4125 echo "$as_me:4125:" \
4126 "checking for Fortran 77 compiler version" >&5
4127 ac_compiler=`set X $ac_compile; echo $2`
4128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4129 (eval $ac_compiler --version </dev/null >&5) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }
4133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4134 (eval $ac_compiler -v </dev/null >&5) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }
4138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4139 (eval $ac_compiler -V </dev/null >&5) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }
4143 rm -f a.out
4144
4145 # If we don't use `.F' as extension, the preprocessor is not run on the
4146 # input file. (Note that this only needs to work for GNU compilers.)
4147 ac_save_ext=$ac_ext
4148 ac_ext=F
4149 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4150 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4151 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 cat >conftest.$ac_ext <<_ACEOF
4155 program main
4156 #ifndef __GNUC__
4157 choke me
4158 #endif
4159
4160 end
4161 _ACEOF
4162 rm -f conftest.$ac_objext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_f77_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_compiler_gnu=yes
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_compiler_gnu=no
4190 fi
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4193
4194 fi
4195 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4196 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4197 ac_ext=$ac_save_ext
4198 ac_test_FFLAGS=${FFLAGS+set}
4199 ac_save_FFLAGS=$FFLAGS
4200 FFLAGS=
4201 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4202 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4203 if test "${ac_cv_prog_f77_g+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 FFLAGS=-g
4207 cat >conftest.$ac_ext <<_ACEOF
4208 program main
4209
4210 end
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_f77_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_prog_f77_g=yes
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 ac_cv_prog_f77_g=no
4240 fi
4241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4242
4243 fi
4244 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4245 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4246 if test "$ac_test_FFLAGS" = set; then
4247 FFLAGS=$ac_save_FFLAGS
4248 elif test $ac_cv_prog_f77_g = yes; then
4249 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4250 FFLAGS="-g -O2"
4251 else
4252 FFLAGS="-g"
4253 fi
4254 else
4255 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4256 FFLAGS="-O2"
4257 else
4258 FFLAGS=
4259 fi
4260 fi
4261
4262 G77=`test $ac_compiler_gnu = yes && echo yes`
4263 ac_ext=f
4264 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4265 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4267
4268 else
4269 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4270 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4271 fi
4272
4273 FFLAGS="$save_fflags"
4274
4275 # Check if a project specific FFLAGS variable has been set
4276 if test x$COIN_PRJCT != x; then
4277 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4278 if test x$coin_tmp = xset; then
4279 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4280 fi
4281 fi
4282
4283 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4284
4285 coin_add_fflags=
4286 coin_opt_fflags=
4287 coin_dbg_fflags=
4288 coin_warn_fflags=
4289
4290 if test "$G77" = "yes"; then
4291 coin_opt_fflags="-O3"
4292 coin_add_fflags="-pipe"
4293 coin_dbg_fflags="-g -O0"
4294 else
4295 case $build in
4296 *-cygwin* | *-mingw*)
4297 case $F77 in
4298 ifort* | */ifort* | IFORT* | */IFORT* )
4299 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4300 coin_opt_fflags='-MD -O3'
4301 coin_dbg_fflags='-MDd -debug'
4302 else
4303 coin_opt_fflags='-MT -O3'
4304 coin_dbg_fflags='-MTd -debug'
4305 fi
4306 coin_add_fflags='-fpp -nologo'
4307 ;;
4308 compile_f2c*)
4309 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4310 coin_opt_fflags='-MD -O2'
4311 coin_dbg_fflags='-MDd'
4312 else
4313 coin_opt_fflags='-MT -O2'
4314 coin_dbg_fflags='-MTd'
4315 fi
4316 coin_add_fflags='-nologo -wd4996'
4317 ;;
4318 esac
4319 ;;
4320 *-linux-*)
4321 case $F77 in
4322 ifc* | */ifc* | ifort* | */ifort*)
4323 coin_opt_fflags="-O3 -ip"
4324 coin_add_fflags="-cm -w90 -w95"
4325 coin_dbg_fflags="-g -CA -CB -CS"
4326 # Check if -i_dynamic is necessary (for new glibc library)
4327 FFLAGS=
4328 cat >conftest.$ac_ext <<_ACEOF
4329 program main
4330 write(*,*) 'Hello world'
4331 end
4332 _ACEOF
4333 rm -f conftest.$ac_objext conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_f77_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 :
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 coin_add_fflags="-i_dynamic $coin_add_fflags"
4361 fi
4362 rm -f conftest.err conftest.$ac_objext \
4363 conftest$ac_exeext conftest.$ac_ext
4364 ;;
4365 pgf77* | */pgf77* | pgf90* | */pgf90*)
4366 coin_opt_fflags="-fast"
4367 coin_add_fflags="-Kieee -pc 64"
4368 coin_dbg_fflags="-g"
4369 ;;
4370 esac
4371 ;;
4372 *-ibm-*)
4373 case "$F77" in
4374 xlf* | */xlf* | mpxlf* | */mpxlf* )
4375 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4376 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4377 coin_dbg_fflags="-g -C"
4378 ;;
4379 esac
4380 ;;
4381 *-hp-*)
4382 coin_opt_fflags="+O3"
4383 coin_add_fflags="+U77"
4384 coin_dbg_fflags="-C -g"
4385 ;;
4386 *-*-solaris*)
4387 coin_opt_fflags="-O4"
4388 coin_dbg_fflags="-g"
4389 ;;
4390 *-sgi-*)
4391 coin_opt_fflags="-O5 -OPT:Olimit=0"
4392 coin_dbg_fflags="-g"
4393 ;;
4394 esac
4395 fi
4396
4397 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4398 coin_dbg_fflags="-g"
4399 fi
4400
4401 if test -z "$coin_opt_fflags"; then
4402 # Try if -O option works if nothing else is set
4403 FFLAGS=-O
4404 cat >conftest.$ac_ext <<_ACEOF
4405 program main
4406 integer i
4407 end
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_f77_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest$ac_exeext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 coin_opt_fflags="-O"
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 fi
4437 rm -f conftest.err conftest.$ac_objext \
4438 conftest$ac_exeext conftest.$ac_ext
4439 fi
4440
4441 # if PM doesn't want the warning messages, take them out
4442 if test x"$coin_skip_warn_fflags" = xyes; then
4443 coin_warn_fflags=
4444 fi
4445
4446 if test x${DBG_FFLAGS+set} != xset; then
4447 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4448 fi
4449 if test x${OPT_FFLAGS+set} != xset; then
4450 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4451 fi
4452
4453 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4454 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4455
4456 if test "$coin_debug_compile" = "true"; then
4457 FFLAGS="$DBG_FFLAGS"
4458 else
4459 FFLAGS="$OPT_FFLAGS"
4460 fi
4461 else
4462 FFLAGS="$FFLAGS $ADD_FFLAGS"
4463 if test x${DBG_FFLAGS+set} != xset; then
4464 DBG_FFLAGS="$FFLAGS"
4465 fi
4466 if test x${OPT_FFLAGS+set} != xset; then
4467 OPT_FFLAGS="$FFLAGS"
4468 fi
4469 fi
4470
4471 # Try if FFLAGS works
4472 if test "$F77" != "unavailable" ; then
4473 cat >conftest.$ac_ext <<_ACEOF
4474 program main
4475 integer i
4476 end
4477 _ACEOF
4478 rm -f conftest.$ac_objext conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_f77_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest$ac_exeext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 :
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 FFLAGS=
4506 fi
4507 rm -f conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
4509 if test -z "$FFLAGS"; then
4510 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5
4511 echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4512 FFLAGS='-O'
4513 cat >conftest.$ac_ext <<_ACEOF
4514 program main
4515 integer i
4516 end
4517 _ACEOF
4518 rm -f conftest.$ac_objext conftest$ac_exeext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4520 (eval $ac_link) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_f77_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest$ac_exeext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 :
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 FFLAGS=
4546 fi
4547 rm -f conftest.err conftest.$ac_objext \
4548 conftest$ac_exeext conftest.$ac_ext
4549 if test -z "$FFLAGS"; then
4550 { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4551 echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4552 fi
4553 fi
4554 fi
4555
4556 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4557 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4558
4559
4560 if test x"$MPIF77" = x; then :; else
4561 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4562 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4563 F77="$MPIF77"
4564 fi
4565
4566 # correct the LD variable if we use the intel fortran compiler in windows
4567 case $build in
4568 *-cygwin* | *-mingw*)
4569 case "$F77" in
4570 ifort* | */ifort* | IFORT* | */IFORT*)
4571 LD=link
4572 ;;
4573 esac
4574 ;;
4575 esac
4576
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583
4584
4585 # Initialize automake and libtool
4586 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4587 {
4588
4589
4590
4591 # START
4592
4593 coin_disable_shared=no
4594 # Test if force_shared has been set
4595 if test "x" = xforce_shared; then
4596 if test x$enable_shared = xno; then
4597 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4598 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4599 { (exit 1); exit 1; }; }
4600 fi
4601 enable_shared=yes;
4602 else
4603 case $build in
4604 *-cygwin* | *-mingw*)
4605 coin_disable_shared=yes
4606 if test x"$enable_shared" = xyes; then
4607 case "$CC" in
4608 clang* )
4609 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4610 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4611 ;;
4612 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4613 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4614 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4615 ;;
4616 *gcc*)
4617 if test x"$enable_dependency_linking" = xyes; then
4618 coin_disable_shared=no
4619 else
4620 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4621 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4622 fi
4623 ;;
4624 *)
4625 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4626 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4627 ;;
4628 esac
4629 fi
4630 ;;
4631 *-aix*)
4632 coin_disable_shared=yes
4633 platform=AIX
4634 if test x"$enable_shared" = xyes; then
4635 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4636 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4637 fi
4638 ;;
4639 esac
4640 fi
4641 if test x"$coin_disable_shared" = xyes; then
4642 if test x"$enable_shared" = xyes; then
4643 :
4644 else
4645 # we don't disable shared, because it was not selected anyway
4646 coin_disable_shared=no
4647 fi
4648 enable_shared=no
4649 fi
4650 # By default, we only want the shared objects to be compiled
4651 # Check whether --enable-static or --disable-static was given.
4652 if test "${enable_static+set}" = set; then
4653 enableval="$enable_static"
4654 p=${PACKAGE-default}
4655 case $enableval in
4656 yes) enable_static=yes ;;
4657 no) enable_static=no ;;
4658 *)
4659 enable_static=no
4660 # Look at the argument we got. We use all the common list separators.
4661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4662 for pkg in $enableval; do
4663 IFS="$lt_save_ifs"
4664 if test "X$pkg" = "X$p"; then
4665 enable_static=yes
4666 fi
4667 done
4668 IFS="$lt_save_ifs"
4669 ;;
4670 esac
4671 else
4672 enable_static=no
4673 fi;
4674
4675
4676
4677
4678 # Initialize automake
4679 echo "$as_me:$LINENO: checking for egrep" >&5
4680 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4681 if test "${ac_cv_prog_egrep+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4685 then ac_cv_prog_egrep='grep -E'
4686 else ac_cv_prog_egrep='egrep'
4687 fi
4688 fi
4689 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4690 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4691 EGREP=$ac_cv_prog_egrep
4692
4693
4694 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4696 LN_S=$as_ln_s
4697 if test "$LN_S" = "ln -s"; then
4698 echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6
4700 else
4701 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4702 echo "${ECHO_T}no, using $LN_S" >&6
4703 fi
4704
4705 am__api_version="1.9"
4706 # Find a good install program. We prefer a C program (faster),
4707 # so one script is as good as another. But avoid the broken or
4708 # incompatible versions:
4709 # SysV /etc/install, /usr/sbin/install
4710 # SunOS /usr/etc/install
4711 # IRIX /sbin/install
4712 # AIX /bin/install
4713 # AmigaOS /C/install, which installs bootblocks on floppy discs
4714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4717 # OS/2's system install, which has a completely different semantic
4718 # ./install, which can be erroneously created by make from ./install.sh.
4719 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4720 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4721 if test -z "$INSTALL"; then
4722 if test "${ac_cv_path_install+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 # Account for people who put trailing slashes in PATH elements.
4731 case $as_dir/ in
4732 ./ | .// | /cC/* | \
4733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4735 /usr/ucb/* ) ;;
4736 *)
4737 # OSF1 and SCO ODT 3.0 have their own names for install.
4738 # Don't use installbsd from OSF since it installs stuff as root
4739 # by default.
4740 for ac_prog in ginstall scoinst install; do
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4743 if test $ac_prog = install &&
4744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4745 # AIX install. It has an incompatible calling convention.
4746 :
4747 elif test $ac_prog = install &&
4748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4749 # program-specific install script used by HP pwplus--don't use.
4750 :
4751 else
4752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4753 break 3
4754 fi
4755 fi
4756 done
4757 done
4758 ;;
4759 esac
4760 done
4761
4762
4763 fi
4764 if test "${ac_cv_path_install+set}" = set; then
4765 INSTALL=$ac_cv_path_install
4766 else
4767 # As a last resort, use the slow shell script. We don't cache a
4768 # path for INSTALL within a source directory, because that will
4769 # break other packages using the cache if that directory is
4770 # removed, or if the path is relative.
4771 INSTALL=$ac_install_sh
4772 fi
4773 fi
4774 echo "$as_me:$LINENO: result: $INSTALL" >&5
4775 echo "${ECHO_T}$INSTALL" >&6
4776
4777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4778 # It thinks the first close brace ends the variable substitution.
4779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4780
4781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4782
4783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4784
4785 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4786 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4787 # Just in case
4788 sleep 1
4789 echo timestamp > conftest.file
4790 # Do `set' in a subshell so we don't clobber the current shell's
4791 # arguments. Must try -L first in case configure is actually a
4792 # symlink; some systems play weird games with the mod time of symlinks
4793 # (eg FreeBSD returns the mod time of the symlink's containing
4794 # directory).
4795 if (
4796 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4797 if test "$*" = "X"; then
4798 # -L didn't work.
4799 set X `ls -t $srcdir/configure conftest.file`
4800 fi
4801 rm -f conftest.file
4802 if test "$*" != "X $srcdir/configure conftest.file" \
4803 && test "$*" != "X conftest.file $srcdir/configure"; then
4804
4805 # If neither matched, then we have a broken ls. This can happen
4806 # if, for instance, CONFIG_SHELL is bash and it inherits a
4807 # broken ls alias from the environment. This has actually
4808 # happened. Such a system could not be considered "sane".
4809 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4810 alias in your environment" >&5
4811 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4812 alias in your environment" >&2;}
4813 { (exit 1); exit 1; }; }
4814 fi
4815
4816 test "$2" = conftest.file
4817 )
4818 then
4819 # Ok.
4820 :
4821 else
4822 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4823 Check your system clock" >&5
4824 echo "$as_me: error: newly created file is older than distributed files!
4825 Check your system clock" >&2;}
4826 { (exit 1); exit 1; }; }
4827 fi
4828 echo "$as_me:$LINENO: result: yes" >&5
4829 echo "${ECHO_T}yes" >&6
4830 test "$program_prefix" != NONE &&
4831 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4832 # Use a double $ so make ignores it.
4833 test "$program_suffix" != NONE &&
4834 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4835 # Double any \ or $. echo might interpret backslashes.
4836 # By default was `s,x,x', remove it if useless.
4837 cat <<\_ACEOF >conftest.sed
4838 s/[\\$]/&&/g;s/;s,x,x,$//
4839 _ACEOF
4840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4841 rm conftest.sed
4842
4843 # expand $ac_aux_dir to an absolute path
4844 am_aux_dir=`cd $ac_aux_dir && pwd`
4845
4846 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4847 # Use eval to expand $SHELL
4848 if eval "$MISSING --run true"; then
4849 am_missing_run="$MISSING --run "
4850 else
4851 am_missing_run=
4852 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4853 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4854 fi
4855
4856 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4857 # We used to keeping the `.' as first argument, in order to
4858 # allow $(mkdir_p) to be used without argument. As in
4859 # $(mkdir_p) $(somedir)
4860 # where $(somedir) is conditionally defined. However this is wrong
4861 # for two reasons:
4862 # 1. if the package is installed by a user who cannot write `.'
4863 # make install will fail,
4864 # 2. the above comment should most certainly read
4865 # $(mkdir_p) $(DESTDIR)$(somedir)
4866 # so it does not work when $(somedir) is undefined and
4867 # $(DESTDIR) is not.
4868 # To support the latter case, we have to write
4869 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4870 # so the `.' trick is pointless.
4871 mkdir_p='mkdir -p --'
4872 else
4873 # On NextStep and OpenStep, the `mkdir' command does not
4874 # recognize any option. It will interpret all options as
4875 # directories to create, and then abort because `.' already
4876 # exists.
4877 for d in ./-p ./--version;
4878 do
4879 test -d $d && rmdir $d
4880 done
4881 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4882 if test -f "$ac_aux_dir/mkinstalldirs"; then
4883 mkdir_p='$(mkinstalldirs)'
4884 else
4885 mkdir_p='$(install_sh) -d'
4886 fi
4887 fi
4888
4889 for ac_prog in gawk mawk nawk awk
4890 do
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4895 if test "${ac_cv_prog_AWK+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 if test -n "$AWK"; then
4899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_AWK="$ac_prog"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912 done
4913 done
4914
4915 fi
4916 fi
4917 AWK=$ac_cv_prog_AWK
4918 if test -n "$AWK"; then
4919 echo "$as_me:$LINENO: result: $AWK" >&5
4920 echo "${ECHO_T}$AWK" >&6
4921 else
4922 echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4924 fi
4925
4926 test -n "$AWK" && break
4927 done
4928
4929 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4930 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4931 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4932 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.make <<\_ACEOF
4936 all:
4937 @echo 'ac_maketemp="$(MAKE)"'
4938 _ACEOF
4939 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4940 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4941 if test -n "$ac_maketemp"; then
4942 eval ac_cv_prog_make_${ac_make}_set=yes
4943 else
4944 eval ac_cv_prog_make_${ac_make}_set=no
4945 fi
4946 rm -f conftest.make
4947 fi
4948 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4949 echo "$as_me:$LINENO: result: yes" >&5
4950 echo "${ECHO_T}yes" >&6
4951 SET_MAKE=
4952 else
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 SET_MAKE="MAKE=${MAKE-make}"
4956 fi
4957
4958 rm -rf .tst 2>/dev/null
4959 mkdir .tst 2>/dev/null
4960 if test -d .tst; then
4961 am__leading_dot=.
4962 else
4963 am__leading_dot=_
4964 fi
4965 rmdir .tst 2>/dev/null
4966
4967 DEPDIR="${am__leading_dot}deps"
4968
4969 ac_config_commands="$ac_config_commands depfiles"
4970
4971
4972 am_make=${MAKE-make}
4973 cat > confinc << 'END'
4974 am__doit:
4975 @echo done
4976 .PHONY: am__doit
4977 END
4978 # If we don't find an include directive, just comment out the code.
4979 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4980 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4981 am__include="#"
4982 am__quote=
4983 _am_result=none
4984 # First try GNU make style include.
4985 echo "include confinc" > confmf
4986 # We grep out `Entering directory' and `Leaving directory'
4987 # messages which can occur if `w' ends up in MAKEFLAGS.
4988 # In particular we don't look at `^make:' because GNU make might
4989 # be invoked under some other name (usually "gmake"), in which
4990 # case it prints its new name instead of `make'.
4991 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4992 am__include=include
4993 am__quote=
4994 _am_result=GNU
4995 fi
4996 # Now try BSD make style include.
4997 if test "$am__include" = "#"; then
4998 echo '.include "confinc"' > confmf
4999 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5000 am__include=.include
5001 am__quote="\""
5002 _am_result=BSD
5003 fi
5004 fi
5005
5006
5007 echo "$as_me:$LINENO: result: $_am_result" >&5
5008 echo "${ECHO_T}$_am_result" >&6
5009 rm -f confinc confmf
5010
5011 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5012 if test "${enable_dependency_tracking+set}" = set; then
5013 enableval="$enable_dependency_tracking"
5014
5015 fi;
5016 if test "x$enable_dependency_tracking" != xno; then
5017 am_depcomp="$ac_aux_dir/depcomp"
5018 AMDEPBACKSLASH='\'
5019 fi
5020
5021
5022 if test "x$enable_dependency_tracking" != xno; then
5023 AMDEP_TRUE=
5024 AMDEP_FALSE='#'
5025 else
5026 AMDEP_TRUE='#'
5027 AMDEP_FALSE=
5028 fi
5029
5030
5031
5032
5033
5034
5035 # AC_MSG_NOTICE([Beginning automake initialisation.])
5036 # Stuff for automake
5037 # test to see if srcdir already configured
5038 if test "`cd $srcdir && pwd`" != "`pwd`" &&
5039 test -f $srcdir/config.status; then
5040 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5041 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5042 { (exit 1); exit 1; }; }
5043 fi
5044
5045 # test whether we have cygpath
5046 if test -z "$CYGPATH_W"; then
5047 if (cygpath --version) >/dev/null 2>/dev/null; then
5048 CYGPATH_W='cygpath -w'
5049 else
5050 CYGPATH_W=echo
5051 fi
5052 fi
5053
5054
5055 # Define the identity of the package.
5056 PACKAGE='vol'
5057 VERSION='1.5.4'
5058
5059
5060 cat >>confdefs.h <<_ACEOF
5061 #define PACKAGE "$PACKAGE"
5062 _ACEOF
5063
5064
5065 cat >>confdefs.h <<_ACEOF
5066 #define VERSION "$VERSION"
5067 _ACEOF
5068
5069 # Some tools Automake needs.
5070
5071 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5072
5073
5074 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5075
5076
5077 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5078
5079
5080 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5081
5082
5083 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5084
5085 install_sh=${install_sh-"$am_aux_dir/install-sh"}
5086
5087 # Installed binaries are usually stripped using `strip' when the user
5088 # run `make install-strip'. However `strip' might not be the right
5089 # tool to use in cross-compilation environments, therefore Automake
5090 # will honor the `STRIP' environment variable to overrule this program.
5091 if test "$cross_compiling" != no; then
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}strip; ac_word=$2
5095 echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097 if test "${ac_cv_prog_STRIP+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 if test -n "$STRIP"; then
5101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116
5117 fi
5118 fi
5119 STRIP=$ac_cv_prog_STRIP
5120 if test -n "$STRIP"; then
5121 echo "$as_me:$LINENO: result: $STRIP" >&5
5122 echo "${ECHO_T}$STRIP" >&6
5123 else
5124 echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6
5126 fi
5127
5128 fi
5129 if test -z "$ac_cv_prog_STRIP"; then
5130 ac_ct_STRIP=$STRIP
5131 # Extract the first word of "strip", so it can be a program name with args.
5132 set dummy strip; ac_word=$2
5133 echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 if test -n "$ac_ct_STRIP"; then
5139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_STRIP="strip"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152 done
5153 done
5154
5155 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5156 fi
5157 fi
5158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5159 if test -n "$ac_ct_STRIP"; then
5160 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5161 echo "${ECHO_T}$ac_ct_STRIP" >&6
5162 else
5163 echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5165 fi
5166
5167 STRIP=$ac_ct_STRIP
5168 else
5169 STRIP="$ac_cv_prog_STRIP"
5170 fi
5171
5172 fi
5173 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5174
5175 # We need awk for the "check" target. The system "awk" is bad on
5176 # some platforms.
5177 # Always define AMTAR for backward compatibility.
5178
5179 AMTAR=${AMTAR-"${am_missing_run}tar"}
5180
5181 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5182
5183
5184
5185
5186 depcc="$CC" am_compiler_list=
5187
5188 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5189 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5190 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5194 # We make a subdir and do the tests there. Otherwise we can end up
5195 # making bogus files that we don't know about and never remove. For
5196 # instance it was reported that on HP-UX the gcc test will end up
5197 # making a dummy file named `D' -- because `-MD' means `put the output
5198 # in D'.
5199 mkdir conftest.dir
5200 # Copy depcomp to subdir because otherwise we won't find it if we're
5201 # using a relative directory.
5202 cp "$am_depcomp" conftest.dir
5203 cd conftest.dir
5204 # We will build objects and dependencies in a subdirectory because
5205 # it helps to detect inapplicable dependency modes. For instance
5206 # both Tru64's cc and ICC support -MD to output dependencies as a
5207 # side effect of compilation, but ICC will put the dependencies in
5208 # the current directory while Tru64 will put them in the object
5209 # directory.
5210 mkdir sub
5211
5212 am_cv_CC_dependencies_compiler_type=none
5213 if test "$am_compiler_list" = ""; then
5214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5215 fi
5216 for depmode in $am_compiler_list; do
5217 # Setup a source with many dependencies, because some compilers
5218 # like to wrap large dependency lists on column 80 (with \), and
5219 # we should not choose a depcomp mode which is confused by this.
5220 #
5221 # We need to recreate these files for each test, as the compiler may
5222 # overwrite some of them when testing with obscure command lines.
5223 # This happens at least with the AIX C compiler.
5224 : > sub/conftest.c
5225 for i in 1 2 3 4 5 6; do
5226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5227 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5228 # Solaris 8's {/usr,}/bin/sh.
5229 touch sub/conftst$i.h
5230 done
5231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5232
5233 case $depmode in
5234 nosideeffect)
5235 # after this tag, mechanisms are not by side-effect, so they'll
5236 # only be used when explicitly requested
5237 if test "x$enable_dependency_tracking" = xyes; then
5238 continue
5239 else
5240 break
5241 fi
5242 ;;
5243 none) break ;;
5244 esac
5245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5246 # mode. It turns out that the SunPro C++ compiler does not properly
5247 # handle `-M -o', and we need to detect this.
5248 if depmode=$depmode \
5249 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5252 >/dev/null 2>conftest.err &&
5253 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5254 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5255 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5256 # icc doesn't choke on unknown options, it will just issue warnings
5257 # or remarks (even with -Werror). So we grep stderr for any message
5258 # that says an option was ignored or not supported.
5259 # When given -MP, icc 7.0 and 7.1 complain thusly:
5260 # icc: Command line warning: ignoring option '-M'; no argument required
5261 # The diagnosis changed in icc 8.0:
5262 # icc: Command line remark: option '-MP' not supported
5263 if (grep 'ignoring option' conftest.err ||
5264 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5265 am_cv_CC_dependencies_compiler_type=$depmode
5266 break
5267 fi
5268 fi
5269 done
5270
5271 cd ..
5272 rm -rf conftest.dir
5273 else
5274 am_cv_CC_dependencies_compiler_type=none
5275 fi
5276
5277 fi
5278 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5279 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5280 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5281
5282
5283
5284 if
5285 test "x$enable_dependency_tracking" != xno \
5286 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5287 am__fastdepCC_TRUE=
5288 am__fastdepCC_FALSE='#'
5289 else
5290 am__fastdepCC_TRUE='#'
5291 am__fastdepCC_FALSE=
5292 fi
5293
5294
5295 depcc="$CXX" am_compiler_list=
5296
5297 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5298 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5299 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5303 # We make a subdir and do the tests there. Otherwise we can end up
5304 # making bogus files that we don't know about and never remove. For
5305 # instance it was reported that on HP-UX the gcc test will end up
5306 # making a dummy file named `D' -- because `-MD' means `put the output
5307 # in D'.
5308 mkdir conftest.dir
5309 # Copy depcomp to subdir because otherwise we won't find it if we're
5310 # using a relative directory.
5311 cp "$am_depcomp" conftest.dir
5312 cd conftest.dir
5313 # We will build objects and dependencies in a subdirectory because
5314 # it helps to detect inapplicable dependency modes. For instance
5315 # both Tru64's cc and ICC support -MD to output dependencies as a
5316 # side effect of compilation, but ICC will put the dependencies in
5317 # the current directory while Tru64 will put them in the object
5318 # directory.
5319 mkdir sub
5320
5321 am_cv_CXX_dependencies_compiler_type=none
5322 if test "$am_compiler_list" = ""; then
5323 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5324 fi
5325 for depmode in $am_compiler_list; do
5326 # Setup a source with many dependencies, because some compilers
5327 # like to wrap large dependency lists on column 80 (with \), and
5328 # we should not choose a depcomp mode which is confused by this.
5329 #
5330 # We need to recreate these files for each test, as the compiler may
5331 # overwrite some of them when testing with obscure command lines.
5332 # This happens at least with the AIX C compiler.
5333 : > sub/conftest.c
5334 for i in 1 2 3 4 5 6; do
5335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5337 # Solaris 8's {/usr,}/bin/sh.
5338 touch sub/conftst$i.h
5339 done
5340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5341
5342 case $depmode in
5343 nosideeffect)
5344 # after this tag, mechanisms are not by side-effect, so they'll
5345 # only be used when explicitly requested
5346 if test "x$enable_dependency_tracking" = xyes; then
5347 continue
5348 else
5349 break
5350 fi
5351 ;;
5352 none) break ;;
5353 esac
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this.
5357 if depmode=$depmode \
5358 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5359 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5361 >/dev/null 2>conftest.err &&
5362 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5363 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5364 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5365 # icc doesn't choke on unknown options, it will just issue warnings
5366 # or remarks (even with -Werror). So we grep stderr for any message
5367 # that says an option was ignored or not supported.
5368 # When given -MP, icc 7.0 and 7.1 complain thusly:
5369 # icc: Command line warning: ignoring option '-M'; no argument required
5370 # The diagnosis changed in icc 8.0:
5371 # icc: Command line remark: option '-MP' not supported
5372 if (grep 'ignoring option' conftest.err ||
5373 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5374 am_cv_CXX_dependencies_compiler_type=$depmode
5375 break
5376 fi
5377 fi
5378 done
5379
5380 cd ..
5381 rm -rf conftest.dir
5382 else
5383 am_cv_CXX_dependencies_compiler_type=none
5384 fi
5385
5386 fi
5387 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5388 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5389 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5390
5391
5392
5393 if
5394 test "x$enable_dependency_tracking" != xno \
5395 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5396 am__fastdepCXX_TRUE=
5397 am__fastdepCXX_FALSE='#'
5398 else
5399 am__fastdepCXX_TRUE='#'
5400 am__fastdepCXX_FALSE=
5401 fi
5402
5403
5404
5405 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5406 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5407 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5408 if test "${enable_maintainer_mode+set}" = set; then
5409 enableval="$enable_maintainer_mode"
5410 USE_MAINTAINER_MODE=$enableval
5411 else
5412 USE_MAINTAINER_MODE=no
5413 fi;
5414 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5415 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5416
5417
5418 if test $USE_MAINTAINER_MODE = yes; then
5419 MAINTAINER_MODE_TRUE=
5420 MAINTAINER_MODE_FALSE='#'
5421 else
5422 MAINTAINER_MODE_TRUE='#'
5423 MAINTAINER_MODE_FALSE=
5424 fi
5425
5426 MAINT=$MAINTAINER_MODE_TRUE
5427
5428
5429
5430 coin_have_externals=no
5431 if test "$enable_maintainer_mode" = yes; then
5432
5433 # If maintainer mode is chosen, we make sure that the correct versions
5434 # of the tools are used, and that we know where libtool.m4 is (to
5435 # recreate acinclude.m4)
5436
5437
5438 LIBTOOLM4=
5439 # Normally, $HOME
5440 AUTOTOOLS_DFLT=$HOME
5441
5442 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5443 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5444 if test "${ac_cv_use_correct_autotools+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 ac_cv_use_correct_autotools=check
5448 fi
5449 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5450 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5451
5452 if test $ac_cv_use_correct_autotools = check; then
5453 ac_cv_use_correct_autotools=yes
5454 # Check if we have autoconf
5455 # Extract the first word of "autoconf", so it can be a program name with args.
5456 set dummy autoconf; ac_word=$2
5457 echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459 if test "${ac_cv_prog_have_autoconf+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 if test -n "$have_autoconf"; then
5463 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_have_autoconf="yes"
5473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5478
5479 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5480 fi
5481 fi
5482 have_autoconf=$ac_cv_prog_have_autoconf
5483 if test -n "$have_autoconf"; then
5484 echo "$as_me:$LINENO: result: $have_autoconf" >&5
5485 echo "${ECHO_T}$have_autoconf" >&6
5486 else
5487 echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5489 fi
5490
5491 if test $have_autoconf = no; then
5492 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5493 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5494 { (exit 1); exit 1; }; }
5495 fi
5496
5497 # Check whether autoconf is the correct version
5498 correct_version='2.59'
5499 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5500 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5501 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5502 autoconf --version > confauto.out 2>&1
5503 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5504 echo "$as_me:$LINENO: result: yes" >&5
5505 echo "${ECHO_T}yes" >&6
5506 else
5507 rm -f confauto.out
5508 echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5510 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5511 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5512 { (exit 1); exit 1; }; }
5513 fi
5514 rm -f confauto.out
5515
5516 # Check if the executable autoconf is picked up from the correct location
5517 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5518 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5519 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5520 autoconf_dir=`cd $autoconf_dir; pwd`
5521 if test x$AUTOTOOLS_DIR = x; then
5522 want_dir=$AUTOTOOLS_DFLT/bin
5523 else
5524 want_dir=$AUTOTOOLS_DIR/bin
5525 fi
5526 if test $autoconf_dir = `cd $want_dir; pwd`; then
5527 echo "$as_me:$LINENO: result: yes" >&5
5528 echo "${ECHO_T}yes" >&6
5529 else
5530 rm -f confauto.out
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5534 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5535 { (exit 1); exit 1; }; }
5536 fi
5537
5538 # Check if we have automake
5539 # Extract the first word of "automake", so it can be a program name with args.
5540 set dummy automake; ac_word=$2
5541 echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543 if test "${ac_cv_prog_have_automake+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 if test -n "$have_automake"; then
5547 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_have_automake="yes"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562
5563 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5564 fi
5565 fi
5566 have_automake=$ac_cv_prog_have_automake
5567 if test -n "$have_automake"; then
5568 echo "$as_me:$LINENO: result: $have_automake" >&5
5569 echo "${ECHO_T}$have_automake" >&6
5570 else
5571 echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6
5573 fi
5574
5575 if test $have_automake = no; then
5576 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5577 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5578 { (exit 1); exit 1; }; }
5579 fi
5580
5581 # Check whether automake is the correct version
5582 correct_version='1.9.6'
5583 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5584 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5585 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5586 automake --version > confauto.out 2>&1
5587 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5588 echo "$as_me:$LINENO: result: yes" >&5
5589 echo "${ECHO_T}yes" >&6
5590 else
5591 rm -f confauto.out
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5595 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5596 { (exit 1); exit 1; }; }
5597 fi
5598 rm -f confauto.out
5599
5600 # Check if the executable automake is picked up from the correct location
5601 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5602 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5603 automake_dir=`which automake | sed -e 's=/automake=='`
5604 automake_dir=`cd $automake_dir; pwd`
5605 if test x$AUTOTOOLS_DIR = x; then
5606 want_dir=$AUTOTOOLS_DFLT/bin
5607 else
5608 want_dir=$AUTOTOOLS_DIR/bin
5609 fi
5610 if test $automake_dir = `cd $want_dir; pwd`; then
5611 echo "$as_me:$LINENO: result: yes" >&5
5612 echo "${ECHO_T}yes" >&6
5613 else
5614 rm -f confauto.out
5615 echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5617 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5618 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5619 { (exit 1); exit 1; }; }
5620 fi
5621
5622 # Check if this is the correct version of libtool (with escaped dots)
5623 if test x$AUTOTOOLS_DIR = x; then
5624 want_dir=$AUTOTOOLS_DFLT/share
5625 else
5626 want_dir=$AUTOTOOLS_DIR/share
5627 fi
5628 correct_version='1.5.22'
5629 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5630 if test -r $want_dir/libtool/ltmain.sh; then
5631 have_ltmain=yes
5632 :
5633 else
5634 have_ltmain=no
5635 :
5636 fi
5637
5638 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5639 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5640 if test $have_ltmain = yes; then
5641 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643 echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5647 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5648 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5649 { (exit 1); exit 1; }; }
5650 fi
5651 else
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5655 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5656 { (exit 1); exit 1; }; }
5657 fi
5658 fi
5659
5660 # Check if we can find the libtool file
5661 if test x$AUTOTOOLS_DIR = x; then
5662 want_dir=$AUTOTOOLS_DFLT/share
5663 else
5664 want_dir=$AUTOTOOLS_DIR/share
5665 fi
5666 if test -r $want_dir/aclocal/libtool.m4; then
5667 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5668 :
5669 else
5670 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5671 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5672 { (exit 1); exit 1; }; }
5673 :
5674 fi
5675
5676
5677 # Check if we have an Dependencies file
5678 if test -r $srcdir/Dependencies; then
5679 coin_have_externals=yes
5680 fi
5681 # Check if subversion is installed and understands https
5682 # Extract the first word of "svn", so it can be a program name with args.
5683 set dummy svn; ac_word=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_have_svn+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test -n "$have_svn"; then
5690 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_have_svn="yes"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5702 fi
5703 done
5704 done
5705
5706 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5707 fi
5708 fi
5709 have_svn=$ac_cv_prog_have_svn
5710 if test -n "$have_svn"; then
5711 echo "$as_me:$LINENO: result: $have_svn" >&5
5712 echo "${ECHO_T}$have_svn" >&6
5713 else
5714 echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5716 fi
5717
5718 if test x$have_svn = xyes; then
5719 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5720 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5721 if test "${ac_cv_svn_understands_https+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 svn --version > confauto.out 2>&1
5725 if $EGREP https confauto.out >/dev/null 2>&1; then
5726 ac_cv_svn_understands_https=yes
5727 else
5728 ac_cv_svn_understands_https=no
5729 have_svn=no
5730 ac_cv_prog_have_svn=no
5731 fi
5732 rm -f confauto.out
5733 fi
5734 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5735 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5736 fi
5737
5738 # Find the location of the BuildTools directory
5739 BUILDTOOLSDIR=
5740 if test -r $srcdir/BuildTools/coin.m4; then
5741 BUILDTOOLSDIR=$srcdir/BuildTools
5742 else
5743 if test -r $srcdir/../BuildTools/coin.m4; then
5744 BUILDTOOLSDIR=$srcdir/../BuildTools
5745 else
5746 if test -r $srcdir/../../BuildTools/coin.m4; then
5747 BUILDTOOLSDIR=$srcdir/../../BuildTools
5748 else
5749 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5750 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5751 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5752 fi
5753 fi
5754 fi
5755
5756
5757 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5758 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5759 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5760 fi
5761
5762 # The following variable is set to the name of the directory where
5763 # the autotool scripts are located
5764
5765 AUX_DIR=$ac_aux_dir
5766 fi
5767
5768 # helpful variable for the base directory of this package
5769 abs_source_dir=`cd $srcdir; pwd`
5770
5771
5772 # Stuff for example Makefiles
5773 if test x$prefix = xNONE; then
5774 full_prefix=$ac_default_prefix
5775 else
5776 full_prefix=$prefix
5777 fi
5778 full_prefix=`cd $full_prefix ; pwd`
5779
5780 abs_lib_dir=$full_prefix/lib
5781
5782 abs_include_dir=$full_prefix/include
5783
5784 abs_bin_dir=$full_prefix/bin
5785
5786
5787
5788 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5789 HAVE_EXTERNALS_TRUE=
5790 HAVE_EXTERNALS_FALSE='#'
5791 else
5792 HAVE_EXTERNALS_TRUE='#'
5793 HAVE_EXTERNALS_FALSE=
5794 fi
5795
5796
5797 # AC_MSG_NOTICE([End automake initialisation.])
5798
5799
5800
5801 LIBTOOL=
5802 if test -f ../libtool; then
5803 coin_config_dir=..
5804 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5805 fi
5806 if test "x$LIBTOOL" = x; then
5807 if test -f ../../libtool; then
5808 coin_config_dir=../..
5809 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5810 fi
5811 fi
5812
5813 if test "x$LIBTOOL" = x; then
5814 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5815 # Stuff for libtool
5816 # Check whether --enable-shared or --disable-shared was given.
5817 if test "${enable_shared+set}" = set; then
5818 enableval="$enable_shared"
5819 p=${PACKAGE-default}
5820 case $enableval in
5821 yes) enable_shared=yes ;;
5822 no) enable_shared=no ;;
5823 *)
5824 enable_shared=no
5825 # Look at the argument we got. We use all the common list separators.
5826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5827 for pkg in $enableval; do
5828 IFS="$lt_save_ifs"
5829 if test "X$pkg" = "X$p"; then
5830 enable_shared=yes
5831 fi
5832 done
5833 IFS="$lt_save_ifs"
5834 ;;
5835 esac
5836 else
5837 enable_shared=yes
5838 fi;
5839
5840 # Check whether --enable-fast-install or --disable-fast-install was given.
5841 if test "${enable_fast_install+set}" = set; then
5842 enableval="$enable_fast_install"
5843 p=${PACKAGE-default}
5844 case $enableval in
5845 yes) enable_fast_install=yes ;;
5846 no) enable_fast_install=no ;;
5847 *)
5848 enable_fast_install=no
5849 # Look at the argument we got. We use all the common list separators.
5850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5851 for pkg in $enableval; do
5852 IFS="$lt_save_ifs"
5853 if test "X$pkg" = "X$p"; then
5854 enable_fast_install=yes
5855 fi
5856 done
5857 IFS="$lt_save_ifs"
5858 ;;
5859 esac
5860 else
5861 enable_fast_install=yes
5862 fi;
5863
5864 echo "$as_me:$LINENO: checking host system type" >&5
5865 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5866 if test "${ac_cv_host+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 ac_cv_host_alias=$host_alias
5870 test -z "$ac_cv_host_alias" &&
5871 ac_cv_host_alias=$ac_cv_build_alias
5872 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5873 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5874 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5875 { (exit 1); exit 1; }; }
5876
5877 fi
5878 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5879 echo "${ECHO_T}$ac_cv_host" >&6
5880 host=$ac_cv_host
5881 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5882 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5883 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5884
5885
5886 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5887 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5888 if test "${lt_cv_path_SED+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 # Loop through the user's path and test for sed and gsed.
5892 # Then use that list of sed's as ones to test for truncation.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for lt_ac_prog in sed gsed; do
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5901 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5902 fi
5903 done
5904 done
5905 done
5906 lt_ac_max=0
5907 lt_ac_count=0
5908 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5909 # along with /bin/sed that truncates output.
5910 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5911 test ! -f $lt_ac_sed && continue
5912 cat /dev/null > conftest.in
5913 lt_ac_count=0
5914 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5915 # Check for GNU sed and select it if it is found.
5916 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5917 lt_cv_path_SED=$lt_ac_sed
5918 break
5919 fi
5920 while true; do
5921 cat conftest.in conftest.in >conftest.tmp
5922 mv conftest.tmp conftest.in
5923 cp conftest.in conftest.nl
5924 echo >>conftest.nl
5925 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5926 cmp -s conftest.out conftest.nl || break
5927 # 10000 chars as input seems more than enough
5928 test $lt_ac_count -gt 10 && break
5929 lt_ac_count=`expr $lt_ac_count + 1`
5930 if test $lt_ac_count -gt $lt_ac_max; then
5931 lt_ac_max=$lt_ac_count
5932 lt_cv_path_SED=$lt_ac_sed
5933 fi
5934 done
5935 done
5936
5937 fi
5938
5939 SED=$lt_cv_path_SED
5940 echo "$as_me:$LINENO: result: $SED" >&5
5941 echo "${ECHO_T}$SED" >&6
5942
5943
5944 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5945 if test "${with_gnu_ld+set}" = set; then
5946 withval="$with_gnu_ld"
5947 test "$withval" = no || with_gnu_ld=yes
5948 else
5949 with_gnu_ld=no
5950 fi;
5951 ac_prog=ld
5952 if test "$GCC" = yes; then
5953 # Check if gcc -print-prog-name=ld gives a path.
5954 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5955 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5956 case $host in
5957 *-*-mingw*)
5958 # gcc leaves a trailing carriage return which upsets mingw
5959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5960 *)
5961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5962 esac
5963 case $ac_prog in
5964 # Accept absolute paths.
5965 [\\/]* | ?:[\\/]*)
5966 re_direlt='/[^/][^/]*/\.\./'
5967 # Canonicalize the pathname of ld
5968 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5969 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5970 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5971 done
5972 test -z "$LD" && LD="$ac_prog"
5973 ;;
5974 "")
5975 # If it fails, then pretend we aren't using GCC.
5976 ac_prog=ld
5977 ;;
5978 *)
5979 # If it is relative, then search for the first ld in PATH.
5980 with_gnu_ld=unknown
5981 ;;
5982 esac
5983 elif test "$with_gnu_ld" = yes; then
5984 echo "$as_me:$LINENO: checking for GNU ld" >&5
5985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5986 else
5987 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5988 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5989 fi
5990 if test "${lt_cv_path_LD+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 if test -z "$LD"; then
5994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5995 for ac_dir in $PATH; do
5996 IFS="$lt_save_ifs"
5997 test -z "$ac_dir" && ac_dir=.
5998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5999 lt_cv_path_LD="$ac_dir/$ac_prog"
6000 # Check to see if the program is GNU ld. I'd rather use --version,
6001 # but apparently some variants of GNU ld only accept -v.
6002 # Break only if it was the GNU/non-GNU ld that we prefer.
6003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6004 *GNU* | *'with BFD'*)
6005 test "$with_gnu_ld" != no && break
6006 ;;
6007 *)
6008 test "$with_gnu_ld" != yes && break
6009 ;;
6010 esac
6011 fi
6012 done
6013 IFS="$lt_save_ifs"
6014 else
6015 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6016 fi
6017 fi
6018
6019 LD="$lt_cv_path_LD"
6020 if test -n "$LD"; then
6021 echo "$as_me:$LINENO: result: $LD" >&5
6022 echo "${ECHO_T}$LD" >&6
6023 else
6024 echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6026 fi
6027 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6028 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6029 { (exit 1); exit 1; }; }
6030 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6031 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6032 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6036 case `$LD -v 2>&1 </dev/null` in
6037 *GNU* | *'with BFD'*)
6038 lt_cv_prog_gnu_ld=yes
6039 ;;
6040 *)
6041 lt_cv_prog_gnu_ld=no
6042 ;;
6043 esac
6044 fi
6045 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6046 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6047 with_gnu_ld=$lt_cv_prog_gnu_ld
6048
6049
6050 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6051 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6052 if test "${lt_cv_ld_reload_flag+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 lt_cv_ld_reload_flag='-r'
6056 fi
6057 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6058 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6059 reload_flag=$lt_cv_ld_reload_flag
6060 case $reload_flag in
6061 "" | " "*) ;;
6062 *) reload_flag=" $reload_flag" ;;
6063 esac
6064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6065 case $host_os in
6066 darwin*)
6067 if test "$GCC" = yes; then
6068 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6069 else
6070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6071 fi
6072 ;;
6073 esac
6074
6075 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6076 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6077 if test "${lt_cv_path_NM+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 if test -n "$NM"; then
6081 # Let the user override the test.
6082 lt_cv_path_NM="$NM"
6083 else
6084 lt_nm_to_check="${ac_tool_prefix}nm"
6085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6086 lt_nm_to_check="$lt_nm_to_check nm"
6087 fi
6088 for lt_tmp_nm in $lt_nm_to_check; do
6089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6090 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6091 IFS="$lt_save_ifs"
6092 test -z "$ac_dir" && ac_dir=.
6093 tmp_nm="$ac_dir/$lt_tmp_nm"
6094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6095 # Check to see if the nm accepts a BSD-compat flag.
6096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6097 # nm: unknown option "B" ignored
6098 # Tru64's nm complains that /dev/null is an invalid object file
6099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6100 */dev/null* | *'Invalid file or object type'*)
6101 lt_cv_path_NM="$tmp_nm -B"
6102 break
6103 ;;
6104 *)
6105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6106 */dev/null*)
6107 lt_cv_path_NM="$tmp_nm -p"
6108 break
6109 ;;
6110 *)
6111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6112 continue # so that we can try to find one that supports BSD flags
6113 ;;
6114 esac
6115 ;;
6116 esac
6117 fi
6118 done
6119 IFS="$lt_save_ifs"
6120 done
6121 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6122 fi
6123 fi
6124 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6125 echo "${ECHO_T}$lt_cv_path_NM" >&6
6126 NM="$lt_cv_path_NM"
6127
6128 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6129 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6130 if test "${lt_cv_deplibs_check_method+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 lt_cv_file_magic_cmd='$MAGIC_CMD'
6134 lt_cv_file_magic_test_file=
6135 lt_cv_deplibs_check_method='unknown'
6136 # Need to set the preceding variable on all platforms that support
6137 # interlibrary dependencies.
6138 # 'none' -- dependencies not supported.
6139 # `unknown' -- same as none, but documents that we really don't know.
6140 # 'pass_all' -- all dependencies passed with no checks.
6141 # 'test_compile' -- check by making test program.
6142 # 'file_magic [[regex]]' -- check by looking for files in library path
6143 # which responds to the $file_magic_cmd with a given extended regex.
6144 # If you have `file' or equivalent on your system and you're not sure
6145 # whether `pass_all' will *always* work, you probably want this one.
6146
6147 case $host_os in
6148 aix4* | aix5*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151
6152 beos*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155
6156 bsdi[45]*)
6157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6158 lt_cv_file_magic_cmd='/usr/bin/file -L'
6159 lt_cv_file_magic_test_file=/shlib/libc.so
6160 ;;
6161
6162 cygwin*)
6163 # func_win32_libid is a shell function defined in ltmain.sh
6164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6165 lt_cv_file_magic_cmd='func_win32_libid'
6166 ;;
6167
6168 mingw* | pw32*)
6169 # Base MSYS/MinGW do not provide the 'file' command needed by
6170 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6171 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6172 lt_cv_file_magic_cmd='$OBJDUMP -f'
6173 ;;
6174
6175 darwin* | rhapsody*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
6179 freebsd* | kfreebsd*-gnu | dragonfly*)
6180 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6181 case $host_cpu in
6182 i*86 )
6183 # Not sure whether the presence of OpenBSD here was a mistake.
6184 # Let's accept both of them until this is cleared up.
6185 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6186 lt_cv_file_magic_cmd=/usr/bin/file
6187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6188 ;;
6189 esac
6190 else
6191 lt_cv_deplibs_check_method=pass_all
6192 fi
6193 ;;
6194
6195 gnu*)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198
6199 hpux10.20* | hpux11*)
6200 lt_cv_file_magic_cmd=/usr/bin/file
6201 case $host_cpu in
6202 ia64*)
6203 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6204 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6205 ;;
6206 hppa*64*)
6207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6208 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6209 ;;
6210 *)
6211 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6212 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6213 ;;
6214 esac
6215 ;;
6216
6217 interix3*)
6218 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6220 ;;
6221
6222 irix5* | irix6* | nonstopux*)
6223 case $LD in
6224 *-32|*"-32 ") libmagic=32-bit;;
6225 *-n32|*"-n32 ") libmagic=N32;;
6226 *-64|*"-64 ") libmagic=64-bit;;
6227 *) libmagic=never-match;;
6228 esac
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231
6232 # This must be Linux ELF.
6233 linux*)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236
6237 netbsd*)
6238 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240 else
6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6242 fi
6243 ;;
6244
6245 newos6*)
6246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6247 lt_cv_file_magic_cmd=/usr/bin/file
6248 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6249 ;;
6250
6251 nto-qnx*)
6252 lt_cv_deplibs_check_method=unknown
6253 ;;
6254
6255 openbsd*)
6256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6258 else
6259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6260 fi
6261 ;;
6262
6263 osf3* | osf4* | osf5*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 solaris*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271 sysv4 | sysv4.3*)
6272 case $host_vendor in
6273 motorola)
6274 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]'
6275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6276 ;;
6277 ncr)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280 sequent)
6281 lt_cv_file_magic_cmd='/bin/file'
6282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6283 ;;
6284 sni)
6285 lt_cv_file_magic_cmd='/bin/file'
6286 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6287 lt_cv_file_magic_test_file=/lib/libc.so
6288 ;;
6289 siemens)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
6292 pc)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295 esac
6296 ;;
6297
6298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6299 lt_cv_deplibs_check_method=pass_all
6300 ;;
6301 esac
6302
6303 fi
6304 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6305 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6306 file_magic_cmd=$lt_cv_file_magic_cmd
6307 deplibs_check_method=$lt_cv_deplibs_check_method
6308 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6309
6310
6311
6312
6313 # If no C compiler was specified, use CC.
6314 LTCC=${LTCC-"$CC"}
6315
6316 # If no C compiler flags were specified, use CFLAGS.
6317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6318
6319 # Allow CC to be a program name with arguments.
6320 compiler=$CC
6321
6322 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6323 if test "${enable_libtool_lock+set}" = set; then
6324 enableval="$enable_libtool_lock"
6325
6326 fi;
6327 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6328
6329 # Some flags need to be propagated to the compiler or linker for good
6330 # libtool support.
6331 case $host in
6332 ia64-*-hpux*)
6333 # Find out which ABI we are using.
6334 echo 'int i;' > conftest.$ac_ext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; then
6340 case `/usr/bin/file conftest.$ac_objext` in
6341 *ELF-32*)
6342 HPUX_IA64_MODE="32"
6343 ;;
6344 *ELF-64*)
6345 HPUX_IA64_MODE="64"
6346 ;;
6347 esac
6348 fi
6349 rm -rf conftest*
6350 ;;
6351 *-*-irix6*)
6352 # Find out which ABI we are using.
6353 echo '#line 6353 "configure"' > conftest.$ac_ext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; then
6359 if test "$lt_cv_prog_gnu_ld" = yes; then
6360 case `/usr/bin/file conftest.$ac_objext` in
6361 *32-bit*)
6362 LD="${LD-ld} -melf32bsmip"
6363 ;;
6364 *N32*)
6365 LD="${LD-ld} -melf32bmipn32"
6366 ;;
6367 *64-bit*)
6368 LD="${LD-ld} -melf64bmip"
6369 ;;
6370 esac
6371 else
6372 case `/usr/bin/file conftest.$ac_objext` in
6373 *32-bit*)
6374 LD="${LD-ld} -32"
6375 ;;
6376 *N32*)
6377 LD="${LD-ld} -n32"
6378 ;;
6379 *64-bit*)
6380 LD="${LD-ld} -64"
6381 ;;
6382 esac
6383 fi
6384 fi
6385 rm -rf conftest*
6386 ;;
6387
6388 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6389 # Find out which ABI we are using.
6390 echo 'int i;' > conftest.$ac_ext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; then
6396 case `/usr/bin/file conftest.o` in
6397 *32-bit*)
6398 case $host in
6399 x86_64-*linux*)
6400 LD="${LD-ld} -m elf_i386"
6401 ;;
6402 ppc64-*linux*|powerpc64-*linux*)
6403 LD="${LD-ld} -m elf32ppclinux"
6404 ;;
6405 s390x-*linux*)
6406 LD="${LD-ld} -m elf_s390"
6407 ;;
6408 sparc64-*linux*)
6409 LD="${LD-ld} -m elf32_sparc"
6410 ;;
6411 esac
6412 ;;
6413 *64-bit*)
6414 case $host in
6415 x86_64-*linux*)
6416 LD="${LD-ld} -m elf_x86_64"
6417 ;;
6418 ppc*-*linux*|powerpc*-*linux*)
6419 LD="${LD-ld} -m elf64ppc"
6420 ;;
6421 s390*-*linux*)
6422 LD="${LD-ld} -m elf64_s390"
6423 ;;
6424 sparc*-*linux*)
6425 LD="${LD-ld} -m elf64_sparc"
6426 ;;
6427 esac
6428 ;;
6429 esac
6430 fi
6431 rm -rf conftest*
6432 ;;
6433
6434 *-*-sco3.2v5*)
6435 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6436 SAVE_CFLAGS="$CFLAGS"
6437 CFLAGS="$CFLAGS -belf"
6438 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6439 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6440 if test "${lt_cv_cc_needs_belf+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455
6456 int
6457 main ()
6458 {
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466 (eval $ac_link) 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 lt_cv_cc_needs_belf=yes
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 lt_cv_cc_needs_belf=no
6492 fi
6493 rm -f conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 ac_ext=c
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500
6501 fi
6502 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6503 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6504 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6505 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6506 CFLAGS="$SAVE_CFLAGS"
6507 fi
6508 ;;
6509 sparc*-*solaris*)
6510 # Find out which ABI we are using.
6511 echo 'int i;' > conftest.$ac_ext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; then
6517 case `/usr/bin/file conftest.o` in
6518 *64-bit*)
6519 case $lt_cv_prog_gnu_ld in
6520 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6521 *) LD="${LD-ld} -64" ;;
6522 esac
6523 ;;
6524 esac
6525 fi
6526 rm -rf conftest*
6527 ;;
6528
6529
6530 esac
6531
6532 need_locks="$enable_libtool_lock"
6533
6534
6535 ac_ext=c
6536 ac_cpp='$CPP $CPPFLAGS'
6537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6541 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6542 # On Suns, sometimes $CPP names a directory.
6543 if test -n "$CPP" && test -d "$CPP"; then
6544 CPP=
6545 fi
6546 if test -z "$CPP"; then
6547 if test "${ac_cv_prog_CPP+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 # Double quotes because CPP needs to be expanded
6551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552 do
6553 ac_preproc_ok=false
6554 for ac_c_preproc_warn_flag in '' yes
6555 do
6556 # Use a header file that comes with gcc, so configuring glibc
6557 # with a fresh cross-compiler works.
6558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559 # <limits.h> exists even on freestanding compilers.
6560 # On the NeXT, cc -E runs the code through the compiler's parser,
6561 # not just through cpp. "Syntax error" is here to catch this case.
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #ifdef __STDC__
6569 # include <limits.h>
6570 #else
6571 # include <assert.h>
6572 #endif
6573 Syntax error
6574 _ACEOF
6575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null; then
6583 if test -s conftest.err; then
6584 ac_cpp_err=$ac_c_preproc_warn_flag
6585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6586 else
6587 ac_cpp_err=
6588 fi
6589 else
6590 ac_cpp_err=yes
6591 fi
6592 if test -z "$ac_cpp_err"; then
6593 :
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 # Broken: fails on valid input.
6599 continue
6600 fi
6601 rm -f conftest.err conftest.$ac_ext
6602
6603 # OK, works on sane cases. Now check whether non-existent headers
6604 # can be detected and how.
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <ac_nonexistent.h>
6612 _ACEOF
6613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null; then
6621 if test -s conftest.err; then
6622 ac_cpp_err=$ac_c_preproc_warn_flag
6623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6624 else
6625 ac_cpp_err=
6626 fi
6627 else
6628 ac_cpp_err=yes
6629 fi
6630 if test -z "$ac_cpp_err"; then
6631 # Broken: success on invalid input.
6632 continue
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6636
6637 # Passes both tests.
6638 ac_preproc_ok=:
6639 break
6640 fi
6641 rm -f conftest.err conftest.$ac_ext
6642
6643 done
6644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645 rm -f conftest.err conftest.$ac_ext
6646 if $ac_preproc_ok; then
6647 break
6648 fi
6649
6650 done
6651 ac_cv_prog_CPP=$CPP
6652
6653 fi
6654 CPP=$ac_cv_prog_CPP
6655 else
6656 ac_cv_prog_CPP=$CPP
6657 fi
6658 echo "$as_me:$LINENO: result: $CPP" >&5
6659 echo "${ECHO_T}$CPP" >&6
6660 ac_preproc_ok=false
6661 for ac_c_preproc_warn_flag in '' yes
6662 do
6663 # Use a header file that comes with gcc, so configuring glibc
6664 # with a fresh cross-compiler works.
6665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 # <limits.h> exists even on freestanding compilers.
6667 # On the NeXT, cc -E runs the code through the compiler's parser,
6668 # not just through cpp. "Syntax error" is here to catch this case.
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #ifdef __STDC__
6676 # include <limits.h>
6677 #else
6678 # include <assert.h>
6679 #endif
6680 Syntax error
6681 _ACEOF
6682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } >/dev/null; then
6690 if test -s conftest.err; then
6691 ac_cpp_err=$ac_c_preproc_warn_flag
6692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6693 else
6694 ac_cpp_err=
6695 fi
6696 else
6697 ac_cpp_err=yes
6698 fi
6699 if test -z "$ac_cpp_err"; then
6700 :
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 # Broken: fails on valid input.
6706 continue
6707 fi
6708 rm -f conftest.err conftest.$ac_ext
6709
6710 # OK, works on sane cases. Now check whether non-existent headers
6711 # can be detected and how.
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <ac_nonexistent.h>
6719 _ACEOF
6720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } >/dev/null; then
6728 if test -s conftest.err; then
6729 ac_cpp_err=$ac_c_preproc_warn_flag
6730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6731 else
6732 ac_cpp_err=
6733 fi
6734 else
6735 ac_cpp_err=yes
6736 fi
6737 if test -z "$ac_cpp_err"; then
6738 # Broken: success on invalid input.
6739 continue
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6743
6744 # Passes both tests.
6745 ac_preproc_ok=:
6746 break
6747 fi
6748 rm -f conftest.err conftest.$ac_ext
6749
6750 done
6751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752 rm -f conftest.err conftest.$ac_ext
6753 if $ac_preproc_ok; then
6754 :
6755 else
6756 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6757 See \`config.log' for more details." >&5
6758 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6759 See \`config.log' for more details." >&2;}
6760 { (exit 1); exit 1; }; }
6761 fi
6762
6763 ac_ext=c
6764 ac_cpp='$CPP $CPPFLAGS'
6765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769
6770 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6772 if test "${ac_cv_header_stdc+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <stdlib.h>
6782 #include <stdarg.h>
6783 #include <string.h>
6784 #include <float.h>
6785
6786 int
6787 main ()
6788 {
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 rm -f conftest.$ac_objext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796 (eval $ac_compile) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest.$ac_objext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 ac_cv_header_stdc=yes
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ac_cv_header_stdc=no
6822 fi
6823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824
6825 if test $ac_cv_header_stdc = yes; then
6826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <string.h>
6834
6835 _ACEOF
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "memchr" >/dev/null 2>&1; then
6838 :
6839 else
6840 ac_cv_header_stdc=no
6841 fi
6842 rm -f conftest*
6843
6844 fi
6845
6846 if test $ac_cv_header_stdc = yes; then
6847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <stdlib.h>
6855
6856 _ACEOF
6857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858 $EGREP "free" >/dev/null 2>&1; then
6859 :
6860 else
6861 ac_cv_header_stdc=no
6862 fi
6863 rm -f conftest*
6864
6865 fi
6866
6867 if test $ac_cv_header_stdc = yes; then
6868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6869 if test "$cross_compiling" = yes; then
6870 :
6871 else
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 #include <ctype.h>
6879 #if ((' ' & 0x0FF) == 0x020)
6880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882 #else
6883 # define ISLOWER(c) \
6884 (('a' <= (c) && (c) <= 'i') \
6885 || ('j' <= (c) && (c) <= 'r') \
6886 || ('s' <= (c) && (c) <= 'z'))
6887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888 #endif
6889
6890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891 int
6892 main ()
6893 {
6894 int i;
6895 for (i = 0; i < 256; i++)
6896 if (XOR (islower (i), ISLOWER (i))
6897 || toupper (i) != TOUPPER (i))
6898 exit(2);
6899 exit (0);
6900 }
6901 _ACEOF
6902 rm -f conftest$ac_exeext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 :
6914 else
6915 echo "$as_me: program exited with status $ac_status" >&5
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ( exit $ac_status )
6920 ac_cv_header_stdc=no
6921 fi
6922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 fi
6925 fi
6926 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6927 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6928 if test $ac_cv_header_stdc = yes; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define STDC_HEADERS 1
6932 _ACEOF
6933
6934 fi
6935
6936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6947 inttypes.h stdint.h unistd.h
6948 do
6949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950 echo "$as_me:$LINENO: checking for $ac_header" >&5
6951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 $ac_includes_default
6962
6963 #include <$ac_header>
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 eval "$as_ac_Header=yes"
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 eval "$as_ac_Header=no"
6993 fi
6994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 fi
6996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 _ACEOF
7002
7003 fi
7004
7005 done
7006
7007
7008
7009 for ac_header in dlfcn.h
7010 do
7011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7013 echo "$as_me:$LINENO: checking for $ac_header" >&5
7014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 fi
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7020 else
7021 # Is the header compilable?
7022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 $ac_includes_default
7031 #include <$ac_header>
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_header_compiler=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ac_header_compiler=no
7061 fi
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064 echo "${ECHO_T}$ac_header_compiler" >&6
7065
7066 # Is the header present?
7067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <$ac_header>
7076 _ACEOF
7077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } >/dev/null; then
7085 if test -s conftest.err; then
7086 ac_cpp_err=$ac_c_preproc_warn_flag
7087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7088 else
7089 ac_cpp_err=
7090 fi
7091 else
7092 ac_cpp_err=yes
7093 fi
7094 if test -z "$ac_cpp_err"; then
7095 ac_header_preproc=yes
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ac_header_preproc=no
7101 fi
7102 rm -f conftest.err conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7104 echo "${ECHO_T}$ac_header_preproc" >&6
7105
7106 # So? What about this header?
7107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7108 yes:no: )
7109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7113 ac_header_preproc=yes
7114 ;;
7115 no:yes:* )
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7128 (
7129 cat <<\_ASBOX
7130 ## ----------------------------------------- ##
7131 ## Report this to [email protected] ##
7132 ## ----------------------------------------- ##
7133 _ASBOX
7134 ) |
7135 sed "s/^/$as_me: WARNING: /" >&2
7136 ;;
7137 esac
7138 echo "$as_me:$LINENO: checking for $ac_header" >&5
7139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143 eval "$as_ac_Header=\$ac_header_preproc"
7144 fi
7145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7147
7148 fi
7149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 _ACEOF
7153
7154 fi
7155
7156 done
7157
7158
7159
7160 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7161 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7162 (test "X$CXX" != "Xg++"))) ; then
7163 ac_ext=cc
7164 ac_cpp='$CXXCPP $CPPFLAGS'
7165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7168 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7169 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7170 if test -z "$CXXCPP"; then
7171 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 # Double quotes because CXXCPP needs to be expanded
7175 for CXXCPP in "$CXX -E" "/lib/cpp"
7176 do
7177 ac_preproc_ok=false
7178 for ac_cxx_preproc_warn_flag in '' yes
7179 do
7180 # Use a header file that comes with gcc, so configuring glibc
7181 # with a fresh cross-compiler works.
7182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183 # <limits.h> exists even on freestanding compilers.
7184 # On the NeXT, cc -E runs the code through the compiler's parser,
7185 # not just through cpp. "Syntax error" is here to catch this case.
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #ifdef __STDC__
7193 # include <limits.h>
7194 #else
7195 # include <assert.h>
7196 #endif
7197 Syntax error
7198 _ACEOF
7199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } >/dev/null; then
7207 if test -s conftest.err; then
7208 ac_cpp_err=$ac_cxx_preproc_warn_flag
7209 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7210 else
7211 ac_cpp_err=
7212 fi
7213 else
7214 ac_cpp_err=yes
7215 fi
7216 if test -z "$ac_cpp_err"; then
7217 :
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222 # Broken: fails on valid input.
7223 continue
7224 fi
7225 rm -f conftest.err conftest.$ac_ext
7226
7227 # OK, works on sane cases. Now check whether non-existent headers
7228 # can be detected and how.
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 #include <ac_nonexistent.h>
7236 _ACEOF
7237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } >/dev/null; then
7245 if test -s conftest.err; then
7246 ac_cpp_err=$ac_cxx_preproc_warn_flag
7247 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7248 else
7249 ac_cpp_err=
7250 fi
7251 else
7252 ac_cpp_err=yes
7253 fi
7254 if test -z "$ac_cpp_err"; then
7255 # Broken: success on invalid input.
7256 continue
7257 else
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 # Passes both tests.
7262 ac_preproc_ok=:
7263 break
7264 fi
7265 rm -f conftest.err conftest.$ac_ext
7266
7267 done
7268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7269 rm -f conftest.err conftest.$ac_ext
7270 if $ac_preproc_ok; then
7271 break
7272 fi
7273
7274 done
7275 ac_cv_prog_CXXCPP=$CXXCPP
7276
7277 fi
7278 CXXCPP=$ac_cv_prog_CXXCPP
7279 else
7280 ac_cv_prog_CXXCPP=$CXXCPP
7281 fi
7282 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7283 echo "${ECHO_T}$CXXCPP" >&6
7284 ac_preproc_ok=false
7285 for ac_cxx_preproc_warn_flag in '' yes
7286 do
7287 # Use a header file that comes with gcc, so configuring glibc
7288 # with a fresh cross-compiler works.
7289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7290 # <limits.h> exists even on freestanding compilers.
7291 # On the NeXT, cc -E runs the code through the compiler's parser,
7292 # not just through cpp. "Syntax error" is here to catch this case.
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304 Syntax error
7305 _ACEOF
7306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } >/dev/null; then
7314 if test -s conftest.err; then
7315 ac_cpp_err=$ac_cxx_preproc_warn_flag
7316 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7317 else
7318 ac_cpp_err=
7319 fi
7320 else
7321 ac_cpp_err=yes
7322 fi
7323 if test -z "$ac_cpp_err"; then
7324 :
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329 # Broken: fails on valid input.
7330 continue
7331 fi
7332 rm -f conftest.err conftest.$ac_ext
7333
7334 # OK, works on sane cases. Now check whether non-existent headers
7335 # can be detected and how.
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <ac_nonexistent.h>
7343 _ACEOF
7344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } >/dev/null; then
7352 if test -s conftest.err; then
7353 ac_cpp_err=$ac_cxx_preproc_warn_flag
7354 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7355 else
7356 ac_cpp_err=
7357 fi
7358 else
7359 ac_cpp_err=yes
7360 fi
7361 if test -z "$ac_cpp_err"; then
7362 # Broken: success on invalid input.
7363 continue
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 # Passes both tests.
7369 ac_preproc_ok=:
7370 break
7371 fi
7372 rm -f conftest.err conftest.$ac_ext
7373
7374 done
7375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7376 rm -f conftest.err conftest.$ac_ext
7377 if $ac_preproc_ok; then
7378 :
7379 else
7380 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7381 See \`config.log' for more details." >&5
7382 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7383 See \`config.log' for more details." >&2;}
7384 { (exit 1); exit 1; }; }
7385 fi
7386
7387 ac_ext=cc
7388 ac_cpp='$CXXCPP $CPPFLAGS'
7389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7392
7393 fi
7394
7395
7396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7397
7398 # find the maximum length of command line arguments
7399 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 i=0
7405 teststring="ABCD"
7406
7407 case $build_os in
7408 msdosdjgpp*)
7409 # On DJGPP, this test can blow up pretty badly due to problems in libc
7410 # (any single argument exceeding 2000 bytes causes a buffer overrun
7411 # during glob expansion). Even if it were fixed, the result of this
7412 # check would be larger than it should be.
7413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7414 ;;
7415
7416 gnu*)
7417 # Under GNU Hurd, this test is not required because there is
7418 # no limit to the length of command line arguments.
7419 # Libtool will interpret -1 as no limit whatsoever
7420 lt_cv_sys_max_cmd_len=-1;
7421 ;;
7422
7423 cygwin* | mingw*)
7424 # On Win9x/ME, this test blows up -- it succeeds, but takes
7425 # about 5 minutes as the teststring grows exponentially.
7426 # Worse, since 9x/ME are not pre-emptively multitasking,
7427 # you end up with a "frozen" computer, even though with patience
7428 # the test eventually succeeds (with a max line length of 256k).
7429 # Instead, let's just punt: use the minimum linelength reported by
7430 # all of the supported platforms: 8192 (on NT/2K/XP).
7431 lt_cv_sys_max_cmd_len=8192;
7432 ;;
7433
7434 amigaos*)
7435 # On AmigaOS with pdksh, this test takes hours, literally.
7436 # So we just punt and use a minimum line length of 8192.
7437 lt_cv_sys_max_cmd_len=8192;
7438 ;;
7439
7440 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7441 # This has been around since 386BSD, at least. Likely further.
7442 if test -x /sbin/sysctl; then
7443 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7444 elif test -x /usr/sbin/sysctl; then
7445 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7446 else
7447 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7448 fi
7449 # And add a safety zone
7450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7452 ;;
7453
7454 interix*)
7455 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7456 lt_cv_sys_max_cmd_len=196608
7457 ;;
7458
7459 osf*)
7460 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7461 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7462 # nice to cause kernel panics so lets avoid the loop below.
7463 # First set a reasonable default.
7464 lt_cv_sys_max_cmd_len=16384
7465 #
7466 if test -x /sbin/sysconfig; then
7467 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7468 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7469 esac
7470 fi
7471 ;;
7472 sco3.2v5*)
7473 lt_cv_sys_max_cmd_len=102400
7474 ;;
7475 sysv5* | sco5v6* | sysv4.2uw2*)
7476 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7477 if test -n "$kargmax"; then
7478 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7479 else
7480 lt_cv_sys_max_cmd_len=32768
7481 fi
7482 ;;
7483 *)
7484 # If test is not a shell built-in, we'll probably end up computing a
7485 # maximum length that is only half of the actual maximum length, but
7486 # we can't tell.
7487 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7488 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7489 = "XX$teststring") >/dev/null 2>&1 &&
7490 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7491 lt_cv_sys_max_cmd_len=$new_result &&
7492 test $i != 17 # 1/2 MB should be enough
7493 do
7494 i=`expr $i + 1`
7495 teststring=$teststring$teststring
7496 done
7497 teststring=
7498 # Add a significant safety factor because C++ compilers can tack on massive
7499 # amounts of additional arguments before passing them to the linker.
7500 # It appears as though 1/2 is a usable value.
7501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7502 ;;
7503 esac
7504
7505 fi
7506
7507 if test -n $lt_cv_sys_max_cmd_len ; then
7508 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7509 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7510 else
7511 echo "$as_me:$LINENO: result: none" >&5
7512 echo "${ECHO_T}none" >&6
7513 fi
7514
7515
7516
7517
7518 # Check for command to grab the raw symbol name followed by C symbol from nm.
7519 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7520 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7521 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524
7525 # These are sane defaults that work on at least a few old systems.
7526 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7527
7528 # Character class describing NM global symbol codes.
7529 symcode='[BCDEGRST]'
7530
7531 # Regexp to match symbols that can be accessed directly from C.
7532 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7533
7534 # Transform an extracted symbol line into a proper C declaration
7535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7536
7537 # Transform an extracted symbol line into symbol name and symbol address
7538 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7539
7540 # Define system-specific variables.
7541 case $host_os in
7542 aix*)
7543 symcode='[BCDT]'
7544 ;;
7545 cygwin* | mingw* | pw32*)
7546 symcode='[ABCDGISTW]'
7547 ;;
7548 hpux*) # Its linker distinguishes data from code symbols
7549 if test "$host_cpu" = ia64; then
7550 symcode='[ABCDEGRST]'
7551 fi
7552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7553 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7554 ;;
7555 linux*)
7556 if test "$host_cpu" = ia64; then
7557 symcode='[ABCDGIRSTW]'
7558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7559 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7560 fi
7561 ;;
7562 irix* | nonstopux*)
7563 symcode='[BCDEGRST]'
7564 ;;
7565 osf*)
7566 symcode='[BCDEGQRST]'
7567 ;;
7568 solaris*)
7569 symcode='[BDRT]'
7570 ;;
7571 sco3.2v5*)
7572 symcode='[DT]'
7573 ;;
7574 sysv4.2uw2*)
7575 symcode='[DT]'
7576 ;;
7577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7578 symcode='[ABDT]'
7579 ;;
7580 sysv4)
7581 symcode='[DFNSTU]'
7582 ;;
7583 esac
7584
7585 # Handle CRLF in mingw tool chain
7586 opt_cr=
7587 case $build_os in
7588 mingw*)
7589 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7590 ;;
7591 esac
7592
7593 # If we're using GNU nm, then use its standard symbol codes.
7594 case `$NM -V 2>&1` in
7595 *GNU* | *'with BFD'*)
7596 symcode='[ABCDGIRSTW]' ;;
7597 esac
7598
7599 # Try without a prefix undercore, then with it.
7600 for ac_symprfx in "" "_"; do
7601
7602 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7603 symxfrm="\\1 $ac_symprfx\\2 \\2"
7604
7605 # Write the raw and C identifiers.
7606 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7607
7608 # Check to see that the pipe works correctly.
7609 pipe_works=no
7610
7611 rm -f conftest*
7612 cat > conftest.$ac_ext <<EOF
7613 #ifdef __cplusplus
7614 extern "C" {
7615 #endif
7616 char nm_test_var;
7617 void nm_test_func(){}
7618 #ifdef __cplusplus
7619 }
7620 #endif
7621 int main(){nm_test_var='a';nm_test_func();return(0);}
7622 EOF
7623
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; then
7629 # Now try to grab the symbols.
7630 nlist=conftest.nm
7631 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && test -s "$nlist"; then
7636 # Try sorting and uniquifying the output.
7637 if sort "$nlist" | uniq > "$nlist"T; then
7638 mv -f "$nlist"T "$nlist"
7639 else
7640 rm -f "$nlist"T
7641 fi
7642
7643 # Make sure that we snagged all the symbols we need.
7644 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7645 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7646 cat <<EOF > conftest.$ac_ext
7647 #ifdef __cplusplus
7648 extern "C" {
7649 #endif
7650
7651 EOF
7652 # Now generate the symbol file.
7653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7654
7655 cat <<EOF >> conftest.$ac_ext
7656 #if defined (__STDC__) && __STDC__
7657 # define lt_ptr_t void *
7658 #else
7659 # define lt_ptr_t char *
7660 # define const
7661 #endif
7662
7663 /* The mapping between symbol names and symbols. */
7664 const struct {
7665 const char *name;
7666 lt_ptr_t address;
7667 }
7668 lt_preloaded_symbols[] =
7669 {
7670 EOF
7671 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7672 cat <<\EOF >> conftest.$ac_ext
7673 {0, (lt_ptr_t) 0}
7674 };
7675
7676 #ifdef __cplusplus
7677 }
7678 #endif
7679 EOF
7680 # Now try linking the two files.
7681 mv conftest.$ac_objext conftstm.$ac_objext
7682 lt_save_LIBS="$LIBS"
7683 lt_save_CFLAGS="$CFLAGS"
7684 LIBS="conftstm.$ac_objext"
7685 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7691 pipe_works=yes
7692 fi
7693 LIBS="$lt_save_LIBS"
7694 CFLAGS="$lt_save_CFLAGS"
7695 else
7696 echo "cannot find nm_test_func in $nlist" >&5
7697 fi
7698 else
7699 echo "cannot find nm_test_var in $nlist" >&5
7700 fi
7701 else
7702 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7703 fi
7704 else
7705 echo "$progname: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 fi
7708 rm -f conftest* conftst*
7709
7710 # Do not use the global_symbol_pipe unless it works.
7711 if test "$pipe_works" = yes; then
7712 break
7713 else
7714 lt_cv_sys_global_symbol_pipe=
7715 fi
7716 done
7717
7718 fi
7719
7720 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7721 lt_cv_sys_global_symbol_to_cdecl=
7722 fi
7723 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7724 echo "$as_me:$LINENO: result: failed" >&5
7725 echo "${ECHO_T}failed" >&6
7726 else
7727 echo "$as_me:$LINENO: result: ok" >&5
7728 echo "${ECHO_T}ok" >&6
7729 fi
7730
7731 echo "$as_me:$LINENO: checking for objdir" >&5
7732 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7733 if test "${lt_cv_objdir+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 rm -f .libs 2>/dev/null
7737 mkdir .libs 2>/dev/null
7738 if test -d .libs; then
7739 lt_cv_objdir=.libs
7740 else
7741 # MS-DOS does not allow filenames that begin with a dot.
7742 lt_cv_objdir=_libs
7743 fi
7744 rmdir .libs 2>/dev/null
7745 fi
7746 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7747 echo "${ECHO_T}$lt_cv_objdir" >&6
7748 objdir=$lt_cv_objdir
7749
7750
7751
7752
7753
7754 case $host_os in
7755 aix3*)
7756 # AIX sometimes has problems with the GCC collect2 program. For some
7757 # reason, if we set the COLLECT_NAMES environment variable, the problems
7758 # vanish in a puff of smoke.
7759 if test "X${COLLECT_NAMES+set}" != Xset; then
7760 COLLECT_NAMES=
7761 export COLLECT_NAMES
7762 fi
7763 ;;
7764 esac
7765
7766 # Sed substitution that helps us do robust quoting. It backslashifies
7767 # metacharacters that are still active within double-quoted strings.
7768 Xsed='sed -e 1s/^X//'
7769 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7770
7771 # Same as above, but do not quote variable references.
7772 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7773
7774 # Sed substitution to delay expansion of an escaped shell variable in a
7775 # double_quote_subst'ed string.
7776 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7777
7778 # Sed substitution to avoid accidental globbing in evaled expressions
7779 no_glob_subst='s/\*/\\\*/g'
7780
7781 # Constants:
7782 rm="rm -f"
7783
7784 # Global variables:
7785 default_ofile=libtool
7786 can_build_shared=yes
7787
7788 # All known linkers require a `.a' archive for static linking (except MSVC,
7789 # which needs '.lib').
7790 libext=a
7791 ltmain="$ac_aux_dir/ltmain.sh"
7792 ofile="$default_ofile"
7793 with_gnu_ld="$lt_cv_prog_gnu_ld"
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}ar; ac_word=$2
7798 echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7800 if test "${ac_cv_prog_AR+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 if test -n "$AR"; then
7804 ac_cv_prog_AR="$AR" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_AR="${ac_tool_prefix}ar"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819
7820 fi
7821 fi
7822 AR=$ac_cv_prog_AR
7823 if test -n "$AR"; then
7824 echo "$as_me:$LINENO: result: $AR" >&5
7825 echo "${ECHO_T}$AR" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6
7829 fi
7830
7831 fi
7832 if test -z "$ac_cv_prog_AR"; then
7833 ac_ct_AR=$AR
7834 # Extract the first word of "ar", so it can be a program name with args.
7835 set dummy ar; ac_word=$2
7836 echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 if test -n "$ac_ct_AR"; then
7842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_ac_ct_AR="ar"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855 done
7856 done
7857
7858 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7859 fi
7860 fi
7861 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7862 if test -n "$ac_ct_AR"; then
7863 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7864 echo "${ECHO_T}$ac_ct_AR" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6
7868 fi
7869
7870 AR=$ac_ct_AR
7871 else
7872 AR="$ac_cv_prog_AR"
7873 fi
7874
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7878 echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880 if test "${ac_cv_prog_RANLIB+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 if test -n "$RANLIB"; then
7884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7896 fi
7897 done
7898 done
7899
7900 fi
7901 fi
7902 RANLIB=$ac_cv_prog_RANLIB
7903 if test -n "$RANLIB"; then
7904 echo "$as_me:$LINENO: result: $RANLIB" >&5
7905 echo "${ECHO_T}$RANLIB" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6
7909 fi
7910
7911 fi
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_ac_ct_RANLIB="ranlib"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937
7938 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7939 fi
7940 fi
7941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7944 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7945 else
7946 echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6
7948 fi
7949
7950 RANLIB=$ac_ct_RANLIB
7951 else
7952 RANLIB="$ac_cv_prog_RANLIB"
7953 fi
7954
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}strip; ac_word=$2
7958 echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960 if test "${ac_cv_prog_STRIP+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 if test -n "$STRIP"; then
7964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977 done
7978 done
7979
7980 fi
7981 fi
7982 STRIP=$ac_cv_prog_STRIP
7983 if test -n "$STRIP"; then
7984 echo "$as_me:$LINENO: result: $STRIP" >&5
7985 echo "${ECHO_T}$STRIP" >&6
7986 else
7987 echo "$as_me:$LINENO: result: no" >&5
7988 echo "${ECHO_T}no" >&6
7989 fi
7990
7991 fi
7992 if test -z "$ac_cv_prog_STRIP"; then
7993 ac_ct_STRIP=$STRIP
7994 # Extract the first word of "strip", so it can be a program name with args.
7995 set dummy strip; ac_word=$2
7996 echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 if test -n "$ac_ct_STRIP"; then
8002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_ac_ct_STRIP="strip"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017
8018 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8019 fi
8020 fi
8021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8022 if test -n "$ac_ct_STRIP"; then
8023 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8024 echo "${ECHO_T}$ac_ct_STRIP" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6
8028 fi
8029
8030 STRIP=$ac_ct_STRIP
8031 else
8032 STRIP="$ac_cv_prog_STRIP"
8033 fi
8034
8035
8036 old_CC="$CC"
8037 old_CFLAGS="$CFLAGS"
8038
8039 # Set sane defaults for various variables
8040 test -z "$AR" && AR=ar
8041 test -z "$AR_FLAGS" && AR_FLAGS=cru
8042 test -z "$AS" && AS=as
8043 test -z "$CC" && CC=cc
8044 test -z "$LTCC" && LTCC=$CC
8045 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8046 test -z "$DLLTOOL" && DLLTOOL=dlltool
8047 test -z "$LD" && LD=ld
8048 test -z "$LN_S" && LN_S="ln -s"
8049 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8050 test -z "$NM" && NM=nm
8051 test -z "$SED" && SED=sed
8052 test -z "$OBJDUMP" && OBJDUMP=objdump
8053 test -z "$RANLIB" && RANLIB=:
8054 test -z "$STRIP" && STRIP=:
8055 test -z "$ac_objext" && ac_objext=o
8056
8057 # Determine commands to create old-style static archives.
8058 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8059 old_postinstall_cmds='chmod 644 $oldlib'
8060 old_postuninstall_cmds=
8061
8062 if test -n "$RANLIB"; then
8063 case $host_os in
8064 openbsd*)
8065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8066 ;;
8067 *)
8068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8069 ;;
8070 esac
8071 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8072 fi
8073
8074 for cc_temp in $compiler""; do
8075 case $cc_temp in
8076 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8077 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8078 \-*) ;;
8079 *) break;;
8080 esac
8081 done
8082 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8083
8084
8085 # Only perform the check for file, if the check method requires it
8086 case $deplibs_check_method in
8087 file_magic*)
8088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8089 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8090 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8091 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094 case $MAGIC_CMD in
8095 [\\/*] | ?:[\\/]*)
8096 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8097 ;;
8098 *)
8099 lt_save_MAGIC_CMD="$MAGIC_CMD"
8100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8101 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8102 for ac_dir in $ac_dummy; do
8103 IFS="$lt_save_ifs"
8104 test -z "$ac_dir" && ac_dir=.
8105 if test -f $ac_dir/${ac_tool_prefix}file; then
8106 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8107 if test -n "$file_magic_test_file"; then
8108 case $deplibs_check_method in
8109 "file_magic "*)
8110 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8113 $EGREP "$file_magic_regex" > /dev/null; then
8114 :
8115 else
8116 cat <<EOF 1>&2
8117
8118 *** Warning: the command libtool uses to detect shared libraries,
8119 *** $file_magic_cmd, produces output that libtool cannot recognize.
8120 *** The result is that libtool may fail to recognize shared libraries
8121 *** as such. This will affect the creation of libtool libraries that
8122 *** depend on shared libraries, but programs linked with such libtool
8123 *** libraries will work regardless of this problem. Nevertheless, you
8124 *** may want to report the problem to your system manager and/or to
8125 *** [email protected]
8126
8127 EOF
8128 fi ;;
8129 esac
8130 fi
8131 break
8132 fi
8133 done
8134 IFS="$lt_save_ifs"
8135 MAGIC_CMD="$lt_save_MAGIC_CMD"
8136 ;;
8137 esac
8138 fi
8139
8140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8141 if test -n "$MAGIC_CMD"; then
8142 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8143 echo "${ECHO_T}$MAGIC_CMD" >&6
8144 else
8145 echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8147 fi
8148
8149 if test -z "$lt_cv_path_MAGIC_CMD"; then
8150 if test -n "$ac_tool_prefix"; then
8151 echo "$as_me:$LINENO: checking for file" >&5
8152 echo $ECHO_N "checking for file... $ECHO_C" >&6
8153 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156 case $MAGIC_CMD in
8157 [\\/*] | ?:[\\/]*)
8158 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8159 ;;
8160 *)
8161 lt_save_MAGIC_CMD="$MAGIC_CMD"
8162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8164 for ac_dir in $ac_dummy; do
8165 IFS="$lt_save_ifs"
8166 test -z "$ac_dir" && ac_dir=.
8167 if test -f $ac_dir/file; then
8168 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8169 if test -n "$file_magic_test_file"; then
8170 case $deplibs_check_method in
8171 "file_magic "*)
8172 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8175 $EGREP "$file_magic_regex" > /dev/null; then
8176 :
8177 else
8178 cat <<EOF 1>&2
8179
8180 *** Warning: the command libtool uses to detect shared libraries,
8181 *** $file_magic_cmd, produces output that libtool cannot recognize.
8182 *** The result is that libtool may fail to recognize shared libraries
8183 *** as such. This will affect the creation of libtool libraries that
8184 *** depend on shared libraries, but programs linked with such libtool
8185 *** libraries will work regardless of this problem. Nevertheless, you
8186 *** may want to report the problem to your system manager and/or to
8187 *** [email protected]
8188
8189 EOF
8190 fi ;;
8191 esac
8192 fi
8193 break
8194 fi
8195 done
8196 IFS="$lt_save_ifs"
8197 MAGIC_CMD="$lt_save_MAGIC_CMD"
8198 ;;
8199 esac
8200 fi
8201
8202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8203 if test -n "$MAGIC_CMD"; then
8204 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8205 echo "${ECHO_T}$MAGIC_CMD" >&6
8206 else
8207 echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8209 fi
8210
8211 else
8212 MAGIC_CMD=:
8213 fi
8214 fi
8215
8216 fi
8217 ;;
8218 esac
8219
8220 enable_dlopen=no
8221 enable_win32_dll=no
8222
8223 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8224 if test "${enable_libtool_lock+set}" = set; then
8225 enableval="$enable_libtool_lock"
8226
8227 fi;
8228 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8229
8230
8231 # Check whether --with-pic or --without-pic was given.
8232 if test "${with_pic+set}" = set; then
8233 withval="$with_pic"
8234 pic_mode="$withval"
8235 else
8236 pic_mode=default
8237 fi;
8238 test -z "$pic_mode" && pic_mode=default
8239
8240 # Use C for the default configuration in the libtool script
8241 tagname=
8242 lt_save_CC="$CC"
8243 ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249
8250 # Source file extension for C test sources.
8251 ac_ext=c
8252
8253 # Object file extension for compiled C test sources.
8254 objext=o
8255 objext=$objext
8256
8257 # Code to be used in simple compile tests
8258 lt_simple_compile_test_code="int some_variable = 0;\n"
8259
8260 # Code to be used in simple link tests
8261 lt_simple_link_test_code='int main(){return(0);}\n'
8262
8263
8264 # If no C compiler was specified, use CC.
8265 LTCC=${LTCC-"$CC"}
8266
8267 # If no C compiler flags were specified, use CFLAGS.
8268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8269
8270 # Allow CC to be a program name with arguments.
8271 compiler=$CC
8272
8273
8274 # save warnings/boilerplate of simple test code
8275 ac_outfile=conftest.$ac_objext
8276 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8278 _lt_compiler_boilerplate=`cat conftest.err`
8279 $rm conftest*
8280
8281 ac_outfile=conftest.$ac_objext
8282 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284 _lt_linker_boilerplate=`cat conftest.err`
8285 $rm conftest*
8286
8287
8288 ## CAVEAT EMPTOR:
8289 ## There is no encapsulation within the following macros, do not change
8290 ## the running order or otherwise move them around unless you know exactly
8291 ## what you are doing...
8292
8293 lt_prog_compiler_no_builtin_flag=
8294
8295 if test "$GCC" = yes; then
8296 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8297
8298
8299 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8300 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8301 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304 lt_cv_prog_compiler_rtti_exceptions=no
8305 ac_outfile=conftest.$ac_objext
8306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8307 lt_compiler_flag="-fno-rtti -fno-exceptions"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 # The option is referenced via a variable to avoid confusing sed.
8313 lt_compile=`echo "$ac_compile" | $SED \
8314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8316 -e 's:$: $lt_compiler_flag:'`
8317 (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
8318 (eval "$lt_compile" 2>conftest.err)
8319 ac_status=$?
8320 cat conftest.err >&5
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 if (exit $ac_status) && test -s "$ac_outfile"; then
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings other than the usual output.
8325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8328 lt_cv_prog_compiler_rtti_exceptions=yes
8329 fi
8330 fi
8331 $rm conftest*
8332
8333 fi
8334 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8335 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8336
8337 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8338 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8339 else
8340 :
8341 fi
8342
8343 fi
8344
8345 lt_prog_compiler_wl=
8346 lt_prog_compiler_pic=
8347 lt_prog_compiler_static=
8348
8349 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8350 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8351
8352 if test "$GCC" = yes; then
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_static='-static'
8355
8356 case $host_os in
8357 aix*)
8358 # All AIX code is PIC.
8359 if test "$host_cpu" = ia64; then
8360 # AIX 5 now supports IA64 processor
8361 lt_prog_compiler_static='-Bstatic'
8362 fi
8363 ;;
8364
8365 amigaos*)
8366 # FIXME: we need at least 68020 code to build shared libraries, but
8367 # adding the `-m68020' flag to GCC prevents building anything better,
8368 # like `-m68040'.
8369 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8370 ;;
8371
8372 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8373 # PIC is the default for these OSes.
8374 ;;
8375
8376 mingw* | pw32* | os2*)
8377 # This hack is so that the source file can tell whether it is being
8378 # built for inclusion in a dll (and should export symbols for example).
8379 lt_prog_compiler_pic='-DDLL_EXPORT'
8380 ;;
8381
8382 darwin* | rhapsody*)
8383 # PIC is the default on this platform
8384 # Common symbols not allowed in MH_DYLIB files
8385 lt_prog_compiler_pic='-fno-common'
8386 ;;
8387
8388 interix3*)
8389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8390 # Instead, we relocate shared libraries at runtime.
8391 ;;
8392
8393 msdosdjgpp*)
8394 # Just because we use GCC doesn't mean we suddenly get shared libraries
8395 # on systems that don't support them.
8396 lt_prog_compiler_can_build_shared=no
8397 enable_shared=no
8398 ;;
8399
8400 sysv4*MP*)
8401 if test -d /usr/nec; then
8402 lt_prog_compiler_pic=-Kconform_pic
8403 fi
8404 ;;
8405
8406 hpux*)
8407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8408 # not for PA HP-UX.
8409 case $host_cpu in
8410 hppa*64*|ia64*)
8411 # +Z the default
8412 ;;
8413 *)
8414 lt_prog_compiler_pic='-fPIC'
8415 ;;
8416 esac
8417 ;;
8418
8419 *)
8420 lt_prog_compiler_pic='-fPIC'
8421 ;;
8422 esac
8423 else
8424 # PORTME Check for flag to pass linker flags through the system compiler.
8425 case $host_os in
8426 aix*)
8427 lt_prog_compiler_wl='-Wl,'
8428 if test "$host_cpu" = ia64; then
8429 # AIX 5 now supports IA64 processor
8430 lt_prog_compiler_static='-Bstatic'
8431 else
8432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8433 fi
8434 ;;
8435 darwin*)
8436 # PIC is the default on this platform
8437 # Common symbols not allowed in MH_DYLIB files
8438 case $cc_basename in
8439 xlc*)
8440 lt_prog_compiler_pic='-qnocommon'
8441 lt_prog_compiler_wl='-Wl,'
8442 ;;
8443 esac
8444 ;;
8445
8446 mingw* | pw32* | os2*)
8447 # This hack is so that the source file can tell whether it is being
8448 # built for inclusion in a dll (and should export symbols for example).
8449 lt_prog_compiler_pic='-DDLL_EXPORT'
8450 ;;
8451
8452 hpux9* | hpux10* | hpux11*)
8453 lt_prog_compiler_wl='-Wl,'
8454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8455 # not for PA HP-UX.
8456 case $host_cpu in
8457 hppa*64*|ia64*)
8458 # +Z the default
8459 ;;
8460 *)
8461 lt_prog_compiler_pic='+Z'
8462 ;;
8463 esac
8464 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8465 lt_prog_compiler_static='${wl}-a ${wl}archive'
8466 ;;
8467
8468 irix5* | irix6* | nonstopux*)
8469 lt_prog_compiler_wl='-Wl,'
8470 # PIC (with -KPIC) is the default.
8471 lt_prog_compiler_static='-non_shared'
8472 ;;
8473
8474 newsos6)
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 ;;
8478
8479 linux*)
8480 case $cc_basename in
8481 icc* | ecc*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-static'
8485 ;;
8486 pgcc* | pgf77* | pgf90* | pgf95*)
8487 # Portland Group compilers (*not* the Pentium gcc compiler,
8488 # which looks to be a dead project)
8489 lt_prog_compiler_wl='-Wl,'
8490 lt_prog_compiler_pic='-fpic'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493 ccc*)
8494 lt_prog_compiler_wl='-Wl,'
8495 # All Alpha code is PIC.
8496 lt_prog_compiler_static='-non_shared'
8497 ;;
8498 esac
8499 ;;
8500
8501 osf3* | osf4* | osf5*)
8502 lt_prog_compiler_wl='-Wl,'
8503 # All OSF/1 code is PIC.
8504 lt_prog_compiler_static='-non_shared'
8505 ;;
8506
8507 solaris*)
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 case $cc_basename in
8511 f77* | f90* | f95*)
8512 lt_prog_compiler_wl='-Qoption ld ';;
8513 *)
8514 lt_prog_compiler_wl='-Wl,';;
8515 esac
8516 ;;
8517
8518 sunos4*)
8519 lt_prog_compiler_wl='-Qoption ld '
8520 lt_prog_compiler_pic='-PIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 ;;
8523
8524 sysv4 | sysv4.2uw2* | sysv4.3*)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
8529
8530 sysv4*MP*)
8531 if test -d /usr/nec ;then
8532 lt_prog_compiler_pic='-Kconform_pic'
8533 lt_prog_compiler_static='-Bstatic'
8534 fi
8535 ;;
8536
8537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_pic='-KPIC'
8540 lt_prog_compiler_static='-Bstatic'
8541 ;;
8542
8543 unicos*)
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_can_build_shared=no
8546 ;;
8547
8548 uts4*)
8549 lt_prog_compiler_pic='-pic'
8550 lt_prog_compiler_static='-Bstatic'
8551 ;;
8552
8553 *)
8554 lt_prog_compiler_can_build_shared=no
8555 ;;
8556 esac
8557 fi
8558
8559 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8560 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8561
8562 #
8563 # Check to make sure the PIC flag actually works.
8564 #
8565 if test -n "$lt_prog_compiler_pic"; then
8566
8567 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8568 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8569 if test "${lt_prog_compiler_pic_works+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 lt_prog_compiler_pic_works=no
8573 ac_outfile=conftest.$ac_objext
8574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8575 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8576 # Insert the option either (1) after the last *FLAGS variable, or
8577 # (2) before a word containing "conftest.", or (3) at the end.
8578 # Note that $ac_compile itself does not contain backslashes and begins
8579 # with a dollar sign (not a hyphen), so the echo should work correctly.
8580 # The option is referenced via a variable to avoid confusing sed.
8581 lt_compile=`echo "$ac_compile" | $SED \
8582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584 -e 's:$: $lt_compiler_flag:'`
8585 (eval echo "\"\$as_me:8585: $lt_compile\"" >&5)
8586 (eval "$lt_compile" 2>conftest.err)
8587 ac_status=$?
8588 cat conftest.err >&5
8589 echo "$as_me:8589: \$? = $ac_status" >&5
8590 if (exit $ac_status) && test -s "$ac_outfile"; then
8591 # The compiler can only warn and ignore the option if not recognized
8592 # So say no if there are warnings other than the usual output.
8593 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8596 lt_prog_compiler_pic_works=yes
8597 fi
8598 fi
8599 $rm conftest*
8600
8601 fi
8602 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8603 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8604
8605 if test x"$lt_prog_compiler_pic_works" = xyes; then
8606 case $lt_prog_compiler_pic in
8607 "" | " "*) ;;
8608 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8609 esac
8610 else
8611 lt_prog_compiler_pic=
8612 lt_prog_compiler_can_build_shared=no
8613 fi
8614
8615 fi
8616 case $host_os in
8617 # For platforms which do not support PIC, -DPIC is meaningless:
8618 *djgpp*)
8619 lt_prog_compiler_pic=
8620 ;;
8621 *)
8622 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8623 ;;
8624 esac
8625
8626 #
8627 # Check to make sure the static flag actually works.
8628 #
8629 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8630 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8631 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8632 if test "${lt_prog_compiler_static_works+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635 lt_prog_compiler_static_works=no
8636 save_LDFLAGS="$LDFLAGS"
8637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8638 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8640 # The linker can only warn and ignore the option if not recognized
8641 # So say no if there are warnings
8642 if test -s conftest.err; then
8643 # Append any errors to the config.log.
8644 cat conftest.err 1>&5
8645 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8647 if diff conftest.exp conftest.er2 >/dev/null; then
8648 lt_prog_compiler_static_works=yes
8649 fi
8650 else
8651 lt_prog_compiler_static_works=yes
8652 fi
8653 fi
8654 $rm conftest*
8655 LDFLAGS="$save_LDFLAGS"
8656
8657 fi
8658 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8659 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8660
8661 if test x"$lt_prog_compiler_static_works" = xyes; then
8662 :
8663 else
8664 lt_prog_compiler_static=
8665 fi
8666
8667
8668 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8669 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8670 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 lt_cv_prog_compiler_c_o=no
8674 $rm -r conftest 2>/dev/null
8675 mkdir conftest
8676 cd conftest
8677 mkdir out
8678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8679
8680 lt_compiler_flag="-o out/conftest2.$ac_objext"
8681 # Insert the option either (1) after the last *FLAGS variable, or
8682 # (2) before a word containing "conftest.", or (3) at the end.
8683 # Note that $ac_compile itself does not contain backslashes and begins
8684 # with a dollar sign (not a hyphen), so the echo should work correctly.
8685 lt_compile=`echo "$ac_compile" | $SED \
8686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8688 -e 's:$: $lt_compiler_flag:'`
8689 (eval echo "\"\$as_me:8689: $lt_compile\"" >&5)
8690 (eval "$lt_compile" 2>out/conftest.err)
8691 ac_status=$?
8692 cat out/conftest.err >&5
8693 echo "$as_me:8693: \$? = $ac_status" >&5
8694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8695 then
8696 # The compiler can only warn and ignore the option if not recognized
8697 # So say no if there are warnings
8698 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8701 lt_cv_prog_compiler_c_o=yes
8702 fi
8703 fi
8704 chmod u+w . 2>&5
8705 $rm conftest*
8706 # SGI C++ compiler will create directory out/ii_files/ for
8707 # template instantiation
8708 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8709 $rm out/* && rmdir out
8710 cd ..
8711 rmdir conftest
8712 $rm conftest*
8713
8714 fi
8715 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8716 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8717
8718
8719 hard_links="nottested"
8720 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8721 # do not overwrite the value of need_locks provided by the user
8722 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8723 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8724 hard_links=yes
8725 $rm conftest*
8726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8727 touch conftest.a
8728 ln conftest.a conftest.b 2>&5 || hard_links=no
8729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8730 echo "$as_me:$LINENO: result: $hard_links" >&5
8731 echo "${ECHO_T}$hard_links" >&6
8732 if test "$hard_links" = no; then
8733 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8734 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8735 need_locks=warn
8736 fi
8737 else
8738 need_locks=no
8739 fi
8740
8741 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8742 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8743
8744 runpath_var=
8745 allow_undefined_flag=
8746 enable_shared_with_static_runtimes=no
8747 archive_cmds=
8748 archive_expsym_cmds=
8749 old_archive_From_new_cmds=
8750 old_archive_from_expsyms_cmds=
8751 export_dynamic_flag_spec=
8752 whole_archive_flag_spec=
8753 thread_safe_flag_spec=
8754 hardcode_libdir_flag_spec=
8755 hardcode_libdir_flag_spec_ld=
8756 hardcode_libdir_separator=
8757 hardcode_direct=no
8758 hardcode_minus_L=no
8759 hardcode_shlibpath_var=unsupported
8760 link_all_deplibs=unknown
8761 hardcode_automatic=no
8762 module_cmds=
8763 module_expsym_cmds=
8764 always_export_symbols=no
8765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8766 # include_expsyms should be a list of space-separated symbols to be *always*
8767 # included in the symbol list
8768 include_expsyms=
8769 # exclude_expsyms can be an extended regexp of symbols to exclude
8770 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8771 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8772 # as well as any symbol that contains `d'.
8773 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8775 # platforms (ab)use it in PIC code, but their linkers get confused if
8776 # the symbol is explicitly referenced. Since portable code cannot
8777 # rely on this symbol name, it's probably fine to never include it in
8778 # preloaded symbol tables.
8779 extract_expsyms_cmds=
8780 # Just being paranoid about ensuring that cc_basename is set.
8781 for cc_temp in $compiler""; do
8782 case $cc_temp in
8783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8785 \-*) ;;
8786 *) break;;
8787 esac
8788 done
8789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8790
8791 case $host_os in
8792 cygwin* | mingw* | pw32*)
8793 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8794 # When not using gcc, we currently assume that we are using
8795 # Microsoft Visual C++.
8796 if test "$GCC" != yes; then
8797 with_gnu_ld=no
8798 fi
8799 ;;
8800 interix*)
8801 # we just hope/assume this is gcc and not c89 (= MSVC++)
8802 with_gnu_ld=yes
8803 ;;
8804 openbsd*)
8805 with_gnu_ld=no
8806 ;;
8807 esac
8808
8809 ld_shlibs=yes
8810 if test "$with_gnu_ld" = yes; then
8811 # If archive_cmds runs LD, not CC, wlarc should be empty
8812 wlarc='${wl}'
8813
8814 # Set some defaults for GNU ld with shared library support. These
8815 # are reset later if shared libraries are not supported. Putting them
8816 # here allows them to be overridden if necessary.
8817 runpath_var=LD_RUN_PATH
8818 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8819 export_dynamic_flag_spec='${wl}--export-dynamic'
8820 # ancient GNU ld didn't support --whole-archive et. al.
8821 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8822 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8823 else
8824 whole_archive_flag_spec=
8825 fi
8826 supports_anon_versioning=no
8827 case `$LD -v 2>/dev/null` in
8828 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8831 *\ 2.11.*) ;; # other 2.11 versions
8832 *) supports_anon_versioning=yes ;;
8833 esac
8834
8835 # See if GNU ld supports shared libraries.
8836 case $host_os in
8837 aix3* | aix4* | aix5*)
8838 # On AIX/PPC, the GNU linker is very broken
8839 if test "$host_cpu" != ia64; then
8840 ld_shlibs=no
8841 cat <<EOF 1>&2
8842
8843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8844 *** to be unable to reliably create shared libraries on AIX.
8845 *** Therefore, libtool is disabling shared libraries support. If you
8846 *** really care for shared libraries, you may want to modify your PATH
8847 *** so that a non-GNU linker is found, and then restart.
8848
8849 EOF
8850 fi
8851 ;;
8852
8853 amigaos*)
8854 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)'
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_minus_L=yes
8857
8858 # Samuel A. Falvo II <[email protected]> reports
8859 # that the semantics of dynamic libraries on AmigaOS, at least up
8860 # to version 4, is to share data among multiple programs linked
8861 # with the same dynamic library. Since this doesn't match the
8862 # behavior of shared libraries on other platforms, we can't use
8863 # them.
8864 ld_shlibs=no
8865 ;;
8866
8867 beos*)
8868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8869 allow_undefined_flag=unsupported
8870 # Joseph Beckenbach <[email protected]> says some releases of gcc
8871 # support --undefined. This deserves some investigation. FIXME
8872 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 else
8874 ld_shlibs=no
8875 fi
8876 ;;
8877
8878 cygwin* | mingw* | pw32*)
8879 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8880 # as there is no search path for DLLs.
8881 hardcode_libdir_flag_spec='-L$libdir'
8882 allow_undefined_flag=unsupported
8883 always_export_symbols=no
8884 enable_shared_with_static_runtimes=yes
8885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8886
8887 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8889 # If the export-symbols file already is a .def file (1st line
8890 # is EXPORTS), use it as is; otherwise, prepend...
8891 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8892 cp $export_symbols $output_objdir/$soname.def;
8893 else
8894 echo EXPORTS > $output_objdir/$soname.def;
8895 cat $export_symbols >> $output_objdir/$soname.def;
8896 fi~
8897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898 else
8899 ld_shlibs=no
8900 fi
8901 ;;
8902
8903 interix3*)
8904 hardcode_direct=no
8905 hardcode_shlibpath_var=no
8906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8907 export_dynamic_flag_spec='${wl}-E'
8908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8909 # Instead, shared libraries are loaded at an image base (0x10000000 by
8910 # default) and relocated if they conflict, which is a slow very memory
8911 # consuming and fragmenting process. To avoid this, we pick a random,
8912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8915 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8916 ;;
8917
8918 linux*)
8919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8920 tmp_addflag=
8921 case $cc_basename,$host_cpu in
8922 pgcc*) # Portland Group C compiler
8923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8924 tmp_addflag=' $pic_flag'
8925 ;;
8926 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8927 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8928 tmp_addflag=' $pic_flag -Mnomain' ;;
8929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8930 tmp_addflag=' -i_dynamic' ;;
8931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8932 tmp_addflag=' -i_dynamic -nofor_main' ;;
8933 ifc* | ifort*) # Intel Fortran compiler
8934 tmp_addflag=' -nofor_main' ;;
8935 esac
8936 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937
8938 if test $supports_anon_versioning = yes; then
8939 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8941 $echo "local: *; };" >> $output_objdir/$libname.ver~
8942 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8943 fi
8944 else
8945 ld_shlibs=no
8946 fi
8947 ;;
8948
8949 netbsd*)
8950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8952 wlarc=
8953 else
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8956 fi
8957 ;;
8958
8959 solaris*)
8960 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8961 ld_shlibs=no
8962 cat <<EOF 1>&2
8963
8964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8965 *** create shared libraries on Solaris systems. Therefore, libtool
8966 *** is disabling shared libraries support. We urge you to upgrade GNU
8967 *** binutils to release 2.9.1 or newer. Another option is to modify
8968 *** your PATH or compiler configuration so that the native linker is
8969 *** used, and then restart.
8970
8971 EOF
8972 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975 else
8976 ld_shlibs=no
8977 fi
8978 ;;
8979
8980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8981 case `$LD -v 2>&1` in
8982 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8983 ld_shlibs=no
8984 cat <<_LT_EOF 1>&2
8985
8986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8987 *** reliably create shared libraries on SCO systems. Therefore, libtool
8988 *** is disabling shared libraries support. We urge you to upgrade GNU
8989 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8990 *** your PATH or compiler configuration so that the native linker is
8991 *** used, and then restart.
8992
8993 _LT_EOF
8994 ;;
8995 *)
8996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8997 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
9004 esac
9005 ;;
9006
9007 sunos4*)
9008 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009 wlarc=
9010 hardcode_direct=yes
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 *)
9015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 else
9019 ld_shlibs=no
9020 fi
9021 ;;
9022 esac
9023
9024 if test "$ld_shlibs" = no; then
9025 runpath_var=
9026 hardcode_libdir_flag_spec=
9027 export_dynamic_flag_spec=
9028 whole_archive_flag_spec=
9029 fi
9030 else
9031 # PORTME fill in a description of your system's linker (not GNU ld)
9032 case $host_os in
9033 aix3*)
9034 allow_undefined_flag=unsupported
9035 always_export_symbols=yes
9036 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'
9037 # Note: this linker hardcodes the directories in LIBPATH if there
9038 # are no directories specified by -L.
9039 hardcode_minus_L=yes
9040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9041 # Neither direct hardcoding nor static linking is supported with a
9042 # broken collect2.
9043 hardcode_direct=unsupported
9044 fi
9045 ;;
9046
9047 aix4* | aix5*)
9048 if test "$host_cpu" = ia64; then
9049 # On IA64, the linker does run time linking by default, so we don't
9050 # have to do anything special.
9051 aix_use_runtimelinking=no
9052 exp_sym_flag='-Bexport'
9053 no_entry_flag=""
9054 else
9055 # If we're using GNU nm, then we don't want the "-C" option.
9056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9057 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9058 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9059 else
9060 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9061 fi
9062 aix_use_runtimelinking=no
9063
9064 # Test if we are trying to use run time linking or normal
9065 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9066 # need to do runtime linking.
9067 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9068 for ld_flag in $LDFLAGS; do
9069 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9070 aix_use_runtimelinking=yes
9071 break
9072 fi
9073 done
9074 ;;
9075 esac
9076
9077 exp_sym_flag='-bexport'
9078 no_entry_flag='-bnoentry'
9079 fi
9080
9081 # When large executables or shared objects are built, AIX ld can
9082 # have problems creating the table of contents. If linking a library
9083 # or program results in "error TOC overflow" add -mminimal-toc to
9084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9086
9087 archive_cmds=''
9088 hardcode_direct=yes
9089 hardcode_libdir_separator=':'
9090 link_all_deplibs=yes
9091
9092 if test "$GCC" = yes; then
9093 case $host_os in aix4.[012]|aix4.[012].*)
9094 # We only want to do this on AIX 4.2 and lower, the check
9095 # below for broken collect2 doesn't work under 4.3+
9096 collect2name=`${CC} -print-prog-name=collect2`
9097 if test -f "$collect2name" && \
9098 strings "$collect2name" | grep resolve_lib_name >/dev/null
9099 then
9100 # We have reworked collect2
9101 hardcode_direct=yes
9102 else
9103 # We have old collect2
9104 hardcode_direct=unsupported
9105 # It fails to find uninstalled libraries when the uninstalled
9106 # path is not listed in the libpath. Setting hardcode_minus_L
9107 # to unsupported forces relinking
9108 hardcode_minus_L=yes
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 hardcode_libdir_separator=
9111 fi
9112 ;;
9113 esac
9114 shared_flag='-shared'
9115 if test "$aix_use_runtimelinking" = yes; then
9116 shared_flag="$shared_flag "'${wl}-G'
9117 fi
9118 else
9119 # not using gcc
9120 if test "$host_cpu" = ia64; then
9121 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9122 # chokes on -Wl,-G. The following line is correct:
9123 shared_flag='-G'
9124 else
9125 if test "$aix_use_runtimelinking" = yes; then
9126 shared_flag='${wl}-G'
9127 else
9128 shared_flag='${wl}-bM:SRE'
9129 fi
9130 fi
9131 fi
9132
9133 # It seems that -bexpall does not export symbols beginning with
9134 # underscore (_), so it is better to generate a list of symbols to export.
9135 always_export_symbols=yes
9136 if test "$aix_use_runtimelinking" = yes; then
9137 # Warning - without using the other runtime loading flags (-brtl),
9138 # -berok will link without error, but may produce a broken library.
9139 allow_undefined_flag='-berok'
9140 # Determine the default libpath from the value encoded in an empty executable.
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147
9148 int
9149 main ()
9150 {
9151
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178
9179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9180 }'`
9181 # Check for a 64-bit object if we didn't find anything.
9182 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9183 }'`; fi
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188 fi
9189 rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9192
9193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9194 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9195 else
9196 if test "$host_cpu" = ia64; then
9197 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9198 allow_undefined_flag="-z nodefs"
9199 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9200 else
9201 # Determine the default libpath from the value encoded in an empty executable.
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208
9209 int
9210 main ()
9211 {
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239
9240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9241 }'`
9242 # Check for a 64-bit object if we didn't find anything.
9243 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9244 }'`; fi
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 fi
9250 rm -f conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9253
9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255 # Warning - without using the other run time loading flags,
9256 # -berok will link without error, but may produce a broken library.
9257 no_undefined_flag=' ${wl}-bernotok'
9258 allow_undefined_flag=' ${wl}-berok'
9259 # Exported symbols can be pulled into shared objects from archives
9260 whole_archive_flag_spec='$convenience'
9261 archive_cmds_need_lc=yes
9262 # This is similar to how AIX traditionally builds its shared libraries.
9263 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9264 fi
9265 fi
9266 ;;
9267
9268 amigaos*)
9269 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)'
9270 hardcode_libdir_flag_spec='-L$libdir'
9271 hardcode_minus_L=yes
9272 # see comment about different semantics on the GNU ld section
9273 ld_shlibs=no
9274 ;;
9275
9276 bsdi[45]*)
9277 export_dynamic_flag_spec=-rdynamic
9278 ;;
9279
9280 cygwin* | mingw* | pw32*)
9281 # When not using gcc, we currently assume that we are using
9282 # Microsoft Visual C++.
9283 # hardcode_libdir_flag_spec is actually meaningless, as there is
9284 # no search path for DLLs.
9285 hardcode_libdir_flag_spec=' '
9286 allow_undefined_flag=unsupported
9287 # Tell ltmain to make .lib files, not .a files.
9288 libext=lib
9289 # Tell ltmain to make .dll files, not .so files.
9290 shrext_cmds=".dll"
9291 # FIXME: Setting linknames here is a bad hack.
9292 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9293 # The linker will automatically build a .lib file if we build a DLL.
9294 old_archive_From_new_cmds='true'
9295 # FIXME: Should let the user specify the lib program.
9296 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9297 fix_srcfile_path='`cygpath -w "$srcfile"`'
9298 enable_shared_with_static_runtimes=yes
9299 ;;
9300
9301 darwin* | rhapsody*)
9302 case $host_os in
9303 rhapsody* | darwin1.[012])
9304 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9305 ;;
9306 *) # Darwin 1.3 on
9307 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9308 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9309 else
9310 case ${MACOSX_DEPLOYMENT_TARGET} in
9311 10.[012])
9312 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9313 ;;
9314 10.*)
9315 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9316 ;;
9317 esac
9318 fi
9319 ;;
9320 esac
9321 archive_cmds_need_lc=no
9322 hardcode_direct=no
9323 hardcode_automatic=yes
9324 hardcode_shlibpath_var=unsupported
9325 whole_archive_flag_spec=''
9326 link_all_deplibs=yes
9327 if test "$GCC" = yes ; then
9328 output_verbose_link_cmd='echo'
9329 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9330 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9331 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9332 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9333 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9334 else
9335 case $cc_basename in
9336 xlc*)
9337 output_verbose_link_cmd='echo'
9338 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9339 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9341 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9342 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9343 ;;
9344 *)
9345 ld_shlibs=no
9346 ;;
9347 esac
9348 fi
9349 ;;
9350
9351 dgux*)
9352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 freebsd1*)
9358 ld_shlibs=no
9359 ;;
9360
9361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9362 # support. Future versions do this automatically, but an explicit c++rt0.o
9363 # does not break anything, and helps significantly (at the cost of a little
9364 # extra space).
9365 freebsd2.2*)
9366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9367 hardcode_libdir_flag_spec='-R$libdir'
9368 hardcode_direct=yes
9369 hardcode_shlibpath_var=no
9370 ;;
9371
9372 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9373 freebsd2*)
9374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_direct=yes
9376 hardcode_minus_L=yes
9377 hardcode_shlibpath_var=no
9378 ;;
9379
9380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9381 freebsd* | kfreebsd*-gnu | dragonfly*)
9382 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9383 hardcode_libdir_flag_spec='-R$libdir'
9384 hardcode_direct=yes
9385 hardcode_shlibpath_var=no
9386 ;;
9387
9388 hpux9*)
9389 if test "$GCC" = yes; then
9390 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9391 else
9392 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'
9393 fi
9394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_separator=:
9396 hardcode_direct=yes
9397
9398 # hardcode_minus_L: Not really in the search PATH,
9399 # but as the default location of the library.
9400 hardcode_minus_L=yes
9401 export_dynamic_flag_spec='${wl}-E'
9402 ;;
9403
9404 hpux10*)
9405 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407 else
9408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9409 fi
9410 if test "$with_gnu_ld" = no; then
9411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9412 hardcode_libdir_separator=:
9413
9414 hardcode_direct=yes
9415 export_dynamic_flag_spec='${wl}-E'
9416
9417 # hardcode_minus_L: Not really in the search PATH,
9418 # but as the default location of the library.
9419 hardcode_minus_L=yes
9420 fi
9421 ;;
9422
9423 hpux11*)
9424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9425 case $host_cpu in
9426 hppa*64*)
9427 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 ia64*)
9430 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 *)
9433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9434 ;;
9435 esac
9436 else
9437 case $host_cpu in
9438 hppa*64*)
9439 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 ia64*)
9442 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9443 ;;
9444 *)
9445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 ;;
9447 esac
9448 fi
9449 if test "$with_gnu_ld" = no; then
9450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9451 hardcode_libdir_separator=:
9452
9453 case $host_cpu in
9454 hppa*64*|ia64*)
9455 hardcode_libdir_flag_spec_ld='+b $libdir'
9456 hardcode_direct=no
9457 hardcode_shlibpath_var=no
9458 ;;
9459 *)
9460 hardcode_direct=yes
9461 export_dynamic_flag_spec='${wl}-E'
9462
9463 # hardcode_minus_L: Not really in the search PATH,
9464 # but as the default location of the library.
9465 hardcode_minus_L=yes
9466 ;;
9467 esac
9468 fi
9469 ;;
9470
9471 irix5* | irix6* | nonstopux*)
9472 if test "$GCC" = yes; then
9473 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'
9474 else
9475 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'
9476 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9477 fi
9478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479 hardcode_libdir_separator=:
9480 link_all_deplibs=yes
9481 ;;
9482
9483 netbsd*)
9484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9486 else
9487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9488 fi
9489 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
9492 ;;
9493
9494 newsos6)
9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496 hardcode_direct=yes
9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498 hardcode_libdir_separator=:
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 openbsd*)
9503 hardcode_direct=yes
9504 hardcode_shlibpath_var=no
9505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509 export_dynamic_flag_spec='${wl}-E'
9510 else
9511 case $host_os in
9512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 ;;
9516 *)
9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519 ;;
9520 esac
9521 fi
9522 ;;
9523
9524 os2*)
9525 hardcode_libdir_flag_spec='-L$libdir'
9526 hardcode_minus_L=yes
9527 allow_undefined_flag=unsupported
9528 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'
9529 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9530 ;;
9531
9532 osf3*)
9533 if test "$GCC" = yes; then
9534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9535 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'
9536 else
9537 allow_undefined_flag=' -expect_unresolved \*'
9538 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'
9539 fi
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 ;;
9543
9544 osf4* | osf5*) # as osf3* with the addition of -msym flag
9545 if test "$GCC" = yes; then
9546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9547 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'
9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549 else
9550 allow_undefined_flag=' -expect_unresolved \*'
9551 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'
9552 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9553 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9554
9555 # Both c and cxx compiler support -rpath directly
9556 hardcode_libdir_flag_spec='-rpath $libdir'
9557 fi
9558 hardcode_libdir_separator=:
9559 ;;
9560
9561 solaris*)
9562 no_undefined_flag=' -z text'
9563 if test "$GCC" = yes; then
9564 wlarc='${wl}'
9565 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9567 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9568 else
9569 wlarc=''
9570 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9573 fi
9574 hardcode_libdir_flag_spec='-R$libdir'
9575 hardcode_shlibpath_var=no
9576 case $host_os in
9577 solaris2.[0-5] | solaris2.[0-5].*) ;;
9578 *)
9579 # The compiler driver will combine linker options so we
9580 # cannot just pass the convience library names through
9581 # without $wl, iff we do not link with $LD.
9582 # Luckily, gcc supports the same syntax we need for Sun Studio.
9583 # Supported since Solaris 2.6 (maybe 2.5.1?)
9584 case $wlarc in
9585 '')
9586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9587 *)
9588 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9589 esac ;;
9590 esac
9591 link_all_deplibs=yes
9592 ;;
9593
9594 sunos4*)
9595 if test "x$host_vendor" = xsequent; then
9596 # Use $CC to link under sequent, because it throws in some extra .o
9597 # files that make .init and .fini sections work.
9598 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9599 else
9600 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9601 fi
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_direct=yes
9604 hardcode_minus_L=yes
9605 hardcode_shlibpath_var=no
9606 ;;
9607
9608 sysv4)
9609 case $host_vendor in
9610 sni)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_direct=yes # is this really true???
9613 ;;
9614 siemens)
9615 ## LD is ld it makes a PLAMLIB
9616 ## CC just makes a GrossModule.
9617 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9618 reload_cmds='$CC -r -o $output$reload_objs'
9619 hardcode_direct=no
9620 ;;
9621 motorola)
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9624 ;;
9625 esac
9626 runpath_var='LD_RUN_PATH'
9627 hardcode_shlibpath_var=no
9628 ;;
9629
9630 sysv4.3*)
9631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_shlibpath_var=no
9633 export_dynamic_flag_spec='-Bexport'
9634 ;;
9635
9636 sysv4*MP*)
9637 if test -d /usr/nec; then
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_shlibpath_var=no
9640 runpath_var=LD_RUN_PATH
9641 hardcode_runpath_var=yes
9642 ld_shlibs=yes
9643 fi
9644 ;;
9645
9646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9647 no_undefined_flag='${wl}-z,text'
9648 archive_cmds_need_lc=no
9649 hardcode_shlibpath_var=no
9650 runpath_var='LD_RUN_PATH'
9651
9652 if test "$GCC" = yes; then
9653 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 else
9656 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 fi
9659 ;;
9660
9661 sysv5* | sco3.2v5* | sco5v6*)
9662 # Note: We can NOT use -z defs as we might desire, because we do not
9663 # link with -lc, and that would cause any symbols used from libc to
9664 # always be unresolved, which means just about no library would
9665 # ever link correctly. If we're not using GNU ld we use -z text
9666 # though, which does catch some bad symbols but isn't as heavy-handed
9667 # as -z defs.
9668 no_undefined_flag='${wl}-z,text'
9669 allow_undefined_flag='${wl}-z,nodefs'
9670 archive_cmds_need_lc=no
9671 hardcode_shlibpath_var=no
9672 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9673 hardcode_libdir_separator=':'
9674 link_all_deplibs=yes
9675 export_dynamic_flag_spec='${wl}-Bexport'
9676 runpath_var='LD_RUN_PATH'
9677
9678 if test "$GCC" = yes; then
9679 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 else
9682 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 fi
9685 ;;
9686
9687 uts4*)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 *)
9694 ld_shlibs=no
9695 ;;
9696 esac
9697 fi
9698
9699 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9700 echo "${ECHO_T}$ld_shlibs" >&6
9701 test "$ld_shlibs" = no && can_build_shared=no
9702
9703 #
9704 # Do we need to explicitly link libc?
9705 #
9706 case "x$archive_cmds_need_lc" in
9707 x|xyes)
9708 # Assume -lc should be added
9709 archive_cmds_need_lc=yes
9710
9711 if test "$enable_shared" = yes && test "$GCC" = yes; then
9712 case $archive_cmds in
9713 *'~'*)
9714 # FIXME: we may have to deal with multi-command sequences.
9715 ;;
9716 '$CC '*)
9717 # Test whether the compiler implicitly links with -lc since on some
9718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9719 # to ld, don't add -lc before -lgcc.
9720 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9721 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9722 $rm conftest*
9723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9724
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } 2>conftest.err; then
9730 soname=conftest
9731 lib=conftest
9732 libobjs=conftest.$ac_objext
9733 deplibs=
9734 wl=$lt_prog_compiler_wl
9735 pic_flag=$lt_prog_compiler_pic
9736 compiler_flags=-v
9737 linker_flags=-v
9738 verstring=
9739 output_objdir=.
9740 libname=conftest
9741 lt_save_allow_undefined_flag=$allow_undefined_flag
9742 allow_undefined_flag=
9743 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9744 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }
9748 then
9749 archive_cmds_need_lc=no
9750 else
9751 archive_cmds_need_lc=yes
9752 fi
9753 allow_undefined_flag=$lt_save_allow_undefined_flag
9754 else
9755 cat conftest.err 1>&5
9756 fi
9757 $rm conftest*
9758 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9759 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9760 ;;
9761 esac
9762 fi
9763 ;;
9764 esac
9765
9766 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9767 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9768 library_names_spec=
9769 libname_spec='lib$name'
9770 soname_spec=
9771 shrext_cmds=".so"
9772 postinstall_cmds=
9773 postuninstall_cmds=
9774 finish_cmds=
9775 finish_eval=
9776 shlibpath_var=
9777 shlibpath_overrides_runpath=unknown
9778 version_type=none
9779 dynamic_linker="$host_os ld.so"
9780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9781 if test "$GCC" = yes; then
9782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9784 # if the path contains ";" then we assume it to be the separator
9785 # otherwise default to the standard path separator (i.e. ":") - it is
9786 # assumed that no part of a normal pathname contains ";" but that should
9787 # okay in the real world where ";" in dirpaths is itself problematic.
9788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9789 else
9790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9791 fi
9792 else
9793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9794 fi
9795 need_lib_prefix=unknown
9796 hardcode_into_libs=no
9797
9798 # when you set need_version to no, make sure it does not cause -set_version
9799 # flags to be left without arguments
9800 need_version=unknown
9801
9802 case $host_os in
9803 aix3*)
9804 version_type=linux
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9806 shlibpath_var=LIBPATH
9807
9808 # AIX 3 has no versioning support, so we append a major version to the name.
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 ;;
9811
9812 aix4* | aix5*)
9813 version_type=linux
9814 need_lib_prefix=no
9815 need_version=no
9816 hardcode_into_libs=yes
9817 if test "$host_cpu" = ia64; then
9818 # AIX 5 supports IA64
9819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 else
9822 # With GCC up to 2.95.x, collect2 would create an import file
9823 # for dependence libraries. The import file would start with
9824 # the line `#! .'. This would cause the generated library to
9825 # depend on `.', always an invalid library. This was fixed in
9826 # development snapshots of GCC prior to 3.0.
9827 case $host_os in
9828 aix4 | aix4.[01] | aix4.[01].*)
9829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9830 echo ' yes '
9831 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9832 :
9833 else
9834 can_build_shared=no
9835 fi
9836 ;;
9837 esac
9838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9839 # soname into executable. Probably we can add versioning support to
9840 # collect2, so additional links can be useful in future.
9841 if test "$aix_use_runtimelinking" = yes; then
9842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9843 # instead of lib<name>.a to let people know that these are not
9844 # typical AIX shared libraries.
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 else
9847 # We preserve .a as extension for shared libraries through AIX4.2
9848 # and later when we are not doing run time linking.
9849 library_names_spec='${libname}${release}.a $libname.a'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 fi
9852 shlibpath_var=LIBPATH
9853 fi
9854 ;;
9855
9856 amigaos*)
9857 library_names_spec='$libname.ixlibrary $libname.a'
9858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9859 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'
9860 ;;
9861
9862 beos*)
9863 library_names_spec='${libname}${shared_ext}'
9864 dynamic_linker="$host_os ld.so"
9865 shlibpath_var=LIBRARY_PATH
9866 ;;
9867
9868 bsdi[45]*)
9869 version_type=linux
9870 need_version=no
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9877 # the default ld.so.conf also contains /usr/contrib/lib and
9878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9879 # libtool to hard-code these into programs
9880 ;;
9881
9882 cygwin* | mingw* | pw32*)
9883 version_type=windows
9884 shrext_cmds=".dll"
9885 need_version=no
9886 need_lib_prefix=no
9887
9888 case $GCC,$host_os in
9889 yes,cygwin* | yes,mingw* | yes,pw32*)
9890 library_names_spec='$libname.dll.a'
9891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9892 postinstall_cmds='base_file=`basename \${file}`~
9893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9894 dldir=$destdir/`dirname \$dlpath`~
9895 test -d \$dldir || mkdir -p \$dldir~
9896 $install_prog $dir/$dlname \$dldir/$dlname~
9897 chmod a+x \$dldir/$dlname'
9898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9899 dlpath=$dir/\$dldll~
9900 $rm \$dlpath'
9901 shlibpath_overrides_runpath=yes
9902
9903 case $host_os in
9904 cygwin*)
9905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9907 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9908 ;;
9909 mingw*)
9910 # MinGW DLLs use traditional 'lib' prefix
9911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9913 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9914 # It is most probably a Windows format PATH printed by
9915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9916 # path with ; separators, and with drive letters. We can handle the
9917 # drive letters (cygwin fileutils understands them), so leave them,
9918 # especially as we might pass files found there to a mingw objdump,
9919 # which wouldn't understand a cygwinified path. Ahh.
9920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9921 else
9922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9923 fi
9924 ;;
9925 pw32*)
9926 # pw32 DLLs use 'pw' prefix rather than 'lib'
9927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 ;;
9929 esac
9930 ;;
9931
9932 *)
9933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9934 ;;
9935 esac
9936 dynamic_linker='Win32 ld.exe'
9937 # FIXME: first we should search . and the directory the executable is in
9938 shlibpath_var=PATH
9939 ;;
9940
9941 darwin* | rhapsody*)
9942 dynamic_linker="$host_os dyld"
9943 version_type=darwin
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9947 soname_spec='${libname}${release}${major}$shared_ext'
9948 shlibpath_overrides_runpath=yes
9949 shlibpath_var=DYLD_LIBRARY_PATH
9950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9951 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9952 if test "$GCC" = yes; then
9953 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9954 else
9955 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9956 fi
9957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9958 ;;
9959
9960 dgux*)
9961 version_type=linux
9962 need_lib_prefix=no
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 ;;
9968
9969 freebsd1*)
9970 dynamic_linker=no
9971 ;;
9972
9973 kfreebsd*-gnu)
9974 version_type=linux
9975 need_lib_prefix=no
9976 need_version=no
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 shlibpath_overrides_runpath=no
9981 hardcode_into_libs=yes
9982 dynamic_linker='GNU ld.so'
9983 ;;
9984
9985 freebsd* | dragonfly*)
9986 # DragonFly does not have aout. When/if they implement a new
9987 # versioning mechanism, adjust this.
9988 if test -x /usr/bin/objformat; then
9989 objformat=`/usr/bin/objformat`
9990 else
9991 case $host_os in
9992 freebsd[123]*) objformat=aout ;;
9993 *) objformat=elf ;;
9994 esac
9995 fi
9996 version_type=freebsd-$objformat
9997 case $version_type in
9998 freebsd-elf*)
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10000 need_version=no
10001 need_lib_prefix=no
10002 ;;
10003 freebsd-*)
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10005 need_version=yes
10006 ;;
10007 esac
10008 shlibpath_var=LD_LIBRARY_PATH
10009 case $host_os in
10010 freebsd2*)
10011 shlibpath_overrides_runpath=yes
10012 ;;
10013 freebsd3.[01]* | freebsdelf3.[01]*)
10014 shlibpath_overrides_runpath=yes
10015 hardcode_into_libs=yes
10016 ;;
10017 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10018 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10019 shlibpath_overrides_runpath=no
10020 hardcode_into_libs=yes
10021 ;;
10022 freebsd*) # from 4.6 on
10023 shlibpath_overrides_runpath=yes
10024 hardcode_into_libs=yes
10025 ;;
10026 esac
10027 ;;
10028
10029 gnu*)
10030 version_type=linux
10031 need_lib_prefix=no
10032 need_version=no
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10036 hardcode_into_libs=yes
10037 ;;
10038
10039 hpux9* | hpux10* | hpux11*)
10040 # Give a soname corresponding to the major version so that dld.sl refuses to
10041 # link against other versions.
10042 version_type=sunos
10043 need_lib_prefix=no
10044 need_version=no
10045 case $host_cpu in
10046 ia64*)
10047 shrext_cmds='.so'
10048 hardcode_into_libs=yes
10049 dynamic_linker="$host_os dld.so"
10050 shlibpath_var=LD_LIBRARY_PATH
10051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 if test "X$HPUX_IA64_MODE" = X32; then
10055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10056 else
10057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10058 fi
10059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10060 ;;
10061 hppa*64*)
10062 shrext_cmds='.sl'
10063 hardcode_into_libs=yes
10064 dynamic_linker="$host_os dld.sl"
10065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10071 ;;
10072 *)
10073 shrext_cmds='.sl'
10074 dynamic_linker="$host_os dld.sl"
10075 shlibpath_var=SHLIB_PATH
10076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 ;;
10080 esac
10081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10082 postinstall_cmds='chmod 555 $lib'
10083 ;;
10084
10085 interix3*)
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10095 ;;
10096
10097 irix5* | irix6* | nonstopux*)
10098 case $host_os in
10099 nonstopux*) version_type=nonstopux ;;
10100 *)
10101 if test "$lt_cv_prog_gnu_ld" = yes; then
10102 version_type=linux
10103 else
10104 version_type=irix
10105 fi ;;
10106 esac
10107 need_lib_prefix=no
10108 need_version=no
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10111 case $host_os in
10112 irix5* | nonstopux*)
10113 libsuff= shlibsuff=
10114 ;;
10115 *)
10116 case $LD in # libtool.m4 will add one of these switches to LD
10117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10118 libsuff= shlibsuff= libmagic=32-bit;;
10119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10120 libsuff=32 shlibsuff=N32 libmagic=N32;;
10121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10123 *) libsuff= shlibsuff= libmagic=never-match;;
10124 esac
10125 ;;
10126 esac
10127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10128 shlibpath_overrides_runpath=no
10129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10131 hardcode_into_libs=yes
10132 ;;
10133
10134 # No shared lib support for Linux oldld, aout, or coff.
10135 linux*oldld* | linux*aout* | linux*coff*)
10136 dynamic_linker=no
10137 ;;
10138
10139 # This must be Linux ELF.
10140 linux*)
10141 version_type=linux
10142 need_lib_prefix=no
10143 need_version=no
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=no
10149 # This implies no fast_install, which is unacceptable.
10150 # Some rework will be needed to allow for fast_install
10151 # before this can be enabled.
10152 hardcode_into_libs=yes
10153
10154 # Append ld.so.conf contents to the search path
10155 if test -f /etc/ld.so.conf; then
10156 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10157 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10158 fi
10159
10160 # We used to test for /lib/ld.so.1 and disable shared libraries on
10161 # powerpc, because MkLinux only supported shared libraries with the
10162 # GNU dynamic linker. Since this was broken with cross compilers,
10163 # most powerpc-linux boxes support dynamic linking these days and
10164 # people can always --disable-shared, the test was removed, and we
10165 # assume the GNU/Linux dynamic linker is in use.
10166 dynamic_linker='GNU/Linux ld.so'
10167 ;;
10168
10169 knetbsd*-gnu)
10170 version_type=linux
10171 need_lib_prefix=no
10172 need_version=no
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 shlibpath_overrides_runpath=no
10177 hardcode_into_libs=yes
10178 dynamic_linker='GNU ld.so'
10179 ;;
10180
10181 netbsd*)
10182 version_type=sunos
10183 need_lib_prefix=no
10184 need_version=no
10185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10188 dynamic_linker='NetBSD (a.out) ld.so'
10189 else
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 dynamic_linker='NetBSD ld.elf_so'
10193 fi
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=yes
10196 hardcode_into_libs=yes
10197 ;;
10198
10199 newsos6)
10200 version_type=linux
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=yes
10204 ;;
10205
10206 nto-qnx*)
10207 version_type=linux
10208 need_lib_prefix=no
10209 need_version=no
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10214 ;;
10215
10216 openbsd*)
10217 version_type=sunos
10218 sys_lib_dlsearch_path_spec="/usr/lib"
10219 need_lib_prefix=no
10220 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10221 case $host_os in
10222 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10223 *) need_version=no ;;
10224 esac
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229 case $host_os in
10230 openbsd2.[89] | openbsd2.[89].*)
10231 shlibpath_overrides_runpath=no
10232 ;;
10233 *)
10234 shlibpath_overrides_runpath=yes
10235 ;;
10236 esac
10237 else
10238 shlibpath_overrides_runpath=yes
10239 fi
10240 ;;
10241
10242 os2*)
10243 libname_spec='$name'
10244 shrext_cmds=".dll"
10245 need_lib_prefix=no
10246 library_names_spec='$libname${shared_ext} $libname.a'
10247 dynamic_linker='OS/2 ld.exe'
10248 shlibpath_var=LIBPATH
10249 ;;
10250
10251 osf3* | osf4* | osf5*)
10252 version_type=osf
10253 need_lib_prefix=no
10254 need_version=no
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10259 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10260 ;;
10261
10262 solaris*)
10263 version_type=linux
10264 need_lib_prefix=no
10265 need_version=no
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10270 hardcode_into_libs=yes
10271 # ldd complains unless libraries are executable
10272 postinstall_cmds='chmod +x $lib'
10273 ;;
10274
10275 sunos4*)
10276 version_type=sunos
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 if test "$with_gnu_ld" = yes; then
10282 need_lib_prefix=no
10283 fi
10284 need_version=yes
10285 ;;
10286
10287 sysv4 | sysv4.3*)
10288 version_type=linux
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 case $host_vendor in
10293 sni)
10294 shlibpath_overrides_runpath=no
10295 need_lib_prefix=no
10296 export_dynamic_flag_spec='${wl}-Blargedynsym'
10297 runpath_var=LD_RUN_PATH
10298 ;;
10299 siemens)
10300 need_lib_prefix=no
10301 ;;
10302 motorola)
10303 need_lib_prefix=no
10304 need_version=no
10305 shlibpath_overrides_runpath=no
10306 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10307 ;;
10308 esac
10309 ;;
10310
10311 sysv4*MP*)
10312 if test -d /usr/nec ;then
10313 version_type=linux
10314 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10315 soname_spec='$libname${shared_ext}.$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 fi
10318 ;;
10319
10320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10321 version_type=freebsd-elf
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 hardcode_into_libs=yes
10328 if test "$with_gnu_ld" = yes; then
10329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10330 shlibpath_overrides_runpath=no
10331 else
10332 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10333 shlibpath_overrides_runpath=yes
10334 case $host_os in
10335 sco3.2v5*)
10336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10337 ;;
10338 esac
10339 fi
10340 sys_lib_dlsearch_path_spec='/usr/lib'
10341 ;;
10342
10343 uts4*)
10344 version_type=linux
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 ;;
10349
10350 *)
10351 dynamic_linker=no
10352 ;;
10353 esac
10354 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10355 echo "${ECHO_T}$dynamic_linker" >&6
10356 test "$dynamic_linker" = no && can_build_shared=no
10357
10358 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10359 if test "$GCC" = yes; then
10360 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10361 fi
10362
10363 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10364 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10365 hardcode_action=
10366 if test -n "$hardcode_libdir_flag_spec" || \
10367 test -n "$runpath_var" || \
10368 test "X$hardcode_automatic" = "Xyes" ; then
10369
10370 # We can hardcode non-existant directories.
10371 if test "$hardcode_direct" != no &&
10372 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10373 # have to relink, otherwise we might link with an installed library
10374 # when we should be linking with a yet-to-be-installed one
10375 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10376 test "$hardcode_minus_L" != no; then
10377 # Linking always hardcodes the temporary library directory.
10378 hardcode_action=relink
10379 else
10380 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10381 hardcode_action=immediate
10382 fi
10383 else
10384 # We cannot hardcode anything, or else we can only hardcode existing
10385 # directories.
10386 hardcode_action=unsupported
10387 fi
10388 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10389 echo "${ECHO_T}$hardcode_action" >&6
10390
10391 if test "$hardcode_action" = relink; then
10392 # Fast installation is not supported
10393 enable_fast_install=no
10394 elif test "$shlibpath_overrides_runpath" = yes ||
10395 test "$enable_shared" = no; then
10396 # Fast installation is not necessary
10397 enable_fast_install=needless
10398 fi
10399
10400 striplib=
10401 old_striplib=
10402 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10403 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10404 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10406 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10407 echo "$as_me:$LINENO: result: yes" >&5
10408 echo "${ECHO_T}yes" >&6
10409 else
10410 # FIXME - insert some real tests, host_os isn't really good enough
10411 case $host_os in
10412 darwin*)
10413 if test -n "$STRIP" ; then
10414 striplib="$STRIP -x"
10415 echo "$as_me:$LINENO: result: yes" >&5
10416 echo "${ECHO_T}yes" >&6
10417 else
10418 echo "$as_me:$LINENO: result: no" >&5
10419 echo "${ECHO_T}no" >&6
10420 fi
10421 ;;
10422 *)
10423 echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6
10425 ;;
10426 esac
10427 fi
10428
10429 if test "x$enable_dlopen" != xyes; then
10430 enable_dlopen=unknown
10431 enable_dlopen_self=unknown
10432 enable_dlopen_self_static=unknown
10433 else
10434 lt_cv_dlopen=no
10435 lt_cv_dlopen_libs=
10436
10437 case $host_os in
10438 beos*)
10439 lt_cv_dlopen="load_add_on"
10440 lt_cv_dlopen_libs=
10441 lt_cv_dlopen_self=yes
10442 ;;
10443
10444 mingw* | pw32*)
10445 lt_cv_dlopen="LoadLibrary"
10446 lt_cv_dlopen_libs=
10447 ;;
10448
10449 cygwin*)
10450 lt_cv_dlopen="dlopen"
10451 lt_cv_dlopen_libs=
10452 ;;
10453
10454 darwin*)
10455 # if libdl is installed we need to link against it
10456 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-ldl $LIBS"
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469
10470 /* Override any gcc2 internal prototype to avoid an error. */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 /* We use char because int might match the return type of a gcc2
10475 builtin and then its argument prototype would still apply. */
10476 char dlopen ();
10477 int
10478 main ()
10479 {
10480 dlopen ();
10481 ;
10482 return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -z "$ac_c_werror_flag"
10495 || test ! -s conftest.err'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; } &&
10501 { ac_try='test -s conftest$ac_exeext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_lib_dl_dlopen=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_cv_lib_dl_dlopen=no
10513 fi
10514 rm -f conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_lib_save_LIBS
10517 fi
10518 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10520 if test $ac_cv_lib_dl_dlopen = yes; then
10521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10522 else
10523
10524 lt_cv_dlopen="dyld"
10525 lt_cv_dlopen_libs=
10526 lt_cv_dlopen_self=yes
10527
10528 fi
10529
10530 ;;
10531
10532 *)
10533 echo "$as_me:$LINENO: checking for shl_load" >&5
10534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10535 if test "${ac_cv_func_shl_load+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h. */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10546 #define shl_load innocuous_shl_load
10547
10548 /* System header to define __stub macros and hopefully few prototypes,
10549 which can conflict with char shl_load (); below.
10550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551 <limits.h> exists even on freestanding compilers. */
10552
10553 #ifdef __STDC__
10554 # include <limits.h>
10555 #else
10556 # include <assert.h>
10557 #endif
10558
10559 #undef shl_load
10560
10561 /* Override any gcc2 internal prototype to avoid an error. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 {
10565 #endif
10566 /* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10568 char shl_load ();
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10573 choke me
10574 #else
10575 char (*f) () = shl_load;
10576 #endif
10577 #ifdef __cplusplus
10578 }
10579 #endif
10580
10581 int
10582 main ()
10583 {
10584 return f != shl_load;
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591 (eval $ac_link) 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_func_shl_load=yes
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 ac_cv_func_shl_load=no
10617 fi
10618 rm -f conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10622 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10623 if test $ac_cv_func_shl_load = yes; then
10624 lt_cv_dlopen="shl_load"
10625 else
10626 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10627 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10628 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631 ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-ldld $LIBS"
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639
10640 /* Override any gcc2 internal prototype to avoid an error. */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10646 char shl_load ();
10647 int
10648 main ()
10649 {
10650 shl_load ();
10651 ;
10652 return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657 (eval $ac_link) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_dld_shl_load=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_lib_dld_shl_load=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10687 fi
10688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10690 if test $ac_cv_lib_dld_shl_load = yes; then
10691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10692 else
10693 echo "$as_me:$LINENO: checking for dlopen" >&5
10694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10695 if test "${ac_cv_func_dlopen+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10706 #define dlopen innocuous_dlopen
10707
10708 /* System header to define __stub macros and hopefully few prototypes,
10709 which can conflict with char dlopen (); below.
10710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711 <limits.h> exists even on freestanding compilers. */
10712
10713 #ifdef __STDC__
10714 # include <limits.h>
10715 #else
10716 # include <assert.h>
10717 #endif
10718
10719 #undef dlopen
10720
10721 /* Override any gcc2 internal prototype to avoid an error. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 {
10725 #endif
10726 /* We use char because int might match the return type of a gcc2
10727 builtin and then its argument prototype would still apply. */
10728 char dlopen ();
10729 /* The GNU C library defines this for functions which it implements
10730 to always fail with ENOSYS. Some functions are actually named
10731 something starting with __ and the normal name is an alias. */
10732 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10733 choke me
10734 #else
10735 char (*f) () = dlopen;
10736 #endif
10737 #ifdef __cplusplus
10738 }
10739 #endif
10740
10741 int
10742 main ()
10743 {
10744 return f != dlopen;
10745 ;
10746 return 0;
10747 }
10748 _ACEOF
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag"
10759 || test ! -s conftest.err'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10771 ac_cv_func_dlopen=yes
10772 else
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_func_dlopen=no
10777 fi
10778 rm -f conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 fi
10781 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10782 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10783 if test $ac_cv_func_dlopen = yes; then
10784 lt_cv_dlopen="dlopen"
10785 else
10786 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10787 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10788 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldl $LIBS"
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799
10800 /* Override any gcc2 internal prototype to avoid an error. */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10806 char dlopen ();
10807 int
10808 main ()
10809 {
10810 dlopen ();
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag"
10825 || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_cv_lib_dl_dlopen=yes
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842 ac_cv_lib_dl_dlopen=no
10843 fi
10844 rm -f conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10850 if test $ac_cv_lib_dl_dlopen = yes; then
10851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10852 else
10853 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10854 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10855 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 ac_check_lib_save_LIBS=$LIBS
10859 LIBS="-lsvld $LIBS"
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866
10867 /* Override any gcc2 internal prototype to avoid an error. */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10873 char dlopen ();
10874 int
10875 main ()
10876 {
10877 dlopen ();
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag"
10892 || test ! -s conftest.err'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_cv_lib_svld_dlopen=yes
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 ac_cv_lib_svld_dlopen=no
10910 fi
10911 rm -f conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10914 fi
10915 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10916 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10917 if test $ac_cv_lib_svld_dlopen = yes; then
10918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10919 else
10920 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10921 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-ldld $LIBS"
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933
10934 /* Override any gcc2 internal prototype to avoid an error. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 /* We use char because int might match the return type of a gcc2
10939 builtin and then its argument prototype would still apply. */
10940 char dld_link ();
10941 int
10942 main ()
10943 {
10944 dld_link ();
10945 ;
10946 return 0;
10947 }
10948 _ACEOF
10949 rm -f conftest.$ac_objext conftest$ac_exeext
10950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951 (eval $ac_link) 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_c_werror_flag"
10959 || test ! -s conftest.err'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; } &&
10965 { ac_try='test -s conftest$ac_exeext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 ac_cv_lib_dld_dld_link=yes
10972 else
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ac_cv_lib_dld_dld_link=no
10977 fi
10978 rm -f conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10981 fi
10982 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10983 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10984 if test $ac_cv_lib_dld_dld_link = yes; then
10985 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10986 fi
10987
10988
10989 fi
10990
10991
10992 fi
10993
10994
10995 fi
10996
10997
10998 fi
10999
11000
11001 fi
11002
11003 ;;
11004 esac
11005
11006 if test "x$lt_cv_dlopen" != xno; then
11007 enable_dlopen=yes
11008 else
11009 enable_dlopen=no
11010 fi
11011
11012 case $lt_cv_dlopen in
11013 dlopen)
11014 save_CPPFLAGS="$CPPFLAGS"
11015 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11016
11017 save_LDFLAGS="$LDFLAGS"
11018 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11019
11020 save_LIBS="$LIBS"
11021 LIBS="$lt_cv_dlopen_libs $LIBS"
11022
11023 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11024 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11025 if test "${lt_cv_dlopen_self+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 if test "$cross_compiling" = yes; then :
11029 lt_cv_dlopen_self=cross
11030 else
11031 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11032 lt_status=$lt_dlunknown
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11034 "configure"
11035 #include "confdefs.h"
11036
11037 #if HAVE_DLFCN_H
11038 #include <dlfcn.h>
11039 #endif
11040
11041 #include <stdio.h>
11042
11043 #ifdef RTLD_GLOBAL
11044 # define LT_DLGLOBAL RTLD_GLOBAL
11045 #else
11046 # ifdef DL_GLOBAL
11047 # define LT_DLGLOBAL DL_GLOBAL
11048 # else
11049 # define LT_DLGLOBAL 0
11050 # endif
11051 #endif
11052
11053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11054 find out it does not work in some platform. */
11055 #ifndef LT_DLLAZY_OR_NOW
11056 # ifdef RTLD_LAZY
11057 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11058 # else
11059 # ifdef DL_LAZY
11060 # define LT_DLLAZY_OR_NOW DL_LAZY
11061 # else
11062 # ifdef RTLD_NOW
11063 # define LT_DLLAZY_OR_NOW RTLD_NOW
11064 # else
11065 # ifdef DL_NOW
11066 # define LT_DLLAZY_OR_NOW DL_NOW
11067 # else
11068 # define LT_DLLAZY_OR_NOW 0
11069 # endif
11070 # endif
11071 # endif
11072 # endif
11073 #endif
11074
11075 #ifdef __cplusplus
11076 extern "C" void exit (int);
11077 #endif
11078
11079 void fnord() { int i=42;}
11080 int main ()
11081 {
11082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11083 int status = $lt_dlunknown;
11084
11085 if (self)
11086 {
11087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11088 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11089 /* dlclose (self); */
11090 }
11091 else
11092 puts (dlerror ());
11093
11094 exit (status);
11095 }
11096 EOF
11097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11098 (eval $ac_link) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11102 (./conftest; exit; ) >&5 2>/dev/null
11103 lt_status=$?
11104 case x$lt_status in
11105 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11106 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11107 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11108 esac
11109 else :
11110 # compilation failed
11111 lt_cv_dlopen_self=no
11112 fi
11113 fi
11114 rm -fr conftest*
11115
11116
11117 fi
11118 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11119 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11120
11121 if test "x$lt_cv_dlopen_self" = xyes; then
11122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11123 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11124 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11125 if test "${lt_cv_dlopen_self_static+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128 if test "$cross_compiling" = yes; then :
11129 lt_cv_dlopen_self_static=cross
11130 else
11131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11132 lt_status=$lt_dlunknown
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11134 "configure"
11135 #include "confdefs.h"
11136
11137 #if HAVE_DLFCN_H
11138 #include <dlfcn.h>
11139 #endif
11140
11141 #include <stdio.h>
11142
11143 #ifdef RTLD_GLOBAL
11144 # define LT_DLGLOBAL RTLD_GLOBAL
11145 #else
11146 # ifdef DL_GLOBAL
11147 # define LT_DLGLOBAL DL_GLOBAL
11148 # else
11149 # define LT_DLGLOBAL 0
11150 # endif
11151 #endif
11152
11153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11154 find out it does not work in some platform. */
11155 #ifndef LT_DLLAZY_OR_NOW
11156 # ifdef RTLD_LAZY
11157 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11158 # else
11159 # ifdef DL_LAZY
11160 # define LT_DLLAZY_OR_NOW DL_LAZY
11161 # else
11162 # ifdef RTLD_NOW
11163 # define LT_DLLAZY_OR_NOW RTLD_NOW
11164 # else
11165 # ifdef DL_NOW
11166 # define LT_DLLAZY_OR_NOW DL_NOW
11167 # else
11168 # define LT_DLLAZY_OR_NOW 0
11169 # endif
11170 # endif
11171 # endif
11172 # endif
11173 #endif
11174
11175 #ifdef __cplusplus
11176 extern "C" void exit (int);
11177 #endif
11178
11179 void fnord() { int i=42;}
11180 int main ()
11181 {
11182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11183 int status = $lt_dlunknown;
11184
11185 if (self)
11186 {
11187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11188 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11189 /* dlclose (self); */
11190 }
11191 else
11192 puts (dlerror ());
11193
11194 exit (status);
11195 }
11196 EOF
11197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198 (eval $ac_link) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11202 (./conftest; exit; ) >&5 2>/dev/null
11203 lt_status=$?
11204 case x$lt_status in
11205 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11206 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11207 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11208 esac
11209 else :
11210 # compilation failed
11211 lt_cv_dlopen_self_static=no
11212 fi
11213 fi
11214 rm -fr conftest*
11215
11216
11217 fi
11218 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11219 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11220 fi
11221
11222 CPPFLAGS="$save_CPPFLAGS"
11223 LDFLAGS="$save_LDFLAGS"
11224 LIBS="$save_LIBS"
11225 ;;
11226 esac
11227
11228 case $lt_cv_dlopen_self in
11229 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11230 *) enable_dlopen_self=unknown ;;
11231 esac
11232
11233 case $lt_cv_dlopen_self_static in
11234 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11235 *) enable_dlopen_self_static=unknown ;;
11236 esac
11237 fi
11238
11239
11240 # Report which library types will actually be built
11241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11244 echo "${ECHO_T}$can_build_shared" >&6
11245
11246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11248 test "$can_build_shared" = "no" && enable_shared=no
11249
11250 # On AIX, shared libraries and static libraries use the same namespace, and
11251 # are all built from PIC.
11252 case $host_os in
11253 aix3*)
11254 test "$enable_shared" = yes && enable_static=no
11255 if test -n "$RANLIB"; then
11256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11257 postinstall_cmds='$RANLIB $lib'
11258 fi
11259 ;;
11260
11261 aix4* | aix5*)
11262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11263 test "$enable_shared" = yes && enable_static=no
11264 fi
11265 ;;
11266 esac
11267 echo "$as_me:$LINENO: result: $enable_shared" >&5
11268 echo "${ECHO_T}$enable_shared" >&6
11269
11270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11272 # Make sure either enable_shared or enable_static is yes.
11273 test "$enable_shared" = yes || enable_static=yes
11274 echo "$as_me:$LINENO: result: $enable_static" >&5
11275 echo "${ECHO_T}$enable_static" >&6
11276
11277 # The else clause should only fire when bootstrapping the
11278 # libtool distribution, otherwise you forgot to ship ltmain.sh
11279 # with your package, and you will get complaints that there are
11280 # no rules to generate ltmain.sh.
11281 if test -f "$ltmain"; then
11282 # See if we are running on zsh, and set the options which allow our commands through
11283 # without removal of \ escapes.
11284 if test -n "${ZSH_VERSION+set}" ; then
11285 setopt NO_GLOB_SUBST
11286 fi
11287 # Now quote all the things that may contain metacharacters while being
11288 # careful not to overquote the AC_SUBSTed values. We take copies of the
11289 # variables and quote the copies for generation of the libtool script.
11290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11291 SED SHELL STRIP \
11292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11294 deplibs_check_method reload_flag reload_cmds need_locks \
11295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11296 lt_cv_sys_global_symbol_to_c_name_address \
11297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11298 old_postinstall_cmds old_postuninstall_cmds \
11299 compiler \
11300 CC \
11301 LD \
11302 lt_prog_compiler_wl \
11303 lt_prog_compiler_pic \
11304 lt_prog_compiler_static \
11305 lt_prog_compiler_no_builtin_flag \
11306 export_dynamic_flag_spec \
11307 thread_safe_flag_spec \
11308 whole_archive_flag_spec \
11309 enable_shared_with_static_runtimes \
11310 old_archive_cmds \
11311 old_archive_from_new_cmds \
11312 predep_objects \
11313 postdep_objects \
11314 predeps \
11315 postdeps \
11316 compiler_lib_search_path \
11317 archive_cmds \
11318 archive_expsym_cmds \
11319 postinstall_cmds \
11320 postuninstall_cmds \
11321 old_archive_from_expsyms_cmds \
11322 allow_undefined_flag \
11323 no_undefined_flag \
11324 export_symbols_cmds \
11325 hardcode_libdir_flag_spec \
11326 hardcode_libdir_flag_spec_ld \
11327 hardcode_libdir_separator \
11328 hardcode_automatic \
11329 module_cmds \
11330 module_expsym_cmds \
11331 lt_cv_prog_compiler_c_o \
11332 exclude_expsyms \
11333 include_expsyms; do
11334
11335 case $var in
11336 old_archive_cmds | \
11337 old_archive_from_new_cmds | \
11338 archive_cmds | \
11339 archive_expsym_cmds | \
11340 module_cmds | \
11341 module_expsym_cmds | \
11342 old_archive_from_expsyms_cmds | \
11343 export_symbols_cmds | \
11344 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11345 postinstall_cmds | postuninstall_cmds | \
11346 old_postinstall_cmds | old_postuninstall_cmds | \
11347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11348 # Double-quote double-evaled strings.
11349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11350 ;;
11351 *)
11352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11353 ;;
11354 esac
11355 done
11356
11357 case $lt_echo in
11358 *'\$0 --fallback-echo"')
11359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11360 ;;
11361 esac
11362
11363 cfgfile="${ofile}T"
11364 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11365 $rm -f "$cfgfile"
11366 { echo "$as_me:$LINENO: creating $ofile" >&5
11367 echo "$as_me: creating $ofile" >&6;}
11368
11369 cat <<__EOF__ >> "$cfgfile"
11370 #! $SHELL
11371
11372 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11373 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11375 #
11376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11377 # Free Software Foundation, Inc.
11378 #
11379 # This file is part of GNU Libtool:
11380 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11381 #
11382 # This program is free software; you can redistribute it and/or modify
11383 # it under the terms of the GNU General Public License as published by
11384 # the Free Software Foundation; either version 2 of the License, or
11385 # (at your option) any later version.
11386 #
11387 # This program is distributed in the hope that it will be useful, but
11388 # WITHOUT ANY WARRANTY; without even the implied warranty of
11389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11390 # General Public License for more details.
11391 #
11392 # You should have received a copy of the GNU General Public License
11393 # along with this program; if not, write to the Free Software
11394 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11395 #
11396 # As a special exception to the GNU General Public License, if you
11397 # distribute this file as part of a program that contains a
11398 # configuration script generated by Autoconf, you may include it under
11399 # the same distribution terms that you use for the rest of that program.
11400
11401 # A sed program that does not truncate output.
11402 SED=$lt_SED
11403
11404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11405 Xsed="$SED -e 1s/^X//"
11406
11407 # The HP-UX ksh and POSIX shell print the target directory to stdout
11408 # if CDPATH is set.
11409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11410
11411 # The names of the tagged configurations supported by this script.
11412 available_tags=
11413
11414 # ### BEGIN LIBTOOL CONFIG
11415
11416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11417
11418 # Shell to use when invoking shell scripts.
11419 SHELL=$lt_SHELL
11420
11421 # Whether or not to build shared libraries.
11422 build_libtool_libs=$enable_shared
11423
11424 # Whether or not to build static libraries.
11425 build_old_libs=$enable_static
11426
11427 # Whether or not to add -lc for building shared libraries.
11428 build_libtool_need_lc=$archive_cmds_need_lc
11429
11430 # Whether or not to disallow shared libs when runtime libs are static
11431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11432
11433 # Whether or not to optimize for fast installation.
11434 fast_install=$enable_fast_install
11435
11436 # The host system.
11437 host_alias=$host_alias
11438 host=$host
11439 host_os=$host_os
11440
11441 # The build system.
11442 build_alias=$build_alias
11443 build=$build
11444 build_os=$build_os
11445
11446 # An echo program that does not interpret backslashes.
11447 echo=$lt_echo
11448
11449 # The archiver.
11450 AR=$lt_AR
11451 AR_FLAGS=$lt_AR_FLAGS
11452
11453 # A C compiler.
11454 LTCC=$lt_LTCC
11455
11456 # LTCC compiler flags.
11457 LTCFLAGS=$lt_LTCFLAGS
11458
11459 # A language-specific compiler.
11460 CC=$lt_compiler
11461
11462 # Is the compiler the GNU C compiler?
11463 with_gcc=$GCC
11464
11465 # An ERE matcher.
11466 EGREP=$lt_EGREP
11467
11468 # The linker used to build libraries.
11469 LD=$lt_LD
11470
11471 # Whether we need hard or soft links.
11472 LN_S=$lt_LN_S
11473
11474 # A BSD-compatible nm program.
11475 NM=$lt_NM
11476
11477 # A symbol stripping program
11478 STRIP=$lt_STRIP
11479
11480 # Used to examine libraries when file_magic_cmd begins "file"
11481 MAGIC_CMD=$MAGIC_CMD
11482
11483 # Used on cygwin: DLL creation program.
11484 DLLTOOL="$DLLTOOL"
11485
11486 # Used on cygwin: object dumper.
11487 OBJDUMP="$OBJDUMP"
11488
11489 # Used on cygwin: assembler.
11490 AS="$AS"
11491
11492 # The name of the directory that contains temporary libtool files.
11493 objdir=$objdir
11494
11495 # How to create reloadable object files.
11496 reload_flag=$lt_reload_flag
11497 reload_cmds=$lt_reload_cmds
11498
11499 # How to pass a linker flag through the compiler.
11500 wl=$lt_lt_prog_compiler_wl
11501
11502 # Object file suffix (normally "o").
11503 objext="$ac_objext"
11504
11505 # Old archive suffix (normally "a").
11506 libext="$libext"
11507
11508 # Shared library suffix (normally ".so").
11509 shrext_cmds='$shrext_cmds'
11510
11511 # Executable file suffix (normally "").
11512 exeext="$exeext"
11513
11514 # Additional compiler flags for building library objects.
11515 pic_flag=$lt_lt_prog_compiler_pic
11516 pic_mode=$pic_mode
11517
11518 # What is the maximum length of a command?
11519 max_cmd_len=$lt_cv_sys_max_cmd_len
11520
11521 # Does compiler simultaneously support -c and -o options?
11522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11523
11524 # Must we lock files when doing compilation?
11525 need_locks=$lt_need_locks
11526
11527 # Do we need the lib prefix for modules?
11528 need_lib_prefix=$need_lib_prefix
11529
11530 # Do we need a version for libraries?
11531 need_version=$need_version
11532
11533 # Whether dlopen is supported.
11534 dlopen_support=$enable_dlopen
11535
11536 # Whether dlopen of programs is supported.
11537 dlopen_self=$enable_dlopen_self
11538
11539 # Whether dlopen of statically linked programs is supported.
11540 dlopen_self_static=$enable_dlopen_self_static
11541
11542 # Compiler flag to prevent dynamic linking.
11543 link_static_flag=$lt_lt_prog_compiler_static
11544
11545 # Compiler flag to turn off builtin functions.
11546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11547
11548 # Compiler flag to allow reflexive dlopens.
11549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11550
11551 # Compiler flag to generate shared objects directly from archives.
11552 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11553
11554 # Compiler flag to generate thread-safe objects.
11555 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11556
11557 # Library versioning type.
11558 version_type=$version_type
11559
11560 # Format of library name prefix.
11561 libname_spec=$lt_libname_spec
11562
11563 # List of archive names. First name is the real one, the rest are links.
11564 # The last name is the one that the linker finds with -lNAME.
11565 library_names_spec=$lt_library_names_spec
11566
11567 # The coded name of the library, if different from the real name.
11568 soname_spec=$lt_soname_spec
11569
11570 # Commands used to build and install an old-style archive.
11571 RANLIB=$lt_RANLIB
11572 old_archive_cmds=$lt_old_archive_cmds
11573 old_postinstall_cmds=$lt_old_postinstall_cmds
11574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11575
11576 # Create an old-style archive from a shared archive.
11577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11578
11579 # Create a temporary old-style archive to link instead of a shared archive.
11580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11581
11582 # Commands used to build and install a shared archive.
11583 archive_cmds=$lt_archive_cmds
11584 archive_expsym_cmds=$lt_archive_expsym_cmds
11585 postinstall_cmds=$lt_postinstall_cmds
11586 postuninstall_cmds=$lt_postuninstall_cmds
11587
11588 # Commands used to build a loadable module (assumed same as above if empty)
11589 module_cmds=$lt_module_cmds
11590 module_expsym_cmds=$lt_module_expsym_cmds
11591
11592 # Commands to strip libraries.
11593 old_striplib=$lt_old_striplib
11594 striplib=$lt_striplib
11595
11596 # Dependencies to place before the objects being linked to create a
11597 # shared library.
11598 predep_objects=$lt_predep_objects
11599
11600 # Dependencies to place after the objects being linked to create a
11601 # shared library.
11602 postdep_objects=$lt_postdep_objects
11603
11604 # Dependencies to place before the objects being linked to create a
11605 # shared library.
11606 predeps=$lt_predeps
11607
11608 # Dependencies to place after the objects being linked to create a
11609 # shared library.
11610 postdeps=$lt_postdeps
11611
11612 # The library search path used internally by the compiler when linking
11613 # a shared library.
11614 compiler_lib_search_path=$lt_compiler_lib_search_path
11615
11616 # Method to check whether dependent libraries are shared objects.
11617 deplibs_check_method=$lt_deplibs_check_method
11618
11619 # Command to use when deplibs_check_method == file_magic.
11620 file_magic_cmd=$lt_file_magic_cmd
11621
11622 # Flag that allows shared libraries with undefined symbols to be built.
11623 allow_undefined_flag=$lt_allow_undefined_flag
11624
11625 # Flag that forces no undefined symbols.
11626 no_undefined_flag=$lt_no_undefined_flag
11627
11628 # Commands used to finish a libtool library installation in a directory.
11629 finish_cmds=$lt_finish_cmds
11630
11631 # Same as above, but a single script fragment to be evaled but not shown.
11632 finish_eval=$lt_finish_eval
11633
11634 # Take the output of nm and produce a listing of raw symbols and C names.
11635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11636
11637 # Transform the output of nm in a proper C declaration
11638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11639
11640 # Transform the output of nm in a C name address pair
11641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11642
11643 # This is the shared library runtime path variable.
11644 runpath_var=$runpath_var
11645
11646 # This is the shared library path variable.
11647 shlibpath_var=$shlibpath_var
11648
11649 # Is shlibpath searched before the hard-coded library search path?
11650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11651
11652 # How to hardcode a shared library path into an executable.
11653 hardcode_action=$hardcode_action
11654
11655 # Whether we should hardcode library paths into libraries.
11656 hardcode_into_libs=$hardcode_into_libs
11657
11658 # Flag to hardcode \$libdir into a binary during linking.
11659 # This must work even if \$libdir does not exist.
11660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11661
11662 # If ld is used when linking, flag to hardcode \$libdir into
11663 # a binary during linking. This must work even if \$libdir does
11664 # not exist.
11665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11666
11667 # Whether we need a single -rpath flag with a separated argument.
11668 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11669
11670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11671 # resulting binary.
11672 hardcode_direct=$hardcode_direct
11673
11674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11675 # resulting binary.
11676 hardcode_minus_L=$hardcode_minus_L
11677
11678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11679 # the resulting binary.
11680 hardcode_shlibpath_var=$hardcode_shlibpath_var
11681
11682 # Set to yes if building a shared library automatically hardcodes DIR into the library
11683 # and all subsequent libraries and executables linked against it.
11684 hardcode_automatic=$hardcode_automatic
11685
11686 # Variables whose values should be saved in libtool wrapper scripts and
11687 # restored at relink time.
11688 variables_saved_for_relink="$variables_saved_for_relink"
11689
11690 # Whether libtool must link a program against all its dependency libraries.
11691 link_all_deplibs=$link_all_deplibs
11692
11693 # Compile-time system search path for libraries
11694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11695
11696 # Run-time system search path for libraries
11697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11698
11699 # Fix the shell variable \$srcfile for the compiler.
11700 fix_srcfile_path="$fix_srcfile_path"
11701
11702 # Set to yes if exported symbols are required.
11703 always_export_symbols=$always_export_symbols
11704
11705 # The commands to list exported symbols.
11706 export_symbols_cmds=$lt_export_symbols_cmds
11707
11708 # The commands to extract the exported symbol list from a shared archive.
11709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11710
11711 # Symbols that should not be listed in the preloaded symbols.
11712 exclude_expsyms=$lt_exclude_expsyms
11713
11714 # Symbols that must always be exported.
11715 include_expsyms=$lt_include_expsyms
11716
11717 # ### END LIBTOOL CONFIG
11718
11719 __EOF__
11720
11721
11722 case $host_os in
11723 aix3*)
11724 cat <<\EOF >> "$cfgfile"
11725
11726 # AIX sometimes has problems with the GCC collect2 program. For some
11727 # reason, if we set the COLLECT_NAMES environment variable, the problems
11728 # vanish in a puff of smoke.
11729 if test "X${COLLECT_NAMES+set}" != Xset; then
11730 COLLECT_NAMES=
11731 export COLLECT_NAMES
11732 fi
11733 EOF
11734 ;;
11735 esac
11736
11737 # We use sed instead of cat because bash on DJGPP gets confused if
11738 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11739 # text mode, it properly converts lines to CR/LF. This bash problem
11740 # is reportedly fixed, but why not run on old versions too?
11741 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11742
11743 mv -f "$cfgfile" "$ofile" || \
11744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11745 chmod +x "$ofile"
11746
11747 else
11748 # If there is no Makefile yet, we rely on a make rule to execute
11749 # `config.status --recheck' to rerun these tests and create the
11750 # libtool script then.
11751 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11752 if test -f "$ltmain_in"; then
11753 test -f Makefile && make "$ltmain"
11754 fi
11755 fi
11756
11757
11758 ac_ext=c
11759 ac_cpp='$CPP $CPPFLAGS'
11760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764 CC="$lt_save_CC"
11765
11766
11767 # Check whether --with-tags or --without-tags was given.
11768 if test "${with_tags+set}" = set; then
11769 withval="$with_tags"
11770 tagnames="$withval"
11771 fi;
11772
11773 if test -f "$ltmain" && test -n "$tagnames"; then
11774 if test ! -f "${ofile}"; then
11775 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11776 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11777 fi
11778
11779 if test -z "$LTCC"; then
11780 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11781 if test -z "$LTCC"; then
11782 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11783 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11784 else
11785 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11786 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11787 fi
11788 fi
11789 if test -z "$LTCFLAGS"; then
11790 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11791 fi
11792
11793 # Extract list of available tagged configurations in $ofile.
11794 # Note that this assumes the entire list is on one line.
11795 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11796
11797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11798 for tagname in $tagnames; do
11799 IFS="$lt_save_ifs"
11800 # Check whether tagname contains only valid characters
11801 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11802 "") ;;
11803 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11804 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11805 { (exit 1); exit 1; }; }
11806 ;;
11807 esac
11808
11809 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11810 then
11811 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11812 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11813 { (exit 1); exit 1; }; }
11814 fi
11815
11816 # Update the list of available tags.
11817 if test -n "$tagname"; then
11818 echo appending configuration tag \"$tagname\" to $ofile
11819
11820 case $tagname in
11821 CXX)
11822 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11823 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11824 (test "X$CXX" != "Xg++"))) ; then
11825 ac_ext=cc
11826 ac_cpp='$CXXCPP $CPPFLAGS'
11827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11830
11831
11832
11833
11834 archive_cmds_need_lc_CXX=no
11835 allow_undefined_flag_CXX=
11836 always_export_symbols_CXX=no
11837 archive_expsym_cmds_CXX=
11838 export_dynamic_flag_spec_CXX=
11839 hardcode_direct_CXX=no
11840 hardcode_libdir_flag_spec_CXX=
11841 hardcode_libdir_flag_spec_ld_CXX=
11842 hardcode_libdir_separator_CXX=
11843 hardcode_minus_L_CXX=no
11844 hardcode_shlibpath_var_CXX=unsupported
11845 hardcode_automatic_CXX=no
11846 module_cmds_CXX=
11847 module_expsym_cmds_CXX=
11848 link_all_deplibs_CXX=unknown
11849 old_archive_cmds_CXX=$old_archive_cmds
11850 no_undefined_flag_CXX=
11851 whole_archive_flag_spec_CXX=
11852 enable_shared_with_static_runtimes_CXX=no
11853
11854 # Dependencies to place before and after the object being linked:
11855 predep_objects_CXX=
11856 postdep_objects_CXX=
11857 predeps_CXX=
11858 postdeps_CXX=
11859 compiler_lib_search_path_CXX=
11860
11861 # Source file extension for C++ test sources.
11862 ac_ext=cpp
11863
11864 # Object file extension for compiled C++ test sources.
11865 objext=o
11866 objext_CXX=$objext
11867
11868 # Code to be used in simple compile tests
11869 lt_simple_compile_test_code="int some_variable = 0;\n"
11870
11871 # Code to be used in simple link tests
11872 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11873
11874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11875
11876 # If no C compiler was specified, use CC.
11877 LTCC=${LTCC-"$CC"}
11878
11879 # If no C compiler flags were specified, use CFLAGS.
11880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11881
11882 # Allow CC to be a program name with arguments.
11883 compiler=$CC
11884
11885
11886 # save warnings/boilerplate of simple test code
11887 ac_outfile=conftest.$ac_objext
11888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11890 _lt_compiler_boilerplate=`cat conftest.err`
11891 $rm conftest*
11892
11893 ac_outfile=conftest.$ac_objext
11894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11896 _lt_linker_boilerplate=`cat conftest.err`
11897 $rm conftest*
11898
11899
11900 # Allow CC to be a program name with arguments.
11901 lt_save_CC=$CC
11902 lt_save_LD=$LD
11903 lt_save_GCC=$GCC
11904 GCC=$GXX
11905 lt_save_with_gnu_ld=$with_gnu_ld
11906 lt_save_path_LD=$lt_cv_path_LD
11907 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11908 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11909 else
11910 $as_unset lt_cv_prog_gnu_ld
11911 fi
11912 if test -n "${lt_cv_path_LDCXX+set}"; then
11913 lt_cv_path_LD=$lt_cv_path_LDCXX
11914 else
11915 $as_unset lt_cv_path_LD
11916 fi
11917 test -z "${LDCXX+set}" || LD=$LDCXX
11918 CC=${CXX-"c++"}
11919 compiler=$CC
11920 compiler_CXX=$CC
11921 for cc_temp in $compiler""; do
11922 case $cc_temp in
11923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11925 \-*) ;;
11926 *) break;;
11927 esac
11928 done
11929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11930
11931
11932 # We don't want -fno-exception wen compiling C++ code, so set the
11933 # no_builtin_flag separately
11934 if test "$GXX" = yes; then
11935 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11936 else
11937 lt_prog_compiler_no_builtin_flag_CXX=
11938 fi
11939
11940 if test "$GXX" = yes; then
11941 # Set up default GNU C++ configuration
11942
11943
11944 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11945 if test "${with_gnu_ld+set}" = set; then
11946 withval="$with_gnu_ld"
11947 test "$withval" = no || with_gnu_ld=yes
11948 else
11949 with_gnu_ld=no
11950 fi;
11951 ac_prog=ld
11952 if test "$GCC" = yes; then
11953 # Check if gcc -print-prog-name=ld gives a path.
11954 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11955 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11956 case $host in
11957 *-*-mingw*)
11958 # gcc leaves a trailing carriage return which upsets mingw
11959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11960 *)
11961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11962 esac
11963 case $ac_prog in
11964 # Accept absolute paths.
11965 [\\/]* | ?:[\\/]*)
11966 re_direlt='/[^/][^/]*/\.\./'
11967 # Canonicalize the pathname of ld
11968 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11969 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11970 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11971 done
11972 test -z "$LD" && LD="$ac_prog"
11973 ;;
11974 "")
11975 # If it fails, then pretend we aren't using GCC.
11976 ac_prog=ld
11977 ;;
11978 *)
11979 # If it is relative, then search for the first ld in PATH.
11980 with_gnu_ld=unknown
11981 ;;
11982 esac
11983 elif test "$with_gnu_ld" = yes; then
11984 echo "$as_me:$LINENO: checking for GNU ld" >&5
11985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11986 else
11987 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11988 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11989 fi
11990 if test "${lt_cv_path_LD+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993 if test -z "$LD"; then
11994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11995 for ac_dir in $PATH; do
11996 IFS="$lt_save_ifs"
11997 test -z "$ac_dir" && ac_dir=.
11998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11999 lt_cv_path_LD="$ac_dir/$ac_prog"
12000 # Check to see if the program is GNU ld. I'd rather use --version,
12001 # but apparently some variants of GNU ld only accept -v.
12002 # Break only if it was the GNU/non-GNU ld that we prefer.
12003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12004 *GNU* | *'with BFD'*)
12005 test "$with_gnu_ld" != no && break
12006 ;;
12007 *)
12008 test "$with_gnu_ld" != yes && break
12009 ;;
12010 esac
12011 fi
12012 done
12013 IFS="$lt_save_ifs"
12014 else
12015 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12016 fi
12017 fi
12018
12019 LD="$lt_cv_path_LD"
12020 if test -n "$LD"; then
12021 echo "$as_me:$LINENO: result: $LD" >&5
12022 echo "${ECHO_T}$LD" >&6
12023 else
12024 echo "$as_me:$LINENO: result: no" >&5
12025 echo "${ECHO_T}no" >&6
12026 fi
12027 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12028 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12029 { (exit 1); exit 1; }; }
12030 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12031 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12032 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12036 case `$LD -v 2>&1 </dev/null` in
12037 *GNU* | *'with BFD'*)
12038 lt_cv_prog_gnu_ld=yes
12039 ;;
12040 *)
12041 lt_cv_prog_gnu_ld=no
12042 ;;
12043 esac
12044 fi
12045 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12046 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12047 with_gnu_ld=$lt_cv_prog_gnu_ld
12048
12049
12050
12051 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12052 # archiving commands below assume that GNU ld is being used.
12053 if test "$with_gnu_ld" = yes; then
12054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12056
12057 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12058 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12059
12060 # If archive_cmds runs LD, not CC, wlarc should be empty
12061 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12062 # investigate it a little bit more. (MM)
12063 wlarc='${wl}'
12064
12065 # ancient GNU ld didn't support --whole-archive et. al.
12066 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12067 grep 'no-whole-archive' > /dev/null; then
12068 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12069 else
12070 whole_archive_flag_spec_CXX=
12071 fi
12072 else
12073 with_gnu_ld=no
12074 wlarc=
12075
12076 # A generic and very simple default shared library creation
12077 # command for GNU C++ for the case where it uses the native
12078 # linker, instead of GNU ld. If possible, this setting should
12079 # overridden to take advantage of the native linker features on
12080 # the platform it is being used on.
12081 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12082 fi
12083
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12087 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12088
12089 else
12090 GXX=no
12091 with_gnu_ld=no
12092 wlarc=
12093 fi
12094
12095 # PORTME: fill in a description of your system's C++ link characteristics
12096 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12097 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12098 ld_shlibs_CXX=yes
12099 case $host_os in
12100 aix3*)
12101 # FIXME: insert proper C++ library support
12102 ld_shlibs_CXX=no
12103 ;;
12104 aix4* | aix5*)
12105 if test "$host_cpu" = ia64; then
12106 # On IA64, the linker does run time linking by default, so we don't
12107 # have to do anything special.
12108 aix_use_runtimelinking=no
12109 exp_sym_flag='-Bexport'
12110 no_entry_flag=""
12111 else
12112 aix_use_runtimelinking=no
12113
12114 # Test if we are trying to use run time linking or normal
12115 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12116 # need to do runtime linking.
12117 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12118 for ld_flag in $LDFLAGS; do
12119 case $ld_flag in
12120 *-brtl*)
12121 aix_use_runtimelinking=yes
12122 break
12123 ;;
12124 esac
12125 done
12126 ;;
12127 esac
12128
12129 exp_sym_flag='-bexport'
12130 no_entry_flag='-bnoentry'
12131 fi
12132
12133 # When large executables or shared objects are built, AIX ld can
12134 # have problems creating the table of contents. If linking a library
12135 # or program results in "error TOC overflow" add -mminimal-toc to
12136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12138
12139 archive_cmds_CXX=''
12140 hardcode_direct_CXX=yes
12141 hardcode_libdir_separator_CXX=':'
12142 link_all_deplibs_CXX=yes
12143
12144 if test "$GXX" = yes; then
12145 case $host_os in aix4.[012]|aix4.[012].*)
12146 # We only want to do this on AIX 4.2 and lower, the check
12147 # below for broken collect2 doesn't work under 4.3+
12148 collect2name=`${CC} -print-prog-name=collect2`
12149 if test -f "$collect2name" && \
12150 strings "$collect2name" | grep resolve_lib_name >/dev/null
12151 then
12152 # We have reworked collect2
12153 hardcode_direct_CXX=yes
12154 else
12155 # We have old collect2
12156 hardcode_direct_CXX=unsupported
12157 # It fails to find uninstalled libraries when the uninstalled
12158 # path is not listed in the libpath. Setting hardcode_minus_L
12159 # to unsupported forces relinking
12160 hardcode_minus_L_CXX=yes
12161 hardcode_libdir_flag_spec_CXX='-L$libdir'
12162 hardcode_libdir_separator_CXX=
12163 fi
12164 ;;
12165 esac
12166 shared_flag='-shared'
12167 if test "$aix_use_runtimelinking" = yes; then
12168 shared_flag="$shared_flag "'${wl}-G'
12169 fi
12170 else
12171 # not using gcc
12172 if test "$host_cpu" = ia64; then
12173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12174 # chokes on -Wl,-G. The following line is correct:
12175 shared_flag='-G'
12176 else
12177 if test "$aix_use_runtimelinking" = yes; then
12178 shared_flag='${wl}-G'
12179 else
12180 shared_flag='${wl}-bM:SRE'
12181 fi
12182 fi
12183 fi
12184
12185 # It seems that -bexpall does not export symbols beginning with
12186 # underscore (_), so it is better to generate a list of symbols to export.
12187 always_export_symbols_CXX=yes
12188 if test "$aix_use_runtimelinking" = yes; then
12189 # Warning - without using the other runtime loading flags (-brtl),
12190 # -berok will link without error, but may produce a broken library.
12191 allow_undefined_flag_CXX='-berok'
12192 # Determine the default libpath from the value encoded in an empty executable.
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199
12200 int
12201 main ()
12202 {
12203
12204 ;
12205 return 0;
12206 }
12207 _ACEOF
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210 (eval $ac_link) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -z "$ac_cxx_werror_flag"
12218 || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230
12231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12232 }'`
12233 # Check for a 64-bit object if we didn't find anything.
12234 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12235 }'`; fi
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 fi
12241 rm -f conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12244
12245 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12246
12247 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12248 else
12249 if test "$host_cpu" = ia64; then
12250 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12251 allow_undefined_flag_CXX="-z nodefs"
12252 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12253 else
12254 # Determine the default libpath from the value encoded in an empty executable.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261
12262 int
12263 main ()
12264 {
12265
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_cxx_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292
12293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12294 }'`
12295 # Check for a 64-bit object if we didn't find anything.
12296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12297 }'`; fi
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 fi
12303 rm -f conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12306
12307 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12308 # Warning - without using the other run time loading flags,
12309 # -berok will link without error, but may produce a broken library.
12310 no_undefined_flag_CXX=' ${wl}-bernotok'
12311 allow_undefined_flag_CXX=' ${wl}-berok'
12312 # Exported symbols can be pulled into shared objects from archives
12313 whole_archive_flag_spec_CXX='$convenience'
12314 archive_cmds_need_lc_CXX=yes
12315 # This is similar to how AIX traditionally builds its shared libraries.
12316 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12317 fi
12318 fi
12319 ;;
12320
12321 beos*)
12322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323 allow_undefined_flag_CXX=unsupported
12324 # Joseph Beckenbach <[email protected]> says some releases of gcc
12325 # support --undefined. This deserves some investigation. FIXME
12326 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327 else
12328 ld_shlibs_CXX=no
12329 fi
12330 ;;
12331
12332 chorus*)
12333 case $cc_basename in
12334 *)
12335 # FIXME: insert proper C++ library support
12336 ld_shlibs_CXX=no
12337 ;;
12338 esac
12339 ;;
12340
12341 cygwin* | mingw* | pw32*)
12342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12343 # as there is no search path for DLLs.
12344 hardcode_libdir_flag_spec_CXX='-L$libdir'
12345 allow_undefined_flag_CXX=unsupported
12346 always_export_symbols_CXX=no
12347 enable_shared_with_static_runtimes_CXX=yes
12348
12349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12350 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12351 # If the export-symbols file already is a .def file (1st line
12352 # is EXPORTS), use it as is; otherwise, prepend...
12353 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12354 cp $export_symbols $output_objdir/$soname.def;
12355 else
12356 echo EXPORTS > $output_objdir/$soname.def;
12357 cat $export_symbols >> $output_objdir/$soname.def;
12358 fi~
12359 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12360 else
12361 ld_shlibs_CXX=no
12362 fi
12363 ;;
12364 darwin* | rhapsody*)
12365 case $host_os in
12366 rhapsody* | darwin1.[012])
12367 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12368 ;;
12369 *) # Darwin 1.3 on
12370 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12371 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12372 else
12373 case ${MACOSX_DEPLOYMENT_TARGET} in
12374 10.[012])
12375 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12376 ;;
12377 10.*)
12378 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12379 ;;
12380 esac
12381 fi
12382 ;;
12383 esac
12384 archive_cmds_need_lc_CXX=no
12385 hardcode_direct_CXX=no
12386 hardcode_automatic_CXX=yes
12387 hardcode_shlibpath_var_CXX=unsupported
12388 whole_archive_flag_spec_CXX=''
12389 link_all_deplibs_CXX=yes
12390
12391 if test "$GXX" = yes ; then
12392 lt_int_apple_cc_single_mod=no
12393 output_verbose_link_cmd='echo'
12394 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12395 lt_int_apple_cc_single_mod=yes
12396 fi
12397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12398 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12399 else
12400 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12401 fi
12402 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12405 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12406 else
12407 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12408 fi
12409 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12410 else
12411 case $cc_basename in
12412 xlc*)
12413 output_verbose_link_cmd='echo'
12414 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12415 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12417 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12418 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12419 ;;
12420 *)
12421 ld_shlibs_CXX=no
12422 ;;
12423 esac
12424 fi
12425 ;;
12426
12427 dgux*)
12428 case $cc_basename in
12429 ec++*)
12430 # FIXME: insert proper C++ library support
12431 ld_shlibs_CXX=no
12432 ;;
12433 ghcx*)
12434 # Green Hills C++ Compiler
12435 # FIXME: insert proper C++ library support
12436 ld_shlibs_CXX=no
12437 ;;
12438 *)
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12441 ;;
12442 esac
12443 ;;
12444 freebsd[12]*)
12445 # C++ shared libraries reported to be fairly broken before switch to ELF
12446 ld_shlibs_CXX=no
12447 ;;
12448 freebsd-elf*)
12449 archive_cmds_need_lc_CXX=no
12450 ;;
12451 freebsd* | kfreebsd*-gnu | dragonfly*)
12452 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12453 # conventions
12454 ld_shlibs_CXX=yes
12455 ;;
12456 gnu*)
12457 ;;
12458 hpux9*)
12459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12460 hardcode_libdir_separator_CXX=:
12461 export_dynamic_flag_spec_CXX='${wl}-E'
12462 hardcode_direct_CXX=yes
12463 hardcode_minus_L_CXX=yes # Not in the search PATH,
12464 # but as the default
12465 # location of the library.
12466
12467 case $cc_basename in
12468 CC*)
12469 # FIXME: insert proper C++ library support
12470 ld_shlibs_CXX=no
12471 ;;
12472 aCC*)
12473 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12474 # Commands to make compiler produce verbose output that lists
12475 # what "hidden" libraries, object files and flags are used when
12476 # linking a shared library.
12477 #
12478 # There doesn't appear to be a way to prevent this compiler from
12479 # explicitly linking system object files so we need to strip them
12480 # from the output so that they don't get included in the library
12481 # dependencies.
12482 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12483 ;;
12484 *)
12485 if test "$GXX" = yes; then
12486 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12487 else
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 fi
12491 ;;
12492 esac
12493 ;;
12494 hpux10*|hpux11*)
12495 if test $with_gnu_ld = no; then
12496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12497 hardcode_libdir_separator_CXX=:
12498
12499 case $host_cpu in
12500 hppa*64*|ia64*)
12501 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12502 ;;
12503 *)
12504 export_dynamic_flag_spec_CXX='${wl}-E'
12505 ;;
12506 esac
12507 fi
12508 case $host_cpu in
12509 hppa*64*|ia64*)
12510 hardcode_direct_CXX=no
12511 hardcode_shlibpath_var_CXX=no
12512 ;;
12513 *)
12514 hardcode_direct_CXX=yes
12515 hardcode_minus_L_CXX=yes # Not in the search PATH,
12516 # but as the default
12517 # location of the library.
12518 ;;
12519 esac
12520
12521 case $cc_basename in
12522 CC*)
12523 # FIXME: insert proper C++ library support
12524 ld_shlibs_CXX=no
12525 ;;
12526 aCC*)
12527 case $host_cpu in
12528 hppa*64*)
12529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12530 ;;
12531 ia64*)
12532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533 ;;
12534 *)
12535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 ;;
12537 esac
12538 # Commands to make compiler produce verbose output that lists
12539 # what "hidden" libraries, object files and flags are used when
12540 # linking a shared library.
12541 #
12542 # There doesn't appear to be a way to prevent this compiler from
12543 # explicitly linking system object files so we need to strip them
12544 # from the output so that they don't get included in the library
12545 # dependencies.
12546 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12547 ;;
12548 *)
12549 if test "$GXX" = yes; then
12550 if test $with_gnu_ld = no; then
12551 case $host_cpu in
12552 hppa*64*)
12553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12554 ;;
12555 ia64*)
12556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12557 ;;
12558 *)
12559 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12560 ;;
12561 esac
12562 fi
12563 else
12564 # FIXME: insert proper C++ library support
12565 ld_shlibs_CXX=no
12566 fi
12567 ;;
12568 esac
12569 ;;
12570 interix3*)
12571 hardcode_direct_CXX=no
12572 hardcode_shlibpath_var_CXX=no
12573 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12574 export_dynamic_flag_spec_CXX='${wl}-E'
12575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12576 # Instead, shared libraries are loaded at an image base (0x10000000 by
12577 # default) and relocated if they conflict, which is a slow very memory
12578 # consuming and fragmenting process. To avoid this, we pick a random,
12579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12581 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12582 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12583 ;;
12584 irix5* | irix6*)
12585 case $cc_basename in
12586 CC*)
12587 # SGI C++
12588 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12589
12590 # Archives containing C++ object files must be created using
12591 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12592 # necessary to make sure instantiated templates are included
12593 # in the archive.
12594 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12595 ;;
12596 *)
12597 if test "$GXX" = yes; then
12598 if test "$with_gnu_ld" = no; then
12599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12600 else
12601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12602 fi
12603 fi
12604 link_all_deplibs_CXX=yes
12605 ;;
12606 esac
12607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12608 hardcode_libdir_separator_CXX=:
12609 ;;
12610 linux*)
12611 case $cc_basename in
12612 KCC*)
12613 # Kuck and Associates, Inc. (KAI) C++ Compiler
12614
12615 # KCC will only create a shared library if the output file
12616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12617 # to its proper name (with version) after linking.
12618 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12619 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12620 # Commands to make compiler produce verbose output that lists
12621 # what "hidden" libraries, object files and flags are used when
12622 # linking a shared library.
12623 #
12624 # There doesn't appear to be a way to prevent this compiler from
12625 # explicitly linking system object files so we need to strip them
12626 # from the output so that they don't get included in the library
12627 # dependencies.
12628 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12629
12630 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12632
12633 # Archives containing C++ object files must be created using
12634 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12635 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12636 ;;
12637 icpc*)
12638 # Intel C++
12639 with_gnu_ld=yes
12640 # version 8.0 and above of icpc choke on multiply defined symbols
12641 # if we add $predep_objects and $postdep_objects, however 7.1 and
12642 # earlier do not add the objects themselves.
12643 case `$CC -V 2>&1` in
12644 *"Version 7."*)
12645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12647 ;;
12648 *) # Version 8.0 or newer
12649 tmp_idyn=
12650 case $host_cpu in
12651 ia64*) tmp_idyn=' -i_dynamic';;
12652 esac
12653 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12655 ;;
12656 esac
12657 archive_cmds_need_lc_CXX=no
12658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12660 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12661 ;;
12662 pgCC*)
12663 # Portland Group C++ compiler
12664 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12665 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12666
12667 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12670 ;;
12671 cxx*)
12672 # Compaq C++
12673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12675
12676 runpath_var=LD_RUN_PATH
12677 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12678 hardcode_libdir_separator_CXX=:
12679
12680 # Commands to make compiler produce verbose output that lists
12681 # what "hidden" libraries, object files and flags are used when
12682 # linking a shared library.
12683 #
12684 # There doesn't appear to be a way to prevent this compiler from
12685 # explicitly linking system object files so we need to strip them
12686 # from the output so that they don't get included in the library
12687 # dependencies.
12688 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12689 ;;
12690 esac
12691 ;;
12692 lynxos*)
12693 # FIXME: insert proper C++ library support
12694 ld_shlibs_CXX=no
12695 ;;
12696 m88k*)
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
12700 mvs*)
12701 case $cc_basename in
12702 cxx*)
12703 # FIXME: insert proper C++ library support
12704 ld_shlibs_CXX=no
12705 ;;
12706 *)
12707 # FIXME: insert proper C++ library support
12708 ld_shlibs_CXX=no
12709 ;;
12710 esac
12711 ;;
12712 netbsd*)
12713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12714 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12715 wlarc=
12716 hardcode_libdir_flag_spec_CXX='-R$libdir'
12717 hardcode_direct_CXX=yes
12718 hardcode_shlibpath_var_CXX=no
12719 fi
12720 # Workaround some broken pre-1.5 toolchains
12721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12722 ;;
12723 openbsd2*)
12724 # C++ shared libraries are fairly broken
12725 ld_shlibs_CXX=no
12726 ;;
12727 openbsd*)
12728 hardcode_direct_CXX=yes
12729 hardcode_shlibpath_var_CXX=no
12730 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12733 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12734 export_dynamic_flag_spec_CXX='${wl}-E'
12735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12736 fi
12737 output_verbose_link_cmd='echo'
12738 ;;
12739 osf3*)
12740 case $cc_basename in
12741 KCC*)
12742 # Kuck and Associates, Inc. (KAI) C++ Compiler
12743
12744 # KCC will only create a shared library if the output file
12745 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12746 # to its proper name (with version) after linking.
12747 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12748
12749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12750 hardcode_libdir_separator_CXX=:
12751
12752 # Archives containing C++ object files must be created using
12753 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12754 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12755
12756 ;;
12757 RCC*)
12758 # Rational C++ 2.4.1
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12761 ;;
12762 cxx*)
12763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12764 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12765
12766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12767 hardcode_libdir_separator_CXX=:
12768
12769 # Commands to make compiler produce verbose output that lists
12770 # what "hidden" libraries, object files and flags are used when
12771 # linking a shared library.
12772 #
12773 # There doesn't appear to be a way to prevent this compiler from
12774 # explicitly linking system object files so we need to strip them
12775 # from the output so that they don't get included in the library
12776 # dependencies.
12777 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12778 ;;
12779 *)
12780 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12781 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12782 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12783
12784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12785 hardcode_libdir_separator_CXX=:
12786
12787 # Commands to make compiler produce verbose output that lists
12788 # what "hidden" libraries, object files and flags are used when
12789 # linking a shared library.
12790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12791
12792 else
12793 # FIXME: insert proper C++ library support
12794 ld_shlibs_CXX=no
12795 fi
12796 ;;
12797 esac
12798 ;;
12799 osf4* | osf5*)
12800 case $cc_basename in
12801 KCC*)
12802 # Kuck and Associates, Inc. (KAI) C++ Compiler
12803
12804 # KCC will only create a shared library if the output file
12805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12806 # to its proper name (with version) after linking.
12807 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12808
12809 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12810 hardcode_libdir_separator_CXX=:
12811
12812 # Archives containing C++ object files must be created using
12813 # the KAI C++ compiler.
12814 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12815 ;;
12816 RCC*)
12817 # Rational C++ 2.4.1
12818 # FIXME: insert proper C++ library support
12819 ld_shlibs_CXX=no
12820 ;;
12821 cxx*)
12822 allow_undefined_flag_CXX=' -expect_unresolved \*'
12823 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12824 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12825 echo "-hidden">> $lib.exp~
12826 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12827 $rm $lib.exp'
12828
12829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12830 hardcode_libdir_separator_CXX=:
12831
12832 # Commands to make compiler produce verbose output that lists
12833 # what "hidden" libraries, object files and flags are used when
12834 # linking a shared library.
12835 #
12836 # There doesn't appear to be a way to prevent this compiler from
12837 # explicitly linking system object files so we need to strip them
12838 # from the output so that they don't get included in the library
12839 # dependencies.
12840 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12841 ;;
12842 *)
12843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12845 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12846
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848 hardcode_libdir_separator_CXX=:
12849
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12854
12855 else
12856 # FIXME: insert proper C++ library support
12857 ld_shlibs_CXX=no
12858 fi
12859 ;;
12860 esac
12861 ;;
12862 psos*)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 sunos4*)
12867 case $cc_basename in
12868 CC*)
12869 # Sun C++ 4.x
12870 # FIXME: insert proper C++ library support
12871 ld_shlibs_CXX=no
12872 ;;
12873 lcc*)
12874 # Lucid
12875 # FIXME: insert proper C++ library support
12876 ld_shlibs_CXX=no
12877 ;;
12878 *)
12879 # FIXME: insert proper C++ library support
12880 ld_shlibs_CXX=no
12881 ;;
12882 esac
12883 ;;
12884 solaris*)
12885 case $cc_basename in
12886 CC*)
12887 # Sun C++ 4.2, 5.x and Centerline C++
12888 archive_cmds_need_lc_CXX=yes
12889 no_undefined_flag_CXX=' -zdefs'
12890 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12891 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12892 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12893
12894 hardcode_libdir_flag_spec_CXX='-R$libdir'
12895 hardcode_shlibpath_var_CXX=no
12896 case $host_os in
12897 solaris2.[0-5] | solaris2.[0-5].*) ;;
12898 *)
12899 # The C++ compiler is used as linker so we must use $wl
12900 # flag to pass the commands to the underlying system
12901 # linker. We must also pass each convience library through
12902 # to the system linker between allextract/defaultextract.
12903 # The C++ compiler will combine linker options so we
12904 # cannot just pass the convience library names through
12905 # without $wl.
12906 # Supported since Solaris 2.6 (maybe 2.5.1?)
12907 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12908 ;;
12909 esac
12910 link_all_deplibs_CXX=yes
12911
12912 output_verbose_link_cmd='echo'
12913
12914 # Archives containing C++ object files must be created using
12915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12916 # necessary to make sure instantiated templates are included
12917 # in the archive.
12918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12919 ;;
12920 gcx*)
12921 # Green Hills C++ Compiler
12922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12923
12924 # The C++ compiler must be used to create the archive.
12925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12926 ;;
12927 *)
12928 # GNU C++ compiler with Solaris linker
12929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12931 if $CC --version | grep -v '^2\.7' > /dev/null; then
12932 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12934 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12935
12936 # Commands to make compiler produce verbose output that lists
12937 # what "hidden" libraries, object files and flags are used when
12938 # linking a shared library.
12939 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12940 else
12941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12942 # platform.
12943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12944 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12946
12947 # Commands to make compiler produce verbose output that lists
12948 # what "hidden" libraries, object files and flags are used when
12949 # linking a shared library.
12950 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12951 fi
12952
12953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12954 fi
12955 ;;
12956 esac
12957 ;;
12958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12959 no_undefined_flag_CXX='${wl}-z,text'
12960 archive_cmds_need_lc_CXX=no
12961 hardcode_shlibpath_var_CXX=no
12962 runpath_var='LD_RUN_PATH'
12963
12964 case $cc_basename in
12965 CC*)
12966 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12967 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 ;;
12969 *)
12970 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12972 ;;
12973 esac
12974 ;;
12975 sysv5* | sco3.2v5* | sco5v6*)
12976 # Note: We can NOT use -z defs as we might desire, because we do not
12977 # link with -lc, and that would cause any symbols used from libc to
12978 # always be unresolved, which means just about no library would
12979 # ever link correctly. If we're not using GNU ld we use -z text
12980 # though, which does catch some bad symbols but isn't as heavy-handed
12981 # as -z defs.
12982 # For security reasons, it is highly recommended that you always
12983 # use absolute paths for naming shared libraries, and exclude the
12984 # DT_RUNPATH tag from executables and libraries. But doing so
12985 # requires that you compile everything twice, which is a pain.
12986 # So that behaviour is only enabled if SCOABSPATH is set to a
12987 # non-empty value in the environment. Most likely only useful for
12988 # creating official distributions of packages.
12989 # This is a hack until libtool officially supports absolute path
12990 # names for shared libraries.
12991 no_undefined_flag_CXX='${wl}-z,text'
12992 allow_undefined_flag_CXX='${wl}-z,nodefs'
12993 archive_cmds_need_lc_CXX=no
12994 hardcode_shlibpath_var_CXX=no
12995 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12996 hardcode_libdir_separator_CXX=':'
12997 link_all_deplibs_CXX=yes
12998 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12999 runpath_var='LD_RUN_PATH'
13000
13001 case $cc_basename in
13002 CC*)
13003 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13004 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13005 ;;
13006 *)
13007 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13008 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13009 ;;
13010 esac
13011 ;;
13012 tandem*)
13013 case $cc_basename in
13014 NCC*)
13015 # NonStop-UX NCC 3.20
13016 # FIXME: insert proper C++ library support
13017 ld_shlibs_CXX=no
13018 ;;
13019 *)
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13022 ;;
13023 esac
13024 ;;
13025 vxworks*)
13026 # FIXME: insert proper C++ library support
13027 ld_shlibs_CXX=no
13028 ;;
13029 *)
13030 # FIXME: insert proper C++ library support
13031 ld_shlibs_CXX=no
13032 ;;
13033 esac
13034 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13035 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13036 test "$ld_shlibs_CXX" = no && can_build_shared=no
13037
13038 GCC_CXX="$GXX"
13039 LD_CXX="$LD"
13040
13041 ## CAVEAT EMPTOR:
13042 ## There is no encapsulation within the following macros, do not change
13043 ## the running order or otherwise move them around unless you know exactly
13044 ## what you are doing...
13045
13046 cat > conftest.$ac_ext <<EOF
13047 class Foo
13048 {
13049 public:
13050 Foo (void) { a = 0; }
13051 private:
13052 int a;
13053 };
13054 EOF
13055
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; then
13061 # Parse the compiler output and extract the necessary
13062 # objects, libraries and library flags.
13063
13064 # Sentinel used to keep track of whether or not we are before
13065 # the conftest object file.
13066 pre_test_object_deps_done=no
13067
13068 # The `*' in the case matches for architectures that use `case' in
13069 # $output_verbose_cmd can trigger glob expansion during the loop
13070 # eval without this substitution.
13071 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13072
13073 for p in `eval $output_verbose_link_cmd`; do
13074 case $p in
13075
13076 -L* | -R* | -l*)
13077 # Some compilers place space between "-{L,R}" and the path.
13078 # Remove the space.
13079 if test $p = "-L" \
13080 || test $p = "-R"; then
13081 prev=$p
13082 continue
13083 else
13084 prev=
13085 fi
13086
13087 if test "$pre_test_object_deps_done" = no; then
13088 case $p in
13089 -L* | -R*)
13090 # Internal compiler library paths should come after those
13091 # provided the user. The postdeps already come after the
13092 # user supplied libs so there is no need to process them.
13093 if test -z "$compiler_lib_search_path_CXX"; then
13094 compiler_lib_search_path_CXX="${prev}${p}"
13095 else
13096 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13097 fi
13098 ;;
13099 # The "-l" case would never come before the object being
13100 # linked, so don't bother handling this case.
13101 esac
13102 else
13103 if test -z "$postdeps_CXX"; then
13104 postdeps_CXX="${prev}${p}"
13105 else
13106 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13107 fi
13108 fi
13109 ;;
13110
13111 *.$objext)
13112 # This assumes that the test object file only shows up
13113 # once in the compiler output.
13114 if test "$p" = "conftest.$objext"; then
13115 pre_test_object_deps_done=yes
13116 continue
13117 fi
13118
13119 if test "$pre_test_object_deps_done" = no; then
13120 if test -z "$predep_objects_CXX"; then
13121 predep_objects_CXX="$p"
13122 else
13123 predep_objects_CXX="$predep_objects_CXX $p"
13124 fi
13125 else
13126 if test -z "$postdep_objects_CXX"; then
13127 postdep_objects_CXX="$p"
13128 else
13129 postdep_objects_CXX="$postdep_objects_CXX $p"
13130 fi
13131 fi
13132 ;;
13133
13134 *) ;; # Ignore the rest.
13135
13136 esac
13137 done
13138
13139 # Clean up.
13140 rm -f a.out a.exe
13141 else
13142 echo "libtool.m4: error: problem compiling CXX test program"
13143 fi
13144
13145 $rm -f confest.$objext
13146
13147 # PORTME: override above test on systems where it is broken
13148 case $host_os in
13149 interix3*)
13150 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13151 # hack all around it, let's just trust "g++" to DTRT.
13152 predep_objects_CXX=
13153 postdep_objects_CXX=
13154 postdeps_CXX=
13155 ;;
13156
13157 solaris*)
13158 case $cc_basename in
13159 CC*)
13160 # Adding this requires a known-good setup of shared libraries for
13161 # Sun compiler versions before 5.6, else PIC objects from an old
13162 # archive will be linked into the output, leading to subtle bugs.
13163 postdeps_CXX='-lCstd -lCrun'
13164 ;;
13165 esac
13166 ;;
13167 esac
13168
13169
13170 case " $postdeps_CXX " in
13171 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13172 esac
13173
13174 lt_prog_compiler_wl_CXX=
13175 lt_prog_compiler_pic_CXX=
13176 lt_prog_compiler_static_CXX=
13177
13178 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13180
13181 # C++ specific cases for pic, static, wl, etc.
13182 if test "$GXX" = yes; then
13183 lt_prog_compiler_wl_CXX='-Wl,'
13184 lt_prog_compiler_static_CXX='-static'
13185
13186 case $host_os in
13187 aix*)
13188 # All AIX code is PIC.
13189 if test "$host_cpu" = ia64; then
13190 # AIX 5 now supports IA64 processor
13191 lt_prog_compiler_static_CXX='-Bstatic'
13192 fi
13193 ;;
13194 amigaos*)
13195 # FIXME: we need at least 68020 code to build shared libraries, but
13196 # adding the `-m68020' flag to GCC prevents building anything better,
13197 # like `-m68040'.
13198 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13199 ;;
13200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13201 # PIC is the default for these OSes.
13202 ;;
13203 mingw* | os2* | pw32*)
13204 # This hack is so that the source file can tell whether it is being
13205 # built for inclusion in a dll (and should export symbols for example).
13206 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13207 ;;
13208 darwin* | rhapsody*)
13209 # PIC is the default on this platform
13210 # Common symbols not allowed in MH_DYLIB files
13211 lt_prog_compiler_pic_CXX='-fno-common'
13212 ;;
13213 *djgpp*)
13214 # DJGPP does not support shared libraries at all
13215 lt_prog_compiler_pic_CXX=
13216 ;;
13217 interix3*)
13218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13219 # Instead, we relocate shared libraries at runtime.
13220 ;;
13221 sysv4*MP*)
13222 if test -d /usr/nec; then
13223 lt_prog_compiler_pic_CXX=-Kconform_pic
13224 fi
13225 ;;
13226 hpux*)
13227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13228 # not for PA HP-UX.
13229 case $host_cpu in
13230 hppa*64*|ia64*)
13231 ;;
13232 *)
13233 lt_prog_compiler_pic_CXX='-fPIC'
13234 ;;
13235 esac
13236 ;;
13237 *)
13238 lt_prog_compiler_pic_CXX='-fPIC'
13239 ;;
13240 esac
13241 else
13242 case $host_os in
13243 aix4* | aix5*)
13244 # All AIX code is PIC.
13245 if test "$host_cpu" = ia64; then
13246 # AIX 5 now supports IA64 processor
13247 lt_prog_compiler_static_CXX='-Bstatic'
13248 else
13249 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13250 fi
13251 ;;
13252 chorus*)
13253 case $cc_basename in
13254 cxch68*)
13255 # Green Hills C++ Compiler
13256 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13257 ;;
13258 esac
13259 ;;
13260 darwin*)
13261 # PIC is the default on this platform
13262 # Common symbols not allowed in MH_DYLIB files
13263 case $cc_basename in
13264 xlc*)
13265 lt_prog_compiler_pic_CXX='-qnocommon'
13266 lt_prog_compiler_wl_CXX='-Wl,'
13267 ;;
13268 esac
13269 ;;
13270 dgux*)
13271 case $cc_basename in
13272 ec++*)
13273 lt_prog_compiler_pic_CXX='-KPIC'
13274 ;;
13275 ghcx*)
13276 # Green Hills C++ Compiler
13277 lt_prog_compiler_pic_CXX='-pic'
13278 ;;
13279 *)
13280 ;;
13281 esac
13282 ;;
13283 freebsd* | kfreebsd*-gnu | dragonfly*)
13284 # FreeBSD uses GNU C++
13285 ;;
13286 hpux9* | hpux10* | hpux11*)
13287 case $cc_basename in
13288 CC*)
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13291 if test "$host_cpu" != ia64; then
13292 lt_prog_compiler_pic_CXX='+Z'
13293 fi
13294 ;;
13295 aCC*)
13296 lt_prog_compiler_wl_CXX='-Wl,'
13297 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13298 case $host_cpu in
13299 hppa*64*|ia64*)
13300 # +Z the default
13301 ;;
13302 *)
13303 lt_prog_compiler_pic_CXX='+Z'
13304 ;;
13305 esac
13306 ;;
13307 *)
13308 ;;
13309 esac
13310 ;;
13311 interix*)
13312 # This is c89, which is MS Visual C++ (no shared libs)
13313 # Anyone wants to do a port?
13314 ;;
13315 irix5* | irix6* | nonstopux*)
13316 case $cc_basename in
13317 CC*)
13318 lt_prog_compiler_wl_CXX='-Wl,'
13319 lt_prog_compiler_static_CXX='-non_shared'
13320 # CC pic flag -KPIC is the default.
13321 ;;
13322 *)
13323 ;;
13324 esac
13325 ;;
13326 linux*)
13327 case $cc_basename in
13328 KCC*)
13329 # KAI C++ Compiler
13330 lt_prog_compiler_wl_CXX='--backend -Wl,'
13331 lt_prog_compiler_pic_CXX='-fPIC'
13332 ;;
13333 icpc* | ecpc*)
13334 # Intel C++
13335 lt_prog_compiler_wl_CXX='-Wl,'
13336 lt_prog_compiler_pic_CXX='-KPIC'
13337 lt_prog_compiler_static_CXX='-static'
13338 ;;
13339 pgCC*)
13340 # Portland Group C++ compiler.
13341 lt_prog_compiler_wl_CXX='-Wl,'
13342 lt_prog_compiler_pic_CXX='-fpic'
13343 lt_prog_compiler_static_CXX='-Bstatic'
13344 ;;
13345 cxx*)
13346 # Compaq C++
13347 # Make sure the PIC flag is empty. It appears that all Alpha
13348 # Linux and Compaq Tru64 Unix objects are PIC.
13349 lt_prog_compiler_pic_CXX=
13350 lt_prog_compiler_static_CXX='-non_shared'
13351 ;;
13352 *)
13353 ;;
13354 esac
13355 ;;
13356 lynxos*)
13357 ;;
13358 m88k*)
13359 ;;
13360 mvs*)
13361 case $cc_basename in
13362 cxx*)
13363 lt_prog_compiler_pic_CXX='-W c,exportall'
13364 ;;
13365 *)
13366 ;;
13367 esac
13368 ;;
13369 netbsd*)
13370 ;;
13371 osf3* | osf4* | osf5*)
13372 case $cc_basename in
13373 KCC*)
13374 lt_prog_compiler_wl_CXX='--backend -Wl,'
13375 ;;
13376 RCC*)
13377 # Rational C++ 2.4.1
13378 lt_prog_compiler_pic_CXX='-pic'
13379 ;;
13380 cxx*)
13381 # Digital/Compaq C++
13382 lt_prog_compiler_wl_CXX='-Wl,'
13383 # Make sure the PIC flag is empty. It appears that all Alpha
13384 # Linux and Compaq Tru64 Unix objects are PIC.
13385 lt_prog_compiler_pic_CXX=
13386 lt_prog_compiler_static_CXX='-non_shared'
13387 ;;
13388 *)
13389 ;;
13390 esac
13391 ;;
13392 psos*)
13393 ;;
13394 solaris*)
13395 case $cc_basename in
13396 CC*)
13397 # Sun C++ 4.2, 5.x and Centerline C++
13398 lt_prog_compiler_pic_CXX='-KPIC'
13399 lt_prog_compiler_static_CXX='-Bstatic'
13400 lt_prog_compiler_wl_CXX='-Qoption ld '
13401 ;;
13402 gcx*)
13403 # Green Hills C++ Compiler
13404 lt_prog_compiler_pic_CXX='-PIC'
13405 ;;
13406 *)
13407 ;;
13408 esac
13409 ;;
13410 sunos4*)
13411 case $cc_basename in
13412 CC*)
13413 # Sun C++ 4.x
13414 lt_prog_compiler_pic_CXX='-pic'
13415 lt_prog_compiler_static_CXX='-Bstatic'
13416 ;;
13417 lcc*)
13418 # Lucid
13419 lt_prog_compiler_pic_CXX='-pic'
13420 ;;
13421 *)
13422 ;;
13423 esac
13424 ;;
13425 tandem*)
13426 case $cc_basename in
13427 NCC*)
13428 # NonStop-UX NCC 3.20
13429 lt_prog_compiler_pic_CXX='-KPIC'
13430 ;;
13431 *)
13432 ;;
13433 esac
13434 ;;
13435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13436 case $cc_basename in
13437 CC*)
13438 lt_prog_compiler_wl_CXX='-Wl,'
13439 lt_prog_compiler_pic_CXX='-KPIC'
13440 lt_prog_compiler_static_CXX='-Bstatic'
13441 ;;
13442 esac
13443 ;;
13444 vxworks*)
13445 ;;
13446 *)
13447 lt_prog_compiler_can_build_shared_CXX=no
13448 ;;
13449 esac
13450 fi
13451
13452 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13453 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13454
13455 #
13456 # Check to make sure the PIC flag actually works.
13457 #
13458 if test -n "$lt_prog_compiler_pic_CXX"; then
13459
13460 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13462 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465 lt_prog_compiler_pic_works_CXX=no
13466 ac_outfile=conftest.$ac_objext
13467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13468 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13469 # Insert the option either (1) after the last *FLAGS variable, or
13470 # (2) before a word containing "conftest.", or (3) at the end.
13471 # Note that $ac_compile itself does not contain backslashes and begins
13472 # with a dollar sign (not a hyphen), so the echo should work correctly.
13473 # The option is referenced via a variable to avoid confusing sed.
13474 lt_compile=`echo "$ac_compile" | $SED \
13475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13477 -e 's:$: $lt_compiler_flag:'`
13478 (eval echo "\"\$as_me:13478: $lt_compile\"" >&5)
13479 (eval "$lt_compile" 2>conftest.err)
13480 ac_status=$?
13481 cat conftest.err >&5
13482 echo "$as_me:13482: \$? = $ac_status" >&5
13483 if (exit $ac_status) && test -s "$ac_outfile"; then
13484 # The compiler can only warn and ignore the option if not recognized
13485 # So say no if there are warnings other than the usual output.
13486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13489 lt_prog_compiler_pic_works_CXX=yes
13490 fi
13491 fi
13492 $rm conftest*
13493
13494 fi
13495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13496 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13497
13498 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13499 case $lt_prog_compiler_pic_CXX in
13500 "" | " "*) ;;
13501 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13502 esac
13503 else
13504 lt_prog_compiler_pic_CXX=
13505 lt_prog_compiler_can_build_shared_CXX=no
13506 fi
13507
13508 fi
13509 case $host_os in
13510 # For platforms which do not support PIC, -DPIC is meaningless:
13511 *djgpp*)
13512 lt_prog_compiler_pic_CXX=
13513 ;;
13514 *)
13515 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13516 ;;
13517 esac
13518
13519 #
13520 # Check to make sure the static flag actually works.
13521 #
13522 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13523 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13524 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13525 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528 lt_prog_compiler_static_works_CXX=no
13529 save_LDFLAGS="$LDFLAGS"
13530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13531 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13533 # The linker can only warn and ignore the option if not recognized
13534 # So say no if there are warnings
13535 if test -s conftest.err; then
13536 # Append any errors to the config.log.
13537 cat conftest.err 1>&5
13538 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540 if diff conftest.exp conftest.er2 >/dev/null; then
13541 lt_prog_compiler_static_works_CXX=yes
13542 fi
13543 else
13544 lt_prog_compiler_static_works_CXX=yes
13545 fi
13546 fi
13547 $rm conftest*
13548 LDFLAGS="$save_LDFLAGS"
13549
13550 fi
13551 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13552 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13553
13554 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13555 :
13556 else
13557 lt_prog_compiler_static_CXX=
13558 fi
13559
13560
13561 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13562 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13563 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 lt_cv_prog_compiler_c_o_CXX=no
13567 $rm -r conftest 2>/dev/null
13568 mkdir conftest
13569 cd conftest
13570 mkdir out
13571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13572
13573 lt_compiler_flag="-o out/conftest2.$ac_objext"
13574 # Insert the option either (1) after the last *FLAGS variable, or
13575 # (2) before a word containing "conftest.", or (3) at the end.
13576 # Note that $ac_compile itself does not contain backslashes and begins
13577 # with a dollar sign (not a hyphen), so the echo should work correctly.
13578 lt_compile=`echo "$ac_compile" | $SED \
13579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13581 -e 's:$: $lt_compiler_flag:'`
13582 (eval echo "\"\$as_me:13582: $lt_compile\"" >&5)
13583 (eval "$lt_compile" 2>out/conftest.err)
13584 ac_status=$?
13585 cat out/conftest.err >&5
13586 echo "$as_me:13586: \$? = $ac_status" >&5
13587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13588 then
13589 # The compiler can only warn and ignore the option if not recognized
13590 # So say no if there are warnings
13591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13594 lt_cv_prog_compiler_c_o_CXX=yes
13595 fi
13596 fi
13597 chmod u+w . 2>&5
13598 $rm conftest*
13599 # SGI C++ compiler will create directory out/ii_files/ for
13600 # template instantiation
13601 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13602 $rm out/* && rmdir out
13603 cd ..
13604 rmdir conftest
13605 $rm conftest*
13606
13607 fi
13608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13609 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13610
13611
13612 hard_links="nottested"
13613 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13614 # do not overwrite the value of need_locks provided by the user
13615 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13616 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13617 hard_links=yes
13618 $rm conftest*
13619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13620 touch conftest.a
13621 ln conftest.a conftest.b 2>&5 || hard_links=no
13622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13623 echo "$as_me:$LINENO: result: $hard_links" >&5
13624 echo "${ECHO_T}$hard_links" >&6
13625 if test "$hard_links" = no; then
13626 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13627 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13628 need_locks=warn
13629 fi
13630 else
13631 need_locks=no
13632 fi
13633
13634 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13636
13637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13638 case $host_os in
13639 aix4* | aix5*)
13640 # If we're using GNU nm, then we don't want the "-C" option.
13641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13643 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13644 else
13645 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13646 fi
13647 ;;
13648 pw32*)
13649 export_symbols_cmds_CXX="$ltdll_cmds"
13650 ;;
13651 cygwin* | mingw*)
13652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13653 ;;
13654 *)
13655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13656 ;;
13657 esac
13658
13659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13661 test "$ld_shlibs_CXX" = no && can_build_shared=no
13662
13663 #
13664 # Do we need to explicitly link libc?
13665 #
13666 case "x$archive_cmds_need_lc_CXX" in
13667 x|xyes)
13668 # Assume -lc should be added
13669 archive_cmds_need_lc_CXX=yes
13670
13671 if test "$enable_shared" = yes && test "$GCC" = yes; then
13672 case $archive_cmds_CXX in
13673 *'~'*)
13674 # FIXME: we may have to deal with multi-command sequences.
13675 ;;
13676 '$CC '*)
13677 # Test whether the compiler implicitly links with -lc since on some
13678 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13679 # to ld, don't add -lc before -lgcc.
13680 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13681 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13682 $rm conftest*
13683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13684
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686 (eval $ac_compile) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } 2>conftest.err; then
13690 soname=conftest
13691 lib=conftest
13692 libobjs=conftest.$ac_objext
13693 deplibs=
13694 wl=$lt_prog_compiler_wl_CXX
13695 pic_flag=$lt_prog_compiler_pic_CXX
13696 compiler_flags=-v
13697 linker_flags=-v
13698 verstring=
13699 output_objdir=.
13700 libname=conftest
13701 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13702 allow_undefined_flag_CXX=
13703 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13704 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }
13708 then
13709 archive_cmds_need_lc_CXX=no
13710 else
13711 archive_cmds_need_lc_CXX=yes
13712 fi
13713 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13714 else
13715 cat conftest.err 1>&5
13716 fi
13717 $rm conftest*
13718 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13719 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13720 ;;
13721 esac
13722 fi
13723 ;;
13724 esac
13725
13726 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13727 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13728 library_names_spec=
13729 libname_spec='lib$name'
13730 soname_spec=
13731 shrext_cmds=".so"
13732 postinstall_cmds=
13733 postuninstall_cmds=
13734 finish_cmds=
13735 finish_eval=
13736 shlibpath_var=
13737 shlibpath_overrides_runpath=unknown
13738 version_type=none
13739 dynamic_linker="$host_os ld.so"
13740 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13741 if test "$GCC" = yes; then
13742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13743 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13744 # if the path contains ";" then we assume it to be the separator
13745 # otherwise default to the standard path separator (i.e. ":") - it is
13746 # assumed that no part of a normal pathname contains ";" but that should
13747 # okay in the real world where ";" in dirpaths is itself problematic.
13748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13749 else
13750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13751 fi
13752 else
13753 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13754 fi
13755 need_lib_prefix=unknown
13756 hardcode_into_libs=no
13757
13758 # when you set need_version to no, make sure it does not cause -set_version
13759 # flags to be left without arguments
13760 need_version=unknown
13761
13762 case $host_os in
13763 aix3*)
13764 version_type=linux
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13766 shlibpath_var=LIBPATH
13767
13768 # AIX 3 has no versioning support, so we append a major version to the name.
13769 soname_spec='${libname}${release}${shared_ext}$major'
13770 ;;
13771
13772 aix4* | aix5*)
13773 version_type=linux
13774 need_lib_prefix=no
13775 need_version=no
13776 hardcode_into_libs=yes
13777 if test "$host_cpu" = ia64; then
13778 # AIX 5 supports IA64
13779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13780 shlibpath_var=LD_LIBRARY_PATH
13781 else
13782 # With GCC up to 2.95.x, collect2 would create an import file
13783 # for dependence libraries. The import file would start with
13784 # the line `#! .'. This would cause the generated library to
13785 # depend on `.', always an invalid library. This was fixed in
13786 # development snapshots of GCC prior to 3.0.
13787 case $host_os in
13788 aix4 | aix4.[01] | aix4.[01].*)
13789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13790 echo ' yes '
13791 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13792 :
13793 else
13794 can_build_shared=no
13795 fi
13796 ;;
13797 esac
13798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13799 # soname into executable. Probably we can add versioning support to
13800 # collect2, so additional links can be useful in future.
13801 if test "$aix_use_runtimelinking" = yes; then
13802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13803 # instead of lib<name>.a to let people know that these are not
13804 # typical AIX shared libraries.
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 else
13807 # We preserve .a as extension for shared libraries through AIX4.2
13808 # and later when we are not doing run time linking.
13809 library_names_spec='${libname}${release}.a $libname.a'
13810 soname_spec='${libname}${release}${shared_ext}$major'
13811 fi
13812 shlibpath_var=LIBPATH
13813 fi
13814 ;;
13815
13816 amigaos*)
13817 library_names_spec='$libname.ixlibrary $libname.a'
13818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13819 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'
13820 ;;
13821
13822 beos*)
13823 library_names_spec='${libname}${shared_ext}'
13824 dynamic_linker="$host_os ld.so"
13825 shlibpath_var=LIBRARY_PATH
13826 ;;
13827
13828 bsdi[45]*)
13829 version_type=linux
13830 need_version=no
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13834 shlibpath_var=LD_LIBRARY_PATH
13835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13837 # the default ld.so.conf also contains /usr/contrib/lib and
13838 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13839 # libtool to hard-code these into programs
13840 ;;
13841
13842 cygwin* | mingw* | pw32*)
13843 version_type=windows
13844 shrext_cmds=".dll"
13845 need_version=no
13846 need_lib_prefix=no
13847
13848 case $GCC,$host_os in
13849 yes,cygwin* | yes,mingw* | yes,pw32*)
13850 library_names_spec='$libname.dll.a'
13851 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13852 postinstall_cmds='base_file=`basename \${file}`~
13853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13854 dldir=$destdir/`dirname \$dlpath`~
13855 test -d \$dldir || mkdir -p \$dldir~
13856 $install_prog $dir/$dlname \$dldir/$dlname~
13857 chmod a+x \$dldir/$dlname'
13858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13859 dlpath=$dir/\$dldll~
13860 $rm \$dlpath'
13861 shlibpath_overrides_runpath=yes
13862
13863 case $host_os in
13864 cygwin*)
13865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13867 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13868 ;;
13869 mingw*)
13870 # MinGW DLLs use traditional 'lib' prefix
13871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13873 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13874 # It is most probably a Windows format PATH printed by
13875 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13876 # path with ; separators, and with drive letters. We can handle the
13877 # drive letters (cygwin fileutils understands them), so leave them,
13878 # especially as we might pass files found there to a mingw objdump,
13879 # which wouldn't understand a cygwinified path. Ahh.
13880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13881 else
13882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13883 fi
13884 ;;
13885 pw32*)
13886 # pw32 DLLs use 'pw' prefix rather than 'lib'
13887 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13888 ;;
13889 esac
13890 ;;
13891
13892 *)
13893 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13894 ;;
13895 esac
13896 dynamic_linker='Win32 ld.exe'
13897 # FIXME: first we should search . and the directory the executable is in
13898 shlibpath_var=PATH
13899 ;;
13900
13901 darwin* | rhapsody*)
13902 dynamic_linker="$host_os dyld"
13903 version_type=darwin
13904 need_lib_prefix=no
13905 need_version=no
13906 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13907 soname_spec='${libname}${release}${major}$shared_ext'
13908 shlibpath_overrides_runpath=yes
13909 shlibpath_var=DYLD_LIBRARY_PATH
13910 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13911 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13912 if test "$GCC" = yes; then
13913 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13914 else
13915 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13916 fi
13917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13918 ;;
13919
13920 dgux*)
13921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 shlibpath_var=LD_LIBRARY_PATH
13927 ;;
13928
13929 freebsd1*)
13930 dynamic_linker=no
13931 ;;
13932
13933 kfreebsd*-gnu)
13934 version_type=linux
13935 need_lib_prefix=no
13936 need_version=no
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 shlibpath_var=LD_LIBRARY_PATH
13940 shlibpath_overrides_runpath=no
13941 hardcode_into_libs=yes
13942 dynamic_linker='GNU ld.so'
13943 ;;
13944
13945 freebsd* | dragonfly*)
13946 # DragonFly does not have aout. When/if they implement a new
13947 # versioning mechanism, adjust this.
13948 if test -x /usr/bin/objformat; then
13949 objformat=`/usr/bin/objformat`
13950 else
13951 case $host_os in
13952 freebsd[123]*) objformat=aout ;;
13953 *) objformat=elf ;;
13954 esac
13955 fi
13956 version_type=freebsd-$objformat
13957 case $version_type in
13958 freebsd-elf*)
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13960 need_version=no
13961 need_lib_prefix=no
13962 ;;
13963 freebsd-*)
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13965 need_version=yes
13966 ;;
13967 esac
13968 shlibpath_var=LD_LIBRARY_PATH
13969 case $host_os in
13970 freebsd2*)
13971 shlibpath_overrides_runpath=yes
13972 ;;
13973 freebsd3.[01]* | freebsdelf3.[01]*)
13974 shlibpath_overrides_runpath=yes
13975 hardcode_into_libs=yes
13976 ;;
13977 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13978 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13979 shlibpath_overrides_runpath=no
13980 hardcode_into_libs=yes
13981 ;;
13982 freebsd*) # from 4.6 on
13983 shlibpath_overrides_runpath=yes
13984 hardcode_into_libs=yes
13985 ;;
13986 esac
13987 ;;
13988
13989 gnu*)
13990 version_type=linux
13991 need_lib_prefix=no
13992 need_version=no
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 hardcode_into_libs=yes
13997 ;;
13998
13999 hpux9* | hpux10* | hpux11*)
14000 # Give a soname corresponding to the major version so that dld.sl refuses to
14001 # link against other versions.
14002 version_type=sunos
14003 need_lib_prefix=no
14004 need_version=no
14005 case $host_cpu in
14006 ia64*)
14007 shrext_cmds='.so'
14008 hardcode_into_libs=yes
14009 dynamic_linker="$host_os dld.so"
14010 shlibpath_var=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 if test "X$HPUX_IA64_MODE" = X32; then
14015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14016 else
14017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14018 fi
14019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14020 ;;
14021 hppa*64*)
14022 shrext_cmds='.sl'
14023 hardcode_into_libs=yes
14024 dynamic_linker="$host_os dld.sl"
14025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14031 ;;
14032 *)
14033 shrext_cmds='.sl'
14034 dynamic_linker="$host_os dld.sl"
14035 shlibpath_var=SHLIB_PATH
14036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 ;;
14040 esac
14041 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14042 postinstall_cmds='chmod 555 $lib'
14043 ;;
14044
14045 interix3*)
14046 version_type=linux
14047 need_lib_prefix=no
14048 need_version=no
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 shlibpath_overrides_runpath=no
14054 hardcode_into_libs=yes
14055 ;;
14056
14057 irix5* | irix6* | nonstopux*)
14058 case $host_os in
14059 nonstopux*) version_type=nonstopux ;;
14060 *)
14061 if test "$lt_cv_prog_gnu_ld" = yes; then
14062 version_type=linux
14063 else
14064 version_type=irix
14065 fi ;;
14066 esac
14067 need_lib_prefix=no
14068 need_version=no
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14071 case $host_os in
14072 irix5* | nonstopux*)
14073 libsuff= shlibsuff=
14074 ;;
14075 *)
14076 case $LD in # libtool.m4 will add one of these switches to LD
14077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14078 libsuff= shlibsuff= libmagic=32-bit;;
14079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14080 libsuff=32 shlibsuff=N32 libmagic=N32;;
14081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14083 *) libsuff= shlibsuff= libmagic=never-match;;
14084 esac
14085 ;;
14086 esac
14087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14088 shlibpath_overrides_runpath=no
14089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14091 hardcode_into_libs=yes
14092 ;;
14093
14094 # No shared lib support for Linux oldld, aout, or coff.
14095 linux*oldld* | linux*aout* | linux*coff*)
14096 dynamic_linker=no
14097 ;;
14098
14099 # This must be Linux ELF.
14100 linux*)
14101 version_type=linux
14102 need_lib_prefix=no
14103 need_version=no
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105 soname_spec='${libname}${release}${shared_ext}$major'
14106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=no
14109 # This implies no fast_install, which is unacceptable.
14110 # Some rework will be needed to allow for fast_install
14111 # before this can be enabled.
14112 hardcode_into_libs=yes
14113
14114 # Append ld.so.conf contents to the search path
14115 if test -f /etc/ld.so.conf; then
14116 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14118 fi
14119
14120 # We used to test for /lib/ld.so.1 and disable shared libraries on
14121 # powerpc, because MkLinux only supported shared libraries with the
14122 # GNU dynamic linker. Since this was broken with cross compilers,
14123 # most powerpc-linux boxes support dynamic linking these days and
14124 # people can always --disable-shared, the test was removed, and we
14125 # assume the GNU/Linux dynamic linker is in use.
14126 dynamic_linker='GNU/Linux ld.so'
14127 ;;
14128
14129 knetbsd*-gnu)
14130 version_type=linux
14131 need_lib_prefix=no
14132 need_version=no
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 shlibpath_overrides_runpath=no
14137 hardcode_into_libs=yes
14138 dynamic_linker='GNU ld.so'
14139 ;;
14140
14141 netbsd*)
14142 version_type=sunos
14143 need_lib_prefix=no
14144 need_version=no
14145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14148 dynamic_linker='NetBSD (a.out) ld.so'
14149 else
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14151 soname_spec='${libname}${release}${shared_ext}$major'
14152 dynamic_linker='NetBSD ld.elf_so'
14153 fi
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 hardcode_into_libs=yes
14157 ;;
14158
14159 newsos6)
14160 version_type=linux
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 shlibpath_overrides_runpath=yes
14164 ;;
14165
14166 nto-qnx*)
14167 version_type=linux
14168 need_lib_prefix=no
14169 need_version=no
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 shlibpath_var=LD_LIBRARY_PATH
14173 shlibpath_overrides_runpath=yes
14174 ;;
14175
14176 openbsd*)
14177 version_type=sunos
14178 sys_lib_dlsearch_path_spec="/usr/lib"
14179 need_lib_prefix=no
14180 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14181 case $host_os in
14182 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14183 *) need_version=no ;;
14184 esac
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14189 case $host_os in
14190 openbsd2.[89] | openbsd2.[89].*)
14191 shlibpath_overrides_runpath=no
14192 ;;
14193 *)
14194 shlibpath_overrides_runpath=yes
14195 ;;
14196 esac
14197 else
14198 shlibpath_overrides_runpath=yes
14199 fi
14200 ;;
14201
14202 os2*)
14203 libname_spec='$name'
14204 shrext_cmds=".dll"
14205 need_lib_prefix=no
14206 library_names_spec='$libname${shared_ext} $libname.a'
14207 dynamic_linker='OS/2 ld.exe'
14208 shlibpath_var=LIBPATH
14209 ;;
14210
14211 osf3* | osf4* | osf5*)
14212 version_type=osf
14213 need_lib_prefix=no
14214 need_version=no
14215 soname_spec='${libname}${release}${shared_ext}$major'
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14220 ;;
14221
14222 solaris*)
14223 version_type=linux
14224 need_lib_prefix=no
14225 need_version=no
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 shlibpath_overrides_runpath=yes
14230 hardcode_into_libs=yes
14231 # ldd complains unless libraries are executable
14232 postinstall_cmds='chmod +x $lib'
14233 ;;
14234
14235 sunos4*)
14236 version_type=sunos
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 shlibpath_overrides_runpath=yes
14241 if test "$with_gnu_ld" = yes; then
14242 need_lib_prefix=no
14243 fi
14244 need_version=yes
14245 ;;
14246
14247 sysv4 | sysv4.3*)
14248 version_type=linux
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 shlibpath_var=LD_LIBRARY_PATH
14252 case $host_vendor in
14253 sni)
14254 shlibpath_overrides_runpath=no
14255 need_lib_prefix=no
14256 export_dynamic_flag_spec='${wl}-Blargedynsym'
14257 runpath_var=LD_RUN_PATH
14258 ;;
14259 siemens)
14260 need_lib_prefix=no
14261 ;;
14262 motorola)
14263 need_lib_prefix=no
14264 need_version=no
14265 shlibpath_overrides_runpath=no
14266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14267 ;;
14268 esac
14269 ;;
14270
14271 sysv4*MP*)
14272 if test -d /usr/nec ;then
14273 version_type=linux
14274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14275 soname_spec='$libname${shared_ext}.$major'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 fi
14278 ;;
14279
14280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14281 version_type=freebsd-elf
14282 need_lib_prefix=no
14283 need_version=no
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 hardcode_into_libs=yes
14288 if test "$with_gnu_ld" = yes; then
14289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14290 shlibpath_overrides_runpath=no
14291 else
14292 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14293 shlibpath_overrides_runpath=yes
14294 case $host_os in
14295 sco3.2v5*)
14296 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14297 ;;
14298 esac
14299 fi
14300 sys_lib_dlsearch_path_spec='/usr/lib'
14301 ;;
14302
14303 uts4*)
14304 version_type=linux
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 shlibpath_var=LD_LIBRARY_PATH
14308 ;;
14309
14310 *)
14311 dynamic_linker=no
14312 ;;
14313 esac
14314 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14315 echo "${ECHO_T}$dynamic_linker" >&6
14316 test "$dynamic_linker" = no && can_build_shared=no
14317
14318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14319 if test "$GCC" = yes; then
14320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14321 fi
14322
14323 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14325 hardcode_action_CXX=
14326 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14327 test -n "$runpath_var_CXX" || \
14328 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14329
14330 # We can hardcode non-existant directories.
14331 if test "$hardcode_direct_CXX" != no &&
14332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14333 # have to relink, otherwise we might link with an installed library
14334 # when we should be linking with a yet-to-be-installed one
14335 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14336 test "$hardcode_minus_L_CXX" != no; then
14337 # Linking always hardcodes the temporary library directory.
14338 hardcode_action_CXX=relink
14339 else
14340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14341 hardcode_action_CXX=immediate
14342 fi
14343 else
14344 # We cannot hardcode anything, or else we can only hardcode existing
14345 # directories.
14346 hardcode_action_CXX=unsupported
14347 fi
14348 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14349 echo "${ECHO_T}$hardcode_action_CXX" >&6
14350
14351 if test "$hardcode_action_CXX" = relink; then
14352 # Fast installation is not supported
14353 enable_fast_install=no
14354 elif test "$shlibpath_overrides_runpath" = yes ||
14355 test "$enable_shared" = no; then
14356 # Fast installation is not necessary
14357 enable_fast_install=needless
14358 fi
14359
14360
14361 # The else clause should only fire when bootstrapping the
14362 # libtool distribution, otherwise you forgot to ship ltmain.sh
14363 # with your package, and you will get complaints that there are
14364 # no rules to generate ltmain.sh.
14365 if test -f "$ltmain"; then
14366 # See if we are running on zsh, and set the options which allow our commands through
14367 # without removal of \ escapes.
14368 if test -n "${ZSH_VERSION+set}" ; then
14369 setopt NO_GLOB_SUBST
14370 fi
14371 # Now quote all the things that may contain metacharacters while being
14372 # careful not to overquote the AC_SUBSTed values. We take copies of the
14373 # variables and quote the copies for generation of the libtool script.
14374 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14375 SED SHELL STRIP \
14376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14378 deplibs_check_method reload_flag reload_cmds need_locks \
14379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14380 lt_cv_sys_global_symbol_to_c_name_address \
14381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14382 old_postinstall_cmds old_postuninstall_cmds \
14383 compiler_CXX \
14384 CC_CXX \
14385 LD_CXX \
14386 lt_prog_compiler_wl_CXX \
14387 lt_prog_compiler_pic_CXX \
14388 lt_prog_compiler_static_CXX \
14389 lt_prog_compiler_no_builtin_flag_CXX \
14390 export_dynamic_flag_spec_CXX \
14391 thread_safe_flag_spec_CXX \
14392 whole_archive_flag_spec_CXX \
14393 enable_shared_with_static_runtimes_CXX \
14394 old_archive_cmds_CXX \
14395 old_archive_from_new_cmds_CXX \
14396 predep_objects_CXX \
14397 postdep_objects_CXX \
14398 predeps_CXX \
14399 postdeps_CXX \
14400 compiler_lib_search_path_CXX \
14401 archive_cmds_CXX \
14402 archive_expsym_cmds_CXX \
14403 postinstall_cmds_CXX \
14404 postuninstall_cmds_CXX \
14405 old_archive_from_expsyms_cmds_CXX \
14406 allow_undefined_flag_CXX \
14407 no_undefined_flag_CXX \
14408 export_symbols_cmds_CXX \
14409 hardcode_libdir_flag_spec_CXX \
14410 hardcode_libdir_flag_spec_ld_CXX \
14411 hardcode_libdir_separator_CXX \
14412 hardcode_automatic_CXX \
14413 module_cmds_CXX \
14414 module_expsym_cmds_CXX \
14415 lt_cv_prog_compiler_c_o_CXX \
14416 exclude_expsyms_CXX \
14417 include_expsyms_CXX; do
14418
14419 case $var in
14420 old_archive_cmds_CXX | \
14421 old_archive_from_new_cmds_CXX | \
14422 archive_cmds_CXX | \
14423 archive_expsym_cmds_CXX | \
14424 module_cmds_CXX | \
14425 module_expsym_cmds_CXX | \
14426 old_archive_from_expsyms_cmds_CXX | \
14427 export_symbols_cmds_CXX | \
14428 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14429 postinstall_cmds | postuninstall_cmds | \
14430 old_postinstall_cmds | old_postuninstall_cmds | \
14431 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14432 # Double-quote double-evaled strings.
14433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14434 ;;
14435 *)
14436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14437 ;;
14438 esac
14439 done
14440
14441 case $lt_echo in
14442 *'\$0 --fallback-echo"')
14443 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14444 ;;
14445 esac
14446
14447 cfgfile="$ofile"
14448
14449 cat <<__EOF__ >> "$cfgfile"
14450 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14451
14452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14453
14454 # Shell to use when invoking shell scripts.
14455 SHELL=$lt_SHELL
14456
14457 # Whether or not to build shared libraries.
14458 build_libtool_libs=$enable_shared
14459
14460 # Whether or not to build static libraries.
14461 build_old_libs=$enable_static
14462
14463 # Whether or not to add -lc for building shared libraries.
14464 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14465
14466 # Whether or not to disallow shared libs when runtime libs are static
14467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14468
14469 # Whether or not to optimize for fast installation.
14470 fast_install=$enable_fast_install
14471
14472 # The host system.
14473 host_alias=$host_alias
14474 host=$host
14475 host_os=$host_os
14476
14477 # The build system.
14478 build_alias=$build_alias
14479 build=$build
14480 build_os=$build_os
14481
14482 # An echo program that does not interpret backslashes.
14483 echo=$lt_echo
14484
14485 # The archiver.
14486 AR=$lt_AR
14487 AR_FLAGS=$lt_AR_FLAGS
14488
14489 # A C compiler.
14490 LTCC=$lt_LTCC
14491
14492 # LTCC compiler flags.
14493 LTCFLAGS=$lt_LTCFLAGS
14494
14495 # A language-specific compiler.
14496 CC=$lt_compiler_CXX
14497
14498 # Is the compiler the GNU C compiler?
14499 with_gcc=$GCC_CXX
14500
14501 # An ERE matcher.
14502 EGREP=$lt_EGREP
14503
14504 # The linker used to build libraries.
14505 LD=$lt_LD_CXX
14506
14507 # Whether we need hard or soft links.
14508 LN_S=$lt_LN_S
14509
14510 # A BSD-compatible nm program.
14511 NM=$lt_NM
14512
14513 # A symbol stripping program
14514 STRIP=$lt_STRIP
14515
14516 # Used to examine libraries when file_magic_cmd begins "file"
14517 MAGIC_CMD=$MAGIC_CMD
14518
14519 # Used on cygwin: DLL creation program.
14520 DLLTOOL="$DLLTOOL"
14521
14522 # Used on cygwin: object dumper.
14523 OBJDUMP="$OBJDUMP"
14524
14525 # Used on cygwin: assembler.
14526 AS="$AS"
14527
14528 # The name of the directory that contains temporary libtool files.
14529 objdir=$objdir
14530
14531 # How to create reloadable object files.
14532 reload_flag=$lt_reload_flag
14533 reload_cmds=$lt_reload_cmds
14534
14535 # How to pass a linker flag through the compiler.
14536 wl=$lt_lt_prog_compiler_wl_CXX
14537
14538 # Object file suffix (normally "o").
14539 objext="$ac_objext"
14540
14541 # Old archive suffix (normally "a").
14542 libext="$libext"
14543
14544 # Shared library suffix (normally ".so").
14545 shrext_cmds='$shrext_cmds'
14546
14547 # Executable file suffix (normally "").
14548 exeext="$exeext"
14549
14550 # Additional compiler flags for building library objects.
14551 pic_flag=$lt_lt_prog_compiler_pic_CXX
14552 pic_mode=$pic_mode
14553
14554 # What is the maximum length of a command?
14555 max_cmd_len=$lt_cv_sys_max_cmd_len
14556
14557 # Does compiler simultaneously support -c and -o options?
14558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14559
14560 # Must we lock files when doing compilation?
14561 need_locks=$lt_need_locks
14562
14563 # Do we need the lib prefix for modules?
14564 need_lib_prefix=$need_lib_prefix
14565
14566 # Do we need a version for libraries?
14567 need_version=$need_version
14568
14569 # Whether dlopen is supported.
14570 dlopen_support=$enable_dlopen
14571
14572 # Whether dlopen of programs is supported.
14573 dlopen_self=$enable_dlopen_self
14574
14575 # Whether dlopen of statically linked programs is supported.
14576 dlopen_self_static=$enable_dlopen_self_static
14577
14578 # Compiler flag to prevent dynamic linking.
14579 link_static_flag=$lt_lt_prog_compiler_static_CXX
14580
14581 # Compiler flag to turn off builtin functions.
14582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14583
14584 # Compiler flag to allow reflexive dlopens.
14585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14586
14587 # Compiler flag to generate shared objects directly from archives.
14588 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14589
14590 # Compiler flag to generate thread-safe objects.
14591 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14592
14593 # Library versioning type.
14594 version_type=$version_type
14595
14596 # Format of library name prefix.
14597 libname_spec=$lt_libname_spec
14598
14599 # List of archive names. First name is the real one, the rest are links.
14600 # The last name is the one that the linker finds with -lNAME.
14601 library_names_spec=$lt_library_names_spec
14602
14603 # The coded name of the library, if different from the real name.
14604 soname_spec=$lt_soname_spec
14605
14606 # Commands used to build and install an old-style archive.
14607 RANLIB=$lt_RANLIB
14608 old_archive_cmds=$lt_old_archive_cmds_CXX
14609 old_postinstall_cmds=$lt_old_postinstall_cmds
14610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14611
14612 # Create an old-style archive from a shared archive.
14613 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14614
14615 # Create a temporary old-style archive to link instead of a shared archive.
14616 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14617
14618 # Commands used to build and install a shared archive.
14619 archive_cmds=$lt_archive_cmds_CXX
14620 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14621 postinstall_cmds=$lt_postinstall_cmds
14622 postuninstall_cmds=$lt_postuninstall_cmds
14623
14624 # Commands used to build a loadable module (assumed same as above if empty)
14625 module_cmds=$lt_module_cmds_CXX
14626 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14627
14628 # Commands to strip libraries.
14629 old_striplib=$lt_old_striplib
14630 striplib=$lt_striplib
14631
14632 # Dependencies to place before the objects being linked to create a
14633 # shared library.
14634 predep_objects=$lt_predep_objects_CXX
14635
14636 # Dependencies to place after the objects being linked to create a
14637 # shared library.
14638 postdep_objects=$lt_postdep_objects_CXX
14639
14640 # Dependencies to place before the objects being linked to create a
14641 # shared library.
14642 predeps=$lt_predeps_CXX
14643
14644 # Dependencies to place after the objects being linked to create a
14645 # shared library.
14646 postdeps=$lt_postdeps_CXX
14647
14648 # The library search path used internally by the compiler when linking
14649 # a shared library.
14650 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14651
14652 # Method to check whether dependent libraries are shared objects.
14653 deplibs_check_method=$lt_deplibs_check_method
14654
14655 # Command to use when deplibs_check_method == file_magic.
14656 file_magic_cmd=$lt_file_magic_cmd
14657
14658 # Flag that allows shared libraries with undefined symbols to be built.
14659 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14660
14661 # Flag that forces no undefined symbols.
14662 no_undefined_flag=$lt_no_undefined_flag_CXX
14663
14664 # Commands used to finish a libtool library installation in a directory.
14665 finish_cmds=$lt_finish_cmds
14666
14667 # Same as above, but a single script fragment to be evaled but not shown.
14668 finish_eval=$lt_finish_eval
14669
14670 # Take the output of nm and produce a listing of raw symbols and C names.
14671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14672
14673 # Transform the output of nm in a proper C declaration
14674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14675
14676 # Transform the output of nm in a C name address pair
14677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14678
14679 # This is the shared library runtime path variable.
14680 runpath_var=$runpath_var
14681
14682 # This is the shared library path variable.
14683 shlibpath_var=$shlibpath_var
14684
14685 # Is shlibpath searched before the hard-coded library search path?
14686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14687
14688 # How to hardcode a shared library path into an executable.
14689 hardcode_action=$hardcode_action_CXX
14690
14691 # Whether we should hardcode library paths into libraries.
14692 hardcode_into_libs=$hardcode_into_libs
14693
14694 # Flag to hardcode \$libdir into a binary during linking.
14695 # This must work even if \$libdir does not exist.
14696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14697
14698 # If ld is used when linking, flag to hardcode \$libdir into
14699 # a binary during linking. This must work even if \$libdir does
14700 # not exist.
14701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14702
14703 # Whether we need a single -rpath flag with a separated argument.
14704 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14705
14706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14707 # resulting binary.
14708 hardcode_direct=$hardcode_direct_CXX
14709
14710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14711 # resulting binary.
14712 hardcode_minus_L=$hardcode_minus_L_CXX
14713
14714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14715 # the resulting binary.
14716 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14717
14718 # Set to yes if building a shared library automatically hardcodes DIR into the library
14719 # and all subsequent libraries and executables linked against it.
14720 hardcode_automatic=$hardcode_automatic_CXX
14721
14722 # Variables whose values should be saved in libtool wrapper scripts and
14723 # restored at relink time.
14724 variables_saved_for_relink="$variables_saved_for_relink"
14725
14726 # Whether libtool must link a program against all its dependency libraries.
14727 link_all_deplibs=$link_all_deplibs_CXX
14728
14729 # Compile-time system search path for libraries
14730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14731
14732 # Run-time system search path for libraries
14733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14734
14735 # Fix the shell variable \$srcfile for the compiler.
14736 fix_srcfile_path="$fix_srcfile_path_CXX"
14737
14738 # Set to yes if exported symbols are required.
14739 always_export_symbols=$always_export_symbols_CXX
14740
14741 # The commands to list exported symbols.
14742 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14743
14744 # The commands to extract the exported symbol list from a shared archive.
14745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14746
14747 # Symbols that should not be listed in the preloaded symbols.
14748 exclude_expsyms=$lt_exclude_expsyms_CXX
14749
14750 # Symbols that must always be exported.
14751 include_expsyms=$lt_include_expsyms_CXX
14752
14753 # ### END LIBTOOL TAG CONFIG: $tagname
14754
14755 __EOF__
14756
14757
14758 else
14759 # If there is no Makefile yet, we rely on a make rule to execute
14760 # `config.status --recheck' to rerun these tests and create the
14761 # libtool script then.
14762 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14763 if test -f "$ltmain_in"; then
14764 test -f Makefile && make "$ltmain"
14765 fi
14766 fi
14767
14768
14769 ac_ext=c
14770 ac_cpp='$CPP $CPPFLAGS'
14771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14774
14775 CC=$lt_save_CC
14776 LDCXX=$LD
14777 LD=$lt_save_LD
14778 GCC=$lt_save_GCC
14779 with_gnu_ldcxx=$with_gnu_ld
14780 with_gnu_ld=$lt_save_with_gnu_ld
14781 lt_cv_path_LDCXX=$lt_cv_path_LD
14782 lt_cv_path_LD=$lt_save_path_LD
14783 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14784 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14785
14786 else
14787 tagname=""
14788 fi
14789 ;;
14790
14791 F77)
14792 if test -n "$F77" && test "X$F77" != "Xno"; then
14793
14794 ac_ext=f
14795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14798
14799
14800 archive_cmds_need_lc_F77=no
14801 allow_undefined_flag_F77=
14802 always_export_symbols_F77=no
14803 archive_expsym_cmds_F77=
14804 export_dynamic_flag_spec_F77=
14805 hardcode_direct_F77=no
14806 hardcode_libdir_flag_spec_F77=
14807 hardcode_libdir_flag_spec_ld_F77=
14808 hardcode_libdir_separator_F77=
14809 hardcode_minus_L_F77=no
14810 hardcode_automatic_F77=no
14811 module_cmds_F77=
14812 module_expsym_cmds_F77=
14813 link_all_deplibs_F77=unknown
14814 old_archive_cmds_F77=$old_archive_cmds
14815 no_undefined_flag_F77=
14816 whole_archive_flag_spec_F77=
14817 enable_shared_with_static_runtimes_F77=no
14818
14819 # Source file extension for f77 test sources.
14820 ac_ext=f
14821
14822 # Object file extension for compiled f77 test sources.
14823 objext=o
14824 objext_F77=$objext
14825
14826 # Code to be used in simple compile tests
14827 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14828
14829 # Code to be used in simple link tests
14830 lt_simple_link_test_code=" program t\n end\n"
14831
14832 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14833
14834 # If no C compiler was specified, use CC.
14835 LTCC=${LTCC-"$CC"}
14836
14837 # If no C compiler flags were specified, use CFLAGS.
14838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14839
14840 # Allow CC to be a program name with arguments.
14841 compiler=$CC
14842
14843
14844 # save warnings/boilerplate of simple test code
14845 ac_outfile=conftest.$ac_objext
14846 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14847 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14848 _lt_compiler_boilerplate=`cat conftest.err`
14849 $rm conftest*
14850
14851 ac_outfile=conftest.$ac_objext
14852 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14853 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14854 _lt_linker_boilerplate=`cat conftest.err`
14855 $rm conftest*
14856
14857
14858 # Allow CC to be a program name with arguments.
14859 lt_save_CC="$CC"
14860 CC=${F77-"f77"}
14861 compiler=$CC
14862 compiler_F77=$CC
14863 for cc_temp in $compiler""; do
14864 case $cc_temp in
14865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14867 \-*) ;;
14868 *) break;;
14869 esac
14870 done
14871 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14872
14873
14874 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14875 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14876 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14877 echo "${ECHO_T}$can_build_shared" >&6
14878
14879 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14880 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14881 test "$can_build_shared" = "no" && enable_shared=no
14882
14883 # On AIX, shared libraries and static libraries use the same namespace, and
14884 # are all built from PIC.
14885 case $host_os in
14886 aix3*)
14887 test "$enable_shared" = yes && enable_static=no
14888 if test -n "$RANLIB"; then
14889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14890 postinstall_cmds='$RANLIB $lib'
14891 fi
14892 ;;
14893 aix4* | aix5*)
14894 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14895 test "$enable_shared" = yes && enable_static=no
14896 fi
14897 ;;
14898 esac
14899 echo "$as_me:$LINENO: result: $enable_shared" >&5
14900 echo "${ECHO_T}$enable_shared" >&6
14901
14902 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14903 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14904 # Make sure either enable_shared or enable_static is yes.
14905 test "$enable_shared" = yes || enable_static=yes
14906 echo "$as_me:$LINENO: result: $enable_static" >&5
14907 echo "${ECHO_T}$enable_static" >&6
14908
14909 GCC_F77="$G77"
14910 LD_F77="$LD"
14911
14912 lt_prog_compiler_wl_F77=
14913 lt_prog_compiler_pic_F77=
14914 lt_prog_compiler_static_F77=
14915
14916 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14917 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14918
14919 if test "$GCC" = yes; then
14920 lt_prog_compiler_wl_F77='-Wl,'
14921 lt_prog_compiler_static_F77='-static'
14922
14923 case $host_os in
14924 aix*)
14925 # All AIX code is PIC.
14926 if test "$host_cpu" = ia64; then
14927 # AIX 5 now supports IA64 processor
14928 lt_prog_compiler_static_F77='-Bstatic'
14929 fi
14930 ;;
14931
14932 amigaos*)
14933 # FIXME: we need at least 68020 code to build shared libraries, but
14934 # adding the `-m68020' flag to GCC prevents building anything better,
14935 # like `-m68040'.
14936 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14937 ;;
14938
14939 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14940 # PIC is the default for these OSes.
14941 ;;
14942
14943 mingw* | pw32* | os2*)
14944 # This hack is so that the source file can tell whether it is being
14945 # built for inclusion in a dll (and should export symbols for example).
14946 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14947 ;;
14948
14949 darwin* | rhapsody*)
14950 # PIC is the default on this platform
14951 # Common symbols not allowed in MH_DYLIB files
14952 lt_prog_compiler_pic_F77='-fno-common'
14953 ;;
14954
14955 interix3*)
14956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14957 # Instead, we relocate shared libraries at runtime.
14958 ;;
14959
14960 msdosdjgpp*)
14961 # Just because we use GCC doesn't mean we suddenly get shared libraries
14962 # on systems that don't support them.
14963 lt_prog_compiler_can_build_shared_F77=no
14964 enable_shared=no
14965 ;;
14966
14967 sysv4*MP*)
14968 if test -d /usr/nec; then
14969 lt_prog_compiler_pic_F77=-Kconform_pic
14970 fi
14971 ;;
14972
14973 hpux*)
14974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975 # not for PA HP-UX.
14976 case $host_cpu in
14977 hppa*64*|ia64*)
14978 # +Z the default
14979 ;;
14980 *)
14981 lt_prog_compiler_pic_F77='-fPIC'
14982 ;;
14983 esac
14984 ;;
14985
14986 *)
14987 lt_prog_compiler_pic_F77='-fPIC'
14988 ;;
14989 esac
14990 else
14991 # PORTME Check for flag to pass linker flags through the system compiler.
14992 case $host_os in
14993 aix*)
14994 lt_prog_compiler_wl_F77='-Wl,'
14995 if test "$host_cpu" = ia64; then
14996 # AIX 5 now supports IA64 processor
14997 lt_prog_compiler_static_F77='-Bstatic'
14998 else
14999 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15000 fi
15001 ;;
15002 darwin*)
15003 # PIC is the default on this platform
15004 # Common symbols not allowed in MH_DYLIB files
15005 case $cc_basename in
15006 xlc*)
15007 lt_prog_compiler_pic_F77='-qnocommon'
15008 lt_prog_compiler_wl_F77='-Wl,'
15009 ;;
15010 esac
15011 ;;
15012
15013 mingw* | pw32* | os2*)
15014 # This hack is so that the source file can tell whether it is being
15015 # built for inclusion in a dll (and should export symbols for example).
15016 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15017 ;;
15018
15019 hpux9* | hpux10* | hpux11*)
15020 lt_prog_compiler_wl_F77='-Wl,'
15021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15022 # not for PA HP-UX.
15023 case $host_cpu in
15024 hppa*64*|ia64*)
15025 # +Z the default
15026 ;;
15027 *)
15028 lt_prog_compiler_pic_F77='+Z'
15029 ;;
15030 esac
15031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15032 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15033 ;;
15034
15035 irix5* | irix6* | nonstopux*)
15036 lt_prog_compiler_wl_F77='-Wl,'
15037 # PIC (with -KPIC) is the default.
15038 lt_prog_compiler_static_F77='-non_shared'
15039 ;;
15040
15041 newsos6)
15042 lt_prog_compiler_pic_F77='-KPIC'
15043 lt_prog_compiler_static_F77='-Bstatic'
15044 ;;
15045
15046 linux*)
15047 case $cc_basename in
15048 icc* | ecc*)
15049 lt_prog_compiler_wl_F77='-Wl,'
15050 lt_prog_compiler_pic_F77='-KPIC'
15051 lt_prog_compiler_static_F77='-static'
15052 ;;
15053 pgcc* | pgf77* | pgf90* | pgf95*)
15054 # Portland Group compilers (*not* the Pentium gcc compiler,
15055 # which looks to be a dead project)
15056 lt_prog_compiler_wl_F77='-Wl,'
15057 lt_prog_compiler_pic_F77='-fpic'
15058 lt_prog_compiler_static_F77='-Bstatic'
15059 ;;
15060 ccc*)
15061 lt_prog_compiler_wl_F77='-Wl,'
15062 # All Alpha code is PIC.
15063 lt_prog_compiler_static_F77='-non_shared'
15064 ;;
15065 esac
15066 ;;
15067
15068 osf3* | osf4* | osf5*)
15069 lt_prog_compiler_wl_F77='-Wl,'
15070 # All OSF/1 code is PIC.
15071 lt_prog_compiler_static_F77='-non_shared'
15072 ;;
15073
15074 solaris*)
15075 lt_prog_compiler_pic_F77='-KPIC'
15076 lt_prog_compiler_static_F77='-Bstatic'
15077 case $cc_basename in
15078 f77* | f90* | f95*)
15079 lt_prog_compiler_wl_F77='-Qoption ld ';;
15080 *)
15081 lt_prog_compiler_wl_F77='-Wl,';;
15082 esac
15083 ;;
15084
15085 sunos4*)
15086 lt_prog_compiler_wl_F77='-Qoption ld '
15087 lt_prog_compiler_pic_F77='-PIC'
15088 lt_prog_compiler_static_F77='-Bstatic'
15089 ;;
15090
15091 sysv4 | sysv4.2uw2* | sysv4.3*)
15092 lt_prog_compiler_wl_F77='-Wl,'
15093 lt_prog_compiler_pic_F77='-KPIC'
15094 lt_prog_compiler_static_F77='-Bstatic'
15095 ;;
15096
15097 sysv4*MP*)
15098 if test -d /usr/nec ;then
15099 lt_prog_compiler_pic_F77='-Kconform_pic'
15100 lt_prog_compiler_static_F77='-Bstatic'
15101 fi
15102 ;;
15103
15104 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15105 lt_prog_compiler_wl_F77='-Wl,'
15106 lt_prog_compiler_pic_F77='-KPIC'
15107 lt_prog_compiler_static_F77='-Bstatic'
15108 ;;
15109
15110 unicos*)
15111 lt_prog_compiler_wl_F77='-Wl,'
15112 lt_prog_compiler_can_build_shared_F77=no
15113 ;;
15114
15115 uts4*)
15116 lt_prog_compiler_pic_F77='-pic'
15117 lt_prog_compiler_static_F77='-Bstatic'
15118 ;;
15119
15120 *)
15121 lt_prog_compiler_can_build_shared_F77=no
15122 ;;
15123 esac
15124 fi
15125
15126 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15127 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15128
15129 #
15130 # Check to make sure the PIC flag actually works.
15131 #
15132 if test -n "$lt_prog_compiler_pic_F77"; then
15133
15134 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15135 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15136 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 lt_prog_compiler_pic_works_F77=no
15140 ac_outfile=conftest.$ac_objext
15141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15142 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15143 # Insert the option either (1) after the last *FLAGS variable, or
15144 # (2) before a word containing "conftest.", or (3) at the end.
15145 # Note that $ac_compile itself does not contain backslashes and begins
15146 # with a dollar sign (not a hyphen), so the echo should work correctly.
15147 # The option is referenced via a variable to avoid confusing sed.
15148 lt_compile=`echo "$ac_compile" | $SED \
15149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15151 -e 's:$: $lt_compiler_flag:'`
15152 (eval echo "\"\$as_me:15152: $lt_compile\"" >&5)
15153 (eval "$lt_compile" 2>conftest.err)
15154 ac_status=$?
15155 cat conftest.err >&5
15156 echo "$as_me:15156: \$? = $ac_status" >&5
15157 if (exit $ac_status) && test -s "$ac_outfile"; then
15158 # The compiler can only warn and ignore the option if not recognized
15159 # So say no if there are warnings other than the usual output.
15160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15163 lt_prog_compiler_pic_works_F77=yes
15164 fi
15165 fi
15166 $rm conftest*
15167
15168 fi
15169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15170 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15171
15172 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15173 case $lt_prog_compiler_pic_F77 in
15174 "" | " "*) ;;
15175 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15176 esac
15177 else
15178 lt_prog_compiler_pic_F77=
15179 lt_prog_compiler_can_build_shared_F77=no
15180 fi
15181
15182 fi
15183 case $host_os in
15184 # For platforms which do not support PIC, -DPIC is meaningless:
15185 *djgpp*)
15186 lt_prog_compiler_pic_F77=
15187 ;;
15188 *)
15189 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15190 ;;
15191 esac
15192
15193 #
15194 # Check to make sure the static flag actually works.
15195 #
15196 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15197 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15198 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15199 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 lt_prog_compiler_static_works_F77=no
15203 save_LDFLAGS="$LDFLAGS"
15204 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15205 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15207 # The linker can only warn and ignore the option if not recognized
15208 # So say no if there are warnings
15209 if test -s conftest.err; then
15210 # Append any errors to the config.log.
15211 cat conftest.err 1>&5
15212 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15214 if diff conftest.exp conftest.er2 >/dev/null; then
15215 lt_prog_compiler_static_works_F77=yes
15216 fi
15217 else
15218 lt_prog_compiler_static_works_F77=yes
15219 fi
15220 fi
15221 $rm conftest*
15222 LDFLAGS="$save_LDFLAGS"
15223
15224 fi
15225 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15226 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15227
15228 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15229 :
15230 else
15231 lt_prog_compiler_static_F77=
15232 fi
15233
15234
15235 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15236 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15237 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 lt_cv_prog_compiler_c_o_F77=no
15241 $rm -r conftest 2>/dev/null
15242 mkdir conftest
15243 cd conftest
15244 mkdir out
15245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15246
15247 lt_compiler_flag="-o out/conftest2.$ac_objext"
15248 # Insert the option either (1) after the last *FLAGS variable, or
15249 # (2) before a word containing "conftest.", or (3) at the end.
15250 # Note that $ac_compile itself does not contain backslashes and begins
15251 # with a dollar sign (not a hyphen), so the echo should work correctly.
15252 lt_compile=`echo "$ac_compile" | $SED \
15253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15255 -e 's:$: $lt_compiler_flag:'`
15256 (eval echo "\"\$as_me:15256: $lt_compile\"" >&5)
15257 (eval "$lt_compile" 2>out/conftest.err)
15258 ac_status=$?
15259 cat out/conftest.err >&5
15260 echo "$as_me:15260: \$? = $ac_status" >&5
15261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15262 then
15263 # The compiler can only warn and ignore the option if not recognized
15264 # So say no if there are warnings
15265 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15268 lt_cv_prog_compiler_c_o_F77=yes
15269 fi
15270 fi
15271 chmod u+w . 2>&5
15272 $rm conftest*
15273 # SGI C++ compiler will create directory out/ii_files/ for
15274 # template instantiation
15275 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15276 $rm out/* && rmdir out
15277 cd ..
15278 rmdir conftest
15279 $rm conftest*
15280
15281 fi
15282 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15283 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15284
15285
15286 hard_links="nottested"
15287 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15288 # do not overwrite the value of need_locks provided by the user
15289 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15290 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15291 hard_links=yes
15292 $rm conftest*
15293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15294 touch conftest.a
15295 ln conftest.a conftest.b 2>&5 || hard_links=no
15296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15297 echo "$as_me:$LINENO: result: $hard_links" >&5
15298 echo "${ECHO_T}$hard_links" >&6
15299 if test "$hard_links" = no; then
15300 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15301 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15302 need_locks=warn
15303 fi
15304 else
15305 need_locks=no
15306 fi
15307
15308 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15309 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15310
15311 runpath_var=
15312 allow_undefined_flag_F77=
15313 enable_shared_with_static_runtimes_F77=no
15314 archive_cmds_F77=
15315 archive_expsym_cmds_F77=
15316 old_archive_From_new_cmds_F77=
15317 old_archive_from_expsyms_cmds_F77=
15318 export_dynamic_flag_spec_F77=
15319 whole_archive_flag_spec_F77=
15320 thread_safe_flag_spec_F77=
15321 hardcode_libdir_flag_spec_F77=
15322 hardcode_libdir_flag_spec_ld_F77=
15323 hardcode_libdir_separator_F77=
15324 hardcode_direct_F77=no
15325 hardcode_minus_L_F77=no
15326 hardcode_shlibpath_var_F77=unsupported
15327 link_all_deplibs_F77=unknown
15328 hardcode_automatic_F77=no
15329 module_cmds_F77=
15330 module_expsym_cmds_F77=
15331 always_export_symbols_F77=no
15332 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15333 # include_expsyms should be a list of space-separated symbols to be *always*
15334 # included in the symbol list
15335 include_expsyms_F77=
15336 # exclude_expsyms can be an extended regexp of symbols to exclude
15337 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15338 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15339 # as well as any symbol that contains `d'.
15340 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15341 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15342 # platforms (ab)use it in PIC code, but their linkers get confused if
15343 # the symbol is explicitly referenced. Since portable code cannot
15344 # rely on this symbol name, it's probably fine to never include it in
15345 # preloaded symbol tables.
15346 extract_expsyms_cmds=
15347 # Just being paranoid about ensuring that cc_basename is set.
15348 for cc_temp in $compiler""; do
15349 case $cc_temp in
15350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15352 \-*) ;;
15353 *) break;;
15354 esac
15355 done
15356 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15357
15358 case $host_os in
15359 cygwin* | mingw* | pw32*)
15360 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15361 # When not using gcc, we currently assume that we are using
15362 # Microsoft Visual C++.
15363 if test "$GCC" != yes; then
15364 with_gnu_ld=no
15365 fi
15366 ;;
15367 interix*)
15368 # we just hope/assume this is gcc and not c89 (= MSVC++)
15369 with_gnu_ld=yes
15370 ;;
15371 openbsd*)
15372 with_gnu_ld=no
15373 ;;
15374 esac
15375
15376 ld_shlibs_F77=yes
15377 if test "$with_gnu_ld" = yes; then
15378 # If archive_cmds runs LD, not CC, wlarc should be empty
15379 wlarc='${wl}'
15380
15381 # Set some defaults for GNU ld with shared library support. These
15382 # are reset later if shared libraries are not supported. Putting them
15383 # here allows them to be overridden if necessary.
15384 runpath_var=LD_RUN_PATH
15385 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15386 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15387 # ancient GNU ld didn't support --whole-archive et. al.
15388 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15389 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15390 else
15391 whole_archive_flag_spec_F77=
15392 fi
15393 supports_anon_versioning=no
15394 case `$LD -v 2>/dev/null` in
15395 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15396 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15397 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15398 *\ 2.11.*) ;; # other 2.11 versions
15399 *) supports_anon_versioning=yes ;;
15400 esac
15401
15402 # See if GNU ld supports shared libraries.
15403 case $host_os in
15404 aix3* | aix4* | aix5*)
15405 # On AIX/PPC, the GNU linker is very broken
15406 if test "$host_cpu" != ia64; then
15407 ld_shlibs_F77=no
15408 cat <<EOF 1>&2
15409
15410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15411 *** to be unable to reliably create shared libraries on AIX.
15412 *** Therefore, libtool is disabling shared libraries support. If you
15413 *** really care for shared libraries, you may want to modify your PATH
15414 *** so that a non-GNU linker is found, and then restart.
15415
15416 EOF
15417 fi
15418 ;;
15419
15420 amigaos*)
15421 archive_cmds_F77='$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)'
15422 hardcode_libdir_flag_spec_F77='-L$libdir'
15423 hardcode_minus_L_F77=yes
15424
15425 # Samuel A. Falvo II <[email protected]> reports
15426 # that the semantics of dynamic libraries on AmigaOS, at least up
15427 # to version 4, is to share data among multiple programs linked
15428 # with the same dynamic library. Since this doesn't match the
15429 # behavior of shared libraries on other platforms, we can't use
15430 # them.
15431 ld_shlibs_F77=no
15432 ;;
15433
15434 beos*)
15435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15436 allow_undefined_flag_F77=unsupported
15437 # Joseph Beckenbach <[email protected]> says some releases of gcc
15438 # support --undefined. This deserves some investigation. FIXME
15439 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440 else
15441 ld_shlibs_F77=no
15442 fi
15443 ;;
15444
15445 cygwin* | mingw* | pw32*)
15446 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15447 # as there is no search path for DLLs.
15448 hardcode_libdir_flag_spec_F77='-L$libdir'
15449 allow_undefined_flag_F77=unsupported
15450 always_export_symbols_F77=no
15451 enable_shared_with_static_runtimes_F77=yes
15452 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15453
15454 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15455 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15456 # If the export-symbols file already is a .def file (1st line
15457 # is EXPORTS), use it as is; otherwise, prepend...
15458 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15459 cp $export_symbols $output_objdir/$soname.def;
15460 else
15461 echo EXPORTS > $output_objdir/$soname.def;
15462 cat $export_symbols >> $output_objdir/$soname.def;
15463 fi~
15464 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15465 else
15466 ld_shlibs_F77=no
15467 fi
15468 ;;
15469
15470 interix3*)
15471 hardcode_direct_F77=no
15472 hardcode_shlibpath_var_F77=no
15473 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15474 export_dynamic_flag_spec_F77='${wl}-E'
15475 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15476 # Instead, shared libraries are loaded at an image base (0x10000000 by
15477 # default) and relocated if they conflict, which is a slow very memory
15478 # consuming and fragmenting process. To avoid this, we pick a random,
15479 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15480 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15481 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15482 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15483 ;;
15484
15485 linux*)
15486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15487 tmp_addflag=
15488 case $cc_basename,$host_cpu in
15489 pgcc*) # Portland Group C compiler
15490 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15491 tmp_addflag=' $pic_flag'
15492 ;;
15493 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15494 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15495 tmp_addflag=' $pic_flag -Mnomain' ;;
15496 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15497 tmp_addflag=' -i_dynamic' ;;
15498 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15499 tmp_addflag=' -i_dynamic -nofor_main' ;;
15500 ifc* | ifort*) # Intel Fortran compiler
15501 tmp_addflag=' -nofor_main' ;;
15502 esac
15503 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504
15505 if test $supports_anon_versioning = yes; then
15506 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15508 $echo "local: *; };" >> $output_objdir/$libname.ver~
15509 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15510 fi
15511 else
15512 ld_shlibs_F77=no
15513 fi
15514 ;;
15515
15516 netbsd*)
15517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15518 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15519 wlarc=
15520 else
15521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15522 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15523 fi
15524 ;;
15525
15526 solaris*)
15527 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15528 ld_shlibs_F77=no
15529 cat <<EOF 1>&2
15530
15531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15532 *** create shared libraries on Solaris systems. Therefore, libtool
15533 *** is disabling shared libraries support. We urge you to upgrade GNU
15534 *** binutils to release 2.9.1 or newer. Another option is to modify
15535 *** your PATH or compiler configuration so that the native linker is
15536 *** used, and then restart.
15537
15538 EOF
15539 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542 else
15543 ld_shlibs_F77=no
15544 fi
15545 ;;
15546
15547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15548 case `$LD -v 2>&1` in
15549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15550 ld_shlibs_F77=no
15551 cat <<_LT_EOF 1>&2
15552
15553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15554 *** reliably create shared libraries on SCO systems. Therefore, libtool
15555 *** is disabling shared libraries support. We urge you to upgrade GNU
15556 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15557 *** your PATH or compiler configuration so that the native linker is
15558 *** used, and then restart.
15559
15560 _LT_EOF
15561 ;;
15562 *)
15563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15564 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15565 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15566 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15567 else
15568 ld_shlibs_F77=no
15569 fi
15570 ;;
15571 esac
15572 ;;
15573
15574 sunos4*)
15575 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576 wlarc=
15577 hardcode_direct_F77=yes
15578 hardcode_shlibpath_var_F77=no
15579 ;;
15580
15581 *)
15582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15583 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15585 else
15586 ld_shlibs_F77=no
15587 fi
15588 ;;
15589 esac
15590
15591 if test "$ld_shlibs_F77" = no; then
15592 runpath_var=
15593 hardcode_libdir_flag_spec_F77=
15594 export_dynamic_flag_spec_F77=
15595 whole_archive_flag_spec_F77=
15596 fi
15597 else
15598 # PORTME fill in a description of your system's linker (not GNU ld)
15599 case $host_os in
15600 aix3*)
15601 allow_undefined_flag_F77=unsupported
15602 always_export_symbols_F77=yes
15603 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15604 # Note: this linker hardcodes the directories in LIBPATH if there
15605 # are no directories specified by -L.
15606 hardcode_minus_L_F77=yes
15607 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15608 # Neither direct hardcoding nor static linking is supported with a
15609 # broken collect2.
15610 hardcode_direct_F77=unsupported
15611 fi
15612 ;;
15613
15614 aix4* | aix5*)
15615 if test "$host_cpu" = ia64; then
15616 # On IA64, the linker does run time linking by default, so we don't
15617 # have to do anything special.
15618 aix_use_runtimelinking=no
15619 exp_sym_flag='-Bexport'
15620 no_entry_flag=""
15621 else
15622 # If we're using GNU nm, then we don't want the "-C" option.
15623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15624 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15625 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15626 else
15627 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15628 fi
15629 aix_use_runtimelinking=no
15630
15631 # Test if we are trying to use run time linking or normal
15632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15633 # need to do runtime linking.
15634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15635 for ld_flag in $LDFLAGS; do
15636 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15637 aix_use_runtimelinking=yes
15638 break
15639 fi
15640 done
15641 ;;
15642 esac
15643
15644 exp_sym_flag='-bexport'
15645 no_entry_flag='-bnoentry'
15646 fi
15647
15648 # When large executables or shared objects are built, AIX ld can
15649 # have problems creating the table of contents. If linking a library
15650 # or program results in "error TOC overflow" add -mminimal-toc to
15651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15653
15654 archive_cmds_F77=''
15655 hardcode_direct_F77=yes
15656 hardcode_libdir_separator_F77=':'
15657 link_all_deplibs_F77=yes
15658
15659 if test "$GCC" = yes; then
15660 case $host_os in aix4.[012]|aix4.[012].*)
15661 # We only want to do this on AIX 4.2 and lower, the check
15662 # below for broken collect2 doesn't work under 4.3+
15663 collect2name=`${CC} -print-prog-name=collect2`
15664 if test -f "$collect2name" && \
15665 strings "$collect2name" | grep resolve_lib_name >/dev/null
15666 then
15667 # We have reworked collect2
15668 hardcode_direct_F77=yes
15669 else
15670 # We have old collect2
15671 hardcode_direct_F77=unsupported
15672 # It fails to find uninstalled libraries when the uninstalled
15673 # path is not listed in the libpath. Setting hardcode_minus_L
15674 # to unsupported forces relinking
15675 hardcode_minus_L_F77=yes
15676 hardcode_libdir_flag_spec_F77='-L$libdir'
15677 hardcode_libdir_separator_F77=
15678 fi
15679 ;;
15680 esac
15681 shared_flag='-shared'
15682 if test "$aix_use_runtimelinking" = yes; then
15683 shared_flag="$shared_flag "'${wl}-G'
15684 fi
15685 else
15686 # not using gcc
15687 if test "$host_cpu" = ia64; then
15688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15689 # chokes on -Wl,-G. The following line is correct:
15690 shared_flag='-G'
15691 else
15692 if test "$aix_use_runtimelinking" = yes; then
15693 shared_flag='${wl}-G'
15694 else
15695 shared_flag='${wl}-bM:SRE'
15696 fi
15697 fi
15698 fi
15699
15700 # It seems that -bexpall does not export symbols beginning with
15701 # underscore (_), so it is better to generate a list of symbols to export.
15702 always_export_symbols_F77=yes
15703 if test "$aix_use_runtimelinking" = yes; then
15704 # Warning - without using the other runtime loading flags (-brtl),
15705 # -berok will link without error, but may produce a broken library.
15706 allow_undefined_flag_F77='-berok'
15707 # Determine the default libpath from the value encoded in an empty executable.
15708 cat >conftest.$ac_ext <<_ACEOF
15709 program main
15710
15711 end
15712 _ACEOF
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_f77_werror_flag"
15723 || test ! -s conftest.err'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735
15736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15737 }'`
15738 # Check for a 64-bit object if we didn't find anything.
15739 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15740 }'`; fi
15741 else
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 fi
15746 rm -f conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15749
15750 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15751 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15752 else
15753 if test "$host_cpu" = ia64; then
15754 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15755 allow_undefined_flag_F77="-z nodefs"
15756 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15757 else
15758 # Determine the default libpath from the value encoded in an empty executable.
15759 cat >conftest.$ac_ext <<_ACEOF
15760 program main
15761
15762 end
15763 _ACEOF
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>conftest.er1
15767 ac_status=$?
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_f77_werror_flag"
15774 || test ! -s conftest.err'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest$ac_exeext'
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786
15787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15788 }'`
15789 # Check for a 64-bit object if we didn't find anything.
15790 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15791 }'`; fi
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796 fi
15797 rm -f conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15800
15801 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15802 # Warning - without using the other run time loading flags,
15803 # -berok will link without error, but may produce a broken library.
15804 no_undefined_flag_F77=' ${wl}-bernotok'
15805 allow_undefined_flag_F77=' ${wl}-berok'
15806 # Exported symbols can be pulled into shared objects from archives
15807 whole_archive_flag_spec_F77='$convenience'
15808 archive_cmds_need_lc_F77=yes
15809 # This is similar to how AIX traditionally builds its shared libraries.
15810 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15811 fi
15812 fi
15813 ;;
15814
15815 amigaos*)
15816 archive_cmds_F77='$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)'
15817 hardcode_libdir_flag_spec_F77='-L$libdir'
15818 hardcode_minus_L_F77=yes
15819 # see comment about different semantics on the GNU ld section
15820 ld_shlibs_F77=no
15821 ;;
15822
15823 bsdi[45]*)
15824 export_dynamic_flag_spec_F77=-rdynamic
15825 ;;
15826
15827 cygwin* | mingw* | pw32*)
15828 # When not using gcc, we currently assume that we are using
15829 # Microsoft Visual C++.
15830 # hardcode_libdir_flag_spec is actually meaningless, as there is
15831 # no search path for DLLs.
15832 hardcode_libdir_flag_spec_F77=' '
15833 allow_undefined_flag_F77=unsupported
15834 # Tell ltmain to make .lib files, not .a files.
15835 libext=lib
15836 # Tell ltmain to make .dll files, not .so files.
15837 shrext_cmds=".dll"
15838 # FIXME: Setting linknames here is a bad hack.
15839 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15840 # The linker will automatically build a .lib file if we build a DLL.
15841 old_archive_From_new_cmds_F77='true'
15842 # FIXME: Should let the user specify the lib program.
15843 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15844 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15845 enable_shared_with_static_runtimes_F77=yes
15846 ;;
15847
15848 darwin* | rhapsody*)
15849 case $host_os in
15850 rhapsody* | darwin1.[012])
15851 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15852 ;;
15853 *) # Darwin 1.3 on
15854 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15855 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15856 else
15857 case ${MACOSX_DEPLOYMENT_TARGET} in
15858 10.[012])
15859 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15860 ;;
15861 10.*)
15862 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15863 ;;
15864 esac
15865 fi
15866 ;;
15867 esac
15868 archive_cmds_need_lc_F77=no
15869 hardcode_direct_F77=no
15870 hardcode_automatic_F77=yes
15871 hardcode_shlibpath_var_F77=unsupported
15872 whole_archive_flag_spec_F77=''
15873 link_all_deplibs_F77=yes
15874 if test "$GCC" = yes ; then
15875 output_verbose_link_cmd='echo'
15876 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15877 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15879 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15880 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15881 else
15882 case $cc_basename in
15883 xlc*)
15884 output_verbose_link_cmd='echo'
15885 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15886 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15887 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15888 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15889 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15890 ;;
15891 *)
15892 ld_shlibs_F77=no
15893 ;;
15894 esac
15895 fi
15896 ;;
15897
15898 dgux*)
15899 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15900 hardcode_libdir_flag_spec_F77='-L$libdir'
15901 hardcode_shlibpath_var_F77=no
15902 ;;
15903
15904 freebsd1*)
15905 ld_shlibs_F77=no
15906 ;;
15907
15908 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15909 # support. Future versions do this automatically, but an explicit c++rt0.o
15910 # does not break anything, and helps significantly (at the cost of a little
15911 # extra space).
15912 freebsd2.2*)
15913 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15914 hardcode_libdir_flag_spec_F77='-R$libdir'
15915 hardcode_direct_F77=yes
15916 hardcode_shlibpath_var_F77=no
15917 ;;
15918
15919 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15920 freebsd2*)
15921 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_direct_F77=yes
15923 hardcode_minus_L_F77=yes
15924 hardcode_shlibpath_var_F77=no
15925 ;;
15926
15927 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15928 freebsd* | kfreebsd*-gnu | dragonfly*)
15929 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15930 hardcode_libdir_flag_spec_F77='-R$libdir'
15931 hardcode_direct_F77=yes
15932 hardcode_shlibpath_var_F77=no
15933 ;;
15934
15935 hpux9*)
15936 if test "$GCC" = yes; then
15937 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15938 else
15939 archive_cmds_F77='$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'
15940 fi
15941 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15942 hardcode_libdir_separator_F77=:
15943 hardcode_direct_F77=yes
15944
15945 # hardcode_minus_L: Not really in the search PATH,
15946 # but as the default location of the library.
15947 hardcode_minus_L_F77=yes
15948 export_dynamic_flag_spec_F77='${wl}-E'
15949 ;;
15950
15951 hpux10*)
15952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15953 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15954 else
15955 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15956 fi
15957 if test "$with_gnu_ld" = no; then
15958 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15959 hardcode_libdir_separator_F77=:
15960
15961 hardcode_direct_F77=yes
15962 export_dynamic_flag_spec_F77='${wl}-E'
15963
15964 # hardcode_minus_L: Not really in the search PATH,
15965 # but as the default location of the library.
15966 hardcode_minus_L_F77=yes
15967 fi
15968 ;;
15969
15970 hpux11*)
15971 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15972 case $host_cpu in
15973 hppa*64*)
15974 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15975 ;;
15976 ia64*)
15977 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15978 ;;
15979 *)
15980 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15981 ;;
15982 esac
15983 else
15984 case $host_cpu in
15985 hppa*64*)
15986 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15987 ;;
15988 ia64*)
15989 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15990 ;;
15991 *)
15992 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15993 ;;
15994 esac
15995 fi
15996 if test "$with_gnu_ld" = no; then
15997 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15998 hardcode_libdir_separator_F77=:
15999
16000 case $host_cpu in
16001 hppa*64*|ia64*)
16002 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16003 hardcode_direct_F77=no
16004 hardcode_shlibpath_var_F77=no
16005 ;;
16006 *)
16007 hardcode_direct_F77=yes
16008 export_dynamic_flag_spec_F77='${wl}-E'
16009
16010 # hardcode_minus_L: Not really in the search PATH,
16011 # but as the default location of the library.
16012 hardcode_minus_L_F77=yes
16013 ;;
16014 esac
16015 fi
16016 ;;
16017
16018 irix5* | irix6* | nonstopux*)
16019 if test "$GCC" = yes; then
16020 archive_cmds_F77='$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'
16021 else
16022 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16023 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16024 fi
16025 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16026 hardcode_libdir_separator_F77=:
16027 link_all_deplibs_F77=yes
16028 ;;
16029
16030 netbsd*)
16031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16032 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16033 else
16034 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16035 fi
16036 hardcode_libdir_flag_spec_F77='-R$libdir'
16037 hardcode_direct_F77=yes
16038 hardcode_shlibpath_var_F77=no
16039 ;;
16040
16041 newsos6)
16042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043 hardcode_direct_F77=yes
16044 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16045 hardcode_libdir_separator_F77=:
16046 hardcode_shlibpath_var_F77=no
16047 ;;
16048
16049 openbsd*)
16050 hardcode_direct_F77=yes
16051 hardcode_shlibpath_var_F77=no
16052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16053 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16054 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16055 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16056 export_dynamic_flag_spec_F77='${wl}-E'
16057 else
16058 case $host_os in
16059 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16060 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16061 hardcode_libdir_flag_spec_F77='-R$libdir'
16062 ;;
16063 *)
16064 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16065 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16066 ;;
16067 esac
16068 fi
16069 ;;
16070
16071 os2*)
16072 hardcode_libdir_flag_spec_F77='-L$libdir'
16073 hardcode_minus_L_F77=yes
16074 allow_undefined_flag_F77=unsupported
16075 archive_cmds_F77='$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'
16076 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16077 ;;
16078
16079 osf3*)
16080 if test "$GCC" = yes; then
16081 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16082 archive_cmds_F77='$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'
16083 else
16084 allow_undefined_flag_F77=' -expect_unresolved \*'
16085 archive_cmds_F77='$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'
16086 fi
16087 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16088 hardcode_libdir_separator_F77=:
16089 ;;
16090
16091 osf4* | osf5*) # as osf3* with the addition of -msym flag
16092 if test "$GCC" = yes; then
16093 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16094 archive_cmds_F77='$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'
16095 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16096 else
16097 allow_undefined_flag_F77=' -expect_unresolved \*'
16098 archive_cmds_F77='$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'
16099 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16100 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16101
16102 # Both c and cxx compiler support -rpath directly
16103 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16104 fi
16105 hardcode_libdir_separator_F77=:
16106 ;;
16107
16108 solaris*)
16109 no_undefined_flag_F77=' -z text'
16110 if test "$GCC" = yes; then
16111 wlarc='${wl}'
16112 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16113 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16114 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16115 else
16116 wlarc=''
16117 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16119 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16120 fi
16121 hardcode_libdir_flag_spec_F77='-R$libdir'
16122 hardcode_shlibpath_var_F77=no
16123 case $host_os in
16124 solaris2.[0-5] | solaris2.[0-5].*) ;;
16125 *)
16126 # The compiler driver will combine linker options so we
16127 # cannot just pass the convience library names through
16128 # without $wl, iff we do not link with $LD.
16129 # Luckily, gcc supports the same syntax we need for Sun Studio.
16130 # Supported since Solaris 2.6 (maybe 2.5.1?)
16131 case $wlarc in
16132 '')
16133 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16134 *)
16135 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16136 esac ;;
16137 esac
16138 link_all_deplibs_F77=yes
16139 ;;
16140
16141 sunos4*)
16142 if test "x$host_vendor" = xsequent; then
16143 # Use $CC to link under sequent, because it throws in some extra .o
16144 # files that make .init and .fini sections work.
16145 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16146 else
16147 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16148 fi
16149 hardcode_libdir_flag_spec_F77='-L$libdir'
16150 hardcode_direct_F77=yes
16151 hardcode_minus_L_F77=yes
16152 hardcode_shlibpath_var_F77=no
16153 ;;
16154
16155 sysv4)
16156 case $host_vendor in
16157 sni)
16158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159 hardcode_direct_F77=yes # is this really true???
16160 ;;
16161 siemens)
16162 ## LD is ld it makes a PLAMLIB
16163 ## CC just makes a GrossModule.
16164 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16165 reload_cmds_F77='$CC -r -o $output$reload_objs'
16166 hardcode_direct_F77=no
16167 ;;
16168 motorola)
16169 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16171 ;;
16172 esac
16173 runpath_var='LD_RUN_PATH'
16174 hardcode_shlibpath_var_F77=no
16175 ;;
16176
16177 sysv4.3*)
16178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_shlibpath_var_F77=no
16180 export_dynamic_flag_spec_F77='-Bexport'
16181 ;;
16182
16183 sysv4*MP*)
16184 if test -d /usr/nec; then
16185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_shlibpath_var_F77=no
16187 runpath_var=LD_RUN_PATH
16188 hardcode_runpath_var=yes
16189 ld_shlibs_F77=yes
16190 fi
16191 ;;
16192
16193 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16194 no_undefined_flag_F77='${wl}-z,text'
16195 archive_cmds_need_lc_F77=no
16196 hardcode_shlibpath_var_F77=no
16197 runpath_var='LD_RUN_PATH'
16198
16199 if test "$GCC" = yes; then
16200 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 else
16203 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16204 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 fi
16206 ;;
16207
16208 sysv5* | sco3.2v5* | sco5v6*)
16209 # Note: We can NOT use -z defs as we might desire, because we do not
16210 # link with -lc, and that would cause any symbols used from libc to
16211 # always be unresolved, which means just about no library would
16212 # ever link correctly. If we're not using GNU ld we use -z text
16213 # though, which does catch some bad symbols but isn't as heavy-handed
16214 # as -z defs.
16215 no_undefined_flag_F77='${wl}-z,text'
16216 allow_undefined_flag_F77='${wl}-z,nodefs'
16217 archive_cmds_need_lc_F77=no
16218 hardcode_shlibpath_var_F77=no
16219 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16220 hardcode_libdir_separator_F77=':'
16221 link_all_deplibs_F77=yes
16222 export_dynamic_flag_spec_F77='${wl}-Bexport'
16223 runpath_var='LD_RUN_PATH'
16224
16225 if test "$GCC" = yes; then
16226 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 else
16229 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 fi
16232 ;;
16233
16234 uts4*)
16235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16236 hardcode_libdir_flag_spec_F77='-L$libdir'
16237 hardcode_shlibpath_var_F77=no
16238 ;;
16239
16240 *)
16241 ld_shlibs_F77=no
16242 ;;
16243 esac
16244 fi
16245
16246 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16247 echo "${ECHO_T}$ld_shlibs_F77" >&6
16248 test "$ld_shlibs_F77" = no && can_build_shared=no
16249
16250 #
16251 # Do we need to explicitly link libc?
16252 #
16253 case "x$archive_cmds_need_lc_F77" in
16254 x|xyes)
16255 # Assume -lc should be added
16256 archive_cmds_need_lc_F77=yes
16257
16258 if test "$enable_shared" = yes && test "$GCC" = yes; then
16259 case $archive_cmds_F77 in
16260 *'~'*)
16261 # FIXME: we may have to deal with multi-command sequences.
16262 ;;
16263 '$CC '*)
16264 # Test whether the compiler implicitly links with -lc since on some
16265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16266 # to ld, don't add -lc before -lgcc.
16267 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16268 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16269 $rm conftest*
16270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16271
16272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16273 (eval $ac_compile) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } 2>conftest.err; then
16277 soname=conftest
16278 lib=conftest
16279 libobjs=conftest.$ac_objext
16280 deplibs=
16281 wl=$lt_prog_compiler_wl_F77
16282 pic_flag=$lt_prog_compiler_pic_F77
16283 compiler_flags=-v
16284 linker_flags=-v
16285 verstring=
16286 output_objdir=.
16287 libname=conftest
16288 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16289 allow_undefined_flag_F77=
16290 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16291 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }
16295 then
16296 archive_cmds_need_lc_F77=no
16297 else
16298 archive_cmds_need_lc_F77=yes
16299 fi
16300 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16301 else
16302 cat conftest.err 1>&5
16303 fi
16304 $rm conftest*
16305 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16306 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16307 ;;
16308 esac
16309 fi
16310 ;;
16311 esac
16312
16313 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16314 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16315 library_names_spec=
16316 libname_spec='lib$name'
16317 soname_spec=
16318 shrext_cmds=".so"
16319 postinstall_cmds=
16320 postuninstall_cmds=
16321 finish_cmds=
16322 finish_eval=
16323 shlibpath_var=
16324 shlibpath_overrides_runpath=unknown
16325 version_type=none
16326 dynamic_linker="$host_os ld.so"
16327 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16328 if test "$GCC" = yes; then
16329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16330 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16331 # if the path contains ";" then we assume it to be the separator
16332 # otherwise default to the standard path separator (i.e. ":") - it is
16333 # assumed that no part of a normal pathname contains ";" but that should
16334 # okay in the real world where ";" in dirpaths is itself problematic.
16335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16336 else
16337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16338 fi
16339 else
16340 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16341 fi
16342 need_lib_prefix=unknown
16343 hardcode_into_libs=no
16344
16345 # when you set need_version to no, make sure it does not cause -set_version
16346 # flags to be left without arguments
16347 need_version=unknown
16348
16349 case $host_os in
16350 aix3*)
16351 version_type=linux
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16353 shlibpath_var=LIBPATH
16354
16355 # AIX 3 has no versioning support, so we append a major version to the name.
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 ;;
16358
16359 aix4* | aix5*)
16360 version_type=linux
16361 need_lib_prefix=no
16362 need_version=no
16363 hardcode_into_libs=yes
16364 if test "$host_cpu" = ia64; then
16365 # AIX 5 supports IA64
16366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 else
16369 # With GCC up to 2.95.x, collect2 would create an import file
16370 # for dependence libraries. The import file would start with
16371 # the line `#! .'. This would cause the generated library to
16372 # depend on `.', always an invalid library. This was fixed in
16373 # development snapshots of GCC prior to 3.0.
16374 case $host_os in
16375 aix4 | aix4.[01] | aix4.[01].*)
16376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16377 echo ' yes '
16378 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16379 :
16380 else
16381 can_build_shared=no
16382 fi
16383 ;;
16384 esac
16385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16386 # soname into executable. Probably we can add versioning support to
16387 # collect2, so additional links can be useful in future.
16388 if test "$aix_use_runtimelinking" = yes; then
16389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16390 # instead of lib<name>.a to let people know that these are not
16391 # typical AIX shared libraries.
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 else
16394 # We preserve .a as extension for shared libraries through AIX4.2
16395 # and later when we are not doing run time linking.
16396 library_names_spec='${libname}${release}.a $libname.a'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 fi
16399 shlibpath_var=LIBPATH
16400 fi
16401 ;;
16402
16403 amigaos*)
16404 library_names_spec='$libname.ixlibrary $libname.a'
16405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16406 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'
16407 ;;
16408
16409 beos*)
16410 library_names_spec='${libname}${shared_ext}'
16411 dynamic_linker="$host_os ld.so"
16412 shlibpath_var=LIBRARY_PATH
16413 ;;
16414
16415 bsdi[45]*)
16416 version_type=linux
16417 need_version=no
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16423 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16424 # the default ld.so.conf also contains /usr/contrib/lib and
16425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16426 # libtool to hard-code these into programs
16427 ;;
16428
16429 cygwin* | mingw* | pw32*)
16430 version_type=windows
16431 shrext_cmds=".dll"
16432 need_version=no
16433 need_lib_prefix=no
16434
16435 case $GCC,$host_os in
16436 yes,cygwin* | yes,mingw* | yes,pw32*)
16437 library_names_spec='$libname.dll.a'
16438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16439 postinstall_cmds='base_file=`basename \${file}`~
16440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16441 dldir=$destdir/`dirname \$dlpath`~
16442 test -d \$dldir || mkdir -p \$dldir~
16443 $install_prog $dir/$dlname \$dldir/$dlname~
16444 chmod a+x \$dldir/$dlname'
16445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16446 dlpath=$dir/\$dldll~
16447 $rm \$dlpath'
16448 shlibpath_overrides_runpath=yes
16449
16450 case $host_os in
16451 cygwin*)
16452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16455 ;;
16456 mingw*)
16457 # MinGW DLLs use traditional 'lib' prefix
16458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16459 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16460 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16461 # It is most probably a Windows format PATH printed by
16462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16463 # path with ; separators, and with drive letters. We can handle the
16464 # drive letters (cygwin fileutils understands them), so leave them,
16465 # especially as we might pass files found there to a mingw objdump,
16466 # which wouldn't understand a cygwinified path. Ahh.
16467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16468 else
16469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470 fi
16471 ;;
16472 pw32*)
16473 # pw32 DLLs use 'pw' prefix rather than 'lib'
16474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475 ;;
16476 esac
16477 ;;
16478
16479 *)
16480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16481 ;;
16482 esac
16483 dynamic_linker='Win32 ld.exe'
16484 # FIXME: first we should search . and the directory the executable is in
16485 shlibpath_var=PATH
16486 ;;
16487
16488 darwin* | rhapsody*)
16489 dynamic_linker="$host_os dyld"
16490 version_type=darwin
16491 need_lib_prefix=no
16492 need_version=no
16493 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16494 soname_spec='${libname}${release}${major}$shared_ext'
16495 shlibpath_overrides_runpath=yes
16496 shlibpath_var=DYLD_LIBRARY_PATH
16497 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16498 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16499 if test "$GCC" = yes; then
16500 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16501 else
16502 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16503 fi
16504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16505 ;;
16506
16507 dgux*)
16508 version_type=linux
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 ;;
16515
16516 freebsd1*)
16517 dynamic_linker=no
16518 ;;
16519
16520 kfreebsd*-gnu)
16521 version_type=linux
16522 need_lib_prefix=no
16523 need_version=no
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=no
16528 hardcode_into_libs=yes
16529 dynamic_linker='GNU ld.so'
16530 ;;
16531
16532 freebsd* | dragonfly*)
16533 # DragonFly does not have aout. When/if they implement a new
16534 # versioning mechanism, adjust this.
16535 if test -x /usr/bin/objformat; then
16536 objformat=`/usr/bin/objformat`
16537 else
16538 case $host_os in
16539 freebsd[123]*) objformat=aout ;;
16540 *) objformat=elf ;;
16541 esac
16542 fi
16543 version_type=freebsd-$objformat
16544 case $version_type in
16545 freebsd-elf*)
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16547 need_version=no
16548 need_lib_prefix=no
16549 ;;
16550 freebsd-*)
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16552 need_version=yes
16553 ;;
16554 esac
16555 shlibpath_var=LD_LIBRARY_PATH
16556 case $host_os in
16557 freebsd2*)
16558 shlibpath_overrides_runpath=yes
16559 ;;
16560 freebsd3.[01]* | freebsdelf3.[01]*)
16561 shlibpath_overrides_runpath=yes
16562 hardcode_into_libs=yes
16563 ;;
16564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16566 shlibpath_overrides_runpath=no
16567 hardcode_into_libs=yes
16568 ;;
16569 freebsd*) # from 4.6 on
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16572 ;;
16573 esac
16574 ;;
16575
16576 gnu*)
16577 version_type=linux
16578 need_lib_prefix=no
16579 need_version=no
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 shlibpath_var=LD_LIBRARY_PATH
16583 hardcode_into_libs=yes
16584 ;;
16585
16586 hpux9* | hpux10* | hpux11*)
16587 # Give a soname corresponding to the major version so that dld.sl refuses to
16588 # link against other versions.
16589 version_type=sunos
16590 need_lib_prefix=no
16591 need_version=no
16592 case $host_cpu in
16593 ia64*)
16594 shrext_cmds='.so'
16595 hardcode_into_libs=yes
16596 dynamic_linker="$host_os dld.so"
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 if test "X$HPUX_IA64_MODE" = X32; then
16602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16603 else
16604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16605 fi
16606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16607 ;;
16608 hppa*64*)
16609 shrext_cmds='.sl'
16610 hardcode_into_libs=yes
16611 dynamic_linker="$host_os dld.sl"
16612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16618 ;;
16619 *)
16620 shrext_cmds='.sl'
16621 dynamic_linker="$host_os dld.sl"
16622 shlibpath_var=SHLIB_PATH
16623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 ;;
16627 esac
16628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16629 postinstall_cmds='chmod 555 $lib'
16630 ;;
16631
16632 interix3*)
16633 version_type=linux
16634 need_lib_prefix=no
16635 need_version=no
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath=no
16641 hardcode_into_libs=yes
16642 ;;
16643
16644 irix5* | irix6* | nonstopux*)
16645 case $host_os in
16646 nonstopux*) version_type=nonstopux ;;
16647 *)
16648 if test "$lt_cv_prog_gnu_ld" = yes; then
16649 version_type=linux
16650 else
16651 version_type=irix
16652 fi ;;
16653 esac
16654 need_lib_prefix=no
16655 need_version=no
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16658 case $host_os in
16659 irix5* | nonstopux*)
16660 libsuff= shlibsuff=
16661 ;;
16662 *)
16663 case $LD in # libtool.m4 will add one of these switches to LD
16664 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16665 libsuff= shlibsuff= libmagic=32-bit;;
16666 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16667 libsuff=32 shlibsuff=N32 libmagic=N32;;
16668 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16669 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16670 *) libsuff= shlibsuff= libmagic=never-match;;
16671 esac
16672 ;;
16673 esac
16674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16675 shlibpath_overrides_runpath=no
16676 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16677 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16678 hardcode_into_libs=yes
16679 ;;
16680
16681 # No shared lib support for Linux oldld, aout, or coff.
16682 linux*oldld* | linux*aout* | linux*coff*)
16683 dynamic_linker=no
16684 ;;
16685
16686 # This must be Linux ELF.
16687 linux*)
16688 version_type=linux
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=no
16696 # This implies no fast_install, which is unacceptable.
16697 # Some rework will be needed to allow for fast_install
16698 # before this can be enabled.
16699 hardcode_into_libs=yes
16700
16701 # Append ld.so.conf contents to the search path
16702 if test -f /etc/ld.so.conf; then
16703 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16705 fi
16706
16707 # We used to test for /lib/ld.so.1 and disable shared libraries on
16708 # powerpc, because MkLinux only supported shared libraries with the
16709 # GNU dynamic linker. Since this was broken with cross compilers,
16710 # most powerpc-linux boxes support dynamic linking these days and
16711 # people can always --disable-shared, the test was removed, and we
16712 # assume the GNU/Linux dynamic linker is in use.
16713 dynamic_linker='GNU/Linux ld.so'
16714 ;;
16715
16716 knetbsd*-gnu)
16717 version_type=linux
16718 need_lib_prefix=no
16719 need_version=no
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16721 soname_spec='${libname}${release}${shared_ext}$major'
16722 shlibpath_var=LD_LIBRARY_PATH
16723 shlibpath_overrides_runpath=no
16724 hardcode_into_libs=yes
16725 dynamic_linker='GNU ld.so'
16726 ;;
16727
16728 netbsd*)
16729 version_type=sunos
16730 need_lib_prefix=no
16731 need_version=no
16732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16735 dynamic_linker='NetBSD (a.out) ld.so'
16736 else
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 dynamic_linker='NetBSD ld.elf_so'
16740 fi
16741 shlibpath_var=LD_LIBRARY_PATH
16742 shlibpath_overrides_runpath=yes
16743 hardcode_into_libs=yes
16744 ;;
16745
16746 newsos6)
16747 version_type=linux
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=yes
16751 ;;
16752
16753 nto-qnx*)
16754 version_type=linux
16755 need_lib_prefix=no
16756 need_version=no
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 shlibpath_var=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath=yes
16761 ;;
16762
16763 openbsd*)
16764 version_type=sunos
16765 sys_lib_dlsearch_path_spec="/usr/lib"
16766 need_lib_prefix=no
16767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16768 case $host_os in
16769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16770 *) need_version=no ;;
16771 esac
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16776 case $host_os in
16777 openbsd2.[89] | openbsd2.[89].*)
16778 shlibpath_overrides_runpath=no
16779 ;;
16780 *)
16781 shlibpath_overrides_runpath=yes
16782 ;;
16783 esac
16784 else
16785 shlibpath_overrides_runpath=yes
16786 fi
16787 ;;
16788
16789 os2*)
16790 libname_spec='$name'
16791 shrext_cmds=".dll"
16792 need_lib_prefix=no
16793 library_names_spec='$libname${shared_ext} $libname.a'
16794 dynamic_linker='OS/2 ld.exe'
16795 shlibpath_var=LIBPATH
16796 ;;
16797
16798 osf3* | osf4* | osf5*)
16799 version_type=osf
16800 need_lib_prefix=no
16801 need_version=no
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16807 ;;
16808
16809 solaris*)
16810 version_type=linux
16811 need_lib_prefix=no
16812 need_version=no
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 shlibpath_overrides_runpath=yes
16817 hardcode_into_libs=yes
16818 # ldd complains unless libraries are executable
16819 postinstall_cmds='chmod +x $lib'
16820 ;;
16821
16822 sunos4*)
16823 version_type=sunos
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 shlibpath_overrides_runpath=yes
16828 if test "$with_gnu_ld" = yes; then
16829 need_lib_prefix=no
16830 fi
16831 need_version=yes
16832 ;;
16833
16834 sysv4 | sysv4.3*)
16835 version_type=linux
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 case $host_vendor in
16840 sni)
16841 shlibpath_overrides_runpath=no
16842 need_lib_prefix=no
16843 export_dynamic_flag_spec='${wl}-Blargedynsym'
16844 runpath_var=LD_RUN_PATH
16845 ;;
16846 siemens)
16847 need_lib_prefix=no
16848 ;;
16849 motorola)
16850 need_lib_prefix=no
16851 need_version=no
16852 shlibpath_overrides_runpath=no
16853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16854 ;;
16855 esac
16856 ;;
16857
16858 sysv4*MP*)
16859 if test -d /usr/nec ;then
16860 version_type=linux
16861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16862 soname_spec='$libname${shared_ext}.$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 fi
16865 ;;
16866
16867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16868 version_type=freebsd-elf
16869 need_lib_prefix=no
16870 need_version=no
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 hardcode_into_libs=yes
16875 if test "$with_gnu_ld" = yes; then
16876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16877 shlibpath_overrides_runpath=no
16878 else
16879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16880 shlibpath_overrides_runpath=yes
16881 case $host_os in
16882 sco3.2v5*)
16883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16884 ;;
16885 esac
16886 fi
16887 sys_lib_dlsearch_path_spec='/usr/lib'
16888 ;;
16889
16890 uts4*)
16891 version_type=linux
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 shlibpath_var=LD_LIBRARY_PATH
16895 ;;
16896
16897 *)
16898 dynamic_linker=no
16899 ;;
16900 esac
16901 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16902 echo "${ECHO_T}$dynamic_linker" >&6
16903 test "$dynamic_linker" = no && can_build_shared=no
16904
16905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16906 if test "$GCC" = yes; then
16907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16908 fi
16909
16910 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16911 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16912 hardcode_action_F77=
16913 if test -n "$hardcode_libdir_flag_spec_F77" || \
16914 test -n "$runpath_var_F77" || \
16915 test "X$hardcode_automatic_F77" = "Xyes" ; then
16916
16917 # We can hardcode non-existant directories.
16918 if test "$hardcode_direct_F77" != no &&
16919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16920 # have to relink, otherwise we might link with an installed library
16921 # when we should be linking with a yet-to-be-installed one
16922 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16923 test "$hardcode_minus_L_F77" != no; then
16924 # Linking always hardcodes the temporary library directory.
16925 hardcode_action_F77=relink
16926 else
16927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16928 hardcode_action_F77=immediate
16929 fi
16930 else
16931 # We cannot hardcode anything, or else we can only hardcode existing
16932 # directories.
16933 hardcode_action_F77=unsupported
16934 fi
16935 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16936 echo "${ECHO_T}$hardcode_action_F77" >&6
16937
16938 if test "$hardcode_action_F77" = relink; then
16939 # Fast installation is not supported
16940 enable_fast_install=no
16941 elif test "$shlibpath_overrides_runpath" = yes ||
16942 test "$enable_shared" = no; then
16943 # Fast installation is not necessary
16944 enable_fast_install=needless
16945 fi
16946
16947
16948 # The else clause should only fire when bootstrapping the
16949 # libtool distribution, otherwise you forgot to ship ltmain.sh
16950 # with your package, and you will get complaints that there are
16951 # no rules to generate ltmain.sh.
16952 if test -f "$ltmain"; then
16953 # See if we are running on zsh, and set the options which allow our commands through
16954 # without removal of \ escapes.
16955 if test -n "${ZSH_VERSION+set}" ; then
16956 setopt NO_GLOB_SUBST
16957 fi
16958 # Now quote all the things that may contain metacharacters while being
16959 # careful not to overquote the AC_SUBSTed values. We take copies of the
16960 # variables and quote the copies for generation of the libtool script.
16961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16962 SED SHELL STRIP \
16963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16965 deplibs_check_method reload_flag reload_cmds need_locks \
16966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16967 lt_cv_sys_global_symbol_to_c_name_address \
16968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16969 old_postinstall_cmds old_postuninstall_cmds \
16970 compiler_F77 \
16971 CC_F77 \
16972 LD_F77 \
16973 lt_prog_compiler_wl_F77 \
16974 lt_prog_compiler_pic_F77 \
16975 lt_prog_compiler_static_F77 \
16976 lt_prog_compiler_no_builtin_flag_F77 \
16977 export_dynamic_flag_spec_F77 \
16978 thread_safe_flag_spec_F77 \
16979 whole_archive_flag_spec_F77 \
16980 enable_shared_with_static_runtimes_F77 \
16981 old_archive_cmds_F77 \
16982 old_archive_from_new_cmds_F77 \
16983 predep_objects_F77 \
16984 postdep_objects_F77 \
16985 predeps_F77 \
16986 postdeps_F77 \
16987 compiler_lib_search_path_F77 \
16988 archive_cmds_F77 \
16989 archive_expsym_cmds_F77 \
16990 postinstall_cmds_F77 \
16991 postuninstall_cmds_F77 \
16992 old_archive_from_expsyms_cmds_F77 \
16993 allow_undefined_flag_F77 \
16994 no_undefined_flag_F77 \
16995 export_symbols_cmds_F77 \
16996 hardcode_libdir_flag_spec_F77 \
16997 hardcode_libdir_flag_spec_ld_F77 \
16998 hardcode_libdir_separator_F77 \
16999 hardcode_automatic_F77 \
17000 module_cmds_F77 \
17001 module_expsym_cmds_F77 \
17002 lt_cv_prog_compiler_c_o_F77 \
17003 exclude_expsyms_F77 \
17004 include_expsyms_F77; do
17005
17006 case $var in
17007 old_archive_cmds_F77 | \
17008 old_archive_from_new_cmds_F77 | \
17009 archive_cmds_F77 | \
17010 archive_expsym_cmds_F77 | \
17011 module_cmds_F77 | \
17012 module_expsym_cmds_F77 | \
17013 old_archive_from_expsyms_cmds_F77 | \
17014 export_symbols_cmds_F77 | \
17015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17016 postinstall_cmds | postuninstall_cmds | \
17017 old_postinstall_cmds | old_postuninstall_cmds | \
17018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17019 # Double-quote double-evaled strings.
17020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17021 ;;
17022 *)
17023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17024 ;;
17025 esac
17026 done
17027
17028 case $lt_echo in
17029 *'\$0 --fallback-echo"')
17030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17031 ;;
17032 esac
17033
17034 cfgfile="$ofile"
17035
17036 cat <<__EOF__ >> "$cfgfile"
17037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17038
17039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17040
17041 # Shell to use when invoking shell scripts.
17042 SHELL=$lt_SHELL
17043
17044 # Whether or not to build shared libraries.
17045 build_libtool_libs=$enable_shared
17046
17047 # Whether or not to build static libraries.
17048 build_old_libs=$enable_static
17049
17050 # Whether or not to add -lc for building shared libraries.
17051 build_libtool_need_lc=$archive_cmds_need_lc_F77
17052
17053 # Whether or not to disallow shared libs when runtime libs are static
17054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17055
17056 # Whether or not to optimize for fast installation.
17057 fast_install=$enable_fast_install
17058
17059 # The host system.
17060 host_alias=$host_alias
17061 host=$host
17062 host_os=$host_os
17063
17064 # The build system.
17065 build_alias=$build_alias
17066 build=$build
17067 build_os=$build_os
17068
17069 # An echo program that does not interpret backslashes.
17070 echo=$lt_echo
17071
17072 # The archiver.
17073 AR=$lt_AR
17074 AR_FLAGS=$lt_AR_FLAGS
17075
17076 # A C compiler.
17077 LTCC=$lt_LTCC
17078
17079 # LTCC compiler flags.
17080 LTCFLAGS=$lt_LTCFLAGS
17081
17082 # A language-specific compiler.
17083 CC=$lt_compiler_F77
17084
17085 # Is the compiler the GNU C compiler?
17086 with_gcc=$GCC_F77
17087
17088 # An ERE matcher.
17089 EGREP=$lt_EGREP
17090
17091 # The linker used to build libraries.
17092 LD=$lt_LD_F77
17093
17094 # Whether we need hard or soft links.
17095 LN_S=$lt_LN_S
17096
17097 # A BSD-compatible nm program.
17098 NM=$lt_NM
17099
17100 # A symbol stripping program
17101 STRIP=$lt_STRIP
17102
17103 # Used to examine libraries when file_magic_cmd begins "file"
17104 MAGIC_CMD=$MAGIC_CMD
17105
17106 # Used on cygwin: DLL creation program.
17107 DLLTOOL="$DLLTOOL"
17108
17109 # Used on cygwin: object dumper.
17110 OBJDUMP="$OBJDUMP"
17111
17112 # Used on cygwin: assembler.
17113 AS="$AS"
17114
17115 # The name of the directory that contains temporary libtool files.
17116 objdir=$objdir
17117
17118 # How to create reloadable object files.
17119 reload_flag=$lt_reload_flag
17120 reload_cmds=$lt_reload_cmds
17121
17122 # How to pass a linker flag through the compiler.
17123 wl=$lt_lt_prog_compiler_wl_F77
17124
17125 # Object file suffix (normally "o").
17126 objext="$ac_objext"
17127
17128 # Old archive suffix (normally "a").
17129 libext="$libext"
17130
17131 # Shared library suffix (normally ".so").
17132 shrext_cmds='$shrext_cmds'
17133
17134 # Executable file suffix (normally "").
17135 exeext="$exeext"
17136
17137 # Additional compiler flags for building library objects.
17138 pic_flag=$lt_lt_prog_compiler_pic_F77
17139 pic_mode=$pic_mode
17140
17141 # What is the maximum length of a command?
17142 max_cmd_len=$lt_cv_sys_max_cmd_len
17143
17144 # Does compiler simultaneously support -c and -o options?
17145 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17146
17147 # Must we lock files when doing compilation?
17148 need_locks=$lt_need_locks
17149
17150 # Do we need the lib prefix for modules?
17151 need_lib_prefix=$need_lib_prefix
17152
17153 # Do we need a version for libraries?
17154 need_version=$need_version
17155
17156 # Whether dlopen is supported.
17157 dlopen_support=$enable_dlopen
17158
17159 # Whether dlopen of programs is supported.
17160 dlopen_self=$enable_dlopen_self
17161
17162 # Whether dlopen of statically linked programs is supported.
17163 dlopen_self_static=$enable_dlopen_self_static
17164
17165 # Compiler flag to prevent dynamic linking.
17166 link_static_flag=$lt_lt_prog_compiler_static_F77
17167
17168 # Compiler flag to turn off builtin functions.
17169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17170
17171 # Compiler flag to allow reflexive dlopens.
17172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17173
17174 # Compiler flag to generate shared objects directly from archives.
17175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17176
17177 # Compiler flag to generate thread-safe objects.
17178 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17179
17180 # Library versioning type.
17181 version_type=$version_type
17182
17183 # Format of library name prefix.
17184 libname_spec=$lt_libname_spec
17185
17186 # List of archive names. First name is the real one, the rest are links.
17187 # The last name is the one that the linker finds with -lNAME.
17188 library_names_spec=$lt_library_names_spec
17189
17190 # The coded name of the library, if different from the real name.
17191 soname_spec=$lt_soname_spec
17192
17193 # Commands used to build and install an old-style archive.
17194 RANLIB=$lt_RANLIB
17195 old_archive_cmds=$lt_old_archive_cmds_F77
17196 old_postinstall_cmds=$lt_old_postinstall_cmds
17197 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17198
17199 # Create an old-style archive from a shared archive.
17200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17201
17202 # Create a temporary old-style archive to link instead of a shared archive.
17203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17204
17205 # Commands used to build and install a shared archive.
17206 archive_cmds=$lt_archive_cmds_F77
17207 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17208 postinstall_cmds=$lt_postinstall_cmds
17209 postuninstall_cmds=$lt_postuninstall_cmds
17210
17211 # Commands used to build a loadable module (assumed same as above if empty)
17212 module_cmds=$lt_module_cmds_F77
17213 module_expsym_cmds=$lt_module_expsym_cmds_F77
17214
17215 # Commands to strip libraries.
17216 old_striplib=$lt_old_striplib
17217 striplib=$lt_striplib
17218
17219 # Dependencies to place before the objects being linked to create a
17220 # shared library.
17221 predep_objects=$lt_predep_objects_F77
17222
17223 # Dependencies to place after the objects being linked to create a
17224 # shared library.
17225 postdep_objects=$lt_postdep_objects_F77
17226
17227 # Dependencies to place before the objects being linked to create a
17228 # shared library.
17229 predeps=$lt_predeps_F77
17230
17231 # Dependencies to place after the objects being linked to create a
17232 # shared library.
17233 postdeps=$lt_postdeps_F77
17234
17235 # The library search path used internally by the compiler when linking
17236 # a shared library.
17237 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17238
17239 # Method to check whether dependent libraries are shared objects.
17240 deplibs_check_method=$lt_deplibs_check_method
17241
17242 # Command to use when deplibs_check_method == file_magic.
17243 file_magic_cmd=$lt_file_magic_cmd
17244
17245 # Flag that allows shared libraries with undefined symbols to be built.
17246 allow_undefined_flag=$lt_allow_undefined_flag_F77
17247
17248 # Flag that forces no undefined symbols.
17249 no_undefined_flag=$lt_no_undefined_flag_F77
17250
17251 # Commands used to finish a libtool library installation in a directory.
17252 finish_cmds=$lt_finish_cmds
17253
17254 # Same as above, but a single script fragment to be evaled but not shown.
17255 finish_eval=$lt_finish_eval
17256
17257 # Take the output of nm and produce a listing of raw symbols and C names.
17258 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17259
17260 # Transform the output of nm in a proper C declaration
17261 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17262
17263 # Transform the output of nm in a C name address pair
17264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17265
17266 # This is the shared library runtime path variable.
17267 runpath_var=$runpath_var
17268
17269 # This is the shared library path variable.
17270 shlibpath_var=$shlibpath_var
17271
17272 # Is shlibpath searched before the hard-coded library search path?
17273 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17274
17275 # How to hardcode a shared library path into an executable.
17276 hardcode_action=$hardcode_action_F77
17277
17278 # Whether we should hardcode library paths into libraries.
17279 hardcode_into_libs=$hardcode_into_libs
17280
17281 # Flag to hardcode \$libdir into a binary during linking.
17282 # This must work even if \$libdir does not exist.
17283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17284
17285 # If ld is used when linking, flag to hardcode \$libdir into
17286 # a binary during linking. This must work even if \$libdir does
17287 # not exist.
17288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17289
17290 # Whether we need a single -rpath flag with a separated argument.
17291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17292
17293 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17294 # resulting binary.
17295 hardcode_direct=$hardcode_direct_F77
17296
17297 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17298 # resulting binary.
17299 hardcode_minus_L=$hardcode_minus_L_F77
17300
17301 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17302 # the resulting binary.
17303 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17304
17305 # Set to yes if building a shared library automatically hardcodes DIR into the library
17306 # and all subsequent libraries and executables linked against it.
17307 hardcode_automatic=$hardcode_automatic_F77
17308
17309 # Variables whose values should be saved in libtool wrapper scripts and
17310 # restored at relink time.
17311 variables_saved_for_relink="$variables_saved_for_relink"
17312
17313 # Whether libtool must link a program against all its dependency libraries.
17314 link_all_deplibs=$link_all_deplibs_F77
17315
17316 # Compile-time system search path for libraries
17317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17318
17319 # Run-time system search path for libraries
17320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17321
17322 # Fix the shell variable \$srcfile for the compiler.
17323 fix_srcfile_path="$fix_srcfile_path_F77"
17324
17325 # Set to yes if exported symbols are required.
17326 always_export_symbols=$always_export_symbols_F77
17327
17328 # The commands to list exported symbols.
17329 export_symbols_cmds=$lt_export_symbols_cmds_F77
17330
17331 # The commands to extract the exported symbol list from a shared archive.
17332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17333
17334 # Symbols that should not be listed in the preloaded symbols.
17335 exclude_expsyms=$lt_exclude_expsyms_F77
17336
17337 # Symbols that must always be exported.
17338 include_expsyms=$lt_include_expsyms_F77
17339
17340 # ### END LIBTOOL TAG CONFIG: $tagname
17341
17342 __EOF__
17343
17344
17345 else
17346 # If there is no Makefile yet, we rely on a make rule to execute
17347 # `config.status --recheck' to rerun these tests and create the
17348 # libtool script then.
17349 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17350 if test -f "$ltmain_in"; then
17351 test -f Makefile && make "$ltmain"
17352 fi
17353 fi
17354
17355
17356 ac_ext=c
17357 ac_cpp='$CPP $CPPFLAGS'
17358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17361
17362 CC="$lt_save_CC"
17363
17364 else
17365 tagname=""
17366 fi
17367 ;;
17368
17369 GCJ)
17370 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17371
17372
17373
17374 # Source file extension for Java test sources.
17375 ac_ext=java
17376
17377 # Object file extension for compiled Java test sources.
17378 objext=o
17379 objext_GCJ=$objext
17380
17381 # Code to be used in simple compile tests
17382 lt_simple_compile_test_code="class foo {}\n"
17383
17384 # Code to be used in simple link tests
17385 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17386
17387 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17388
17389 # If no C compiler was specified, use CC.
17390 LTCC=${LTCC-"$CC"}
17391
17392 # If no C compiler flags were specified, use CFLAGS.
17393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17394
17395 # Allow CC to be a program name with arguments.
17396 compiler=$CC
17397
17398
17399 # save warnings/boilerplate of simple test code
17400 ac_outfile=conftest.$ac_objext
17401 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17403 _lt_compiler_boilerplate=`cat conftest.err`
17404 $rm conftest*
17405
17406 ac_outfile=conftest.$ac_objext
17407 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17409 _lt_linker_boilerplate=`cat conftest.err`
17410 $rm conftest*
17411
17412
17413 # Allow CC to be a program name with arguments.
17414 lt_save_CC="$CC"
17415 CC=${GCJ-"gcj"}
17416 compiler=$CC
17417 compiler_GCJ=$CC
17418 for cc_temp in $compiler""; do
17419 case $cc_temp in
17420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17422 \-*) ;;
17423 *) break;;
17424 esac
17425 done
17426 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17427
17428
17429 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17430 archive_cmds_need_lc_GCJ=no
17431
17432 old_archive_cmds_GCJ=$old_archive_cmds
17433
17434 ## CAVEAT EMPTOR:
17435 ## There is no encapsulation within the following macros, do not change
17436 ## the running order or otherwise move them around unless you know exactly
17437 ## what you are doing...
17438
17439 lt_prog_compiler_no_builtin_flag_GCJ=
17440
17441 if test "$GCC" = yes; then
17442 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17443
17444
17445 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17446 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17447 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450 lt_cv_prog_compiler_rtti_exceptions=no
17451 ac_outfile=conftest.$ac_objext
17452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17453 lt_compiler_flag="-fno-rtti -fno-exceptions"
17454 # Insert the option either (1) after the last *FLAGS variable, or
17455 # (2) before a word containing "conftest.", or (3) at the end.
17456 # Note that $ac_compile itself does not contain backslashes and begins
17457 # with a dollar sign (not a hyphen), so the echo should work correctly.
17458 # The option is referenced via a variable to avoid confusing sed.
17459 lt_compile=`echo "$ac_compile" | $SED \
17460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17462 -e 's:$: $lt_compiler_flag:'`
17463 (eval echo "\"\$as_me:17463: $lt_compile\"" >&5)
17464 (eval "$lt_compile" 2>conftest.err)
17465 ac_status=$?
17466 cat conftest.err >&5
17467 echo "$as_me:17467: \$? = $ac_status" >&5
17468 if (exit $ac_status) && test -s "$ac_outfile"; then
17469 # The compiler can only warn and ignore the option if not recognized
17470 # So say no if there are warnings other than the usual output.
17471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17474 lt_cv_prog_compiler_rtti_exceptions=yes
17475 fi
17476 fi
17477 $rm conftest*
17478
17479 fi
17480 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17481 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17482
17483 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17484 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17485 else
17486 :
17487 fi
17488
17489 fi
17490
17491 lt_prog_compiler_wl_GCJ=
17492 lt_prog_compiler_pic_GCJ=
17493 lt_prog_compiler_static_GCJ=
17494
17495 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17497
17498 if test "$GCC" = yes; then
17499 lt_prog_compiler_wl_GCJ='-Wl,'
17500 lt_prog_compiler_static_GCJ='-static'
17501
17502 case $host_os in
17503 aix*)
17504 # All AIX code is PIC.
17505 if test "$host_cpu" = ia64; then
17506 # AIX 5 now supports IA64 processor
17507 lt_prog_compiler_static_GCJ='-Bstatic'
17508 fi
17509 ;;
17510
17511 amigaos*)
17512 # FIXME: we need at least 68020 code to build shared libraries, but
17513 # adding the `-m68020' flag to GCC prevents building anything better,
17514 # like `-m68040'.
17515 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17516 ;;
17517
17518 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17519 # PIC is the default for these OSes.
17520 ;;
17521
17522 mingw* | pw32* | os2*)
17523 # This hack is so that the source file can tell whether it is being
17524 # built for inclusion in a dll (and should export symbols for example).
17525 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17526 ;;
17527
17528 darwin* | rhapsody*)
17529 # PIC is the default on this platform
17530 # Common symbols not allowed in MH_DYLIB files
17531 lt_prog_compiler_pic_GCJ='-fno-common'
17532 ;;
17533
17534 interix3*)
17535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17536 # Instead, we relocate shared libraries at runtime.
17537 ;;
17538
17539 msdosdjgpp*)
17540 # Just because we use GCC doesn't mean we suddenly get shared libraries
17541 # on systems that don't support them.
17542 lt_prog_compiler_can_build_shared_GCJ=no
17543 enable_shared=no
17544 ;;
17545
17546 sysv4*MP*)
17547 if test -d /usr/nec; then
17548 lt_prog_compiler_pic_GCJ=-Kconform_pic
17549 fi
17550 ;;
17551
17552 hpux*)
17553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17554 # not for PA HP-UX.
17555 case $host_cpu in
17556 hppa*64*|ia64*)
17557 # +Z the default
17558 ;;
17559 *)
17560 lt_prog_compiler_pic_GCJ='-fPIC'
17561 ;;
17562 esac
17563 ;;
17564
17565 *)
17566 lt_prog_compiler_pic_GCJ='-fPIC'
17567 ;;
17568 esac
17569 else
17570 # PORTME Check for flag to pass linker flags through the system compiler.
17571 case $host_os in
17572 aix*)
17573 lt_prog_compiler_wl_GCJ='-Wl,'
17574 if test "$host_cpu" = ia64; then
17575 # AIX 5 now supports IA64 processor
17576 lt_prog_compiler_static_GCJ='-Bstatic'
17577 else
17578 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17579 fi
17580 ;;
17581 darwin*)
17582 # PIC is the default on this platform
17583 # Common symbols not allowed in MH_DYLIB files
17584 case $cc_basename in
17585 xlc*)
17586 lt_prog_compiler_pic_GCJ='-qnocommon'
17587 lt_prog_compiler_wl_GCJ='-Wl,'
17588 ;;
17589 esac
17590 ;;
17591
17592 mingw* | pw32* | os2*)
17593 # This hack is so that the source file can tell whether it is being
17594 # built for inclusion in a dll (and should export symbols for example).
17595 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17596 ;;
17597
17598 hpux9* | hpux10* | hpux11*)
17599 lt_prog_compiler_wl_GCJ='-Wl,'
17600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17601 # not for PA HP-UX.
17602 case $host_cpu in
17603 hppa*64*|ia64*)
17604 # +Z the default
17605 ;;
17606 *)
17607 lt_prog_compiler_pic_GCJ='+Z'
17608 ;;
17609 esac
17610 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17611 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17612 ;;
17613
17614 irix5* | irix6* | nonstopux*)
17615 lt_prog_compiler_wl_GCJ='-Wl,'
17616 # PIC (with -KPIC) is the default.
17617 lt_prog_compiler_static_GCJ='-non_shared'
17618 ;;
17619
17620 newsos6)
17621 lt_prog_compiler_pic_GCJ='-KPIC'
17622 lt_prog_compiler_static_GCJ='-Bstatic'
17623 ;;
17624
17625 linux*)
17626 case $cc_basename in
17627 icc* | ecc*)
17628 lt_prog_compiler_wl_GCJ='-Wl,'
17629 lt_prog_compiler_pic_GCJ='-KPIC'
17630 lt_prog_compiler_static_GCJ='-static'
17631 ;;
17632 pgcc* | pgf77* | pgf90* | pgf95*)
17633 # Portland Group compilers (*not* the Pentium gcc compiler,
17634 # which looks to be a dead project)
17635 lt_prog_compiler_wl_GCJ='-Wl,'
17636 lt_prog_compiler_pic_GCJ='-fpic'
17637 lt_prog_compiler_static_GCJ='-Bstatic'
17638 ;;
17639 ccc*)
17640 lt_prog_compiler_wl_GCJ='-Wl,'
17641 # All Alpha code is PIC.
17642 lt_prog_compiler_static_GCJ='-non_shared'
17643 ;;
17644 esac
17645 ;;
17646
17647 osf3* | osf4* | osf5*)
17648 lt_prog_compiler_wl_GCJ='-Wl,'
17649 # All OSF/1 code is PIC.
17650 lt_prog_compiler_static_GCJ='-non_shared'
17651 ;;
17652
17653 solaris*)
17654 lt_prog_compiler_pic_GCJ='-KPIC'
17655 lt_prog_compiler_static_GCJ='-Bstatic'
17656 case $cc_basename in
17657 f77* | f90* | f95*)
17658 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17659 *)
17660 lt_prog_compiler_wl_GCJ='-Wl,';;
17661 esac
17662 ;;
17663
17664 sunos4*)
17665 lt_prog_compiler_wl_GCJ='-Qoption ld '
17666 lt_prog_compiler_pic_GCJ='-PIC'
17667 lt_prog_compiler_static_GCJ='-Bstatic'
17668 ;;
17669
17670 sysv4 | sysv4.2uw2* | sysv4.3*)
17671 lt_prog_compiler_wl_GCJ='-Wl,'
17672 lt_prog_compiler_pic_GCJ='-KPIC'
17673 lt_prog_compiler_static_GCJ='-Bstatic'
17674 ;;
17675
17676 sysv4*MP*)
17677 if test -d /usr/nec ;then
17678 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17679 lt_prog_compiler_static_GCJ='-Bstatic'
17680 fi
17681 ;;
17682
17683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17684 lt_prog_compiler_wl_GCJ='-Wl,'
17685 lt_prog_compiler_pic_GCJ='-KPIC'
17686 lt_prog_compiler_static_GCJ='-Bstatic'
17687 ;;
17688
17689 unicos*)
17690 lt_prog_compiler_wl_GCJ='-Wl,'
17691 lt_prog_compiler_can_build_shared_GCJ=no
17692 ;;
17693
17694 uts4*)
17695 lt_prog_compiler_pic_GCJ='-pic'
17696 lt_prog_compiler_static_GCJ='-Bstatic'
17697 ;;
17698
17699 *)
17700 lt_prog_compiler_can_build_shared_GCJ=no
17701 ;;
17702 esac
17703 fi
17704
17705 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17706 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17707
17708 #
17709 # Check to make sure the PIC flag actually works.
17710 #
17711 if test -n "$lt_prog_compiler_pic_GCJ"; then
17712
17713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17715 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718 lt_prog_compiler_pic_works_GCJ=no
17719 ac_outfile=conftest.$ac_objext
17720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17721 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17722 # Insert the option either (1) after the last *FLAGS variable, or
17723 # (2) before a word containing "conftest.", or (3) at the end.
17724 # Note that $ac_compile itself does not contain backslashes and begins
17725 # with a dollar sign (not a hyphen), so the echo should work correctly.
17726 # The option is referenced via a variable to avoid confusing sed.
17727 lt_compile=`echo "$ac_compile" | $SED \
17728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17730 -e 's:$: $lt_compiler_flag:'`
17731 (eval echo "\"\$as_me:17731: $lt_compile\"" >&5)
17732 (eval "$lt_compile" 2>conftest.err)
17733 ac_status=$?
17734 cat conftest.err >&5
17735 echo "$as_me:17735: \$? = $ac_status" >&5
17736 if (exit $ac_status) && test -s "$ac_outfile"; then
17737 # The compiler can only warn and ignore the option if not recognized
17738 # So say no if there are warnings other than the usual output.
17739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17742 lt_prog_compiler_pic_works_GCJ=yes
17743 fi
17744 fi
17745 $rm conftest*
17746
17747 fi
17748 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17749 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17750
17751 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17752 case $lt_prog_compiler_pic_GCJ in
17753 "" | " "*) ;;
17754 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17755 esac
17756 else
17757 lt_prog_compiler_pic_GCJ=
17758 lt_prog_compiler_can_build_shared_GCJ=no
17759 fi
17760
17761 fi
17762 case $host_os in
17763 # For platforms which do not support PIC, -DPIC is meaningless:
17764 *djgpp*)
17765 lt_prog_compiler_pic_GCJ=
17766 ;;
17767 *)
17768 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17769 ;;
17770 esac
17771
17772 #
17773 # Check to make sure the static flag actually works.
17774 #
17775 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17776 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17777 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17778 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781 lt_prog_compiler_static_works_GCJ=no
17782 save_LDFLAGS="$LDFLAGS"
17783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17784 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17786 # The linker can only warn and ignore the option if not recognized
17787 # So say no if there are warnings
17788 if test -s conftest.err; then
17789 # Append any errors to the config.log.
17790 cat conftest.err 1>&5
17791 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17793 if diff conftest.exp conftest.er2 >/dev/null; then
17794 lt_prog_compiler_static_works_GCJ=yes
17795 fi
17796 else
17797 lt_prog_compiler_static_works_GCJ=yes
17798 fi
17799 fi
17800 $rm conftest*
17801 LDFLAGS="$save_LDFLAGS"
17802
17803 fi
17804 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17805 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17806
17807 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17808 :
17809 else
17810 lt_prog_compiler_static_GCJ=
17811 fi
17812
17813
17814 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17816 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 lt_cv_prog_compiler_c_o_GCJ=no
17820 $rm -r conftest 2>/dev/null
17821 mkdir conftest
17822 cd conftest
17823 mkdir out
17824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17825
17826 lt_compiler_flag="-o out/conftest2.$ac_objext"
17827 # Insert the option either (1) after the last *FLAGS variable, or
17828 # (2) before a word containing "conftest.", or (3) at the end.
17829 # Note that $ac_compile itself does not contain backslashes and begins
17830 # with a dollar sign (not a hyphen), so the echo should work correctly.
17831 lt_compile=`echo "$ac_compile" | $SED \
17832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17834 -e 's:$: $lt_compiler_flag:'`
17835 (eval echo "\"\$as_me:17835: $lt_compile\"" >&5)
17836 (eval "$lt_compile" 2>out/conftest.err)
17837 ac_status=$?
17838 cat out/conftest.err >&5
17839 echo "$as_me:17839: \$? = $ac_status" >&5
17840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17841 then
17842 # The compiler can only warn and ignore the option if not recognized
17843 # So say no if there are warnings
17844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17847 lt_cv_prog_compiler_c_o_GCJ=yes
17848 fi
17849 fi
17850 chmod u+w . 2>&5
17851 $rm conftest*
17852 # SGI C++ compiler will create directory out/ii_files/ for
17853 # template instantiation
17854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17855 $rm out/* && rmdir out
17856 cd ..
17857 rmdir conftest
17858 $rm conftest*
17859
17860 fi
17861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17863
17864
17865 hard_links="nottested"
17866 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17867 # do not overwrite the value of need_locks provided by the user
17868 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17870 hard_links=yes
17871 $rm conftest*
17872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17873 touch conftest.a
17874 ln conftest.a conftest.b 2>&5 || hard_links=no
17875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17876 echo "$as_me:$LINENO: result: $hard_links" >&5
17877 echo "${ECHO_T}$hard_links" >&6
17878 if test "$hard_links" = no; then
17879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17881 need_locks=warn
17882 fi
17883 else
17884 need_locks=no
17885 fi
17886
17887 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17889
17890 runpath_var=
17891 allow_undefined_flag_GCJ=
17892 enable_shared_with_static_runtimes_GCJ=no
17893 archive_cmds_GCJ=
17894 archive_expsym_cmds_GCJ=
17895 old_archive_From_new_cmds_GCJ=
17896 old_archive_from_expsyms_cmds_GCJ=
17897 export_dynamic_flag_spec_GCJ=
17898 whole_archive_flag_spec_GCJ=
17899 thread_safe_flag_spec_GCJ=
17900 hardcode_libdir_flag_spec_GCJ=
17901 hardcode_libdir_flag_spec_ld_GCJ=
17902 hardcode_libdir_separator_GCJ=
17903 hardcode_direct_GCJ=no
17904 hardcode_minus_L_GCJ=no
17905 hardcode_shlibpath_var_GCJ=unsupported
17906 link_all_deplibs_GCJ=unknown
17907 hardcode_automatic_GCJ=no
17908 module_cmds_GCJ=
17909 module_expsym_cmds_GCJ=
17910 always_export_symbols_GCJ=no
17911 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17912 # include_expsyms should be a list of space-separated symbols to be *always*
17913 # included in the symbol list
17914 include_expsyms_GCJ=
17915 # exclude_expsyms can be an extended regexp of symbols to exclude
17916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17918 # as well as any symbol that contains `d'.
17919 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17921 # platforms (ab)use it in PIC code, but their linkers get confused if
17922 # the symbol is explicitly referenced. Since portable code cannot
17923 # rely on this symbol name, it's probably fine to never include it in
17924 # preloaded symbol tables.
17925 extract_expsyms_cmds=
17926 # Just being paranoid about ensuring that cc_basename is set.
17927 for cc_temp in $compiler""; do
17928 case $cc_temp in
17929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17931 \-*) ;;
17932 *) break;;
17933 esac
17934 done
17935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17936
17937 case $host_os in
17938 cygwin* | mingw* | pw32*)
17939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17940 # When not using gcc, we currently assume that we are using
17941 # Microsoft Visual C++.
17942 if test "$GCC" != yes; then
17943 with_gnu_ld=no
17944 fi
17945 ;;
17946 interix*)
17947 # we just hope/assume this is gcc and not c89 (= MSVC++)
17948 with_gnu_ld=yes
17949 ;;
17950 openbsd*)
17951 with_gnu_ld=no
17952 ;;
17953 esac
17954
17955 ld_shlibs_GCJ=yes
17956 if test "$with_gnu_ld" = yes; then
17957 # If archive_cmds runs LD, not CC, wlarc should be empty
17958 wlarc='${wl}'
17959
17960 # Set some defaults for GNU ld with shared library support. These
17961 # are reset later if shared libraries are not supported. Putting them
17962 # here allows them to be overridden if necessary.
17963 runpath_var=LD_RUN_PATH
17964 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17965 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17966 # ancient GNU ld didn't support --whole-archive et. al.
17967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17968 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17969 else
17970 whole_archive_flag_spec_GCJ=
17971 fi
17972 supports_anon_versioning=no
17973 case `$LD -v 2>/dev/null` in
17974 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17975 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17976 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17977 *\ 2.11.*) ;; # other 2.11 versions
17978 *) supports_anon_versioning=yes ;;
17979 esac
17980
17981 # See if GNU ld supports shared libraries.
17982 case $host_os in
17983 aix3* | aix4* | aix5*)
17984 # On AIX/PPC, the GNU linker is very broken
17985 if test "$host_cpu" != ia64; then
17986 ld_shlibs_GCJ=no
17987 cat <<EOF 1>&2
17988
17989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17990 *** to be unable to reliably create shared libraries on AIX.
17991 *** Therefore, libtool is disabling shared libraries support. If you
17992 *** really care for shared libraries, you may want to modify your PATH
17993 *** so that a non-GNU linker is found, and then restart.
17994
17995 EOF
17996 fi
17997 ;;
17998
17999 amigaos*)
18000 archive_cmds_GCJ='$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)'
18001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002 hardcode_minus_L_GCJ=yes
18003
18004 # Samuel A. Falvo II <[email protected]> reports
18005 # that the semantics of dynamic libraries on AmigaOS, at least up
18006 # to version 4, is to share data among multiple programs linked
18007 # with the same dynamic library. Since this doesn't match the
18008 # behavior of shared libraries on other platforms, we can't use
18009 # them.
18010 ld_shlibs_GCJ=no
18011 ;;
18012
18013 beos*)
18014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18015 allow_undefined_flag_GCJ=unsupported
18016 # Joseph Beckenbach <[email protected]> says some releases of gcc
18017 # support --undefined. This deserves some investigation. FIXME
18018 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18019 else
18020 ld_shlibs_GCJ=no
18021 fi
18022 ;;
18023
18024 cygwin* | mingw* | pw32*)
18025 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18026 # as there is no search path for DLLs.
18027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028 allow_undefined_flag_GCJ=unsupported
18029 always_export_symbols_GCJ=no
18030 enable_shared_with_static_runtimes_GCJ=yes
18031 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18032
18033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18035 # If the export-symbols file already is a .def file (1st line
18036 # is EXPORTS), use it as is; otherwise, prepend...
18037 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18038 cp $export_symbols $output_objdir/$soname.def;
18039 else
18040 echo EXPORTS > $output_objdir/$soname.def;
18041 cat $export_symbols >> $output_objdir/$soname.def;
18042 fi~
18043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18044 else
18045 ld_shlibs_GCJ=no
18046 fi
18047 ;;
18048
18049 interix3*)
18050 hardcode_direct_GCJ=no
18051 hardcode_shlibpath_var_GCJ=no
18052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18053 export_dynamic_flag_spec_GCJ='${wl}-E'
18054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18055 # Instead, shared libraries are loaded at an image base (0x10000000 by
18056 # default) and relocated if they conflict, which is a slow very memory
18057 # consuming and fragmenting process. To avoid this, we pick a random,
18058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18060 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18061 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18062 ;;
18063
18064 linux*)
18065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18066 tmp_addflag=
18067 case $cc_basename,$host_cpu in
18068 pgcc*) # Portland Group C compiler
18069 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18070 tmp_addflag=' $pic_flag'
18071 ;;
18072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18073 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18074 tmp_addflag=' $pic_flag -Mnomain' ;;
18075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18076 tmp_addflag=' -i_dynamic' ;;
18077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18078 tmp_addflag=' -i_dynamic -nofor_main' ;;
18079 ifc* | ifort*) # Intel Fortran compiler
18080 tmp_addflag=' -nofor_main' ;;
18081 esac
18082 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18083
18084 if test $supports_anon_versioning = yes; then
18085 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18087 $echo "local: *; };" >> $output_objdir/$libname.ver~
18088 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18089 fi
18090 else
18091 ld_shlibs_GCJ=no
18092 fi
18093 ;;
18094
18095 netbsd*)
18096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18097 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18098 wlarc=
18099 else
18100 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18101 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18102 fi
18103 ;;
18104
18105 solaris*)
18106 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18107 ld_shlibs_GCJ=no
18108 cat <<EOF 1>&2
18109
18110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18111 *** create shared libraries on Solaris systems. Therefore, libtool
18112 *** is disabling shared libraries support. We urge you to upgrade GNU
18113 *** binutils to release 2.9.1 or newer. Another option is to modify
18114 *** your PATH or compiler configuration so that the native linker is
18115 *** used, and then restart.
18116
18117 EOF
18118 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18121 else
18122 ld_shlibs_GCJ=no
18123 fi
18124 ;;
18125
18126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18127 case `$LD -v 2>&1` in
18128 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18129 ld_shlibs_GCJ=no
18130 cat <<_LT_EOF 1>&2
18131
18132 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18133 *** reliably create shared libraries on SCO systems. Therefore, libtool
18134 *** is disabling shared libraries support. We urge you to upgrade GNU
18135 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18136 *** your PATH or compiler configuration so that the native linker is
18137 *** used, and then restart.
18138
18139 _LT_EOF
18140 ;;
18141 *)
18142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18143 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18144 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18145 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18146 else
18147 ld_shlibs_GCJ=no
18148 fi
18149 ;;
18150 esac
18151 ;;
18152
18153 sunos4*)
18154 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18155 wlarc=
18156 hardcode_direct_GCJ=yes
18157 hardcode_shlibpath_var_GCJ=no
18158 ;;
18159
18160 *)
18161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18162 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18163 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18164 else
18165 ld_shlibs_GCJ=no
18166 fi
18167 ;;
18168 esac
18169
18170 if test "$ld_shlibs_GCJ" = no; then
18171 runpath_var=
18172 hardcode_libdir_flag_spec_GCJ=
18173 export_dynamic_flag_spec_GCJ=
18174 whole_archive_flag_spec_GCJ=
18175 fi
18176 else
18177 # PORTME fill in a description of your system's linker (not GNU ld)
18178 case $host_os in
18179 aix3*)
18180 allow_undefined_flag_GCJ=unsupported
18181 always_export_symbols_GCJ=yes
18182 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18183 # Note: this linker hardcodes the directories in LIBPATH if there
18184 # are no directories specified by -L.
18185 hardcode_minus_L_GCJ=yes
18186 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18187 # Neither direct hardcoding nor static linking is supported with a
18188 # broken collect2.
18189 hardcode_direct_GCJ=unsupported
18190 fi
18191 ;;
18192
18193 aix4* | aix5*)
18194 if test "$host_cpu" = ia64; then
18195 # On IA64, the linker does run time linking by default, so we don't
18196 # have to do anything special.
18197 aix_use_runtimelinking=no
18198 exp_sym_flag='-Bexport'
18199 no_entry_flag=""
18200 else
18201 # If we're using GNU nm, then we don't want the "-C" option.
18202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18203 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18204 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18205 else
18206 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18207 fi
18208 aix_use_runtimelinking=no
18209
18210 # Test if we are trying to use run time linking or normal
18211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18212 # need to do runtime linking.
18213 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18214 for ld_flag in $LDFLAGS; do
18215 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18216 aix_use_runtimelinking=yes
18217 break
18218 fi
18219 done
18220 ;;
18221 esac
18222
18223 exp_sym_flag='-bexport'
18224 no_entry_flag='-bnoentry'
18225 fi
18226
18227 # When large executables or shared objects are built, AIX ld can
18228 # have problems creating the table of contents. If linking a library
18229 # or program results in "error TOC overflow" add -mminimal-toc to
18230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18232
18233 archive_cmds_GCJ=''
18234 hardcode_direct_GCJ=yes
18235 hardcode_libdir_separator_GCJ=':'
18236 link_all_deplibs_GCJ=yes
18237
18238 if test "$GCC" = yes; then
18239 case $host_os in aix4.[012]|aix4.[012].*)
18240 # We only want to do this on AIX 4.2 and lower, the check
18241 # below for broken collect2 doesn't work under 4.3+
18242 collect2name=`${CC} -print-prog-name=collect2`
18243 if test -f "$collect2name" && \
18244 strings "$collect2name" | grep resolve_lib_name >/dev/null
18245 then
18246 # We have reworked collect2
18247 hardcode_direct_GCJ=yes
18248 else
18249 # We have old collect2
18250 hardcode_direct_GCJ=unsupported
18251 # It fails to find uninstalled libraries when the uninstalled
18252 # path is not listed in the libpath. Setting hardcode_minus_L
18253 # to unsupported forces relinking
18254 hardcode_minus_L_GCJ=yes
18255 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18256 hardcode_libdir_separator_GCJ=
18257 fi
18258 ;;
18259 esac
18260 shared_flag='-shared'
18261 if test "$aix_use_runtimelinking" = yes; then
18262 shared_flag="$shared_flag "'${wl}-G'
18263 fi
18264 else
18265 # not using gcc
18266 if test "$host_cpu" = ia64; then
18267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18268 # chokes on -Wl,-G. The following line is correct:
18269 shared_flag='-G'
18270 else
18271 if test "$aix_use_runtimelinking" = yes; then
18272 shared_flag='${wl}-G'
18273 else
18274 shared_flag='${wl}-bM:SRE'
18275 fi
18276 fi
18277 fi
18278
18279 # It seems that -bexpall does not export symbols beginning with
18280 # underscore (_), so it is better to generate a list of symbols to export.
18281 always_export_symbols_GCJ=yes
18282 if test "$aix_use_runtimelinking" = yes; then
18283 # Warning - without using the other runtime loading flags (-brtl),
18284 # -berok will link without error, but may produce a broken library.
18285 allow_undefined_flag_GCJ='-berok'
18286 # Determine the default libpath from the value encoded in an empty executable.
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h. */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293
18294 int
18295 main ()
18296 {
18297
18298 ;
18299 return 0;
18300 }
18301 _ACEOF
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304 (eval $ac_link) 2>conftest.er1
18305 ac_status=$?
18306 grep -v '^ *+' conftest.er1 >conftest.err
18307 rm -f conftest.er1
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } &&
18311 { ac_try='test -z "$ac_c_werror_flag"
18312 || test ! -s conftest.err'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; } &&
18318 { ac_try='test -s conftest$ac_exeext'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324
18325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18326 }'`
18327 # Check for a 64-bit object if we didn't find anything.
18328 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18329 }'`; fi
18330 else
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 fi
18335 rm -f conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18338
18339 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18340 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18341 else
18342 if test "$host_cpu" = ia64; then
18343 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18344 allow_undefined_flag_GCJ="-z nodefs"
18345 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18346 else
18347 # Determine the default libpath from the value encoded in an empty executable.
18348 cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h. */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18354
18355 int
18356 main ()
18357 {
18358
18359 ;
18360 return 0;
18361 }
18362 _ACEOF
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365 (eval $ac_link) 2>conftest.er1
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -z "$ac_c_werror_flag"
18373 || test ! -s conftest.err'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
18385
18386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18387 }'`
18388 # Check for a 64-bit object if we didn't find anything.
18389 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18390 }'`; fi
18391 else
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 fi
18396 rm -f conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18399
18400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18401 # Warning - without using the other run time loading flags,
18402 # -berok will link without error, but may produce a broken library.
18403 no_undefined_flag_GCJ=' ${wl}-bernotok'
18404 allow_undefined_flag_GCJ=' ${wl}-berok'
18405 # Exported symbols can be pulled into shared objects from archives
18406 whole_archive_flag_spec_GCJ='$convenience'
18407 archive_cmds_need_lc_GCJ=yes
18408 # This is similar to how AIX traditionally builds its shared libraries.
18409 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18410 fi
18411 fi
18412 ;;
18413
18414 amigaos*)
18415 archive_cmds_GCJ='$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)'
18416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18417 hardcode_minus_L_GCJ=yes
18418 # see comment about different semantics on the GNU ld section
18419 ld_shlibs_GCJ=no
18420 ;;
18421
18422 bsdi[45]*)
18423 export_dynamic_flag_spec_GCJ=-rdynamic
18424 ;;
18425
18426 cygwin* | mingw* | pw32*)
18427 # When not using gcc, we currently assume that we are using
18428 # Microsoft Visual C++.
18429 # hardcode_libdir_flag_spec is actually meaningless, as there is
18430 # no search path for DLLs.
18431 hardcode_libdir_flag_spec_GCJ=' '
18432 allow_undefined_flag_GCJ=unsupported
18433 # Tell ltmain to make .lib files, not .a files.
18434 libext=lib
18435 # Tell ltmain to make .dll files, not .so files.
18436 shrext_cmds=".dll"
18437 # FIXME: Setting linknames here is a bad hack.
18438 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18439 # The linker will automatically build a .lib file if we build a DLL.
18440 old_archive_From_new_cmds_GCJ='true'
18441 # FIXME: Should let the user specify the lib program.
18442 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18443 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18444 enable_shared_with_static_runtimes_GCJ=yes
18445 ;;
18446
18447 darwin* | rhapsody*)
18448 case $host_os in
18449 rhapsody* | darwin1.[012])
18450 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18451 ;;
18452 *) # Darwin 1.3 on
18453 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18454 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18455 else
18456 case ${MACOSX_DEPLOYMENT_TARGET} in
18457 10.[012])
18458 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18459 ;;
18460 10.*)
18461 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18462 ;;
18463 esac
18464 fi
18465 ;;
18466 esac
18467 archive_cmds_need_lc_GCJ=no
18468 hardcode_direct_GCJ=no
18469 hardcode_automatic_GCJ=yes
18470 hardcode_shlibpath_var_GCJ=unsupported
18471 whole_archive_flag_spec_GCJ=''
18472 link_all_deplibs_GCJ=yes
18473 if test "$GCC" = yes ; then
18474 output_verbose_link_cmd='echo'
18475 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18476 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18478 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18479 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18480 else
18481 case $cc_basename in
18482 xlc*)
18483 output_verbose_link_cmd='echo'
18484 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18485 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18487 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18488 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18489 ;;
18490 *)
18491 ld_shlibs_GCJ=no
18492 ;;
18493 esac
18494 fi
18495 ;;
18496
18497 dgux*)
18498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18499 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18500 hardcode_shlibpath_var_GCJ=no
18501 ;;
18502
18503 freebsd1*)
18504 ld_shlibs_GCJ=no
18505 ;;
18506
18507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18508 # support. Future versions do this automatically, but an explicit c++rt0.o
18509 # does not break anything, and helps significantly (at the cost of a little
18510 # extra space).
18511 freebsd2.2*)
18512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18514 hardcode_direct_GCJ=yes
18515 hardcode_shlibpath_var_GCJ=no
18516 ;;
18517
18518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18519 freebsd2*)
18520 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18521 hardcode_direct_GCJ=yes
18522 hardcode_minus_L_GCJ=yes
18523 hardcode_shlibpath_var_GCJ=no
18524 ;;
18525
18526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18527 freebsd* | kfreebsd*-gnu | dragonfly*)
18528 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18530 hardcode_direct_GCJ=yes
18531 hardcode_shlibpath_var_GCJ=no
18532 ;;
18533
18534 hpux9*)
18535 if test "$GCC" = yes; then
18536 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18537 else
18538 archive_cmds_GCJ='$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'
18539 fi
18540 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18541 hardcode_libdir_separator_GCJ=:
18542 hardcode_direct_GCJ=yes
18543
18544 # hardcode_minus_L: Not really in the search PATH,
18545 # but as the default location of the library.
18546 hardcode_minus_L_GCJ=yes
18547 export_dynamic_flag_spec_GCJ='${wl}-E'
18548 ;;
18549
18550 hpux10*)
18551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18552 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18553 else
18554 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18555 fi
18556 if test "$with_gnu_ld" = no; then
18557 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18558 hardcode_libdir_separator_GCJ=:
18559
18560 hardcode_direct_GCJ=yes
18561 export_dynamic_flag_spec_GCJ='${wl}-E'
18562
18563 # hardcode_minus_L: Not really in the search PATH,
18564 # but as the default location of the library.
18565 hardcode_minus_L_GCJ=yes
18566 fi
18567 ;;
18568
18569 hpux11*)
18570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18571 case $host_cpu in
18572 hppa*64*)
18573 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18574 ;;
18575 ia64*)
18576 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18577 ;;
18578 *)
18579 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18580 ;;
18581 esac
18582 else
18583 case $host_cpu in
18584 hppa*64*)
18585 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18586 ;;
18587 ia64*)
18588 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18589 ;;
18590 *)
18591 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18592 ;;
18593 esac
18594 fi
18595 if test "$with_gnu_ld" = no; then
18596 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18597 hardcode_libdir_separator_GCJ=:
18598
18599 case $host_cpu in
18600 hppa*64*|ia64*)
18601 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18602 hardcode_direct_GCJ=no
18603 hardcode_shlibpath_var_GCJ=no
18604 ;;
18605 *)
18606 hardcode_direct_GCJ=yes
18607 export_dynamic_flag_spec_GCJ='${wl}-E'
18608
18609 # hardcode_minus_L: Not really in the search PATH,
18610 # but as the default location of the library.
18611 hardcode_minus_L_GCJ=yes
18612 ;;
18613 esac
18614 fi
18615 ;;
18616
18617 irix5* | irix6* | nonstopux*)
18618 if test "$GCC" = yes; then
18619 archive_cmds_GCJ='$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'
18620 else
18621 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18622 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18623 fi
18624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18625 hardcode_libdir_separator_GCJ=:
18626 link_all_deplibs_GCJ=yes
18627 ;;
18628
18629 netbsd*)
18630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18631 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18632 else
18633 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18634 fi
18635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18636 hardcode_direct_GCJ=yes
18637 hardcode_shlibpath_var_GCJ=no
18638 ;;
18639
18640 newsos6)
18641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642 hardcode_direct_GCJ=yes
18643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18644 hardcode_libdir_separator_GCJ=:
18645 hardcode_shlibpath_var_GCJ=no
18646 ;;
18647
18648 openbsd*)
18649 hardcode_direct_GCJ=yes
18650 hardcode_shlibpath_var_GCJ=no
18651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18652 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18653 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18655 export_dynamic_flag_spec_GCJ='${wl}-E'
18656 else
18657 case $host_os in
18658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18659 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18661 ;;
18662 *)
18663 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18665 ;;
18666 esac
18667 fi
18668 ;;
18669
18670 os2*)
18671 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18672 hardcode_minus_L_GCJ=yes
18673 allow_undefined_flag_GCJ=unsupported
18674 archive_cmds_GCJ='$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'
18675 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18676 ;;
18677
18678 osf3*)
18679 if test "$GCC" = yes; then
18680 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18681 archive_cmds_GCJ='$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'
18682 else
18683 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18684 archive_cmds_GCJ='$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'
18685 fi
18686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18687 hardcode_libdir_separator_GCJ=:
18688 ;;
18689
18690 osf4* | osf5*) # as osf3* with the addition of -msym flag
18691 if test "$GCC" = yes; then
18692 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18693 archive_cmds_GCJ='$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'
18694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18695 else
18696 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18697 archive_cmds_GCJ='$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'
18698 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18699 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18700
18701 # Both c and cxx compiler support -rpath directly
18702 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18703 fi
18704 hardcode_libdir_separator_GCJ=:
18705 ;;
18706
18707 solaris*)
18708 no_undefined_flag_GCJ=' -z text'
18709 if test "$GCC" = yes; then
18710 wlarc='${wl}'
18711 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18712 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18713 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18714 else
18715 wlarc=''
18716 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18717 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18719 fi
18720 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18721 hardcode_shlibpath_var_GCJ=no
18722 case $host_os in
18723 solaris2.[0-5] | solaris2.[0-5].*) ;;
18724 *)
18725 # The compiler driver will combine linker options so we
18726 # cannot just pass the convience library names through
18727 # without $wl, iff we do not link with $LD.
18728 # Luckily, gcc supports the same syntax we need for Sun Studio.
18729 # Supported since Solaris 2.6 (maybe 2.5.1?)
18730 case $wlarc in
18731 '')
18732 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18733 *)
18734 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18735 esac ;;
18736 esac
18737 link_all_deplibs_GCJ=yes
18738 ;;
18739
18740 sunos4*)
18741 if test "x$host_vendor" = xsequent; then
18742 # Use $CC to link under sequent, because it throws in some extra .o
18743 # files that make .init and .fini sections work.
18744 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18745 else
18746 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18747 fi
18748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18749 hardcode_direct_GCJ=yes
18750 hardcode_minus_L_GCJ=yes
18751 hardcode_shlibpath_var_GCJ=no
18752 ;;
18753
18754 sysv4)
18755 case $host_vendor in
18756 sni)
18757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18758 hardcode_direct_GCJ=yes # is this really true???
18759 ;;
18760 siemens)
18761 ## LD is ld it makes a PLAMLIB
18762 ## CC just makes a GrossModule.
18763 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18764 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18765 hardcode_direct_GCJ=no
18766 ;;
18767 motorola)
18768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18769 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18770 ;;
18771 esac
18772 runpath_var='LD_RUN_PATH'
18773 hardcode_shlibpath_var_GCJ=no
18774 ;;
18775
18776 sysv4.3*)
18777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18778 hardcode_shlibpath_var_GCJ=no
18779 export_dynamic_flag_spec_GCJ='-Bexport'
18780 ;;
18781
18782 sysv4*MP*)
18783 if test -d /usr/nec; then
18784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18785 hardcode_shlibpath_var_GCJ=no
18786 runpath_var=LD_RUN_PATH
18787 hardcode_runpath_var=yes
18788 ld_shlibs_GCJ=yes
18789 fi
18790 ;;
18791
18792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18793 no_undefined_flag_GCJ='${wl}-z,text'
18794 archive_cmds_need_lc_GCJ=no
18795 hardcode_shlibpath_var_GCJ=no
18796 runpath_var='LD_RUN_PATH'
18797
18798 if test "$GCC" = yes; then
18799 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18800 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18801 else
18802 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18803 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18804 fi
18805 ;;
18806
18807 sysv5* | sco3.2v5* | sco5v6*)
18808 # Note: We can NOT use -z defs as we might desire, because we do not
18809 # link with -lc, and that would cause any symbols used from libc to
18810 # always be unresolved, which means just about no library would
18811 # ever link correctly. If we're not using GNU ld we use -z text
18812 # though, which does catch some bad symbols but isn't as heavy-handed
18813 # as -z defs.
18814 no_undefined_flag_GCJ='${wl}-z,text'
18815 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18816 archive_cmds_need_lc_GCJ=no
18817 hardcode_shlibpath_var_GCJ=no
18818 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18819 hardcode_libdir_separator_GCJ=':'
18820 link_all_deplibs_GCJ=yes
18821 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18822 runpath_var='LD_RUN_PATH'
18823
18824 if test "$GCC" = yes; then
18825 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18827 else
18828 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18830 fi
18831 ;;
18832
18833 uts4*)
18834 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18835 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18836 hardcode_shlibpath_var_GCJ=no
18837 ;;
18838
18839 *)
18840 ld_shlibs_GCJ=no
18841 ;;
18842 esac
18843 fi
18844
18845 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18846 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18847 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18848
18849 #
18850 # Do we need to explicitly link libc?
18851 #
18852 case "x$archive_cmds_need_lc_GCJ" in
18853 x|xyes)
18854 # Assume -lc should be added
18855 archive_cmds_need_lc_GCJ=yes
18856
18857 if test "$enable_shared" = yes && test "$GCC" = yes; then
18858 case $archive_cmds_GCJ in
18859 *'~'*)
18860 # FIXME: we may have to deal with multi-command sequences.
18861 ;;
18862 '$CC '*)
18863 # Test whether the compiler implicitly links with -lc since on some
18864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18865 # to ld, don't add -lc before -lgcc.
18866 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18867 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18868 $rm conftest*
18869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18870
18871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18872 (eval $ac_compile) 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } 2>conftest.err; then
18876 soname=conftest
18877 lib=conftest
18878 libobjs=conftest.$ac_objext
18879 deplibs=
18880 wl=$lt_prog_compiler_wl_GCJ
18881 pic_flag=$lt_prog_compiler_pic_GCJ
18882 compiler_flags=-v
18883 linker_flags=-v
18884 verstring=
18885 output_objdir=.
18886 libname=conftest
18887 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18888 allow_undefined_flag_GCJ=
18889 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18890 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }
18894 then
18895 archive_cmds_need_lc_GCJ=no
18896 else
18897 archive_cmds_need_lc_GCJ=yes
18898 fi
18899 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18900 else
18901 cat conftest.err 1>&5
18902 fi
18903 $rm conftest*
18904 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18905 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18906 ;;
18907 esac
18908 fi
18909 ;;
18910 esac
18911
18912 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18913 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18914 library_names_spec=
18915 libname_spec='lib$name'
18916 soname_spec=
18917 shrext_cmds=".so"
18918 postinstall_cmds=
18919 postuninstall_cmds=
18920 finish_cmds=
18921 finish_eval=
18922 shlibpath_var=
18923 shlibpath_overrides_runpath=unknown
18924 version_type=none
18925 dynamic_linker="$host_os ld.so"
18926 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18927 if test "$GCC" = yes; then
18928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18929 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18930 # if the path contains ";" then we assume it to be the separator
18931 # otherwise default to the standard path separator (i.e. ":") - it is
18932 # assumed that no part of a normal pathname contains ";" but that should
18933 # okay in the real world where ";" in dirpaths is itself problematic.
18934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18935 else
18936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18937 fi
18938 else
18939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18940 fi
18941 need_lib_prefix=unknown
18942 hardcode_into_libs=no
18943
18944 # when you set need_version to no, make sure it does not cause -set_version
18945 # flags to be left without arguments
18946 need_version=unknown
18947
18948 case $host_os in
18949 aix3*)
18950 version_type=linux
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18952 shlibpath_var=LIBPATH
18953
18954 # AIX 3 has no versioning support, so we append a major version to the name.
18955 soname_spec='${libname}${release}${shared_ext}$major'
18956 ;;
18957
18958 aix4* | aix5*)
18959 version_type=linux
18960 need_lib_prefix=no
18961 need_version=no
18962 hardcode_into_libs=yes
18963 if test "$host_cpu" = ia64; then
18964 # AIX 5 supports IA64
18965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18966 shlibpath_var=LD_LIBRARY_PATH
18967 else
18968 # With GCC up to 2.95.x, collect2 would create an import file
18969 # for dependence libraries. The import file would start with
18970 # the line `#! .'. This would cause the generated library to
18971 # depend on `.', always an invalid library. This was fixed in
18972 # development snapshots of GCC prior to 3.0.
18973 case $host_os in
18974 aix4 | aix4.[01] | aix4.[01].*)
18975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18976 echo ' yes '
18977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18978 :
18979 else
18980 can_build_shared=no
18981 fi
18982 ;;
18983 esac
18984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18985 # soname into executable. Probably we can add versioning support to
18986 # collect2, so additional links can be useful in future.
18987 if test "$aix_use_runtimelinking" = yes; then
18988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18989 # instead of lib<name>.a to let people know that these are not
18990 # typical AIX shared libraries.
18991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18992 else
18993 # We preserve .a as extension for shared libraries through AIX4.2
18994 # and later when we are not doing run time linking.
18995 library_names_spec='${libname}${release}.a $libname.a'
18996 soname_spec='${libname}${release}${shared_ext}$major'
18997 fi
18998 shlibpath_var=LIBPATH
18999 fi
19000 ;;
19001
19002 amigaos*)
19003 library_names_spec='$libname.ixlibrary $libname.a'
19004 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19005 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'
19006 ;;
19007
19008 beos*)
19009 library_names_spec='${libname}${shared_ext}'
19010 dynamic_linker="$host_os ld.so"
19011 shlibpath_var=LIBRARY_PATH
19012 ;;
19013
19014 bsdi[45]*)
19015 version_type=linux
19016 need_version=no
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19020 shlibpath_var=LD_LIBRARY_PATH
19021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19023 # the default ld.so.conf also contains /usr/contrib/lib and
19024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19025 # libtool to hard-code these into programs
19026 ;;
19027
19028 cygwin* | mingw* | pw32*)
19029 version_type=windows
19030 shrext_cmds=".dll"
19031 need_version=no
19032 need_lib_prefix=no
19033
19034 case $GCC,$host_os in
19035 yes,cygwin* | yes,mingw* | yes,pw32*)
19036 library_names_spec='$libname.dll.a'
19037 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19038 postinstall_cmds='base_file=`basename \${file}`~
19039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19040 dldir=$destdir/`dirname \$dlpath`~
19041 test -d \$dldir || mkdir -p \$dldir~
19042 $install_prog $dir/$dlname \$dldir/$dlname~
19043 chmod a+x \$dldir/$dlname'
19044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19045 dlpath=$dir/\$dldll~
19046 $rm \$dlpath'
19047 shlibpath_overrides_runpath=yes
19048
19049 case $host_os in
19050 cygwin*)
19051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19054 ;;
19055 mingw*)
19056 # MinGW DLLs use traditional 'lib' prefix
19057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19060 # It is most probably a Windows format PATH printed by
19061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19062 # path with ; separators, and with drive letters. We can handle the
19063 # drive letters (cygwin fileutils understands them), so leave them,
19064 # especially as we might pass files found there to a mingw objdump,
19065 # which wouldn't understand a cygwinified path. Ahh.
19066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19067 else
19068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19069 fi
19070 ;;
19071 pw32*)
19072 # pw32 DLLs use 'pw' prefix rather than 'lib'
19073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19074 ;;
19075 esac
19076 ;;
19077
19078 *)
19079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19080 ;;
19081 esac
19082 dynamic_linker='Win32 ld.exe'
19083 # FIXME: first we should search . and the directory the executable is in
19084 shlibpath_var=PATH
19085 ;;
19086
19087 darwin* | rhapsody*)
19088 dynamic_linker="$host_os dyld"
19089 version_type=darwin
19090 need_lib_prefix=no
19091 need_version=no
19092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19093 soname_spec='${libname}${release}${major}$shared_ext'
19094 shlibpath_overrides_runpath=yes
19095 shlibpath_var=DYLD_LIBRARY_PATH
19096 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19098 if test "$GCC" = yes; then
19099 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19100 else
19101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19102 fi
19103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19104 ;;
19105
19106 dgux*)
19107 version_type=linux
19108 need_lib_prefix=no
19109 need_version=no
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19112 shlibpath_var=LD_LIBRARY_PATH
19113 ;;
19114
19115 freebsd1*)
19116 dynamic_linker=no
19117 ;;
19118
19119 kfreebsd*-gnu)
19120 version_type=linux
19121 need_lib_prefix=no
19122 need_version=no
19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19124 soname_spec='${libname}${release}${shared_ext}$major'
19125 shlibpath_var=LD_LIBRARY_PATH
19126 shlibpath_overrides_runpath=no
19127 hardcode_into_libs=yes
19128 dynamic_linker='GNU ld.so'
19129 ;;
19130
19131 freebsd* | dragonfly*)
19132 # DragonFly does not have aout. When/if they implement a new
19133 # versioning mechanism, adjust this.
19134 if test -x /usr/bin/objformat; then
19135 objformat=`/usr/bin/objformat`
19136 else
19137 case $host_os in
19138 freebsd[123]*) objformat=aout ;;
19139 *) objformat=elf ;;
19140 esac
19141 fi
19142 version_type=freebsd-$objformat
19143 case $version_type in
19144 freebsd-elf*)
19145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19146 need_version=no
19147 need_lib_prefix=no
19148 ;;
19149 freebsd-*)
19150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19151 need_version=yes
19152 ;;
19153 esac
19154 shlibpath_var=LD_LIBRARY_PATH
19155 case $host_os in
19156 freebsd2*)
19157 shlibpath_overrides_runpath=yes
19158 ;;
19159 freebsd3.[01]* | freebsdelf3.[01]*)
19160 shlibpath_overrides_runpath=yes
19161 hardcode_into_libs=yes
19162 ;;
19163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19165 shlibpath_overrides_runpath=no
19166 hardcode_into_libs=yes
19167 ;;
19168 freebsd*) # from 4.6 on
19169 shlibpath_overrides_runpath=yes
19170 hardcode_into_libs=yes
19171 ;;
19172 esac
19173 ;;
19174
19175 gnu*)
19176 version_type=linux
19177 need_lib_prefix=no
19178 need_version=no
19179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19180 soname_spec='${libname}${release}${shared_ext}$major'
19181 shlibpath_var=LD_LIBRARY_PATH
19182 hardcode_into_libs=yes
19183 ;;
19184
19185 hpux9* | hpux10* | hpux11*)
19186 # Give a soname corresponding to the major version so that dld.sl refuses to
19187 # link against other versions.
19188 version_type=sunos
19189 need_lib_prefix=no
19190 need_version=no
19191 case $host_cpu in
19192 ia64*)
19193 shrext_cmds='.so'
19194 hardcode_into_libs=yes
19195 dynamic_linker="$host_os dld.so"
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 if test "X$HPUX_IA64_MODE" = X32; then
19201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19202 else
19203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19204 fi
19205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19206 ;;
19207 hppa*64*)
19208 shrext_cmds='.sl'
19209 hardcode_into_libs=yes
19210 dynamic_linker="$host_os dld.sl"
19211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19214 soname_spec='${libname}${release}${shared_ext}$major'
19215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19217 ;;
19218 *)
19219 shrext_cmds='.sl'
19220 dynamic_linker="$host_os dld.sl"
19221 shlibpath_var=SHLIB_PATH
19222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224 soname_spec='${libname}${release}${shared_ext}$major'
19225 ;;
19226 esac
19227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19228 postinstall_cmds='chmod 555 $lib'
19229 ;;
19230
19231 interix3*)
19232 version_type=linux
19233 need_lib_prefix=no
19234 need_version=no
19235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19236 soname_spec='${libname}${release}${shared_ext}$major'
19237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19238 shlibpath_var=LD_LIBRARY_PATH
19239 shlibpath_overrides_runpath=no
19240 hardcode_into_libs=yes
19241 ;;
19242
19243 irix5* | irix6* | nonstopux*)
19244 case $host_os in
19245 nonstopux*) version_type=nonstopux ;;
19246 *)
19247 if test "$lt_cv_prog_gnu_ld" = yes; then
19248 version_type=linux
19249 else
19250 version_type=irix
19251 fi ;;
19252 esac
19253 need_lib_prefix=no
19254 need_version=no
19255 soname_spec='${libname}${release}${shared_ext}$major'
19256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19257 case $host_os in
19258 irix5* | nonstopux*)
19259 libsuff= shlibsuff=
19260 ;;
19261 *)
19262 case $LD in # libtool.m4 will add one of these switches to LD
19263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19264 libsuff= shlibsuff= libmagic=32-bit;;
19265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19266 libsuff=32 shlibsuff=N32 libmagic=N32;;
19267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19269 *) libsuff= shlibsuff= libmagic=never-match;;
19270 esac
19271 ;;
19272 esac
19273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19274 shlibpath_overrides_runpath=no
19275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19277 hardcode_into_libs=yes
19278 ;;
19279
19280 # No shared lib support for Linux oldld, aout, or coff.
19281 linux*oldld* | linux*aout* | linux*coff*)
19282 dynamic_linker=no
19283 ;;
19284
19285 # This must be Linux ELF.
19286 linux*)
19287 version_type=linux
19288 need_lib_prefix=no
19289 need_version=no
19290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19291 soname_spec='${libname}${release}${shared_ext}$major'
19292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19293 shlibpath_var=LD_LIBRARY_PATH
19294 shlibpath_overrides_runpath=no
19295 # This implies no fast_install, which is unacceptable.
19296 # Some rework will be needed to allow for fast_install
19297 # before this can be enabled.
19298 hardcode_into_libs=yes
19299
19300 # Append ld.so.conf contents to the search path
19301 if test -f /etc/ld.so.conf; then
19302 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19304 fi
19305
19306 # We used to test for /lib/ld.so.1 and disable shared libraries on
19307 # powerpc, because MkLinux only supported shared libraries with the
19308 # GNU dynamic linker. Since this was broken with cross compilers,
19309 # most powerpc-linux boxes support dynamic linking these days and
19310 # people can always --disable-shared, the test was removed, and we
19311 # assume the GNU/Linux dynamic linker is in use.
19312 dynamic_linker='GNU/Linux ld.so'
19313 ;;
19314
19315 knetbsd*-gnu)
19316 version_type=linux
19317 need_lib_prefix=no
19318 need_version=no
19319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19320 soname_spec='${libname}${release}${shared_ext}$major'
19321 shlibpath_var=LD_LIBRARY_PATH
19322 shlibpath_overrides_runpath=no
19323 hardcode_into_libs=yes
19324 dynamic_linker='GNU ld.so'
19325 ;;
19326
19327 netbsd*)
19328 version_type=sunos
19329 need_lib_prefix=no
19330 need_version=no
19331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19334 dynamic_linker='NetBSD (a.out) ld.so'
19335 else
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 dynamic_linker='NetBSD ld.elf_so'
19339 fi
19340 shlibpath_var=LD_LIBRARY_PATH
19341 shlibpath_overrides_runpath=yes
19342 hardcode_into_libs=yes
19343 ;;
19344
19345 newsos6)
19346 version_type=linux
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19348 shlibpath_var=LD_LIBRARY_PATH
19349 shlibpath_overrides_runpath=yes
19350 ;;
19351
19352 nto-qnx*)
19353 version_type=linux
19354 need_lib_prefix=no
19355 need_version=no
19356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357 soname_spec='${libname}${release}${shared_ext}$major'
19358 shlibpath_var=LD_LIBRARY_PATH
19359 shlibpath_overrides_runpath=yes
19360 ;;
19361
19362 openbsd*)
19363 version_type=sunos
19364 sys_lib_dlsearch_path_spec="/usr/lib"
19365 need_lib_prefix=no
19366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19367 case $host_os in
19368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19369 *) need_version=no ;;
19370 esac
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19375 case $host_os in
19376 openbsd2.[89] | openbsd2.[89].*)
19377 shlibpath_overrides_runpath=no
19378 ;;
19379 *)
19380 shlibpath_overrides_runpath=yes
19381 ;;
19382 esac
19383 else
19384 shlibpath_overrides_runpath=yes
19385 fi
19386 ;;
19387
19388 os2*)
19389 libname_spec='$name'
19390 shrext_cmds=".dll"
19391 need_lib_prefix=no
19392 library_names_spec='$libname${shared_ext} $libname.a'
19393 dynamic_linker='OS/2 ld.exe'
19394 shlibpath_var=LIBPATH
19395 ;;
19396
19397 osf3* | osf4* | osf5*)
19398 version_type=osf
19399 need_lib_prefix=no
19400 need_version=no
19401 soname_spec='${libname}${release}${shared_ext}$major'
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 shlibpath_var=LD_LIBRARY_PATH
19404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19406 ;;
19407
19408 solaris*)
19409 version_type=linux
19410 need_lib_prefix=no
19411 need_version=no
19412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19413 soname_spec='${libname}${release}${shared_ext}$major'
19414 shlibpath_var=LD_LIBRARY_PATH
19415 shlibpath_overrides_runpath=yes
19416 hardcode_into_libs=yes
19417 # ldd complains unless libraries are executable
19418 postinstall_cmds='chmod +x $lib'
19419 ;;
19420
19421 sunos4*)
19422 version_type=sunos
19423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19425 shlibpath_var=LD_LIBRARY_PATH
19426 shlibpath_overrides_runpath=yes
19427 if test "$with_gnu_ld" = yes; then
19428 need_lib_prefix=no
19429 fi
19430 need_version=yes
19431 ;;
19432
19433 sysv4 | sysv4.3*)
19434 version_type=linux
19435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19436 soname_spec='${libname}${release}${shared_ext}$major'
19437 shlibpath_var=LD_LIBRARY_PATH
19438 case $host_vendor in
19439 sni)
19440 shlibpath_overrides_runpath=no
19441 need_lib_prefix=no
19442 export_dynamic_flag_spec='${wl}-Blargedynsym'
19443 runpath_var=LD_RUN_PATH
19444 ;;
19445 siemens)
19446 need_lib_prefix=no
19447 ;;
19448 motorola)
19449 need_lib_prefix=no
19450 need_version=no
19451 shlibpath_overrides_runpath=no
19452 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19453 ;;
19454 esac
19455 ;;
19456
19457 sysv4*MP*)
19458 if test -d /usr/nec ;then
19459 version_type=linux
19460 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19461 soname_spec='$libname${shared_ext}.$major'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 fi
19464 ;;
19465
19466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19467 version_type=freebsd-elf
19468 need_lib_prefix=no
19469 need_version=no
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 hardcode_into_libs=yes
19474 if test "$with_gnu_ld" = yes; then
19475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19476 shlibpath_overrides_runpath=no
19477 else
19478 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19479 shlibpath_overrides_runpath=yes
19480 case $host_os in
19481 sco3.2v5*)
19482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19483 ;;
19484 esac
19485 fi
19486 sys_lib_dlsearch_path_spec='/usr/lib'
19487 ;;
19488
19489 uts4*)
19490 version_type=linux
19491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492 soname_spec='${libname}${release}${shared_ext}$major'
19493 shlibpath_var=LD_LIBRARY_PATH
19494 ;;
19495
19496 *)
19497 dynamic_linker=no
19498 ;;
19499 esac
19500 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19501 echo "${ECHO_T}$dynamic_linker" >&6
19502 test "$dynamic_linker" = no && can_build_shared=no
19503
19504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19505 if test "$GCC" = yes; then
19506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19507 fi
19508
19509 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19511 hardcode_action_GCJ=
19512 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19513 test -n "$runpath_var_GCJ" || \
19514 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19515
19516 # We can hardcode non-existant directories.
19517 if test "$hardcode_direct_GCJ" != no &&
19518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19519 # have to relink, otherwise we might link with an installed library
19520 # when we should be linking with a yet-to-be-installed one
19521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19522 test "$hardcode_minus_L_GCJ" != no; then
19523 # Linking always hardcodes the temporary library directory.
19524 hardcode_action_GCJ=relink
19525 else
19526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19527 hardcode_action_GCJ=immediate
19528 fi
19529 else
19530 # We cannot hardcode anything, or else we can only hardcode existing
19531 # directories.
19532 hardcode_action_GCJ=unsupported
19533 fi
19534 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19535 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19536
19537 if test "$hardcode_action_GCJ" = relink; then
19538 # Fast installation is not supported
19539 enable_fast_install=no
19540 elif test "$shlibpath_overrides_runpath" = yes ||
19541 test "$enable_shared" = no; then
19542 # Fast installation is not necessary
19543 enable_fast_install=needless
19544 fi
19545
19546
19547 # The else clause should only fire when bootstrapping the
19548 # libtool distribution, otherwise you forgot to ship ltmain.sh
19549 # with your package, and you will get complaints that there are
19550 # no rules to generate ltmain.sh.
19551 if test -f "$ltmain"; then
19552 # See if we are running on zsh, and set the options which allow our commands through
19553 # without removal of \ escapes.
19554 if test -n "${ZSH_VERSION+set}" ; then
19555 setopt NO_GLOB_SUBST
19556 fi
19557 # Now quote all the things that may contain metacharacters while being
19558 # careful not to overquote the AC_SUBSTed values. We take copies of the
19559 # variables and quote the copies for generation of the libtool script.
19560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19561 SED SHELL STRIP \
19562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19564 deplibs_check_method reload_flag reload_cmds need_locks \
19565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19566 lt_cv_sys_global_symbol_to_c_name_address \
19567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19568 old_postinstall_cmds old_postuninstall_cmds \
19569 compiler_GCJ \
19570 CC_GCJ \
19571 LD_GCJ \
19572 lt_prog_compiler_wl_GCJ \
19573 lt_prog_compiler_pic_GCJ \
19574 lt_prog_compiler_static_GCJ \
19575 lt_prog_compiler_no_builtin_flag_GCJ \
19576 export_dynamic_flag_spec_GCJ \
19577 thread_safe_flag_spec_GCJ \
19578 whole_archive_flag_spec_GCJ \
19579 enable_shared_with_static_runtimes_GCJ \
19580 old_archive_cmds_GCJ \
19581 old_archive_from_new_cmds_GCJ \
19582 predep_objects_GCJ \
19583 postdep_objects_GCJ \
19584 predeps_GCJ \
19585 postdeps_GCJ \
19586 compiler_lib_search_path_GCJ \
19587 archive_cmds_GCJ \
19588 archive_expsym_cmds_GCJ \
19589 postinstall_cmds_GCJ \
19590 postuninstall_cmds_GCJ \
19591 old_archive_from_expsyms_cmds_GCJ \
19592 allow_undefined_flag_GCJ \
19593 no_undefined_flag_GCJ \
19594 export_symbols_cmds_GCJ \
19595 hardcode_libdir_flag_spec_GCJ \
19596 hardcode_libdir_flag_spec_ld_GCJ \
19597 hardcode_libdir_separator_GCJ \
19598 hardcode_automatic_GCJ \
19599 module_cmds_GCJ \
19600 module_expsym_cmds_GCJ \
19601 lt_cv_prog_compiler_c_o_GCJ \
19602 exclude_expsyms_GCJ \
19603 include_expsyms_GCJ; do
19604
19605 case $var in
19606 old_archive_cmds_GCJ | \
19607 old_archive_from_new_cmds_GCJ | \
19608 archive_cmds_GCJ | \
19609 archive_expsym_cmds_GCJ | \
19610 module_cmds_GCJ | \
19611 module_expsym_cmds_GCJ | \
19612 old_archive_from_expsyms_cmds_GCJ | \
19613 export_symbols_cmds_GCJ | \
19614 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19615 postinstall_cmds | postuninstall_cmds | \
19616 old_postinstall_cmds | old_postuninstall_cmds | \
19617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19618 # Double-quote double-evaled strings.
19619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19620 ;;
19621 *)
19622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19623 ;;
19624 esac
19625 done
19626
19627 case $lt_echo in
19628 *'\$0 --fallback-echo"')
19629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19630 ;;
19631 esac
19632
19633 cfgfile="$ofile"
19634
19635 cat <<__EOF__ >> "$cfgfile"
19636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19637
19638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19639
19640 # Shell to use when invoking shell scripts.
19641 SHELL=$lt_SHELL
19642
19643 # Whether or not to build shared libraries.
19644 build_libtool_libs=$enable_shared
19645
19646 # Whether or not to build static libraries.
19647 build_old_libs=$enable_static
19648
19649 # Whether or not to add -lc for building shared libraries.
19650 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19651
19652 # Whether or not to disallow shared libs when runtime libs are static
19653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19654
19655 # Whether or not to optimize for fast installation.
19656 fast_install=$enable_fast_install
19657
19658 # The host system.
19659 host_alias=$host_alias
19660 host=$host
19661 host_os=$host_os
19662
19663 # The build system.
19664 build_alias=$build_alias
19665 build=$build
19666 build_os=$build_os
19667
19668 # An echo program that does not interpret backslashes.
19669 echo=$lt_echo
19670
19671 # The archiver.
19672 AR=$lt_AR
19673 AR_FLAGS=$lt_AR_FLAGS
19674
19675 # A C compiler.
19676 LTCC=$lt_LTCC
19677
19678 # LTCC compiler flags.
19679 LTCFLAGS=$lt_LTCFLAGS
19680
19681 # A language-specific compiler.
19682 CC=$lt_compiler_GCJ
19683
19684 # Is the compiler the GNU C compiler?
19685 with_gcc=$GCC_GCJ
19686
19687 # An ERE matcher.
19688 EGREP=$lt_EGREP
19689
19690 # The linker used to build libraries.
19691 LD=$lt_LD_GCJ
19692
19693 # Whether we need hard or soft links.
19694 LN_S=$lt_LN_S
19695
19696 # A BSD-compatible nm program.
19697 NM=$lt_NM
19698
19699 # A symbol stripping program
19700 STRIP=$lt_STRIP
19701
19702 # Used to examine libraries when file_magic_cmd begins "file"
19703 MAGIC_CMD=$MAGIC_CMD
19704
19705 # Used on cygwin: DLL creation program.
19706 DLLTOOL="$DLLTOOL"
19707
19708 # Used on cygwin: object dumper.
19709 OBJDUMP="$OBJDUMP"
19710
19711 # Used on cygwin: assembler.
19712 AS="$AS"
19713
19714 # The name of the directory that contains temporary libtool files.
19715 objdir=$objdir
19716
19717 # How to create reloadable object files.
19718 reload_flag=$lt_reload_flag
19719 reload_cmds=$lt_reload_cmds
19720
19721 # How to pass a linker flag through the compiler.
19722 wl=$lt_lt_prog_compiler_wl_GCJ
19723
19724 # Object file suffix (normally "o").
19725 objext="$ac_objext"
19726
19727 # Old archive suffix (normally "a").
19728 libext="$libext"
19729
19730 # Shared library suffix (normally ".so").
19731 shrext_cmds='$shrext_cmds'
19732
19733 # Executable file suffix (normally "").
19734 exeext="$exeext"
19735
19736 # Additional compiler flags for building library objects.
19737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19738 pic_mode=$pic_mode
19739
19740 # What is the maximum length of a command?
19741 max_cmd_len=$lt_cv_sys_max_cmd_len
19742
19743 # Does compiler simultaneously support -c and -o options?
19744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19745
19746 # Must we lock files when doing compilation?
19747 need_locks=$lt_need_locks
19748
19749 # Do we need the lib prefix for modules?
19750 need_lib_prefix=$need_lib_prefix
19751
19752 # Do we need a version for libraries?
19753 need_version=$need_version
19754
19755 # Whether dlopen is supported.
19756 dlopen_support=$enable_dlopen
19757
19758 # Whether dlopen of programs is supported.
19759 dlopen_self=$enable_dlopen_self
19760
19761 # Whether dlopen of statically linked programs is supported.
19762 dlopen_self_static=$enable_dlopen_self_static
19763
19764 # Compiler flag to prevent dynamic linking.
19765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19766
19767 # Compiler flag to turn off builtin functions.
19768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19769
19770 # Compiler flag to allow reflexive dlopens.
19771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19772
19773 # Compiler flag to generate shared objects directly from archives.
19774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19775
19776 # Compiler flag to generate thread-safe objects.
19777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19778
19779 # Library versioning type.
19780 version_type=$version_type
19781
19782 # Format of library name prefix.
19783 libname_spec=$lt_libname_spec
19784
19785 # List of archive names. First name is the real one, the rest are links.
19786 # The last name is the one that the linker finds with -lNAME.
19787 library_names_spec=$lt_library_names_spec
19788
19789 # The coded name of the library, if different from the real name.
19790 soname_spec=$lt_soname_spec
19791
19792 # Commands used to build and install an old-style archive.
19793 RANLIB=$lt_RANLIB
19794 old_archive_cmds=$lt_old_archive_cmds_GCJ
19795 old_postinstall_cmds=$lt_old_postinstall_cmds
19796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19797
19798 # Create an old-style archive from a shared archive.
19799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19800
19801 # Create a temporary old-style archive to link instead of a shared archive.
19802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19803
19804 # Commands used to build and install a shared archive.
19805 archive_cmds=$lt_archive_cmds_GCJ
19806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19807 postinstall_cmds=$lt_postinstall_cmds
19808 postuninstall_cmds=$lt_postuninstall_cmds
19809
19810 # Commands used to build a loadable module (assumed same as above if empty)
19811 module_cmds=$lt_module_cmds_GCJ
19812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19813
19814 # Commands to strip libraries.
19815 old_striplib=$lt_old_striplib
19816 striplib=$lt_striplib
19817
19818 # Dependencies to place before the objects being linked to create a
19819 # shared library.
19820 predep_objects=$lt_predep_objects_GCJ
19821
19822 # Dependencies to place after the objects being linked to create a
19823 # shared library.
19824 postdep_objects=$lt_postdep_objects_GCJ
19825
19826 # Dependencies to place before the objects being linked to create a
19827 # shared library.
19828 predeps=$lt_predeps_GCJ
19829
19830 # Dependencies to place after the objects being linked to create a
19831 # shared library.
19832 postdeps=$lt_postdeps_GCJ
19833
19834 # The library search path used internally by the compiler when linking
19835 # a shared library.
19836 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19837
19838 # Method to check whether dependent libraries are shared objects.
19839 deplibs_check_method=$lt_deplibs_check_method
19840
19841 # Command to use when deplibs_check_method == file_magic.
19842 file_magic_cmd=$lt_file_magic_cmd
19843
19844 # Flag that allows shared libraries with undefined symbols to be built.
19845 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19846
19847 # Flag that forces no undefined symbols.
19848 no_undefined_flag=$lt_no_undefined_flag_GCJ
19849
19850 # Commands used to finish a libtool library installation in a directory.
19851 finish_cmds=$lt_finish_cmds
19852
19853 # Same as above, but a single script fragment to be evaled but not shown.
19854 finish_eval=$lt_finish_eval
19855
19856 # Take the output of nm and produce a listing of raw symbols and C names.
19857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19858
19859 # Transform the output of nm in a proper C declaration
19860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19861
19862 # Transform the output of nm in a C name address pair
19863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19864
19865 # This is the shared library runtime path variable.
19866 runpath_var=$runpath_var
19867
19868 # This is the shared library path variable.
19869 shlibpath_var=$shlibpath_var
19870
19871 # Is shlibpath searched before the hard-coded library search path?
19872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19873
19874 # How to hardcode a shared library path into an executable.
19875 hardcode_action=$hardcode_action_GCJ
19876
19877 # Whether we should hardcode library paths into libraries.
19878 hardcode_into_libs=$hardcode_into_libs
19879
19880 # Flag to hardcode \$libdir into a binary during linking.
19881 # This must work even if \$libdir does not exist.
19882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19883
19884 # If ld is used when linking, flag to hardcode \$libdir into
19885 # a binary during linking. This must work even if \$libdir does
19886 # not exist.
19887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19888
19889 # Whether we need a single -rpath flag with a separated argument.
19890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19891
19892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19893 # resulting binary.
19894 hardcode_direct=$hardcode_direct_GCJ
19895
19896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19897 # resulting binary.
19898 hardcode_minus_L=$hardcode_minus_L_GCJ
19899
19900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19901 # the resulting binary.
19902 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19903
19904 # Set to yes if building a shared library automatically hardcodes DIR into the library
19905 # and all subsequent libraries and executables linked against it.
19906 hardcode_automatic=$hardcode_automatic_GCJ
19907
19908 # Variables whose values should be saved in libtool wrapper scripts and
19909 # restored at relink time.
19910 variables_saved_for_relink="$variables_saved_for_relink"
19911
19912 # Whether libtool must link a program against all its dependency libraries.
19913 link_all_deplibs=$link_all_deplibs_GCJ
19914
19915 # Compile-time system search path for libraries
19916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19917
19918 # Run-time system search path for libraries
19919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19920
19921 # Fix the shell variable \$srcfile for the compiler.
19922 fix_srcfile_path="$fix_srcfile_path_GCJ"
19923
19924 # Set to yes if exported symbols are required.
19925 always_export_symbols=$always_export_symbols_GCJ
19926
19927 # The commands to list exported symbols.
19928 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19929
19930 # The commands to extract the exported symbol list from a shared archive.
19931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19932
19933 # Symbols that should not be listed in the preloaded symbols.
19934 exclude_expsyms=$lt_exclude_expsyms_GCJ
19935
19936 # Symbols that must always be exported.
19937 include_expsyms=$lt_include_expsyms_GCJ
19938
19939 # ### END LIBTOOL TAG CONFIG: $tagname
19940
19941 __EOF__
19942
19943
19944 else
19945 # If there is no Makefile yet, we rely on a make rule to execute
19946 # `config.status --recheck' to rerun these tests and create the
19947 # libtool script then.
19948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19949 if test -f "$ltmain_in"; then
19950 test -f Makefile && make "$ltmain"
19951 fi
19952 fi
19953
19954
19955 ac_ext=c
19956 ac_cpp='$CPP $CPPFLAGS'
19957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19960
19961 CC="$lt_save_CC"
19962
19963 else
19964 tagname=""
19965 fi
19966 ;;
19967
19968 RC)
19969
19970
19971
19972 # Source file extension for RC test sources.
19973 ac_ext=rc
19974
19975 # Object file extension for compiled RC test sources.
19976 objext=o
19977 objext_RC=$objext
19978
19979 # Code to be used in simple compile tests
19980 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19981
19982 # Code to be used in simple link tests
19983 lt_simple_link_test_code="$lt_simple_compile_test_code"
19984
19985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19986
19987 # If no C compiler was specified, use CC.
19988 LTCC=${LTCC-"$CC"}
19989
19990 # If no C compiler flags were specified, use CFLAGS.
19991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19992
19993 # Allow CC to be a program name with arguments.
19994 compiler=$CC
19995
19996
19997 # save warnings/boilerplate of simple test code
19998 ac_outfile=conftest.$ac_objext
19999 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20001 _lt_compiler_boilerplate=`cat conftest.err`
20002 $rm conftest*
20003
20004 ac_outfile=conftest.$ac_objext
20005 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20007 _lt_linker_boilerplate=`cat conftest.err`
20008 $rm conftest*
20009
20010
20011 # Allow CC to be a program name with arguments.
20012 lt_save_CC="$CC"
20013 CC=${RC-"windres"}
20014 compiler=$CC
20015 compiler_RC=$CC
20016 for cc_temp in $compiler""; do
20017 case $cc_temp in
20018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20020 \-*) ;;
20021 *) break;;
20022 esac
20023 done
20024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20025
20026 lt_cv_prog_compiler_c_o_RC=yes
20027
20028 # The else clause should only fire when bootstrapping the
20029 # libtool distribution, otherwise you forgot to ship ltmain.sh
20030 # with your package, and you will get complaints that there are
20031 # no rules to generate ltmain.sh.
20032 if test -f "$ltmain"; then
20033 # See if we are running on zsh, and set the options which allow our commands through
20034 # without removal of \ escapes.
20035 if test -n "${ZSH_VERSION+set}" ; then
20036 setopt NO_GLOB_SUBST
20037 fi
20038 # Now quote all the things that may contain metacharacters while being
20039 # careful not to overquote the AC_SUBSTed values. We take copies of the
20040 # variables and quote the copies for generation of the libtool script.
20041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20042 SED SHELL STRIP \
20043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20045 deplibs_check_method reload_flag reload_cmds need_locks \
20046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20047 lt_cv_sys_global_symbol_to_c_name_address \
20048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20049 old_postinstall_cmds old_postuninstall_cmds \
20050 compiler_RC \
20051 CC_RC \
20052 LD_RC \
20053 lt_prog_compiler_wl_RC \
20054 lt_prog_compiler_pic_RC \
20055 lt_prog_compiler_static_RC \
20056 lt_prog_compiler_no_builtin_flag_RC \
20057 export_dynamic_flag_spec_RC \
20058 thread_safe_flag_spec_RC \
20059 whole_archive_flag_spec_RC \
20060 enable_shared_with_static_runtimes_RC \
20061 old_archive_cmds_RC \
20062 old_archive_from_new_cmds_RC \
20063 predep_objects_RC \
20064 postdep_objects_RC \
20065 predeps_RC \
20066 postdeps_RC \
20067 compiler_lib_search_path_RC \
20068 archive_cmds_RC \
20069 archive_expsym_cmds_RC \
20070 postinstall_cmds_RC \
20071 postuninstall_cmds_RC \
20072 old_archive_from_expsyms_cmds_RC \
20073 allow_undefined_flag_RC \
20074 no_undefined_flag_RC \
20075 export_symbols_cmds_RC \
20076 hardcode_libdir_flag_spec_RC \
20077 hardcode_libdir_flag_spec_ld_RC \
20078 hardcode_libdir_separator_RC \
20079 hardcode_automatic_RC \
20080 module_cmds_RC \
20081 module_expsym_cmds_RC \
20082 lt_cv_prog_compiler_c_o_RC \
20083 exclude_expsyms_RC \
20084 include_expsyms_RC; do
20085
20086 case $var in
20087 old_archive_cmds_RC | \
20088 old_archive_from_new_cmds_RC | \
20089 archive_cmds_RC | \
20090 archive_expsym_cmds_RC | \
20091 module_cmds_RC | \
20092 module_expsym_cmds_RC | \
20093 old_archive_from_expsyms_cmds_RC | \
20094 export_symbols_cmds_RC | \
20095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20096 postinstall_cmds | postuninstall_cmds | \
20097 old_postinstall_cmds | old_postuninstall_cmds | \
20098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20099 # Double-quote double-evaled strings.
20100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20101 ;;
20102 *)
20103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20104 ;;
20105 esac
20106 done
20107
20108 case $lt_echo in
20109 *'\$0 --fallback-echo"')
20110 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20111 ;;
20112 esac
20113
20114 cfgfile="$ofile"
20115
20116 cat <<__EOF__ >> "$cfgfile"
20117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20118
20119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20120
20121 # Shell to use when invoking shell scripts.
20122 SHELL=$lt_SHELL
20123
20124 # Whether or not to build shared libraries.
20125 build_libtool_libs=$enable_shared
20126
20127 # Whether or not to build static libraries.
20128 build_old_libs=$enable_static
20129
20130 # Whether or not to add -lc for building shared libraries.
20131 build_libtool_need_lc=$archive_cmds_need_lc_RC
20132
20133 # Whether or not to disallow shared libs when runtime libs are static
20134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20135
20136 # Whether or not to optimize for fast installation.
20137 fast_install=$enable_fast_install
20138
20139 # The host system.
20140 host_alias=$host_alias
20141 host=$host
20142 host_os=$host_os
20143
20144 # The build system.
20145 build_alias=$build_alias
20146 build=$build
20147 build_os=$build_os
20148
20149 # An echo program that does not interpret backslashes.
20150 echo=$lt_echo
20151
20152 # The archiver.
20153 AR=$lt_AR
20154 AR_FLAGS=$lt_AR_FLAGS
20155
20156 # A C compiler.
20157 LTCC=$lt_LTCC
20158
20159 # LTCC compiler flags.
20160 LTCFLAGS=$lt_LTCFLAGS
20161
20162 # A language-specific compiler.
20163 CC=$lt_compiler_RC
20164
20165 # Is the compiler the GNU C compiler?
20166 with_gcc=$GCC_RC
20167
20168 # An ERE matcher.
20169 EGREP=$lt_EGREP
20170
20171 # The linker used to build libraries.
20172 LD=$lt_LD_RC
20173
20174 # Whether we need hard or soft links.
20175 LN_S=$lt_LN_S
20176
20177 # A BSD-compatible nm program.
20178 NM=$lt_NM
20179
20180 # A symbol stripping program
20181 STRIP=$lt_STRIP
20182
20183 # Used to examine libraries when file_magic_cmd begins "file"
20184 MAGIC_CMD=$MAGIC_CMD
20185
20186 # Used on cygwin: DLL creation program.
20187 DLLTOOL="$DLLTOOL"
20188
20189 # Used on cygwin: object dumper.
20190 OBJDUMP="$OBJDUMP"
20191
20192 # Used on cygwin: assembler.
20193 AS="$AS"
20194
20195 # The name of the directory that contains temporary libtool files.
20196 objdir=$objdir
20197
20198 # How to create reloadable object files.
20199 reload_flag=$lt_reload_flag
20200 reload_cmds=$lt_reload_cmds
20201
20202 # How to pass a linker flag through the compiler.
20203 wl=$lt_lt_prog_compiler_wl_RC
20204
20205 # Object file suffix (normally "o").
20206 objext="$ac_objext"
20207
20208 # Old archive suffix (normally "a").
20209 libext="$libext"
20210
20211 # Shared library suffix (normally ".so").
20212 shrext_cmds='$shrext_cmds'
20213
20214 # Executable file suffix (normally "").
20215 exeext="$exeext"
20216
20217 # Additional compiler flags for building library objects.
20218 pic_flag=$lt_lt_prog_compiler_pic_RC
20219 pic_mode=$pic_mode
20220
20221 # What is the maximum length of a command?
20222 max_cmd_len=$lt_cv_sys_max_cmd_len
20223
20224 # Does compiler simultaneously support -c and -o options?
20225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20226
20227 # Must we lock files when doing compilation?
20228 need_locks=$lt_need_locks
20229
20230 # Do we need the lib prefix for modules?
20231 need_lib_prefix=$need_lib_prefix
20232
20233 # Do we need a version for libraries?
20234 need_version=$need_version
20235
20236 # Whether dlopen is supported.
20237 dlopen_support=$enable_dlopen
20238
20239 # Whether dlopen of programs is supported.
20240 dlopen_self=$enable_dlopen_self
20241
20242 # Whether dlopen of statically linked programs is supported.
20243 dlopen_self_static=$enable_dlopen_self_static
20244
20245 # Compiler flag to prevent dynamic linking.
20246 link_static_flag=$lt_lt_prog_compiler_static_RC
20247
20248 # Compiler flag to turn off builtin functions.
20249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20250
20251 # Compiler flag to allow reflexive dlopens.
20252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20253
20254 # Compiler flag to generate shared objects directly from archives.
20255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20256
20257 # Compiler flag to generate thread-safe objects.
20258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20259
20260 # Library versioning type.
20261 version_type=$version_type
20262
20263 # Format of library name prefix.
20264 libname_spec=$lt_libname_spec
20265
20266 # List of archive names. First name is the real one, the rest are links.
20267 # The last name is the one that the linker finds with -lNAME.
20268 library_names_spec=$lt_library_names_spec
20269
20270 # The coded name of the library, if different from the real name.
20271 soname_spec=$lt_soname_spec
20272
20273 # Commands used to build and install an old-style archive.
20274 RANLIB=$lt_RANLIB
20275 old_archive_cmds=$lt_old_archive_cmds_RC
20276 old_postinstall_cmds=$lt_old_postinstall_cmds
20277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20278
20279 # Create an old-style archive from a shared archive.
20280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20281
20282 # Create a temporary old-style archive to link instead of a shared archive.
20283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20284
20285 # Commands used to build and install a shared archive.
20286 archive_cmds=$lt_archive_cmds_RC
20287 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20288 postinstall_cmds=$lt_postinstall_cmds
20289 postuninstall_cmds=$lt_postuninstall_cmds
20290
20291 # Commands used to build a loadable module (assumed same as above if empty)
20292 module_cmds=$lt_module_cmds_RC
20293 module_expsym_cmds=$lt_module_expsym_cmds_RC
20294
20295 # Commands to strip libraries.
20296 old_striplib=$lt_old_striplib
20297 striplib=$lt_striplib
20298
20299 # Dependencies to place before the objects being linked to create a
20300 # shared library.
20301 predep_objects=$lt_predep_objects_RC
20302
20303 # Dependencies to place after the objects being linked to create a
20304 # shared library.
20305 postdep_objects=$lt_postdep_objects_RC
20306
20307 # Dependencies to place before the objects being linked to create a
20308 # shared library.
20309 predeps=$lt_predeps_RC
20310
20311 # Dependencies to place after the objects being linked to create a
20312 # shared library.
20313 postdeps=$lt_postdeps_RC
20314
20315 # The library search path used internally by the compiler when linking
20316 # a shared library.
20317 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20318
20319 # Method to check whether dependent libraries are shared objects.
20320 deplibs_check_method=$lt_deplibs_check_method
20321
20322 # Command to use when deplibs_check_method == file_magic.
20323 file_magic_cmd=$lt_file_magic_cmd
20324
20325 # Flag that allows shared libraries with undefined symbols to be built.
20326 allow_undefined_flag=$lt_allow_undefined_flag_RC
20327
20328 # Flag that forces no undefined symbols.
20329 no_undefined_flag=$lt_no_undefined_flag_RC
20330
20331 # Commands used to finish a libtool library installation in a directory.
20332 finish_cmds=$lt_finish_cmds
20333
20334 # Same as above, but a single script fragment to be evaled but not shown.
20335 finish_eval=$lt_finish_eval
20336
20337 # Take the output of nm and produce a listing of raw symbols and C names.
20338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20339
20340 # Transform the output of nm in a proper C declaration
20341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20342
20343 # Transform the output of nm in a C name address pair
20344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20345
20346 # This is the shared library runtime path variable.
20347 runpath_var=$runpath_var
20348
20349 # This is the shared library path variable.
20350 shlibpath_var=$shlibpath_var
20351
20352 # Is shlibpath searched before the hard-coded library search path?
20353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20354
20355 # How to hardcode a shared library path into an executable.
20356 hardcode_action=$hardcode_action_RC
20357
20358 # Whether we should hardcode library paths into libraries.
20359 hardcode_into_libs=$hardcode_into_libs
20360
20361 # Flag to hardcode \$libdir into a binary during linking.
20362 # This must work even if \$libdir does not exist.
20363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20364
20365 # If ld is used when linking, flag to hardcode \$libdir into
20366 # a binary during linking. This must work even if \$libdir does
20367 # not exist.
20368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20369
20370 # Whether we need a single -rpath flag with a separated argument.
20371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20372
20373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20374 # resulting binary.
20375 hardcode_direct=$hardcode_direct_RC
20376
20377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20378 # resulting binary.
20379 hardcode_minus_L=$hardcode_minus_L_RC
20380
20381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20382 # the resulting binary.
20383 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20384
20385 # Set to yes if building a shared library automatically hardcodes DIR into the library
20386 # and all subsequent libraries and executables linked against it.
20387 hardcode_automatic=$hardcode_automatic_RC
20388
20389 # Variables whose values should be saved in libtool wrapper scripts and
20390 # restored at relink time.
20391 variables_saved_for_relink="$variables_saved_for_relink"
20392
20393 # Whether libtool must link a program against all its dependency libraries.
20394 link_all_deplibs=$link_all_deplibs_RC
20395
20396 # Compile-time system search path for libraries
20397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20398
20399 # Run-time system search path for libraries
20400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20401
20402 # Fix the shell variable \$srcfile for the compiler.
20403 fix_srcfile_path="$fix_srcfile_path_RC"
20404
20405 # Set to yes if exported symbols are required.
20406 always_export_symbols=$always_export_symbols_RC
20407
20408 # The commands to list exported symbols.
20409 export_symbols_cmds=$lt_export_symbols_cmds_RC
20410
20411 # The commands to extract the exported symbol list from a shared archive.
20412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20413
20414 # Symbols that should not be listed in the preloaded symbols.
20415 exclude_expsyms=$lt_exclude_expsyms_RC
20416
20417 # Symbols that must always be exported.
20418 include_expsyms=$lt_include_expsyms_RC
20419
20420 # ### END LIBTOOL TAG CONFIG: $tagname
20421
20422 __EOF__
20423
20424
20425 else
20426 # If there is no Makefile yet, we rely on a make rule to execute
20427 # `config.status --recheck' to rerun these tests and create the
20428 # libtool script then.
20429 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20430 if test -f "$ltmain_in"; then
20431 test -f Makefile && make "$ltmain"
20432 fi
20433 fi
20434
20435
20436 ac_ext=c
20437 ac_cpp='$CPP $CPPFLAGS'
20438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441
20442 CC="$lt_save_CC"
20443
20444 ;;
20445
20446 *)
20447 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20448 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20449 { (exit 1); exit 1; }; }
20450 ;;
20451 esac
20452
20453 # Append the new tag name to the list of available tags.
20454 if test -n "$tagname" ; then
20455 available_tags="$available_tags $tagname"
20456 fi
20457 fi
20458 done
20459 IFS="$lt_save_ifs"
20460
20461 # Now substitute the updated list of available tags.
20462 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20463 mv "${ofile}T" "$ofile"
20464 chmod +x "$ofile"
20465 else
20466 rm -f "${ofile}T"
20467 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20468 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20469 { (exit 1); exit 1; }; }
20470 fi
20471 fi
20472
20473
20474
20475 # This can be used to rebuild libtool when needed
20476 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20477
20478 # Always use our own libtool.
20479 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20480
20481 # Prevent multiple expansion
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20494 # AC_REQUIRE([AC_COIN_DLFCN_H])
20495
20496 # NEW: If libtool exists in the directory higher up, we use that one
20497 # instead of creating a new one
20498
20499 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20500 # out in front of this macro body. You'll notice that LIBTOOL is already
20501 # defined here. We'll have to count on this macro not being called if libtool
20502 # already exists, or at least move the libtool fixes outside the conditional.
20503 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20504 # This test is therefore removed. -- lh, 061214 --
20505 # if test "x$LIBTOOL" = x; then
20506
20507 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20518
20519
20520
20521 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20522 echo "$as_me: Build is \"$build\"." >&6;}
20523 mydos2unix='| dos2unix'
20524 case $build in
20525 *-mingw*)
20526 CYGPATH_W=echo
20527 ;;
20528 esac
20529
20530 case $build in
20531 # Here we need to check if -m32 is specified. If so, we need to correct
20532 # sys_lib_search_path_spec
20533 *-cygwin* | *-mingw*)
20534 case "$CXX" in
20535 clang* )
20536 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20537 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20538 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20539 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20540 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20541 -e 's|libext="lib"|libext="a"|' \
20542 libtool > conftest.bla
20543 ;;
20544 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20545 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20546 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20547 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20548 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20549 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20550 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20551 -e 's%lib /OUT:%lib -OUT:%' \
20552 -e "s%cygpath -w%$CYGPATH_W%" \
20553 -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
20554 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20555 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20556 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20557 -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
20558 libtool > conftest.bla
20559 ;;
20560 *)
20561 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20562 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20563 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20564 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20565 -e 's|libext="lib"|libext="a"|' \
20566 libtool > conftest.bla
20567 ;;
20568 esac
20569 mv conftest.bla libtool
20570 chmod 755 libtool
20571
20572 ;;
20573 *x86_64-*)
20574 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20575 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20576 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20577 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20578 mv conftest.bla libtool
20579 chmod 755 libtool
20580 fi
20581 ;;
20582
20583 *-solaris*)
20584 if test "$GCC" = yes && \
20585 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20586 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20587 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20588 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20589 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20590 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20591 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20592 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20593 # AC_MSG_NOTICE(Compensating for broken gcc)
20594 for lib in $fixlibtmp ; do
20595 if test -d "${lib}${hdwisa}" ; then
20596 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20597 fi
20598 done
20599 syslibpath64="${syslibpath64} ${fixlibtmp}"
20600 else
20601 syslibpath64="$fixlibtmp"
20602 fi
20603 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20604 mv conftest.bla libtool
20605 chmod 755 libtool
20606 fi
20607 # AC_MSG_NOTICE(Result is )
20608 # $EGREP 'sys_lib_search_path_spec=' libtool
20609 fi
20610 ;;
20611 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20612 *-darwin*)
20613 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20614 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20615 sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \
20616 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20617 libtool > conftest.bla
20618
20619 mv conftest.bla libtool
20620 chmod 755 libtool
20621 ;;
20622 esac
20623 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20624 # the macro. -- lh, 061214 --
20625 # fi
20626
20627 # AC_MSG_NOTICE([End libtool initialisation.])
20628
20629 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20630 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20631 # of the shared objects
20632 RPATH_FLAGS=
20633
20634 if test $enable_shared = yes; then
20635 case $build in
20636 *-linux-*)
20637 if test "$GXX" = "yes"; then
20638 RPATH_FLAGS=
20639 for dir in $abs_lib_dir; do
20640 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20641 done
20642 fi ;;
20643 *-darwin*)
20644 RPATH_FLAGS=nothing ;;
20645 *-ibm-*)
20646 case "$CXX" in
20647 xlC* | */xlC* | mpxlC* | */mpxlC*)
20648 RPATH_FLAGS=nothing ;;
20649 esac ;;
20650 *-hp-*)
20651 RPATH_FLAGS=nothing ;;
20652 *-mingw32)
20653 RPATH_FLAGS=nothing ;;
20654 *-*-solaris*)
20655 RPATH_FLAGS=
20656 for dir in $abs_lib_dir; do
20657 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20658 done
20659 esac
20660
20661 if test "$RPATH_FLAGS" = ""; then
20662 { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5
20663 echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;}
20664 fi
20665 if test "$RPATH_FLAGS" = "nothing"; then
20666 RPATH_FLAGS=
20667 fi
20668 fi
20669
20670
20671
20672
20673 else
20674
20675 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20676 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20677 # get all missing information from the config.log file
20678
20679 # output variables and defines
20680 as_save_IFS=$IFS
20681 IFS='
20682 '
20683 for oneline in `cat $coin_config_dir/config.status`; do
20684 case "$oneline" in
20685 # First some automake conditionals
20686 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20687 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20688 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20689 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20690 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20691 # echo "$command"
20692 eval "$command"
20693 ;;
20694 s,@DEFS@* )
20695 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20696 # echo "$command"
20697 eval "$command"
20698 ;;
20699 esac
20700 done
20701 IFS=$as_save_IFS
20702
20703 # And some defines (assuming here that the packages base dir
20704 # doesn't have a config.h file
20705 for word in $defsline; do
20706 # echo word $word
20707 case $word in
20708 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20709 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20710 # echo dd $i
20711 echo $i >>confdefs.h
20712 ;;
20713 esac
20714 done
20715 fi
20716
20717 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20718
20719 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20720 if test "${enable_dependency_linking+set}" = set; then
20721 enableval="$enable_dependency_linking"
20722 dependency_linking="$enableval"
20723 else
20724 dependency_linking=auto
20725 fi;
20726
20727 if test "$dependency_linking" = auto; then
20728 # On Cygwin and AIX, building DLLs doesn't work
20729 dependency_linking=no
20730 if test x"$coin_disable_shared" = xno; then
20731 case $build in
20732 *-cygwin* | *-mingw*)
20733 case "$CC" in
20734 clang* )
20735 dependency_linking=yes
20736 ;;
20737 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20738 dependency_linking=no
20739 ;;
20740 *gcc*)
20741 dependency_linking=yes
20742 ;;
20743 *)
20744 dependency_linking=yes
20745 ;;
20746 esac
20747 ;;
20748 *)
20749 dependency_linking=yes
20750 ;;
20751 esac
20752 fi
20753 fi
20754
20755 if test "$dependency_linking" = yes ;
20756 then
20757 LT_LDFLAGS="-no-undefined"
20758 else
20759 LT_LDFLAGS=
20760 fi
20761
20762
20763
20764 if test "$dependency_linking" = yes; then
20765 DEPENDENCY_LINKING_TRUE=
20766 DEPENDENCY_LINKING_FALSE='#'
20767 else
20768 DEPENDENCY_LINKING_TRUE='#'
20769 DEPENDENCY_LINKING_FALSE=
20770 fi
20771
20772
20773 # Check if we want to set the library version
20774 echo "$as_me:$LINENO: checking if library version is set" >&5
20775 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20776 if test x"$coin_libversion" != x; then
20777 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20778 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20779 echo "${ECHO_T}$coin_libversion" >&6
20780 else
20781 echo "$as_me:$LINENO: result: no" >&5
20782 echo "${ECHO_T}no" >&6
20783 fi
20784
20785
20786
20787 #END
20788 }
20789 # AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20790
20791
20792 #############################################################################
20793 # Check which subprojects are there #
20794 #############################################################################
20795
20796
20797 echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
20798 echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
20799
20800 coin_has_sample=notGiven
20801 coin_reason=
20802
20803 # check if user wants to skip project in any case
20804
20805 if test x"$COIN_SKIP_PROJECTS" != x; then
20806 for dir in $COIN_SKIP_PROJECTS; do
20807 if test $dir = "Sample"; then
20808 coin_has_sample="no"
20809 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
20810 fi
20811
20812 if test $dir = "Data/Sample"; then
20813 coin_has_sample="no"
20814 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
20815 fi
20816 done
20817 fi
20818
20819 if test "$coin_has_sample" != no; then
20820
20821 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
20822 if test "${with_sample+set}" = set; then
20823 withval="$with_sample"
20824 if test "$withval" = no ; then
20825 coin_has_sample="no"
20826 coin_reason="--without-sample has been specified"
20827 fi
20828
20829 fi;
20830 fi
20831
20832 if test "$coin_has_sample" != no; then
20833
20834 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
20835 if test "${with_sample_lib+set}" = set; then
20836 withval="$with_sample_lib"
20837 if test "$withval" = no ; then
20838 coin_has_sample="no"
20839 coin_reason="--without-sample-lib has been specified"
20840 else
20841 coin_has_sample="no"
20842 coin_reason="--with-sample-lib has been specified"
20843 fi
20844 fi;
20845 fi
20846
20847 if test "$coin_has_sample" != no; then
20848
20849 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
20850 if test "${with_sample_incdir+set}" = set; then
20851 withval="$with_sample_incdir"
20852 if test "$withval" = no ; then
20853 coin_has_sample="no"
20854 coin_reason="--without-sample-incdir has been specified"
20855 else
20856 coin_has_sample="no"
20857 coin_reason="--with-sample-incdir has been specified"
20858 fi
20859 fi;
20860 fi
20861
20862 if test "$coin_has_sample" != no; then
20863
20864 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
20865 if test "${with_sample_datadir+set}" = set; then
20866 withval="$with_sample_datadir"
20867 if test "$withval" = no ; then
20868 coin_has_sample="no"
20869 coin_reason="--without-sample-datadir has been specified"
20870 else
20871 coin_has_sample="no"
20872 coin_reason="--with-sample-datadir has been specified"
20873 fi
20874 fi;
20875 fi
20876
20877
20878
20879
20880
20881 # check if project is available in present directory
20882 if test "$coin_has_sample" = notGiven; then
20883 coin_has_sample=no
20884 if test -d $srcdir/Data/Sample; then
20885 coin_reason="source in Data/Sample"
20886 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20887 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20888 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20889 coin_has_sample="yes"
20890
20891 fi
20892 fi
20893
20894 if test -z "$coin_reason" ; then
20895 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
20896 echo "${ECHO_T}$coin_has_sample" >&6
20897 else
20898 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
20899 echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
20900 fi
20901
20902 if test "$coin_has_sample" = yes ; then
20903 if test -r $srcdir/Data/Sample/configure; then
20904 coin_subdirs="$coin_subdirs Data/Sample"
20905
20906
20907 subdirs="$subdirs Data/Sample"
20908
20909 fi
20910 fi
20911
20912
20913 echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
20914 echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
20915
20916 coin_has_coinutils=notGiven
20917 coin_reason=
20918
20919 # check if user wants to skip project in any case
20920
20921 if test x"$COIN_SKIP_PROJECTS" != x; then
20922 for dir in $COIN_SKIP_PROJECTS; do
20923 if test $dir = "CoinUtils"; then
20924 coin_has_coinutils="no"
20925 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
20926 fi
20927
20928 done
20929 fi
20930
20931 if test "$coin_has_coinutils" != no; then
20932
20933 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20934 if test "${with_coinutils+set}" = set; then
20935 withval="$with_coinutils"
20936 if test "$withval" = no ; then
20937 coin_has_coinutils="no"
20938 coin_reason="--without-coinutils has been specified"
20939 fi
20940
20941 fi;
20942 fi
20943
20944 if test "$coin_has_coinutils" != no; then
20945
20946 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20947 if test "${with_coinutils_lib+set}" = set; then
20948 withval="$with_coinutils_lib"
20949 if test "$withval" = no ; then
20950 coin_has_coinutils="no"
20951 coin_reason="--without-coinutils-lib has been specified"
20952 else
20953 coin_has_coinutils="no"
20954 coin_reason="--with-coinutils-lib has been specified"
20955 fi
20956 fi;
20957 fi
20958
20959 if test "$coin_has_coinutils" != no; then
20960
20961 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20962 if test "${with_coinutils_incdir+set}" = set; then
20963 withval="$with_coinutils_incdir"
20964 if test "$withval" = no ; then
20965 coin_has_coinutils="no"
20966 coin_reason="--without-coinutils-incdir has been specified"
20967 else
20968 coin_has_coinutils="no"
20969 coin_reason="--with-coinutils-incdir has been specified"
20970 fi
20971 fi;
20972 fi
20973
20974 if test "$coin_has_coinutils" != no; then
20975
20976 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20977 if test "${with_coinutils_datadir+set}" = set; then
20978 withval="$with_coinutils_datadir"
20979 if test "$withval" = no ; then
20980 coin_has_coinutils="no"
20981 coin_reason="--without-coinutils-datadir has been specified"
20982 else
20983 coin_has_coinutils="no"
20984 coin_reason="--with-coinutils-datadir has been specified"
20985 fi
20986 fi;
20987 fi
20988
20989
20990
20991
20992
20993 # check if project is available in present directory
20994 if test "$coin_has_coinutils" = notGiven; then
20995 coin_has_coinutils=no
20996 if test -d $srcdir/CoinUtils; then
20997 coin_reason="source in CoinUtils"
20998 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20999 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21000 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21001 coin_has_coinutils="yes"
21002
21003 fi
21004 fi
21005
21006 if test -z "$coin_reason" ; then
21007 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21008 echo "${ECHO_T}$coin_has_coinutils" >&6
21009 else
21010 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
21011 echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
21012 fi
21013
21014 if test "$coin_has_coinutils" = yes ; then
21015 if test -r $srcdir/CoinUtils/configure; then
21016 coin_subdirs="$coin_subdirs CoinUtils"
21017
21018
21019 subdirs="$subdirs CoinUtils"
21020
21021 fi
21022 fi
21023
21024
21025 echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21026 echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21027
21028 coin_has_osi=notGiven
21029 coin_reason=
21030
21031 # check if user wants to skip project in any case
21032
21033 if test x"$COIN_SKIP_PROJECTS" != x; then
21034 for dir in $COIN_SKIP_PROJECTS; do
21035 if test $dir = "Osi"; then
21036 coin_has_osi="no"
21037 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21038 fi
21039
21040 done
21041 fi
21042
21043 if test "$coin_has_osi" != no; then
21044
21045 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21046 if test "${with_osi+set}" = set; then
21047 withval="$with_osi"
21048 if test "$withval" = no ; then
21049 coin_has_osi="no"
21050 coin_reason="--without-osi has been specified"
21051 fi
21052
21053 fi;
21054 fi
21055
21056 if test "$coin_has_osi" != no; then
21057
21058 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21059 if test "${with_osi_lib+set}" = set; then
21060 withval="$with_osi_lib"
21061 if test "$withval" = no ; then
21062 coin_has_osi="no"
21063 coin_reason="--without-osi-lib has been specified"
21064 else
21065 coin_has_osi="no"
21066 coin_reason="--with-osi-lib has been specified"
21067 fi
21068 fi;
21069 fi
21070
21071 if test "$coin_has_osi" != no; then
21072
21073 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21074 if test "${with_osi_incdir+set}" = set; then
21075 withval="$with_osi_incdir"
21076 if test "$withval" = no ; then
21077 coin_has_osi="no"
21078 coin_reason="--without-osi-incdir has been specified"
21079 else
21080 coin_has_osi="no"
21081 coin_reason="--with-osi-incdir has been specified"
21082 fi
21083 fi;
21084 fi
21085
21086 if test "$coin_has_osi" != no; then
21087
21088 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21089 if test "${with_osi_datadir+set}" = set; then
21090 withval="$with_osi_datadir"
21091 if test "$withval" = no ; then
21092 coin_has_osi="no"
21093 coin_reason="--without-osi-datadir has been specified"
21094 else
21095 coin_has_osi="no"
21096 coin_reason="--with-osi-datadir has been specified"
21097 fi
21098 fi;
21099 fi
21100
21101
21102
21103
21104
21105 # check if project is available in present directory
21106 if test "$coin_has_osi" = notGiven; then
21107 coin_has_osi=no
21108 if test -d $srcdir/Osi; then
21109 coin_reason="source in Osi"
21110 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21111 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21112 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21113 coin_has_osi="yes"
21114
21115 fi
21116 fi
21117
21118 if test -z "$coin_reason" ; then
21119 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21120 echo "${ECHO_T}$coin_has_osi" >&6
21121 else
21122 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21123 echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21124 fi
21125
21126 if test "$coin_has_osi" = yes ; then
21127 if test -r $srcdir/Osi/configure; then
21128 coin_subdirs="$coin_subdirs Osi"
21129
21130
21131 subdirs="$subdirs Osi"
21132
21133 fi
21134 fi
21135
21136
21137 echo "$as_me:$LINENO: checking whether source of project Vol is available and should be compiled" >&5
21138 echo $ECHO_N "checking whether source of project Vol is available and should be compiled... $ECHO_C" >&6
21139
21140 coin_has_vol=notGiven
21141 coin_reason=
21142
21143 # check if user wants to skip project in any case
21144
21145 if test x"$COIN_SKIP_PROJECTS" != x; then
21146 for dir in $COIN_SKIP_PROJECTS; do
21147 if test $dir = "Vol"; then
21148 coin_has_vol="no"
21149 coin_reason="Vol has been specified in COIN_SKIP_PROJECTS"
21150 fi
21151
21152 done
21153 fi
21154
21155 if test "$coin_has_vol" != no; then
21156
21157 # Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
21158 if test "${with_vol+set}" = set; then
21159 withval="$with_vol"
21160 if test "$withval" = no ; then
21161 coin_has_vol="no"
21162 coin_reason="--without-vol has been specified"
21163 fi
21164
21165 fi;
21166 fi
21167
21168 if test "$coin_has_vol" != no; then
21169
21170 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
21171 if test "${with_vol_lib+set}" = set; then
21172 withval="$with_vol_lib"
21173 if test "$withval" = no ; then
21174 coin_has_vol="no"
21175 coin_reason="--without-vol-lib has been specified"
21176 else
21177 coin_has_vol="no"
21178 coin_reason="--with-vol-lib has been specified"
21179 fi
21180 fi;
21181 fi
21182
21183 if test "$coin_has_vol" != no; then
21184
21185 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
21186 if test "${with_vol_incdir+set}" = set; then
21187 withval="$with_vol_incdir"
21188 if test "$withval" = no ; then
21189 coin_has_vol="no"
21190 coin_reason="--without-vol-incdir has been specified"
21191 else
21192 coin_has_vol="no"
21193 coin_reason="--with-vol-incdir has been specified"
21194 fi
21195 fi;
21196 fi
21197
21198 if test "$coin_has_vol" != no; then
21199
21200 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
21201 if test "${with_vol_datadir+set}" = set; then
21202 withval="$with_vol_datadir"
21203 if test "$withval" = no ; then
21204 coin_has_vol="no"
21205 coin_reason="--without-vol-datadir has been specified"
21206 else
21207 coin_has_vol="no"
21208 coin_reason="--with-vol-datadir has been specified"
21209 fi
21210 fi;
21211 fi
21212
21213
21214
21215
21216
21217 # check if project is available in present directory
21218 if test "$coin_has_vol" = notGiven; then
21219 coin_has_vol=no
21220 if test -d $srcdir/Vol; then
21221 coin_reason="source in Vol"
21222 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21223 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21224 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21225 coin_has_vol="yes"
21226
21227 fi
21228 fi
21229
21230 if test -z "$coin_reason" ; then
21231 echo "$as_me:$LINENO: result: $coin_has_vol" >&5
21232 echo "${ECHO_T}$coin_has_vol" >&6
21233 else
21234 echo "$as_me:$LINENO: result: $coin_has_vol, $coin_reason" >&5
21235 echo "${ECHO_T}$coin_has_vol, $coin_reason" >&6
21236 fi
21237
21238 if test "$coin_has_vol" = yes ; then
21239 if test -r $srcdir/Vol/configure; then
21240 coin_subdirs="$coin_subdirs Vol"
21241
21242
21243 subdirs="$subdirs Vol"
21244
21245 fi
21246 fi
21247
21248
21249
21250
21251 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
21252 echo "$as_me: configuring doxygen documentation options" >&6;}
21253
21254 # Check to see if doxygen is available.
21255
21256 # Extract the first word of "doxygen", so it can be a program name with args.
21257 set dummy doxygen; ac_word=$2
21258 echo "$as_me:$LINENO: checking for $ac_word" >&5
21259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21260 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263 if test -n "$coin_have_doxygen"; then
21264 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
21265 else
21266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21267 for as_dir in $PATH
21268 do
21269 IFS=$as_save_IFS
21270 test -z "$as_dir" && as_dir=.
21271 for ac_exec_ext in '' $ac_executable_extensions; do
21272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21273 ac_cv_prog_coin_have_doxygen="yes"
21274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21275 break 2
21276 fi
21277 done
21278 done
21279
21280 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
21281 fi
21282 fi
21283 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
21284 if test -n "$coin_have_doxygen"; then
21285 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
21286 echo "${ECHO_T}$coin_have_doxygen" >&6
21287 else
21288 echo "$as_me:$LINENO: result: no" >&5
21289 echo "${ECHO_T}no" >&6
21290 fi
21291
21292 # Extract the first word of "latex", so it can be a program name with args.
21293 set dummy latex; ac_word=$2
21294 echo "$as_me:$LINENO: checking for $ac_word" >&5
21295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21296 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21298 else
21299 if test -n "$coin_have_latex"; then
21300 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
21301 else
21302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21303 for as_dir in $PATH
21304 do
21305 IFS=$as_save_IFS
21306 test -z "$as_dir" && as_dir=.
21307 for ac_exec_ext in '' $ac_executable_extensions; do
21308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21309 ac_cv_prog_coin_have_latex="yes"
21310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21311 break 2
21312 fi
21313 done
21314 done
21315
21316 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
21317 fi
21318 fi
21319 coin_have_latex=$ac_cv_prog_coin_have_latex
21320 if test -n "$coin_have_latex"; then
21321 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
21322 echo "${ECHO_T}$coin_have_latex" >&6
21323 else
21324 echo "$as_me:$LINENO: result: no" >&5
21325 echo "${ECHO_T}no" >&6
21326 fi
21327
21328
21329 # Look for the dot tool from the graphviz package, unless the user has
21330 # disabled it.
21331
21332
21333 # Check whether --with-dot or --without-dot was given.
21334 if test "${with_dot+set}" = set; then
21335 withval="$with_dot"
21336
21337 else
21338 withval=yes
21339 fi;
21340 if test x"$withval" = xno ; then
21341 coin_doxy_usedot=NO
21342 echo "$as_me:$LINENO: checking for dot " >&5
21343 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
21344 echo "$as_me:$LINENO: result: disabled" >&5
21345 echo "${ECHO_T}disabled" >&6
21346 else
21347 # Extract the first word of "dot", so it can be a program name with args.
21348 set dummy dot; ac_word=$2
21349 echo "$as_me:$LINENO: checking for $ac_word" >&5
21350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21351 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354 if test -n "$coin_doxy_usedot"; then
21355 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
21356 else
21357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21358 for as_dir in $PATH
21359 do
21360 IFS=$as_save_IFS
21361 test -z "$as_dir" && as_dir=.
21362 for ac_exec_ext in '' $ac_executable_extensions; do
21363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21364 ac_cv_prog_coin_doxy_usedot="YES"
21365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21366 break 2
21367 fi
21368 done
21369 done
21370
21371 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
21372 fi
21373 fi
21374 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
21375 if test -n "$coin_doxy_usedot"; then
21376 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
21377 echo "${ECHO_T}$coin_doxy_usedot" >&6
21378 else
21379 echo "$as_me:$LINENO: result: no" >&5
21380 echo "${ECHO_T}no" >&6
21381 fi
21382
21383 fi
21384
21385 # Generate a tag file name and a log file name
21386
21387 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
21388
21389 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
21390
21391
21392
21393 if test $coin_have_doxygen = yes; then
21394 COIN_HAS_DOXYGEN_TRUE=
21395 COIN_HAS_DOXYGEN_FALSE='#'
21396 else
21397 COIN_HAS_DOXYGEN_TRUE='#'
21398 COIN_HAS_DOXYGEN_FALSE=
21399 fi
21400
21401
21402
21403 if test $coin_have_latex = yes; then
21404 COIN_HAS_LATEX_TRUE=
21405 COIN_HAS_LATEX_FALSE='#'
21406 else
21407 COIN_HAS_LATEX_TRUE='#'
21408 COIN_HAS_LATEX_FALSE=
21409 fi
21410
21411
21412 # Process the list of project names and massage them into possible doxygen
21413 # doc'n directories. Prefer 1) classic external, source processed using
21414 # a project-specific doxygen.conf, we use the tag file; 2) classic
21415 # external, source processed using package doxygen.conf; 3) installed
21416 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
21417 # configured, which we can't know unless this is the package base configure,
21418 # since coin_subdirs is only set there. Hence it's sufficient to check for
21419 # membership. If we use a tag file from a classic external, exclude the
21420 # source from doxygen processing when doxygen runs in the base directory.
21421
21422 coin_doxy_tagfiles=
21423 coin_doxy_excludes=
21424 tmp="CoinUtils Osi"
21425 for proj in $tmp ; do
21426 lc_proj=`echo $proj | tr [A-Z] [a-z]`
21427 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
21428 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
21429 doxytag=${lc_proj}_doxy.tag
21430 doxyfound=no
21431 # proj will be configured, hence doxydoc present in build tree
21432 doxysrcdir="${srcdir}/../${proj}"
21433 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
21434 if test -d "$doxysrcdir" ; then
21435 # with a doxydoc directory?
21436 doxydir="$doxysrcdir/doxydoc"
21437 # AC_MSG_NOTICE([Considering $doxydir (base)])
21438 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
21439 if test -d "$doxydir" ; then
21440 # use tag file; don't process source
21441 doxydir="../${proj}/doxydoc"
21442 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
21443 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
21444 echo "${ECHO_T}$doxydir (tag)" >&6
21445 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
21446 else
21447 # will process the source -- nothing further to be done here
21448 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
21449 echo "${ECHO_T}$doxysrcdir (src)" >&6
21450 fi
21451 doxyfound=yes
21452 fi
21453 # Not built, fall back to installed tag file
21454 if test $doxyfound = no ; then
21455 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
21456 # AC_MSG_NOTICE([Considering $doxydir (install)])
21457 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
21458 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
21459 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
21460 echo "${ECHO_T}$doxydir (tag)" >&6
21461 fi
21462 done
21463
21464
21465
21466
21467
21468 ##############################################################################
21469 # Finishing up by writing all the output #
21470 ##############################################################################
21471
21472 # Here list all the files that configure should create (except for the
21473 # configuration header file)
21474 ac_config_files="$ac_config_files Makefile doxydoc/doxygen.conf"
21475
21476
21477 # Finally, we let configure write all the output...
21478
21479
21480
21481
21482 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
21483 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
21484 coin_link_input_cmd="$LN_S"
21485 case "$CC" in
21486 clang* ) ;;
21487 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21488 coin_link_input_cmd=cp ;;
21489 esac
21490 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
21491 echo "${ECHO_T}$coin_link_input_cmd" >&6
21492
21493
21494
21495 if test x$coin_skip_ac_output != xyes; then
21496
21497 # library extension
21498
21499 case "$CC" in
21500 clang* )
21501 LIBEXT=a ;;
21502 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21503 LIBEXT=lib ;;
21504 *) LIBEXT=a ;;
21505 esac
21506
21507 # Define VPATH_DISTCLEANFILES to be everything that needs to be
21508 # cleaned for distclean in a vpath configuration
21509
21510 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
21511
21512 # Take out subdirectories if their configuration concluded that they
21513 # don't need to be compiled
21514 if test x"$coin_ac_skip_subdirs" != x; then
21515 new_subdirs=
21516 for i in $subdirs; do
21517 skipme=no
21518 for j in $coin_ac_skip_subdirs; do
21519 if test $i = $j; then
21520 skipme=yes;
21521 fi
21522 done
21523 if test $skipme = no; then
21524 new_subdirs="$new_subdirs $i"
21525 fi
21526 done
21527 subdirs="$new_subdirs"
21528 fi
21529
21530 # need to come before AC_OUTPUT
21531 if test x$coin_projectdir != xyes; then
21532 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
21533 echo $coin_subdirs > coin_subdirs.txt
21534 else
21535 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
21536 ABSBUILDDIR="`pwd`"
21537
21538 fi
21539
21540 cat >confcache <<\_ACEOF
21541 # This file is a shell script that caches the results of configure
21542 # tests run on this system so they can be shared between configure
21543 # scripts and configure runs, see configure's option --config-cache.
21544 # It is not useful on other systems. If it contains results you don't
21545 # want to keep, you may remove or edit it.
21546 #
21547 # config.status only pays attention to the cache file if you give it
21548 # the --recheck option to rerun configure.
21549 #
21550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21552 # following values.
21553
21554 _ACEOF
21555
21556 # The following way of writing the cache mishandles newlines in values,
21557 # but we know of no workaround that is simple, portable, and efficient.
21558 # So, don't put newlines in cache variables' values.
21559 # Ultrix sh set writes to stderr and can't be redirected directly,
21560 # and sets the high bit in the cache file unless we assign to the vars.
21561 {
21562 (set) 2>&1 |
21563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21564 *ac_space=\ *)
21565 # `set' does not quote correctly, so add quotes (double-quote
21566 # substitution turns \\\\ into \\, and sed turns \\ into \).
21567 sed -n \
21568 "s/'/'\\\\''/g;
21569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21570 ;;
21571 *)
21572 # `set' quotes correctly as required by POSIX, so do not add quotes.
21573 sed -n \
21574 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21575 ;;
21576 esac;
21577 } |
21578 sed '
21579 t clear
21580 : clear
21581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21582 t end
21583 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21584 : end' >>confcache
21585 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21586 if test -w $cache_file; then
21587 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21588 cat confcache >$cache_file
21589 else
21590 echo "not updating unwritable cache $cache_file"
21591 fi
21592 fi
21593 rm -f confcache
21594
21595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21596 # Let make expand exec_prefix.
21597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21598
21599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21601 # trailing colons and then remove the whole line if VPATH becomes empty
21602 # (actually we leave an empty line to preserve line numbers).
21603 if test "x$srcdir" = x.; then
21604 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21605 s/:*\$(srcdir):*/:/;
21606 s/:*\${srcdir}:*/:/;
21607 s/:*@srcdir@:*/:/;
21608 s/^\([^=]*=[ ]*\):*/\1/;
21609 s/:*$//;
21610 s/^[^=]*=[ ]*$//;
21611 }'
21612 fi
21613
21614 # Transform confdefs.h into DEFS.
21615 # Protect against shell expansion while executing Makefile rules.
21616 # Protect against Makefile macro expansion.
21617 #
21618 # If the first sed substitution is executed (which looks for macros that
21619 # take arguments), then we branch to the quote section. Otherwise,
21620 # look for a macro that doesn't take arguments.
21621 cat >confdef2opt.sed <<\_ACEOF
21622 t clear
21623 : clear
21624 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
21625 t quote
21626 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
21627 t quote
21628 d
21629 : quote
21630 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
21631 s,\[,\\&,g
21632 s,\],\\&,g
21633 s,\$,$$,g
21634 p
21635 _ACEOF
21636 # We use echo to avoid assuming a particular line-breaking character.
21637 # The extra dot is to prevent the shell from consuming trailing
21638 # line-breaks from the sub-command output. A line-break within
21639 # single-quotes doesn't work because, if this script is created in a
21640 # platform that uses two characters for line-breaks (e.g., DOS), tr
21641 # would break.
21642 ac_LF_and_DOT=`echo; echo .`
21643 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21644 rm -f confdef2opt.sed
21645
21646
21647 ac_libobjs=
21648 ac_ltlibobjs=
21649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21650 # 1. Remove the extension, and $U if already installed.
21651 ac_i=`echo "$ac_i" |
21652 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21653 # 2. Add them.
21654 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21655 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21656 done
21657 LIBOBJS=$ac_libobjs
21658
21659 LTLIBOBJS=$ac_ltlibobjs
21660
21661
21662 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
21663 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
21664 Usually this means the macro was only invoked conditionally." >&5
21665 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
21666 Usually this means the macro was only invoked conditionally." >&2;}
21667 { (exit 1); exit 1; }; }
21668 fi
21669 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
21670 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21671 Usually this means the macro was only invoked conditionally." >&5
21672 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21673 Usually this means the macro was only invoked conditionally." >&2;}
21674 { (exit 1); exit 1; }; }
21675 fi
21676 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21677 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21678 Usually this means the macro was only invoked conditionally." >&5
21679 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21680 Usually this means the macro was only invoked conditionally." >&2;}
21681 { (exit 1); exit 1; }; }
21682 fi
21683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21684 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21685 Usually this means the macro was only invoked conditionally." >&5
21686 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21687 Usually this means the macro was only invoked conditionally." >&2;}
21688 { (exit 1); exit 1; }; }
21689 fi
21690 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21691 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21692 Usually this means the macro was only invoked conditionally." >&5
21693 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21694 Usually this means the macro was only invoked conditionally." >&2;}
21695 { (exit 1); exit 1; }; }
21696 fi
21697 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21698 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21699 Usually this means the macro was only invoked conditionally." >&5
21700 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21701 Usually this means the macro was only invoked conditionally." >&2;}
21702 { (exit 1); exit 1; }; }
21703 fi
21704 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
21705 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
21706 Usually this means the macro was only invoked conditionally." >&5
21707 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
21708 Usually this means the macro was only invoked conditionally." >&2;}
21709 { (exit 1); exit 1; }; }
21710 fi
21711 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
21712 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21713 Usually this means the macro was only invoked conditionally." >&5
21714 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21715 Usually this means the macro was only invoked conditionally." >&2;}
21716 { (exit 1); exit 1; }; }
21717 fi
21718 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
21719 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
21720 Usually this means the macro was only invoked conditionally." >&5
21721 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
21722 Usually this means the macro was only invoked conditionally." >&2;}
21723 { (exit 1); exit 1; }; }
21724 fi
21725 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
21726 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&5
21728 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
21729 Usually this means the macro was only invoked conditionally." >&2;}
21730 { (exit 1); exit 1; }; }
21731 fi
21732
21733 : ${CONFIG_STATUS=./config.status}
21734 ac_clean_files_save=$ac_clean_files
21735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21738 cat >$CONFIG_STATUS <<_ACEOF
21739 #! $SHELL
21740 # Generated by $as_me.
21741 # Run this file to recreate the current configuration.
21742 # Compiler output produced by configure, useful for debugging
21743 # configure, is in config.log if it exists.
21744
21745 debug=false
21746 ac_cs_recheck=false
21747 ac_cs_silent=false
21748 SHELL=\${CONFIG_SHELL-$SHELL}
21749 _ACEOF
21750
21751 cat >>$CONFIG_STATUS <<\_ACEOF
21752 ## --------------------- ##
21753 ## M4sh Initialization. ##
21754 ## --------------------- ##
21755
21756 # Be Bourne compatible
21757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21758 emulate sh
21759 NULLCMD=:
21760 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21761 # is contrary to our usage. Disable this feature.
21762 alias -g '${1+"$@"}'='"$@"'
21763 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21764 set -o posix
21765 fi
21766 DUALCASE=1; export DUALCASE # for MKS sh
21767
21768 # Support unset when possible.
21769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21770 as_unset=unset
21771 else
21772 as_unset=false
21773 fi
21774
21775
21776 # Work around bugs in pre-3.0 UWIN ksh.
21777 $as_unset ENV MAIL MAILPATH
21778 PS1='$ '
21779 PS2='> '
21780 PS4='+ '
21781
21782 # NLS nuisances.
21783 for as_var in \
21784 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21785 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21786 LC_TELEPHONE LC_TIME
21787 do
21788 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21789 eval $as_var=C; export $as_var
21790 else
21791 $as_unset $as_var
21792 fi
21793 done
21794
21795 # Required to use basename.
21796 if expr a : '\(a\)' >/dev/null 2>&1; then
21797 as_expr=expr
21798 else
21799 as_expr=false
21800 fi
21801
21802 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21803 as_basename=basename
21804 else
21805 as_basename=false
21806 fi
21807
21808
21809 # Name of the executable.
21810 as_me=`$as_basename "$0" ||
21811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21812 X"$0" : 'X\(//\)$' \| \
21813 X"$0" : 'X\(/\)$' \| \
21814 . : '\(.\)' 2>/dev/null ||
21815 echo X/"$0" |
21816 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21817 /^X\/\(\/\/\)$/{ s//\1/; q; }
21818 /^X\/\(\/\).*/{ s//\1/; q; }
21819 s/.*/./; q'`
21820
21821
21822 # PATH needs CR, and LINENO needs CR and PATH.
21823 # Avoid depending upon Character Ranges.
21824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21827 as_cr_digits='0123456789'
21828 as_cr_alnum=$as_cr_Letters$as_cr_digits
21829
21830 # The user is always right.
21831 if test "${PATH_SEPARATOR+set}" != set; then
21832 echo "#! /bin/sh" >conf$$.sh
21833 echo "exit 0" >>conf$$.sh
21834 chmod +x conf$$.sh
21835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21836 PATH_SEPARATOR=';'
21837 else
21838 PATH_SEPARATOR=:
21839 fi
21840 rm -f conf$$.sh
21841 fi
21842
21843
21844 as_lineno_1=$LINENO
21845 as_lineno_2=$LINENO
21846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21847 test "x$as_lineno_1" != "x$as_lineno_2" &&
21848 test "x$as_lineno_3" = "x$as_lineno_2" || {
21849 # Find who we are. Look in the path if we contain no path at all
21850 # relative or not.
21851 case $0 in
21852 *[\\/]* ) as_myself=$0 ;;
21853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21854 for as_dir in $PATH
21855 do
21856 IFS=$as_save_IFS
21857 test -z "$as_dir" && as_dir=.
21858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21859 done
21860
21861 ;;
21862 esac
21863 # We did not find ourselves, most probably we were run as `sh COMMAND'
21864 # in which case we are not to be found in the path.
21865 if test "x$as_myself" = x; then
21866 as_myself=$0
21867 fi
21868 if test ! -f "$as_myself"; then
21869 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21870 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21871 { (exit 1); exit 1; }; }
21872 fi
21873 case $CONFIG_SHELL in
21874 '')
21875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21876 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21877 do
21878 IFS=$as_save_IFS
21879 test -z "$as_dir" && as_dir=.
21880 for as_base in sh bash ksh sh5; do
21881 case $as_dir in
21882 /*)
21883 if ("$as_dir/$as_base" -c '
21884 as_lineno_1=$LINENO
21885 as_lineno_2=$LINENO
21886 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21887 test "x$as_lineno_1" != "x$as_lineno_2" &&
21888 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21889 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21890 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21891 CONFIG_SHELL=$as_dir/$as_base
21892 export CONFIG_SHELL
21893 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21894 fi;;
21895 esac
21896 done
21897 done
21898 ;;
21899 esac
21900
21901 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21902 # uniformly replaced by the line number. The first 'sed' inserts a
21903 # line-number line before each line; the second 'sed' does the real
21904 # work. The second script uses 'N' to pair each line-number line
21905 # with the numbered line, and appends trailing '-' during
21906 # substitution so that $LINENO is not a special case at line end.
21907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21908 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21909 sed '=' <$as_myself |
21910 sed '
21911 N
21912 s,$,-,
21913 : loop
21914 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21915 t loop
21916 s,-$,,
21917 s,^['$as_cr_digits']*\n,,
21918 ' >$as_me.lineno &&
21919 chmod +x $as_me.lineno ||
21920 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21921 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21922 { (exit 1); exit 1; }; }
21923
21924 # Don't try to exec as it changes $[0], causing all sort of problems
21925 # (the dirname of $[0] is not the place where we might find the
21926 # original and so on. Autoconf is especially sensible to this).
21927 . ./$as_me.lineno
21928 # Exit status is that of the last command.
21929 exit
21930 }
21931
21932
21933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21934 *c*,-n*) ECHO_N= ECHO_C='
21935 ' ECHO_T=' ' ;;
21936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21938 esac
21939
21940 if expr a : '\(a\)' >/dev/null 2>&1; then
21941 as_expr=expr
21942 else
21943 as_expr=false
21944 fi
21945
21946 rm -f conf$$ conf$$.exe conf$$.file
21947 echo >conf$$.file
21948 if ln -s conf$$.file conf$$ 2>/dev/null; then
21949 # We could just check for DJGPP; but this test a) works b) is more generic
21950 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21951 if test -f conf$$.exe; then
21952 # Don't use ln at all; we don't have any links
21953 as_ln_s='cp -p'
21954 else
21955 as_ln_s='ln -s'
21956 fi
21957 elif ln conf$$.file conf$$ 2>/dev/null; then
21958 as_ln_s=ln
21959 else
21960 as_ln_s='cp -p'
21961 fi
21962 rm -f conf$$ conf$$.exe conf$$.file
21963
21964 if mkdir -p . 2>/dev/null; then
21965 as_mkdir_p=:
21966 else
21967 test -d ./-p && rmdir ./-p
21968 as_mkdir_p=false
21969 fi
21970
21971 as_executable_p="test -f"
21972
21973 # Sed expression to map a string onto a valid CPP name.
21974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21975
21976 # Sed expression to map a string onto a valid variable name.
21977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21978
21979
21980 # IFS
21981 # We need space, tab and new line, in precisely that order.
21982 as_nl='
21983 '
21984 IFS=" $as_nl"
21985
21986 # CDPATH.
21987 $as_unset CDPATH
21988
21989 exec 6>&1
21990
21991 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21992 # report actual input values of CONFIG_FILES etc. instead of their
21993 # values after options handling. Logging --version etc. is OK.
21994 exec 5>>config.log
21995 {
21996 echo
21997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21998 ## Running $as_me. ##
21999 _ASBOX
22000 } >&5
22001 cat >&5 <<_CSEOF
22002
22003 This file was extended by Vol $as_me 1.5.4, which was
22004 generated by GNU Autoconf 2.59. Invocation command line was
22005
22006 CONFIG_FILES = $CONFIG_FILES
22007 CONFIG_HEADERS = $CONFIG_HEADERS
22008 CONFIG_LINKS = $CONFIG_LINKS
22009 CONFIG_COMMANDS = $CONFIG_COMMANDS
22010 $ $0 $@
22011
22012 _CSEOF
22013 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22014 echo >&5
22015 _ACEOF
22016
22017 # Files that config.status was made for.
22018 if test -n "$ac_config_files"; then
22019 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22020 fi
22021
22022 if test -n "$ac_config_headers"; then
22023 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22024 fi
22025
22026 if test -n "$ac_config_links"; then
22027 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22028 fi
22029
22030 if test -n "$ac_config_commands"; then
22031 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22032 fi
22033
22034 cat >>$CONFIG_STATUS <<\_ACEOF
22035
22036 ac_cs_usage="\
22037 \`$as_me' instantiates files from templates according to the
22038 current configuration.
22039
22040 Usage: $0 [OPTIONS] [FILE]...
22041
22042 -h, --help print this help, then exit
22043 -V, --version print version number, then exit
22044 -q, --quiet do not print progress messages
22045 -d, --debug don't remove temporary files
22046 --recheck update $as_me by reconfiguring in the same conditions
22047 --file=FILE[:TEMPLATE]
22048 instantiate the configuration file FILE
22049
22050 Configuration files:
22051 $config_files
22052
22053 Configuration commands:
22054 $config_commands
22055
22056 Report bugs to <[email protected]>."
22057 _ACEOF
22058
22059 cat >>$CONFIG_STATUS <<_ACEOF
22060 ac_cs_version="\\
22061 Vol config.status 1.5.4
22062 configured by $0, generated by GNU Autoconf 2.59,
22063 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22064
22065 Copyright (C) 2003 Free Software Foundation, Inc.
22066 This config.status script is free software; the Free Software Foundation
22067 gives unlimited permission to copy, distribute and modify it."
22068 srcdir=$srcdir
22069 INSTALL="$INSTALL"
22070 _ACEOF
22071
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 # If no file are specified by the user, then we need to provide default
22074 # value. By we need to know if files were specified by the user.
22075 ac_need_defaults=:
22076 while test $# != 0
22077 do
22078 case $1 in
22079 --*=*)
22080 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22081 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22082 ac_shift=:
22083 ;;
22084 -*)
22085 ac_option=$1
22086 ac_optarg=$2
22087 ac_shift=shift
22088 ;;
22089 *) # This is not an option, so the user has probably given explicit
22090 # arguments.
22091 ac_option=$1
22092 ac_need_defaults=false;;
22093 esac
22094
22095 case $ac_option in
22096 # Handling of the options.
22097 _ACEOF
22098 cat >>$CONFIG_STATUS <<\_ACEOF
22099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22100 ac_cs_recheck=: ;;
22101 --version | --vers* | -V )
22102 echo "$ac_cs_version"; exit 0 ;;
22103 --he | --h)
22104 # Conflict between --help and --header
22105 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22106 Try \`$0 --help' for more information." >&5
22107 echo "$as_me: error: ambiguous option: $1
22108 Try \`$0 --help' for more information." >&2;}
22109 { (exit 1); exit 1; }; };;
22110 --help | --hel | -h )
22111 echo "$ac_cs_usage"; exit 0 ;;
22112 --debug | --d* | -d )
22113 debug=: ;;
22114 --file | --fil | --fi | --f )
22115 $ac_shift
22116 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22117 ac_need_defaults=false;;
22118 --header | --heade | --head | --hea )
22119 $ac_shift
22120 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22121 ac_need_defaults=false;;
22122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22124 ac_cs_silent=: ;;
22125
22126 # This is an error.
22127 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22128 Try \`$0 --help' for more information." >&5
22129 echo "$as_me: error: unrecognized option: $1
22130 Try \`$0 --help' for more information." >&2;}
22131 { (exit 1); exit 1; }; } ;;
22132
22133 *) ac_config_targets="$ac_config_targets $1" ;;
22134
22135 esac
22136 shift
22137 done
22138
22139 ac_configure_extra_args=
22140
22141 if $ac_cs_silent; then
22142 exec 6>/dev/null
22143 ac_configure_extra_args="$ac_configure_extra_args --silent"
22144 fi
22145
22146 _ACEOF
22147 cat >>$CONFIG_STATUS <<_ACEOF
22148 if \$ac_cs_recheck; then
22149 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22150 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22151 fi
22152
22153 _ACEOF
22154
22155 cat >>$CONFIG_STATUS <<_ACEOF
22156 #
22157 # INIT-COMMANDS section.
22158 #
22159
22160 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22161
22162 _ACEOF
22163
22164
22165
22166 cat >>$CONFIG_STATUS <<\_ACEOF
22167 for ac_config_target in $ac_config_targets
22168 do
22169 case "$ac_config_target" in
22170 # Handling of arguments.
22171 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22172 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
22173 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22174 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22175 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22176 { (exit 1); exit 1; }; };;
22177 esac
22178 done
22179
22180 # If the user did not use the arguments to specify the items to instantiate,
22181 # then the envvar interface is used. Set only those that are not.
22182 # We use the long form for the default assignment because of an extremely
22183 # bizarre bug on SunOS 4.1.3.
22184 if $ac_need_defaults; then
22185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22187 fi
22188
22189 # Have a temporary directory for convenience. Make it in the build tree
22190 # simply because there is no reason to put it here, and in addition,
22191 # creating and moving files from /tmp can sometimes cause problems.
22192 # Create a temporary directory, and hook for its removal unless debugging.
22193 $debug ||
22194 {
22195 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22196 trap '{ (exit 1); exit 1; }' 1 2 13 15
22197 }
22198
22199 # Create a (secure) tmp directory for tmp files.
22200
22201 {
22202 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22203 test -n "$tmp" && test -d "$tmp"
22204 } ||
22205 {
22206 tmp=./confstat$$-$RANDOM
22207 (umask 077 && mkdir $tmp)
22208 } ||
22209 {
22210 echo "$me: cannot create a temporary directory in ." >&2
22211 { (exit 1); exit 1; }
22212 }
22213
22214 _ACEOF
22215
22216 cat >>$CONFIG_STATUS <<_ACEOF
22217
22218 #
22219 # CONFIG_FILES section.
22220 #
22221
22222 # No need to generate the scripts if there are no CONFIG_FILES.
22223 # This happens for instance when ./config.status config.h
22224 if test -n "\$CONFIG_FILES"; then
22225 # Protect against being on the right side of a sed subst in config.status.
22226 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22227 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22228 s,@SHELL@,$SHELL,;t t
22229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22230 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22231 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22232 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22233 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22234 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22235 s,@exec_prefix@,$exec_prefix,;t t
22236 s,@prefix@,$prefix,;t t
22237 s,@program_transform_name@,$program_transform_name,;t t
22238 s,@bindir@,$bindir,;t t
22239 s,@sbindir@,$sbindir,;t t
22240 s,@libexecdir@,$libexecdir,;t t
22241 s,@datadir@,$datadir,;t t
22242 s,@sysconfdir@,$sysconfdir,;t t
22243 s,@sharedstatedir@,$sharedstatedir,;t t
22244 s,@localstatedir@,$localstatedir,;t t
22245 s,@libdir@,$libdir,;t t
22246 s,@includedir@,$includedir,;t t
22247 s,@oldincludedir@,$oldincludedir,;t t
22248 s,@infodir@,$infodir,;t t
22249 s,@mandir@,$mandir,;t t
22250 s,@build_alias@,$build_alias,;t t
22251 s,@host_alias@,$host_alias,;t t
22252 s,@target_alias@,$target_alias,;t t
22253 s,@DEFS@,$DEFS,;t t
22254 s,@ECHO_C@,$ECHO_C,;t t
22255 s,@ECHO_N@,$ECHO_N,;t t
22256 s,@ECHO_T@,$ECHO_T,;t t
22257 s,@LIBS@,$LIBS,;t t
22258 s,@build@,$build,;t t
22259 s,@build_cpu@,$build_cpu,;t t
22260 s,@build_vendor@,$build_vendor,;t t
22261 s,@build_os@,$build_os,;t t
22262 s,@CDEFS@,$CDEFS,;t t
22263 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22264 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22265 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22266 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22267 s,@CC@,$CC,;t t
22268 s,@CFLAGS@,$CFLAGS,;t t
22269 s,@LDFLAGS@,$LDFLAGS,;t t
22270 s,@CPPFLAGS@,$CPPFLAGS,;t t
22271 s,@ac_ct_CC@,$ac_ct_CC,;t t
22272 s,@EXEEXT@,$EXEEXT,;t t
22273 s,@OBJEXT@,$OBJEXT,;t t
22274 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22275 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22276 s,@MPICC@,$MPICC,;t t
22277 s,@CXXDEFS@,$CXXDEFS,;t t
22278 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22279 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22280 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22281 s,@CXX@,$CXX,;t t
22282 s,@CXXFLAGS@,$CXXFLAGS,;t t
22283 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22284 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22285 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22286 s,@MPICXX@,$MPICXX,;t t
22287 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22288 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22289 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22290 s,@F77@,$F77,;t t
22291 s,@ac_ct_F77@,$ac_ct_F77,;t t
22292 s,@FFLAGS@,$FFLAGS,;t t
22293 s,@MPIF77@,$MPIF77,;t t
22294 s,@EGREP@,$EGREP,;t t
22295 s,@LN_S@,$LN_S,;t t
22296 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22297 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22298 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22299 s,@CYGPATH_W@,$CYGPATH_W,;t t
22300 s,@PACKAGE@,$PACKAGE,;t t
22301 s,@VERSION@,$VERSION,;t t
22302 s,@ACLOCAL@,$ACLOCAL,;t t
22303 s,@AUTOCONF@,$AUTOCONF,;t t
22304 s,@AUTOMAKE@,$AUTOMAKE,;t t
22305 s,@AUTOHEADER@,$AUTOHEADER,;t t
22306 s,@MAKEINFO@,$MAKEINFO,;t t
22307 s,@install_sh@,$install_sh,;t t
22308 s,@STRIP@,$STRIP,;t t
22309 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22310 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22311 s,@mkdir_p@,$mkdir_p,;t t
22312 s,@AWK@,$AWK,;t t
22313 s,@SET_MAKE@,$SET_MAKE,;t t
22314 s,@am__leading_dot@,$am__leading_dot,;t t
22315 s,@AMTAR@,$AMTAR,;t t
22316 s,@am__tar@,$am__tar,;t t
22317 s,@am__untar@,$am__untar,;t t
22318 s,@DEPDIR@,$DEPDIR,;t t
22319 s,@am__include@,$am__include,;t t
22320 s,@am__quote@,$am__quote,;t t
22321 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22322 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22323 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22324 s,@CCDEPMODE@,$CCDEPMODE,;t t
22325 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22326 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22327 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22328 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22329 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22330 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22331 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22332 s,@MAINT@,$MAINT,;t t
22333 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22334 s,@have_autoconf@,$have_autoconf,;t t
22335 s,@have_automake@,$have_automake,;t t
22336 s,@have_svn@,$have_svn,;t t
22337 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22338 s,@AUX_DIR@,$AUX_DIR,;t t
22339 s,@abs_source_dir@,$abs_source_dir,;t t
22340 s,@abs_lib_dir@,$abs_lib_dir,;t t
22341 s,@abs_include_dir@,$abs_include_dir,;t t
22342 s,@abs_bin_dir@,$abs_bin_dir,;t t
22343 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22344 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22345 s,@host@,$host,;t t
22346 s,@host_cpu@,$host_cpu,;t t
22347 s,@host_vendor@,$host_vendor,;t t
22348 s,@host_os@,$host_os,;t t
22349 s,@ECHO@,$ECHO,;t t
22350 s,@AR@,$AR,;t t
22351 s,@ac_ct_AR@,$ac_ct_AR,;t t
22352 s,@RANLIB@,$RANLIB,;t t
22353 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22354 s,@CPP@,$CPP,;t t
22355 s,@CXXCPP@,$CXXCPP,;t t
22356 s,@LIBTOOL@,$LIBTOOL,;t t
22357 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22358 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22359 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22360 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22361 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22362 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22363 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
22364 s,@subdirs@,$subdirs,;t t
22365 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
22366 s,@coin_have_latex@,$coin_have_latex,;t t
22367 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
22368 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
22369 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
22370 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
22371 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
22372 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
22373 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
22374 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
22375 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
22376 s,@LIBEXT@,$LIBEXT,;t t
22377 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22378 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22379 s,@LIBOBJS@,$LIBOBJS,;t t
22380 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22381 CEOF
22382
22383 _ACEOF
22384
22385 cat >>$CONFIG_STATUS <<\_ACEOF
22386 # Split the substitutions into bite-sized pieces for seds with
22387 # small command number limits, like on Digital OSF/1 and HP-UX.
22388 ac_max_sed_lines=48
22389 ac_sed_frag=1 # Number of current file.
22390 ac_beg=1 # First line for current file.
22391 ac_end=$ac_max_sed_lines # Line after last line for current file.
22392 ac_more_lines=:
22393 ac_sed_cmds=
22394 while $ac_more_lines; do
22395 if test $ac_beg -gt 1; then
22396 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22397 else
22398 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22399 fi
22400 if test ! -s $tmp/subs.frag; then
22401 ac_more_lines=false
22402 else
22403 # The purpose of the label and of the branching condition is to
22404 # speed up the sed processing (if there are no `@' at all, there
22405 # is no need to browse any of the substitutions).
22406 # These are the two extra sed commands mentioned above.
22407 (echo ':t
22408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22409 if test -z "$ac_sed_cmds"; then
22410 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22411 else
22412 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22413 fi
22414 ac_sed_frag=`expr $ac_sed_frag + 1`
22415 ac_beg=$ac_end
22416 ac_end=`expr $ac_end + $ac_max_sed_lines`
22417 fi
22418 done
22419 if test -z "$ac_sed_cmds"; then
22420 ac_sed_cmds=cat
22421 fi
22422 fi # test -n "$CONFIG_FILES"
22423
22424 _ACEOF
22425 cat >>$CONFIG_STATUS <<\_ACEOF
22426 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22428 case $ac_file in
22429 - | *:- | *:-:* ) # input from stdin
22430 cat >$tmp/stdin
22431 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22433 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22435 * ) ac_file_in=$ac_file.in ;;
22436 esac
22437
22438 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22439 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22440 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22441 X"$ac_file" : 'X\(//\)[^/]' \| \
22442 X"$ac_file" : 'X\(//\)$' \| \
22443 X"$ac_file" : 'X\(/\)' \| \
22444 . : '\(.\)' 2>/dev/null ||
22445 echo X"$ac_file" |
22446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22448 /^X\(\/\/\)$/{ s//\1/; q; }
22449 /^X\(\/\).*/{ s//\1/; q; }
22450 s/.*/./; q'`
22451 { if $as_mkdir_p; then
22452 mkdir -p "$ac_dir"
22453 else
22454 as_dir="$ac_dir"
22455 as_dirs=
22456 while test ! -d "$as_dir"; do
22457 as_dirs="$as_dir $as_dirs"
22458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22460 X"$as_dir" : 'X\(//\)[^/]' \| \
22461 X"$as_dir" : 'X\(//\)$' \| \
22462 X"$as_dir" : 'X\(/\)' \| \
22463 . : '\(.\)' 2>/dev/null ||
22464 echo X"$as_dir" |
22465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22467 /^X\(\/\/\)$/{ s//\1/; q; }
22468 /^X\(\/\).*/{ s//\1/; q; }
22469 s/.*/./; q'`
22470 done
22471 test ! -n "$as_dirs" || mkdir $as_dirs
22472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22473 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22474 { (exit 1); exit 1; }; }; }
22475
22476 ac_builddir=.
22477
22478 if test "$ac_dir" != .; then
22479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22480 # A "../" for each directory in $ac_dir_suffix.
22481 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22482 else
22483 ac_dir_suffix= ac_top_builddir=
22484 fi
22485
22486 case $srcdir in
22487 .) # No --srcdir option. We are building in place.
22488 ac_srcdir=.
22489 if test -z "$ac_top_builddir"; then
22490 ac_top_srcdir=.
22491 else
22492 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22493 fi ;;
22494 [\\/]* | ?:[\\/]* ) # Absolute path.
22495 ac_srcdir=$srcdir$ac_dir_suffix;
22496 ac_top_srcdir=$srcdir ;;
22497 *) # Relative path.
22498 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22499 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22500 esac
22501
22502 # Do not use `cd foo && pwd` to compute absolute paths, because
22503 # the directories may not exist.
22504 case `pwd` in
22505 .) ac_abs_builddir="$ac_dir";;
22506 *)
22507 case "$ac_dir" in
22508 .) ac_abs_builddir=`pwd`;;
22509 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22510 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22511 esac;;
22512 esac
22513 case $ac_abs_builddir in
22514 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22515 *)
22516 case ${ac_top_builddir}. in
22517 .) ac_abs_top_builddir=$ac_abs_builddir;;
22518 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22519 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22520 esac;;
22521 esac
22522 case $ac_abs_builddir in
22523 .) ac_abs_srcdir=$ac_srcdir;;
22524 *)
22525 case $ac_srcdir in
22526 .) ac_abs_srcdir=$ac_abs_builddir;;
22527 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22528 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22529 esac;;
22530 esac
22531 case $ac_abs_builddir in
22532 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22533 *)
22534 case $ac_top_srcdir in
22535 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22536 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22537 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22538 esac;;
22539 esac
22540
22541
22542 case $INSTALL in
22543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22544 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22545 esac
22546
22547 if test x"$ac_file" != x-; then
22548 { echo "$as_me:$LINENO: creating $ac_file" >&5
22549 echo "$as_me: creating $ac_file" >&6;}
22550 rm -f "$ac_file"
22551 fi
22552 # Let's still pretend it is `configure' which instantiates (i.e., don't
22553 # use $as_me), people would be surprised to read:
22554 # /* config.h. Generated by config.status. */
22555 if test x"$ac_file" = x-; then
22556 configure_input=
22557 else
22558 configure_input="$ac_file. "
22559 fi
22560 configure_input=$configure_input"Generated from `echo $ac_file_in |
22561 sed 's,.*/,,'` by configure."
22562
22563 # First look for the input files in the build tree, otherwise in the
22564 # src tree.
22565 ac_file_inputs=`IFS=:
22566 for f in $ac_file_in; do
22567 case $f in
22568 -) echo $tmp/stdin ;;
22569 [\\/$]*)
22570 # Absolute (can't be DOS-style, as IFS=:)
22571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22572 echo "$as_me: error: cannot find input file: $f" >&2;}
22573 { (exit 1); exit 1; }; }
22574 echo "$f";;
22575 *) # Relative
22576 if test -f "$f"; then
22577 # Build tree
22578 echo "$f"
22579 elif test -f "$srcdir/$f"; then
22580 # Source tree
22581 echo "$srcdir/$f"
22582 else
22583 # /dev/null tree
22584 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22585 echo "$as_me: error: cannot find input file: $f" >&2;}
22586 { (exit 1); exit 1; }; }
22587 fi;;
22588 esac
22589 done` || { (exit 1); exit 1; }
22590 _ACEOF
22591 cat >>$CONFIG_STATUS <<_ACEOF
22592 sed "$ac_vpsub
22593 $extrasub
22594 _ACEOF
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22596 :t
22597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22598 s,@configure_input@,$configure_input,;t t
22599 s,@srcdir@,$ac_srcdir,;t t
22600 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22601 s,@top_srcdir@,$ac_top_srcdir,;t t
22602 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22603 s,@builddir@,$ac_builddir,;t t
22604 s,@abs_builddir@,$ac_abs_builddir,;t t
22605 s,@top_builddir@,$ac_top_builddir,;t t
22606 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22607 s,@INSTALL@,$ac_INSTALL,;t t
22608 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22609 rm -f $tmp/stdin
22610 if test x"$ac_file" != x-; then
22611 mv $tmp/out $ac_file
22612 else
22613 cat $tmp/out
22614 rm -f $tmp/out
22615 fi
22616
22617 done
22618 _ACEOF
22619 cat >>$CONFIG_STATUS <<\_ACEOF
22620
22621 #
22622 # CONFIG_COMMANDS section.
22623 #
22624 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22625 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22626 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22627 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22628 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22629 X"$ac_dest" : 'X\(//\)[^/]' \| \
22630 X"$ac_dest" : 'X\(//\)$' \| \
22631 X"$ac_dest" : 'X\(/\)' \| \
22632 . : '\(.\)' 2>/dev/null ||
22633 echo X"$ac_dest" |
22634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22636 /^X\(\/\/\)$/{ s//\1/; q; }
22637 /^X\(\/\).*/{ s//\1/; q; }
22638 s/.*/./; q'`
22639 { if $as_mkdir_p; then
22640 mkdir -p "$ac_dir"
22641 else
22642 as_dir="$ac_dir"
22643 as_dirs=
22644 while test ! -d "$as_dir"; do
22645 as_dirs="$as_dir $as_dirs"
22646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22648 X"$as_dir" : 'X\(//\)[^/]' \| \
22649 X"$as_dir" : 'X\(//\)$' \| \
22650 X"$as_dir" : 'X\(/\)' \| \
22651 . : '\(.\)' 2>/dev/null ||
22652 echo X"$as_dir" |
22653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22655 /^X\(\/\/\)$/{ s//\1/; q; }
22656 /^X\(\/\).*/{ s//\1/; q; }
22657 s/.*/./; q'`
22658 done
22659 test ! -n "$as_dirs" || mkdir $as_dirs
22660 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22662 { (exit 1); exit 1; }; }; }
22663
22664 ac_builddir=.
22665
22666 if test "$ac_dir" != .; then
22667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22668 # A "../" for each directory in $ac_dir_suffix.
22669 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22670 else
22671 ac_dir_suffix= ac_top_builddir=
22672 fi
22673
22674 case $srcdir in
22675 .) # No --srcdir option. We are building in place.
22676 ac_srcdir=.
22677 if test -z "$ac_top_builddir"; then
22678 ac_top_srcdir=.
22679 else
22680 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22681 fi ;;
22682 [\\/]* | ?:[\\/]* ) # Absolute path.
22683 ac_srcdir=$srcdir$ac_dir_suffix;
22684 ac_top_srcdir=$srcdir ;;
22685 *) # Relative path.
22686 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22687 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22688 esac
22689
22690 # Do not use `cd foo && pwd` to compute absolute paths, because
22691 # the directories may not exist.
22692 case `pwd` in
22693 .) ac_abs_builddir="$ac_dir";;
22694 *)
22695 case "$ac_dir" in
22696 .) ac_abs_builddir=`pwd`;;
22697 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22698 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22699 esac;;
22700 esac
22701 case $ac_abs_builddir in
22702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22703 *)
22704 case ${ac_top_builddir}. in
22705 .) ac_abs_top_builddir=$ac_abs_builddir;;
22706 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22707 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22708 esac;;
22709 esac
22710 case $ac_abs_builddir in
22711 .) ac_abs_srcdir=$ac_srcdir;;
22712 *)
22713 case $ac_srcdir in
22714 .) ac_abs_srcdir=$ac_abs_builddir;;
22715 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22716 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22717 esac;;
22718 esac
22719 case $ac_abs_builddir in
22720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22721 *)
22722 case $ac_top_srcdir in
22723 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22724 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22725 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22726 esac;;
22727 esac
22728
22729
22730 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22731 echo "$as_me: executing $ac_dest commands" >&6;}
22732 case $ac_dest in
22733 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22734 # Strip MF so we end up with the name of the file.
22735 mf=`echo "$mf" | sed -e 's/:.*$//'`
22736 # Check whether this is an Automake generated Makefile or not.
22737 # We used to match only the files named `Makefile.in', but
22738 # some people rename them; so instead we look at the file content.
22739 # Grep'ing the first line is not enough: some people post-process
22740 # each Makefile.in and add a new line on top of each file to say so.
22741 # So let's grep whole file.
22742 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22743 dirpart=`(dirname "$mf") 2>/dev/null ||
22744 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22745 X"$mf" : 'X\(//\)[^/]' \| \
22746 X"$mf" : 'X\(//\)$' \| \
22747 X"$mf" : 'X\(/\)' \| \
22748 . : '\(.\)' 2>/dev/null ||
22749 echo X"$mf" |
22750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22752 /^X\(\/\/\)$/{ s//\1/; q; }
22753 /^X\(\/\).*/{ s//\1/; q; }
22754 s/.*/./; q'`
22755 else
22756 continue
22757 fi
22758 # Extract the definition of DEPDIR, am__include, and am__quote
22759 # from the Makefile without running `make'.
22760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22761 test -z "$DEPDIR" && continue
22762 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22763 test -z "am__include" && continue
22764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22765 # When using ansi2knr, U may be empty or an underscore; expand it
22766 U=`sed -n 's/^U = //p' < "$mf"`
22767 # Find all dependency output files, they are included files with
22768 # $(DEPDIR) in their names. We invoke sed twice because it is the
22769 # simplest approach to changing $(DEPDIR) to its actual value in the
22770 # expansion.
22771 for file in `sed -n "
22772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22774 # Make sure the directory exists.
22775 test -f "$dirpart/$file" && continue
22776 fdir=`(dirname "$file") 2>/dev/null ||
22777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22778 X"$file" : 'X\(//\)[^/]' \| \
22779 X"$file" : 'X\(//\)$' \| \
22780 X"$file" : 'X\(/\)' \| \
22781 . : '\(.\)' 2>/dev/null ||
22782 echo X"$file" |
22783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22785 /^X\(\/\/\)$/{ s//\1/; q; }
22786 /^X\(\/\).*/{ s//\1/; q; }
22787 s/.*/./; q'`
22788 { if $as_mkdir_p; then
22789 mkdir -p $dirpart/$fdir
22790 else
22791 as_dir=$dirpart/$fdir
22792 as_dirs=
22793 while test ! -d "$as_dir"; do
22794 as_dirs="$as_dir $as_dirs"
22795 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22797 X"$as_dir" : 'X\(//\)[^/]' \| \
22798 X"$as_dir" : 'X\(//\)$' \| \
22799 X"$as_dir" : 'X\(/\)' \| \
22800 . : '\(.\)' 2>/dev/null ||
22801 echo X"$as_dir" |
22802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22804 /^X\(\/\/\)$/{ s//\1/; q; }
22805 /^X\(\/\).*/{ s//\1/; q; }
22806 s/.*/./; q'`
22807 done
22808 test ! -n "$as_dirs" || mkdir $as_dirs
22809 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22810 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22811 { (exit 1); exit 1; }; }; }
22812
22813 # echo "creating $dirpart/$file"
22814 echo '# dummy' > "$dirpart/$file"
22815 done
22816 done
22817 ;;
22818 esac
22819 done
22820 _ACEOF
22821
22822 cat >>$CONFIG_STATUS <<\_ACEOF
22823
22824 { (exit 0); exit 0; }
22825 _ACEOF
22826 chmod +x $CONFIG_STATUS
22827 ac_clean_files=$ac_clean_files_save
22828
22829
22830 # configure is writing to config.log, and then calls config.status.
22831 # config.status does its own redirection, appending to config.log.
22832 # Unfortunately, on DOS this fails, as config.log is still kept open
22833 # by configure, so config.status won't be able to write to it; its
22834 # output is simply discarded. So we exec the FD to /dev/null,
22835 # effectively closing config.log, so it can be properly (re)opened and
22836 # appended to by config.status. When coming back to configure, we
22837 # need to make the FD available again.
22838 if test "$no_create" != yes; then
22839 ac_cs_success=:
22840 ac_config_status_args=
22841 test "$silent" = yes &&
22842 ac_config_status_args="$ac_config_status_args --quiet"
22843 exec 5>/dev/null
22844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22845 exec 5>>config.log
22846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22847 # would make configure fail if this is the last instruction.
22848 $ac_cs_success || { (exit 1); exit 1; }
22849 fi
22850
22851 #
22852 # CONFIG_SUBDIRS section.
22853 #
22854 if test "$no_recursion" != yes; then
22855
22856 # Remove --cache-file and --srcdir arguments so they do not pile up.
22857 ac_sub_configure_args=
22858 ac_prev=
22859 for ac_arg in $ac_configure_args; do
22860 if test -n "$ac_prev"; then
22861 ac_prev=
22862 continue
22863 fi
22864 case $ac_arg in
22865 -cache-file | --cache-file | --cache-fil | --cache-fi \
22866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22867 ac_prev=cache_file ;;
22868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22870 | --c=*)
22871 ;;
22872 --config-cache | -C)
22873 ;;
22874 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22875 ac_prev=srcdir ;;
22876 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22877 ;;
22878 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22879 ac_prev=prefix ;;
22880 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22881 ;;
22882 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22883 esac
22884 done
22885
22886 # Always prepend --prefix to ensure using the same prefix
22887 # in subdir configurations.
22888 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22889
22890 ac_popdir=`pwd`
22891 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22892
22893 # Do not complain, so a configure script can configure whichever
22894 # parts of a large source tree are present.
22895 test -d $srcdir/$ac_dir || continue
22896
22897 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22898 echo "$as_me: configuring in $ac_dir" >&6;}
22899 { if $as_mkdir_p; then
22900 mkdir -p "$ac_dir"
22901 else
22902 as_dir="$ac_dir"
22903 as_dirs=
22904 while test ! -d "$as_dir"; do
22905 as_dirs="$as_dir $as_dirs"
22906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22908 X"$as_dir" : 'X\(//\)[^/]' \| \
22909 X"$as_dir" : 'X\(//\)$' \| \
22910 X"$as_dir" : 'X\(/\)' \| \
22911 . : '\(.\)' 2>/dev/null ||
22912 echo X"$as_dir" |
22913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22915 /^X\(\/\/\)$/{ s//\1/; q; }
22916 /^X\(\/\).*/{ s//\1/; q; }
22917 s/.*/./; q'`
22918 done
22919 test ! -n "$as_dirs" || mkdir $as_dirs
22920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22922 { (exit 1); exit 1; }; }; }
22923
22924 ac_builddir=.
22925
22926 if test "$ac_dir" != .; then
22927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22928 # A "../" for each directory in $ac_dir_suffix.
22929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22930 else
22931 ac_dir_suffix= ac_top_builddir=
22932 fi
22933
22934 case $srcdir in
22935 .) # No --srcdir option. We are building in place.
22936 ac_srcdir=.
22937 if test -z "$ac_top_builddir"; then
22938 ac_top_srcdir=.
22939 else
22940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22941 fi ;;
22942 [\\/]* | ?:[\\/]* ) # Absolute path.
22943 ac_srcdir=$srcdir$ac_dir_suffix;
22944 ac_top_srcdir=$srcdir ;;
22945 *) # Relative path.
22946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22948 esac
22949
22950 # Do not use `cd foo && pwd` to compute absolute paths, because
22951 # the directories may not exist.
22952 case `pwd` in
22953 .) ac_abs_builddir="$ac_dir";;
22954 *)
22955 case "$ac_dir" in
22956 .) ac_abs_builddir=`pwd`;;
22957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22959 esac;;
22960 esac
22961 case $ac_abs_builddir in
22962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22963 *)
22964 case ${ac_top_builddir}. in
22965 .) ac_abs_top_builddir=$ac_abs_builddir;;
22966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22968 esac;;
22969 esac
22970 case $ac_abs_builddir in
22971 .) ac_abs_srcdir=$ac_srcdir;;
22972 *)
22973 case $ac_srcdir in
22974 .) ac_abs_srcdir=$ac_abs_builddir;;
22975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22977 esac;;
22978 esac
22979 case $ac_abs_builddir in
22980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22981 *)
22982 case $ac_top_srcdir in
22983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22986 esac;;
22987 esac
22988
22989
22990 cd $ac_dir
22991
22992 # Check for guested configure; otherwise get Cygnus style configure.
22993 if test -f $ac_srcdir/configure.gnu; then
22994 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22995 elif test -f $ac_srcdir/configure; then
22996 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22997 elif test -f $ac_srcdir/configure.in; then
22998 ac_sub_configure=$ac_configure
22999 else
23000 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23002 ac_sub_configure=
23003 fi
23004
23005 # The recursion is here.
23006 if test -n "$ac_sub_configure"; then
23007 # Make the cache file name correct relative to the subdirectory.
23008 case $cache_file in
23009 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23010 *) # Relative path.
23011 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23012 esac
23013
23014 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23015 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23016 # The eval makes quoting arguments work.
23017 eval $ac_sub_configure $ac_sub_configure_args \
23018 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23019 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23020 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23021 { (exit 1); exit 1; }; }
23022 fi
23023
23024 cd $ac_popdir
23025 done
23026 fi
23027
23028
23029 if test x"$coin_vpath_link_files" = x; then : ; else
23030 lnkcmd="$coin_link_input_cmd"
23031 if test "$lnkcmd" = cp; then
23032 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23033 echo "$as_me: Copying data files for VPATH configuration" >&6;}
23034 else
23035 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23036 echo "$as_me: Creating VPATH links for data files" >&6;}
23037 fi
23038 for file in $coin_vpath_link_files; do
23039 dir=`(dirname "./$file") 2>/dev/null ||
23040 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23041 X"./$file" : 'X\(//\)[^/]' \| \
23042 X"./$file" : 'X\(//\)$' \| \
23043 X"./$file" : 'X\(/\)' \| \
23044 . : '\(.\)' 2>/dev/null ||
23045 echo X"./$file" |
23046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23048 /^X\(\/\/\)$/{ s//\1/; q; }
23049 /^X\(\/\).*/{ s//\1/; q; }
23050 s/.*/./; q'`
23051 if test -d $dir; then : ; else
23052 { if $as_mkdir_p; then
23053 mkdir -p $dir
23054 else
23055 as_dir=$dir
23056 as_dirs=
23057 while test ! -d "$as_dir"; do
23058 as_dirs="$as_dir $as_dirs"
23059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23061 X"$as_dir" : 'X\(//\)[^/]' \| \
23062 X"$as_dir" : 'X\(//\)$' \| \
23063 X"$as_dir" : 'X\(/\)' \| \
23064 . : '\(.\)' 2>/dev/null ||
23065 echo X"$as_dir" |
23066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23068 /^X\(\/\/\)$/{ s//\1/; q; }
23069 /^X\(\/\).*/{ s//\1/; q; }
23070 s/.*/./; q'`
23071 done
23072 test ! -n "$as_dirs" || mkdir $as_dirs
23073 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23074 echo "$as_me: error: cannot create directory $dir" >&2;}
23075 { (exit 1); exit 1; }; }; }
23076
23077 fi
23078 rm -f $file
23079 $lnkcmd $abs_source_dir/$file $file
23080 done
23081 fi
23082
23083 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23084 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23085 if test x$coin_projectdir = xyes; then
23086 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23087 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23088 else
23089 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23090 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23091 fi
23092 else
23093 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23094 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23095 fi
23096
23097