Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac 1.3.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Bonmin 1.8.9.
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='Bonmin'
432 PACKAGE_TARNAME='bonmin'
433 PACKAGE_VERSION='1.8.9'
434 PACKAGE_STRING='Bonmin 1.8.9'
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 ThirdParty/Blas"
477 ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478 ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
479 ac_subdirs_all="$ac_subdirs_all ThirdParty/FilterSQP"
480 ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
481 ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482 ac_subdirs_all="$ac_subdirs_all ThirdParty/HSL"
483 ac_subdirs_all="$ac_subdirs_all Data/Sample"
484 ac_subdirs_all="$ac_subdirs_all CoinUtils"
485 ac_subdirs_all="$ac_subdirs_all Osi"
486 ac_subdirs_all="$ac_subdirs_all Clp"
487 ac_subdirs_all="$ac_subdirs_all Cgl"
488 ac_subdirs_all="$ac_subdirs_all Cbc"
489 ac_subdirs_all="$ac_subdirs_all Bcp"
490 ac_subdirs_all="$ac_subdirs_all Ipopt"
491 ac_subdirs_all="$ac_subdirs_all Bonmin"
492 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 dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
493 ac_subst_files=''
494
495 # Initialize some variables set by options.
496 ac_init_help=
497 ac_init_version=false
498 # The variables have the same names as the options, with
499 # dashes changed to underlines.
500 cache_file=/dev/null
501 exec_prefix=NONE
502 no_create=
503 no_recursion=
504 prefix=NONE
505 program_prefix=NONE
506 program_suffix=NONE
507 program_transform_name=s,x,x,
508 silent=
509 site=
510 srcdir=
511 verbose=
512 x_includes=NONE
513 x_libraries=NONE
514
515 # Installation directory options.
516 # These are left unexpanded so users can "make install exec_prefix=/foo"
517 # and all the variables that are supposed to be based on exec_prefix
518 # by default will actually change.
519 # Use braces instead of parens because sh, perl, etc. also accept them.
520 bindir='${exec_prefix}/bin'
521 sbindir='${exec_prefix}/sbin'
522 libexecdir='${exec_prefix}/libexec'
523 datadir='${prefix}/share'
524 sysconfdir='${prefix}/etc'
525 sharedstatedir='${prefix}/com'
526 localstatedir='${prefix}/var'
527 libdir='${exec_prefix}/lib'
528 includedir='${prefix}/include'
529 oldincludedir='/usr/include'
530 infodir='${prefix}/info'
531 mandir='${prefix}/man'
532
533 ac_prev=
534 for ac_option
535 do
536 # If the previous option needs an argument, assign it.
537 if test -n "$ac_prev"; then
538 eval "$ac_prev=\$ac_option"
539 ac_prev=
540 continue
541 fi
542
543 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545 # Accept the important Cygnus configure options, so we can diagnose typos.
546
547 case $ac_option in
548
549 -bindir | --bindir | --bindi | --bind | --bin | --bi)
550 ac_prev=bindir ;;
551 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552 bindir=$ac_optarg ;;
553
554 -build | --build | --buil | --bui | --bu)
555 ac_prev=build_alias ;;
556 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557 build_alias=$ac_optarg ;;
558
559 -cache-file | --cache-file | --cache-fil | --cache-fi \
560 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561 ac_prev=cache_file ;;
562 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564 cache_file=$ac_optarg ;;
565
566 --config-cache | -C)
567 cache_file=config.cache ;;
568
569 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570 ac_prev=datadir ;;
571 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572 | --da=*)
573 datadir=$ac_optarg ;;
574
575 -disable-* | --disable-*)
576 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577 # Reject names that are not valid shell variable names.
578 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580 { (exit 1); exit 1; }; }
581 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582 eval "enable_$ac_feature=no" ;;
583
584 -enable-* | --enable-*)
585 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589 { (exit 1); exit 1; }; }
590 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591 case $ac_option in
592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 *) ac_optarg=yes ;;
594 esac
595 eval "enable_$ac_feature='$ac_optarg'" ;;
596
597 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599 | --exec | --exe | --ex)
600 ac_prev=exec_prefix ;;
601 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603 | --exec=* | --exe=* | --ex=*)
604 exec_prefix=$ac_optarg ;;
605
606 -gas | --gas | --ga | --g)
607 # Obsolete; use --with-gas.
608 with_gas=yes ;;
609
610 -help | --help | --hel | --he | -h)
611 ac_init_help=long ;;
612 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613 ac_init_help=recursive ;;
614 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615 ac_init_help=short ;;
616
617 -host | --host | --hos | --ho)
618 ac_prev=host_alias ;;
619 -host=* | --host=* | --hos=* | --ho=*)
620 host_alias=$ac_optarg ;;
621
622 -includedir | --includedir | --includedi | --included | --include \
623 | --includ | --inclu | --incl | --inc)
624 ac_prev=includedir ;;
625 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626 | --includ=* | --inclu=* | --incl=* | --inc=*)
627 includedir=$ac_optarg ;;
628
629 -infodir | --infodir | --infodi | --infod | --info | --inf)
630 ac_prev=infodir ;;
631 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632 infodir=$ac_optarg ;;
633
634 -libdir | --libdir | --libdi | --libd)
635 ac_prev=libdir ;;
636 -libdir=* | --libdir=* | --libdi=* | --libd=*)
637 libdir=$ac_optarg ;;
638
639 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640 | --libexe | --libex | --libe)
641 ac_prev=libexecdir ;;
642 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643 | --libexe=* | --libex=* | --libe=*)
644 libexecdir=$ac_optarg ;;
645
646 -localstatedir | --localstatedir | --localstatedi | --localstated \
647 | --localstate | --localstat | --localsta | --localst \
648 | --locals | --local | --loca | --loc | --lo)
649 ac_prev=localstatedir ;;
650 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653 localstatedir=$ac_optarg ;;
654
655 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656 ac_prev=mandir ;;
657 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658 mandir=$ac_optarg ;;
659
660 -nfp | --nfp | --nf)
661 # Obsolete; use --without-fp.
662 with_fp=no ;;
663
664 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665 | --no-cr | --no-c | -n)
666 no_create=yes ;;
667
668 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670 no_recursion=yes ;;
671
672 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674 | --oldin | --oldi | --old | --ol | --o)
675 ac_prev=oldincludedir ;;
676 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679 oldincludedir=$ac_optarg ;;
680
681 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682 ac_prev=prefix ;;
683 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684 prefix=$ac_optarg ;;
685
686 -program-prefix | --program-prefix | --program-prefi | --program-pref \
687 | --program-pre | --program-pr | --program-p)
688 ac_prev=program_prefix ;;
689 -program-prefix=* | --program-prefix=* | --program-prefi=* \
690 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691 program_prefix=$ac_optarg ;;
692
693 -program-suffix | --program-suffix | --program-suffi | --program-suff \
694 | --program-suf | --program-su | --program-s)
695 ac_prev=program_suffix ;;
696 -program-suffix=* | --program-suffix=* | --program-suffi=* \
697 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698 program_suffix=$ac_optarg ;;
699
700 -program-transform-name | --program-transform-name \
701 | --program-transform-nam | --program-transform-na \
702 | --program-transform-n | --program-transform- \
703 | --program-transform | --program-transfor \
704 | --program-transfo | --program-transf \
705 | --program-trans | --program-tran \
706 | --progr-tra | --program-tr | --program-t)
707 ac_prev=program_transform_name ;;
708 -program-transform-name=* | --program-transform-name=* \
709 | --program-transform-nam=* | --program-transform-na=* \
710 | --program-transform-n=* | --program-transform-=* \
711 | --program-transform=* | --program-transfor=* \
712 | --program-transfo=* | --program-transf=* \
713 | --program-trans=* | --program-tran=* \
714 | --progr-tra=* | --program-tr=* | --program-t=*)
715 program_transform_name=$ac_optarg ;;
716
717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718 | -silent | --silent | --silen | --sile | --sil)
719 silent=yes ;;
720
721 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722 ac_prev=sbindir ;;
723 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724 | --sbi=* | --sb=*)
725 sbindir=$ac_optarg ;;
726
727 -sharedstatedir | --sharedstatedir | --sharedstatedi \
728 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729 | --sharedst | --shareds | --shared | --share | --shar \
730 | --sha | --sh)
731 ac_prev=sharedstatedir ;;
732 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735 | --sha=* | --sh=*)
736 sharedstatedir=$ac_optarg ;;
737
738 -site | --site | --sit)
739 ac_prev=site ;;
740 -site=* | --site=* | --sit=*)
741 site=$ac_optarg ;;
742
743 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744 ac_prev=srcdir ;;
745 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746 srcdir=$ac_optarg ;;
747
748 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749 | --syscon | --sysco | --sysc | --sys | --sy)
750 ac_prev=sysconfdir ;;
751 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753 sysconfdir=$ac_optarg ;;
754
755 -target | --target | --targe | --targ | --tar | --ta | --t)
756 ac_prev=target_alias ;;
757 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758 target_alias=$ac_optarg ;;
759
760 -v | -verbose | --verbose | --verbos | --verbo | --verb)
761 verbose=yes ;;
762
763 -version | --version | --versio | --versi | --vers | -V)
764 ac_init_version=: ;;
765
766 -with-* | --with-*)
767 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package| sed 's/-/_/g'`
773 case $ac_option in
774 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775 *) ac_optarg=yes ;;
776 esac
777 eval "with_$ac_package='$ac_optarg'" ;;
778
779 -without-* | --without-*)
780 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid package name: $ac_package" >&2
784 { (exit 1); exit 1; }; }
785 ac_package=`echo $ac_package | sed 's/-/_/g'`
786 eval "with_$ac_package=no" ;;
787
788 --x)
789 # Obsolete; use --with-x.
790 with_x=yes ;;
791
792 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793 | --x-incl | --x-inc | --x-in | --x-i)
794 ac_prev=x_includes ;;
795 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797 x_includes=$ac_optarg ;;
798
799 -x-libraries | --x-libraries | --x-librarie | --x-librari \
800 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801 ac_prev=x_libraries ;;
802 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804 x_libraries=$ac_optarg ;;
805
806 -*) { echo "$as_me: error: unrecognized option: $ac_option
807 Try \`$0 --help' for more information." >&2
808 { (exit 1); exit 1; }; }
809 ;;
810
811 *=*)
812 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816 { (exit 1); exit 1; }; }
817 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818 eval "$ac_envvar='$ac_optarg'"
819 export $ac_envvar ;;
820
821 *)
822 # FIXME: should be removed in autoconf 3.0.
823 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827 ;;
828
829 esac
830 done
831
832 if test -n "$ac_prev"; then
833 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834 { echo "$as_me: error: missing argument to $ac_option" >&2
835 { (exit 1); exit 1; }; }
836 fi
837
838 # Be sure to have absolute paths.
839 for ac_var in exec_prefix prefix
840 do
841 eval ac_val=$`echo $ac_var`
842 case $ac_val in
843 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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 # Be sure to have absolute paths.
850 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851 localstatedir libdir includedir oldincludedir infodir mandir
852 do
853 eval ac_val=$`echo $ac_var`
854 case $ac_val in
855 [\\/$]* | ?:[\\/]* ) ;;
856 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857 { (exit 1); exit 1; }; };;
858 esac
859 done
860
861 # There might be people who depend on the old broken behavior: `$host'
862 # used to hold the argument of --host etc.
863 # FIXME: To remove some day.
864 build=$build_alias
865 host=$host_alias
866 target=$target_alias
867
868 # FIXME: To remove some day.
869 if test "x$host_alias" != x; then
870 if test "x$build_alias" = x; then
871 cross_compiling=maybe
872 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873 If a cross compiler is detected then cross compile mode will be used." >&2
874 elif test "x$build_alias" != "x$host_alias"; then
875 cross_compiling=yes
876 fi
877 fi
878
879 ac_tool_prefix=
880 test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882 test "$silent" = yes && exec 6>/dev/null
883
884
885 # Find the source files, if location was not specified.
886 if test -z "$srcdir"; then
887 ac_srcdir_defaulted=yes
888 # Try the directory containing this script, then its parent.
889 ac_confdir=`(dirname "$0") 2>/dev/null ||
890 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891 X"$0" : 'X\(//\)[^/]' \| \
892 X"$0" : 'X\(//\)$' \| \
893 X"$0" : 'X\(/\)' \| \
894 . : '\(.\)' 2>/dev/null ||
895 echo X"$0" |
896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898 /^X\(\/\/\)$/{ s//\1/; q; }
899 /^X\(\/\).*/{ s//\1/; q; }
900 s/.*/./; q'`
901 srcdir=$ac_confdir
902 if test ! -r $srcdir/$ac_unique_file; then
903 srcdir=..
904 fi
905 else
906 ac_srcdir_defaulted=no
907 fi
908 if test ! -r $srcdir/$ac_unique_file; then
909 if test "$ac_srcdir_defaulted" = yes; then
910 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911 { (exit 1); exit 1; }; }
912 else
913 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914 { (exit 1); exit 1; }; }
915 fi
916 fi
917 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919 { (exit 1); exit 1; }; }
920 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921 ac_env_build_alias_set=${build_alias+set}
922 ac_env_build_alias_value=$build_alias
923 ac_cv_env_build_alias_set=${build_alias+set}
924 ac_cv_env_build_alias_value=$build_alias
925 ac_env_host_alias_set=${host_alias+set}
926 ac_env_host_alias_value=$host_alias
927 ac_cv_env_host_alias_set=${host_alias+set}
928 ac_cv_env_host_alias_value=$host_alias
929 ac_env_target_alias_set=${target_alias+set}
930 ac_env_target_alias_value=$target_alias
931 ac_cv_env_target_alias_set=${target_alias+set}
932 ac_cv_env_target_alias_value=$target_alias
933 ac_env_CDEFS_set=${CDEFS+set}
934 ac_env_CDEFS_value=$CDEFS
935 ac_cv_env_CDEFS_set=${CDEFS+set}
936 ac_cv_env_CDEFS_value=$CDEFS
937 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949 ac_env_CC_set=${CC+set}
950 ac_env_CC_value=$CC
951 ac_cv_env_CC_set=${CC+set}
952 ac_cv_env_CC_value=$CC
953 ac_env_CFLAGS_set=${CFLAGS+set}
954 ac_env_CFLAGS_value=$CFLAGS
955 ac_cv_env_CFLAGS_set=${CFLAGS+set}
956 ac_cv_env_CFLAGS_value=$CFLAGS
957 ac_env_LDFLAGS_set=${LDFLAGS+set}
958 ac_env_LDFLAGS_value=$LDFLAGS
959 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960 ac_cv_env_LDFLAGS_value=$LDFLAGS
961 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962 ac_env_CPPFLAGS_value=$CPPFLAGS
963 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965 ac_env_MPICC_set=${MPICC+set}
966 ac_env_MPICC_value=$MPICC
967 ac_cv_env_MPICC_set=${MPICC+set}
968 ac_cv_env_MPICC_value=$MPICC
969 ac_env_CXXDEFS_set=${CXXDEFS+set}
970 ac_env_CXXDEFS_value=$CXXDEFS
971 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972 ac_cv_env_CXXDEFS_value=$CXXDEFS
973 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985 ac_env_CXX_set=${CXX+set}
986 ac_env_CXX_value=$CXX
987 ac_cv_env_CXX_set=${CXX+set}
988 ac_cv_env_CXX_value=$CXX
989 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990 ac_env_CXXFLAGS_value=$CXXFLAGS
991 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993 ac_env_MPICXX_set=${MPICXX+set}
994 ac_env_MPICXX_value=$MPICXX
995 ac_cv_env_MPICXX_set=${MPICXX+set}
996 ac_cv_env_MPICXX_value=$MPICXX
997 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009 ac_env_F77_set=${F77+set}
1010 ac_env_F77_value=$F77
1011 ac_cv_env_F77_set=${F77+set}
1012 ac_cv_env_F77_value=$F77
1013 ac_env_FFLAGS_set=${FFLAGS+set}
1014 ac_env_FFLAGS_value=$FFLAGS
1015 ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016 ac_cv_env_FFLAGS_value=$FFLAGS
1017 ac_env_MPIF77_set=${MPIF77+set}
1018 ac_env_MPIF77_value=$MPIF77
1019 ac_cv_env_MPIF77_set=${MPIF77+set}
1020 ac_cv_env_MPIF77_value=$MPIF77
1021 ac_env_CPP_set=${CPP+set}
1022 ac_env_CPP_value=$CPP
1023 ac_cv_env_CPP_set=${CPP+set}
1024 ac_cv_env_CPP_value=$CPP
1025 ac_env_CXXCPP_set=${CXXCPP+set}
1026 ac_env_CXXCPP_value=$CXXCPP
1027 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028 ac_cv_env_CXXCPP_value=$CXXCPP
1029 ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1030 ac_env_LT_LDFLAGS_value=$LT_LDFLAGS
1031 ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1032 ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS
1033 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1034 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1035 ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1036 ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1037
1038 #
1039 # Report the --help message.
1040 #
1041 if test "$ac_init_help" = "long"; then
1042 # Omit some internal or obsolete options to make the list less imposing.
1043 # This message is too long to be a string in the A/UX 3.1 sh.
1044 cat <<_ACEOF
1045 \`configure' configures Bonmin 1.8.9 to adapt to many kinds of systems.
1046
1047 Usage: $0 [OPTION]... [VAR=VALUE]...
1048
1049 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1050 VAR=VALUE. See below for descriptions of some of the useful variables.
1051
1052 Defaults for the options are specified in brackets.
1053
1054 Configuration:
1055 -h, --help display this help and exit
1056 --help=short display options specific to this package
1057 --help=recursive display the short help of all the included packages
1058 -V, --version display version information and exit
1059 -q, --quiet, --silent do not print \`checking...' messages
1060 --cache-file=FILE cache test results in FILE [disabled]
1061 -C, --config-cache alias for \`--cache-file=config.cache'
1062 -n, --no-create do not create output files
1063 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1064
1065 _ACEOF
1066
1067 cat <<_ACEOF
1068 Installation directories:
1069 --prefix=PREFIX install architecture-independent files in PREFIX
1070 [$ac_default_prefix]
1071 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1072 [PREFIX]
1073
1074 By default, \`make install' will install all the files in
1075 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1076 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1077 for instance \`--prefix=\$HOME'.
1078
1079 For better control, use the options below.
1080
1081 Fine tuning of the installation directories:
1082 --bindir=DIR user executables [EPREFIX/bin]
1083 --sbindir=DIR system admin executables [EPREFIX/sbin]
1084 --libexecdir=DIR program executables [EPREFIX/libexec]
1085 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1086 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1087 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1088 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1089 --libdir=DIR object code libraries [EPREFIX/lib]
1090 --includedir=DIR C header files [PREFIX/include]
1091 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1092 --infodir=DIR info documentation [PREFIX/info]
1093 --mandir=DIR man documentation [PREFIX/man]
1094 _ACEOF
1095
1096 cat <<\_ACEOF
1097
1098 Program names:
1099 --program-prefix=PREFIX prepend PREFIX to installed program names
1100 --program-suffix=SUFFIX append SUFFIX to installed program names
1101 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1102
1103 System types:
1104 --build=BUILD configure for building on BUILD [guessed]
1105 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1106 _ACEOF
1107 fi
1108
1109 if test -n "$ac_init_help"; then
1110 case $ac_init_help in
1111 short | recursive ) echo "Configuration of Bonmin 1.8.9:";;
1112 esac
1113 cat <<\_ACEOF
1114
1115 Optional Features:
1116 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1117 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1118 --enable-debug compile all projects with debug options tests
1119 (implies --disable-shared)
1120
1121 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1122 --enable-static[=PKGS]
1123 build static libraries [default=no]
1124 --disable-dependency-tracking speeds up one-time build
1125 --enable-dependency-tracking do not reject slow dependency extractors
1126 --enable-maintainer-mode enable make rules and dependencies not useful
1127 (and sometimes confusing) to the casual installer
1128 --enable-shared[=PKGS]
1129 build shared libraries [default=yes]
1130 --enable-fast-install[=PKGS]
1131 optimize for fast installation [default=yes]
1132 --disable-libtool-lock avoid locking (might break parallel builds)
1133 --disable-dependency-linking
1134 disable linking library dependencies into shared
1135 libraries
1136
1137 Optional Packages:
1138 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1139 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1140 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1141 --with-pic try to use only PIC/non-PIC objects [default=use
1142 both]
1143 --with-tags[=TAGS]
1144 include additional configurations [automatic]
1145
1146 --with-blas-lib linker flags for using project Blas
1147 --with-blas-incdir directory with header files for using project Blas
1148 --with-blas-datadir directory with data files for using project Blas
1149 --with-blas specify BLAS library (or BUILD to enforce use of
1150 ThirdParty/Blas)
1151 --with-lapack-lib linker flags for using project Lapack
1152 --with-lapack-incdir directory with header files for using project Lapack
1153 --with-lapack-datadir directory with data files for using project Lapack
1154 --with-lapack specify LAPACK library (or BUILD to enforce use of
1155 ThirdParty/Lapack)
1156 --with-asl-lib linker flags for using project ASL
1157 --with-asl-incdir directory with header files for using project ASL
1158 --with-asl-datadir directory with data files for using project ASL
1159 --with-filtersqp-lib linker flags for using project FilterSQP
1160 --with-filtersqp-incdir directory with header files for using project
1161 FilterSQP
1162 --with-filtersqp-datadir
1163 directory with data files for using project
1164 FilterSQP
1165 --with-metis-lib linker flags for using project Metis
1166 --with-metis-incdir directory with header files for using project Metis
1167 --with-metis-datadir directory with data files for using project Metis
1168 --with-mumps-lib linker flags for using project Mumps
1169 --with-mumps-incdir directory with header files for using project Mumps
1170 --with-mumps-datadir directory with data files for using project Mumps
1171 --with-hsl-lib linker flags for using project HSL
1172 --with-hsl-incdir directory with header files for using project HSL
1173 --with-hsl-datadir directory with data files for using project HSL
1174 --with-sample-lib linker flags for using project Sample
1175 --with-sample-incdir directory with header files for using project Sample
1176 --with-sample-datadir directory with data files for using project Sample
1177 --with-coinutils-lib linker flags for using project CoinUtils
1178 --with-coinutils-incdir directory with header files for using project
1179 CoinUtils
1180 --with-coinutils-datadir
1181 directory with data files for using project
1182 CoinUtils
1183 --with-osi-lib linker flags for using project Osi
1184 --with-osi-incdir directory with header files for using project Osi
1185 --with-osi-datadir directory with data files for using project Osi
1186 --with-clp-lib linker flags for using project Clp
1187 --with-clp-incdir directory with header files for using project Clp
1188 --with-clp-datadir directory with data files for using project Clp
1189 --with-cgl-lib linker flags for using project Cgl
1190 --with-cgl-incdir directory with header files for using project Cgl
1191 --with-cgl-datadir directory with data files for using project Cgl
1192 --with-cbc-lib linker flags for using project Cbc
1193 --with-cbc-incdir directory with header files for using project Cbc
1194 --with-cbc-datadir directory with data files for using project Cbc
1195 --with-bcp-lib linker flags for using project Bcp
1196 --with-bcp-incdir directory with header files for using project Bcp
1197 --with-bcp-datadir directory with data files for using project Bcp
1198 --with-ipopt-lib linker flags for using project Ipopt
1199 --with-ipopt-incdir directory with header files for using project Ipopt
1200 --with-ipopt-datadir directory with data files for using project Ipopt
1201 --with-bonmin-lib linker flags for using project Bonmin
1202 --with-bonmin-incdir directory with header files for using project Bonmin
1203 --with-bonmin-datadir directory with data files for using project Bonmin
1204
1205 Some influential environment variables:
1206 CDEFS Additional -D flags to be used when compiling C code.
1207 ADD_CFLAGS Additional C compiler options
1208 DBG_CFLAGS Debug C compiler options
1209 OPT_CFLAGS Optimize C compiler options
1210 CC C compiler command
1211 CFLAGS C compiler flags
1212 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1213 nonstandard directory <lib dir>
1214 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1215 headers in a nonstandard directory <include dir>
1216 MPICC C MPI Compiler
1217 CXXDEFS Additional -D flags to be used when compiling C++ code.
1218 ADD_CXXFLAGS
1219 Additional C++ compiler options
1220 DBG_CXXFLAGS
1221 Debug C++ compiler options
1222 OPT_CXXFLAGS
1223 Optimize C++ compiler options
1224 CXX C++ compiler command
1225 CXXFLAGS C++ compiler flags
1226 MPICXX C++ MPI Compiler
1227 ADD_FFLAGS Additional Fortran compiler options
1228 DBG_FFLAGS Debug Fortran compiler options
1229 OPT_FFLAGS Optimize Fortran compiler options
1230 F77 Fortran 77 compiler command
1231 FFLAGS Fortran 77 compiler flags
1232 MPIF77 Fortran MPI Compiler
1233 CPP C preprocessor
1234 CXXCPP C++ preprocessor
1235 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1236 that are installed
1237 COIN_SKIP_PROJECTS
1238 Set to the subdirectories of projects that should be skipped in
1239 the configuration
1240
1241 Use these variables to override the choices made by `configure' or to help
1242 it to find libraries and programs with nonstandard names/locations.
1243
1244 Report bugs to <[email protected]>.
1245 _ACEOF
1246 fi
1247
1248 if test "$ac_init_help" = "recursive"; then
1249 # If there are subdirs, report their specific --help.
1250 ac_popdir=`pwd`
1251 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1252 test -d $ac_dir || continue
1253 ac_builddir=.
1254
1255 if test "$ac_dir" != .; then
1256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1257 # A "../" for each directory in $ac_dir_suffix.
1258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1259 else
1260 ac_dir_suffix= ac_top_builddir=
1261 fi
1262
1263 case $srcdir in
1264 .) # No --srcdir option. We are building in place.
1265 ac_srcdir=.
1266 if test -z "$ac_top_builddir"; then
1267 ac_top_srcdir=.
1268 else
1269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1270 fi ;;
1271 [\\/]* | ?:[\\/]* ) # Absolute path.
1272 ac_srcdir=$srcdir$ac_dir_suffix;
1273 ac_top_srcdir=$srcdir ;;
1274 *) # Relative path.
1275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1277 esac
1278
1279 # Do not use `cd foo && pwd` to compute absolute paths, because
1280 # the directories may not exist.
1281 case `pwd` in
1282 .) ac_abs_builddir="$ac_dir";;
1283 *)
1284 case "$ac_dir" in
1285 .) ac_abs_builddir=`pwd`;;
1286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1288 esac;;
1289 esac
1290 case $ac_abs_builddir in
1291 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1292 *)
1293 case ${ac_top_builddir}. in
1294 .) ac_abs_top_builddir=$ac_abs_builddir;;
1295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1297 esac;;
1298 esac
1299 case $ac_abs_builddir in
1300 .) ac_abs_srcdir=$ac_srcdir;;
1301 *)
1302 case $ac_srcdir in
1303 .) ac_abs_srcdir=$ac_abs_builddir;;
1304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1306 esac;;
1307 esac
1308 case $ac_abs_builddir in
1309 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1310 *)
1311 case $ac_top_srcdir in
1312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1315 esac;;
1316 esac
1317
1318 cd $ac_dir
1319 # Check for guested configure; otherwise get Cygnus style configure.
1320 if test -f $ac_srcdir/configure.gnu; then
1321 echo
1322 $SHELL $ac_srcdir/configure.gnu --help=recursive
1323 elif test -f $ac_srcdir/configure; then
1324 echo
1325 $SHELL $ac_srcdir/configure --help=recursive
1326 elif test -f $ac_srcdir/configure.ac ||
1327 test -f $ac_srcdir/configure.in; then
1328 echo
1329 $ac_configure --help
1330 else
1331 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1332 fi
1333 cd $ac_popdir
1334 done
1335 fi
1336
1337 test -n "$ac_init_help" && exit 0
1338 if $ac_init_version; then
1339 cat <<\_ACEOF
1340 Bonmin configure 1.8.9
1341 generated by GNU Autoconf 2.59
1342
1343 Copyright (C) 2003 Free Software Foundation, Inc.
1344 This configure script is free software; the Free Software Foundation
1345 gives unlimited permission to copy, distribute and modify it.
1346
1347
1348 Copyright 2006 International Business Machines and others.
1349 All Rights Reserved.
1350 This file is part of the open source package Coin which is distributed
1351 under the Eclipse Public License.
1352 _ACEOF
1353 exit 0
1354 fi
1355 exec 5>config.log
1356 cat >&5 <<_ACEOF
1357 This file contains any messages produced by compilers while
1358 running configure, to aid debugging if configure makes a mistake.
1359
1360 It was created by Bonmin $as_me 1.8.9, which was
1361 generated by GNU Autoconf 2.59. Invocation command line was
1362
1363 $ $0 $@
1364
1365 _ACEOF
1366 {
1367 cat <<_ASUNAME
1368 ## --------- ##
1369 ## Platform. ##
1370 ## --------- ##
1371
1372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1377
1378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1380
1381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1384 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1388
1389 _ASUNAME
1390
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394 IFS=$as_save_IFS
1395 test -z "$as_dir" && as_dir=.
1396 echo "PATH: $as_dir"
1397 done
1398
1399 } >&5
1400
1401 cat >&5 <<_ACEOF
1402
1403
1404 ## ----------- ##
1405 ## Core tests. ##
1406 ## ----------- ##
1407
1408 _ACEOF
1409
1410
1411 # Keep a trace of the command line.
1412 # Strip out --no-create and --no-recursion so they do not pile up.
1413 # Strip out --silent because we don't want to record it for future runs.
1414 # Also quote any args containing shell meta-characters.
1415 # Make two passes to allow for proper duplicate-argument suppression.
1416 ac_configure_args=
1417 ac_configure_args0=
1418 ac_configure_args1=
1419 ac_sep=
1420 ac_must_keep_next=false
1421 for ac_pass in 1 2
1422 do
1423 for ac_arg
1424 do
1425 case $ac_arg in
1426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1428 | -silent | --silent | --silen | --sile | --sil)
1429 continue ;;
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 esac
1433 case $ac_pass in
1434 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1435 2)
1436 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1437 if test $ac_must_keep_next = true; then
1438 ac_must_keep_next=false # Got value, back to normal.
1439 else
1440 case $ac_arg in
1441 *=* | --config-cache | -C | -disable-* | --disable-* \
1442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1444 | -with-* | --with-* | -without-* | --without-* | --x)
1445 case "$ac_configure_args0 " in
1446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1447 esac
1448 ;;
1449 -* ) ac_must_keep_next=true ;;
1450 esac
1451 fi
1452 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1453 # Get rid of the leading space.
1454 ac_sep=" "
1455 ;;
1456 esac
1457 done
1458 done
1459 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1460 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1461
1462 # When interrupted or exit'd, cleanup temporary files, and complete
1463 # config.log. We remove comments because anyway the quotes in there
1464 # would cause problems or look ugly.
1465 # WARNING: Be sure not to use single quotes in there, as some shells,
1466 # such as our DU 5.0 friend, will then `close' the trap.
1467 trap 'exit_status=$?
1468 # Save into config.log some information that might help in debugging.
1469 {
1470 echo
1471
1472 cat <<\_ASBOX
1473 ## ---------------- ##
1474 ## Cache variables. ##
1475 ## ---------------- ##
1476 _ASBOX
1477 echo
1478 # The following way of writing the cache mishandles newlines in values,
1479 {
1480 (set) 2>&1 |
1481 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1482 *ac_space=\ *)
1483 sed -n \
1484 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1486 ;;
1487 *)
1488 sed -n \
1489 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1490 ;;
1491 esac;
1492 }
1493 echo
1494
1495 cat <<\_ASBOX
1496 ## ----------------- ##
1497 ## Output variables. ##
1498 ## ----------------- ##
1499 _ASBOX
1500 echo
1501 for ac_var in $ac_subst_vars
1502 do
1503 eval ac_val=$`echo $ac_var`
1504 echo "$ac_var='"'"'$ac_val'"'"'"
1505 done | sort
1506 echo
1507
1508 if test -n "$ac_subst_files"; then
1509 cat <<\_ASBOX
1510 ## ------------- ##
1511 ## Output files. ##
1512 ## ------------- ##
1513 _ASBOX
1514 echo
1515 for ac_var in $ac_subst_files
1516 do
1517 eval ac_val=$`echo $ac_var`
1518 echo "$ac_var='"'"'$ac_val'"'"'"
1519 done | sort
1520 echo
1521 fi
1522
1523 if test -s confdefs.h; then
1524 cat <<\_ASBOX
1525 ## ----------- ##
1526 ## confdefs.h. ##
1527 ## ----------- ##
1528 _ASBOX
1529 echo
1530 sed "/^$/d" confdefs.h | sort
1531 echo
1532 fi
1533 test "$ac_signal" != 0 &&
1534 echo "$as_me: caught signal $ac_signal"
1535 echo "$as_me: exit $exit_status"
1536 } >&5
1537 rm -f core *.core &&
1538 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1539 exit $exit_status
1540 ' 0
1541 for ac_signal in 1 2 13 15; do
1542 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1543 done
1544 ac_signal=0
1545
1546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1547 rm -rf conftest* confdefs.h
1548 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1549 echo >confdefs.h
1550
1551 # Predefined preprocessor variables.
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_NAME "$PACKAGE_NAME"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1565 _ACEOF
1566
1567
1568 cat >>confdefs.h <<_ACEOF
1569 #define PACKAGE_STRING "$PACKAGE_STRING"
1570 _ACEOF
1571
1572
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1575 _ACEOF
1576
1577
1578 # Let the site file select an alternate cache file if it wants to.
1579 # Prefer explicitly selected file to automatically selected ones.
1580 if test -z "$CONFIG_SITE"; then
1581 if test "x$prefix" != xNONE; then
1582 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1583 else
1584 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1585 fi
1586 fi
1587 for ac_site_file in $CONFIG_SITE; do
1588 if test -r "$ac_site_file"; then
1589 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1590 echo "$as_me: loading site script $ac_site_file" >&6;}
1591 sed 's/^/| /' "$ac_site_file" >&5
1592 . "$ac_site_file"
1593 fi
1594 done
1595
1596 if test -r "$cache_file"; then
1597 # Some versions of bash will fail to source /dev/null (special
1598 # files actually), so we avoid doing that.
1599 if test -f "$cache_file"; then
1600 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1601 echo "$as_me: loading cache $cache_file" >&6;}
1602 case $cache_file in
1603 [\\/]* | ?:[\\/]* ) . $cache_file;;
1604 *) . ./$cache_file;;
1605 esac
1606 fi
1607 else
1608 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1609 echo "$as_me: creating cache $cache_file" >&6;}
1610 >$cache_file
1611 fi
1612
1613 # Check that the precious variables saved in the cache have kept the same
1614 # value.
1615 ac_cache_corrupted=false
1616 for ac_var in `(set) 2>&1 |
1617 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1618 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1619 eval ac_new_set=\$ac_env_${ac_var}_set
1620 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1621 eval ac_new_val="\$ac_env_${ac_var}_value"
1622 case $ac_old_set,$ac_new_set in
1623 set,)
1624 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1625 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1626 ac_cache_corrupted=: ;;
1627 ,set)
1628 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1629 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1630 ac_cache_corrupted=: ;;
1631 ,);;
1632 *)
1633 if test "x$ac_old_val" != "x$ac_new_val"; then
1634 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1635 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1636 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1637 echo "$as_me: former value: $ac_old_val" >&2;}
1638 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1639 echo "$as_me: current value: $ac_new_val" >&2;}
1640 ac_cache_corrupted=:
1641 fi;;
1642 esac
1643 # Pass precious variables to config.status.
1644 if test "$ac_new_set" = set; then
1645 case $ac_new_val in
1646 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1647 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1648 *) ac_arg=$ac_var=$ac_new_val ;;
1649 esac
1650 case " $ac_configure_args " in
1651 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1652 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1653 esac
1654 fi
1655 done
1656 if $ac_cache_corrupted; then
1657 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1658 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1659 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1660 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1661 { (exit 1); exit 1; }; }
1662 fi
1663
1664 ac_ext=c
1665 ac_cpp='$CPP $CPPFLAGS'
1666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701 # List one file in the package so that the configure script can test
1702 # whether the package is actually there
1703
1704
1705 # Where should everything be installed by default? Here, we want it
1706 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1707 # of the directory where configure is run. The default would be
1708 # /usr/local.
1709
1710
1711 #############################################################################
1712 # Create the libtool script for the subdirectories #
1713 #############################################################################
1714
1715 ac_aux_dir=
1716 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1717 if test -f $ac_dir/install-sh; then
1718 ac_aux_dir=$ac_dir
1719 ac_install_sh="$ac_aux_dir/install-sh -c"
1720 break
1721 elif test -f $ac_dir/install.sh; then
1722 ac_aux_dir=$ac_dir
1723 ac_install_sh="$ac_aux_dir/install.sh -c"
1724 break
1725 elif test -f $ac_dir/shtool; then
1726 ac_aux_dir=$ac_dir
1727 ac_install_sh="$ac_aux_dir/shtool install -c"
1728 break
1729 fi
1730 done
1731 if test -z "$ac_aux_dir"; then
1732 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1733 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1734 { (exit 1); exit 1; }; }
1735 fi
1736 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1737 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1738 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1739
1740 # Make sure we can run config.sub.
1741 $ac_config_sub sun4 >/dev/null 2>&1 ||
1742 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1743 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1744 { (exit 1); exit 1; }; }
1745
1746 echo "$as_me:$LINENO: checking build system type" >&5
1747 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1748 if test "${ac_cv_build+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 ac_cv_build_alias=$build_alias
1752 test -z "$ac_cv_build_alias" &&
1753 ac_cv_build_alias=`$ac_config_guess`
1754 test -z "$ac_cv_build_alias" &&
1755 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1756 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1757 { (exit 1); exit 1; }; }
1758 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1760 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763 fi
1764 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1765 echo "${ECHO_T}$ac_cv_build" >&6
1766 build=$ac_cv_build
1767 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772
1773 # Check if user wants to produce debugging code
1774
1775 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1776 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1777
1778 # Check whether --enable-debug or --disable-debug was given.
1779 if test "${enable_debug+set}" = set; then
1780 enableval="$enable_debug"
1781 case "${enableval}" in
1782 yes) coin_debug_compile=true
1783 if test "${enable_shared+set}" = set; then :; else
1784 enable_shared=no
1785 fi
1786 ;;
1787 no) coin_debug_compile=false
1788 ;;
1789 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1790 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1791 { (exit 1); exit 1; }; }
1792 ;;
1793 esac
1794 else
1795 coin_debug_compile=false
1796 fi;
1797
1798 # m4_ifvaln([],
1799
1800 if test $coin_debug_compile = true; then
1801 echo "$as_me:$LINENO: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 fi
1807
1808 # m4_ifvaln([],
1809
1810
1811
1812 # Get the name of the C compiler and appropriate compiler options
1813
1814
1815 # for backward compatibility
1816 # Check whether --enable-doscompile or --disable-doscompile was given.
1817 if test "${enable_doscompile+set}" = set; then
1818 enableval="$enable_doscompile"
1819 enable_doscompile=$enableval
1820 else
1821 enable_doscompile=no
1822 fi;
1823
1824 # Check whether --enable-msvc or --disable-msvc was given.
1825 if test "${enable_msvc+set}" = set; then
1826 enableval="$enable_msvc"
1827 enable_msvc=$enableval
1828 else
1829 enable_msvc=no
1830 if test "$enable_doscompile" = msvc ; then
1831 enable_msvc=yes
1832 elif test "$enable_doscompile" != no ; then
1833 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1834 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1835 { (exit 1); exit 1; }; }
1836 fi
1837
1838 fi;
1839
1840 if test "$enable_msvc" = MD; then
1841 enable_shared=yes
1842 enable_msvc=yes
1843 fi
1844
1845 if test "$enable_msvc" = yes; then
1846 case $build in
1847 *-cygwin* | *-mingw*) ;;
1848 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1849 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1850 { (exit 1); exit 1; }; } ;;
1851 esac
1852 fi
1853
1854
1855
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861
1862
1863 # For consistency, we set the C compiler to the same value of the C++
1864 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1865 if test x"$CXX" != x; then
1866 case "$CXX" in
1867 clang* ) ;;
1868 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1869 if test x"$CC" = x; then
1870 CC="$CXX"
1871 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1872 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1873 fi
1874 ;;
1875 esac
1876 fi
1877
1878
1879
1880
1881
1882
1883 coin_has_cc=yes
1884
1885 save_cflags="$CFLAGS"
1886
1887 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1888 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1889 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1890 # compiler. In this case, put cc after gcc.
1891
1892 case $build in
1893 *-cygwin* | *-mingw*)
1894 if test "$enable_msvc" = yes ; then
1895 comps="icl cl gcc"
1896 else
1897 comps="gcc icl cl"
1898 fi ;;
1899 *-*-solaris*)
1900 # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$sol_cc_compiler"; then
1908 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1909 else
1910 ac_prog_rejected=no
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1919 ac_prog_rejected=yes
1920 continue
1921 fi
1922 ac_cv_prog_sol_cc_compiler="cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1925 fi
1926 done
1927 done
1928
1929 if test $ac_prog_rejected = yes; then
1930 # We found a bogon in the path, so make sure we never use it.
1931 set dummy $ac_cv_prog_sol_cc_compiler
1932 shift
1933 if test $# != 0; then
1934 # We chose a different compiler from the bogus one.
1935 # However, it has the same basename, so the bogon will be chosen
1936 # first if we set sol_cc_compiler to just the basename; use the full file name.
1937 shift
1938 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1939 fi
1940 fi
1941 fi
1942 fi
1943 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1944 if test -n "$sol_cc_compiler"; then
1945 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1946 echo "${ECHO_T}$sol_cc_compiler" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 if test "$sol_cc_compiler" = "cc" ; then
1953 comps="cc xlc gcc pgcc icc"
1954 else
1955 comps="xlc gcc pgcc icc cc"
1956 fi
1957 ;;
1958 *-*-darwin*) comps="clang gcc cc" ;;
1959 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1960 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1961 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
1962 esac
1963
1964 # We delete the cached value, since the test might not have been
1965 # performed with our choice of compilers earlier
1966 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1967 # AC_MSG_NOTICE([C compiler candidates: $comps])
1968 ac_ext=c
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973 if test -n "$ac_tool_prefix"; then
1974 for ac_prog in $comps
1975 do
1976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 break 2
1996 fi
1997 done
1998 done
1999
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004 echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2006 else
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2009 fi
2010
2011 test -n "$CC" && break
2012 done
2013 fi
2014 if test -z "$CC"; then
2015 ac_ct_CC=$CC
2016 for ac_prog in $comps
2017 do
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019 set dummy $ac_prog; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039 done
2040 done
2041
2042 fi
2043 fi
2044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045 if test -n "$ac_ct_CC"; then
2046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047 echo "${ECHO_T}$ac_ct_CC" >&6
2048 else
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2051 fi
2052
2053 test -n "$ac_ct_CC" && break
2054 done
2055
2056 CC=$ac_ct_CC
2057 fi
2058
2059
2060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
2065
2066 # Provide some information about the compiler.
2067 echo "$as_me:$LINENO:" \
2068 "checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2071 (eval $ac_compiler --version </dev/null >&5) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2076 (eval $ac_compiler -v </dev/null >&5) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2081 (eval $ac_compiler -V </dev/null >&5) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085
2086 cat >conftest.$ac_ext <<_ACEOF
2087 /* confdefs.h. */
2088 _ACEOF
2089 cat confdefs.h >>conftest.$ac_ext
2090 cat >>conftest.$ac_ext <<_ACEOF
2091 /* end confdefs.h. */
2092
2093 int
2094 main ()
2095 {
2096
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 ac_clean_files_save=$ac_clean_files
2102 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2103 # Try to create an executable without -o first, disregard a.out.
2104 # It will help us diagnose broken compilers, and finding out an intuition
2105 # of exeext.
2106 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2107 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2108 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2109 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2110 (eval $ac_link_default) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; then
2114 # Find the output, starting from the most likely. This scheme is
2115 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2116 # resort.
2117
2118 # Be careful to initialize this variable, since it used to be cached.
2119 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2120 ac_cv_exeext=
2121 # b.out is created by i960 compilers.
2122 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2123 do
2124 test -f "$ac_file" || continue
2125 case $ac_file in
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2127 ;;
2128 conftest.$ac_ext )
2129 # This is the source file.
2130 ;;
2131 [ab].out )
2132 # We found the default executable, but exeext='' is most
2133 # certainly right.
2134 break;;
2135 *.* )
2136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137 # FIXME: I believe we export ac_cv_exeext for Libtool,
2138 # but it would be cool to find out if it's true. Does anybody
2139 # maintain Libtool? --akim.
2140 export ac_cv_exeext
2141 break;;
2142 * )
2143 break;;
2144 esac
2145 done
2146 else
2147 echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2149
2150 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: C compiler cannot create executables
2153 See \`config.log' for more details." >&2;}
2154 { (exit 77); exit 77; }; }
2155 fi
2156
2157 ac_exeext=$ac_cv_exeext
2158 echo "$as_me:$LINENO: result: $ac_file" >&5
2159 echo "${ECHO_T}$ac_file" >&6
2160
2161 # Check the compiler produces executables we can run. If not, either
2162 # the compiler is broken, or we cross compile.
2163 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2164 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2165 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2166 # If not cross compiling, check that we can run a simple program.
2167 if test "$cross_compiling" != yes; then
2168 if { ac_try='./$ac_file'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 cross_compiling=no
2175 else
2176 if test "$cross_compiling" = maybe; then
2177 cross_compiling=yes
2178 else
2179 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2180 If you meant to cross compile, use \`--host'.
2181 See \`config.log' for more details." >&5
2182 echo "$as_me: error: cannot run C compiled programs.
2183 If you meant to cross compile, use \`--host'.
2184 See \`config.log' for more details." >&2;}
2185 { (exit 1); exit 1; }; }
2186 fi
2187 fi
2188 fi
2189 echo "$as_me:$LINENO: result: yes" >&5
2190 echo "${ECHO_T}yes" >&6
2191
2192 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2193 ac_clean_files=$ac_clean_files_save
2194 # Check the compiler produces executables we can run. If not, either
2195 # the compiler is broken, or we cross compile.
2196 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2197 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2198 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2199 echo "${ECHO_T}$cross_compiling" >&6
2200
2201 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2202 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2204 (eval $ac_link) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; then
2208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2209 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2210 # work properly (i.e., refer to `conftest.exe'), while it won't with
2211 # `rm'.
2212 for ac_file in conftest.exe conftest conftest.*; do
2213 test -f "$ac_file" || continue
2214 case $ac_file in
2215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217 export ac_cv_exeext
2218 break;;
2219 * ) break;;
2220 esac
2221 done
2222 else
2223 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2228 fi
2229
2230 rm -f conftest$ac_cv_exeext
2231 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2232 echo "${ECHO_T}$ac_cv_exeext" >&6
2233
2234 rm -f conftest.$ac_ext
2235 EXEEXT=$ac_cv_exeext
2236 ac_exeext=$EXEEXT
2237 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2238 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2239 if test "${ac_cv_objext+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h. */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2248
2249 int
2250 main ()
2251 {
2252
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.o conftest.obj
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2264 case $ac_file in
2265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2267 break;;
2268 esac
2269 done
2270 else
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2277 See \`config.log' for more details." >&2;}
2278 { (exit 1); exit 1; }; }
2279 fi
2280
2281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2282 fi
2283 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2284 echo "${ECHO_T}$ac_cv_objext" >&6
2285 OBJEXT=$ac_cv_objext
2286 ac_objext=$OBJEXT
2287 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2288 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2289 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2298
2299 int
2300 main ()
2301 {
2302 #ifndef __GNUC__
2303 choke me
2304 #endif
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_compiler_gnu=yes
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 ac_compiler_gnu=no
2338 fi
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2341
2342 fi
2343 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2344 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2345 GCC=`test $ac_compiler_gnu = yes && echo yes`
2346 ac_test_CFLAGS=${CFLAGS+set}
2347 ac_save_CFLAGS=$CFLAGS
2348 CFLAGS="-g"
2349 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2351 if test "${ac_cv_prog_cc_g+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h. */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2360
2361 int
2362 main ()
2363 {
2364
2365 ;
2366 return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_cv_prog_cc_g=yes
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 ac_cv_prog_cc_g=no
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2401 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2402 if test "$ac_test_CFLAGS" = set; then
2403 CFLAGS=$ac_save_CFLAGS
2404 elif test $ac_cv_prog_cc_g = yes; then
2405 if test "$GCC" = yes; then
2406 CFLAGS="-g -O2"
2407 else
2408 CFLAGS="-g"
2409 fi
2410 else
2411 if test "$GCC" = yes; then
2412 CFLAGS="-O2"
2413 else
2414 CFLAGS=
2415 fi
2416 fi
2417 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2418 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 ac_cv_prog_cc_stdc=no
2423 ac_save_CC=$CC
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2430 #include <stdarg.h>
2431 #include <stdio.h>
2432 #include <sys/types.h>
2433 #include <sys/stat.h>
2434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2435 struct buf { int x; };
2436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2437 static char *e (p, i)
2438 char **p;
2439 int i;
2440 {
2441 return p[i];
2442 }
2443 static char *f (char * (*g) (char **, int), char **p, ...)
2444 {
2445 char *s;
2446 va_list v;
2447 va_start (v,p);
2448 s = g (p, va_arg (v,int));
2449 va_end (v);
2450 return s;
2451 }
2452
2453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2454 function prototypes and stuff, but not '\xHH' hex character constants.
2455 These don't provoke an error unfortunately, instead are silently treated
2456 as 'x'. The following induces an error, until -std1 is added to get
2457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2458 array size at least. It's necessary to write '\x00'==0 to get something
2459 that's true only with -std1. */
2460 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2461
2462 int test (int i, double x);
2463 struct s1 {int (*f) (int a);};
2464 struct s2 {int (*f) (double a);};
2465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2466 int argc;
2467 char **argv;
2468 int
2469 main ()
2470 {
2471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2472 ;
2473 return 0;
2474 }
2475 _ACEOF
2476 # Don't try gcc -ansi; that turns off useful extensions and
2477 # breaks some systems' header files.
2478 # AIX -qlanglvl=ansi
2479 # Ultrix and OSF/1 -std1
2480 # HP-UX 10.20 and later -Ae
2481 # HP-UX older versions -Aa -D_HPUX_SOURCE
2482 # SVR4 -Xc -D__EXTENSIONS__
2483 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2484 do
2485 CC="$ac_save_CC $ac_arg"
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 ac_cv_prog_cc_stdc=$ac_arg
2509 break
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 fi
2515 rm -f conftest.err conftest.$ac_objext
2516 done
2517 rm -f conftest.$ac_ext conftest.$ac_objext
2518 CC=$ac_save_CC
2519
2520 fi
2521
2522 case "x$ac_cv_prog_cc_stdc" in
2523 x|xno)
2524 echo "$as_me:$LINENO: result: none needed" >&5
2525 echo "${ECHO_T}none needed" >&6 ;;
2526 *)
2527 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2528 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2529 CC="$CC $ac_cv_prog_cc_stdc" ;;
2530 esac
2531
2532 # Some people use a C++ compiler to compile C. Since we use `exit',
2533 # in C++ we need to declare it. In case someone uses the same compiler
2534 # for both compiling C and C++ we need to have the C++ compiler decide
2535 # the declaration of exit, since it's the most demanding environment.
2536 cat >conftest.$ac_ext <<_ACEOF
2537 #ifndef __cplusplus
2538 choke me
2539 #endif
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag"
2551 || test ! -s conftest.err'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 for ac_declaration in \
2564 '' \
2565 'extern "C" void std::exit (int) throw (); using std::exit;' \
2566 'extern "C" void std::exit (int); using std::exit;' \
2567 'extern "C" void exit (int) throw ();' \
2568 'extern "C" void exit (int);' \
2569 'void exit (int);'
2570 do
2571 cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2577 $ac_declaration
2578 #include <stdlib.h>
2579 int
2580 main ()
2581 {
2582 exit (42);
2583 ;
2584 return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>conftest.er1
2590 ac_status=$?
2591 grep -v '^ *+' conftest.er1 >conftest.err
2592 rm -f conftest.er1
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_c_werror_flag"
2597 || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 :
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 continue
2615 fi
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623 $ac_declaration
2624 int
2625 main ()
2626 {
2627 exit (42);
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>conftest.er1
2635 ac_status=$?
2636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -z "$ac_c_werror_flag"
2642 || test ! -s conftest.err'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; } &&
2648 { ac_try='test -s conftest.$ac_objext'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 (eval $ac_try) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2654 break
2655 else
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 fi
2660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 done
2662 rm -f conftest*
2663 if test -n "$ac_declaration"; then
2664 echo '#ifdef __cplusplus' >>confdefs.h
2665 echo $ac_declaration >>confdefs.h
2666 echo '#endif' >>confdefs.h
2667 fi
2668
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 fi
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681 if test -z "$CC" ; then
2682 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2683 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2684 { (exit 1); exit 1; }; }
2685 fi
2686 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2687 case "$CC" in
2688 clang* ) ;;
2689 cl* | */cl* | CL* | */CL* )
2690 if test "$ac_cv_prog_cc_g" = yes ; then
2691 ac_cv_prog_cc_g=no
2692 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2693 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2694 fi ;;
2695 * )
2696 if test x"$CYGPATH_W" = x ; then
2697 CYGPATH_W=echo
2698 fi
2699 ;;
2700 esac
2701 CFLAGS="$save_cflags"
2702
2703 # add automake conditional so we can recognize cl compiler in makefile
2704 coin_cc_is_cl=false
2705 case "$CC" in
2706 clang* ) ;;
2707 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2708 coin_cc_is_cl=true
2709 ;;
2710 esac
2711
2712
2713 if test $coin_cc_is_cl = true; then
2714 COIN_CC_IS_CL_TRUE=
2715 COIN_CC_IS_CL_FALSE='#'
2716 else
2717 COIN_CC_IS_CL_TRUE='#'
2718 COIN_CC_IS_CL_FALSE=
2719 fi
2720
2721
2722 # Check if a project specific CFLAGS variable has been set
2723 if test x$COIN_PRJCT != x; then
2724 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2725 if test x$coin_tmp = xset; then
2726 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2727 fi
2728 fi
2729
2730 if test x"$CFLAGS" = x; then
2731
2732 coin_add_cflags=
2733 coin_opt_cflags=
2734 coin_dbg_cflags=
2735 coin_warn_cflags=
2736
2737 if test "$GCC" = "yes"; then
2738 case "$CC" in
2739 icc* | */icc*)
2740 ;;
2741 *)
2742 coin_opt_cflags="-O3"
2743 coin_add_cflags="-pipe"
2744 coin_dbg_cflags="-g -O0"
2745 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2746 esac
2747 fi
2748 if test -z "$coin_opt_cflags"; then
2749 case $build in
2750 *-cygwin* | *-mingw*)
2751 case "$CC" in
2752 clang* ) ;;
2753 cl* | */cl* | CL* | */CL*)
2754 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2755 coin_opt_cflags='-MD -O2'
2756 coin_dbg_cflags='-MDd'
2757 else
2758 coin_opt_cflags='-MT -O2'
2759 coin_dbg_cflags='-MTd'
2760 fi
2761 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2762 ;;
2763 icl* | */icl* | ICL* | */ICL*)
2764 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2765 coin_opt_cflags='-MD -Ox'
2766 coin_dbg_cflags='-MDd -debug'
2767 else
2768 coin_opt_cflags='-MT -Ox'
2769 coin_dbg_cflags='-MTd -debug'
2770 fi
2771 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2772 ;;
2773 esac
2774 ;;
2775 *-linux-*)
2776 case "$CC" in
2777 icc* | */icc*)
2778 coin_opt_cflags="-O3 -ip -mp1"
2779 coin_add_cflags=""
2780 coin_dbg_cflags="-g"
2781 # Check if -i_dynamic is necessary (for new glibc library)
2782 CFLAGS=
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h. */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2789
2790 int
2791 main ()
2792 {
2793 int i=0; i++;
2794 ;
2795 return 0;
2796 }
2797 _ACEOF
2798 rm -f conftest.$ac_objext conftest$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag"
2808 || test ! -s conftest.err'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try='test -s conftest$ac_exeext'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 :
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 coin_add_cflags="-i_dynamic $coin_add_cflags"
2826 fi
2827 rm -f conftest.err conftest.$ac_objext \
2828 conftest$ac_exeext conftest.$ac_ext
2829 ;;
2830 pgcc* | */pgcc*)
2831 coin_opt_cflags="-fast"
2832 coin_add_cflags="-Kieee -pc 64"
2833 coin_dbg_cflags="-g"
2834 ;;
2835 esac
2836 ;;
2837 *-ibm-*)
2838 case "$CC" in
2839 xlc* | */xlc* | mpxlc* | */mpxlc*)
2840 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2841 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2842 coin_dbg_cflags="-g"
2843 ;;
2844 esac
2845 ;;
2846 *-hp-*)
2847 coin_opt_cflags="-O"
2848 coin_add_cflags="-Ae"
2849 coin_dbg_cflags="-g"
2850 ;;
2851 *-*-solaris*)
2852 coin_opt_cflags="-xO4"
2853 coin_dbg_cflags="-g"
2854 ;;
2855 *-sgi-*)
2856 coin_opt_cflags="-O -OPT:Olimit=0"
2857 coin_dbg_cflags="-g"
2858 ;;
2859 esac
2860 fi
2861
2862 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2863 coin_dbg_cflags="-g"
2864 fi
2865
2866 if test -z "$coin_opt_cflags"; then
2867 # Try if -O option works if nothing else is set
2868 CFLAGS="-O"
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875
2876 int
2877 main ()
2878 {
2879 int i=0; i++;
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext conftest$ac_exeext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886 (eval $ac_link) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest$ac_exeext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 coin_opt_cflags="-O"
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 fi
2912 rm -f conftest.err conftest.$ac_objext \
2913 conftest$ac_exeext conftest.$ac_ext
2914 fi
2915
2916 # if PM doesn't want the warning messages, take them out
2917 if test x"$coin_skip_warn_cflags" = xyes; then
2918 coin_warn_cflags=
2919 fi
2920
2921 if test x${DBG_CFLAGS+set} != xset; then
2922 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2923 fi
2924 if test x${OPT_CFLAGS+set} != xset; then
2925 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2926 fi
2927
2928 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2929 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2930
2931 if test "$coin_debug_compile" = "true"; then
2932 CFLAGS="$DBG_CFLAGS"
2933 else
2934 CFLAGS="$OPT_CFLAGS"
2935 fi
2936 else
2937 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2938 if test x${DBG_CFLAGS+set} != xset; then
2939 DBG_CFLAGS="$CFLAGS"
2940 fi
2941 if test x${OPT_CFLAGS+set} != xset; then
2942 OPT_CFLAGS="$CFLAGS"
2943 fi
2944 fi
2945
2946 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2947 if test x$COIN_PRJCT != x; then
2948 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2949 fi
2950
2951 # Try if CFLAGS works
2952 save_CFLAGS="$CFLAGS"
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959
2960 int
2961 main ()
2962 {
2963 int i=0; i++;
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext conftest$ac_exeext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2970 (eval $ac_link) 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_c_werror_flag"
2978 || test ! -s conftest.err'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest$ac_exeext'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 :
2991 else
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 CFLAGS=
2996 fi
2997 rm -f conftest.err conftest.$ac_objext \
2998 conftest$ac_exeext conftest.$ac_ext
2999 if test -z "$CFLAGS"; then
3000 { 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
3001 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;}
3002 CFLAGS='-O'
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009
3010 int
3011 main ()
3012 {
3013 int i=0; i++;
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag"
3028 || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest$ac_exeext'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3040 :
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 CFLAGS=
3046 fi
3047 rm -f conftest.err conftest.$ac_objext \
3048 conftest$ac_exeext conftest.$ac_ext
3049 if test -z "$CFLAGS"; then
3050 { 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
3051 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;}
3052 fi
3053 fi
3054
3055 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3056 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3057
3058
3059 if test x"$MPICC" = x; then :; else
3060 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3061 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3062 CC="$MPICC"
3063 fi
3064
3065 # Correct the LD variable if we are using the MS or Intel-windows compiler
3066 case "$CC" in
3067 clang* ) ;;
3068 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3069 LD=link
3070 ;;
3071 esac
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080
3081 # Get the name of the C++ compiler and appropriate compiler options
3082
3083 #Let's try if that overcomes configuration problem with VC++ 6.0
3084
3085 ac_ext=cc
3086 ac_cpp='$CXXCPP $CPPFLAGS'
3087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3090
3091
3092
3093
3094
3095
3096
3097 coin_has_cxx=yes
3098
3099 save_cxxflags="$CXXFLAGS"
3100 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3101 case $build in
3102 *-cygwin* | *-mingw*)
3103 if test "$enable_msvc" = yes ; then
3104 comps="icl cl g++"
3105 else
3106 comps="g++ icl cl"
3107 fi ;;
3108 *-*-solaris*)
3109 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3110 *-darwin*) comps="clang++ g++ c++ CC" ;;
3111 *-linux-gnu*)
3112 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3113 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3114 esac
3115
3116 # We delete the cached value, since the test might not have been
3117 # performed with our choice of compilers earlier
3118 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3119 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3120 ac_ext=cc
3121 ac_cpp='$CXXCPP $CPPFLAGS'
3122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126 for ac_prog in $CCC $comps
3127 do
3128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3130 echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_CXX+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 if test -n "$CXX"; then
3136 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151
3152 fi
3153 fi
3154 CXX=$ac_cv_prog_CXX
3155 if test -n "$CXX"; then
3156 echo "$as_me:$LINENO: result: $CXX" >&5
3157 echo "${ECHO_T}$CXX" >&6
3158 else
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161 fi
3162
3163 test -n "$CXX" && break
3164 done
3165 fi
3166 if test -z "$CXX"; then
3167 ac_ct_CXX=$CXX
3168 for ac_prog in $CCC $comps
3169 do
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 echo "$as_me:$LINENO: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 if test -n "$ac_ct_CXX"; then
3178 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_CXX="$ac_prog"
3188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193
3194 fi
3195 fi
3196 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3197 if test -n "$ac_ct_CXX"; then
3198 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3199 echo "${ECHO_T}$ac_ct_CXX" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3203 fi
3204
3205 test -n "$ac_ct_CXX" && break
3206 done
3207 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3208
3209 CXX=$ac_ct_CXX
3210 fi
3211
3212
3213 # Provide some information about the compiler.
3214 echo "$as_me:$LINENO:" \
3215 "checking for C++ compiler version" >&5
3216 ac_compiler=`set X $ac_compile; echo $2`
3217 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3218 (eval $ac_compiler --version </dev/null >&5) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3222 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3223 (eval $ac_compiler -v </dev/null >&5) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }
3227 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3228 (eval $ac_compiler -V </dev/null >&5) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }
3232
3233 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3234 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3235 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244
3245 int
3246 main ()
3247 {
3248 #ifndef __GNUC__
3249 choke me
3250 #endif
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_compiler_gnu=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_compiler_gnu=no
3284 fi
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3287
3288 fi
3289 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3290 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3291 GXX=`test $ac_compiler_gnu = yes && echo yes`
3292 ac_test_CXXFLAGS=${CXXFLAGS+set}
3293 ac_save_CXXFLAGS=$CXXFLAGS
3294 CXXFLAGS="-g"
3295 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3296 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3297 if test "${ac_cv_prog_cxx_g+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_cxx_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_prog_cxx_g=yes
3338 else
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 ac_cv_prog_cxx_g=no
3343 fi
3344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3345 fi
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3348 if test "$ac_test_CXXFLAGS" = set; then
3349 CXXFLAGS=$ac_save_CXXFLAGS
3350 elif test $ac_cv_prog_cxx_g = yes; then
3351 if test "$GXX" = yes; then
3352 CXXFLAGS="-g -O2"
3353 else
3354 CXXFLAGS="-g"
3355 fi
3356 else
3357 if test "$GXX" = yes; then
3358 CXXFLAGS="-O2"
3359 else
3360 CXXFLAGS=
3361 fi
3362 fi
3363 for ac_declaration in \
3364 '' \
3365 'extern "C" void std::exit (int) throw (); using std::exit;' \
3366 'extern "C" void std::exit (int); using std::exit;' \
3367 'extern "C" void exit (int) throw ();' \
3368 'extern "C" void exit (int);' \
3369 'void exit (int);'
3370 do
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 $ac_declaration
3378 #include <stdlib.h>
3379 int
3380 main ()
3381 {
3382 exit (42);
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -z "$ac_cxx_werror_flag"
3397 || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 :
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 continue
3415 fi
3416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 $ac_declaration
3424 int
3425 main ()
3426 {
3427 exit (42);
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_cxx_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 break
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 fi
3460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461 done
3462 rm -f conftest*
3463 if test -n "$ac_declaration"; then
3464 echo '#ifdef __cplusplus' >>confdefs.h
3465 echo $ac_declaration >>confdefs.h
3466 echo '#endif' >>confdefs.h
3467 fi
3468
3469 ac_ext=cc
3470 ac_cpp='$CXXCPP $CPPFLAGS'
3471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3474
3475
3476 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3477 #thus, we test here whether $CXX is actually working
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 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3485 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496 int i=0;
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_cxx_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3531 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3532 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3533 { (exit 1); exit 1; }; }
3534
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_ext=cc
3538 ac_cpp='$CXXCPP $CPPFLAGS'
3539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3542
3543
3544 coin_cxx_is_cl=false
3545 # It seems that we need to cleanup something here for the Windows
3546 case "$CXX" in
3547 clang* | */clang*) ;;
3548 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3549 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3550 mv confdefs.hh confdefs.h
3551 coin_cxx_is_cl=true
3552 ;;
3553 esac
3554
3555 # add automake conditional so we can recognize cl compiler in makefile
3556
3557
3558 if test $coin_cxx_is_cl = true; then
3559 COIN_CXX_IS_CL_TRUE=
3560 COIN_CXX_IS_CL_FALSE='#'
3561 else
3562 COIN_CXX_IS_CL_TRUE='#'
3563 COIN_CXX_IS_CL_FALSE=
3564 fi
3565
3566
3567 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3568 case "$CXX" in
3569 clang* ) ;;
3570 cl* | */cl* | CL* | */CL* )
3571 if test "$ac_cv_prog_cxx_g" = yes ; then
3572 ac_cv_prog_cxx_g=no
3573 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3574 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3575 fi ;;
3576 * )
3577 if test x"$CYGPATH_W" = x ; then
3578 CYGPATH_W=echo
3579 fi
3580 ;;
3581 esac
3582 CXXFLAGS="$save_cxxflags"
3583
3584 # Check if a project specific CXXFLAGS variable has been set
3585 if test x$COIN_PRJCT != x; then
3586 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3587 if test x$coin_tmp = xset; then
3588 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3589 fi
3590 fi
3591
3592 if test x"$CXXFLAGS" = x; then
3593
3594 # ToDo decide whether we want -DNDEBUG for optimization
3595 coin_add_cxxflags=
3596 coin_opt_cxxflags=
3597 coin_dbg_cxxflags=
3598 coin_warn_cxxflags=
3599
3600 if test "$GXX" = "yes"; then
3601 case "$CXX" in
3602 icpc* | */icpc*)
3603 ;;
3604 *)
3605 # ToDo decide about unroll-loops
3606 coin_opt_cxxflags="-O3"
3607 coin_add_cxxflags="-pipe"
3608 coin_dbg_cxxflags="-g -O0"
3609 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3610 esac
3611 fi
3612
3613 # Note that we do not need to cover GCC in the following tests.
3614
3615 if test -z "$coin_opt_cxxflags"; then
3616 case $build in
3617 *-cygwin* | *-mingw*)
3618 case "$CXX" in
3619 clang* ) ;;
3620 cl* | */cl* | CL* | */CL*)
3621 # The MT and MTd options are mutually exclusive
3622 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3623 coin_opt_cxxflags='-MD -O2'
3624 coin_dbg_cxxflags='-MDd'
3625 else
3626 coin_opt_cxxflags='-MT -O2'
3627 coin_dbg_cxxflags='-MTd'
3628 fi
3629 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3630 ;;
3631 icl* | */icl* | ICL* | */ICL*)
3632 # The MT and MTd options are mutually exclusive
3633 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3634 coin_opt_cxxflags='-MD -Ox'
3635 coin_dbg_cxxflags='-MDd -debug'
3636 else
3637 coin_opt_cxxflags='-MT -Ox'
3638 coin_dbg_cxxflags='-MTd -debug'
3639 fi
3640 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3641 ;;
3642 esac
3643 ;;
3644 *-linux-*)
3645 case "$CXX" in
3646 icpc* | */icpc*)
3647 coin_opt_cxxflags="-O3 -ip -mp1"
3648 coin_add_cxxflags=""
3649 coin_dbg_cxxflags="-g"
3650 # Check if -i_dynamic is necessary (for new glibc library)
3651 CXXFLAGS=
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662 int i=0; i++;
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag"
3677 || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 :
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3695 fi
3696 rm -f conftest.err conftest.$ac_objext \
3697 conftest$ac_exeext conftest.$ac_ext
3698 ;;
3699 pgCC* | */pgCC*)
3700 coin_opt_cxxflags="-fast"
3701 coin_add_cxxflags="-Kieee -pc 64"
3702 coin_dbg_cxxflags="-g"
3703 ;;
3704 esac
3705 ;;
3706 *-ibm-*)
3707 case "$CXX" in
3708 xlC* | */xlC* | mpxlC* | */mpxlC*)
3709 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3710 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3711 coin_dbg_cxxflags="-g"
3712 ;;
3713 esac
3714 ;;
3715 *-hp-*)
3716 case "$CXX" in
3717 aCC* | */aCC* )
3718 coin_opt_cxxflags="-O"
3719 coin_add_cxxflags="-AA"
3720 coin_dbg_cxxflags="-g"
3721 ;;
3722 esac
3723 ;;
3724 *-*-solaris*)
3725 coin_opt_cxxflags="-O4"
3726 coin_dbg_cxxflags="-g"
3727 ;;
3728 esac
3729 fi
3730
3731 # Generic flag settings. If these don't work, add a case above.
3732
3733 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3734 coin_dbg_cxxflags="-g"
3735 fi
3736
3737 if test -z "$coin_opt_cxxflags"; then
3738 # Try if -O option works if nothing else is set
3739 CXXFLAGS=-O
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746
3747 int
3748 main ()
3749 {
3750 int i=0; i++;
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_cxx_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 coin_opt_cxxflags="-O"
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 fi
3783 rm -f conftest.err conftest.$ac_objext \
3784 conftest$ac_exeext conftest.$ac_ext
3785 fi
3786
3787 # if PM doesn't want the warning messages, take them out
3788 if test x"$coin_skip_warn_cxxflags" = xyes; then
3789 coin_warn_cxxflags=
3790 fi
3791
3792 # Do final setup of flags based on values determined above.
3793
3794 if test x${DBG_CXXFLAGS+set} != xset; then
3795 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3796 fi
3797 if test x${OPT_CXXFLAGS+set} != xset; then
3798 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3799 fi
3800
3801 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3802 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3803
3804 if test "$coin_debug_compile" = "true"; then
3805 CXXFLAGS="$DBG_CXXFLAGS"
3806 else
3807 CXXFLAGS="$OPT_CXXFLAGS"
3808 fi
3809
3810 # Handle the case where CXXFLAGS was set externally.
3811 else
3812 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3813 if test x${DBG_CXXFLAGS+set} != xset; then
3814 DBG_CXXFLAGS="$CXXFLAGS"
3815 fi
3816 if test x${OPT_CXXFLAGS+set} != xset; then
3817 OPT_CXXFLAGS="$CXXFLAGS"
3818 fi
3819 fi
3820
3821 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3822 if test x$COIN_PRJCT != x; then
3823 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3824 fi
3825
3826 # Try if CXXFLAGS works
3827 save_CXXFLAGS="$CXXFLAGS"
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834
3835 int
3836 main ()
3837 {
3838 int i=0; i++;
3839 ;
3840 return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext conftest$ac_exeext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 (eval $ac_link) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_cxx_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest$ac_exeext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 :
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 CXXFLAGS=
3871 fi
3872 rm -f conftest.err conftest.$ac_objext \
3873 conftest$ac_exeext conftest.$ac_ext
3874 if test -z "$CXXFLAGS"; then
3875 { 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
3876 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;}
3877 CXXFLAGS='-O'
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884
3885 int
3886 main ()
3887 {
3888 int i=0; i++;
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext conftest$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_cxx_werror_flag"
3903 || test ! -s conftest.err'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest$ac_exeext'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; }; then
3915 :
3916 else
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 CXXFLAGS=
3921 fi
3922 rm -f conftest.err conftest.$ac_objext \
3923 conftest$ac_exeext conftest.$ac_ext
3924 if test -z "$CXXFLAGS"; then
3925 { 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
3926 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;}
3927 fi
3928 fi
3929
3930 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3931 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3932
3933
3934 if test x"$MPICXX" = x; then :; else
3935 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3936 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3937 CXX="$MPICXX"
3938 fi
3939
3940 # correct the LD variable in a build with MS or Intel-windows compiler
3941 case "$CXX" in
3942 clang* ) ;;
3943 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3944 LD=link
3945 ;;
3946 esac
3947
3948 ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953
3954
3955
3956 # Get the name of the Fortran compiler and appropriate compiler options
3957 case $build in
3958 *-cygwin* | *-mingw*)
3959 if test "$enable_msvc" = yes ; then
3960 coin_f77_comps="ifort fl32 compile_f2c"
3961 else
3962 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3963 fi ;;
3964 *-*-solaris*)
3965 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3966 *-linux-gnu*)
3967 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3968 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3969 esac
3970
3971
3972
3973
3974
3975 ac_ext=f
3976 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3977 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3979
3980
3981
3982
3983
3984
3985 coin_has_f77=yes
3986
3987 save_fflags="$FFLAGS"
3988
3989 # We delete the cached value, since the test might not have been
3990 # performed with our choice of compilers earlier
3991 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3992
3993 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3994 # coin_f77_comps to see if there's a program that matches one of the names.
3995 # If there's no such program, F77 = unavailable. If we match the name,
3996 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3997 # compiler.
3998 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3999
4000
4001 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4002 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4003 if test -n "$ac_tool_prefix"; then
4004 for ac_prog in $coin_f77_comps
4005 do
4006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_F77+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013 if test -n "$F77"; then
4014 ac_cv_prog_F77="$F77" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027 done
4028 done
4029
4030 fi
4031 fi
4032 F77=$ac_cv_prog_F77
4033 if test -n "$F77"; then
4034 echo "$as_me:$LINENO: result: $F77" >&5
4035 echo "${ECHO_T}$F77" >&6
4036 else
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041 test -n "$F77" && break
4042 done
4043 fi
4044 if test -z "$F77"; then
4045 ac_ct_F77=$F77
4046 for ac_prog in $coin_f77_comps
4047 do
4048 # Extract the first word of "$ac_prog", so it can be a program name with args.
4049 set dummy $ac_prog; ac_word=$2
4050 echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4052 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 if test -n "$ac_ct_F77"; then
4056 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_F77="$ac_prog"
4066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069 done
4070 done
4071
4072 fi
4073 fi
4074 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4075 if test -n "$ac_ct_F77"; then
4076 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4077 echo "${ECHO_T}$ac_ct_F77" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 test -n "$ac_ct_F77" && break
4084 done
4085 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4086
4087 F77=$ac_ct_F77
4088 fi
4089
4090
4091 if test "$F77" != "unavailable" ; then
4092 ac_ext=f
4093 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4094 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4096 if test -n "$ac_tool_prefix"; then
4097 for ac_prog in $coin_f77_comps
4098 do
4099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_F77+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$F77"; then
4107 ac_cv_prog_F77="$F77" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4119 fi
4120 done
4121 done
4122
4123 fi
4124 fi
4125 F77=$ac_cv_prog_F77
4126 if test -n "$F77"; then
4127 echo "$as_me:$LINENO: result: $F77" >&5
4128 echo "${ECHO_T}$F77" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 test -n "$F77" && break
4135 done
4136 fi
4137 if test -z "$F77"; then
4138 ac_ct_F77=$F77
4139 for ac_prog in $coin_f77_comps
4140 do
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 if test -n "$ac_ct_F77"; then
4149 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_F77="$ac_prog"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164
4165 fi
4166 fi
4167 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4168 if test -n "$ac_ct_F77"; then
4169 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4170 echo "${ECHO_T}$ac_ct_F77" >&6
4171 else
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 fi
4175
4176 test -n "$ac_ct_F77" && break
4177 done
4178
4179 F77=$ac_ct_F77
4180 fi
4181
4182
4183 # Provide some information about the compiler.
4184 echo "$as_me:4184:" \
4185 "checking for Fortran 77 compiler version" >&5
4186 ac_compiler=`set X $ac_compile; echo $2`
4187 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4188 (eval $ac_compiler --version </dev/null >&5) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }
4192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4193 (eval $ac_compiler -v </dev/null >&5) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }
4197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4198 (eval $ac_compiler -V </dev/null >&5) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }
4202 rm -f a.out
4203
4204 # If we don't use `.F' as extension, the preprocessor is not run on the
4205 # input file. (Note that this only needs to work for GNU compilers.)
4206 ac_save_ext=$ac_ext
4207 ac_ext=F
4208 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4209 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4210 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 cat >conftest.$ac_ext <<_ACEOF
4214 program main
4215 #ifndef __GNUC__
4216 choke me
4217 #endif
4218
4219 end
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_f77_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_compiler_gnu=yes
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_compiler_gnu=no
4249 fi
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4252
4253 fi
4254 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4255 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4256 ac_ext=$ac_save_ext
4257 ac_test_FFLAGS=${FFLAGS+set}
4258 ac_save_FFLAGS=$FFLAGS
4259 FFLAGS=
4260 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4261 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4262 if test "${ac_cv_prog_f77_g+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 FFLAGS=-g
4266 cat >conftest.$ac_ext <<_ACEOF
4267 program main
4268
4269 end
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_f77_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_prog_f77_g=yes
4294 else
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ac_cv_prog_f77_g=no
4299 fi
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301
4302 fi
4303 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4304 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4305 if test "$ac_test_FFLAGS" = set; then
4306 FFLAGS=$ac_save_FFLAGS
4307 elif test $ac_cv_prog_f77_g = yes; then
4308 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4309 FFLAGS="-g -O2"
4310 else
4311 FFLAGS="-g"
4312 fi
4313 else
4314 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4315 FFLAGS="-O2"
4316 else
4317 FFLAGS=
4318 fi
4319 fi
4320
4321 G77=`test $ac_compiler_gnu = yes && echo yes`
4322 ac_ext=f
4323 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4324 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4326
4327 else
4328 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4329 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4330 fi
4331
4332 FFLAGS="$save_fflags"
4333
4334 # Check if a project specific FFLAGS variable has been set
4335 if test x$COIN_PRJCT != x; then
4336 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4337 if test x$coin_tmp = xset; then
4338 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4339 fi
4340 fi
4341
4342 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4343
4344 coin_add_fflags=
4345 coin_opt_fflags=
4346 coin_dbg_fflags=
4347 coin_warn_fflags=
4348
4349 if test "$G77" = "yes"; then
4350 coin_opt_fflags="-O3"
4351 coin_add_fflags="-pipe"
4352 coin_dbg_fflags="-g -O0"
4353 else
4354 case $build in
4355 *-cygwin* | *-mingw*)
4356 case $F77 in
4357 ifort* | */ifort* | IFORT* | */IFORT* )
4358 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4359 coin_opt_fflags='-MD -O3'
4360 coin_dbg_fflags='-MDd -debug'
4361 else
4362 coin_opt_fflags='-MT -O3'
4363 coin_dbg_fflags='-MTd -debug'
4364 fi
4365 coin_add_fflags='-fpp -nologo'
4366 ;;
4367 compile_f2c*)
4368 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4369 coin_opt_fflags='-MD -O2'
4370 coin_dbg_fflags='-MDd'
4371 else
4372 coin_opt_fflags='-MT -O2'
4373 coin_dbg_fflags='-MTd'
4374 fi
4375 coin_add_fflags='-nologo -wd4996'
4376 ;;
4377 esac
4378 ;;
4379 *-linux-*)
4380 case $F77 in
4381 ifc* | */ifc* | ifort* | */ifort*)
4382 coin_opt_fflags="-O3 -ip"
4383 coin_add_fflags="-cm -w90 -w95"
4384 coin_dbg_fflags="-g -CA -CB -CS"
4385 # Check if -i_dynamic is necessary (for new glibc library)
4386 FFLAGS=
4387 cat >conftest.$ac_ext <<_ACEOF
4388 program main
4389 write(*,*) 'Hello world'
4390 end
4391 _ACEOF
4392 rm -f conftest.$ac_objext conftest$ac_exeext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_f77_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 :
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 coin_add_fflags="-i_dynamic $coin_add_fflags"
4420 fi
4421 rm -f conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4423 ;;
4424 pgf77* | */pgf77* | pgf90* | */pgf90*)
4425 coin_opt_fflags="-fast"
4426 coin_add_fflags="-Kieee -pc 64"
4427 coin_dbg_fflags="-g"
4428 ;;
4429 esac
4430 ;;
4431 *-ibm-*)
4432 case "$F77" in
4433 xlf* | */xlf* | mpxlf* | */mpxlf* )
4434 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4435 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4436 coin_dbg_fflags="-g -C"
4437 ;;
4438 esac
4439 ;;
4440 *-hp-*)
4441 coin_opt_fflags="+O3"
4442 coin_add_fflags="+U77"
4443 coin_dbg_fflags="-C -g"
4444 ;;
4445 *-*-solaris*)
4446 coin_opt_fflags="-O4"
4447 coin_dbg_fflags="-g"
4448 ;;
4449 *-sgi-*)
4450 coin_opt_fflags="-O5 -OPT:Olimit=0"
4451 coin_dbg_fflags="-g"
4452 ;;
4453 esac
4454 fi
4455
4456 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4457 coin_dbg_fflags="-g"
4458 fi
4459
4460 if test -z "$coin_opt_fflags"; then
4461 # Try if -O option works if nothing else is set
4462 FFLAGS=-O
4463 cat >conftest.$ac_ext <<_ACEOF
4464 program main
4465 integer i
4466 end
4467 _ACEOF
4468 rm -f conftest.$ac_objext conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_f77_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 coin_opt_fflags="-O"
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 fi
4496 rm -f conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
4498 fi
4499
4500 # if PM doesn't want the warning messages, take them out
4501 if test x"$coin_skip_warn_fflags" = xyes; then
4502 coin_warn_fflags=
4503 fi
4504
4505 if test x${DBG_FFLAGS+set} != xset; then
4506 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4507 fi
4508 if test x${OPT_FFLAGS+set} != xset; then
4509 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4510 fi
4511
4512 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4513 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4514
4515 if test "$coin_debug_compile" = "true"; then
4516 FFLAGS="$DBG_FFLAGS"
4517 else
4518 FFLAGS="$OPT_FFLAGS"
4519 fi
4520 else
4521 FFLAGS="$FFLAGS $ADD_FFLAGS"
4522 if test x${DBG_FFLAGS+set} != xset; then
4523 DBG_FFLAGS="$FFLAGS"
4524 fi
4525 if test x${OPT_FFLAGS+set} != xset; then
4526 OPT_FFLAGS="$FFLAGS"
4527 fi
4528 fi
4529
4530 # Try if FFLAGS works
4531 if test "$F77" != "unavailable" ; then
4532 orig_FFLAGS="FFLAGS"
4533 cat >conftest.$ac_ext <<_ACEOF
4534 program main
4535 integer i
4536 end
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_f77_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 :
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 FFLAGS=
4566 fi
4567 rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
4569 if test -z "$FFLAGS"; then
4570 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5
4571 echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4572 FFLAGS='-O'
4573 cat >conftest.$ac_ext <<_ACEOF
4574 program main
4575 integer i
4576 end
4577 _ACEOF
4578 rm -f conftest.$ac_objext conftest$ac_exeext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4580 (eval $ac_link) 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_f77_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 :
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 FFLAGS=
4606 fi
4607 rm -f conftest.err conftest.$ac_objext \
4608 conftest$ac_exeext conftest.$ac_ext
4609 if test -z "$FFLAGS"; then
4610 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4611 echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4612 fi
4613 fi
4614 fi
4615
4616 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4617 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4618
4619
4620 if test x"$MPIF77" = x; then :; else
4621 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4622 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4623 F77="$MPIF77"
4624 fi
4625
4626 # correct the LD variable if we use the intel fortran compiler in windows
4627 case $build in
4628 *-cygwin* | *-mingw*)
4629 case "$F77" in
4630 ifort* | */ifort* | IFORT* | */IFORT*)
4631 LD=link
4632 ;;
4633 esac
4634 ;;
4635 esac
4636
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643
4644
4645 # Initialize automake and libtool
4646 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4647 {
4648
4649
4650
4651 # START
4652
4653 coin_disable_shared=no
4654 # Test if force_shared has been set
4655 if test "x" = xforce_shared; then
4656 if test x$enable_shared = xno; then
4657 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4658 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4659 { (exit 1); exit 1; }; }
4660 fi
4661 enable_shared=yes;
4662 else
4663 case $build in
4664 *-cygwin* | *-mingw*)
4665 coin_disable_shared=yes
4666 if test x"$enable_shared" = xyes; then
4667 case "$CC" in
4668 clang* )
4669 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4670 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4671 ;;
4672 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4673 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4674 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4675 ;;
4676 *gcc*)
4677 if test x"$enable_dependency_linking" = xyes; then
4678 coin_disable_shared=no
4679 else
4680 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4681 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4682 fi
4683 ;;
4684 *)
4685 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4686 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4687 ;;
4688 esac
4689 fi
4690 ;;
4691 *-aix*)
4692 coin_disable_shared=yes
4693 platform=AIX
4694 if test x"$enable_shared" = xyes; then
4695 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4696 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4697 fi
4698 ;;
4699 esac
4700 fi
4701 if test x"$coin_disable_shared" = xyes; then
4702 if test x"$enable_shared" = xyes; then
4703 :
4704 else
4705 # we don't disable shared, because it was not selected anyway
4706 coin_disable_shared=no
4707 fi
4708 enable_shared=no
4709 fi
4710 # By default, we only want the shared objects to be compiled
4711 # Check whether --enable-static or --disable-static was given.
4712 if test "${enable_static+set}" = set; then
4713 enableval="$enable_static"
4714 p=${PACKAGE-default}
4715 case $enableval in
4716 yes) enable_static=yes ;;
4717 no) enable_static=no ;;
4718 *)
4719 enable_static=no
4720 # Look at the argument we got. We use all the common list separators.
4721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4722 for pkg in $enableval; do
4723 IFS="$lt_save_ifs"
4724 if test "X$pkg" = "X$p"; then
4725 enable_static=yes
4726 fi
4727 done
4728 IFS="$lt_save_ifs"
4729 ;;
4730 esac
4731 else
4732 enable_static=no
4733 fi;
4734
4735
4736
4737
4738 # Initialize automake
4739 echo "$as_me:$LINENO: checking for egrep" >&5
4740 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4741 if test "${ac_cv_prog_egrep+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4745 then ac_cv_prog_egrep='grep -E'
4746 else ac_cv_prog_egrep='egrep'
4747 fi
4748 fi
4749 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4750 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4751 EGREP=$ac_cv_prog_egrep
4752
4753
4754 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4756 LN_S=$as_ln_s
4757 if test "$LN_S" = "ln -s"; then
4758 echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6
4760 else
4761 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4762 echo "${ECHO_T}no, using $LN_S" >&6
4763 fi
4764
4765 am__api_version="1.9"
4766 # Find a good install program. We prefer a C program (faster),
4767 # so one script is as good as another. But avoid the broken or
4768 # incompatible versions:
4769 # SysV /etc/install, /usr/sbin/install
4770 # SunOS /usr/etc/install
4771 # IRIX /sbin/install
4772 # AIX /bin/install
4773 # AmigaOS /C/install, which installs bootblocks on floppy discs
4774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4777 # OS/2's system install, which has a completely different semantic
4778 # ./install, which can be erroneously created by make from ./install.sh.
4779 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4780 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4781 if test -z "$INSTALL"; then
4782 if test "${ac_cv_path_install+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 # Account for people who put trailing slashes in PATH elements.
4791 case $as_dir/ in
4792 ./ | .// | /cC/* | \
4793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4795 /usr/ucb/* ) ;;
4796 *)
4797 # OSF1 and SCO ODT 3.0 have their own names for install.
4798 # Don't use installbsd from OSF since it installs stuff as root
4799 # by default.
4800 for ac_prog in ginstall scoinst install; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4803 if test $ac_prog = install &&
4804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4805 # AIX install. It has an incompatible calling convention.
4806 :
4807 elif test $ac_prog = install &&
4808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4809 # program-specific install script used by HP pwplus--don't use.
4810 :
4811 else
4812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4813 break 3
4814 fi
4815 fi
4816 done
4817 done
4818 ;;
4819 esac
4820 done
4821
4822
4823 fi
4824 if test "${ac_cv_path_install+set}" = set; then
4825 INSTALL=$ac_cv_path_install
4826 else
4827 # As a last resort, use the slow shell script. We don't cache a
4828 # path for INSTALL within a source directory, because that will
4829 # break other packages using the cache if that directory is
4830 # removed, or if the path is relative.
4831 INSTALL=$ac_install_sh
4832 fi
4833 fi
4834 echo "$as_me:$LINENO: result: $INSTALL" >&5
4835 echo "${ECHO_T}$INSTALL" >&6
4836
4837 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4838 # It thinks the first close brace ends the variable substitution.
4839 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4840
4841 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4842
4843 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4844
4845 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4846 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4847 # Just in case
4848 sleep 1
4849 echo timestamp > conftest.file
4850 # Do `set' in a subshell so we don't clobber the current shell's
4851 # arguments. Must try -L first in case configure is actually a
4852 # symlink; some systems play weird games with the mod time of symlinks
4853 # (eg FreeBSD returns the mod time of the symlink's containing
4854 # directory).
4855 if (
4856 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4857 if test "$*" = "X"; then
4858 # -L didn't work.
4859 set X `ls -t $srcdir/configure conftest.file`
4860 fi
4861 rm -f conftest.file
4862 if test "$*" != "X $srcdir/configure conftest.file" \
4863 && test "$*" != "X conftest.file $srcdir/configure"; then
4864
4865 # If neither matched, then we have a broken ls. This can happen
4866 # if, for instance, CONFIG_SHELL is bash and it inherits a
4867 # broken ls alias from the environment. This has actually
4868 # happened. Such a system could not be considered "sane".
4869 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4870 alias in your environment" >&5
4871 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4872 alias in your environment" >&2;}
4873 { (exit 1); exit 1; }; }
4874 fi
4875
4876 test "$2" = conftest.file
4877 )
4878 then
4879 # Ok.
4880 :
4881 else
4882 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4883 Check your system clock" >&5
4884 echo "$as_me: error: newly created file is older than distributed files!
4885 Check your system clock" >&2;}
4886 { (exit 1); exit 1; }; }
4887 fi
4888 echo "$as_me:$LINENO: result: yes" >&5
4889 echo "${ECHO_T}yes" >&6
4890 test "$program_prefix" != NONE &&
4891 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4892 # Use a double $ so make ignores it.
4893 test "$program_suffix" != NONE &&
4894 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4895 # Double any \ or $. echo might interpret backslashes.
4896 # By default was `s,x,x', remove it if useless.
4897 cat <<\_ACEOF >conftest.sed
4898 s/[\\$]/&&/g;s/;s,x,x,$//
4899 _ACEOF
4900 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4901 rm conftest.sed
4902
4903 # expand $ac_aux_dir to an absolute path
4904 am_aux_dir=`cd $ac_aux_dir && pwd`
4905
4906 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4907 # Use eval to expand $SHELL
4908 if eval "$MISSING --run true"; then
4909 am_missing_run="$MISSING --run "
4910 else
4911 am_missing_run=
4912 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4913 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4914 fi
4915
4916 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4917 # We used to keeping the `.' as first argument, in order to
4918 # allow $(mkdir_p) to be used without argument. As in
4919 # $(mkdir_p) $(somedir)
4920 # where $(somedir) is conditionally defined. However this is wrong
4921 # for two reasons:
4922 # 1. if the package is installed by a user who cannot write `.'
4923 # make install will fail,
4924 # 2. the above comment should most certainly read
4925 # $(mkdir_p) $(DESTDIR)$(somedir)
4926 # so it does not work when $(somedir) is undefined and
4927 # $(DESTDIR) is not.
4928 # To support the latter case, we have to write
4929 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4930 # so the `.' trick is pointless.
4931 mkdir_p='mkdir -p --'
4932 else
4933 # On NextStep and OpenStep, the `mkdir' command does not
4934 # recognize any option. It will interpret all options as
4935 # directories to create, and then abort because `.' already
4936 # exists.
4937 for d in ./-p ./--version;
4938 do
4939 test -d $d && rmdir $d
4940 done
4941 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4942 if test -f "$ac_aux_dir/mkinstalldirs"; then
4943 mkdir_p='$(mkinstalldirs)'
4944 else
4945 mkdir_p='$(install_sh) -d'
4946 fi
4947 fi
4948
4949 for ac_prog in gawk mawk nawk awk
4950 do
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_AWK+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 if test -n "$AWK"; then
4959 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_AWK="$ac_prog"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974
4975 fi
4976 fi
4977 AWK=$ac_cv_prog_AWK
4978 if test -n "$AWK"; then
4979 echo "$as_me:$LINENO: result: $AWK" >&5
4980 echo "${ECHO_T}$AWK" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986 test -n "$AWK" && break
4987 done
4988
4989 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4990 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4991 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4992 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 cat >conftest.make <<\_ACEOF
4996 all:
4997 @echo 'ac_maketemp="$(MAKE)"'
4998 _ACEOF
4999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5000 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5001 if test -n "$ac_maketemp"; then
5002 eval ac_cv_prog_make_${ac_make}_set=yes
5003 else
5004 eval ac_cv_prog_make_${ac_make}_set=no
5005 fi
5006 rm -f conftest.make
5007 fi
5008 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5009 echo "$as_me:$LINENO: result: yes" >&5
5010 echo "${ECHO_T}yes" >&6
5011 SET_MAKE=
5012 else
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5015 SET_MAKE="MAKE=${MAKE-make}"
5016 fi
5017
5018 rm -rf .tst 2>/dev/null
5019 mkdir .tst 2>/dev/null
5020 if test -d .tst; then
5021 am__leading_dot=.
5022 else
5023 am__leading_dot=_
5024 fi
5025 rmdir .tst 2>/dev/null
5026
5027 DEPDIR="${am__leading_dot}deps"
5028
5029 ac_config_commands="$ac_config_commands depfiles"
5030
5031
5032 am_make=${MAKE-make}
5033 cat > confinc << 'END'
5034 am__doit:
5035 @echo done
5036 .PHONY: am__doit
5037 END
5038 # If we don't find an include directive, just comment out the code.
5039 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5040 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5041 am__include="#"
5042 am__quote=
5043 _am_result=none
5044 # First try GNU make style include.
5045 echo "include confinc" > confmf
5046 # We grep out `Entering directory' and `Leaving directory'
5047 # messages which can occur if `w' ends up in MAKEFLAGS.
5048 # In particular we don't look at `^make:' because GNU make might
5049 # be invoked under some other name (usually "gmake"), in which
5050 # case it prints its new name instead of `make'.
5051 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5052 am__include=include
5053 am__quote=
5054 _am_result=GNU
5055 fi
5056 # Now try BSD make style include.
5057 if test "$am__include" = "#"; then
5058 echo '.include "confinc"' > confmf
5059 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5060 am__include=.include
5061 am__quote="\""
5062 _am_result=BSD
5063 fi
5064 fi
5065
5066
5067 echo "$as_me:$LINENO: result: $_am_result" >&5
5068 echo "${ECHO_T}$_am_result" >&6
5069 rm -f confinc confmf
5070
5071 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5072 if test "${enable_dependency_tracking+set}" = set; then
5073 enableval="$enable_dependency_tracking"
5074
5075 fi;
5076 if test "x$enable_dependency_tracking" != xno; then
5077 am_depcomp="$ac_aux_dir/depcomp"
5078 AMDEPBACKSLASH='\'
5079 fi
5080
5081
5082 if test "x$enable_dependency_tracking" != xno; then
5083 AMDEP_TRUE=
5084 AMDEP_FALSE='#'
5085 else
5086 AMDEP_TRUE='#'
5087 AMDEP_FALSE=
5088 fi
5089
5090
5091
5092
5093
5094
5095 # AC_MSG_NOTICE([Beginning automake initialisation.])
5096 # Stuff for automake
5097 # test to see if srcdir already configured
5098 if test "`cd $srcdir && pwd`" != "`pwd`" &&
5099 test -f $srcdir/config.status; then
5100 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5101 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5102 { (exit 1); exit 1; }; }
5103 fi
5104
5105 # test whether we have cygpath
5106 if test -z "$CYGPATH_W"; then
5107 if (cygpath --version) >/dev/null 2>/dev/null; then
5108 CYGPATH_W='cygpath -w'
5109 else
5110 CYGPATH_W=echo
5111 fi
5112 fi
5113
5114
5115 # Define the identity of the package.
5116 PACKAGE='bonmin'
5117 VERSION='1.8.9'
5118
5119
5120 cat >>confdefs.h <<_ACEOF
5121 #define PACKAGE "$PACKAGE"
5122 _ACEOF
5123
5124
5125 cat >>confdefs.h <<_ACEOF
5126 #define VERSION "$VERSION"
5127 _ACEOF
5128
5129 # Some tools Automake needs.
5130
5131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5132
5133
5134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5135
5136
5137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5138
5139
5140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5141
5142
5143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5144
5145 install_sh=${install_sh-"$am_aux_dir/install-sh"}
5146
5147 # Installed binaries are usually stripped using `strip' when the user
5148 # run `make install-strip'. However `strip' might not be the right
5149 # tool to use in cross-compilation environments, therefore Automake
5150 # will honor the `STRIP' environment variable to overrule this program.
5151 if test "$cross_compiling" != no; then
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}strip; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_prog_STRIP+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 if test -n "$STRIP"; then
5161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176
5177 fi
5178 fi
5179 STRIP=$ac_cv_prog_STRIP
5180 if test -n "$STRIP"; then
5181 echo "$as_me:$LINENO: result: $STRIP" >&5
5182 echo "${ECHO_T}$STRIP" >&6
5183 else
5184 echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6
5186 fi
5187
5188 fi
5189 if test -z "$ac_cv_prog_STRIP"; then
5190 ac_ct_STRIP=$STRIP
5191 # Extract the first word of "strip", so it can be a program name with args.
5192 set dummy strip; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 if test -n "$ac_ct_STRIP"; then
5199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_STRIP="strip"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214
5215 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5216 fi
5217 fi
5218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5219 if test -n "$ac_ct_STRIP"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5221 echo "${ECHO_T}$ac_ct_STRIP" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 fi
5226
5227 STRIP=$ac_ct_STRIP
5228 else
5229 STRIP="$ac_cv_prog_STRIP"
5230 fi
5231
5232 fi
5233 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5234
5235 # We need awk for the "check" target. The system "awk" is bad on
5236 # some platforms.
5237 # Always define AMTAR for backward compatibility.
5238
5239 AMTAR=${AMTAR-"${am_missing_run}tar"}
5240
5241 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5242
5243
5244
5245
5246 depcc="$CC" am_compiler_list=
5247
5248 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5249 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5250 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5254 # We make a subdir and do the tests there. Otherwise we can end up
5255 # making bogus files that we don't know about and never remove. For
5256 # instance it was reported that on HP-UX the gcc test will end up
5257 # making a dummy file named `D' -- because `-MD' means `put the output
5258 # in D'.
5259 mkdir conftest.dir
5260 # Copy depcomp to subdir because otherwise we won't find it if we're
5261 # using a relative directory.
5262 cp "$am_depcomp" conftest.dir
5263 cd conftest.dir
5264 # We will build objects and dependencies in a subdirectory because
5265 # it helps to detect inapplicable dependency modes. For instance
5266 # both Tru64's cc and ICC support -MD to output dependencies as a
5267 # side effect of compilation, but ICC will put the dependencies in
5268 # the current directory while Tru64 will put them in the object
5269 # directory.
5270 mkdir sub
5271
5272 am_cv_CC_dependencies_compiler_type=none
5273 if test "$am_compiler_list" = ""; then
5274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5275 fi
5276 for depmode in $am_compiler_list; do
5277 # Setup a source with many dependencies, because some compilers
5278 # like to wrap large dependency lists on column 80 (with \), and
5279 # we should not choose a depcomp mode which is confused by this.
5280 #
5281 # We need to recreate these files for each test, as the compiler may
5282 # overwrite some of them when testing with obscure command lines.
5283 # This happens at least with the AIX C compiler.
5284 : > sub/conftest.c
5285 for i in 1 2 3 4 5 6; do
5286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5288 # Solaris 8's {/usr,}/bin/sh.
5289 touch sub/conftst$i.h
5290 done
5291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292
5293 case $depmode in
5294 nosideeffect)
5295 # after this tag, mechanisms are not by side-effect, so they'll
5296 # only be used when explicitly requested
5297 if test "x$enable_dependency_tracking" = xyes; then
5298 continue
5299 else
5300 break
5301 fi
5302 ;;
5303 none) break ;;
5304 esac
5305 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5306 # mode. It turns out that the SunPro C++ compiler does not properly
5307 # handle `-M -o', and we need to detect this.
5308 if depmode=$depmode \
5309 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5311 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5312 >/dev/null 2>conftest.err &&
5313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5314 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5316 # icc doesn't choke on unknown options, it will just issue warnings
5317 # or remarks (even with -Werror). So we grep stderr for any message
5318 # that says an option was ignored or not supported.
5319 # When given -MP, icc 7.0 and 7.1 complain thusly:
5320 # icc: Command line warning: ignoring option '-M'; no argument required
5321 # The diagnosis changed in icc 8.0:
5322 # icc: Command line remark: option '-MP' not supported
5323 if (grep 'ignoring option' conftest.err ||
5324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5325 am_cv_CC_dependencies_compiler_type=$depmode
5326 break
5327 fi
5328 fi
5329 done
5330
5331 cd ..
5332 rm -rf conftest.dir
5333 else
5334 am_cv_CC_dependencies_compiler_type=none
5335 fi
5336
5337 fi
5338 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5339 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5340 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5341
5342
5343
5344 if
5345 test "x$enable_dependency_tracking" != xno \
5346 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5347 am__fastdepCC_TRUE=
5348 am__fastdepCC_FALSE='#'
5349 else
5350 am__fastdepCC_TRUE='#'
5351 am__fastdepCC_FALSE=
5352 fi
5353
5354
5355 depcc="$CXX" am_compiler_list=
5356
5357 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5358 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5359 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5363 # We make a subdir and do the tests there. Otherwise we can end up
5364 # making bogus files that we don't know about and never remove. For
5365 # instance it was reported that on HP-UX the gcc test will end up
5366 # making a dummy file named `D' -- because `-MD' means `put the output
5367 # in D'.
5368 mkdir conftest.dir
5369 # Copy depcomp to subdir because otherwise we won't find it if we're
5370 # using a relative directory.
5371 cp "$am_depcomp" conftest.dir
5372 cd conftest.dir
5373 # We will build objects and dependencies in a subdirectory because
5374 # it helps to detect inapplicable dependency modes. For instance
5375 # both Tru64's cc and ICC support -MD to output dependencies as a
5376 # side effect of compilation, but ICC will put the dependencies in
5377 # the current directory while Tru64 will put them in the object
5378 # directory.
5379 mkdir sub
5380
5381 am_cv_CXX_dependencies_compiler_type=none
5382 if test "$am_compiler_list" = ""; then
5383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5384 fi
5385 for depmode in $am_compiler_list; do
5386 # Setup a source with many dependencies, because some compilers
5387 # like to wrap large dependency lists on column 80 (with \), and
5388 # we should not choose a depcomp mode which is confused by this.
5389 #
5390 # We need to recreate these files for each test, as the compiler may
5391 # overwrite some of them when testing with obscure command lines.
5392 # This happens at least with the AIX C compiler.
5393 : > sub/conftest.c
5394 for i in 1 2 3 4 5 6; do
5395 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5396 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5397 # Solaris 8's {/usr,}/bin/sh.
5398 touch sub/conftst$i.h
5399 done
5400 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5401
5402 case $depmode in
5403 nosideeffect)
5404 # after this tag, mechanisms are not by side-effect, so they'll
5405 # only be used when explicitly requested
5406 if test "x$enable_dependency_tracking" = xyes; then
5407 continue
5408 else
5409 break
5410 fi
5411 ;;
5412 none) break ;;
5413 esac
5414 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5415 # mode. It turns out that the SunPro C++ compiler does not properly
5416 # handle `-M -o', and we need to detect this.
5417 if depmode=$depmode \
5418 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5419 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5420 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5421 >/dev/null 2>conftest.err &&
5422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5423 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5425 # icc doesn't choke on unknown options, it will just issue warnings
5426 # or remarks (even with -Werror). So we grep stderr for any message
5427 # that says an option was ignored or not supported.
5428 # When given -MP, icc 7.0 and 7.1 complain thusly:
5429 # icc: Command line warning: ignoring option '-M'; no argument required
5430 # The diagnosis changed in icc 8.0:
5431 # icc: Command line remark: option '-MP' not supported
5432 if (grep 'ignoring option' conftest.err ||
5433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5434 am_cv_CXX_dependencies_compiler_type=$depmode
5435 break
5436 fi
5437 fi
5438 done
5439
5440 cd ..
5441 rm -rf conftest.dir
5442 else
5443 am_cv_CXX_dependencies_compiler_type=none
5444 fi
5445
5446 fi
5447 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5448 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5449 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5450
5451
5452
5453 if
5454 test "x$enable_dependency_tracking" != xno \
5455 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5456 am__fastdepCXX_TRUE=
5457 am__fastdepCXX_FALSE='#'
5458 else
5459 am__fastdepCXX_TRUE='#'
5460 am__fastdepCXX_FALSE=
5461 fi
5462
5463
5464
5465 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5466 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5467 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5468 if test "${enable_maintainer_mode+set}" = set; then
5469 enableval="$enable_maintainer_mode"
5470 USE_MAINTAINER_MODE=$enableval
5471 else
5472 USE_MAINTAINER_MODE=no
5473 fi;
5474 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5475 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5476
5477
5478 if test $USE_MAINTAINER_MODE = yes; then
5479 MAINTAINER_MODE_TRUE=
5480 MAINTAINER_MODE_FALSE='#'
5481 else
5482 MAINTAINER_MODE_TRUE='#'
5483 MAINTAINER_MODE_FALSE=
5484 fi
5485
5486 MAINT=$MAINTAINER_MODE_TRUE
5487
5488
5489
5490 coin_have_externals=no
5491 if test "$enable_maintainer_mode" = yes; then
5492
5493 # If maintainer mode is chosen, we make sure that the correct versions
5494 # of the tools are used, and that we know where libtool.m4 is (to
5495 # recreate acinclude.m4)
5496
5497
5498 LIBTOOLM4=
5499 # Normally, $HOME
5500 AUTOTOOLS_DFLT=$HOME
5501
5502 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5503 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5504 if test "${ac_cv_use_correct_autotools+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 ac_cv_use_correct_autotools=check
5508 fi
5509 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5510 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5511
5512 if test $ac_cv_use_correct_autotools = check; then
5513 ac_cv_use_correct_autotools=yes
5514 # Check if we have autoconf
5515 # Extract the first word of "autoconf", so it can be a program name with args.
5516 set dummy autoconf; ac_word=$2
5517 echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5519 if test "${ac_cv_prog_have_autoconf+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 if test -n "$have_autoconf"; then
5523 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_have_autoconf="yes"
5533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538
5539 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5540 fi
5541 fi
5542 have_autoconf=$ac_cv_prog_have_autoconf
5543 if test -n "$have_autoconf"; then
5544 echo "$as_me:$LINENO: result: $have_autoconf" >&5
5545 echo "${ECHO_T}$have_autoconf" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6
5549 fi
5550
5551 if test $have_autoconf = no; then
5552 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5553 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5554 { (exit 1); exit 1; }; }
5555 fi
5556
5557 # Check whether autoconf is the correct version
5558 correct_version='2.59'
5559 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5560 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5561 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5562 autoconf --version > confauto.out 2>&1
5563 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5564 echo "$as_me:$LINENO: result: yes" >&5
5565 echo "${ECHO_T}yes" >&6
5566 else
5567 rm -f confauto.out
5568 echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6
5570 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5571 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5572 { (exit 1); exit 1; }; }
5573 fi
5574 rm -f confauto.out
5575
5576 # Check if the executable autoconf is picked up from the correct location
5577 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5578 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5579 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5580 autoconf_dir=`cd $autoconf_dir; pwd`
5581 if test x$AUTOTOOLS_DIR = x; then
5582 want_dir=$AUTOTOOLS_DFLT/bin
5583 else
5584 want_dir=$AUTOTOOLS_DIR/bin
5585 fi
5586 if test $autoconf_dir = `cd $want_dir; pwd`; then
5587 echo "$as_me:$LINENO: result: yes" >&5
5588 echo "${ECHO_T}yes" >&6
5589 else
5590 rm -f confauto.out
5591 echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6
5593 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5594 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5595 { (exit 1); exit 1; }; }
5596 fi
5597
5598 # Check if we have automake
5599 # Extract the first word of "automake", so it can be a program name with args.
5600 set dummy automake; ac_word=$2
5601 echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603 if test "${ac_cv_prog_have_automake+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606 if test -n "$have_automake"; then
5607 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_have_automake="yes"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622
5623 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5624 fi
5625 fi
5626 have_automake=$ac_cv_prog_have_automake
5627 if test -n "$have_automake"; then
5628 echo "$as_me:$LINENO: result: $have_automake" >&5
5629 echo "${ECHO_T}$have_automake" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5633 fi
5634
5635 if test $have_automake = no; then
5636 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5637 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5638 { (exit 1); exit 1; }; }
5639 fi
5640
5641 # Check whether automake is the correct version
5642 correct_version='1.9.6'
5643 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5644 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5645 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5646 automake --version > confauto.out 2>&1
5647 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6
5650 else
5651 rm -f confauto.out
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5655 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5656 { (exit 1); exit 1; }; }
5657 fi
5658 rm -f confauto.out
5659
5660 # Check if the executable automake is picked up from the correct location
5661 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5662 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5663 automake_dir=`which automake | sed -e 's=/automake=='`
5664 automake_dir=`cd $automake_dir; pwd`
5665 if test x$AUTOTOOLS_DIR = x; then
5666 want_dir=$AUTOTOOLS_DFLT/bin
5667 else
5668 want_dir=$AUTOTOOLS_DIR/bin
5669 fi
5670 if test $automake_dir = `cd $want_dir; pwd`; then
5671 echo "$as_me:$LINENO: result: yes" >&5
5672 echo "${ECHO_T}yes" >&6
5673 else
5674 rm -f confauto.out
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5678 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5679 { (exit 1); exit 1; }; }
5680 fi
5681
5682 # Check if this is the correct version of libtool (with escaped dots)
5683 if test x$AUTOTOOLS_DIR = x; then
5684 want_dir=$AUTOTOOLS_DFLT/share
5685 else
5686 want_dir=$AUTOTOOLS_DIR/share
5687 fi
5688 correct_version='1.5.22'
5689 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5690 if test -r $want_dir/libtool/ltmain.sh; then
5691 have_ltmain=yes
5692 :
5693 else
5694 have_ltmain=no
5695 :
5696 fi
5697
5698 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5699 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5700 if test $have_ltmain = yes; then
5701 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5702 echo "$as_me:$LINENO: result: yes" >&5
5703 echo "${ECHO_T}yes" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5708 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5709 { (exit 1); exit 1; }; }
5710 fi
5711 else
5712 echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6
5714 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5715 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5716 { (exit 1); exit 1; }; }
5717 fi
5718 fi
5719
5720 # Check if we can find the libtool file
5721 if test x$AUTOTOOLS_DIR = x; then
5722 want_dir=$AUTOTOOLS_DFLT/share
5723 else
5724 want_dir=$AUTOTOOLS_DIR/share
5725 fi
5726 if test -r $want_dir/aclocal/libtool.m4; then
5727 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5728 :
5729 else
5730 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5731 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5732 { (exit 1); exit 1; }; }
5733 :
5734 fi
5735
5736
5737 # Check if we have an Dependencies file
5738 if test -r $srcdir/Dependencies; then
5739 coin_have_externals=yes
5740 fi
5741 # Check if subversion is installed and understands https
5742 # Extract the first word of "svn", so it can be a program name with args.
5743 set dummy svn; ac_word=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_have_svn+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 if test -n "$have_svn"; then
5750 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_have_svn="yes"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765
5766 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5767 fi
5768 fi
5769 have_svn=$ac_cv_prog_have_svn
5770 if test -n "$have_svn"; then
5771 echo "$as_me:$LINENO: result: $have_svn" >&5
5772 echo "${ECHO_T}$have_svn" >&6
5773 else
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777
5778 if test x$have_svn = xyes; then
5779 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5780 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5781 if test "${ac_cv_svn_understands_https+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 svn --version > confauto.out 2>&1
5785 if $EGREP https confauto.out >/dev/null 2>&1; then
5786 ac_cv_svn_understands_https=yes
5787 else
5788 ac_cv_svn_understands_https=no
5789 have_svn=no
5790 ac_cv_prog_have_svn=no
5791 fi
5792 rm -f confauto.out
5793 fi
5794 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5795 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5796 fi
5797
5798 # Find the location of the BuildTools directory
5799 BUILDTOOLSDIR=
5800 if test -r $srcdir/BuildTools/coin.m4; then
5801 BUILDTOOLSDIR=$srcdir/BuildTools
5802 elif test -r $srcdir/../BuildTools/coin.m4; then
5803 BUILDTOOLSDIR=$srcdir/../BuildTools
5804 elif test -r $srcdir/../../BuildTools/coin.m4; then
5805 BUILDTOOLSDIR=$srcdir/../../BuildTools
5806 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5807 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5808 else
5809 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5810 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5811 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5812 fi
5813
5814
5815 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5816 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5817 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5818 fi
5819
5820 # The following variable is set to the name of the directory where
5821 # the autotool scripts are located
5822
5823 AUX_DIR=$ac_aux_dir
5824 fi
5825
5826 # helpful variable for the base directory of this package
5827 abs_source_dir=`cd $srcdir; pwd`
5828
5829
5830 # Stuff for example Makefiles
5831 if test x$prefix = xNONE; then
5832 full_prefix=$ac_default_prefix
5833 else
5834 full_prefix=$prefix
5835 fi
5836
5837
5838 abs_lib_dir=$full_prefix/lib
5839
5840 abs_include_dir=$full_prefix/include
5841
5842 abs_bin_dir=$full_prefix/bin
5843
5844
5845
5846 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5847 HAVE_EXTERNALS_TRUE=
5848 HAVE_EXTERNALS_FALSE='#'
5849 else
5850 HAVE_EXTERNALS_TRUE='#'
5851 HAVE_EXTERNALS_FALSE=
5852 fi
5853
5854
5855 # AC_MSG_NOTICE([End automake initialisation.])
5856
5857
5858
5859 LIBTOOL=
5860 if test -f ../libtool; then
5861 coin_config_dir=..
5862 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5863 fi
5864 if test "x$LIBTOOL" = x; then
5865 if test -f ../../libtool; then
5866 coin_config_dir=../..
5867 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5868 fi
5869 fi
5870
5871 if test "x$LIBTOOL" = x; then
5872 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5873 # Stuff for libtool
5874 # Check whether --enable-shared or --disable-shared was given.
5875 if test "${enable_shared+set}" = set; then
5876 enableval="$enable_shared"
5877 p=${PACKAGE-default}
5878 case $enableval in
5879 yes) enable_shared=yes ;;
5880 no) enable_shared=no ;;
5881 *)
5882 enable_shared=no
5883 # Look at the argument we got. We use all the common list separators.
5884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5885 for pkg in $enableval; do
5886 IFS="$lt_save_ifs"
5887 if test "X$pkg" = "X$p"; then
5888 enable_shared=yes
5889 fi
5890 done
5891 IFS="$lt_save_ifs"
5892 ;;
5893 esac
5894 else
5895 enable_shared=yes
5896 fi;
5897
5898 # Check whether --enable-fast-install or --disable-fast-install was given.
5899 if test "${enable_fast_install+set}" = set; then
5900 enableval="$enable_fast_install"
5901 p=${PACKAGE-default}
5902 case $enableval in
5903 yes) enable_fast_install=yes ;;
5904 no) enable_fast_install=no ;;
5905 *)
5906 enable_fast_install=no
5907 # Look at the argument we got. We use all the common list separators.
5908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5909 for pkg in $enableval; do
5910 IFS="$lt_save_ifs"
5911 if test "X$pkg" = "X$p"; then
5912 enable_fast_install=yes
5913 fi
5914 done
5915 IFS="$lt_save_ifs"
5916 ;;
5917 esac
5918 else
5919 enable_fast_install=yes
5920 fi;
5921
5922 echo "$as_me:$LINENO: checking host system type" >&5
5923 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5924 if test "${ac_cv_host+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 ac_cv_host_alias=$host_alias
5928 test -z "$ac_cv_host_alias" &&
5929 ac_cv_host_alias=$ac_cv_build_alias
5930 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5931 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5932 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5933 { (exit 1); exit 1; }; }
5934
5935 fi
5936 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5937 echo "${ECHO_T}$ac_cv_host" >&6
5938 host=$ac_cv_host
5939 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5940 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5941 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5942
5943
5944 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5945 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5946 if test "${lt_cv_path_SED+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 # Loop through the user's path and test for sed and gsed.
5950 # Then use that list of sed's as ones to test for truncation.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for lt_ac_prog in sed gsed; do
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5959 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5960 fi
5961 done
5962 done
5963 done
5964 lt_ac_max=0
5965 lt_ac_count=0
5966 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5967 # along with /bin/sed that truncates output.
5968 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5969 test ! -f $lt_ac_sed && continue
5970 cat /dev/null > conftest.in
5971 lt_ac_count=0
5972 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5973 # Check for GNU sed and select it if it is found.
5974 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5975 lt_cv_path_SED=$lt_ac_sed
5976 break
5977 fi
5978 while true; do
5979 cat conftest.in conftest.in >conftest.tmp
5980 mv conftest.tmp conftest.in
5981 cp conftest.in conftest.nl
5982 echo >>conftest.nl
5983 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5984 cmp -s conftest.out conftest.nl || break
5985 # 10000 chars as input seems more than enough
5986 test $lt_ac_count -gt 10 && break
5987 lt_ac_count=`expr $lt_ac_count + 1`
5988 if test $lt_ac_count -gt $lt_ac_max; then
5989 lt_ac_max=$lt_ac_count
5990 lt_cv_path_SED=$lt_ac_sed
5991 fi
5992 done
5993 done
5994
5995 fi
5996
5997 SED=$lt_cv_path_SED
5998 echo "$as_me:$LINENO: result: $SED" >&5
5999 echo "${ECHO_T}$SED" >&6
6000
6001
6002 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6003 if test "${with_gnu_ld+set}" = set; then
6004 withval="$with_gnu_ld"
6005 test "$withval" = no || with_gnu_ld=yes
6006 else
6007 with_gnu_ld=no
6008 fi;
6009 ac_prog=ld
6010 if test "$GCC" = yes; then
6011 # Check if gcc -print-prog-name=ld gives a path.
6012 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6013 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6014 case $host in
6015 *-*-mingw*)
6016 # gcc leaves a trailing carriage return which upsets mingw
6017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6018 *)
6019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6020 esac
6021 case $ac_prog in
6022 # Accept absolute paths.
6023 [\\/]* | ?:[\\/]*)
6024 re_direlt='/[^/][^/]*/\.\./'
6025 # Canonicalize the pathname of ld
6026 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6027 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6028 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6029 done
6030 test -z "$LD" && LD="$ac_prog"
6031 ;;
6032 "")
6033 # If it fails, then pretend we aren't using GCC.
6034 ac_prog=ld
6035 ;;
6036 *)
6037 # If it is relative, then search for the first ld in PATH.
6038 with_gnu_ld=unknown
6039 ;;
6040 esac
6041 elif test "$with_gnu_ld" = yes; then
6042 echo "$as_me:$LINENO: checking for GNU ld" >&5
6043 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6044 else
6045 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6046 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6047 fi
6048 if test "${lt_cv_path_LD+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 if test -z "$LD"; then
6052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053 for ac_dir in $PATH; do
6054 IFS="$lt_save_ifs"
6055 test -z "$ac_dir" && ac_dir=.
6056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6057 lt_cv_path_LD="$ac_dir/$ac_prog"
6058 # Check to see if the program is GNU ld. I'd rather use --version,
6059 # but apparently some variants of GNU ld only accept -v.
6060 # Break only if it was the GNU/non-GNU ld that we prefer.
6061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6062 *GNU* | *'with BFD'*)
6063 test "$with_gnu_ld" != no && break
6064 ;;
6065 *)
6066 test "$with_gnu_ld" != yes && break
6067 ;;
6068 esac
6069 fi
6070 done
6071 IFS="$lt_save_ifs"
6072 else
6073 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6074 fi
6075 fi
6076
6077 LD="$lt_cv_path_LD"
6078 if test -n "$LD"; then
6079 echo "$as_me:$LINENO: result: $LD" >&5
6080 echo "${ECHO_T}$LD" >&6
6081 else
6082 echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6
6084 fi
6085 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6086 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6087 { (exit 1); exit 1; }; }
6088 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6089 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6090 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6094 case `$LD -v 2>&1 </dev/null` in
6095 *GNU* | *'with BFD'*)
6096 lt_cv_prog_gnu_ld=yes
6097 ;;
6098 *)
6099 lt_cv_prog_gnu_ld=no
6100 ;;
6101 esac
6102 fi
6103 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6104 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6105 with_gnu_ld=$lt_cv_prog_gnu_ld
6106
6107
6108 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6109 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6110 if test "${lt_cv_ld_reload_flag+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 lt_cv_ld_reload_flag='-r'
6114 fi
6115 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6116 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6117 reload_flag=$lt_cv_ld_reload_flag
6118 case $reload_flag in
6119 "" | " "*) ;;
6120 *) reload_flag=" $reload_flag" ;;
6121 esac
6122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6123 case $host_os in
6124 darwin*)
6125 if test "$GCC" = yes; then
6126 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6127 else
6128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6129 fi
6130 ;;
6131 esac
6132
6133 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6134 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6135 if test "${lt_cv_path_NM+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 if test -n "$NM"; then
6139 # Let the user override the test.
6140 lt_cv_path_NM="$NM"
6141 else
6142 lt_nm_to_check="${ac_tool_prefix}nm"
6143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6144 lt_nm_to_check="$lt_nm_to_check nm"
6145 fi
6146 for lt_tmp_nm in $lt_nm_to_check; do
6147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6149 IFS="$lt_save_ifs"
6150 test -z "$ac_dir" && ac_dir=.
6151 tmp_nm="$ac_dir/$lt_tmp_nm"
6152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6153 # Check to see if the nm accepts a BSD-compat flag.
6154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6155 # nm: unknown option "B" ignored
6156 # Tru64's nm complains that /dev/null is an invalid object file
6157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6158 */dev/null* | *'Invalid file or object type'*)
6159 lt_cv_path_NM="$tmp_nm -B"
6160 break
6161 ;;
6162 *)
6163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6164 */dev/null*)
6165 lt_cv_path_NM="$tmp_nm -p"
6166 break
6167 ;;
6168 *)
6169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6170 continue # so that we can try to find one that supports BSD flags
6171 ;;
6172 esac
6173 ;;
6174 esac
6175 fi
6176 done
6177 IFS="$lt_save_ifs"
6178 done
6179 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6180 fi
6181 fi
6182 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6183 echo "${ECHO_T}$lt_cv_path_NM" >&6
6184 NM="$lt_cv_path_NM"
6185
6186 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6187 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6188 if test "${lt_cv_deplibs_check_method+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 lt_cv_file_magic_cmd='$MAGIC_CMD'
6192 lt_cv_file_magic_test_file=
6193 lt_cv_deplibs_check_method='unknown'
6194 # Need to set the preceding variable on all platforms that support
6195 # interlibrary dependencies.
6196 # 'none' -- dependencies not supported.
6197 # `unknown' -- same as none, but documents that we really don't know.
6198 # 'pass_all' -- all dependencies passed with no checks.
6199 # 'test_compile' -- check by making test program.
6200 # 'file_magic [[regex]]' -- check by looking for files in library path
6201 # which responds to the $file_magic_cmd with a given extended regex.
6202 # If you have `file' or equivalent on your system and you're not sure
6203 # whether `pass_all' will *always* work, you probably want this one.
6204
6205 case $host_os in
6206 aix4* | aix5*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210 beos*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214 bsdi[45]*)
6215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6216 lt_cv_file_magic_cmd='/usr/bin/file -L'
6217 lt_cv_file_magic_test_file=/shlib/libc.so
6218 ;;
6219
6220 cygwin*)
6221 # func_win32_libid is a shell function defined in ltmain.sh
6222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6223 lt_cv_file_magic_cmd='func_win32_libid'
6224 ;;
6225
6226 mingw* | pw32*)
6227 # Base MSYS/MinGW do not provide the 'file' command needed by
6228 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6230 lt_cv_file_magic_cmd='$OBJDUMP -f'
6231 ;;
6232
6233 darwin* | rhapsody*)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236
6237 freebsd* | kfreebsd*-gnu | dragonfly*)
6238 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6239 case $host_cpu in
6240 i*86 )
6241 # Not sure whether the presence of OpenBSD here was a mistake.
6242 # Let's accept both of them until this is cleared up.
6243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6244 lt_cv_file_magic_cmd=/usr/bin/file
6245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6246 ;;
6247 esac
6248 else
6249 lt_cv_deplibs_check_method=pass_all
6250 fi
6251 ;;
6252
6253 gnu*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 hpux10.20* | hpux11*)
6258 lt_cv_file_magic_cmd=/usr/bin/file
6259 case $host_cpu in
6260 ia64*)
6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6263 ;;
6264 hppa*64*)
6265 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]'
6266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6267 ;;
6268 *)
6269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6271 ;;
6272 esac
6273 ;;
6274
6275 interix3*)
6276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6278 ;;
6279
6280 irix5* | irix6* | nonstopux*)
6281 case $LD in
6282 *-32|*"-32 ") libmagic=32-bit;;
6283 *-n32|*"-n32 ") libmagic=N32;;
6284 *-64|*"-64 ") libmagic=64-bit;;
6285 *) libmagic=never-match;;
6286 esac
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 # This must be Linux ELF.
6291 linux*)
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295 netbsd*)
6296 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6298 else
6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6300 fi
6301 ;;
6302
6303 newos6*)
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6305 lt_cv_file_magic_cmd=/usr/bin/file
6306 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6307 ;;
6308
6309 nto-qnx*)
6310 lt_cv_deplibs_check_method=unknown
6311 ;;
6312
6313 openbsd*)
6314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6316 else
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318 fi
6319 ;;
6320
6321 osf3* | osf4* | osf5*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325 solaris*)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329 sysv4 | sysv4.3*)
6330 case $host_vendor in
6331 motorola)
6332 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]'
6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6334 ;;
6335 ncr)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338 sequent)
6339 lt_cv_file_magic_cmd='/bin/file'
6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6341 ;;
6342 sni)
6343 lt_cv_file_magic_cmd='/bin/file'
6344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6345 lt_cv_file_magic_test_file=/lib/libc.so
6346 ;;
6347 siemens)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350 pc)
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353 esac
6354 ;;
6355
6356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359 esac
6360
6361 fi
6362 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6363 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6364 file_magic_cmd=$lt_cv_file_magic_cmd
6365 deplibs_check_method=$lt_cv_deplibs_check_method
6366 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6367
6368
6369
6370
6371 # If no C compiler was specified, use CC.
6372 LTCC=${LTCC-"$CC"}
6373
6374 # If no C compiler flags were specified, use CFLAGS.
6375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6376
6377 # Allow CC to be a program name with arguments.
6378 compiler=$CC
6379
6380 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6381 if test "${enable_libtool_lock+set}" = set; then
6382 enableval="$enable_libtool_lock"
6383
6384 fi;
6385 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6386
6387 # Some flags need to be propagated to the compiler or linker for good
6388 # libtool support.
6389 case $host in
6390 ia64-*-hpux*)
6391 # Find out which ABI we are using.
6392 echo 'int i;' > conftest.$ac_ext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; then
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *ELF-32*)
6400 HPUX_IA64_MODE="32"
6401 ;;
6402 *ELF-64*)
6403 HPUX_IA64_MODE="64"
6404 ;;
6405 esac
6406 fi
6407 rm -rf conftest*
6408 ;;
6409 *-*-irix6*)
6410 # Find out which ABI we are using.
6411 echo '#line 6411 "configure"' > conftest.$ac_ext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; then
6417 if test "$lt_cv_prog_gnu_ld" = yes; then
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *32-bit*)
6420 LD="${LD-ld} -melf32bsmip"
6421 ;;
6422 *N32*)
6423 LD="${LD-ld} -melf32bmipn32"
6424 ;;
6425 *64-bit*)
6426 LD="${LD-ld} -melf64bmip"
6427 ;;
6428 esac
6429 else
6430 case `/usr/bin/file conftest.$ac_objext` in
6431 *32-bit*)
6432 LD="${LD-ld} -32"
6433 ;;
6434 *N32*)
6435 LD="${LD-ld} -n32"
6436 ;;
6437 *64-bit*)
6438 LD="${LD-ld} -64"
6439 ;;
6440 esac
6441 fi
6442 fi
6443 rm -rf conftest*
6444 ;;
6445
6446 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6447 # Find out which ABI we are using.
6448 echo 'int i;' > conftest.$ac_ext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; then
6454 case `/usr/bin/file conftest.o` in
6455 *32-bit*)
6456 case $host in
6457 x86_64-*linux*)
6458 LD="${LD-ld} -m elf_i386"
6459 ;;
6460 ppc64-*linux*|powerpc64-*linux*)
6461 LD="${LD-ld} -m elf32ppclinux"
6462 ;;
6463 s390x-*linux*)
6464 LD="${LD-ld} -m elf_s390"
6465 ;;
6466 sparc64-*linux*)
6467 LD="${LD-ld} -m elf32_sparc"
6468 ;;
6469 esac
6470 ;;
6471 *64-bit*)
6472 case $host in
6473 x86_64-*linux*)
6474 LD="${LD-ld} -m elf_x86_64"
6475 ;;
6476 ppc*-*linux*|powerpc*-*linux*)
6477 LD="${LD-ld} -m elf64ppc"
6478 ;;
6479 s390*-*linux*)
6480 LD="${LD-ld} -m elf64_s390"
6481 ;;
6482 sparc*-*linux*)
6483 LD="${LD-ld} -m elf64_sparc"
6484 ;;
6485 esac
6486 ;;
6487 esac
6488 fi
6489 rm -rf conftest*
6490 ;;
6491
6492 *-*-sco3.2v5*)
6493 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6494 SAVE_CFLAGS="$CFLAGS"
6495 CFLAGS="$CFLAGS -belf"
6496 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6497 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6498 if test "${lt_cv_cc_needs_belf+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501 ac_ext=c
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513
6514 int
6515 main ()
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 rm -f conftest.$ac_objext conftest$ac_exeext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest$ac_exeext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 lt_cv_cc_needs_belf=yes
6545 else
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 lt_cv_cc_needs_belf=no
6550 fi
6551 rm -f conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553 ac_ext=c
6554 ac_cpp='$CPP $CPPFLAGS'
6555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558
6559 fi
6560 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6561 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6564 CFLAGS="$SAVE_CFLAGS"
6565 fi
6566 ;;
6567 sparc*-*solaris*)
6568 # Find out which ABI we are using.
6569 echo 'int i;' > conftest.$ac_ext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; then
6575 case `/usr/bin/file conftest.o` in
6576 *64-bit*)
6577 case $lt_cv_prog_gnu_ld in
6578 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6579 *) LD="${LD-ld} -64" ;;
6580 esac
6581 ;;
6582 esac
6583 fi
6584 rm -rf conftest*
6585 ;;
6586
6587
6588 esac
6589
6590 need_locks="$enable_libtool_lock"
6591
6592
6593 ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6599 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6600 # On Suns, sometimes $CPP names a directory.
6601 if test -n "$CPP" && test -d "$CPP"; then
6602 CPP=
6603 fi
6604 if test -z "$CPP"; then
6605 if test "${ac_cv_prog_CPP+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608 # Double quotes because CPP needs to be expanded
6609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6610 do
6611 ac_preproc_ok=false
6612 for ac_c_preproc_warn_flag in '' yes
6613 do
6614 # Use a header file that comes with gcc, so configuring glibc
6615 # with a fresh cross-compiler works.
6616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6617 # <limits.h> exists even on freestanding compilers.
6618 # On the NeXT, cc -E runs the code through the compiler's parser,
6619 # not just through cpp. "Syntax error" is here to catch this case.
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #ifdef __STDC__
6627 # include <limits.h>
6628 #else
6629 # include <assert.h>
6630 #endif
6631 Syntax error
6632 _ACEOF
6633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } >/dev/null; then
6641 if test -s conftest.err; then
6642 ac_cpp_err=$ac_c_preproc_warn_flag
6643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6644 else
6645 ac_cpp_err=
6646 fi
6647 else
6648 ac_cpp_err=yes
6649 fi
6650 if test -z "$ac_cpp_err"; then
6651 :
6652 else
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656 # Broken: fails on valid input.
6657 continue
6658 fi
6659 rm -f conftest.err conftest.$ac_ext
6660
6661 # OK, works on sane cases. Now check whether non-existent headers
6662 # can be detected and how.
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <ac_nonexistent.h>
6670 _ACEOF
6671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } >/dev/null; then
6679 if test -s conftest.err; then
6680 ac_cpp_err=$ac_c_preproc_warn_flag
6681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6682 else
6683 ac_cpp_err=
6684 fi
6685 else
6686 ac_cpp_err=yes
6687 fi
6688 if test -z "$ac_cpp_err"; then
6689 # Broken: success on invalid input.
6690 continue
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 # Passes both tests.
6696 ac_preproc_ok=:
6697 break
6698 fi
6699 rm -f conftest.err conftest.$ac_ext
6700
6701 done
6702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6703 rm -f conftest.err conftest.$ac_ext
6704 if $ac_preproc_ok; then
6705 break
6706 fi
6707
6708 done
6709 ac_cv_prog_CPP=$CPP
6710
6711 fi
6712 CPP=$ac_cv_prog_CPP
6713 else
6714 ac_cv_prog_CPP=$CPP
6715 fi
6716 echo "$as_me:$LINENO: result: $CPP" >&5
6717 echo "${ECHO_T}$CPP" >&6
6718 ac_preproc_ok=false
6719 for ac_c_preproc_warn_flag in '' yes
6720 do
6721 # Use a header file that comes with gcc, so configuring glibc
6722 # with a fresh cross-compiler works.
6723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6724 # <limits.h> exists even on freestanding compilers.
6725 # On the NeXT, cc -E runs the code through the compiler's parser,
6726 # not just through cpp. "Syntax error" is here to catch this case.
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #ifdef __STDC__
6734 # include <limits.h>
6735 #else
6736 # include <assert.h>
6737 #endif
6738 Syntax error
6739 _ACEOF
6740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } >/dev/null; then
6748 if test -s conftest.err; then
6749 ac_cpp_err=$ac_c_preproc_warn_flag
6750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6751 else
6752 ac_cpp_err=
6753 fi
6754 else
6755 ac_cpp_err=yes
6756 fi
6757 if test -z "$ac_cpp_err"; then
6758 :
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 # Broken: fails on valid input.
6764 continue
6765 fi
6766 rm -f conftest.err conftest.$ac_ext
6767
6768 # OK, works on sane cases. Now check whether non-existent headers
6769 # can be detected and how.
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 #include <ac_nonexistent.h>
6777 _ACEOF
6778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } >/dev/null; then
6786 if test -s conftest.err; then
6787 ac_cpp_err=$ac_c_preproc_warn_flag
6788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6789 else
6790 ac_cpp_err=
6791 fi
6792 else
6793 ac_cpp_err=yes
6794 fi
6795 if test -z "$ac_cpp_err"; then
6796 # Broken: success on invalid input.
6797 continue
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 # Passes both tests.
6803 ac_preproc_ok=:
6804 break
6805 fi
6806 rm -f conftest.err conftest.$ac_ext
6807
6808 done
6809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6810 rm -f conftest.err conftest.$ac_ext
6811 if $ac_preproc_ok; then
6812 :
6813 else
6814 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6815 See \`config.log' for more details." >&5
6816 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6817 See \`config.log' for more details." >&2;}
6818 { (exit 1); exit 1; }; }
6819 fi
6820
6821 ac_ext=c
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826
6827
6828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6830 if test "${ac_cv_header_stdc+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <stdlib.h>
6840 #include <stdarg.h>
6841 #include <string.h>
6842 #include <float.h>
6843
6844 int
6845 main ()
6846 {
6847
6848 ;
6849 return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_header_stdc=yes
6875 else
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879 ac_cv_header_stdc=no
6880 fi
6881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882
6883 if test $ac_cv_header_stdc = yes; then
6884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6885 cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h. */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 #include <string.h>
6892
6893 _ACEOF
6894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6895 $EGREP "memchr" >/dev/null 2>&1; then
6896 :
6897 else
6898 ac_cv_header_stdc=no
6899 fi
6900 rm -f conftest*
6901
6902 fi
6903
6904 if test $ac_cv_header_stdc = yes; then
6905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 #include <stdlib.h>
6913
6914 _ACEOF
6915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916 $EGREP "free" >/dev/null 2>&1; then
6917 :
6918 else
6919 ac_cv_header_stdc=no
6920 fi
6921 rm -f conftest*
6922
6923 fi
6924
6925 if test $ac_cv_header_stdc = yes; then
6926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6927 if test "$cross_compiling" = yes; then
6928 :
6929 else
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 #include <ctype.h>
6937 #if ((' ' & 0x0FF) == 0x020)
6938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6940 #else
6941 # define ISLOWER(c) \
6942 (('a' <= (c) && (c) <= 'i') \
6943 || ('j' <= (c) && (c) <= 'r') \
6944 || ('s' <= (c) && (c) <= 'z'))
6945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6946 #endif
6947
6948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6949 int
6950 main ()
6951 {
6952 int i;
6953 for (i = 0; i < 256; i++)
6954 if (XOR (islower (i), ISLOWER (i))
6955 || toupper (i) != TOUPPER (i))
6956 exit(2);
6957 exit (0);
6958 }
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 :
6972 else
6973 echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ( exit $ac_status )
6978 ac_cv_header_stdc=no
6979 fi
6980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 fi
6983 fi
6984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6986 if test $ac_cv_header_stdc = yes; then
6987
6988 cat >>confdefs.h <<\_ACEOF
6989 #define STDC_HEADERS 1
6990 _ACEOF
6991
6992 fi
6993
6994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7005 inttypes.h stdint.h unistd.h
7006 do
7007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7008 echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 $ac_includes_default
7020
7021 #include <$ac_header>
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 eval "$as_ac_Header=yes"
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 eval "$as_ac_Header=no"
7051 fi
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 fi
7054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7059 _ACEOF
7060
7061 fi
7062
7063 done
7064
7065
7066
7067 for ac_header in dlfcn.h
7068 do
7069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7071 echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 fi
7076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7078 else
7079 # Is the header compilable?
7080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7089 #include <$ac_header>
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093 (eval $ac_compile) 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -z "$ac_c_werror_flag"
7101 || test ! -s conftest.err'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; } &&
7107 { ac_try='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_header_compiler=yes
7114 else
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118 ac_header_compiler=no
7119 fi
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7122 echo "${ECHO_T}$ac_header_compiler" >&6
7123
7124 # Is the header present?
7125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h. */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 #include <$ac_header>
7134 _ACEOF
7135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } >/dev/null; then
7143 if test -s conftest.err; then
7144 ac_cpp_err=$ac_c_preproc_warn_flag
7145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7146 else
7147 ac_cpp_err=
7148 fi
7149 else
7150 ac_cpp_err=yes
7151 fi
7152 if test -z "$ac_cpp_err"; then
7153 ac_header_preproc=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_header_preproc=no
7159 fi
7160 rm -f conftest.err conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7162 echo "${ECHO_T}$ac_header_preproc" >&6
7163
7164 # So? What about this header?
7165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7166 yes:no: )
7167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7171 ac_header_preproc=yes
7172 ;;
7173 no:yes:* )
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7186 (
7187 cat <<\_ASBOX
7188 ## --------------------------------------- ##
7189 ## Report this to [email protected] ##
7190 ## --------------------------------------- ##
7191 _ASBOX
7192 ) |
7193 sed "s/^/$as_me: WARNING: /" >&2
7194 ;;
7195 esac
7196 echo "$as_me:$LINENO: checking for $ac_header" >&5
7197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 eval "$as_ac_Header=\$ac_header_preproc"
7202 fi
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7205
7206 fi
7207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7210 _ACEOF
7211
7212 fi
7213
7214 done
7215
7216
7217
7218 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7219 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7220 (test "X$CXX" != "Xg++"))) ; then
7221 ac_ext=cc
7222 ac_cpp='$CXXCPP $CPPFLAGS'
7223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7226 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7227 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7228 if test -z "$CXXCPP"; then
7229 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 # Double quotes because CXXCPP needs to be expanded
7233 for CXXCPP in "$CXX -E" "/lib/cpp"
7234 do
7235 ac_preproc_ok=false
7236 for ac_cxx_preproc_warn_flag in '' yes
7237 do
7238 # Use a header file that comes with gcc, so configuring glibc
7239 # with a fresh cross-compiler works.
7240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7241 # <limits.h> exists even on freestanding compilers.
7242 # On the NeXT, cc -E runs the code through the compiler's parser,
7243 # not just through cpp. "Syntax error" is here to catch this case.
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #ifdef __STDC__
7251 # include <limits.h>
7252 #else
7253 # include <assert.h>
7254 #endif
7255 Syntax error
7256 _ACEOF
7257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } >/dev/null; then
7265 if test -s conftest.err; then
7266 ac_cpp_err=$ac_cxx_preproc_warn_flag
7267 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7268 else
7269 ac_cpp_err=
7270 fi
7271 else
7272 ac_cpp_err=yes
7273 fi
7274 if test -z "$ac_cpp_err"; then
7275 :
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 # Broken: fails on valid input.
7281 continue
7282 fi
7283 rm -f conftest.err conftest.$ac_ext
7284
7285 # OK, works on sane cases. Now check whether non-existent headers
7286 # can be detected and how.
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <ac_nonexistent.h>
7294 _ACEOF
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } >/dev/null; then
7303 if test -s conftest.err; then
7304 ac_cpp_err=$ac_cxx_preproc_warn_flag
7305 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7306 else
7307 ac_cpp_err=
7308 fi
7309 else
7310 ac_cpp_err=yes
7311 fi
7312 if test -z "$ac_cpp_err"; then
7313 # Broken: success on invalid input.
7314 continue
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 # Passes both tests.
7320 ac_preproc_ok=:
7321 break
7322 fi
7323 rm -f conftest.err conftest.$ac_ext
7324
7325 done
7326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7327 rm -f conftest.err conftest.$ac_ext
7328 if $ac_preproc_ok; then
7329 break
7330 fi
7331
7332 done
7333 ac_cv_prog_CXXCPP=$CXXCPP
7334
7335 fi
7336 CXXCPP=$ac_cv_prog_CXXCPP
7337 else
7338 ac_cv_prog_CXXCPP=$CXXCPP
7339 fi
7340 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7341 echo "${ECHO_T}$CXXCPP" >&6
7342 ac_preproc_ok=false
7343 for ac_cxx_preproc_warn_flag in '' yes
7344 do
7345 # Use a header file that comes with gcc, so configuring glibc
7346 # with a fresh cross-compiler works.
7347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348 # <limits.h> exists even on freestanding compilers.
7349 # On the NeXT, cc -E runs the code through the compiler's parser,
7350 # not just through cpp. "Syntax error" is here to catch this case.
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #ifdef __STDC__
7358 # include <limits.h>
7359 #else
7360 # include <assert.h>
7361 #endif
7362 Syntax error
7363 _ACEOF
7364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } >/dev/null; then
7372 if test -s conftest.err; then
7373 ac_cpp_err=$ac_cxx_preproc_warn_flag
7374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7375 else
7376 ac_cpp_err=
7377 fi
7378 else
7379 ac_cpp_err=yes
7380 fi
7381 if test -z "$ac_cpp_err"; then
7382 :
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 # Broken: fails on valid input.
7388 continue
7389 fi
7390 rm -f conftest.err conftest.$ac_ext
7391
7392 # OK, works on sane cases. Now check whether non-existent headers
7393 # can be detected and how.
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <ac_nonexistent.h>
7401 _ACEOF
7402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } >/dev/null; then
7410 if test -s conftest.err; then
7411 ac_cpp_err=$ac_cxx_preproc_warn_flag
7412 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7413 else
7414 ac_cpp_err=
7415 fi
7416 else
7417 ac_cpp_err=yes
7418 fi
7419 if test -z "$ac_cpp_err"; then
7420 # Broken: success on invalid input.
7421 continue
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 # Passes both tests.
7427 ac_preproc_ok=:
7428 break
7429 fi
7430 rm -f conftest.err conftest.$ac_ext
7431
7432 done
7433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7434 rm -f conftest.err conftest.$ac_ext
7435 if $ac_preproc_ok; then
7436 :
7437 else
7438 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7439 See \`config.log' for more details." >&5
7440 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7441 See \`config.log' for more details." >&2;}
7442 { (exit 1); exit 1; }; }
7443 fi
7444
7445 ac_ext=cc
7446 ac_cpp='$CXXCPP $CPPFLAGS'
7447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7450
7451 fi
7452
7453
7454 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7455
7456 # find the maximum length of command line arguments
7457 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7458 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7459 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 i=0
7463 teststring="ABCD"
7464
7465 case $build_os in
7466 msdosdjgpp*)
7467 # On DJGPP, this test can blow up pretty badly due to problems in libc
7468 # (any single argument exceeding 2000 bytes causes a buffer overrun
7469 # during glob expansion). Even if it were fixed, the result of this
7470 # check would be larger than it should be.
7471 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7472 ;;
7473
7474 gnu*)
7475 # Under GNU Hurd, this test is not required because there is
7476 # no limit to the length of command line arguments.
7477 # Libtool will interpret -1 as no limit whatsoever
7478 lt_cv_sys_max_cmd_len=-1;
7479 ;;
7480
7481 cygwin* | mingw*)
7482 # On Win9x/ME, this test blows up -- it succeeds, but takes
7483 # about 5 minutes as the teststring grows exponentially.
7484 # Worse, since 9x/ME are not pre-emptively multitasking,
7485 # you end up with a "frozen" computer, even though with patience
7486 # the test eventually succeeds (with a max line length of 256k).
7487 # Instead, let's just punt: use the minimum linelength reported by
7488 # all of the supported platforms: 8192 (on NT/2K/XP).
7489 lt_cv_sys_max_cmd_len=8192;
7490 ;;
7491
7492 amigaos*)
7493 # On AmigaOS with pdksh, this test takes hours, literally.
7494 # So we just punt and use a minimum line length of 8192.
7495 lt_cv_sys_max_cmd_len=8192;
7496 ;;
7497
7498 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7499 # This has been around since 386BSD, at least. Likely further.
7500 if test -x /sbin/sysctl; then
7501 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7502 elif test -x /usr/sbin/sysctl; then
7503 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7504 else
7505 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7506 fi
7507 # And add a safety zone
7508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7510 ;;
7511
7512 interix*)
7513 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7514 lt_cv_sys_max_cmd_len=196608
7515 ;;
7516
7517 osf*)
7518 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7519 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7520 # nice to cause kernel panics so lets avoid the loop below.
7521 # First set a reasonable default.
7522 lt_cv_sys_max_cmd_len=16384
7523 #
7524 if test -x /sbin/sysconfig; then
7525 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7526 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7527 esac
7528 fi
7529 ;;
7530 sco3.2v5*)
7531 lt_cv_sys_max_cmd_len=102400
7532 ;;
7533 sysv5* | sco5v6* | sysv4.2uw2*)
7534 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7535 if test -n "$kargmax"; then
7536 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7537 else
7538 lt_cv_sys_max_cmd_len=32768
7539 fi
7540 ;;
7541 *)
7542 # If test is not a shell built-in, we'll probably end up computing a
7543 # maximum length that is only half of the actual maximum length, but
7544 # we can't tell.
7545 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7546 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7547 = "XX$teststring") >/dev/null 2>&1 &&
7548 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7549 lt_cv_sys_max_cmd_len=$new_result &&
7550 test $i != 17 # 1/2 MB should be enough
7551 do
7552 i=`expr $i + 1`
7553 teststring=$teststring$teststring
7554 done
7555 teststring=
7556 # Add a significant safety factor because C++ compilers can tack on massive
7557 # amounts of additional arguments before passing them to the linker.
7558 # It appears as though 1/2 is a usable value.
7559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7560 ;;
7561 esac
7562
7563 fi
7564
7565 if test -n $lt_cv_sys_max_cmd_len ; then
7566 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7567 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7568 else
7569 echo "$as_me:$LINENO: result: none" >&5
7570 echo "${ECHO_T}none" >&6
7571 fi
7572
7573
7574
7575
7576 # Check for command to grab the raw symbol name followed by C symbol from nm.
7577 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7578 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7579 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582
7583 # These are sane defaults that work on at least a few old systems.
7584 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7585
7586 # Character class describing NM global symbol codes.
7587 symcode='[BCDEGRST]'
7588
7589 # Regexp to match symbols that can be accessed directly from C.
7590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7591
7592 # Transform an extracted symbol line into a proper C declaration
7593 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7594
7595 # Transform an extracted symbol line into symbol name and symbol address
7596 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'"
7597
7598 # Define system-specific variables.
7599 case $host_os in
7600 aix*)
7601 symcode='[BCDT]'
7602 ;;
7603 cygwin* | mingw* | pw32*)
7604 symcode='[ABCDGISTW]'
7605 ;;
7606 hpux*) # Its linker distinguishes data from code symbols
7607 if test "$host_cpu" = ia64; then
7608 symcode='[ABCDEGRST]'
7609 fi
7610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7611 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'"
7612 ;;
7613 linux*)
7614 if test "$host_cpu" = ia64; then
7615 symcode='[ABCDGIRSTW]'
7616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7617 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'"
7618 fi
7619 ;;
7620 irix* | nonstopux*)
7621 symcode='[BCDEGRST]'
7622 ;;
7623 osf*)
7624 symcode='[BCDEGQRST]'
7625 ;;
7626 solaris*)
7627 symcode='[BDRT]'
7628 ;;
7629 sco3.2v5*)
7630 symcode='[DT]'
7631 ;;
7632 sysv4.2uw2*)
7633 symcode='[DT]'
7634 ;;
7635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7636 symcode='[ABDT]'
7637 ;;
7638 sysv4)
7639 symcode='[DFNSTU]'
7640 ;;
7641 esac
7642
7643 # Handle CRLF in mingw tool chain
7644 opt_cr=
7645 case $build_os in
7646 mingw*)
7647 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7648 ;;
7649 esac
7650
7651 # If we're using GNU nm, then use its standard symbol codes.
7652 case `$NM -V 2>&1` in
7653 *GNU* | *'with BFD'*)
7654 symcode='[ABCDGIRSTW]' ;;
7655 esac
7656
7657 # Try without a prefix undercore, then with it.
7658 for ac_symprfx in "" "_"; do
7659
7660 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7661 symxfrm="\\1 $ac_symprfx\\2 \\2"
7662
7663 # Write the raw and C identifiers.
7664 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7665
7666 # Check to see that the pipe works correctly.
7667 pipe_works=no
7668
7669 rm -f conftest*
7670 cat > conftest.$ac_ext <<EOF
7671 #ifdef __cplusplus
7672 extern "C" {
7673 #endif
7674 char nm_test_var;
7675 void nm_test_func(){}
7676 #ifdef __cplusplus
7677 }
7678 #endif
7679 int main(){nm_test_var='a';nm_test_func();return(0);}
7680 EOF
7681
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; then
7687 # Now try to grab the symbols.
7688 nlist=conftest.nm
7689 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7690 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && test -s "$nlist"; then
7694 # Try sorting and uniquifying the output.
7695 if sort "$nlist" | uniq > "$nlist"T; then
7696 mv -f "$nlist"T "$nlist"
7697 else
7698 rm -f "$nlist"T
7699 fi
7700
7701 # Make sure that we snagged all the symbols we need.
7702 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7703 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7704 cat <<EOF > conftest.$ac_ext
7705 #ifdef __cplusplus
7706 extern "C" {
7707 #endif
7708
7709 EOF
7710 # Now generate the symbol file.
7711 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7712
7713 cat <<EOF >> conftest.$ac_ext
7714 #if defined (__STDC__) && __STDC__
7715 # define lt_ptr_t void *
7716 #else
7717 # define lt_ptr_t char *
7718 # define const
7719 #endif
7720
7721 /* The mapping between symbol names and symbols. */
7722 const struct {
7723 const char *name;
7724 lt_ptr_t address;
7725 }
7726 lt_preloaded_symbols[] =
7727 {
7728 EOF
7729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7730 cat <<\EOF >> conftest.$ac_ext
7731 {0, (lt_ptr_t) 0}
7732 };
7733
7734 #ifdef __cplusplus
7735 }
7736 #endif
7737 EOF
7738 # Now try linking the two files.
7739 mv conftest.$ac_objext conftstm.$ac_objext
7740 lt_save_LIBS="$LIBS"
7741 lt_save_CFLAGS="$CFLAGS"
7742 LIBS="conftstm.$ac_objext"
7743 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7749 pipe_works=yes
7750 fi
7751 LIBS="$lt_save_LIBS"
7752 CFLAGS="$lt_save_CFLAGS"
7753 else
7754 echo "cannot find nm_test_func in $nlist" >&5
7755 fi
7756 else
7757 echo "cannot find nm_test_var in $nlist" >&5
7758 fi
7759 else
7760 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7761 fi
7762 else
7763 echo "$progname: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 fi
7766 rm -f conftest* conftst*
7767
7768 # Do not use the global_symbol_pipe unless it works.
7769 if test "$pipe_works" = yes; then
7770 break
7771 else
7772 lt_cv_sys_global_symbol_pipe=
7773 fi
7774 done
7775
7776 fi
7777
7778 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7779 lt_cv_sys_global_symbol_to_cdecl=
7780 fi
7781 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7782 echo "$as_me:$LINENO: result: failed" >&5
7783 echo "${ECHO_T}failed" >&6
7784 else
7785 echo "$as_me:$LINENO: result: ok" >&5
7786 echo "${ECHO_T}ok" >&6
7787 fi
7788
7789 echo "$as_me:$LINENO: checking for objdir" >&5
7790 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7791 if test "${lt_cv_objdir+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794 rm -f .libs 2>/dev/null
7795 mkdir .libs 2>/dev/null
7796 if test -d .libs; then
7797 lt_cv_objdir=.libs
7798 else
7799 # MS-DOS does not allow filenames that begin with a dot.
7800 lt_cv_objdir=_libs
7801 fi
7802 rmdir .libs 2>/dev/null
7803 fi
7804 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7805 echo "${ECHO_T}$lt_cv_objdir" >&6
7806 objdir=$lt_cv_objdir
7807
7808
7809
7810
7811
7812 case $host_os in
7813 aix3*)
7814 # AIX sometimes has problems with the GCC collect2 program. For some
7815 # reason, if we set the COLLECT_NAMES environment variable, the problems
7816 # vanish in a puff of smoke.
7817 if test "X${COLLECT_NAMES+set}" != Xset; then
7818 COLLECT_NAMES=
7819 export COLLECT_NAMES
7820 fi
7821 ;;
7822 esac
7823
7824 # Sed substitution that helps us do robust quoting. It backslashifies
7825 # metacharacters that are still active within double-quoted strings.
7826 Xsed='sed -e 1s/^X//'
7827 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7828
7829 # Same as above, but do not quote variable references.
7830 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7831
7832 # Sed substitution to delay expansion of an escaped shell variable in a
7833 # double_quote_subst'ed string.
7834 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7835
7836 # Sed substitution to avoid accidental globbing in evaled expressions
7837 no_glob_subst='s/\*/\\\*/g'
7838
7839 # Constants:
7840 rm="rm -f"
7841
7842 # Global variables:
7843 default_ofile=libtool
7844 can_build_shared=yes
7845
7846 # All known linkers require a `.a' archive for static linking (except MSVC,
7847 # which needs '.lib').
7848 libext=a
7849 ltmain="$ac_aux_dir/ltmain.sh"
7850 ofile="$default_ofile"
7851 with_gnu_ld="$lt_cv_prog_gnu_ld"
7852
7853 if test -n "$ac_tool_prefix"; then
7854 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7855 set dummy ${ac_tool_prefix}ar; ac_word=$2
7856 echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7858 if test "${ac_cv_prog_AR+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 if test -n "$AR"; then
7862 ac_cv_prog_AR="$AR" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_prog_AR="${ac_tool_prefix}ar"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7874 fi
7875 done
7876 done
7877
7878 fi
7879 fi
7880 AR=$ac_cv_prog_AR
7881 if test -n "$AR"; then
7882 echo "$as_me:$LINENO: result: $AR" >&5
7883 echo "${ECHO_T}$AR" >&6
7884 else
7885 echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6
7887 fi
7888
7889 fi
7890 if test -z "$ac_cv_prog_AR"; then
7891 ac_ct_AR=$AR
7892 # Extract the first word of "ar", so it can be a program name with args.
7893 set dummy ar; ac_word=$2
7894 echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 if test -n "$ac_ct_AR"; then
7900 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_ac_ct_AR="ar"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915
7916 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7917 fi
7918 fi
7919 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7920 if test -n "$ac_ct_AR"; then
7921 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7922 echo "${ECHO_T}$ac_ct_AR" >&6
7923 else
7924 echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7926 fi
7927
7928 AR=$ac_ct_AR
7929 else
7930 AR="$ac_cv_prog_AR"
7931 fi
7932
7933 if test -n "$ac_tool_prefix"; then
7934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7936 echo "$as_me:$LINENO: checking for $ac_word" >&5
7937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7938 if test "${ac_cv_prog_RANLIB+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 if test -n "$RANLIB"; then
7942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7954 fi
7955 done
7956 done
7957
7958 fi
7959 fi
7960 RANLIB=$ac_cv_prog_RANLIB
7961 if test -n "$RANLIB"; then
7962 echo "$as_me:$LINENO: result: $RANLIB" >&5
7963 echo "${ECHO_T}$RANLIB" >&6
7964 else
7965 echo "$as_me:$LINENO: result: no" >&5
7966 echo "${ECHO_T}no" >&6
7967 fi
7968
7969 fi
7970 if test -z "$ac_cv_prog_RANLIB"; then
7971 ac_ct_RANLIB=$RANLIB
7972 # Extract the first word of "ranlib", so it can be a program name with args.
7973 set dummy ranlib; ac_word=$2
7974 echo "$as_me:$LINENO: checking for $ac_word" >&5
7975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 if test -n "$ac_ct_RANLIB"; then
7980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_ac_ct_RANLIB="ranlib"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993 done
7994 done
7995
7996 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7997 fi
7998 fi
7999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8000 if test -n "$ac_ct_RANLIB"; then
8001 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8002 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8003 else
8004 echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8006 fi
8007
8008 RANLIB=$ac_ct_RANLIB
8009 else
8010 RANLIB="$ac_cv_prog_RANLIB"
8011 fi
8012
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}strip; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_prog_STRIP+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 if test -n "$STRIP"; then
8022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037
8038 fi
8039 fi
8040 STRIP=$ac_cv_prog_STRIP
8041 if test -n "$STRIP"; then
8042 echo "$as_me:$LINENO: result: $STRIP" >&5
8043 echo "${ECHO_T}$STRIP" >&6
8044 else
8045 echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6
8047 fi
8048
8049 fi
8050 if test -z "$ac_cv_prog_STRIP"; then
8051 ac_ct_STRIP=$STRIP
8052 # Extract the first word of "strip", so it can be a program name with args.
8053 set dummy strip; ac_word=$2
8054 echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 if test -n "$ac_ct_STRIP"; then
8060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_ac_ct_STRIP="strip"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073 done
8074 done
8075
8076 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8077 fi
8078 fi
8079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8080 if test -n "$ac_ct_STRIP"; then
8081 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8082 echo "${ECHO_T}$ac_ct_STRIP" >&6
8083 else
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8086 fi
8087
8088 STRIP=$ac_ct_STRIP
8089 else
8090 STRIP="$ac_cv_prog_STRIP"
8091 fi
8092
8093
8094 old_CC="$CC"
8095 old_CFLAGS="$CFLAGS"
8096
8097 # Set sane defaults for various variables
8098 test -z "$AR" && AR=ar
8099 test -z "$AR_FLAGS" && AR_FLAGS=cru
8100 test -z "$AS" && AS=as
8101 test -z "$CC" && CC=cc
8102 test -z "$LTCC" && LTCC=$CC
8103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8104 test -z "$DLLTOOL" && DLLTOOL=dlltool
8105 test -z "$LD" && LD=ld
8106 test -z "$LN_S" && LN_S="ln -s"
8107 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8108 test -z "$NM" && NM=nm
8109 test -z "$SED" && SED=sed
8110 test -z "$OBJDUMP" && OBJDUMP=objdump
8111 test -z "$RANLIB" && RANLIB=:
8112 test -z "$STRIP" && STRIP=:
8113 test -z "$ac_objext" && ac_objext=o
8114
8115 # Determine commands to create old-style static archives.
8116 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8117 old_postinstall_cmds='chmod 644 $oldlib'
8118 old_postuninstall_cmds=
8119
8120 if test -n "$RANLIB"; then
8121 case $host_os in
8122 openbsd*)
8123 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8124 ;;
8125 *)
8126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8127 ;;
8128 esac
8129 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8130 fi
8131
8132 for cc_temp in $compiler""; do
8133 case $cc_temp in
8134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8136 \-*) ;;
8137 *) break;;
8138 esac
8139 done
8140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8141
8142
8143 # Only perform the check for file, if the check method requires it
8144 case $deplibs_check_method in
8145 file_magic*)
8146 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8147 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8148 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8149 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 case $MAGIC_CMD in
8153 [\\/*] | ?:[\\/]*)
8154 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8155 ;;
8156 *)
8157 lt_save_MAGIC_CMD="$MAGIC_CMD"
8158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8159 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8160 for ac_dir in $ac_dummy; do
8161 IFS="$lt_save_ifs"
8162 test -z "$ac_dir" && ac_dir=.
8163 if test -f $ac_dir/${ac_tool_prefix}file; then
8164 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8165 if test -n "$file_magic_test_file"; then
8166 case $deplibs_check_method in
8167 "file_magic "*)
8168 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8171 $EGREP "$file_magic_regex" > /dev/null; then
8172 :
8173 else
8174 cat <<EOF 1>&2
8175
8176 *** Warning: the command libtool uses to detect shared libraries,
8177 *** $file_magic_cmd, produces output that libtool cannot recognize.
8178 *** The result is that libtool may fail to recognize shared libraries
8179 *** as such. This will affect the creation of libtool libraries that
8180 *** depend on shared libraries, but programs linked with such libtool
8181 *** libraries will work regardless of this problem. Nevertheless, you
8182 *** may want to report the problem to your system manager and/or to
8183 *** [email protected]
8184
8185 EOF
8186 fi ;;
8187 esac
8188 fi
8189 break
8190 fi
8191 done
8192 IFS="$lt_save_ifs"
8193 MAGIC_CMD="$lt_save_MAGIC_CMD"
8194 ;;
8195 esac
8196 fi
8197
8198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8199 if test -n "$MAGIC_CMD"; then
8200 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8201 echo "${ECHO_T}$MAGIC_CMD" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8205 fi
8206
8207 if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 echo "$as_me:$LINENO: checking for file" >&5
8210 echo $ECHO_N "checking for file... $ECHO_C" >&6
8211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 case $MAGIC_CMD in
8215 [\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218 *)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<EOF 1>&2
8237
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** [email protected]
8246
8247 EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257 esac
8258 fi
8259
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8263 echo "${ECHO_T}$MAGIC_CMD" >&6
8264 else
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8267 fi
8268
8269 else
8270 MAGIC_CMD=:
8271 fi
8272 fi
8273
8274 fi
8275 ;;
8276 esac
8277
8278 enable_dlopen=no
8279 enable_win32_dll=no
8280
8281 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8282 if test "${enable_libtool_lock+set}" = set; then
8283 enableval="$enable_libtool_lock"
8284
8285 fi;
8286 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8287
8288
8289 # Check whether --with-pic or --without-pic was given.
8290 if test "${with_pic+set}" = set; then
8291 withval="$with_pic"
8292 pic_mode="$withval"
8293 else
8294 pic_mode=default
8295 fi;
8296 test -z "$pic_mode" && pic_mode=default
8297
8298 # Use C for the default configuration in the libtool script
8299 tagname=
8300 lt_save_CC="$CC"
8301 ac_ext=c
8302 ac_cpp='$CPP $CPPFLAGS'
8303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306
8307
8308 # Source file extension for C test sources.
8309 ac_ext=c
8310
8311 # Object file extension for compiled C test sources.
8312 objext=o
8313 objext=$objext
8314
8315 # Code to be used in simple compile tests
8316 lt_simple_compile_test_code="int some_variable = 0;\n"
8317
8318 # Code to be used in simple link tests
8319 lt_simple_link_test_code='int main(){return(0);}\n'
8320
8321
8322 # If no C compiler was specified, use CC.
8323 LTCC=${LTCC-"$CC"}
8324
8325 # If no C compiler flags were specified, use CFLAGS.
8326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8327
8328 # Allow CC to be a program name with arguments.
8329 compiler=$CC
8330
8331
8332 # save warnings/boilerplate of simple test code
8333 ac_outfile=conftest.$ac_objext
8334 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8336 _lt_compiler_boilerplate=`cat conftest.err`
8337 $rm conftest*
8338
8339 ac_outfile=conftest.$ac_objext
8340 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8342 _lt_linker_boilerplate=`cat conftest.err`
8343 $rm conftest*
8344
8345
8346 ## CAVEAT EMPTOR:
8347 ## There is no encapsulation within the following macros, do not change
8348 ## the running order or otherwise move them around unless you know exactly
8349 ## what you are doing...
8350
8351 lt_prog_compiler_no_builtin_flag=
8352
8353 if test "$GCC" = yes; then
8354 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8355
8356
8357 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8358 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8359 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 lt_cv_prog_compiler_rtti_exceptions=no
8363 ac_outfile=conftest.$ac_objext
8364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8365 lt_compiler_flag="-fno-rtti -fno-exceptions"
8366 # Insert the option either (1) after the last *FLAGS variable, or
8367 # (2) before a word containing "conftest.", or (3) at the end.
8368 # Note that $ac_compile itself does not contain backslashes and begins
8369 # with a dollar sign (not a hyphen), so the echo should work correctly.
8370 # The option is referenced via a variable to avoid confusing sed.
8371 lt_compile=`echo "$ac_compile" | $SED \
8372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8374 -e 's:$: $lt_compiler_flag:'`
8375 (eval echo "\"\$as_me:8375: $lt_compile\"" >&5)
8376 (eval "$lt_compile" 2>conftest.err)
8377 ac_status=$?
8378 cat conftest.err >&5
8379 echo "$as_me:8379: \$? = $ac_status" >&5
8380 if (exit $ac_status) && test -s "$ac_outfile"; then
8381 # The compiler can only warn and ignore the option if not recognized
8382 # So say no if there are warnings other than the usual output.
8383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_rtti_exceptions=yes
8387 fi
8388 fi
8389 $rm conftest*
8390
8391 fi
8392 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8393 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8394
8395 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8396 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8397 else
8398 :
8399 fi
8400
8401 fi
8402
8403 lt_prog_compiler_wl=
8404 lt_prog_compiler_pic=
8405 lt_prog_compiler_static=
8406
8407 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8409
8410 if test "$GCC" = yes; then
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_static='-static'
8413
8414 case $host_os in
8415 aix*)
8416 # All AIX code is PIC.
8417 if test "$host_cpu" = ia64; then
8418 # AIX 5 now supports IA64 processor
8419 lt_prog_compiler_static='-Bstatic'
8420 fi
8421 ;;
8422
8423 amigaos*)
8424 # FIXME: we need at least 68020 code to build shared libraries, but
8425 # adding the `-m68020' flag to GCC prevents building anything better,
8426 # like `-m68040'.
8427 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8428 ;;
8429
8430 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8431 # PIC is the default for these OSes.
8432 ;;
8433
8434 mingw* | pw32* | os2*)
8435 # This hack is so that the source file can tell whether it is being
8436 # built for inclusion in a dll (and should export symbols for example).
8437 lt_prog_compiler_pic='-DDLL_EXPORT'
8438 ;;
8439
8440 darwin* | rhapsody*)
8441 # PIC is the default on this platform
8442 # Common symbols not allowed in MH_DYLIB files
8443 lt_prog_compiler_pic='-fno-common'
8444 ;;
8445
8446 interix3*)
8447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8448 # Instead, we relocate shared libraries at runtime.
8449 ;;
8450
8451 msdosdjgpp*)
8452 # Just because we use GCC doesn't mean we suddenly get shared libraries
8453 # on systems that don't support them.
8454 lt_prog_compiler_can_build_shared=no
8455 enable_shared=no
8456 ;;
8457
8458 sysv4*MP*)
8459 if test -d /usr/nec; then
8460 lt_prog_compiler_pic=-Kconform_pic
8461 fi
8462 ;;
8463
8464 hpux*)
8465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8466 # not for PA HP-UX.
8467 case $host_cpu in
8468 hppa*64*|ia64*)
8469 # +Z the default
8470 ;;
8471 *)
8472 lt_prog_compiler_pic='-fPIC'
8473 ;;
8474 esac
8475 ;;
8476
8477 *)
8478 lt_prog_compiler_pic='-fPIC'
8479 ;;
8480 esac
8481 else
8482 # PORTME Check for flag to pass linker flags through the system compiler.
8483 case $host_os in
8484 aix*)
8485 lt_prog_compiler_wl='-Wl,'
8486 if test "$host_cpu" = ia64; then
8487 # AIX 5 now supports IA64 processor
8488 lt_prog_compiler_static='-Bstatic'
8489 else
8490 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8491 fi
8492 ;;
8493 darwin*)
8494 # PIC is the default on this platform
8495 # Common symbols not allowed in MH_DYLIB files
8496 case $cc_basename in
8497 xlc*)
8498 lt_prog_compiler_pic='-qnocommon'
8499 lt_prog_compiler_wl='-Wl,'
8500 ;;
8501 esac
8502 ;;
8503
8504 mingw* | pw32* | os2*)
8505 # This hack is so that the source file can tell whether it is being
8506 # built for inclusion in a dll (and should export symbols for example).
8507 lt_prog_compiler_pic='-DDLL_EXPORT'
8508 ;;
8509
8510 hpux9* | hpux10* | hpux11*)
8511 lt_prog_compiler_wl='-Wl,'
8512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8513 # not for PA HP-UX.
8514 case $host_cpu in
8515 hppa*64*|ia64*)
8516 # +Z the default
8517 ;;
8518 *)
8519 lt_prog_compiler_pic='+Z'
8520 ;;
8521 esac
8522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8523 lt_prog_compiler_static='${wl}-a ${wl}archive'
8524 ;;
8525
8526 irix5* | irix6* | nonstopux*)
8527 lt_prog_compiler_wl='-Wl,'
8528 # PIC (with -KPIC) is the default.
8529 lt_prog_compiler_static='-non_shared'
8530 ;;
8531
8532 newsos6)
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-Bstatic'
8535 ;;
8536
8537 linux*)
8538 case $cc_basename in
8539 icc* | ecc*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 pgcc* | pgf77* | pgf90* | pgf95*)
8545 # Portland Group compilers (*not* the Pentium gcc compiler,
8546 # which looks to be a dead project)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fpic'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
8551 ccc*)
8552 lt_prog_compiler_wl='-Wl,'
8553 # All Alpha code is PIC.
8554 lt_prog_compiler_static='-non_shared'
8555 ;;
8556 esac
8557 ;;
8558
8559 osf3* | osf4* | osf5*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # All OSF/1 code is PIC.
8562 lt_prog_compiler_static='-non_shared'
8563 ;;
8564
8565 solaris*)
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-Bstatic'
8568 case $cc_basename in
8569 f77* | f90* | f95*)
8570 lt_prog_compiler_wl='-Qoption ld ';;
8571 *)
8572 lt_prog_compiler_wl='-Wl,';;
8573 esac
8574 ;;
8575
8576 sunos4*)
8577 lt_prog_compiler_wl='-Qoption ld '
8578 lt_prog_compiler_pic='-PIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 ;;
8581
8582 sysv4 | sysv4.2uw2* | sysv4.3*)
8583 lt_prog_compiler_wl='-Wl,'
8584 lt_prog_compiler_pic='-KPIC'
8585 lt_prog_compiler_static='-Bstatic'
8586 ;;
8587
8588 sysv4*MP*)
8589 if test -d /usr/nec ;then
8590 lt_prog_compiler_pic='-Kconform_pic'
8591 lt_prog_compiler_static='-Bstatic'
8592 fi
8593 ;;
8594
8595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-KPIC'
8598 lt_prog_compiler_static='-Bstatic'
8599 ;;
8600
8601 unicos*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_can_build_shared=no
8604 ;;
8605
8606 uts4*)
8607 lt_prog_compiler_pic='-pic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610
8611 *)
8612 lt_prog_compiler_can_build_shared=no
8613 ;;
8614 esac
8615 fi
8616
8617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8618 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8619
8620 #
8621 # Check to make sure the PIC flag actually works.
8622 #
8623 if test -n "$lt_prog_compiler_pic"; then
8624
8625 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8626 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8627 if test "${lt_prog_compiler_pic_works+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 lt_prog_compiler_pic_works=no
8631 ac_outfile=conftest.$ac_objext
8632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8633 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 # The option is referenced via a variable to avoid confusing sed.
8639 lt_compile=`echo "$ac_compile" | $SED \
8640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8642 -e 's:$: $lt_compiler_flag:'`
8643 (eval echo "\"\$as_me:8643: $lt_compile\"" >&5)
8644 (eval "$lt_compile" 2>conftest.err)
8645 ac_status=$?
8646 cat conftest.err >&5
8647 echo "$as_me:8647: \$? = $ac_status" >&5
8648 if (exit $ac_status) && test -s "$ac_outfile"; then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings other than the usual output.
8651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8654 lt_prog_compiler_pic_works=yes
8655 fi
8656 fi
8657 $rm conftest*
8658
8659 fi
8660 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8661 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8662
8663 if test x"$lt_prog_compiler_pic_works" = xyes; then
8664 case $lt_prog_compiler_pic in
8665 "" | " "*) ;;
8666 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8667 esac
8668 else
8669 lt_prog_compiler_pic=
8670 lt_prog_compiler_can_build_shared=no
8671 fi
8672
8673 fi
8674 case $host_os in
8675 # For platforms which do not support PIC, -DPIC is meaningless:
8676 *djgpp*)
8677 lt_prog_compiler_pic=
8678 ;;
8679 *)
8680 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8681 ;;
8682 esac
8683
8684 #
8685 # Check to make sure the static flag actually works.
8686 #
8687 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8688 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8689 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8690 if test "${lt_prog_compiler_static_works+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 lt_prog_compiler_static_works=no
8694 save_LDFLAGS="$LDFLAGS"
8695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8696 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8698 # The linker can only warn and ignore the option if not recognized
8699 # So say no if there are warnings
8700 if test -s conftest.err; then
8701 # Append any errors to the config.log.
8702 cat conftest.err 1>&5
8703 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8705 if diff conftest.exp conftest.er2 >/dev/null; then
8706 lt_prog_compiler_static_works=yes
8707 fi
8708 else
8709 lt_prog_compiler_static_works=yes
8710 fi
8711 fi
8712 $rm conftest*
8713 LDFLAGS="$save_LDFLAGS"
8714
8715 fi
8716 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8717 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8718
8719 if test x"$lt_prog_compiler_static_works" = xyes; then
8720 :
8721 else
8722 lt_prog_compiler_static=
8723 fi
8724
8725
8726 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8728 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 lt_cv_prog_compiler_c_o=no
8732 $rm -r conftest 2>/dev/null
8733 mkdir conftest
8734 cd conftest
8735 mkdir out
8736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737
8738 lt_compiler_flag="-o out/conftest2.$ac_objext"
8739 # Insert the option either (1) after the last *FLAGS variable, or
8740 # (2) before a word containing "conftest.", or (3) at the end.
8741 # Note that $ac_compile itself does not contain backslashes and begins
8742 # with a dollar sign (not a hyphen), so the echo should work correctly.
8743 lt_compile=`echo "$ac_compile" | $SED \
8744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746 -e 's:$: $lt_compiler_flag:'`
8747 (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
8748 (eval "$lt_compile" 2>out/conftest.err)
8749 ac_status=$?
8750 cat out/conftest.err >&5
8751 echo "$as_me:8751: \$? = $ac_status" >&5
8752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8753 then
8754 # The compiler can only warn and ignore the option if not recognized
8755 # So say no if there are warnings
8756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler_c_o=yes
8760 fi
8761 fi
8762 chmod u+w . 2>&5
8763 $rm conftest*
8764 # SGI C++ compiler will create directory out/ii_files/ for
8765 # template instantiation
8766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8767 $rm out/* && rmdir out
8768 cd ..
8769 rmdir conftest
8770 $rm conftest*
8771
8772 fi
8773 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8775
8776
8777 hard_links="nottested"
8778 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8779 # do not overwrite the value of need_locks provided by the user
8780 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8782 hard_links=yes
8783 $rm conftest*
8784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8785 touch conftest.a
8786 ln conftest.a conftest.b 2>&5 || hard_links=no
8787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8788 echo "$as_me:$LINENO: result: $hard_links" >&5
8789 echo "${ECHO_T}$hard_links" >&6
8790 if test "$hard_links" = no; then
8791 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8793 need_locks=warn
8794 fi
8795 else
8796 need_locks=no
8797 fi
8798
8799 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8801
8802 runpath_var=
8803 allow_undefined_flag=
8804 enable_shared_with_static_runtimes=no
8805 archive_cmds=
8806 archive_expsym_cmds=
8807 old_archive_From_new_cmds=
8808 old_archive_from_expsyms_cmds=
8809 export_dynamic_flag_spec=
8810 whole_archive_flag_spec=
8811 thread_safe_flag_spec=
8812 hardcode_libdir_flag_spec=
8813 hardcode_libdir_flag_spec_ld=
8814 hardcode_libdir_separator=
8815 hardcode_direct=no
8816 hardcode_minus_L=no
8817 hardcode_shlibpath_var=unsupported
8818 link_all_deplibs=unknown
8819 hardcode_automatic=no
8820 module_cmds=
8821 module_expsym_cmds=
8822 always_export_symbols=no
8823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8824 # include_expsyms should be a list of space-separated symbols to be *always*
8825 # included in the symbol list
8826 include_expsyms=
8827 # exclude_expsyms can be an extended regexp of symbols to exclude
8828 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8829 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8830 # as well as any symbol that contains `d'.
8831 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8833 # platforms (ab)use it in PIC code, but their linkers get confused if
8834 # the symbol is explicitly referenced. Since portable code cannot
8835 # rely on this symbol name, it's probably fine to never include it in
8836 # preloaded symbol tables.
8837 extract_expsyms_cmds=
8838 # Just being paranoid about ensuring that cc_basename is set.
8839 for cc_temp in $compiler""; do
8840 case $cc_temp in
8841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8843 \-*) ;;
8844 *) break;;
8845 esac
8846 done
8847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8848
8849 case $host_os in
8850 cygwin* | mingw* | pw32*)
8851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8852 # When not using gcc, we currently assume that we are using
8853 # Microsoft Visual C++.
8854 if test "$GCC" != yes; then
8855 with_gnu_ld=no
8856 fi
8857 ;;
8858 interix*)
8859 # we just hope/assume this is gcc and not c89 (= MSVC++)
8860 with_gnu_ld=yes
8861 ;;
8862 openbsd*)
8863 with_gnu_ld=no
8864 ;;
8865 esac
8866
8867 ld_shlibs=yes
8868 if test "$with_gnu_ld" = yes; then
8869 # If archive_cmds runs LD, not CC, wlarc should be empty
8870 wlarc='${wl}'
8871
8872 # Set some defaults for GNU ld with shared library support. These
8873 # are reset later if shared libraries are not supported. Putting them
8874 # here allows them to be overridden if necessary.
8875 runpath_var=LD_RUN_PATH
8876 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8877 export_dynamic_flag_spec='${wl}--export-dynamic'
8878 # ancient GNU ld didn't support --whole-archive et. al.
8879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8880 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8881 else
8882 whole_archive_flag_spec=
8883 fi
8884 supports_anon_versioning=no
8885 case `$LD -v 2>/dev/null` in
8886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8889 *\ 2.11.*) ;; # other 2.11 versions
8890 *) supports_anon_versioning=yes ;;
8891 esac
8892
8893 # See if GNU ld supports shared libraries.
8894 case $host_os in
8895 aix3* | aix4* | aix5*)
8896 # On AIX/PPC, the GNU linker is very broken
8897 if test "$host_cpu" != ia64; then
8898 ld_shlibs=no
8899 cat <<EOF 1>&2
8900
8901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8902 *** to be unable to reliably create shared libraries on AIX.
8903 *** Therefore, libtool is disabling shared libraries support. If you
8904 *** really care for shared libraries, you may want to modify your PATH
8905 *** so that a non-GNU linker is found, and then restart.
8906
8907 EOF
8908 fi
8909 ;;
8910
8911 amigaos*)
8912 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)'
8913 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_minus_L=yes
8915
8916 # Samuel A. Falvo II <[email protected]> reports
8917 # that the semantics of dynamic libraries on AmigaOS, at least up
8918 # to version 4, is to share data among multiple programs linked
8919 # with the same dynamic library. Since this doesn't match the
8920 # behavior of shared libraries on other platforms, we can't use
8921 # them.
8922 ld_shlibs=no
8923 ;;
8924
8925 beos*)
8926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8927 allow_undefined_flag=unsupported
8928 # Joseph Beckenbach <[email protected]> says some releases of gcc
8929 # support --undefined. This deserves some investigation. FIXME
8930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 else
8932 ld_shlibs=no
8933 fi
8934 ;;
8935
8936 cygwin* | mingw* | pw32*)
8937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8938 # as there is no search path for DLLs.
8939 hardcode_libdir_flag_spec='-L$libdir'
8940 allow_undefined_flag=unsupported
8941 always_export_symbols=no
8942 enable_shared_with_static_runtimes=yes
8943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8944
8945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8947 # If the export-symbols file already is a .def file (1st line
8948 # is EXPORTS), use it as is; otherwise, prepend...
8949 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8950 cp $export_symbols $output_objdir/$soname.def;
8951 else
8952 echo EXPORTS > $output_objdir/$soname.def;
8953 cat $export_symbols >> $output_objdir/$soname.def;
8954 fi~
8955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8956 else
8957 ld_shlibs=no
8958 fi
8959 ;;
8960
8961 interix3*)
8962 hardcode_direct=no
8963 hardcode_shlibpath_var=no
8964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8965 export_dynamic_flag_spec='${wl}-E'
8966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8967 # Instead, shared libraries are loaded at an image base (0x10000000 by
8968 # default) and relocated if they conflict, which is a slow very memory
8969 # consuming and fragmenting process. To avoid this, we pick a random,
8970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8973 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'
8974 ;;
8975
8976 linux*)
8977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8978 tmp_addflag=
8979 case $cc_basename,$host_cpu in
8980 pgcc*) # Portland Group C compiler
8981 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'
8982 tmp_addflag=' $pic_flag'
8983 ;;
8984 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8985 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'
8986 tmp_addflag=' $pic_flag -Mnomain' ;;
8987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8988 tmp_addflag=' -i_dynamic' ;;
8989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8990 tmp_addflag=' -i_dynamic -nofor_main' ;;
8991 ifc* | ifort*) # Intel Fortran compiler
8992 tmp_addflag=' -nofor_main' ;;
8993 esac
8994 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8995
8996 if test $supports_anon_versioning = yes; then
8997 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999 $echo "local: *; };" >> $output_objdir/$libname.ver~
9000 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9001 fi
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006
9007 netbsd*)
9008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9009 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9010 wlarc=
9011 else
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 fi
9015 ;;
9016
9017 solaris*)
9018 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9019 ld_shlibs=no
9020 cat <<EOF 1>&2
9021
9022 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9023 *** create shared libraries on Solaris systems. Therefore, libtool
9024 *** is disabling shared libraries support. We urge you to upgrade GNU
9025 *** binutils to release 2.9.1 or newer. Another option is to modify
9026 *** your PATH or compiler configuration so that the native linker is
9027 *** used, and then restart.
9028
9029 EOF
9030 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033 else
9034 ld_shlibs=no
9035 fi
9036 ;;
9037
9038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9039 case `$LD -v 2>&1` in
9040 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9041 ld_shlibs=no
9042 cat <<_LT_EOF 1>&2
9043
9044 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9045 *** reliably create shared libraries on SCO systems. Therefore, libtool
9046 *** is disabling shared libraries support. We urge you to upgrade GNU
9047 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9048 *** your PATH or compiler configuration so that the native linker is
9049 *** used, and then restart.
9050
9051 _LT_EOF
9052 ;;
9053 *)
9054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9055 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9058 else
9059 ld_shlibs=no
9060 fi
9061 ;;
9062 esac
9063 ;;
9064
9065 sunos4*)
9066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 wlarc=
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *)
9073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080 esac
9081
9082 if test "$ld_shlibs" = no; then
9083 runpath_var=
9084 hardcode_libdir_flag_spec=
9085 export_dynamic_flag_spec=
9086 whole_archive_flag_spec=
9087 fi
9088 else
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9090 case $host_os in
9091 aix3*)
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9100 # broken collect2.
9101 hardcode_direct=unsupported
9102 fi
9103 ;;
9104
9105 aix4* | aix5*)
9106 if test "$host_cpu" = ia64; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking=no
9110 exp_sym_flag='-Bexport'
9111 no_entry_flag=""
9112 else
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9116 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'
9117 else
9118 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'
9119 fi
9120 aix_use_runtimelinking=no
9121
9122 # Test if we are trying to use run time linking or normal
9123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9124 # need to do runtime linking.
9125 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9126 for ld_flag in $LDFLAGS; do
9127 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9128 aix_use_runtimelinking=yes
9129 break
9130 fi
9131 done
9132 ;;
9133 esac
9134
9135 exp_sym_flag='-bexport'
9136 no_entry_flag='-bnoentry'
9137 fi
9138
9139 # When large executables or shared objects are built, AIX ld can
9140 # have problems creating the table of contents. If linking a library
9141 # or program results in "error TOC overflow" add -mminimal-toc to
9142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9144
9145 archive_cmds=''
9146 hardcode_direct=yes
9147 hardcode_libdir_separator=':'
9148 link_all_deplibs=yes
9149
9150 if test "$GCC" = yes; then
9151 case $host_os in aix4.[012]|aix4.[012].*)
9152 # We only want to do this on AIX 4.2 and lower, the check
9153 # below for broken collect2 doesn't work under 4.3+
9154 collect2name=`${CC} -print-prog-name=collect2`
9155 if test -f "$collect2name" && \
9156 strings "$collect2name" | grep resolve_lib_name >/dev/null
9157 then
9158 # We have reworked collect2
9159 hardcode_direct=yes
9160 else
9161 # We have old collect2
9162 hardcode_direct=unsupported
9163 # It fails to find uninstalled libraries when the uninstalled
9164 # path is not listed in the libpath. Setting hardcode_minus_L
9165 # to unsupported forces relinking
9166 hardcode_minus_L=yes
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 hardcode_libdir_separator=
9169 fi
9170 ;;
9171 esac
9172 shared_flag='-shared'
9173 if test "$aix_use_runtimelinking" = yes; then
9174 shared_flag="$shared_flag "'${wl}-G'
9175 fi
9176 else
9177 # not using gcc
9178 if test "$host_cpu" = ia64; then
9179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9180 # chokes on -Wl,-G. The following line is correct:
9181 shared_flag='-G'
9182 else
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag='${wl}-G'
9185 else
9186 shared_flag='${wl}-bM:SRE'
9187 fi
9188 fi
9189 fi
9190
9191 # It seems that -bexpall does not export symbols beginning with
9192 # underscore (_), so it is better to generate a list of symbols to export.
9193 always_export_symbols=yes
9194 if test "$aix_use_runtimelinking" = yes; then
9195 # Warning - without using the other runtime loading flags (-brtl),
9196 # -berok will link without error, but may produce a broken library.
9197 allow_undefined_flag='-berok'
9198 # Determine the default libpath from the value encoded in an empty executable.
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205
9206 int
9207 main ()
9208 {
9209
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236
9237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9238 }'`
9239 # Check for a 64-bit object if we didn't find anything.
9240 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; }
9241 }'`; fi
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 fi
9247 rm -f conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9250
9251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9252 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"
9253 else
9254 if test "$host_cpu" = ia64; then
9255 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9256 allow_undefined_flag="-z nodefs"
9257 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"
9258 else
9259 # Determine the default libpath from the value encoded in an empty executable.
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266
9267 int
9268 main ()
9269 {
9270
9271 ;
9272 return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297
9298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9299 }'`
9300 # Check for a 64-bit object if we didn't find anything.
9301 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; }
9302 }'`; fi
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 fi
9308 rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9311
9312 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313 # Warning - without using the other run time loading flags,
9314 # -berok will link without error, but may produce a broken library.
9315 no_undefined_flag=' ${wl}-bernotok'
9316 allow_undefined_flag=' ${wl}-berok'
9317 # Exported symbols can be pulled into shared objects from archives
9318 whole_archive_flag_spec='$convenience'
9319 archive_cmds_need_lc=yes
9320 # This is similar to how AIX traditionally builds its shared libraries.
9321 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'
9322 fi
9323 fi
9324 ;;
9325
9326 amigaos*)
9327 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)'
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_minus_L=yes
9330 # see comment about different semantics on the GNU ld section
9331 ld_shlibs=no
9332 ;;
9333
9334 bsdi[45]*)
9335 export_dynamic_flag_spec=-rdynamic
9336 ;;
9337
9338 cygwin* | mingw* | pw32*)
9339 # When not using gcc, we currently assume that we are using
9340 # Microsoft Visual C++.
9341 # hardcode_libdir_flag_spec is actually meaningless, as there is
9342 # no search path for DLLs.
9343 hardcode_libdir_flag_spec=' '
9344 allow_undefined_flag=unsupported
9345 # Tell ltmain to make .lib files, not .a files.
9346 libext=lib
9347 # Tell ltmain to make .dll files, not .so files.
9348 shrext_cmds=".dll"
9349 # FIXME: Setting linknames here is a bad hack.
9350 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9351 # The linker will automatically build a .lib file if we build a DLL.
9352 old_archive_From_new_cmds='true'
9353 # FIXME: Should let the user specify the lib program.
9354 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9355 fix_srcfile_path='`cygpath -w "$srcfile"`'
9356 enable_shared_with_static_runtimes=yes
9357 ;;
9358
9359 darwin* | rhapsody*)
9360 case $host_os in
9361 rhapsody* | darwin1.[012])
9362 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9363 ;;
9364 *) # Darwin 1.3 on
9365 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9366 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9367 else
9368 case ${MACOSX_DEPLOYMENT_TARGET} in
9369 10.[012])
9370 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9371 ;;
9372 10.*)
9373 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9374 ;;
9375 esac
9376 fi
9377 ;;
9378 esac
9379 archive_cmds_need_lc=no
9380 hardcode_direct=no
9381 hardcode_automatic=yes
9382 hardcode_shlibpath_var=unsupported
9383 whole_archive_flag_spec=''
9384 link_all_deplibs=yes
9385 if test "$GCC" = yes ; then
9386 output_verbose_link_cmd='echo'
9387 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9388 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9390 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}'
9391 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}'
9392 else
9393 case $cc_basename in
9394 xlc*)
9395 output_verbose_link_cmd='echo'
9396 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9397 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9399 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}'
9400 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}'
9401 ;;
9402 *)
9403 ld_shlibs=no
9404 ;;
9405 esac
9406 fi
9407 ;;
9408
9409 dgux*)
9410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_shlibpath_var=no
9413 ;;
9414
9415 freebsd1*)
9416 ld_shlibs=no
9417 ;;
9418
9419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9420 # support. Future versions do this automatically, but an explicit c++rt0.o
9421 # does not break anything, and helps significantly (at the cost of a little
9422 # extra space).
9423 freebsd2.2*)
9424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9425 hardcode_libdir_flag_spec='-R$libdir'
9426 hardcode_direct=yes
9427 hardcode_shlibpath_var=no
9428 ;;
9429
9430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9431 freebsd2*)
9432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_direct=yes
9434 hardcode_minus_L=yes
9435 hardcode_shlibpath_var=no
9436 ;;
9437
9438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9439 freebsd* | kfreebsd*-gnu | dragonfly*)
9440 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9441 hardcode_libdir_flag_spec='-R$libdir'
9442 hardcode_direct=yes
9443 hardcode_shlibpath_var=no
9444 ;;
9445
9446 hpux9*)
9447 if test "$GCC" = yes; then
9448 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'
9449 else
9450 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'
9451 fi
9452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9453 hardcode_libdir_separator=:
9454 hardcode_direct=yes
9455
9456 # hardcode_minus_L: Not really in the search PATH,
9457 # but as the default location of the library.
9458 hardcode_minus_L=yes
9459 export_dynamic_flag_spec='${wl}-E'
9460 ;;
9461
9462 hpux10*)
9463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465 else
9466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9467 fi
9468 if test "$with_gnu_ld" = no; then
9469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9470 hardcode_libdir_separator=:
9471
9472 hardcode_direct=yes
9473 export_dynamic_flag_spec='${wl}-E'
9474
9475 # hardcode_minus_L: Not really in the search PATH,
9476 # but as the default location of the library.
9477 hardcode_minus_L=yes
9478 fi
9479 ;;
9480
9481 hpux11*)
9482 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9483 case $host_cpu in
9484 hppa*64*)
9485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 ;;
9487 ia64*)
9488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9489 ;;
9490 *)
9491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492 ;;
9493 esac
9494 else
9495 case $host_cpu in
9496 hppa*64*)
9497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 ;;
9499 ia64*)
9500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9501 ;;
9502 *)
9503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9504 ;;
9505 esac
9506 fi
9507 if test "$with_gnu_ld" = no; then
9508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9509 hardcode_libdir_separator=:
9510
9511 case $host_cpu in
9512 hppa*64*|ia64*)
9513 hardcode_libdir_flag_spec_ld='+b $libdir'
9514 hardcode_direct=no
9515 hardcode_shlibpath_var=no
9516 ;;
9517 *)
9518 hardcode_direct=yes
9519 export_dynamic_flag_spec='${wl}-E'
9520
9521 # hardcode_minus_L: Not really in the search PATH,
9522 # but as the default location of the library.
9523 hardcode_minus_L=yes
9524 ;;
9525 esac
9526 fi
9527 ;;
9528
9529 irix5* | irix6* | nonstopux*)
9530 if test "$GCC" = yes; then
9531 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'
9532 else
9533 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'
9534 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9535 fi
9536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537 hardcode_libdir_separator=:
9538 link_all_deplibs=yes
9539 ;;
9540
9541 netbsd*)
9542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9544 else
9545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9546 fi
9547 hardcode_libdir_flag_spec='-R$libdir'
9548 hardcode_direct=yes
9549 hardcode_shlibpath_var=no
9550 ;;
9551
9552 newsos6)
9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_direct=yes
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 hardcode_libdir_separator=:
9557 hardcode_shlibpath_var=no
9558 ;;
9559
9560 openbsd*)
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567 export_dynamic_flag_spec='${wl}-E'
9568 else
9569 case $host_os in
9570 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9572 hardcode_libdir_flag_spec='-R$libdir'
9573 ;;
9574 *)
9575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577 ;;
9578 esac
9579 fi
9580 ;;
9581
9582 os2*)
9583 hardcode_libdir_flag_spec='-L$libdir'
9584 hardcode_minus_L=yes
9585 allow_undefined_flag=unsupported
9586 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'
9587 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9588 ;;
9589
9590 osf3*)
9591 if test "$GCC" = yes; then
9592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9593 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'
9594 else
9595 allow_undefined_flag=' -expect_unresolved \*'
9596 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'
9597 fi
9598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600 ;;
9601
9602 osf4* | osf5*) # as osf3* with the addition of -msym flag
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 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'
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 else
9608 allow_undefined_flag=' -expect_unresolved \*'
9609 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'
9610 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9611 $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'
9612
9613 # Both c and cxx compiler support -rpath directly
9614 hardcode_libdir_flag_spec='-rpath $libdir'
9615 fi
9616 hardcode_libdir_separator=:
9617 ;;
9618
9619 solaris*)
9620 no_undefined_flag=' -z text'
9621 if test "$GCC" = yes; then
9622 wlarc='${wl}'
9623 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9625 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9626 else
9627 wlarc=''
9628 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9631 fi
9632 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_shlibpath_var=no
9634 case $host_os in
9635 solaris2.[0-5] | solaris2.[0-5].*) ;;
9636 *)
9637 # The compiler driver will combine linker options so we
9638 # cannot just pass the convience library names through
9639 # without $wl, iff we do not link with $LD.
9640 # Luckily, gcc supports the same syntax we need for Sun Studio.
9641 # Supported since Solaris 2.6 (maybe 2.5.1?)
9642 case $wlarc in
9643 '')
9644 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9645 *)
9646 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' ;;
9647 esac ;;
9648 esac
9649 link_all_deplibs=yes
9650 ;;
9651
9652 sunos4*)
9653 if test "x$host_vendor" = xsequent; then
9654 # Use $CC to link under sequent, because it throws in some extra .o
9655 # files that make .init and .fini sections work.
9656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657 else
9658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9659 fi
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_direct=yes
9662 hardcode_minus_L=yes
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 sysv4)
9667 case $host_vendor in
9668 sni)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=yes # is this really true???
9671 ;;
9672 siemens)
9673 ## LD is ld it makes a PLAMLIB
9674 ## CC just makes a GrossModule.
9675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9676 reload_cmds='$CC -r -o $output$reload_objs'
9677 hardcode_direct=no
9678 ;;
9679 motorola)
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9682 ;;
9683 esac
9684 runpath_var='LD_RUN_PATH'
9685 hardcode_shlibpath_var=no
9686 ;;
9687
9688 sysv4.3*)
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_shlibpath_var=no
9691 export_dynamic_flag_spec='-Bexport'
9692 ;;
9693
9694 sysv4*MP*)
9695 if test -d /usr/nec; then
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_shlibpath_var=no
9698 runpath_var=LD_RUN_PATH
9699 hardcode_runpath_var=yes
9700 ld_shlibs=yes
9701 fi
9702 ;;
9703
9704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9705 no_undefined_flag='${wl}-z,text'
9706 archive_cmds_need_lc=no
9707 hardcode_shlibpath_var=no
9708 runpath_var='LD_RUN_PATH'
9709
9710 if test "$GCC" = yes; then
9711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 else
9714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 fi
9717 ;;
9718
9719 sysv5* | sco3.2v5* | sco5v6*)
9720 # Note: We can NOT use -z defs as we might desire, because we do not
9721 # link with -lc, and that would cause any symbols used from libc to
9722 # always be unresolved, which means just about no library would
9723 # ever link correctly. If we're not using GNU ld we use -z text
9724 # though, which does catch some bad symbols but isn't as heavy-handed
9725 # as -z defs.
9726 no_undefined_flag='${wl}-z,text'
9727 allow_undefined_flag='${wl}-z,nodefs'
9728 archive_cmds_need_lc=no
9729 hardcode_shlibpath_var=no
9730 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9731 hardcode_libdir_separator=':'
9732 link_all_deplibs=yes
9733 export_dynamic_flag_spec='${wl}-Bexport'
9734 runpath_var='LD_RUN_PATH'
9735
9736 if test "$GCC" = yes; then
9737 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 else
9740 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 fi
9743 ;;
9744
9745 uts4*)
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_shlibpath_var=no
9749 ;;
9750
9751 *)
9752 ld_shlibs=no
9753 ;;
9754 esac
9755 fi
9756
9757 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9758 echo "${ECHO_T}$ld_shlibs" >&6
9759 test "$ld_shlibs" = no && can_build_shared=no
9760
9761 #
9762 # Do we need to explicitly link libc?
9763 #
9764 case "x$archive_cmds_need_lc" in
9765 x|xyes)
9766 # Assume -lc should be added
9767 archive_cmds_need_lc=yes
9768
9769 if test "$enable_shared" = yes && test "$GCC" = yes; then
9770 case $archive_cmds in
9771 *'~'*)
9772 # FIXME: we may have to deal with multi-command sequences.
9773 ;;
9774 '$CC '*)
9775 # Test whether the compiler implicitly links with -lc since on some
9776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9777 # to ld, don't add -lc before -lgcc.
9778 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9779 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9780 $rm conftest*
9781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9782
9783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9784 (eval $ac_compile) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } 2>conftest.err; then
9788 soname=conftest
9789 lib=conftest
9790 libobjs=conftest.$ac_objext
9791 deplibs=
9792 wl=$lt_prog_compiler_wl
9793 pic_flag=$lt_prog_compiler_pic
9794 compiler_flags=-v
9795 linker_flags=-v
9796 verstring=
9797 output_objdir=.
9798 libname=conftest
9799 lt_save_allow_undefined_flag=$allow_undefined_flag
9800 allow_undefined_flag=
9801 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9802 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }
9806 then
9807 archive_cmds_need_lc=no
9808 else
9809 archive_cmds_need_lc=yes
9810 fi
9811 allow_undefined_flag=$lt_save_allow_undefined_flag
9812 else
9813 cat conftest.err 1>&5
9814 fi
9815 $rm conftest*
9816 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9817 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9818 ;;
9819 esac
9820 fi
9821 ;;
9822 esac
9823
9824 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9825 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9826 library_names_spec=
9827 libname_spec='lib$name'
9828 soname_spec=
9829 shrext_cmds=".so"
9830 postinstall_cmds=
9831 postuninstall_cmds=
9832 finish_cmds=
9833 finish_eval=
9834 shlibpath_var=
9835 shlibpath_overrides_runpath=unknown
9836 version_type=none
9837 dynamic_linker="$host_os ld.so"
9838 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9839 if test "$GCC" = yes; then
9840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9842 # if the path contains ";" then we assume it to be the separator
9843 # otherwise default to the standard path separator (i.e. ":") - it is
9844 # assumed that no part of a normal pathname contains ";" but that should
9845 # okay in the real world where ";" in dirpaths is itself problematic.
9846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9847 else
9848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9849 fi
9850 else
9851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9852 fi
9853 need_lib_prefix=unknown
9854 hardcode_into_libs=no
9855
9856 # when you set need_version to no, make sure it does not cause -set_version
9857 # flags to be left without arguments
9858 need_version=unknown
9859
9860 case $host_os in
9861 aix3*)
9862 version_type=linux
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9864 shlibpath_var=LIBPATH
9865
9866 # AIX 3 has no versioning support, so we append a major version to the name.
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 ;;
9869
9870 aix4* | aix5*)
9871 version_type=linux
9872 need_lib_prefix=no
9873 need_version=no
9874 hardcode_into_libs=yes
9875 if test "$host_cpu" = ia64; then
9876 # AIX 5 supports IA64
9877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 else
9880 # With GCC up to 2.95.x, collect2 would create an import file
9881 # for dependence libraries. The import file would start with
9882 # the line `#! .'. This would cause the generated library to
9883 # depend on `.', always an invalid library. This was fixed in
9884 # development snapshots of GCC prior to 3.0.
9885 case $host_os in
9886 aix4 | aix4.[01] | aix4.[01].*)
9887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9888 echo ' yes '
9889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9890 :
9891 else
9892 can_build_shared=no
9893 fi
9894 ;;
9895 esac
9896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9897 # soname into executable. Probably we can add versioning support to
9898 # collect2, so additional links can be useful in future.
9899 if test "$aix_use_runtimelinking" = yes; then
9900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9901 # instead of lib<name>.a to let people know that these are not
9902 # typical AIX shared libraries.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 else
9905 # We preserve .a as extension for shared libraries through AIX4.2
9906 # and later when we are not doing run time linking.
9907 library_names_spec='${libname}${release}.a $libname.a'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 fi
9910 shlibpath_var=LIBPATH
9911 fi
9912 ;;
9913
9914 amigaos*)
9915 library_names_spec='$libname.ixlibrary $libname.a'
9916 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9917 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'
9918 ;;
9919
9920 beos*)
9921 library_names_spec='${libname}${shared_ext}'
9922 dynamic_linker="$host_os ld.so"
9923 shlibpath_var=LIBRARY_PATH
9924 ;;
9925
9926 bsdi[45]*)
9927 version_type=linux
9928 need_version=no
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9935 # the default ld.so.conf also contains /usr/contrib/lib and
9936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9937 # libtool to hard-code these into programs
9938 ;;
9939
9940 cygwin* | mingw* | pw32*)
9941 version_type=windows
9942 shrext_cmds=".dll"
9943 need_version=no
9944 need_lib_prefix=no
9945
9946 case $GCC,$host_os in
9947 yes,cygwin* | yes,mingw* | yes,pw32*)
9948 library_names_spec='$libname.dll.a'
9949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9950 postinstall_cmds='base_file=`basename \${file}`~
9951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9952 dldir=$destdir/`dirname \$dlpath`~
9953 test -d \$dldir || mkdir -p \$dldir~
9954 $install_prog $dir/$dlname \$dldir/$dlname~
9955 chmod a+x \$dldir/$dlname'
9956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9957 dlpath=$dir/\$dldll~
9958 $rm \$dlpath'
9959 shlibpath_overrides_runpath=yes
9960
9961 case $host_os in
9962 cygwin*)
9963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9966 ;;
9967 mingw*)
9968 # MinGW DLLs use traditional 'lib' prefix
9969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9971 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9972 # It is most probably a Windows format PATH printed by
9973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9974 # path with ; separators, and with drive letters. We can handle the
9975 # drive letters (cygwin fileutils understands them), so leave them,
9976 # especially as we might pass files found there to a mingw objdump,
9977 # which wouldn't understand a cygwinified path. Ahh.
9978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9979 else
9980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9981 fi
9982 ;;
9983 pw32*)
9984 # pw32 DLLs use 'pw' prefix rather than 'lib'
9985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986 ;;
9987 esac
9988 ;;
9989
9990 *)
9991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9992 ;;
9993 esac
9994 dynamic_linker='Win32 ld.exe'
9995 # FIXME: first we should search . and the directory the executable is in
9996 shlibpath_var=PATH
9997 ;;
9998
9999 darwin* | rhapsody*)
10000 dynamic_linker="$host_os dyld"
10001 version_type=darwin
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10005 soname_spec='${libname}${release}${major}$shared_ext'
10006 shlibpath_overrides_runpath=yes
10007 shlibpath_var=DYLD_LIBRARY_PATH
10008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10009 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10010 if test "$GCC" = yes; then
10011 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"`
10012 else
10013 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10014 fi
10015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016 ;;
10017
10018 dgux*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 ;;
10026
10027 freebsd1*)
10028 dynamic_linker=no
10029 ;;
10030
10031 kfreebsd*-gnu)
10032 version_type=linux
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 shlibpath_overrides_runpath=no
10039 hardcode_into_libs=yes
10040 dynamic_linker='GNU ld.so'
10041 ;;
10042
10043 freebsd* | dragonfly*)
10044 # DragonFly does not have aout. When/if they implement a new
10045 # versioning mechanism, adjust this.
10046 if test -x /usr/bin/objformat; then
10047 objformat=`/usr/bin/objformat`
10048 else
10049 case $host_os in
10050 freebsd[123]*) objformat=aout ;;
10051 *) objformat=elf ;;
10052 esac
10053 fi
10054 version_type=freebsd-$objformat
10055 case $version_type in
10056 freebsd-elf*)
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10058 need_version=no
10059 need_lib_prefix=no
10060 ;;
10061 freebsd-*)
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10063 need_version=yes
10064 ;;
10065 esac
10066 shlibpath_var=LD_LIBRARY_PATH
10067 case $host_os in
10068 freebsd2*)
10069 shlibpath_overrides_runpath=yes
10070 ;;
10071 freebsd3.[01]* | freebsdelf3.[01]*)
10072 shlibpath_overrides_runpath=yes
10073 hardcode_into_libs=yes
10074 ;;
10075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 ;;
10080 freebsd*) # from 4.6 on
10081 shlibpath_overrides_runpath=yes
10082 hardcode_into_libs=yes
10083 ;;
10084 esac
10085 ;;
10086
10087 gnu*)
10088 version_type=linux
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 hardcode_into_libs=yes
10095 ;;
10096
10097 hpux9* | hpux10* | hpux11*)
10098 # Give a soname corresponding to the major version so that dld.sl refuses to
10099 # link against other versions.
10100 version_type=sunos
10101 need_lib_prefix=no
10102 need_version=no
10103 case $host_cpu in
10104 ia64*)
10105 shrext_cmds='.so'
10106 hardcode_into_libs=yes
10107 dynamic_linker="$host_os dld.so"
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 if test "X$HPUX_IA64_MODE" = X32; then
10113 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10114 else
10115 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10116 fi
10117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10118 ;;
10119 hppa*64*)
10120 shrext_cmds='.sl'
10121 hardcode_into_libs=yes
10122 dynamic_linker="$host_os dld.sl"
10123 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10129 ;;
10130 *)
10131 shrext_cmds='.sl'
10132 dynamic_linker="$host_os dld.sl"
10133 shlibpath_var=SHLIB_PATH
10134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 ;;
10138 esac
10139 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10140 postinstall_cmds='chmod 555 $lib'
10141 ;;
10142
10143 interix3*)
10144 version_type=linux
10145 need_lib_prefix=no
10146 need_version=no
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=no
10152 hardcode_into_libs=yes
10153 ;;
10154
10155 irix5* | irix6* | nonstopux*)
10156 case $host_os in
10157 nonstopux*) version_type=nonstopux ;;
10158 *)
10159 if test "$lt_cv_prog_gnu_ld" = yes; then
10160 version_type=linux
10161 else
10162 version_type=irix
10163 fi ;;
10164 esac
10165 need_lib_prefix=no
10166 need_version=no
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10169 case $host_os in
10170 irix5* | nonstopux*)
10171 libsuff= shlibsuff=
10172 ;;
10173 *)
10174 case $LD in # libtool.m4 will add one of these switches to LD
10175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10176 libsuff= shlibsuff= libmagic=32-bit;;
10177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10178 libsuff=32 shlibsuff=N32 libmagic=N32;;
10179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10181 *) libsuff= shlibsuff= libmagic=never-match;;
10182 esac
10183 ;;
10184 esac
10185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10186 shlibpath_overrides_runpath=no
10187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10189 hardcode_into_libs=yes
10190 ;;
10191
10192 # No shared lib support for Linux oldld, aout, or coff.
10193 linux*oldld* | linux*aout* | linux*coff*)
10194 dynamic_linker=no
10195 ;;
10196
10197 # This must be Linux ELF.
10198 linux*)
10199 version_type=linux
10200 need_lib_prefix=no
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=no
10207 # This implies no fast_install, which is unacceptable.
10208 # Some rework will be needed to allow for fast_install
10209 # before this can be enabled.
10210 hardcode_into_libs=yes
10211
10212 # Append ld.so.conf contents to the search path
10213 if test -f /etc/ld.so.conf; then
10214 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' ' '`
10215 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10216 fi
10217
10218 # We used to test for /lib/ld.so.1 and disable shared libraries on
10219 # powerpc, because MkLinux only supported shared libraries with the
10220 # GNU dynamic linker. Since this was broken with cross compilers,
10221 # most powerpc-linux boxes support dynamic linking these days and
10222 # people can always --disable-shared, the test was removed, and we
10223 # assume the GNU/Linux dynamic linker is in use.
10224 dynamic_linker='GNU/Linux ld.so'
10225 ;;
10226
10227 knetbsd*-gnu)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
10235 hardcode_into_libs=yes
10236 dynamic_linker='GNU ld.so'
10237 ;;
10238
10239 netbsd*)
10240 version_type=sunos
10241 need_lib_prefix=no
10242 need_version=no
10243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10246 dynamic_linker='NetBSD (a.out) ld.so'
10247 else
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 dynamic_linker='NetBSD ld.elf_so'
10251 fi
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10254 hardcode_into_libs=yes
10255 ;;
10256
10257 newsos6)
10258 version_type=linux
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 ;;
10263
10264 nto-qnx*)
10265 version_type=linux
10266 need_lib_prefix=no
10267 need_version=no
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10272 ;;
10273
10274 openbsd*)
10275 version_type=sunos
10276 sys_lib_dlsearch_path_spec="/usr/lib"
10277 need_lib_prefix=no
10278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10279 case $host_os in
10280 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10281 *) need_version=no ;;
10282 esac
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10287 case $host_os in
10288 openbsd2.[89] | openbsd2.[89].*)
10289 shlibpath_overrides_runpath=no
10290 ;;
10291 *)
10292 shlibpath_overrides_runpath=yes
10293 ;;
10294 esac
10295 else
10296 shlibpath_overrides_runpath=yes
10297 fi
10298 ;;
10299
10300 os2*)
10301 libname_spec='$name'
10302 shrext_cmds=".dll"
10303 need_lib_prefix=no
10304 library_names_spec='$libname${shared_ext} $libname.a'
10305 dynamic_linker='OS/2 ld.exe'
10306 shlibpath_var=LIBPATH
10307 ;;
10308
10309 osf3* | osf4* | osf5*)
10310 version_type=osf
10311 need_lib_prefix=no
10312 need_version=no
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10318 ;;
10319
10320 solaris*)
10321 version_type=linux
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10329 # ldd complains unless libraries are executable
10330 postinstall_cmds='chmod +x $lib'
10331 ;;
10332
10333 sunos4*)
10334 version_type=sunos
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 if test "$with_gnu_ld" = yes; then
10340 need_lib_prefix=no
10341 fi
10342 need_version=yes
10343 ;;
10344
10345 sysv4 | sysv4.3*)
10346 version_type=linux
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 case $host_vendor in
10351 sni)
10352 shlibpath_overrides_runpath=no
10353 need_lib_prefix=no
10354 export_dynamic_flag_spec='${wl}-Blargedynsym'
10355 runpath_var=LD_RUN_PATH
10356 ;;
10357 siemens)
10358 need_lib_prefix=no
10359 ;;
10360 motorola)
10361 need_lib_prefix=no
10362 need_version=no
10363 shlibpath_overrides_runpath=no
10364 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10365 ;;
10366 esac
10367 ;;
10368
10369 sysv4*MP*)
10370 if test -d /usr/nec ;then
10371 version_type=linux
10372 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10373 soname_spec='$libname${shared_ext}.$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 fi
10376 ;;
10377
10378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10379 version_type=freebsd-elf
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 hardcode_into_libs=yes
10386 if test "$with_gnu_ld" = yes; then
10387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10388 shlibpath_overrides_runpath=no
10389 else
10390 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10391 shlibpath_overrides_runpath=yes
10392 case $host_os in
10393 sco3.2v5*)
10394 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10395 ;;
10396 esac
10397 fi
10398 sys_lib_dlsearch_path_spec='/usr/lib'
10399 ;;
10400
10401 uts4*)
10402 version_type=linux
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 ;;
10407
10408 *)
10409 dynamic_linker=no
10410 ;;
10411 esac
10412 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10413 echo "${ECHO_T}$dynamic_linker" >&6
10414 test "$dynamic_linker" = no && can_build_shared=no
10415
10416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10417 if test "$GCC" = yes; then
10418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10419 fi
10420
10421 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10422 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10423 hardcode_action=
10424 if test -n "$hardcode_libdir_flag_spec" || \
10425 test -n "$runpath_var" || \
10426 test "X$hardcode_automatic" = "Xyes" ; then
10427
10428 # We can hardcode non-existant directories.
10429 if test "$hardcode_direct" != no &&
10430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10431 # have to relink, otherwise we might link with an installed library
10432 # when we should be linking with a yet-to-be-installed one
10433 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10434 test "$hardcode_minus_L" != no; then
10435 # Linking always hardcodes the temporary library directory.
10436 hardcode_action=relink
10437 else
10438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10439 hardcode_action=immediate
10440 fi
10441 else
10442 # We cannot hardcode anything, or else we can only hardcode existing
10443 # directories.
10444 hardcode_action=unsupported
10445 fi
10446 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10447 echo "${ECHO_T}$hardcode_action" >&6
10448
10449 if test "$hardcode_action" = relink; then
10450 # Fast installation is not supported
10451 enable_fast_install=no
10452 elif test "$shlibpath_overrides_runpath" = yes ||
10453 test "$enable_shared" = no; then
10454 # Fast installation is not necessary
10455 enable_fast_install=needless
10456 fi
10457
10458 striplib=
10459 old_striplib=
10460 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10461 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10462 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10463 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10464 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10465 echo "$as_me:$LINENO: result: yes" >&5
10466 echo "${ECHO_T}yes" >&6
10467 else
10468 # FIXME - insert some real tests, host_os isn't really good enough
10469 case $host_os in
10470 darwin*)
10471 if test -n "$STRIP" ; then
10472 striplib="$STRIP -x"
10473 echo "$as_me:$LINENO: result: yes" >&5
10474 echo "${ECHO_T}yes" >&6
10475 else
10476 echo "$as_me:$LINENO: result: no" >&5
10477 echo "${ECHO_T}no" >&6
10478 fi
10479 ;;
10480 *)
10481 echo "$as_me:$LINENO: result: no" >&5
10482 echo "${ECHO_T}no" >&6
10483 ;;
10484 esac
10485 fi
10486
10487 if test "x$enable_dlopen" != xyes; then
10488 enable_dlopen=unknown
10489 enable_dlopen_self=unknown
10490 enable_dlopen_self_static=unknown
10491 else
10492 lt_cv_dlopen=no
10493 lt_cv_dlopen_libs=
10494
10495 case $host_os in
10496 beos*)
10497 lt_cv_dlopen="load_add_on"
10498 lt_cv_dlopen_libs=
10499 lt_cv_dlopen_self=yes
10500 ;;
10501
10502 mingw* | pw32*)
10503 lt_cv_dlopen="LoadLibrary"
10504 lt_cv_dlopen_libs=
10505 ;;
10506
10507 cygwin*)
10508 lt_cv_dlopen="dlopen"
10509 lt_cv_dlopen_libs=
10510 ;;
10511
10512 darwin*)
10513 # if libdl is installed we need to link against it
10514 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10515 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10516 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-ldl $LIBS"
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527
10528 /* Override any gcc2 internal prototype to avoid an error. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534 char dlopen ();
10535 int
10536 main ()
10537 {
10538 dlopen ();
10539 ;
10540 return 0;
10541 }
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_c_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_lib_dl_dlopen=yes
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_cv_lib_dl_dlopen=no
10571 fi
10572 rm -f conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10575 fi
10576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10578 if test $ac_cv_lib_dl_dlopen = yes; then
10579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10580 else
10581
10582 lt_cv_dlopen="dyld"
10583 lt_cv_dlopen_libs=
10584 lt_cv_dlopen_self=yes
10585
10586 fi
10587
10588 ;;
10589
10590 *)
10591 echo "$as_me:$LINENO: checking for shl_load" >&5
10592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10593 if test "${ac_cv_func_shl_load+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10604 #define shl_load innocuous_shl_load
10605
10606 /* System header to define __stub macros and hopefully few prototypes,
10607 which can conflict with char shl_load (); below.
10608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10609 <limits.h> exists even on freestanding compilers. */
10610
10611 #ifdef __STDC__
10612 # include <limits.h>
10613 #else
10614 # include <assert.h>
10615 #endif
10616
10617 #undef shl_load
10618
10619 /* Override any gcc2 internal prototype to avoid an error. */
10620 #ifdef __cplusplus
10621 extern "C"
10622 {
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char shl_load ();
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10631 choke me
10632 #else
10633 char (*f) () = shl_load;
10634 #endif
10635 #ifdef __cplusplus
10636 }
10637 #endif
10638
10639 int
10640 main ()
10641 {
10642 return f != shl_load;
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_func_shl_load=yes
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 ac_cv_func_shl_load=no
10675 fi
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 fi
10679 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10681 if test $ac_cv_func_shl_load = yes; then
10682 lt_cv_dlopen="shl_load"
10683 else
10684 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldld $LIBS"
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697
10698 /* Override any gcc2 internal prototype to avoid an error. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 /* We use char because int might match the return type of a gcc2
10703 builtin and then its argument prototype would still apply. */
10704 char shl_load ();
10705 int
10706 main ()
10707 {
10708 shl_load ();
10709 ;
10710 return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10715 (eval $ac_link) 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag"
10723 || test ! -s conftest.err'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_lib_dld_shl_load=yes
10736 else
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740 ac_cv_lib_dld_shl_load=no
10741 fi
10742 rm -f conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10747 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10748 if test $ac_cv_lib_dld_shl_load = yes; then
10749 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10750 else
10751 echo "$as_me:$LINENO: checking for dlopen" >&5
10752 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10753 if test "${ac_cv_func_dlopen+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10764 #define dlopen innocuous_dlopen
10765
10766 /* System header to define __stub macros and hopefully few prototypes,
10767 which can conflict with char dlopen (); below.
10768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10769 <limits.h> exists even on freestanding compilers. */
10770
10771 #ifdef __STDC__
10772 # include <limits.h>
10773 #else
10774 # include <assert.h>
10775 #endif
10776
10777 #undef dlopen
10778
10779 /* Override any gcc2 internal prototype to avoid an error. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 {
10783 #endif
10784 /* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10786 char dlopen ();
10787 /* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10791 choke me
10792 #else
10793 char (*f) () = dlopen;
10794 #endif
10795 #ifdef __cplusplus
10796 }
10797 #endif
10798
10799 int
10800 main ()
10801 {
10802 return f != dlopen;
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809 (eval $ac_link) 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_c_werror_flag"
10817 || test ! -s conftest.err'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_func_dlopen=yes
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834 ac_cv_func_dlopen=no
10835 fi
10836 rm -f conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 fi
10839 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10840 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10841 if test $ac_cv_func_dlopen = yes; then
10842 lt_cv_dlopen="dlopen"
10843 else
10844 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10845 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl $LIBS"
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857
10858 /* Override any gcc2 internal prototype to avoid an error. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10864 char dlopen ();
10865 int
10866 main ()
10867 {
10868 dlopen ();
10869 ;
10870 return 0;
10871 }
10872 _ACEOF
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875 (eval $ac_link) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag"
10883 || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest$ac_exeext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_lib_dl_dlopen=yes
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_cv_lib_dl_dlopen=no
10901 fi
10902 rm -f conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10908 if test $ac_cv_lib_dl_dlopen = yes; then
10909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10910 else
10911 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lsvld $LIBS"
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924
10925 /* Override any gcc2 internal prototype to avoid an error. */
10926 #ifdef __cplusplus
10927 extern "C"
10928 #endif
10929 /* We use char because int might match the return type of a gcc2
10930 builtin and then its argument prototype would still apply. */
10931 char dlopen ();
10932 int
10933 main ()
10934 {
10935 dlopen ();
10936 ;
10937 return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942 (eval $ac_link) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest$ac_exeext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_lib_svld_dlopen=yes
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967 ac_cv_lib_svld_dlopen=no
10968 fi
10969 rm -f conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10974 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10975 if test $ac_cv_lib_svld_dlopen = yes; then
10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10977 else
10978 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10979 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10980 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983 ac_check_lib_save_LIBS=$LIBS
10984 LIBS="-ldld $LIBS"
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991
10992 /* Override any gcc2 internal prototype to avoid an error. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char dld_link ();
10999 int
11000 main ()
11001 {
11002 dld_link ();
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_dld_dld_link=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_lib_dld_dld_link=no
11035 fi
11036 rm -f conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11041 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11042 if test $ac_cv_lib_dld_dld_link = yes; then
11043 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11044 fi
11045
11046
11047 fi
11048
11049
11050 fi
11051
11052
11053 fi
11054
11055
11056 fi
11057
11058
11059 fi
11060
11061 ;;
11062 esac
11063
11064 if test "x$lt_cv_dlopen" != xno; then
11065 enable_dlopen=yes
11066 else
11067 enable_dlopen=no
11068 fi
11069
11070 case $lt_cv_dlopen in
11071 dlopen)
11072 save_CPPFLAGS="$CPPFLAGS"
11073 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11074
11075 save_LDFLAGS="$LDFLAGS"
11076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11077
11078 save_LIBS="$LIBS"
11079 LIBS="$lt_cv_dlopen_libs $LIBS"
11080
11081 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11082 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11083 if test "${lt_cv_dlopen_self+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 if test "$cross_compiling" = yes; then :
11087 lt_cv_dlopen_self=cross
11088 else
11089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11090 lt_status=$lt_dlunknown
11091 cat > conftest.$ac_ext <<EOF
11092 #line 11092 "configure"
11093 #include "confdefs.h"
11094
11095 #if HAVE_DLFCN_H
11096 #include <dlfcn.h>
11097 #endif
11098
11099 #include <stdio.h>
11100
11101 #ifdef RTLD_GLOBAL
11102 # define LT_DLGLOBAL RTLD_GLOBAL
11103 #else
11104 # ifdef DL_GLOBAL
11105 # define LT_DLGLOBAL DL_GLOBAL
11106 # else
11107 # define LT_DLGLOBAL 0
11108 # endif
11109 #endif
11110
11111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11112 find out it does not work in some platform. */
11113 #ifndef LT_DLLAZY_OR_NOW
11114 # ifdef RTLD_LAZY
11115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11116 # else
11117 # ifdef DL_LAZY
11118 # define LT_DLLAZY_OR_NOW DL_LAZY
11119 # else
11120 # ifdef RTLD_NOW
11121 # define LT_DLLAZY_OR_NOW RTLD_NOW
11122 # else
11123 # ifdef DL_NOW
11124 # define LT_DLLAZY_OR_NOW DL_NOW
11125 # else
11126 # define LT_DLLAZY_OR_NOW 0
11127 # endif
11128 # endif
11129 # endif
11130 # endif
11131 #endif
11132
11133 #ifdef __cplusplus
11134 extern "C" void exit (int);
11135 #endif
11136
11137 void fnord() { int i=42;}
11138 int main ()
11139 {
11140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11141 int status = $lt_dlunknown;
11142
11143 if (self)
11144 {
11145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11147 /* dlclose (self); */
11148 }
11149 else
11150 puts (dlerror ());
11151
11152 exit (status);
11153 }
11154 EOF
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11160 (./conftest; exit; ) >&5 2>/dev/null
11161 lt_status=$?
11162 case x$lt_status in
11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11166 esac
11167 else :
11168 # compilation failed
11169 lt_cv_dlopen_self=no
11170 fi
11171 fi
11172 rm -fr conftest*
11173
11174
11175 fi
11176 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11177 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11178
11179 if test "x$lt_cv_dlopen_self" = xyes; then
11180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11181 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11182 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11183 if test "${lt_cv_dlopen_self_static+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self_static=cross
11188 else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11194
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11198
11199 #include <stdio.h>
11200
11201 #ifdef RTLD_GLOBAL
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11203 #else
11204 # ifdef DL_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11206 # else
11207 # define LT_DLGLOBAL 0
11208 # endif
11209 #endif
11210
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 # ifdef RTLD_LAZY
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # else
11217 # ifdef DL_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # else
11220 # ifdef RTLD_NOW
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # else
11223 # ifdef DL_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # else
11226 # define LT_DLLAZY_OR_NOW 0
11227 # endif
11228 # endif
11229 # endif
11230 # endif
11231 #endif
11232
11233 #ifdef __cplusplus
11234 extern "C" void exit (int);
11235 #endif
11236
11237 void fnord() { int i=42;}
11238 int main ()
11239 {
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11242
11243 if (self)
11244 {
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11247 /* dlclose (self); */
11248 }
11249 else
11250 puts (dlerror ());
11251
11252 exit (status);
11253 }
11254 EOF
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11260 (./conftest; exit; ) >&5 2>/dev/null
11261 lt_status=$?
11262 case x$lt_status in
11263 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11264 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11265 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11266 esac
11267 else :
11268 # compilation failed
11269 lt_cv_dlopen_self_static=no
11270 fi
11271 fi
11272 rm -fr conftest*
11273
11274
11275 fi
11276 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11277 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11278 fi
11279
11280 CPPFLAGS="$save_CPPFLAGS"
11281 LDFLAGS="$save_LDFLAGS"
11282 LIBS="$save_LIBS"
11283 ;;
11284 esac
11285
11286 case $lt_cv_dlopen_self in
11287 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11288 *) enable_dlopen_self=unknown ;;
11289 esac
11290
11291 case $lt_cv_dlopen_self_static in
11292 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11293 *) enable_dlopen_self_static=unknown ;;
11294 esac
11295 fi
11296
11297
11298 # Report which library types will actually be built
11299 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11300 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11301 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11302 echo "${ECHO_T}$can_build_shared" >&6
11303
11304 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11305 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11306 test "$can_build_shared" = "no" && enable_shared=no
11307
11308 # On AIX, shared libraries and static libraries use the same namespace, and
11309 # are all built from PIC.
11310 case $host_os in
11311 aix3*)
11312 test "$enable_shared" = yes && enable_static=no
11313 if test -n "$RANLIB"; then
11314 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11315 postinstall_cmds='$RANLIB $lib'
11316 fi
11317 ;;
11318
11319 aix4* | aix5*)
11320 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11321 test "$enable_shared" = yes && enable_static=no
11322 fi
11323 ;;
11324 esac
11325 echo "$as_me:$LINENO: result: $enable_shared" >&5
11326 echo "${ECHO_T}$enable_shared" >&6
11327
11328 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11329 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11330 # Make sure either enable_shared or enable_static is yes.
11331 test "$enable_shared" = yes || enable_static=yes
11332 echo "$as_me:$LINENO: result: $enable_static" >&5
11333 echo "${ECHO_T}$enable_static" >&6
11334
11335 # The else clause should only fire when bootstrapping the
11336 # libtool distribution, otherwise you forgot to ship ltmain.sh
11337 # with your package, and you will get complaints that there are
11338 # no rules to generate ltmain.sh.
11339 if test -f "$ltmain"; then
11340 # See if we are running on zsh, and set the options which allow our commands through
11341 # without removal of \ escapes.
11342 if test -n "${ZSH_VERSION+set}" ; then
11343 setopt NO_GLOB_SUBST
11344 fi
11345 # Now quote all the things that may contain metacharacters while being
11346 # careful not to overquote the AC_SUBSTed values. We take copies of the
11347 # variables and quote the copies for generation of the libtool script.
11348 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11349 SED SHELL STRIP \
11350 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11351 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11352 deplibs_check_method reload_flag reload_cmds need_locks \
11353 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11354 lt_cv_sys_global_symbol_to_c_name_address \
11355 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11356 old_postinstall_cmds old_postuninstall_cmds \
11357 compiler \
11358 CC \
11359 LD \
11360 lt_prog_compiler_wl \
11361 lt_prog_compiler_pic \
11362 lt_prog_compiler_static \
11363 lt_prog_compiler_no_builtin_flag \
11364 export_dynamic_flag_spec \
11365 thread_safe_flag_spec \
11366 whole_archive_flag_spec \
11367 enable_shared_with_static_runtimes \
11368 old_archive_cmds \
11369 old_archive_from_new_cmds \
11370 predep_objects \
11371 postdep_objects \
11372 predeps \
11373 postdeps \
11374 compiler_lib_search_path \
11375 archive_cmds \
11376 archive_expsym_cmds \
11377 postinstall_cmds \
11378 postuninstall_cmds \
11379 old_archive_from_expsyms_cmds \
11380 allow_undefined_flag \
11381 no_undefined_flag \
11382 export_symbols_cmds \
11383 hardcode_libdir_flag_spec \
11384 hardcode_libdir_flag_spec_ld \
11385 hardcode_libdir_separator \
11386 hardcode_automatic \
11387 module_cmds \
11388 module_expsym_cmds \
11389 lt_cv_prog_compiler_c_o \
11390 exclude_expsyms \
11391 include_expsyms; do
11392
11393 case $var in
11394 old_archive_cmds | \
11395 old_archive_from_new_cmds | \
11396 archive_cmds | \
11397 archive_expsym_cmds | \
11398 module_cmds | \
11399 module_expsym_cmds | \
11400 old_archive_from_expsyms_cmds | \
11401 export_symbols_cmds | \
11402 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11403 postinstall_cmds | postuninstall_cmds | \
11404 old_postinstall_cmds | old_postuninstall_cmds | \
11405 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11406 # Double-quote double-evaled strings.
11407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11408 ;;
11409 *)
11410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11411 ;;
11412 esac
11413 done
11414
11415 case $lt_echo in
11416 *'\$0 --fallback-echo"')
11417 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11418 ;;
11419 esac
11420
11421 cfgfile="${ofile}T"
11422 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11423 $rm -f "$cfgfile"
11424 { echo "$as_me:$LINENO: creating $ofile" >&5
11425 echo "$as_me: creating $ofile" >&6;}
11426
11427 cat <<__EOF__ >> "$cfgfile"
11428 #! $SHELL
11429
11430 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11431 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11432 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11433 #
11434 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11435 # Free Software Foundation, Inc.
11436 #
11437 # This file is part of GNU Libtool:
11438 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11439 #
11440 # This program is free software; you can redistribute it and/or modify
11441 # it under the terms of the GNU General Public License as published by
11442 # the Free Software Foundation; either version 2 of the License, or
11443 # (at your option) any later version.
11444 #
11445 # This program is distributed in the hope that it will be useful, but
11446 # WITHOUT ANY WARRANTY; without even the implied warranty of
11447 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11448 # General Public License for more details.
11449 #
11450 # You should have received a copy of the GNU General Public License
11451 # along with this program; if not, write to the Free Software
11452 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11453 #
11454 # As a special exception to the GNU General Public License, if you
11455 # distribute this file as part of a program that contains a
11456 # configuration script generated by Autoconf, you may include it under
11457 # the same distribution terms that you use for the rest of that program.
11458
11459 # A sed program that does not truncate output.
11460 SED=$lt_SED
11461
11462 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11463 Xsed="$SED -e 1s/^X//"
11464
11465 # The HP-UX ksh and POSIX shell print the target directory to stdout
11466 # if CDPATH is set.
11467 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11468
11469 # The names of the tagged configurations supported by this script.
11470 available_tags=
11471
11472 # ### BEGIN LIBTOOL CONFIG
11473
11474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11475
11476 # Shell to use when invoking shell scripts.
11477 SHELL=$lt_SHELL
11478
11479 # Whether or not to build shared libraries.
11480 build_libtool_libs=$enable_shared
11481
11482 # Whether or not to build static libraries.
11483 build_old_libs=$enable_static
11484
11485 # Whether or not to add -lc for building shared libraries.
11486 build_libtool_need_lc=$archive_cmds_need_lc
11487
11488 # Whether or not to disallow shared libs when runtime libs are static
11489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11490
11491 # Whether or not to optimize for fast installation.
11492 fast_install=$enable_fast_install
11493
11494 # The host system.
11495 host_alias=$host_alias
11496 host=$host
11497 host_os=$host_os
11498
11499 # The build system.
11500 build_alias=$build_alias
11501 build=$build
11502 build_os=$build_os
11503
11504 # An echo program that does not interpret backslashes.
11505 echo=$lt_echo
11506
11507 # The archiver.
11508 AR=$lt_AR
11509 AR_FLAGS=$lt_AR_FLAGS
11510
11511 # A C compiler.
11512 LTCC=$lt_LTCC
11513
11514 # LTCC compiler flags.
11515 LTCFLAGS=$lt_LTCFLAGS
11516
11517 # A language-specific compiler.
11518 CC=$lt_compiler
11519
11520 # Is the compiler the GNU C compiler?
11521 with_gcc=$GCC
11522
11523 # An ERE matcher.
11524 EGREP=$lt_EGREP
11525
11526 # The linker used to build libraries.
11527 LD=$lt_LD
11528
11529 # Whether we need hard or soft links.
11530 LN_S=$lt_LN_S
11531
11532 # A BSD-compatible nm program.
11533 NM=$lt_NM
11534
11535 # A symbol stripping program
11536 STRIP=$lt_STRIP
11537
11538 # Used to examine libraries when file_magic_cmd begins "file"
11539 MAGIC_CMD=$MAGIC_CMD
11540
11541 # Used on cygwin: DLL creation program.
11542 DLLTOOL="$DLLTOOL"
11543
11544 # Used on cygwin: object dumper.
11545 OBJDUMP="$OBJDUMP"
11546
11547 # Used on cygwin: assembler.
11548 AS="$AS"
11549
11550 # The name of the directory that contains temporary libtool files.
11551 objdir=$objdir
11552
11553 # How to create reloadable object files.
11554 reload_flag=$lt_reload_flag
11555 reload_cmds=$lt_reload_cmds
11556
11557 # How to pass a linker flag through the compiler.
11558 wl=$lt_lt_prog_compiler_wl
11559
11560 # Object file suffix (normally "o").
11561 objext="$ac_objext"
11562
11563 # Old archive suffix (normally "a").
11564 libext="$libext"
11565
11566 # Shared library suffix (normally ".so").
11567 shrext_cmds='$shrext_cmds'
11568
11569 # Executable file suffix (normally "").
11570 exeext="$exeext"
11571
11572 # Additional compiler flags for building library objects.
11573 pic_flag=$lt_lt_prog_compiler_pic
11574 pic_mode=$pic_mode
11575
11576 # What is the maximum length of a command?
11577 max_cmd_len=$lt_cv_sys_max_cmd_len
11578
11579 # Does compiler simultaneously support -c and -o options?
11580 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11581
11582 # Must we lock files when doing compilation?
11583 need_locks=$lt_need_locks
11584
11585 # Do we need the lib prefix for modules?
11586 need_lib_prefix=$need_lib_prefix
11587
11588 # Do we need a version for libraries?
11589 need_version=$need_version
11590
11591 # Whether dlopen is supported.
11592 dlopen_support=$enable_dlopen
11593
11594 # Whether dlopen of programs is supported.
11595 dlopen_self=$enable_dlopen_self
11596
11597 # Whether dlopen of statically linked programs is supported.
11598 dlopen_self_static=$enable_dlopen_self_static
11599
11600 # Compiler flag to prevent dynamic linking.
11601 link_static_flag=$lt_lt_prog_compiler_static
11602
11603 # Compiler flag to turn off builtin functions.
11604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11605
11606 # Compiler flag to allow reflexive dlopens.
11607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11608
11609 # Compiler flag to generate shared objects directly from archives.
11610 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11611
11612 # Compiler flag to generate thread-safe objects.
11613 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11614
11615 # Library versioning type.
11616 version_type=$version_type
11617
11618 # Format of library name prefix.
11619 libname_spec=$lt_libname_spec
11620
11621 # List of archive names. First name is the real one, the rest are links.
11622 # The last name is the one that the linker finds with -lNAME.
11623 library_names_spec=$lt_library_names_spec
11624
11625 # The coded name of the library, if different from the real name.
11626 soname_spec=$lt_soname_spec
11627
11628 # Commands used to build and install an old-style archive.
11629 RANLIB=$lt_RANLIB
11630 old_archive_cmds=$lt_old_archive_cmds
11631 old_postinstall_cmds=$lt_old_postinstall_cmds
11632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11633
11634 # Create an old-style archive from a shared archive.
11635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11636
11637 # Create a temporary old-style archive to link instead of a shared archive.
11638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11639
11640 # Commands used to build and install a shared archive.
11641 archive_cmds=$lt_archive_cmds
11642 archive_expsym_cmds=$lt_archive_expsym_cmds
11643 postinstall_cmds=$lt_postinstall_cmds
11644 postuninstall_cmds=$lt_postuninstall_cmds
11645
11646 # Commands used to build a loadable module (assumed same as above if empty)
11647 module_cmds=$lt_module_cmds
11648 module_expsym_cmds=$lt_module_expsym_cmds
11649
11650 # Commands to strip libraries.
11651 old_striplib=$lt_old_striplib
11652 striplib=$lt_striplib
11653
11654 # Dependencies to place before the objects being linked to create a
11655 # shared library.
11656 predep_objects=$lt_predep_objects
11657
11658 # Dependencies to place after the objects being linked to create a
11659 # shared library.
11660 postdep_objects=$lt_postdep_objects
11661
11662 # Dependencies to place before the objects being linked to create a
11663 # shared library.
11664 predeps=$lt_predeps
11665
11666 # Dependencies to place after the objects being linked to create a
11667 # shared library.
11668 postdeps=$lt_postdeps
11669
11670 # The library search path used internally by the compiler when linking
11671 # a shared library.
11672 compiler_lib_search_path=$lt_compiler_lib_search_path
11673
11674 # Method to check whether dependent libraries are shared objects.
11675 deplibs_check_method=$lt_deplibs_check_method
11676
11677 # Command to use when deplibs_check_method == file_magic.
11678 file_magic_cmd=$lt_file_magic_cmd
11679
11680 # Flag that allows shared libraries with undefined symbols to be built.
11681 allow_undefined_flag=$lt_allow_undefined_flag
11682
11683 # Flag that forces no undefined symbols.
11684 no_undefined_flag=$lt_no_undefined_flag
11685
11686 # Commands used to finish a libtool library installation in a directory.
11687 finish_cmds=$lt_finish_cmds
11688
11689 # Same as above, but a single script fragment to be evaled but not shown.
11690 finish_eval=$lt_finish_eval
11691
11692 # Take the output of nm and produce a listing of raw symbols and C names.
11693 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11694
11695 # Transform the output of nm in a proper C declaration
11696 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11697
11698 # Transform the output of nm in a C name address pair
11699 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11700
11701 # This is the shared library runtime path variable.
11702 runpath_var=$runpath_var
11703
11704 # This is the shared library path variable.
11705 shlibpath_var=$shlibpath_var
11706
11707 # Is shlibpath searched before the hard-coded library search path?
11708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11709
11710 # How to hardcode a shared library path into an executable.
11711 hardcode_action=$hardcode_action
11712
11713 # Whether we should hardcode library paths into libraries.
11714 hardcode_into_libs=$hardcode_into_libs
11715
11716 # Flag to hardcode \$libdir into a binary during linking.
11717 # This must work even if \$libdir does not exist.
11718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11719
11720 # If ld is used when linking, flag to hardcode \$libdir into
11721 # a binary during linking. This must work even if \$libdir does
11722 # not exist.
11723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11724
11725 # Whether we need a single -rpath flag with a separated argument.
11726 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11727
11728 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11729 # resulting binary.
11730 hardcode_direct=$hardcode_direct
11731
11732 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11733 # resulting binary.
11734 hardcode_minus_L=$hardcode_minus_L
11735
11736 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11737 # the resulting binary.
11738 hardcode_shlibpath_var=$hardcode_shlibpath_var
11739
11740 # Set to yes if building a shared library automatically hardcodes DIR into the library
11741 # and all subsequent libraries and executables linked against it.
11742 hardcode_automatic=$hardcode_automatic
11743
11744 # Variables whose values should be saved in libtool wrapper scripts and
11745 # restored at relink time.
11746 variables_saved_for_relink="$variables_saved_for_relink"
11747
11748 # Whether libtool must link a program against all its dependency libraries.
11749 link_all_deplibs=$link_all_deplibs
11750
11751 # Compile-time system search path for libraries
11752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11753
11754 # Run-time system search path for libraries
11755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11756
11757 # Fix the shell variable \$srcfile for the compiler.
11758 fix_srcfile_path="$fix_srcfile_path"
11759
11760 # Set to yes if exported symbols are required.
11761 always_export_symbols=$always_export_symbols
11762
11763 # The commands to list exported symbols.
11764 export_symbols_cmds=$lt_export_symbols_cmds
11765
11766 # The commands to extract the exported symbol list from a shared archive.
11767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11768
11769 # Symbols that should not be listed in the preloaded symbols.
11770 exclude_expsyms=$lt_exclude_expsyms
11771
11772 # Symbols that must always be exported.
11773 include_expsyms=$lt_include_expsyms
11774
11775 # ### END LIBTOOL CONFIG
11776
11777 __EOF__
11778
11779
11780 case $host_os in
11781 aix3*)
11782 cat <<\EOF >> "$cfgfile"
11783
11784 # AIX sometimes has problems with the GCC collect2 program. For some
11785 # reason, if we set the COLLECT_NAMES environment variable, the problems
11786 # vanish in a puff of smoke.
11787 if test "X${COLLECT_NAMES+set}" != Xset; then
11788 COLLECT_NAMES=
11789 export COLLECT_NAMES
11790 fi
11791 EOF
11792 ;;
11793 esac
11794
11795 # We use sed instead of cat because bash on DJGPP gets confused if
11796 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11797 # text mode, it properly converts lines to CR/LF. This bash problem
11798 # is reportedly fixed, but why not run on old versions too?
11799 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11800
11801 mv -f "$cfgfile" "$ofile" || \
11802 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11803 chmod +x "$ofile"
11804
11805 else
11806 # If there is no Makefile yet, we rely on a make rule to execute
11807 # `config.status --recheck' to rerun these tests and create the
11808 # libtool script then.
11809 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11810 if test -f "$ltmain_in"; then
11811 test -f Makefile && make "$ltmain"
11812 fi
11813 fi
11814
11815
11816 ac_ext=c
11817 ac_cpp='$CPP $CPPFLAGS'
11818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822 CC="$lt_save_CC"
11823
11824
11825 # Check whether --with-tags or --without-tags was given.
11826 if test "${with_tags+set}" = set; then
11827 withval="$with_tags"
11828 tagnames="$withval"
11829 fi;
11830
11831 if test -f "$ltmain" && test -n "$tagnames"; then
11832 if test ! -f "${ofile}"; then
11833 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11834 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11835 fi
11836
11837 if test -z "$LTCC"; then
11838 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11839 if test -z "$LTCC"; then
11840 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11841 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11842 else
11843 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11844 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11845 fi
11846 fi
11847 if test -z "$LTCFLAGS"; then
11848 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11849 fi
11850
11851 # Extract list of available tagged configurations in $ofile.
11852 # Note that this assumes the entire list is on one line.
11853 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11854
11855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11856 for tagname in $tagnames; do
11857 IFS="$lt_save_ifs"
11858 # Check whether tagname contains only valid characters
11859 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11860 "") ;;
11861 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11862 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11863 { (exit 1); exit 1; }; }
11864 ;;
11865 esac
11866
11867 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11868 then
11869 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11870 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11871 { (exit 1); exit 1; }; }
11872 fi
11873
11874 # Update the list of available tags.
11875 if test -n "$tagname"; then
11876 echo appending configuration tag \"$tagname\" to $ofile
11877
11878 case $tagname in
11879 CXX)
11880 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11881 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11882 (test "X$CXX" != "Xg++"))) ; then
11883 ac_ext=cc
11884 ac_cpp='$CXXCPP $CPPFLAGS'
11885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11888
11889
11890
11891
11892 archive_cmds_need_lc_CXX=no
11893 allow_undefined_flag_CXX=
11894 always_export_symbols_CXX=no
11895 archive_expsym_cmds_CXX=
11896 export_dynamic_flag_spec_CXX=
11897 hardcode_direct_CXX=no
11898 hardcode_libdir_flag_spec_CXX=
11899 hardcode_libdir_flag_spec_ld_CXX=
11900 hardcode_libdir_separator_CXX=
11901 hardcode_minus_L_CXX=no
11902 hardcode_shlibpath_var_CXX=unsupported
11903 hardcode_automatic_CXX=no
11904 module_cmds_CXX=
11905 module_expsym_cmds_CXX=
11906 link_all_deplibs_CXX=unknown
11907 old_archive_cmds_CXX=$old_archive_cmds
11908 no_undefined_flag_CXX=
11909 whole_archive_flag_spec_CXX=
11910 enable_shared_with_static_runtimes_CXX=no
11911
11912 # Dependencies to place before and after the object being linked:
11913 predep_objects_CXX=
11914 postdep_objects_CXX=
11915 predeps_CXX=
11916 postdeps_CXX=
11917 compiler_lib_search_path_CXX=
11918
11919 # Source file extension for C++ test sources.
11920 ac_ext=cpp
11921
11922 # Object file extension for compiled C++ test sources.
11923 objext=o
11924 objext_CXX=$objext
11925
11926 # Code to be used in simple compile tests
11927 lt_simple_compile_test_code="int some_variable = 0;\n"
11928
11929 # Code to be used in simple link tests
11930 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11931
11932 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11933
11934 # If no C compiler was specified, use CC.
11935 LTCC=${LTCC-"$CC"}
11936
11937 # If no C compiler flags were specified, use CFLAGS.
11938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11939
11940 # Allow CC to be a program name with arguments.
11941 compiler=$CC
11942
11943
11944 # save warnings/boilerplate of simple test code
11945 ac_outfile=conftest.$ac_objext
11946 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11947 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11948 _lt_compiler_boilerplate=`cat conftest.err`
11949 $rm conftest*
11950
11951 ac_outfile=conftest.$ac_objext
11952 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11953 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11954 _lt_linker_boilerplate=`cat conftest.err`
11955 $rm conftest*
11956
11957
11958 # Allow CC to be a program name with arguments.
11959 lt_save_CC=$CC
11960 lt_save_LD=$LD
11961 lt_save_GCC=$GCC
11962 GCC=$GXX
11963 lt_save_with_gnu_ld=$with_gnu_ld
11964 lt_save_path_LD=$lt_cv_path_LD
11965 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11966 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11967 else
11968 $as_unset lt_cv_prog_gnu_ld
11969 fi
11970 if test -n "${lt_cv_path_LDCXX+set}"; then
11971 lt_cv_path_LD=$lt_cv_path_LDCXX
11972 else
11973 $as_unset lt_cv_path_LD
11974 fi
11975 test -z "${LDCXX+set}" || LD=$LDCXX
11976 CC=${CXX-"c++"}
11977 compiler=$CC
11978 compiler_CXX=$CC
11979 for cc_temp in $compiler""; do
11980 case $cc_temp in
11981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11983 \-*) ;;
11984 *) break;;
11985 esac
11986 done
11987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11988
11989
11990 # We don't want -fno-exception wen compiling C++ code, so set the
11991 # no_builtin_flag separately
11992 if test "$GXX" = yes; then
11993 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11994 else
11995 lt_prog_compiler_no_builtin_flag_CXX=
11996 fi
11997
11998 if test "$GXX" = yes; then
11999 # Set up default GNU C++ configuration
12000
12001
12002 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12003 if test "${with_gnu_ld+set}" = set; then
12004 withval="$with_gnu_ld"
12005 test "$withval" = no || with_gnu_ld=yes
12006 else
12007 with_gnu_ld=no
12008 fi;
12009 ac_prog=ld
12010 if test "$GCC" = yes; then
12011 # Check if gcc -print-prog-name=ld gives a path.
12012 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12013 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12014 case $host in
12015 *-*-mingw*)
12016 # gcc leaves a trailing carriage return which upsets mingw
12017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12018 *)
12019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12020 esac
12021 case $ac_prog in
12022 # Accept absolute paths.
12023 [\\/]* | ?:[\\/]*)
12024 re_direlt='/[^/][^/]*/\.\./'
12025 # Canonicalize the pathname of ld
12026 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12027 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12028 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12029 done
12030 test -z "$LD" && LD="$ac_prog"
12031 ;;
12032 "")
12033 # If it fails, then pretend we aren't using GCC.
12034 ac_prog=ld
12035 ;;
12036 *)
12037 # If it is relative, then search for the first ld in PATH.
12038 with_gnu_ld=unknown
12039 ;;
12040 esac
12041 elif test "$with_gnu_ld" = yes; then
12042 echo "$as_me:$LINENO: checking for GNU ld" >&5
12043 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12044 else
12045 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12046 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12047 fi
12048 if test "${lt_cv_path_LD+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051 if test -z "$LD"; then
12052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12053 for ac_dir in $PATH; do
12054 IFS="$lt_save_ifs"
12055 test -z "$ac_dir" && ac_dir=.
12056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12057 lt_cv_path_LD="$ac_dir/$ac_prog"
12058 # Check to see if the program is GNU ld. I'd rather use --version,
12059 # but apparently some variants of GNU ld only accept -v.
12060 # Break only if it was the GNU/non-GNU ld that we prefer.
12061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12062 *GNU* | *'with BFD'*)
12063 test "$with_gnu_ld" != no && break
12064 ;;
12065 *)
12066 test "$with_gnu_ld" != yes && break
12067 ;;
12068 esac
12069 fi
12070 done
12071 IFS="$lt_save_ifs"
12072 else
12073 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12074 fi
12075 fi
12076
12077 LD="$lt_cv_path_LD"
12078 if test -n "$LD"; then
12079 echo "$as_me:$LINENO: result: $LD" >&5
12080 echo "${ECHO_T}$LD" >&6
12081 else
12082 echo "$as_me:$LINENO: result: no" >&5
12083 echo "${ECHO_T}no" >&6
12084 fi
12085 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12086 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12087 { (exit 1); exit 1; }; }
12088 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12089 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12090 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12094 case `$LD -v 2>&1 </dev/null` in
12095 *GNU* | *'with BFD'*)
12096 lt_cv_prog_gnu_ld=yes
12097 ;;
12098 *)
12099 lt_cv_prog_gnu_ld=no
12100 ;;
12101 esac
12102 fi
12103 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12104 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12105 with_gnu_ld=$lt_cv_prog_gnu_ld
12106
12107
12108
12109 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12110 # archiving commands below assume that GNU ld is being used.
12111 if test "$with_gnu_ld" = yes; then
12112 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12113 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'
12114
12115 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12116 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12117
12118 # If archive_cmds runs LD, not CC, wlarc should be empty
12119 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12120 # investigate it a little bit more. (MM)
12121 wlarc='${wl}'
12122
12123 # ancient GNU ld didn't support --whole-archive et. al.
12124 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12125 grep 'no-whole-archive' > /dev/null; then
12126 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12127 else
12128 whole_archive_flag_spec_CXX=
12129 fi
12130 else
12131 with_gnu_ld=no
12132 wlarc=
12133
12134 # A generic and very simple default shared library creation
12135 # command for GNU C++ for the case where it uses the native
12136 # linker, instead of GNU ld. If possible, this setting should
12137 # overridden to take advantage of the native linker features on
12138 # the platform it is being used on.
12139 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12140 fi
12141
12142 # Commands to make compiler produce verbose output that lists
12143 # what "hidden" libraries, object files and flags are used when
12144 # linking a shared library.
12145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12146
12147 else
12148 GXX=no
12149 with_gnu_ld=no
12150 wlarc=
12151 fi
12152
12153 # PORTME: fill in a description of your system's C++ link characteristics
12154 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12155 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12156 ld_shlibs_CXX=yes
12157 case $host_os in
12158 aix3*)
12159 # FIXME: insert proper C++ library support
12160 ld_shlibs_CXX=no
12161 ;;
12162 aix4* | aix5*)
12163 if test "$host_cpu" = ia64; then
12164 # On IA64, the linker does run time linking by default, so we don't
12165 # have to do anything special.
12166 aix_use_runtimelinking=no
12167 exp_sym_flag='-Bexport'
12168 no_entry_flag=""
12169 else
12170 aix_use_runtimelinking=no
12171
12172 # Test if we are trying to use run time linking or normal
12173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12174 # need to do runtime linking.
12175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12176 for ld_flag in $LDFLAGS; do
12177 case $ld_flag in
12178 *-brtl*)
12179 aix_use_runtimelinking=yes
12180 break
12181 ;;
12182 esac
12183 done
12184 ;;
12185 esac
12186
12187 exp_sym_flag='-bexport'
12188 no_entry_flag='-bnoentry'
12189 fi
12190
12191 # When large executables or shared objects are built, AIX ld can
12192 # have problems creating the table of contents. If linking a library
12193 # or program results in "error TOC overflow" add -mminimal-toc to
12194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12196
12197 archive_cmds_CXX=''
12198 hardcode_direct_CXX=yes
12199 hardcode_libdir_separator_CXX=':'
12200 link_all_deplibs_CXX=yes
12201
12202 if test "$GXX" = yes; then
12203 case $host_os in aix4.[012]|aix4.[012].*)
12204 # We only want to do this on AIX 4.2 and lower, the check
12205 # below for broken collect2 doesn't work under 4.3+
12206 collect2name=`${CC} -print-prog-name=collect2`
12207 if test -f "$collect2name" && \
12208 strings "$collect2name" | grep resolve_lib_name >/dev/null
12209 then
12210 # We have reworked collect2
12211 hardcode_direct_CXX=yes
12212 else
12213 # We have old collect2
12214 hardcode_direct_CXX=unsupported
12215 # It fails to find uninstalled libraries when the uninstalled
12216 # path is not listed in the libpath. Setting hardcode_minus_L
12217 # to unsupported forces relinking
12218 hardcode_minus_L_CXX=yes
12219 hardcode_libdir_flag_spec_CXX='-L$libdir'
12220 hardcode_libdir_separator_CXX=
12221 fi
12222 ;;
12223 esac
12224 shared_flag='-shared'
12225 if test "$aix_use_runtimelinking" = yes; then
12226 shared_flag="$shared_flag "'${wl}-G'
12227 fi
12228 else
12229 # not using gcc
12230 if test "$host_cpu" = ia64; then
12231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12232 # chokes on -Wl,-G. The following line is correct:
12233 shared_flag='-G'
12234 else
12235 if test "$aix_use_runtimelinking" = yes; then
12236 shared_flag='${wl}-G'
12237 else
12238 shared_flag='${wl}-bM:SRE'
12239 fi
12240 fi
12241 fi
12242
12243 # It seems that -bexpall does not export symbols beginning with
12244 # underscore (_), so it is better to generate a list of symbols to export.
12245 always_export_symbols_CXX=yes
12246 if test "$aix_use_runtimelinking" = yes; then
12247 # Warning - without using the other runtime loading flags (-brtl),
12248 # -berok will link without error, but may produce a broken library.
12249 allow_undefined_flag_CXX='-berok'
12250 # Determine the default libpath from the value encoded in an empty executable.
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257
12258 int
12259 main ()
12260 {
12261
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_cxx_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288
12289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12290 }'`
12291 # Check for a 64-bit object if we didn't find anything.
12292 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; }
12293 }'`; fi
12294 else
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 fi
12299 rm -f conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12302
12303 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12304
12305 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"
12306 else
12307 if test "$host_cpu" = ia64; then
12308 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12309 allow_undefined_flag_CXX="-z nodefs"
12310 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"
12311 else
12312 # Determine the default libpath from the value encoded in an empty executable.
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319
12320 int
12321 main ()
12322 {
12323
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_cxx_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350
12351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12352 }'`
12353 # Check for a 64-bit object if we didn't find anything.
12354 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; }
12355 }'`; fi
12356 else
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360 fi
12361 rm -f conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12364
12365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12366 # Warning - without using the other run time loading flags,
12367 # -berok will link without error, but may produce a broken library.
12368 no_undefined_flag_CXX=' ${wl}-bernotok'
12369 allow_undefined_flag_CXX=' ${wl}-berok'
12370 # Exported symbols can be pulled into shared objects from archives
12371 whole_archive_flag_spec_CXX='$convenience'
12372 archive_cmds_need_lc_CXX=yes
12373 # This is similar to how AIX traditionally builds its shared libraries.
12374 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'
12375 fi
12376 fi
12377 ;;
12378
12379 beos*)
12380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12381 allow_undefined_flag_CXX=unsupported
12382 # Joseph Beckenbach <[email protected]> says some releases of gcc
12383 # support --undefined. This deserves some investigation. FIXME
12384 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12385 else
12386 ld_shlibs_CXX=no
12387 fi
12388 ;;
12389
12390 chorus*)
12391 case $cc_basename in
12392 *)
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12395 ;;
12396 esac
12397 ;;
12398
12399 cygwin* | mingw* | pw32*)
12400 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12401 # as there is no search path for DLLs.
12402 hardcode_libdir_flag_spec_CXX='-L$libdir'
12403 allow_undefined_flag_CXX=unsupported
12404 always_export_symbols_CXX=no
12405 enable_shared_with_static_runtimes_CXX=yes
12406
12407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12408 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'
12409 # If the export-symbols file already is a .def file (1st line
12410 # is EXPORTS), use it as is; otherwise, prepend...
12411 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12412 cp $export_symbols $output_objdir/$soname.def;
12413 else
12414 echo EXPORTS > $output_objdir/$soname.def;
12415 cat $export_symbols >> $output_objdir/$soname.def;
12416 fi~
12417 $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'
12418 else
12419 ld_shlibs_CXX=no
12420 fi
12421 ;;
12422 darwin* | rhapsody*)
12423 case $host_os in
12424 rhapsody* | darwin1.[012])
12425 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12426 ;;
12427 *) # Darwin 1.3 on
12428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12429 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12430 else
12431 case ${MACOSX_DEPLOYMENT_TARGET} in
12432 10.[012])
12433 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12434 ;;
12435 10.*)
12436 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12437 ;;
12438 esac
12439 fi
12440 ;;
12441 esac
12442 archive_cmds_need_lc_CXX=no
12443 hardcode_direct_CXX=no
12444 hardcode_automatic_CXX=yes
12445 hardcode_shlibpath_var_CXX=unsupported
12446 whole_archive_flag_spec_CXX=''
12447 link_all_deplibs_CXX=yes
12448
12449 if test "$GXX" = yes ; then
12450 lt_int_apple_cc_single_mod=no
12451 output_verbose_link_cmd='echo'
12452 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12453 lt_int_apple_cc_single_mod=yes
12454 fi
12455 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12456 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12457 else
12458 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'
12459 fi
12460 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12462 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12463 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}'
12464 else
12465 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}'
12466 fi
12467 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}'
12468 else
12469 case $cc_basename in
12470 xlc*)
12471 output_verbose_link_cmd='echo'
12472 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'
12473 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12475 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}'
12476 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}'
12477 ;;
12478 *)
12479 ld_shlibs_CXX=no
12480 ;;
12481 esac
12482 fi
12483 ;;
12484
12485 dgux*)
12486 case $cc_basename in
12487 ec++*)
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 ;;
12491 ghcx*)
12492 # Green Hills C++ Compiler
12493 # FIXME: insert proper C++ library support
12494 ld_shlibs_CXX=no
12495 ;;
12496 *)
12497 # FIXME: insert proper C++ library support
12498 ld_shlibs_CXX=no
12499 ;;
12500 esac
12501 ;;
12502 freebsd[12]*)
12503 # C++ shared libraries reported to be fairly broken before switch to ELF
12504 ld_shlibs_CXX=no
12505 ;;
12506 freebsd-elf*)
12507 archive_cmds_need_lc_CXX=no
12508 ;;
12509 freebsd* | kfreebsd*-gnu | dragonfly*)
12510 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12511 # conventions
12512 ld_shlibs_CXX=yes
12513 ;;
12514 gnu*)
12515 ;;
12516 hpux9*)
12517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12518 hardcode_libdir_separator_CXX=:
12519 export_dynamic_flag_spec_CXX='${wl}-E'
12520 hardcode_direct_CXX=yes
12521 hardcode_minus_L_CXX=yes # Not in the search PATH,
12522 # but as the default
12523 # location of the library.
12524
12525 case $cc_basename in
12526 CC*)
12527 # FIXME: insert proper C++ library support
12528 ld_shlibs_CXX=no
12529 ;;
12530 aCC*)
12531 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'
12532 # Commands to make compiler produce verbose output that lists
12533 # what "hidden" libraries, object files and flags are used when
12534 # linking a shared library.
12535 #
12536 # There doesn't appear to be a way to prevent this compiler from
12537 # explicitly linking system object files so we need to strip them
12538 # from the output so that they don't get included in the library
12539 # dependencies.
12540 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'
12541 ;;
12542 *)
12543 if test "$GXX" = yes; then
12544 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'
12545 else
12546 # FIXME: insert proper C++ library support
12547 ld_shlibs_CXX=no
12548 fi
12549 ;;
12550 esac
12551 ;;
12552 hpux10*|hpux11*)
12553 if test $with_gnu_ld = no; then
12554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12555 hardcode_libdir_separator_CXX=:
12556
12557 case $host_cpu in
12558 hppa*64*|ia64*)
12559 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12560 ;;
12561 *)
12562 export_dynamic_flag_spec_CXX='${wl}-E'
12563 ;;
12564 esac
12565 fi
12566 case $host_cpu in
12567 hppa*64*|ia64*)
12568 hardcode_direct_CXX=no
12569 hardcode_shlibpath_var_CXX=no
12570 ;;
12571 *)
12572 hardcode_direct_CXX=yes
12573 hardcode_minus_L_CXX=yes # Not in the search PATH,
12574 # but as the default
12575 # location of the library.
12576 ;;
12577 esac
12578
12579 case $cc_basename in
12580 CC*)
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12583 ;;
12584 aCC*)
12585 case $host_cpu in
12586 hppa*64*)
12587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12588 ;;
12589 ia64*)
12590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12591 ;;
12592 *)
12593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12594 ;;
12595 esac
12596 # Commands to make compiler produce verbose output that lists
12597 # what "hidden" libraries, object files and flags are used when
12598 # linking a shared library.
12599 #
12600 # There doesn't appear to be a way to prevent this compiler from
12601 # explicitly linking system object files so we need to strip them
12602 # from the output so that they don't get included in the library
12603 # dependencies.
12604 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'
12605 ;;
12606 *)
12607 if test "$GXX" = yes; then
12608 if test $with_gnu_ld = no; then
12609 case $host_cpu in
12610 hppa*64*)
12611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12612 ;;
12613 ia64*)
12614 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12615 ;;
12616 *)
12617 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'
12618 ;;
12619 esac
12620 fi
12621 else
12622 # FIXME: insert proper C++ library support
12623 ld_shlibs_CXX=no
12624 fi
12625 ;;
12626 esac
12627 ;;
12628 interix3*)
12629 hardcode_direct_CXX=no
12630 hardcode_shlibpath_var_CXX=no
12631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12632 export_dynamic_flag_spec_CXX='${wl}-E'
12633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12634 # Instead, shared libraries are loaded at an image base (0x10000000 by
12635 # default) and relocated if they conflict, which is a slow very memory
12636 # consuming and fragmenting process. To avoid this, we pick a random,
12637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12639 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'
12640 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'
12641 ;;
12642 irix5* | irix6*)
12643 case $cc_basename in
12644 CC*)
12645 # SGI C++
12646 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'
12647
12648 # Archives containing C++ object files must be created using
12649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12650 # necessary to make sure instantiated templates are included
12651 # in the archive.
12652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12653 ;;
12654 *)
12655 if test "$GXX" = yes; then
12656 if test "$with_gnu_ld" = no; then
12657 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'
12658 else
12659 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'
12660 fi
12661 fi
12662 link_all_deplibs_CXX=yes
12663 ;;
12664 esac
12665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12666 hardcode_libdir_separator_CXX=:
12667 ;;
12668 linux*)
12669 case $cc_basename in
12670 KCC*)
12671 # Kuck and Associates, Inc. (KAI) C++ Compiler
12672
12673 # KCC will only create a shared library if the output file
12674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12675 # to its proper name (with version) after linking.
12676 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'
12677 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'
12678 # Commands to make compiler produce verbose output that lists
12679 # what "hidden" libraries, object files and flags are used when
12680 # linking a shared library.
12681 #
12682 # There doesn't appear to be a way to prevent this compiler from
12683 # explicitly linking system object files so we need to strip them
12684 # from the output so that they don't get included in the library
12685 # dependencies.
12686 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'
12687
12688 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12690
12691 # Archives containing C++ object files must be created using
12692 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12693 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12694 ;;
12695 icpc*)
12696 # Intel C++
12697 with_gnu_ld=yes
12698 # version 8.0 and above of icpc choke on multiply defined symbols
12699 # if we add $predep_objects and $postdep_objects, however 7.1 and
12700 # earlier do not add the objects themselves.
12701 case `$CC -V 2>&1` in
12702 *"Version 7."*)
12703 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12704 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'
12705 ;;
12706 *) # Version 8.0 or newer
12707 tmp_idyn=
12708 case $host_cpu in
12709 ia64*) tmp_idyn=' -i_dynamic';;
12710 esac
12711 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712 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'
12713 ;;
12714 esac
12715 archive_cmds_need_lc_CXX=no
12716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12719 ;;
12720 pgCC*)
12721 # Portland Group C++ compiler
12722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12723 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'
12724
12725 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12727 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'
12728 ;;
12729 cxx*)
12730 # Compaq C++
12731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12732 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'
12733
12734 runpath_var=LD_RUN_PATH
12735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12736 hardcode_libdir_separator_CXX=:
12737
12738 # Commands to make compiler produce verbose output that lists
12739 # what "hidden" libraries, object files and flags are used when
12740 # linking a shared library.
12741 #
12742 # There doesn't appear to be a way to prevent this compiler from
12743 # explicitly linking system object files so we need to strip them
12744 # from the output so that they don't get included in the library
12745 # dependencies.
12746 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'
12747 ;;
12748 esac
12749 ;;
12750 lynxos*)
12751 # FIXME: insert proper C++ library support
12752 ld_shlibs_CXX=no
12753 ;;
12754 m88k*)
12755 # FIXME: insert proper C++ library support
12756 ld_shlibs_CXX=no
12757 ;;
12758 mvs*)
12759 case $cc_basename in
12760 cxx*)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12763 ;;
12764 *)
12765 # FIXME: insert proper C++ library support
12766 ld_shlibs_CXX=no
12767 ;;
12768 esac
12769 ;;
12770 netbsd*)
12771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12772 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12773 wlarc=
12774 hardcode_libdir_flag_spec_CXX='-R$libdir'
12775 hardcode_direct_CXX=yes
12776 hardcode_shlibpath_var_CXX=no
12777 fi
12778 # Workaround some broken pre-1.5 toolchains
12779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12780 ;;
12781 openbsd2*)
12782 # C++ shared libraries are fairly broken
12783 ld_shlibs_CXX=no
12784 ;;
12785 openbsd*)
12786 hardcode_direct_CXX=yes
12787 hardcode_shlibpath_var_CXX=no
12788 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12791 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12792 export_dynamic_flag_spec_CXX='${wl}-E'
12793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12794 fi
12795 output_verbose_link_cmd='echo'
12796 ;;
12797 osf3*)
12798 case $cc_basename in
12799 KCC*)
12800 # Kuck and Associates, Inc. (KAI) C++ Compiler
12801
12802 # KCC will only create a shared library if the output file
12803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12804 # to its proper name (with version) after linking.
12805 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'
12806
12807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12808 hardcode_libdir_separator_CXX=:
12809
12810 # Archives containing C++ object files must be created using
12811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12813
12814 ;;
12815 RCC*)
12816 # Rational C++ 2.4.1
12817 # FIXME: insert proper C++ library support
12818 ld_shlibs_CXX=no
12819 ;;
12820 cxx*)
12821 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12822 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'
12823
12824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12825 hardcode_libdir_separator_CXX=:
12826
12827 # Commands to make compiler produce verbose output that lists
12828 # what "hidden" libraries, object files and flags are used when
12829 # linking a shared library.
12830 #
12831 # There doesn't appear to be a way to prevent this compiler from
12832 # explicitly linking system object files so we need to strip them
12833 # from the output so that they don't get included in the library
12834 # dependencies.
12835 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'
12836 ;;
12837 *)
12838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12840 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'
12841
12842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12843 hardcode_libdir_separator_CXX=:
12844
12845 # Commands to make compiler produce verbose output that lists
12846 # what "hidden" libraries, object files and flags are used when
12847 # linking a shared library.
12848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12849
12850 else
12851 # FIXME: insert proper C++ library support
12852 ld_shlibs_CXX=no
12853 fi
12854 ;;
12855 esac
12856 ;;
12857 osf4* | osf5*)
12858 case $cc_basename in
12859 KCC*)
12860 # Kuck and Associates, Inc. (KAI) C++ Compiler
12861
12862 # KCC will only create a shared library if the output file
12863 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12864 # to its proper name (with version) after linking.
12865 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'
12866
12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12868 hardcode_libdir_separator_CXX=:
12869
12870 # Archives containing C++ object files must be created using
12871 # the KAI C++ compiler.
12872 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12873 ;;
12874 RCC*)
12875 # Rational C++ 2.4.1
12876 # FIXME: insert proper C++ library support
12877 ld_shlibs_CXX=no
12878 ;;
12879 cxx*)
12880 allow_undefined_flag_CXX=' -expect_unresolved \*'
12881 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'
12882 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12883 echo "-hidden">> $lib.exp~
12884 $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~
12885 $rm $lib.exp'
12886
12887 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12888 hardcode_libdir_separator_CXX=:
12889
12890 # Commands to make compiler produce verbose output that lists
12891 # what "hidden" libraries, object files and flags are used when
12892 # linking a shared library.
12893 #
12894 # There doesn't appear to be a way to prevent this compiler from
12895 # explicitly linking system object files so we need to strip them
12896 # from the output so that they don't get included in the library
12897 # dependencies.
12898 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'
12899 ;;
12900 *)
12901 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12903 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'
12904
12905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12906 hardcode_libdir_separator_CXX=:
12907
12908 # Commands to make compiler produce verbose output that lists
12909 # what "hidden" libraries, object files and flags are used when
12910 # linking a shared library.
12911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12912
12913 else
12914 # FIXME: insert proper C++ library support
12915 ld_shlibs_CXX=no
12916 fi
12917 ;;
12918 esac
12919 ;;
12920 psos*)
12921 # FIXME: insert proper C++ library support
12922 ld_shlibs_CXX=no
12923 ;;
12924 sunos4*)
12925 case $cc_basename in
12926 CC*)
12927 # Sun C++ 4.x
12928 # FIXME: insert proper C++ library support
12929 ld_shlibs_CXX=no
12930 ;;
12931 lcc*)
12932 # Lucid
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12935 ;;
12936 *)
12937 # FIXME: insert proper C++ library support
12938 ld_shlibs_CXX=no
12939 ;;
12940 esac
12941 ;;
12942 solaris*)
12943 case $cc_basename in
12944 CC*)
12945 # Sun C++ 4.2, 5.x and Centerline C++
12946 archive_cmds_need_lc_CXX=yes
12947 no_undefined_flag_CXX=' -zdefs'
12948 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12949 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12950 $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'
12951
12952 hardcode_libdir_flag_spec_CXX='-R$libdir'
12953 hardcode_shlibpath_var_CXX=no
12954 case $host_os in
12955 solaris2.[0-5] | solaris2.[0-5].*) ;;
12956 *)
12957 # The C++ compiler is used as linker so we must use $wl
12958 # flag to pass the commands to the underlying system
12959 # linker. We must also pass each convience library through
12960 # to the system linker between allextract/defaultextract.
12961 # The C++ compiler will combine linker options so we
12962 # cannot just pass the convience library names through
12963 # without $wl.
12964 # Supported since Solaris 2.6 (maybe 2.5.1?)
12965 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'
12966 ;;
12967 esac
12968 link_all_deplibs_CXX=yes
12969
12970 output_verbose_link_cmd='echo'
12971
12972 # Archives containing C++ object files must be created using
12973 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12974 # necessary to make sure instantiated templates are included
12975 # in the archive.
12976 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12977 ;;
12978 gcx*)
12979 # Green Hills C++ Compiler
12980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12981
12982 # The C++ compiler must be used to create the archive.
12983 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12984 ;;
12985 *)
12986 # GNU C++ compiler with Solaris linker
12987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12988 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12989 if $CC --version | grep -v '^2\.7' > /dev/null; then
12990 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12991 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12992 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12993
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12997 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12998 else
12999 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13000 # platform.
13001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13004
13005 # Commands to make compiler produce verbose output that lists
13006 # what "hidden" libraries, object files and flags are used when
13007 # linking a shared library.
13008 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13009 fi
13010
13011 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13012 fi
13013 ;;
13014 esac
13015 ;;
13016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13017 no_undefined_flag_CXX='${wl}-z,text'
13018 archive_cmds_need_lc_CXX=no
13019 hardcode_shlibpath_var_CXX=no
13020 runpath_var='LD_RUN_PATH'
13021
13022 case $cc_basename in
13023 CC*)
13024 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13025 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13026 ;;
13027 *)
13028 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13029 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13030 ;;
13031 esac
13032 ;;
13033 sysv5* | sco3.2v5* | sco5v6*)
13034 # Note: We can NOT use -z defs as we might desire, because we do not
13035 # link with -lc, and that would cause any symbols used from libc to
13036 # always be unresolved, which means just about no library would
13037 # ever link correctly. If we're not using GNU ld we use -z text
13038 # though, which does catch some bad symbols but isn't as heavy-handed
13039 # as -z defs.
13040 # For security reasons, it is highly recommended that you always
13041 # use absolute paths for naming shared libraries, and exclude the
13042 # DT_RUNPATH tag from executables and libraries. But doing so
13043 # requires that you compile everything twice, which is a pain.
13044 # So that behaviour is only enabled if SCOABSPATH is set to a
13045 # non-empty value in the environment. Most likely only useful for
13046 # creating official distributions of packages.
13047 # This is a hack until libtool officially supports absolute path
13048 # names for shared libraries.
13049 no_undefined_flag_CXX='${wl}-z,text'
13050 allow_undefined_flag_CXX='${wl}-z,nodefs'
13051 archive_cmds_need_lc_CXX=no
13052 hardcode_shlibpath_var_CXX=no
13053 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13054 hardcode_libdir_separator_CXX=':'
13055 link_all_deplibs_CXX=yes
13056 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13057 runpath_var='LD_RUN_PATH'
13058
13059 case $cc_basename in
13060 CC*)
13061 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13063 ;;
13064 *)
13065 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13067 ;;
13068 esac
13069 ;;
13070 tandem*)
13071 case $cc_basename in
13072 NCC*)
13073 # NonStop-UX NCC 3.20
13074 # FIXME: insert proper C++ library support
13075 ld_shlibs_CXX=no
13076 ;;
13077 *)
13078 # FIXME: insert proper C++ library support
13079 ld_shlibs_CXX=no
13080 ;;
13081 esac
13082 ;;
13083 vxworks*)
13084 # FIXME: insert proper C++ library support
13085 ld_shlibs_CXX=no
13086 ;;
13087 *)
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 ;;
13091 esac
13092 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13093 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13094 test "$ld_shlibs_CXX" = no && can_build_shared=no
13095
13096 GCC_CXX="$GXX"
13097 LD_CXX="$LD"
13098
13099 ## CAVEAT EMPTOR:
13100 ## There is no encapsulation within the following macros, do not change
13101 ## the running order or otherwise move them around unless you know exactly
13102 ## what you are doing...
13103
13104 cat > conftest.$ac_ext <<EOF
13105 class Foo
13106 {
13107 public:
13108 Foo (void) { a = 0; }
13109 private:
13110 int a;
13111 };
13112 EOF
13113
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; then
13119 # Parse the compiler output and extract the necessary
13120 # objects, libraries and library flags.
13121
13122 # Sentinel used to keep track of whether or not we are before
13123 # the conftest object file.
13124 pre_test_object_deps_done=no
13125
13126 # The `*' in the case matches for architectures that use `case' in
13127 # $output_verbose_cmd can trigger glob expansion during the loop
13128 # eval without this substitution.
13129 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13130
13131 for p in `eval $output_verbose_link_cmd`; do
13132 case $p in
13133
13134 -L* | -R* | -l*)
13135 # Some compilers place space between "-{L,R}" and the path.
13136 # Remove the space.
13137 if test $p = "-L" \
13138 || test $p = "-R"; then
13139 prev=$p
13140 continue
13141 else
13142 prev=
13143 fi
13144
13145 if test "$pre_test_object_deps_done" = no; then
13146 case $p in
13147 -L* | -R*)
13148 # Internal compiler library paths should come after those
13149 # provided the user. The postdeps already come after the
13150 # user supplied libs so there is no need to process them.
13151 if test -z "$compiler_lib_search_path_CXX"; then
13152 compiler_lib_search_path_CXX="${prev}${p}"
13153 else
13154 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13155 fi
13156 ;;
13157 # The "-l" case would never come before the object being
13158 # linked, so don't bother handling this case.
13159 esac
13160 else
13161 if test -z "$postdeps_CXX"; then
13162 postdeps_CXX="${prev}${p}"
13163 else
13164 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13165 fi
13166 fi
13167 ;;
13168
13169 *.$objext)
13170 # This assumes that the test object file only shows up
13171 # once in the compiler output.
13172 if test "$p" = "conftest.$objext"; then
13173 pre_test_object_deps_done=yes
13174 continue
13175 fi
13176
13177 if test "$pre_test_object_deps_done" = no; then
13178 if test -z "$predep_objects_CXX"; then
13179 predep_objects_CXX="$p"
13180 else
13181 predep_objects_CXX="$predep_objects_CXX $p"
13182 fi
13183 else
13184 if test -z "$postdep_objects_CXX"; then
13185 postdep_objects_CXX="$p"
13186 else
13187 postdep_objects_CXX="$postdep_objects_CXX $p"
13188 fi
13189 fi
13190 ;;
13191
13192 *) ;; # Ignore the rest.
13193
13194 esac
13195 done
13196
13197 # Clean up.
13198 rm -f a.out a.exe
13199 else
13200 echo "libtool.m4: error: problem compiling CXX test program"
13201 fi
13202
13203 $rm -f confest.$objext
13204
13205 # PORTME: override above test on systems where it is broken
13206 case $host_os in
13207 interix3*)
13208 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13209 # hack all around it, let's just trust "g++" to DTRT.
13210 predep_objects_CXX=
13211 postdep_objects_CXX=
13212 postdeps_CXX=
13213 ;;
13214
13215 solaris*)
13216 case $cc_basename in
13217 CC*)
13218 # Adding this requires a known-good setup of shared libraries for
13219 # Sun compiler versions before 5.6, else PIC objects from an old
13220 # archive will be linked into the output, leading to subtle bugs.
13221 postdeps_CXX='-lCstd -lCrun'
13222 ;;
13223 esac
13224 ;;
13225 esac
13226
13227
13228 case " $postdeps_CXX " in
13229 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13230 esac
13231
13232 lt_prog_compiler_wl_CXX=
13233 lt_prog_compiler_pic_CXX=
13234 lt_prog_compiler_static_CXX=
13235
13236 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13237 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13238
13239 # C++ specific cases for pic, static, wl, etc.
13240 if test "$GXX" = yes; then
13241 lt_prog_compiler_wl_CXX='-Wl,'
13242 lt_prog_compiler_static_CXX='-static'
13243
13244 case $host_os in
13245 aix*)
13246 # All AIX code is PIC.
13247 if test "$host_cpu" = ia64; then
13248 # AIX 5 now supports IA64 processor
13249 lt_prog_compiler_static_CXX='-Bstatic'
13250 fi
13251 ;;
13252 amigaos*)
13253 # FIXME: we need at least 68020 code to build shared libraries, but
13254 # adding the `-m68020' flag to GCC prevents building anything better,
13255 # like `-m68040'.
13256 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13257 ;;
13258 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13259 # PIC is the default for these OSes.
13260 ;;
13261 mingw* | os2* | pw32*)
13262 # This hack is so that the source file can tell whether it is being
13263 # built for inclusion in a dll (and should export symbols for example).
13264 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13265 ;;
13266 darwin* | rhapsody*)
13267 # PIC is the default on this platform
13268 # Common symbols not allowed in MH_DYLIB files
13269 lt_prog_compiler_pic_CXX='-fno-common'
13270 ;;
13271 *djgpp*)
13272 # DJGPP does not support shared libraries at all
13273 lt_prog_compiler_pic_CXX=
13274 ;;
13275 interix3*)
13276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13277 # Instead, we relocate shared libraries at runtime.
13278 ;;
13279 sysv4*MP*)
13280 if test -d /usr/nec; then
13281 lt_prog_compiler_pic_CXX=-Kconform_pic
13282 fi
13283 ;;
13284 hpux*)
13285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13286 # not for PA HP-UX.
13287 case $host_cpu in
13288 hppa*64*|ia64*)
13289 ;;
13290 *)
13291 lt_prog_compiler_pic_CXX='-fPIC'
13292 ;;
13293 esac
13294 ;;
13295 *)
13296 lt_prog_compiler_pic_CXX='-fPIC'
13297 ;;
13298 esac
13299 else
13300 case $host_os in
13301 aix4* | aix5*)
13302 # All AIX code is PIC.
13303 if test "$host_cpu" = ia64; then
13304 # AIX 5 now supports IA64 processor
13305 lt_prog_compiler_static_CXX='-Bstatic'
13306 else
13307 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13308 fi
13309 ;;
13310 chorus*)
13311 case $cc_basename in
13312 cxch68*)
13313 # Green Hills C++ Compiler
13314 # _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"
13315 ;;
13316 esac
13317 ;;
13318 darwin*)
13319 # PIC is the default on this platform
13320 # Common symbols not allowed in MH_DYLIB files
13321 case $cc_basename in
13322 xlc*)
13323 lt_prog_compiler_pic_CXX='-qnocommon'
13324 lt_prog_compiler_wl_CXX='-Wl,'
13325 ;;
13326 esac
13327 ;;
13328 dgux*)
13329 case $cc_basename in
13330 ec++*)
13331 lt_prog_compiler_pic_CXX='-KPIC'
13332 ;;
13333 ghcx*)
13334 # Green Hills C++ Compiler
13335 lt_prog_compiler_pic_CXX='-pic'
13336 ;;
13337 *)
13338 ;;
13339 esac
13340 ;;
13341 freebsd* | kfreebsd*-gnu | dragonfly*)
13342 # FreeBSD uses GNU C++
13343 ;;
13344 hpux9* | hpux10* | hpux11*)
13345 case $cc_basename in
13346 CC*)
13347 lt_prog_compiler_wl_CXX='-Wl,'
13348 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13349 if test "$host_cpu" != ia64; then
13350 lt_prog_compiler_pic_CXX='+Z'
13351 fi
13352 ;;
13353 aCC*)
13354 lt_prog_compiler_wl_CXX='-Wl,'
13355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13356 case $host_cpu in
13357 hppa*64*|ia64*)
13358 # +Z the default
13359 ;;
13360 *)
13361 lt_prog_compiler_pic_CXX='+Z'
13362 ;;
13363 esac
13364 ;;
13365 *)
13366 ;;
13367 esac
13368 ;;
13369 interix*)
13370 # This is c89, which is MS Visual C++ (no shared libs)
13371 # Anyone wants to do a port?
13372 ;;
13373 irix5* | irix6* | nonstopux*)
13374 case $cc_basename in
13375 CC*)
13376 lt_prog_compiler_wl_CXX='-Wl,'
13377 lt_prog_compiler_static_CXX='-non_shared'
13378 # CC pic flag -KPIC is the default.
13379 ;;
13380 *)
13381 ;;
13382 esac
13383 ;;
13384 linux*)
13385 case $cc_basename in
13386 KCC*)
13387 # KAI C++ Compiler
13388 lt_prog_compiler_wl_CXX='--backend -Wl,'
13389 lt_prog_compiler_pic_CXX='-fPIC'
13390 ;;
13391 icpc* | ecpc*)
13392 # Intel C++
13393 lt_prog_compiler_wl_CXX='-Wl,'
13394 lt_prog_compiler_pic_CXX='-KPIC'
13395 lt_prog_compiler_static_CXX='-static'
13396 ;;
13397 pgCC*)
13398 # Portland Group C++ compiler.
13399 lt_prog_compiler_wl_CXX='-Wl,'
13400 lt_prog_compiler_pic_CXX='-fpic'
13401 lt_prog_compiler_static_CXX='-Bstatic'
13402 ;;
13403 cxx*)
13404 # Compaq C++
13405 # Make sure the PIC flag is empty. It appears that all Alpha
13406 # Linux and Compaq Tru64 Unix objects are PIC.
13407 lt_prog_compiler_pic_CXX=
13408 lt_prog_compiler_static_CXX='-non_shared'
13409 ;;
13410 *)
13411 ;;
13412 esac
13413 ;;
13414 lynxos*)
13415 ;;
13416 m88k*)
13417 ;;
13418 mvs*)
13419 case $cc_basename in
13420 cxx*)
13421 lt_prog_compiler_pic_CXX='-W c,exportall'
13422 ;;
13423 *)
13424 ;;
13425 esac
13426 ;;
13427 netbsd*)
13428 ;;
13429 osf3* | osf4* | osf5*)
13430 case $cc_basename in
13431 KCC*)
13432 lt_prog_compiler_wl_CXX='--backend -Wl,'
13433 ;;
13434 RCC*)
13435 # Rational C++ 2.4.1
13436 lt_prog_compiler_pic_CXX='-pic'
13437 ;;
13438 cxx*)
13439 # Digital/Compaq C++
13440 lt_prog_compiler_wl_CXX='-Wl,'
13441 # Make sure the PIC flag is empty. It appears that all Alpha
13442 # Linux and Compaq Tru64 Unix objects are PIC.
13443 lt_prog_compiler_pic_CXX=
13444 lt_prog_compiler_static_CXX='-non_shared'
13445 ;;
13446 *)
13447 ;;
13448 esac
13449 ;;
13450 psos*)
13451 ;;
13452 solaris*)
13453 case $cc_basename in
13454 CC*)
13455 # Sun C++ 4.2, 5.x and Centerline C++
13456 lt_prog_compiler_pic_CXX='-KPIC'
13457 lt_prog_compiler_static_CXX='-Bstatic'
13458 lt_prog_compiler_wl_CXX='-Qoption ld '
13459 ;;
13460 gcx*)
13461 # Green Hills C++ Compiler
13462 lt_prog_compiler_pic_CXX='-PIC'
13463 ;;
13464 *)
13465 ;;
13466 esac
13467 ;;
13468 sunos4*)
13469 case $cc_basename in
13470 CC*)
13471 # Sun C++ 4.x
13472 lt_prog_compiler_pic_CXX='-pic'
13473 lt_prog_compiler_static_CXX='-Bstatic'
13474 ;;
13475 lcc*)
13476 # Lucid
13477 lt_prog_compiler_pic_CXX='-pic'
13478 ;;
13479 *)
13480 ;;
13481 esac
13482 ;;
13483 tandem*)
13484 case $cc_basename in
13485 NCC*)
13486 # NonStop-UX NCC 3.20
13487 lt_prog_compiler_pic_CXX='-KPIC'
13488 ;;
13489 *)
13490 ;;
13491 esac
13492 ;;
13493 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13494 case $cc_basename in
13495 CC*)
13496 lt_prog_compiler_wl_CXX='-Wl,'
13497 lt_prog_compiler_pic_CXX='-KPIC'
13498 lt_prog_compiler_static_CXX='-Bstatic'
13499 ;;
13500 esac
13501 ;;
13502 vxworks*)
13503 ;;
13504 *)
13505 lt_prog_compiler_can_build_shared_CXX=no
13506 ;;
13507 esac
13508 fi
13509
13510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13511 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13512
13513 #
13514 # Check to make sure the PIC flag actually works.
13515 #
13516 if test -n "$lt_prog_compiler_pic_CXX"; then
13517
13518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13520 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523 lt_prog_compiler_pic_works_CXX=no
13524 ac_outfile=conftest.$ac_objext
13525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13526 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13527 # Insert the option either (1) after the last *FLAGS variable, or
13528 # (2) before a word containing "conftest.", or (3) at the end.
13529 # Note that $ac_compile itself does not contain backslashes and begins
13530 # with a dollar sign (not a hyphen), so the echo should work correctly.
13531 # The option is referenced via a variable to avoid confusing sed.
13532 lt_compile=`echo "$ac_compile" | $SED \
13533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13535 -e 's:$: $lt_compiler_flag:'`
13536 (eval echo "\"\$as_me:13536: $lt_compile\"" >&5)
13537 (eval "$lt_compile" 2>conftest.err)
13538 ac_status=$?
13539 cat conftest.err >&5
13540 echo "$as_me:13540: \$? = $ac_status" >&5
13541 if (exit $ac_status) && test -s "$ac_outfile"; then
13542 # The compiler can only warn and ignore the option if not recognized
13543 # So say no if there are warnings other than the usual output.
13544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13547 lt_prog_compiler_pic_works_CXX=yes
13548 fi
13549 fi
13550 $rm conftest*
13551
13552 fi
13553 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13554 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13555
13556 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13557 case $lt_prog_compiler_pic_CXX in
13558 "" | " "*) ;;
13559 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13560 esac
13561 else
13562 lt_prog_compiler_pic_CXX=
13563 lt_prog_compiler_can_build_shared_CXX=no
13564 fi
13565
13566 fi
13567 case $host_os in
13568 # For platforms which do not support PIC, -DPIC is meaningless:
13569 *djgpp*)
13570 lt_prog_compiler_pic_CXX=
13571 ;;
13572 *)
13573 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13574 ;;
13575 esac
13576
13577 #
13578 # Check to make sure the static flag actually works.
13579 #
13580 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13581 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13582 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13583 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 lt_prog_compiler_static_works_CXX=no
13587 save_LDFLAGS="$LDFLAGS"
13588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13589 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13591 # The linker can only warn and ignore the option if not recognized
13592 # So say no if there are warnings
13593 if test -s conftest.err; then
13594 # Append any errors to the config.log.
13595 cat conftest.err 1>&5
13596 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13598 if diff conftest.exp conftest.er2 >/dev/null; then
13599 lt_prog_compiler_static_works_CXX=yes
13600 fi
13601 else
13602 lt_prog_compiler_static_works_CXX=yes
13603 fi
13604 fi
13605 $rm conftest*
13606 LDFLAGS="$save_LDFLAGS"
13607
13608 fi
13609 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13610 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13611
13612 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13613 :
13614 else
13615 lt_prog_compiler_static_CXX=
13616 fi
13617
13618
13619 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13620 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13621 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624 lt_cv_prog_compiler_c_o_CXX=no
13625 $rm -r conftest 2>/dev/null
13626 mkdir conftest
13627 cd conftest
13628 mkdir out
13629 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13630
13631 lt_compiler_flag="-o out/conftest2.$ac_objext"
13632 # Insert the option either (1) after the last *FLAGS variable, or
13633 # (2) before a word containing "conftest.", or (3) at the end.
13634 # Note that $ac_compile itself does not contain backslashes and begins
13635 # with a dollar sign (not a hyphen), so the echo should work correctly.
13636 lt_compile=`echo "$ac_compile" | $SED \
13637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13639 -e 's:$: $lt_compiler_flag:'`
13640 (eval echo "\"\$as_me:13640: $lt_compile\"" >&5)
13641 (eval "$lt_compile" 2>out/conftest.err)
13642 ac_status=$?
13643 cat out/conftest.err >&5
13644 echo "$as_me:13644: \$? = $ac_status" >&5
13645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13646 then
13647 # The compiler can only warn and ignore the option if not recognized
13648 # So say no if there are warnings
13649 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13652 lt_cv_prog_compiler_c_o_CXX=yes
13653 fi
13654 fi
13655 chmod u+w . 2>&5
13656 $rm conftest*
13657 # SGI C++ compiler will create directory out/ii_files/ for
13658 # template instantiation
13659 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13660 $rm out/* && rmdir out
13661 cd ..
13662 rmdir conftest
13663 $rm conftest*
13664
13665 fi
13666 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13667 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13668
13669
13670 hard_links="nottested"
13671 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13672 # do not overwrite the value of need_locks provided by the user
13673 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13674 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13675 hard_links=yes
13676 $rm conftest*
13677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13678 touch conftest.a
13679 ln conftest.a conftest.b 2>&5 || hard_links=no
13680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13681 echo "$as_me:$LINENO: result: $hard_links" >&5
13682 echo "${ECHO_T}$hard_links" >&6
13683 if test "$hard_links" = no; then
13684 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13685 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13686 need_locks=warn
13687 fi
13688 else
13689 need_locks=no
13690 fi
13691
13692 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13694
13695 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13696 case $host_os in
13697 aix4* | aix5*)
13698 # If we're using GNU nm, then we don't want the "-C" option.
13699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13700 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13701 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'
13702 else
13703 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'
13704 fi
13705 ;;
13706 pw32*)
13707 export_symbols_cmds_CXX="$ltdll_cmds"
13708 ;;
13709 cygwin* | mingw*)
13710 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'
13711 ;;
13712 *)
13713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13714 ;;
13715 esac
13716
13717 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13718 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13719 test "$ld_shlibs_CXX" = no && can_build_shared=no
13720
13721 #
13722 # Do we need to explicitly link libc?
13723 #
13724 case "x$archive_cmds_need_lc_CXX" in
13725 x|xyes)
13726 # Assume -lc should be added
13727 archive_cmds_need_lc_CXX=yes
13728
13729 if test "$enable_shared" = yes && test "$GCC" = yes; then
13730 case $archive_cmds_CXX in
13731 *'~'*)
13732 # FIXME: we may have to deal with multi-command sequences.
13733 ;;
13734 '$CC '*)
13735 # Test whether the compiler implicitly links with -lc since on some
13736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13737 # to ld, don't add -lc before -lgcc.
13738 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13739 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13740 $rm conftest*
13741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13742
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } 2>conftest.err; then
13748 soname=conftest
13749 lib=conftest
13750 libobjs=conftest.$ac_objext
13751 deplibs=
13752 wl=$lt_prog_compiler_wl_CXX
13753 pic_flag=$lt_prog_compiler_pic_CXX
13754 compiler_flags=-v
13755 linker_flags=-v
13756 verstring=
13757 output_objdir=.
13758 libname=conftest
13759 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13760 allow_undefined_flag_CXX=
13761 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13762 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }
13766 then
13767 archive_cmds_need_lc_CXX=no
13768 else
13769 archive_cmds_need_lc_CXX=yes
13770 fi
13771 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13772 else
13773 cat conftest.err 1>&5
13774 fi
13775 $rm conftest*
13776 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13777 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13778 ;;
13779 esac
13780 fi
13781 ;;
13782 esac
13783
13784 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13786 library_names_spec=
13787 libname_spec='lib$name'
13788 soname_spec=
13789 shrext_cmds=".so"
13790 postinstall_cmds=
13791 postuninstall_cmds=
13792 finish_cmds=
13793 finish_eval=
13794 shlibpath_var=
13795 shlibpath_overrides_runpath=unknown
13796 version_type=none
13797 dynamic_linker="$host_os ld.so"
13798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13799 if test "$GCC" = yes; then
13800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13802 # if the path contains ";" then we assume it to be the separator
13803 # otherwise default to the standard path separator (i.e. ":") - it is
13804 # assumed that no part of a normal pathname contains ";" but that should
13805 # okay in the real world where ";" in dirpaths is itself problematic.
13806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13807 else
13808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13809 fi
13810 else
13811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13812 fi
13813 need_lib_prefix=unknown
13814 hardcode_into_libs=no
13815
13816 # when you set need_version to no, make sure it does not cause -set_version
13817 # flags to be left without arguments
13818 need_version=unknown
13819
13820 case $host_os in
13821 aix3*)
13822 version_type=linux
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13824 shlibpath_var=LIBPATH
13825
13826 # AIX 3 has no versioning support, so we append a major version to the name.
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 ;;
13829
13830 aix4* | aix5*)
13831 version_type=linux
13832 need_lib_prefix=no
13833 need_version=no
13834 hardcode_into_libs=yes
13835 if test "$host_cpu" = ia64; then
13836 # AIX 5 supports IA64
13837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 else
13840 # With GCC up to 2.95.x, collect2 would create an import file
13841 # for dependence libraries. The import file would start with
13842 # the line `#! .'. This would cause the generated library to
13843 # depend on `.', always an invalid library. This was fixed in
13844 # development snapshots of GCC prior to 3.0.
13845 case $host_os in
13846 aix4 | aix4.[01] | aix4.[01].*)
13847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13848 echo ' yes '
13849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13850 :
13851 else
13852 can_build_shared=no
13853 fi
13854 ;;
13855 esac
13856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13857 # soname into executable. Probably we can add versioning support to
13858 # collect2, so additional links can be useful in future.
13859 if test "$aix_use_runtimelinking" = yes; then
13860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13861 # instead of lib<name>.a to let people know that these are not
13862 # typical AIX shared libraries.
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13864 else
13865 # We preserve .a as extension for shared libraries through AIX4.2
13866 # and later when we are not doing run time linking.
13867 library_names_spec='${libname}${release}.a $libname.a'
13868 soname_spec='${libname}${release}${shared_ext}$major'
13869 fi
13870 shlibpath_var=LIBPATH
13871 fi
13872 ;;
13873
13874 amigaos*)
13875 library_names_spec='$libname.ixlibrary $libname.a'
13876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13877 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'
13878 ;;
13879
13880 beos*)
13881 library_names_spec='${libname}${shared_ext}'
13882 dynamic_linker="$host_os ld.so"
13883 shlibpath_var=LIBRARY_PATH
13884 ;;
13885
13886 bsdi[45]*)
13887 version_type=linux
13888 need_version=no
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13895 # the default ld.so.conf also contains /usr/contrib/lib and
13896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13897 # libtool to hard-code these into programs
13898 ;;
13899
13900 cygwin* | mingw* | pw32*)
13901 version_type=windows
13902 shrext_cmds=".dll"
13903 need_version=no
13904 need_lib_prefix=no
13905
13906 case $GCC,$host_os in
13907 yes,cygwin* | yes,mingw* | yes,pw32*)
13908 library_names_spec='$libname.dll.a'
13909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13910 postinstall_cmds='base_file=`basename \${file}`~
13911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13912 dldir=$destdir/`dirname \$dlpath`~
13913 test -d \$dldir || mkdir -p \$dldir~
13914 $install_prog $dir/$dlname \$dldir/$dlname~
13915 chmod a+x \$dldir/$dlname'
13916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13917 dlpath=$dir/\$dldll~
13918 $rm \$dlpath'
13919 shlibpath_overrides_runpath=yes
13920
13921 case $host_os in
13922 cygwin*)
13923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13925 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13926 ;;
13927 mingw*)
13928 # MinGW DLLs use traditional 'lib' prefix
13929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13930 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13931 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13932 # It is most probably a Windows format PATH printed by
13933 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13934 # path with ; separators, and with drive letters. We can handle the
13935 # drive letters (cygwin fileutils understands them), so leave them,
13936 # especially as we might pass files found there to a mingw objdump,
13937 # which wouldn't understand a cygwinified path. Ahh.
13938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13939 else
13940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13941 fi
13942 ;;
13943 pw32*)
13944 # pw32 DLLs use 'pw' prefix rather than 'lib'
13945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13946 ;;
13947 esac
13948 ;;
13949
13950 *)
13951 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13952 ;;
13953 esac
13954 dynamic_linker='Win32 ld.exe'
13955 # FIXME: first we should search . and the directory the executable is in
13956 shlibpath_var=PATH
13957 ;;
13958
13959 darwin* | rhapsody*)
13960 dynamic_linker="$host_os dyld"
13961 version_type=darwin
13962 need_lib_prefix=no
13963 need_version=no
13964 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13965 soname_spec='${libname}${release}${major}$shared_ext'
13966 shlibpath_overrides_runpath=yes
13967 shlibpath_var=DYLD_LIBRARY_PATH
13968 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13969 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13970 if test "$GCC" = yes; then
13971 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"`
13972 else
13973 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13974 fi
13975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13976 ;;
13977
13978 dgux*)
13979 version_type=linux
13980 need_lib_prefix=no
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 ;;
13986
13987 freebsd1*)
13988 dynamic_linker=no
13989 ;;
13990
13991 kfreebsd*-gnu)
13992 version_type=linux
13993 need_lib_prefix=no
13994 need_version=no
13995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13996 soname_spec='${libname}${release}${shared_ext}$major'
13997 shlibpath_var=LD_LIBRARY_PATH
13998 shlibpath_overrides_runpath=no
13999 hardcode_into_libs=yes
14000 dynamic_linker='GNU ld.so'
14001 ;;
14002
14003 freebsd* | dragonfly*)
14004 # DragonFly does not have aout. When/if they implement a new
14005 # versioning mechanism, adjust this.
14006 if test -x /usr/bin/objformat; then
14007 objformat=`/usr/bin/objformat`
14008 else
14009 case $host_os in
14010 freebsd[123]*) objformat=aout ;;
14011 *) objformat=elf ;;
14012 esac
14013 fi
14014 version_type=freebsd-$objformat
14015 case $version_type in
14016 freebsd-elf*)
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14018 need_version=no
14019 need_lib_prefix=no
14020 ;;
14021 freebsd-*)
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14023 need_version=yes
14024 ;;
14025 esac
14026 shlibpath_var=LD_LIBRARY_PATH
14027 case $host_os in
14028 freebsd2*)
14029 shlibpath_overrides_runpath=yes
14030 ;;
14031 freebsd3.[01]* | freebsdelf3.[01]*)
14032 shlibpath_overrides_runpath=yes
14033 hardcode_into_libs=yes
14034 ;;
14035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14037 shlibpath_overrides_runpath=no
14038 hardcode_into_libs=yes
14039 ;;
14040 freebsd*) # from 4.6 on
14041 shlibpath_overrides_runpath=yes
14042 hardcode_into_libs=yes
14043 ;;
14044 esac
14045 ;;
14046
14047 gnu*)
14048 version_type=linux
14049 need_lib_prefix=no
14050 need_version=no
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 shlibpath_var=LD_LIBRARY_PATH
14054 hardcode_into_libs=yes
14055 ;;
14056
14057 hpux9* | hpux10* | hpux11*)
14058 # Give a soname corresponding to the major version so that dld.sl refuses to
14059 # link against other versions.
14060 version_type=sunos
14061 need_lib_prefix=no
14062 need_version=no
14063 case $host_cpu in
14064 ia64*)
14065 shrext_cmds='.so'
14066 hardcode_into_libs=yes
14067 dynamic_linker="$host_os dld.so"
14068 shlibpath_var=LD_LIBRARY_PATH
14069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 if test "X$HPUX_IA64_MODE" = X32; then
14073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14074 else
14075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14076 fi
14077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14078 ;;
14079 hppa*64*)
14080 shrext_cmds='.sl'
14081 hardcode_into_libs=yes
14082 dynamic_linker="$host_os dld.sl"
14083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14089 ;;
14090 *)
14091 shrext_cmds='.sl'
14092 dynamic_linker="$host_os dld.sl"
14093 shlibpath_var=SHLIB_PATH
14094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 ;;
14098 esac
14099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14100 postinstall_cmds='chmod 555 $lib'
14101 ;;
14102
14103 interix3*)
14104 version_type=linux
14105 need_lib_prefix=no
14106 need_version=no
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14110 shlibpath_var=LD_LIBRARY_PATH
14111 shlibpath_overrides_runpath=no
14112 hardcode_into_libs=yes
14113 ;;
14114
14115 irix5* | irix6* | nonstopux*)
14116 case $host_os in
14117 nonstopux*) version_type=nonstopux ;;
14118 *)
14119 if test "$lt_cv_prog_gnu_ld" = yes; then
14120 version_type=linux
14121 else
14122 version_type=irix
14123 fi ;;
14124 esac
14125 need_lib_prefix=no
14126 need_version=no
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14129 case $host_os in
14130 irix5* | nonstopux*)
14131 libsuff= shlibsuff=
14132 ;;
14133 *)
14134 case $LD in # libtool.m4 will add one of these switches to LD
14135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14136 libsuff= shlibsuff= libmagic=32-bit;;
14137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14138 libsuff=32 shlibsuff=N32 libmagic=N32;;
14139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14141 *) libsuff= shlibsuff= libmagic=never-match;;
14142 esac
14143 ;;
14144 esac
14145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14146 shlibpath_overrides_runpath=no
14147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14149 hardcode_into_libs=yes
14150 ;;
14151
14152 # No shared lib support for Linux oldld, aout, or coff.
14153 linux*oldld* | linux*aout* | linux*coff*)
14154 dynamic_linker=no
14155 ;;
14156
14157 # This must be Linux ELF.
14158 linux*)
14159 version_type=linux
14160 need_lib_prefix=no
14161 need_version=no
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14165 shlibpath_var=LD_LIBRARY_PATH
14166 shlibpath_overrides_runpath=no
14167 # This implies no fast_install, which is unacceptable.
14168 # Some rework will be needed to allow for fast_install
14169 # before this can be enabled.
14170 hardcode_into_libs=yes
14171
14172 # Append ld.so.conf contents to the search path
14173 if test -f /etc/ld.so.conf; then
14174 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' ' '`
14175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14176 fi
14177
14178 # We used to test for /lib/ld.so.1 and disable shared libraries on
14179 # powerpc, because MkLinux only supported shared libraries with the
14180 # GNU dynamic linker. Since this was broken with cross compilers,
14181 # most powerpc-linux boxes support dynamic linking these days and
14182 # people can always --disable-shared, the test was removed, and we
14183 # assume the GNU/Linux dynamic linker is in use.
14184 dynamic_linker='GNU/Linux ld.so'
14185 ;;
14186
14187 knetbsd*-gnu)
14188 version_type=linux
14189 need_lib_prefix=no
14190 need_version=no
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14192 soname_spec='${libname}${release}${shared_ext}$major'
14193 shlibpath_var=LD_LIBRARY_PATH
14194 shlibpath_overrides_runpath=no
14195 hardcode_into_libs=yes
14196 dynamic_linker='GNU ld.so'
14197 ;;
14198
14199 netbsd*)
14200 version_type=sunos
14201 need_lib_prefix=no
14202 need_version=no
14203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14206 dynamic_linker='NetBSD (a.out) ld.so'
14207 else
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 dynamic_linker='NetBSD ld.elf_so'
14211 fi
14212 shlibpath_var=LD_LIBRARY_PATH
14213 shlibpath_overrides_runpath=yes
14214 hardcode_into_libs=yes
14215 ;;
14216
14217 newsos6)
14218 version_type=linux
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 shlibpath_overrides_runpath=yes
14222 ;;
14223
14224 nto-qnx*)
14225 version_type=linux
14226 need_lib_prefix=no
14227 need_version=no
14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229 soname_spec='${libname}${release}${shared_ext}$major'
14230 shlibpath_var=LD_LIBRARY_PATH
14231 shlibpath_overrides_runpath=yes
14232 ;;
14233
14234 openbsd*)
14235 version_type=sunos
14236 sys_lib_dlsearch_path_spec="/usr/lib"
14237 need_lib_prefix=no
14238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14239 case $host_os in
14240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14241 *) need_version=no ;;
14242 esac
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14247 case $host_os in
14248 openbsd2.[89] | openbsd2.[89].*)
14249 shlibpath_overrides_runpath=no
14250 ;;
14251 *)
14252 shlibpath_overrides_runpath=yes
14253 ;;
14254 esac
14255 else
14256 shlibpath_overrides_runpath=yes
14257 fi
14258 ;;
14259
14260 os2*)
14261 libname_spec='$name'
14262 shrext_cmds=".dll"
14263 need_lib_prefix=no
14264 library_names_spec='$libname${shared_ext} $libname.a'
14265 dynamic_linker='OS/2 ld.exe'
14266 shlibpath_var=LIBPATH
14267 ;;
14268
14269 osf3* | osf4* | osf5*)
14270 version_type=osf
14271 need_lib_prefix=no
14272 need_version=no
14273 soname_spec='${libname}${release}${shared_ext}$major'
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 shlibpath_var=LD_LIBRARY_PATH
14276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14278 ;;
14279
14280 solaris*)
14281 version_type=linux
14282 need_lib_prefix=no
14283 need_version=no
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath=yes
14288 hardcode_into_libs=yes
14289 # ldd complains unless libraries are executable
14290 postinstall_cmds='chmod +x $lib'
14291 ;;
14292
14293 sunos4*)
14294 version_type=sunos
14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14297 shlibpath_var=LD_LIBRARY_PATH
14298 shlibpath_overrides_runpath=yes
14299 if test "$with_gnu_ld" = yes; then
14300 need_lib_prefix=no
14301 fi
14302 need_version=yes
14303 ;;
14304
14305 sysv4 | sysv4.3*)
14306 version_type=linux
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 shlibpath_var=LD_LIBRARY_PATH
14310 case $host_vendor in
14311 sni)
14312 shlibpath_overrides_runpath=no
14313 need_lib_prefix=no
14314 export_dynamic_flag_spec='${wl}-Blargedynsym'
14315 runpath_var=LD_RUN_PATH
14316 ;;
14317 siemens)
14318 need_lib_prefix=no
14319 ;;
14320 motorola)
14321 need_lib_prefix=no
14322 need_version=no
14323 shlibpath_overrides_runpath=no
14324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14325 ;;
14326 esac
14327 ;;
14328
14329 sysv4*MP*)
14330 if test -d /usr/nec ;then
14331 version_type=linux
14332 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14333 soname_spec='$libname${shared_ext}.$major'
14334 shlibpath_var=LD_LIBRARY_PATH
14335 fi
14336 ;;
14337
14338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14339 version_type=freebsd-elf
14340 need_lib_prefix=no
14341 need_version=no
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 shlibpath_var=LD_LIBRARY_PATH
14345 hardcode_into_libs=yes
14346 if test "$with_gnu_ld" = yes; then
14347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14348 shlibpath_overrides_runpath=no
14349 else
14350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14351 shlibpath_overrides_runpath=yes
14352 case $host_os in
14353 sco3.2v5*)
14354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14355 ;;
14356 esac
14357 fi
14358 sys_lib_dlsearch_path_spec='/usr/lib'
14359 ;;
14360
14361 uts4*)
14362 version_type=linux
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 shlibpath_var=LD_LIBRARY_PATH
14366 ;;
14367
14368 *)
14369 dynamic_linker=no
14370 ;;
14371 esac
14372 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14373 echo "${ECHO_T}$dynamic_linker" >&6
14374 test "$dynamic_linker" = no && can_build_shared=no
14375
14376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14377 if test "$GCC" = yes; then
14378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14379 fi
14380
14381 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14383 hardcode_action_CXX=
14384 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14385 test -n "$runpath_var_CXX" || \
14386 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14387
14388 # We can hardcode non-existant directories.
14389 if test "$hardcode_direct_CXX" != no &&
14390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14391 # have to relink, otherwise we might link with an installed library
14392 # when we should be linking with a yet-to-be-installed one
14393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14394 test "$hardcode_minus_L_CXX" != no; then
14395 # Linking always hardcodes the temporary library directory.
14396 hardcode_action_CXX=relink
14397 else
14398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14399 hardcode_action_CXX=immediate
14400 fi
14401 else
14402 # We cannot hardcode anything, or else we can only hardcode existing
14403 # directories.
14404 hardcode_action_CXX=unsupported
14405 fi
14406 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14407 echo "${ECHO_T}$hardcode_action_CXX" >&6
14408
14409 if test "$hardcode_action_CXX" = relink; then
14410 # Fast installation is not supported
14411 enable_fast_install=no
14412 elif test "$shlibpath_overrides_runpath" = yes ||
14413 test "$enable_shared" = no; then
14414 # Fast installation is not necessary
14415 enable_fast_install=needless
14416 fi
14417
14418
14419 # The else clause should only fire when bootstrapping the
14420 # libtool distribution, otherwise you forgot to ship ltmain.sh
14421 # with your package, and you will get complaints that there are
14422 # no rules to generate ltmain.sh.
14423 if test -f "$ltmain"; then
14424 # See if we are running on zsh, and set the options which allow our commands through
14425 # without removal of \ escapes.
14426 if test -n "${ZSH_VERSION+set}" ; then
14427 setopt NO_GLOB_SUBST
14428 fi
14429 # Now quote all the things that may contain metacharacters while being
14430 # careful not to overquote the AC_SUBSTed values. We take copies of the
14431 # variables and quote the copies for generation of the libtool script.
14432 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14433 SED SHELL STRIP \
14434 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14435 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14436 deplibs_check_method reload_flag reload_cmds need_locks \
14437 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14438 lt_cv_sys_global_symbol_to_c_name_address \
14439 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14440 old_postinstall_cmds old_postuninstall_cmds \
14441 compiler_CXX \
14442 CC_CXX \
14443 LD_CXX \
14444 lt_prog_compiler_wl_CXX \
14445 lt_prog_compiler_pic_CXX \
14446 lt_prog_compiler_static_CXX \
14447 lt_prog_compiler_no_builtin_flag_CXX \
14448 export_dynamic_flag_spec_CXX \
14449 thread_safe_flag_spec_CXX \
14450 whole_archive_flag_spec_CXX \
14451 enable_shared_with_static_runtimes_CXX \
14452 old_archive_cmds_CXX \
14453 old_archive_from_new_cmds_CXX \
14454 predep_objects_CXX \
14455 postdep_objects_CXX \
14456 predeps_CXX \
14457 postdeps_CXX \
14458 compiler_lib_search_path_CXX \
14459 archive_cmds_CXX \
14460 archive_expsym_cmds_CXX \
14461 postinstall_cmds_CXX \
14462 postuninstall_cmds_CXX \
14463 old_archive_from_expsyms_cmds_CXX \
14464 allow_undefined_flag_CXX \
14465 no_undefined_flag_CXX \
14466 export_symbols_cmds_CXX \
14467 hardcode_libdir_flag_spec_CXX \
14468 hardcode_libdir_flag_spec_ld_CXX \
14469 hardcode_libdir_separator_CXX \
14470 hardcode_automatic_CXX \
14471 module_cmds_CXX \
14472 module_expsym_cmds_CXX \
14473 lt_cv_prog_compiler_c_o_CXX \
14474 exclude_expsyms_CXX \
14475 include_expsyms_CXX; do
14476
14477 case $var in
14478 old_archive_cmds_CXX | \
14479 old_archive_from_new_cmds_CXX | \
14480 archive_cmds_CXX | \
14481 archive_expsym_cmds_CXX | \
14482 module_cmds_CXX | \
14483 module_expsym_cmds_CXX | \
14484 old_archive_from_expsyms_cmds_CXX | \
14485 export_symbols_cmds_CXX | \
14486 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14487 postinstall_cmds | postuninstall_cmds | \
14488 old_postinstall_cmds | old_postuninstall_cmds | \
14489 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14490 # Double-quote double-evaled strings.
14491 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14492 ;;
14493 *)
14494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14495 ;;
14496 esac
14497 done
14498
14499 case $lt_echo in
14500 *'\$0 --fallback-echo"')
14501 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14502 ;;
14503 esac
14504
14505 cfgfile="$ofile"
14506
14507 cat <<__EOF__ >> "$cfgfile"
14508 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14509
14510 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14511
14512 # Shell to use when invoking shell scripts.
14513 SHELL=$lt_SHELL
14514
14515 # Whether or not to build shared libraries.
14516 build_libtool_libs=$enable_shared
14517
14518 # Whether or not to build static libraries.
14519 build_old_libs=$enable_static
14520
14521 # Whether or not to add -lc for building shared libraries.
14522 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14523
14524 # Whether or not to disallow shared libs when runtime libs are static
14525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14526
14527 # Whether or not to optimize for fast installation.
14528 fast_install=$enable_fast_install
14529
14530 # The host system.
14531 host_alias=$host_alias
14532 host=$host
14533 host_os=$host_os
14534
14535 # The build system.
14536 build_alias=$build_alias
14537 build=$build
14538 build_os=$build_os
14539
14540 # An echo program that does not interpret backslashes.
14541 echo=$lt_echo
14542
14543 # The archiver.
14544 AR=$lt_AR
14545 AR_FLAGS=$lt_AR_FLAGS
14546
14547 # A C compiler.
14548 LTCC=$lt_LTCC
14549
14550 # LTCC compiler flags.
14551 LTCFLAGS=$lt_LTCFLAGS
14552
14553 # A language-specific compiler.
14554 CC=$lt_compiler_CXX
14555
14556 # Is the compiler the GNU C compiler?
14557 with_gcc=$GCC_CXX
14558
14559 # An ERE matcher.
14560 EGREP=$lt_EGREP
14561
14562 # The linker used to build libraries.
14563 LD=$lt_LD_CXX
14564
14565 # Whether we need hard or soft links.
14566 LN_S=$lt_LN_S
14567
14568 # A BSD-compatible nm program.
14569 NM=$lt_NM
14570
14571 # A symbol stripping program
14572 STRIP=$lt_STRIP
14573
14574 # Used to examine libraries when file_magic_cmd begins "file"
14575 MAGIC_CMD=$MAGIC_CMD
14576
14577 # Used on cygwin: DLL creation program.
14578 DLLTOOL="$DLLTOOL"
14579
14580 # Used on cygwin: object dumper.
14581 OBJDUMP="$OBJDUMP"
14582
14583 # Used on cygwin: assembler.
14584 AS="$AS"
14585
14586 # The name of the directory that contains temporary libtool files.
14587 objdir=$objdir
14588
14589 # How to create reloadable object files.
14590 reload_flag=$lt_reload_flag
14591 reload_cmds=$lt_reload_cmds
14592
14593 # How to pass a linker flag through the compiler.
14594 wl=$lt_lt_prog_compiler_wl_CXX
14595
14596 # Object file suffix (normally "o").
14597 objext="$ac_objext"
14598
14599 # Old archive suffix (normally "a").
14600 libext="$libext"
14601
14602 # Shared library suffix (normally ".so").
14603 shrext_cmds='$shrext_cmds'
14604
14605 # Executable file suffix (normally "").
14606 exeext="$exeext"
14607
14608 # Additional compiler flags for building library objects.
14609 pic_flag=$lt_lt_prog_compiler_pic_CXX
14610 pic_mode=$pic_mode
14611
14612 # What is the maximum length of a command?
14613 max_cmd_len=$lt_cv_sys_max_cmd_len
14614
14615 # Does compiler simultaneously support -c and -o options?
14616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14617
14618 # Must we lock files when doing compilation?
14619 need_locks=$lt_need_locks
14620
14621 # Do we need the lib prefix for modules?
14622 need_lib_prefix=$need_lib_prefix
14623
14624 # Do we need a version for libraries?
14625 need_version=$need_version
14626
14627 # Whether dlopen is supported.
14628 dlopen_support=$enable_dlopen
14629
14630 # Whether dlopen of programs is supported.
14631 dlopen_self=$enable_dlopen_self
14632
14633 # Whether dlopen of statically linked programs is supported.
14634 dlopen_self_static=$enable_dlopen_self_static
14635
14636 # Compiler flag to prevent dynamic linking.
14637 link_static_flag=$lt_lt_prog_compiler_static_CXX
14638
14639 # Compiler flag to turn off builtin functions.
14640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14641
14642 # Compiler flag to allow reflexive dlopens.
14643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14644
14645 # Compiler flag to generate shared objects directly from archives.
14646 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14647
14648 # Compiler flag to generate thread-safe objects.
14649 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14650
14651 # Library versioning type.
14652 version_type=$version_type
14653
14654 # Format of library name prefix.
14655 libname_spec=$lt_libname_spec
14656
14657 # List of archive names. First name is the real one, the rest are links.
14658 # The last name is the one that the linker finds with -lNAME.
14659 library_names_spec=$lt_library_names_spec
14660
14661 # The coded name of the library, if different from the real name.
14662 soname_spec=$lt_soname_spec
14663
14664 # Commands used to build and install an old-style archive.
14665 RANLIB=$lt_RANLIB
14666 old_archive_cmds=$lt_old_archive_cmds_CXX
14667 old_postinstall_cmds=$lt_old_postinstall_cmds
14668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14669
14670 # Create an old-style archive from a shared archive.
14671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14672
14673 # Create a temporary old-style archive to link instead of a shared archive.
14674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14675
14676 # Commands used to build and install a shared archive.
14677 archive_cmds=$lt_archive_cmds_CXX
14678 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14679 postinstall_cmds=$lt_postinstall_cmds
14680 postuninstall_cmds=$lt_postuninstall_cmds
14681
14682 # Commands used to build a loadable module (assumed same as above if empty)
14683 module_cmds=$lt_module_cmds_CXX
14684 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14685
14686 # Commands to strip libraries.
14687 old_striplib=$lt_old_striplib
14688 striplib=$lt_striplib
14689
14690 # Dependencies to place before the objects being linked to create a
14691 # shared library.
14692 predep_objects=$lt_predep_objects_CXX
14693
14694 # Dependencies to place after the objects being linked to create a
14695 # shared library.
14696 postdep_objects=$lt_postdep_objects_CXX
14697
14698 # Dependencies to place before the objects being linked to create a
14699 # shared library.
14700 predeps=$lt_predeps_CXX
14701
14702 # Dependencies to place after the objects being linked to create a
14703 # shared library.
14704 postdeps=$lt_postdeps_CXX
14705
14706 # The library search path used internally by the compiler when linking
14707 # a shared library.
14708 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14709
14710 # Method to check whether dependent libraries are shared objects.
14711 deplibs_check_method=$lt_deplibs_check_method
14712
14713 # Command to use when deplibs_check_method == file_magic.
14714 file_magic_cmd=$lt_file_magic_cmd
14715
14716 # Flag that allows shared libraries with undefined symbols to be built.
14717 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14718
14719 # Flag that forces no undefined symbols.
14720 no_undefined_flag=$lt_no_undefined_flag_CXX
14721
14722 # Commands used to finish a libtool library installation in a directory.
14723 finish_cmds=$lt_finish_cmds
14724
14725 # Same as above, but a single script fragment to be evaled but not shown.
14726 finish_eval=$lt_finish_eval
14727
14728 # Take the output of nm and produce a listing of raw symbols and C names.
14729 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14730
14731 # Transform the output of nm in a proper C declaration
14732 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14733
14734 # Transform the output of nm in a C name address pair
14735 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14736
14737 # This is the shared library runtime path variable.
14738 runpath_var=$runpath_var
14739
14740 # This is the shared library path variable.
14741 shlibpath_var=$shlibpath_var
14742
14743 # Is shlibpath searched before the hard-coded library search path?
14744 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14745
14746 # How to hardcode a shared library path into an executable.
14747 hardcode_action=$hardcode_action_CXX
14748
14749 # Whether we should hardcode library paths into libraries.
14750 hardcode_into_libs=$hardcode_into_libs
14751
14752 # Flag to hardcode \$libdir into a binary during linking.
14753 # This must work even if \$libdir does not exist.
14754 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14755
14756 # If ld is used when linking, flag to hardcode \$libdir into
14757 # a binary during linking. This must work even if \$libdir does
14758 # not exist.
14759 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14760
14761 # Whether we need a single -rpath flag with a separated argument.
14762 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14763
14764 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14765 # resulting binary.
14766 hardcode_direct=$hardcode_direct_CXX
14767
14768 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14769 # resulting binary.
14770 hardcode_minus_L=$hardcode_minus_L_CXX
14771
14772 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14773 # the resulting binary.
14774 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14775
14776 # Set to yes if building a shared library automatically hardcodes DIR into the library
14777 # and all subsequent libraries and executables linked against it.
14778 hardcode_automatic=$hardcode_automatic_CXX
14779
14780 # Variables whose values should be saved in libtool wrapper scripts and
14781 # restored at relink time.
14782 variables_saved_for_relink="$variables_saved_for_relink"
14783
14784 # Whether libtool must link a program against all its dependency libraries.
14785 link_all_deplibs=$link_all_deplibs_CXX
14786
14787 # Compile-time system search path for libraries
14788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14789
14790 # Run-time system search path for libraries
14791 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14792
14793 # Fix the shell variable \$srcfile for the compiler.
14794 fix_srcfile_path="$fix_srcfile_path_CXX"
14795
14796 # Set to yes if exported symbols are required.
14797 always_export_symbols=$always_export_symbols_CXX
14798
14799 # The commands to list exported symbols.
14800 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14801
14802 # The commands to extract the exported symbol list from a shared archive.
14803 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14804
14805 # Symbols that should not be listed in the preloaded symbols.
14806 exclude_expsyms=$lt_exclude_expsyms_CXX
14807
14808 # Symbols that must always be exported.
14809 include_expsyms=$lt_include_expsyms_CXX
14810
14811 # ### END LIBTOOL TAG CONFIG: $tagname
14812
14813 __EOF__
14814
14815
14816 else
14817 # If there is no Makefile yet, we rely on a make rule to execute
14818 # `config.status --recheck' to rerun these tests and create the
14819 # libtool script then.
14820 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14821 if test -f "$ltmain_in"; then
14822 test -f Makefile && make "$ltmain"
14823 fi
14824 fi
14825
14826
14827 ac_ext=c
14828 ac_cpp='$CPP $CPPFLAGS'
14829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14832
14833 CC=$lt_save_CC
14834 LDCXX=$LD
14835 LD=$lt_save_LD
14836 GCC=$lt_save_GCC
14837 with_gnu_ldcxx=$with_gnu_ld
14838 with_gnu_ld=$lt_save_with_gnu_ld
14839 lt_cv_path_LDCXX=$lt_cv_path_LD
14840 lt_cv_path_LD=$lt_save_path_LD
14841 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14842 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14843
14844 else
14845 tagname=""
14846 fi
14847 ;;
14848
14849 F77)
14850 if test -n "$F77" && test "X$F77" != "Xno"; then
14851
14852 ac_ext=f
14853 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14854 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14856
14857
14858 archive_cmds_need_lc_F77=no
14859 allow_undefined_flag_F77=
14860 always_export_symbols_F77=no
14861 archive_expsym_cmds_F77=
14862 export_dynamic_flag_spec_F77=
14863 hardcode_direct_F77=no
14864 hardcode_libdir_flag_spec_F77=
14865 hardcode_libdir_flag_spec_ld_F77=
14866 hardcode_libdir_separator_F77=
14867 hardcode_minus_L_F77=no
14868 hardcode_automatic_F77=no
14869 module_cmds_F77=
14870 module_expsym_cmds_F77=
14871 link_all_deplibs_F77=unknown
14872 old_archive_cmds_F77=$old_archive_cmds
14873 no_undefined_flag_F77=
14874 whole_archive_flag_spec_F77=
14875 enable_shared_with_static_runtimes_F77=no
14876
14877 # Source file extension for f77 test sources.
14878 ac_ext=f
14879
14880 # Object file extension for compiled f77 test sources.
14881 objext=o
14882 objext_F77=$objext
14883
14884 # Code to be used in simple compile tests
14885 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14886
14887 # Code to be used in simple link tests
14888 lt_simple_link_test_code=" program t\n end\n"
14889
14890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14891
14892 # If no C compiler was specified, use CC.
14893 LTCC=${LTCC-"$CC"}
14894
14895 # If no C compiler flags were specified, use CFLAGS.
14896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14897
14898 # Allow CC to be a program name with arguments.
14899 compiler=$CC
14900
14901
14902 # save warnings/boilerplate of simple test code
14903 ac_outfile=conftest.$ac_objext
14904 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14905 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14906 _lt_compiler_boilerplate=`cat conftest.err`
14907 $rm conftest*
14908
14909 ac_outfile=conftest.$ac_objext
14910 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14911 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14912 _lt_linker_boilerplate=`cat conftest.err`
14913 $rm conftest*
14914
14915
14916 # Allow CC to be a program name with arguments.
14917 lt_save_CC="$CC"
14918 CC=${F77-"f77"}
14919 compiler=$CC
14920 compiler_F77=$CC
14921 for cc_temp in $compiler""; do
14922 case $cc_temp in
14923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14925 \-*) ;;
14926 *) break;;
14927 esac
14928 done
14929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14930
14931
14932 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14933 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14934 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14935 echo "${ECHO_T}$can_build_shared" >&6
14936
14937 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14938 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14939 test "$can_build_shared" = "no" && enable_shared=no
14940
14941 # On AIX, shared libraries and static libraries use the same namespace, and
14942 # are all built from PIC.
14943 case $host_os in
14944 aix3*)
14945 test "$enable_shared" = yes && enable_static=no
14946 if test -n "$RANLIB"; then
14947 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14948 postinstall_cmds='$RANLIB $lib'
14949 fi
14950 ;;
14951 aix4* | aix5*)
14952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14953 test "$enable_shared" = yes && enable_static=no
14954 fi
14955 ;;
14956 esac
14957 echo "$as_me:$LINENO: result: $enable_shared" >&5
14958 echo "${ECHO_T}$enable_shared" >&6
14959
14960 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14961 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14962 # Make sure either enable_shared or enable_static is yes.
14963 test "$enable_shared" = yes || enable_static=yes
14964 echo "$as_me:$LINENO: result: $enable_static" >&5
14965 echo "${ECHO_T}$enable_static" >&6
14966
14967 GCC_F77="$G77"
14968 LD_F77="$LD"
14969
14970 lt_prog_compiler_wl_F77=
14971 lt_prog_compiler_pic_F77=
14972 lt_prog_compiler_static_F77=
14973
14974 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14975 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14976
14977 if test "$GCC" = yes; then
14978 lt_prog_compiler_wl_F77='-Wl,'
14979 lt_prog_compiler_static_F77='-static'
14980
14981 case $host_os in
14982 aix*)
14983 # All AIX code is PIC.
14984 if test "$host_cpu" = ia64; then
14985 # AIX 5 now supports IA64 processor
14986 lt_prog_compiler_static_F77='-Bstatic'
14987 fi
14988 ;;
14989
14990 amigaos*)
14991 # FIXME: we need at least 68020 code to build shared libraries, but
14992 # adding the `-m68020' flag to GCC prevents building anything better,
14993 # like `-m68040'.
14994 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14995 ;;
14996
14997 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14998 # PIC is the default for these OSes.
14999 ;;
15000
15001 mingw* | pw32* | os2*)
15002 # This hack is so that the source file can tell whether it is being
15003 # built for inclusion in a dll (and should export symbols for example).
15004 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15005 ;;
15006
15007 darwin* | rhapsody*)
15008 # PIC is the default on this platform
15009 # Common symbols not allowed in MH_DYLIB files
15010 lt_prog_compiler_pic_F77='-fno-common'
15011 ;;
15012
15013 interix3*)
15014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15015 # Instead, we relocate shared libraries at runtime.
15016 ;;
15017
15018 msdosdjgpp*)
15019 # Just because we use GCC doesn't mean we suddenly get shared libraries
15020 # on systems that don't support them.
15021 lt_prog_compiler_can_build_shared_F77=no
15022 enable_shared=no
15023 ;;
15024
15025 sysv4*MP*)
15026 if test -d /usr/nec; then
15027 lt_prog_compiler_pic_F77=-Kconform_pic
15028 fi
15029 ;;
15030
15031 hpux*)
15032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15033 # not for PA HP-UX.
15034 case $host_cpu in
15035 hppa*64*|ia64*)
15036 # +Z the default
15037 ;;
15038 *)
15039 lt_prog_compiler_pic_F77='-fPIC'
15040 ;;
15041 esac
15042 ;;
15043
15044 *)
15045 lt_prog_compiler_pic_F77='-fPIC'
15046 ;;
15047 esac
15048 else
15049 # PORTME Check for flag to pass linker flags through the system compiler.
15050 case $host_os in
15051 aix*)
15052 lt_prog_compiler_wl_F77='-Wl,'
15053 if test "$host_cpu" = ia64; then
15054 # AIX 5 now supports IA64 processor
15055 lt_prog_compiler_static_F77='-Bstatic'
15056 else
15057 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15058 fi
15059 ;;
15060 darwin*)
15061 # PIC is the default on this platform
15062 # Common symbols not allowed in MH_DYLIB files
15063 case $cc_basename in
15064 xlc*)
15065 lt_prog_compiler_pic_F77='-qnocommon'
15066 lt_prog_compiler_wl_F77='-Wl,'
15067 ;;
15068 esac
15069 ;;
15070
15071 mingw* | pw32* | os2*)
15072 # This hack is so that the source file can tell whether it is being
15073 # built for inclusion in a dll (and should export symbols for example).
15074 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15075 ;;
15076
15077 hpux9* | hpux10* | hpux11*)
15078 lt_prog_compiler_wl_F77='-Wl,'
15079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15080 # not for PA HP-UX.
15081 case $host_cpu in
15082 hppa*64*|ia64*)
15083 # +Z the default
15084 ;;
15085 *)
15086 lt_prog_compiler_pic_F77='+Z'
15087 ;;
15088 esac
15089 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15090 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15091 ;;
15092
15093 irix5* | irix6* | nonstopux*)
15094 lt_prog_compiler_wl_F77='-Wl,'
15095 # PIC (with -KPIC) is the default.
15096 lt_prog_compiler_static_F77='-non_shared'
15097 ;;
15098
15099 newsos6)
15100 lt_prog_compiler_pic_F77='-KPIC'
15101 lt_prog_compiler_static_F77='-Bstatic'
15102 ;;
15103
15104 linux*)
15105 case $cc_basename in
15106 icc* | ecc*)
15107 lt_prog_compiler_wl_F77='-Wl,'
15108 lt_prog_compiler_pic_F77='-KPIC'
15109 lt_prog_compiler_static_F77='-static'
15110 ;;
15111 pgcc* | pgf77* | pgf90* | pgf95*)
15112 # Portland Group compilers (*not* the Pentium gcc compiler,
15113 # which looks to be a dead project)
15114 lt_prog_compiler_wl_F77='-Wl,'
15115 lt_prog_compiler_pic_F77='-fpic'
15116 lt_prog_compiler_static_F77='-Bstatic'
15117 ;;
15118 ccc*)
15119 lt_prog_compiler_wl_F77='-Wl,'
15120 # All Alpha code is PIC.
15121 lt_prog_compiler_static_F77='-non_shared'
15122 ;;
15123 esac
15124 ;;
15125
15126 osf3* | osf4* | osf5*)
15127 lt_prog_compiler_wl_F77='-Wl,'
15128 # All OSF/1 code is PIC.
15129 lt_prog_compiler_static_F77='-non_shared'
15130 ;;
15131
15132 solaris*)
15133 lt_prog_compiler_pic_F77='-KPIC'
15134 lt_prog_compiler_static_F77='-Bstatic'
15135 case $cc_basename in
15136 f77* | f90* | f95*)
15137 lt_prog_compiler_wl_F77='-Qoption ld ';;
15138 *)
15139 lt_prog_compiler_wl_F77='-Wl,';;
15140 esac
15141 ;;
15142
15143 sunos4*)
15144 lt_prog_compiler_wl_F77='-Qoption ld '
15145 lt_prog_compiler_pic_F77='-PIC'
15146 lt_prog_compiler_static_F77='-Bstatic'
15147 ;;
15148
15149 sysv4 | sysv4.2uw2* | sysv4.3*)
15150 lt_prog_compiler_wl_F77='-Wl,'
15151 lt_prog_compiler_pic_F77='-KPIC'
15152 lt_prog_compiler_static_F77='-Bstatic'
15153 ;;
15154
15155 sysv4*MP*)
15156 if test -d /usr/nec ;then
15157 lt_prog_compiler_pic_F77='-Kconform_pic'
15158 lt_prog_compiler_static_F77='-Bstatic'
15159 fi
15160 ;;
15161
15162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15163 lt_prog_compiler_wl_F77='-Wl,'
15164 lt_prog_compiler_pic_F77='-KPIC'
15165 lt_prog_compiler_static_F77='-Bstatic'
15166 ;;
15167
15168 unicos*)
15169 lt_prog_compiler_wl_F77='-Wl,'
15170 lt_prog_compiler_can_build_shared_F77=no
15171 ;;
15172
15173 uts4*)
15174 lt_prog_compiler_pic_F77='-pic'
15175 lt_prog_compiler_static_F77='-Bstatic'
15176 ;;
15177
15178 *)
15179 lt_prog_compiler_can_build_shared_F77=no
15180 ;;
15181 esac
15182 fi
15183
15184 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15185 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15186
15187 #
15188 # Check to make sure the PIC flag actually works.
15189 #
15190 if test -n "$lt_prog_compiler_pic_F77"; then
15191
15192 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15193 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15194 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 lt_prog_compiler_pic_works_F77=no
15198 ac_outfile=conftest.$ac_objext
15199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15200 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15201 # Insert the option either (1) after the last *FLAGS variable, or
15202 # (2) before a word containing "conftest.", or (3) at the end.
15203 # Note that $ac_compile itself does not contain backslashes and begins
15204 # with a dollar sign (not a hyphen), so the echo should work correctly.
15205 # The option is referenced via a variable to avoid confusing sed.
15206 lt_compile=`echo "$ac_compile" | $SED \
15207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15209 -e 's:$: $lt_compiler_flag:'`
15210 (eval echo "\"\$as_me:15210: $lt_compile\"" >&5)
15211 (eval "$lt_compile" 2>conftest.err)
15212 ac_status=$?
15213 cat conftest.err >&5
15214 echo "$as_me:15214: \$? = $ac_status" >&5
15215 if (exit $ac_status) && test -s "$ac_outfile"; then
15216 # The compiler can only warn and ignore the option if not recognized
15217 # So say no if there are warnings other than the usual output.
15218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15221 lt_prog_compiler_pic_works_F77=yes
15222 fi
15223 fi
15224 $rm conftest*
15225
15226 fi
15227 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15228 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15229
15230 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15231 case $lt_prog_compiler_pic_F77 in
15232 "" | " "*) ;;
15233 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15234 esac
15235 else
15236 lt_prog_compiler_pic_F77=
15237 lt_prog_compiler_can_build_shared_F77=no
15238 fi
15239
15240 fi
15241 case $host_os in
15242 # For platforms which do not support PIC, -DPIC is meaningless:
15243 *djgpp*)
15244 lt_prog_compiler_pic_F77=
15245 ;;
15246 *)
15247 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15248 ;;
15249 esac
15250
15251 #
15252 # Check to make sure the static flag actually works.
15253 #
15254 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15255 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15256 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15257 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260 lt_prog_compiler_static_works_F77=no
15261 save_LDFLAGS="$LDFLAGS"
15262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15263 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15265 # The linker can only warn and ignore the option if not recognized
15266 # So say no if there are warnings
15267 if test -s conftest.err; then
15268 # Append any errors to the config.log.
15269 cat conftest.err 1>&5
15270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15272 if diff conftest.exp conftest.er2 >/dev/null; then
15273 lt_prog_compiler_static_works_F77=yes
15274 fi
15275 else
15276 lt_prog_compiler_static_works_F77=yes
15277 fi
15278 fi
15279 $rm conftest*
15280 LDFLAGS="$save_LDFLAGS"
15281
15282 fi
15283 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15284 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15285
15286 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15287 :
15288 else
15289 lt_prog_compiler_static_F77=
15290 fi
15291
15292
15293 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15294 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15295 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298 lt_cv_prog_compiler_c_o_F77=no
15299 $rm -r conftest 2>/dev/null
15300 mkdir conftest
15301 cd conftest
15302 mkdir out
15303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15304
15305 lt_compiler_flag="-o out/conftest2.$ac_objext"
15306 # Insert the option either (1) after the last *FLAGS variable, or
15307 # (2) before a word containing "conftest.", or (3) at the end.
15308 # Note that $ac_compile itself does not contain backslashes and begins
15309 # with a dollar sign (not a hyphen), so the echo should work correctly.
15310 lt_compile=`echo "$ac_compile" | $SED \
15311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15313 -e 's:$: $lt_compiler_flag:'`
15314 (eval echo "\"\$as_me:15314: $lt_compile\"" >&5)
15315 (eval "$lt_compile" 2>out/conftest.err)
15316 ac_status=$?
15317 cat out/conftest.err >&5
15318 echo "$as_me:15318: \$? = $ac_status" >&5
15319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15320 then
15321 # The compiler can only warn and ignore the option if not recognized
15322 # So say no if there are warnings
15323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15326 lt_cv_prog_compiler_c_o_F77=yes
15327 fi
15328 fi
15329 chmod u+w . 2>&5
15330 $rm conftest*
15331 # SGI C++ compiler will create directory out/ii_files/ for
15332 # template instantiation
15333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15334 $rm out/* && rmdir out
15335 cd ..
15336 rmdir conftest
15337 $rm conftest*
15338
15339 fi
15340 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15342
15343
15344 hard_links="nottested"
15345 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15346 # do not overwrite the value of need_locks provided by the user
15347 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15349 hard_links=yes
15350 $rm conftest*
15351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15352 touch conftest.a
15353 ln conftest.a conftest.b 2>&5 || hard_links=no
15354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15355 echo "$as_me:$LINENO: result: $hard_links" >&5
15356 echo "${ECHO_T}$hard_links" >&6
15357 if test "$hard_links" = no; then
15358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15360 need_locks=warn
15361 fi
15362 else
15363 need_locks=no
15364 fi
15365
15366 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15368
15369 runpath_var=
15370 allow_undefined_flag_F77=
15371 enable_shared_with_static_runtimes_F77=no
15372 archive_cmds_F77=
15373 archive_expsym_cmds_F77=
15374 old_archive_From_new_cmds_F77=
15375 old_archive_from_expsyms_cmds_F77=
15376 export_dynamic_flag_spec_F77=
15377 whole_archive_flag_spec_F77=
15378 thread_safe_flag_spec_F77=
15379 hardcode_libdir_flag_spec_F77=
15380 hardcode_libdir_flag_spec_ld_F77=
15381 hardcode_libdir_separator_F77=
15382 hardcode_direct_F77=no
15383 hardcode_minus_L_F77=no
15384 hardcode_shlibpath_var_F77=unsupported
15385 link_all_deplibs_F77=unknown
15386 hardcode_automatic_F77=no
15387 module_cmds_F77=
15388 module_expsym_cmds_F77=
15389 always_export_symbols_F77=no
15390 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15391 # include_expsyms should be a list of space-separated symbols to be *always*
15392 # included in the symbol list
15393 include_expsyms_F77=
15394 # exclude_expsyms can be an extended regexp of symbols to exclude
15395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15397 # as well as any symbol that contains `d'.
15398 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15400 # platforms (ab)use it in PIC code, but their linkers get confused if
15401 # the symbol is explicitly referenced. Since portable code cannot
15402 # rely on this symbol name, it's probably fine to never include it in
15403 # preloaded symbol tables.
15404 extract_expsyms_cmds=
15405 # Just being paranoid about ensuring that cc_basename is set.
15406 for cc_temp in $compiler""; do
15407 case $cc_temp in
15408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15410 \-*) ;;
15411 *) break;;
15412 esac
15413 done
15414 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15415
15416 case $host_os in
15417 cygwin* | mingw* | pw32*)
15418 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15419 # When not using gcc, we currently assume that we are using
15420 # Microsoft Visual C++.
15421 if test "$GCC" != yes; then
15422 with_gnu_ld=no
15423 fi
15424 ;;
15425 interix*)
15426 # we just hope/assume this is gcc and not c89 (= MSVC++)
15427 with_gnu_ld=yes
15428 ;;
15429 openbsd*)
15430 with_gnu_ld=no
15431 ;;
15432 esac
15433
15434 ld_shlibs_F77=yes
15435 if test "$with_gnu_ld" = yes; then
15436 # If archive_cmds runs LD, not CC, wlarc should be empty
15437 wlarc='${wl}'
15438
15439 # Set some defaults for GNU ld with shared library support. These
15440 # are reset later if shared libraries are not supported. Putting them
15441 # here allows them to be overridden if necessary.
15442 runpath_var=LD_RUN_PATH
15443 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15444 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15445 # ancient GNU ld didn't support --whole-archive et. al.
15446 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15447 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15448 else
15449 whole_archive_flag_spec_F77=
15450 fi
15451 supports_anon_versioning=no
15452 case `$LD -v 2>/dev/null` in
15453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15456 *\ 2.11.*) ;; # other 2.11 versions
15457 *) supports_anon_versioning=yes ;;
15458 esac
15459
15460 # See if GNU ld supports shared libraries.
15461 case $host_os in
15462 aix3* | aix4* | aix5*)
15463 # On AIX/PPC, the GNU linker is very broken
15464 if test "$host_cpu" != ia64; then
15465 ld_shlibs_F77=no
15466 cat <<EOF 1>&2
15467
15468 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15469 *** to be unable to reliably create shared libraries on AIX.
15470 *** Therefore, libtool is disabling shared libraries support. If you
15471 *** really care for shared libraries, you may want to modify your PATH
15472 *** so that a non-GNU linker is found, and then restart.
15473
15474 EOF
15475 fi
15476 ;;
15477
15478 amigaos*)
15479 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)'
15480 hardcode_libdir_flag_spec_F77='-L$libdir'
15481 hardcode_minus_L_F77=yes
15482
15483 # Samuel A. Falvo II <[email protected]> reports
15484 # that the semantics of dynamic libraries on AmigaOS, at least up
15485 # to version 4, is to share data among multiple programs linked
15486 # with the same dynamic library. Since this doesn't match the
15487 # behavior of shared libraries on other platforms, we can't use
15488 # them.
15489 ld_shlibs_F77=no
15490 ;;
15491
15492 beos*)
15493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15494 allow_undefined_flag_F77=unsupported
15495 # Joseph Beckenbach <[email protected]> says some releases of gcc
15496 # support --undefined. This deserves some investigation. FIXME
15497 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15498 else
15499 ld_shlibs_F77=no
15500 fi
15501 ;;
15502
15503 cygwin* | mingw* | pw32*)
15504 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15505 # as there is no search path for DLLs.
15506 hardcode_libdir_flag_spec_F77='-L$libdir'
15507 allow_undefined_flag_F77=unsupported
15508 always_export_symbols_F77=no
15509 enable_shared_with_static_runtimes_F77=yes
15510 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15511
15512 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15513 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15514 # If the export-symbols file already is a .def file (1st line
15515 # is EXPORTS), use it as is; otherwise, prepend...
15516 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15517 cp $export_symbols $output_objdir/$soname.def;
15518 else
15519 echo EXPORTS > $output_objdir/$soname.def;
15520 cat $export_symbols >> $output_objdir/$soname.def;
15521 fi~
15522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15523 else
15524 ld_shlibs_F77=no
15525 fi
15526 ;;
15527
15528 interix3*)
15529 hardcode_direct_F77=no
15530 hardcode_shlibpath_var_F77=no
15531 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15532 export_dynamic_flag_spec_F77='${wl}-E'
15533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15534 # Instead, shared libraries are loaded at an image base (0x10000000 by
15535 # default) and relocated if they conflict, which is a slow very memory
15536 # consuming and fragmenting process. To avoid this, we pick a random,
15537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15539 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'
15540 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'
15541 ;;
15542
15543 linux*)
15544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15545 tmp_addflag=
15546 case $cc_basename,$host_cpu in
15547 pgcc*) # Portland Group C compiler
15548 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'
15549 tmp_addflag=' $pic_flag'
15550 ;;
15551 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15552 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'
15553 tmp_addflag=' $pic_flag -Mnomain' ;;
15554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15555 tmp_addflag=' -i_dynamic' ;;
15556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15557 tmp_addflag=' -i_dynamic -nofor_main' ;;
15558 ifc* | ifort*) # Intel Fortran compiler
15559 tmp_addflag=' -nofor_main' ;;
15560 esac
15561 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15562
15563 if test $supports_anon_versioning = yes; then
15564 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15566 $echo "local: *; };" >> $output_objdir/$libname.ver~
15567 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15568 fi
15569 else
15570 ld_shlibs_F77=no
15571 fi
15572 ;;
15573
15574 netbsd*)
15575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15576 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15577 wlarc=
15578 else
15579 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15580 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15581 fi
15582 ;;
15583
15584 solaris*)
15585 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15586 ld_shlibs_F77=no
15587 cat <<EOF 1>&2
15588
15589 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15590 *** create shared libraries on Solaris systems. Therefore, libtool
15591 *** is disabling shared libraries support. We urge you to upgrade GNU
15592 *** binutils to release 2.9.1 or newer. Another option is to modify
15593 *** your PATH or compiler configuration so that the native linker is
15594 *** used, and then restart.
15595
15596 EOF
15597 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15598 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15599 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15600 else
15601 ld_shlibs_F77=no
15602 fi
15603 ;;
15604
15605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15606 case `$LD -v 2>&1` in
15607 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15608 ld_shlibs_F77=no
15609 cat <<_LT_EOF 1>&2
15610
15611 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15612 *** reliably create shared libraries on SCO systems. Therefore, libtool
15613 *** is disabling shared libraries support. We urge you to upgrade GNU
15614 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15615 *** your PATH or compiler configuration so that the native linker is
15616 *** used, and then restart.
15617
15618 _LT_EOF
15619 ;;
15620 *)
15621 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15622 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15623 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15624 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15625 else
15626 ld_shlibs_F77=no
15627 fi
15628 ;;
15629 esac
15630 ;;
15631
15632 sunos4*)
15633 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15634 wlarc=
15635 hardcode_direct_F77=yes
15636 hardcode_shlibpath_var_F77=no
15637 ;;
15638
15639 *)
15640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15641 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15642 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15643 else
15644 ld_shlibs_F77=no
15645 fi
15646 ;;
15647 esac
15648
15649 if test "$ld_shlibs_F77" = no; then
15650 runpath_var=
15651 hardcode_libdir_flag_spec_F77=
15652 export_dynamic_flag_spec_F77=
15653 whole_archive_flag_spec_F77=
15654 fi
15655 else
15656 # PORTME fill in a description of your system's linker (not GNU ld)
15657 case $host_os in
15658 aix3*)
15659 allow_undefined_flag_F77=unsupported
15660 always_export_symbols_F77=yes
15661 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'
15662 # Note: this linker hardcodes the directories in LIBPATH if there
15663 # are no directories specified by -L.
15664 hardcode_minus_L_F77=yes
15665 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15666 # Neither direct hardcoding nor static linking is supported with a
15667 # broken collect2.
15668 hardcode_direct_F77=unsupported
15669 fi
15670 ;;
15671
15672 aix4* | aix5*)
15673 if test "$host_cpu" = ia64; then
15674 # On IA64, the linker does run time linking by default, so we don't
15675 # have to do anything special.
15676 aix_use_runtimelinking=no
15677 exp_sym_flag='-Bexport'
15678 no_entry_flag=""
15679 else
15680 # If we're using GNU nm, then we don't want the "-C" option.
15681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15682 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15683 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'
15684 else
15685 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'
15686 fi
15687 aix_use_runtimelinking=no
15688
15689 # Test if we are trying to use run time linking or normal
15690 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15691 # need to do runtime linking.
15692 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15693 for ld_flag in $LDFLAGS; do
15694 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15695 aix_use_runtimelinking=yes
15696 break
15697 fi
15698 done
15699 ;;
15700 esac
15701
15702 exp_sym_flag='-bexport'
15703 no_entry_flag='-bnoentry'
15704 fi
15705
15706 # When large executables or shared objects are built, AIX ld can
15707 # have problems creating the table of contents. If linking a library
15708 # or program results in "error TOC overflow" add -mminimal-toc to
15709 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15710 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15711
15712 archive_cmds_F77=''
15713 hardcode_direct_F77=yes
15714 hardcode_libdir_separator_F77=':'
15715 link_all_deplibs_F77=yes
15716
15717 if test "$GCC" = yes; then
15718 case $host_os in aix4.[012]|aix4.[012].*)
15719 # We only want to do this on AIX 4.2 and lower, the check
15720 # below for broken collect2 doesn't work under 4.3+
15721 collect2name=`${CC} -print-prog-name=collect2`
15722 if test -f "$collect2name" && \
15723 strings "$collect2name" | grep resolve_lib_name >/dev/null
15724 then
15725 # We have reworked collect2
15726 hardcode_direct_F77=yes
15727 else
15728 # We have old collect2
15729 hardcode_direct_F77=unsupported
15730 # It fails to find uninstalled libraries when the uninstalled
15731 # path is not listed in the libpath. Setting hardcode_minus_L
15732 # to unsupported forces relinking
15733 hardcode_minus_L_F77=yes
15734 hardcode_libdir_flag_spec_F77='-L$libdir'
15735 hardcode_libdir_separator_F77=
15736 fi
15737 ;;
15738 esac
15739 shared_flag='-shared'
15740 if test "$aix_use_runtimelinking" = yes; then
15741 shared_flag="$shared_flag "'${wl}-G'
15742 fi
15743 else
15744 # not using gcc
15745 if test "$host_cpu" = ia64; then
15746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15747 # chokes on -Wl,-G. The following line is correct:
15748 shared_flag='-G'
15749 else
15750 if test "$aix_use_runtimelinking" = yes; then
15751 shared_flag='${wl}-G'
15752 else
15753 shared_flag='${wl}-bM:SRE'
15754 fi
15755 fi
15756 fi
15757
15758 # It seems that -bexpall does not export symbols beginning with
15759 # underscore (_), so it is better to generate a list of symbols to export.
15760 always_export_symbols_F77=yes
15761 if test "$aix_use_runtimelinking" = yes; then
15762 # Warning - without using the other runtime loading flags (-brtl),
15763 # -berok will link without error, but may produce a broken library.
15764 allow_undefined_flag_F77='-berok'
15765 # Determine the default libpath from the value encoded in an empty executable.
15766 cat >conftest.$ac_ext <<_ACEOF
15767 program main
15768
15769 end
15770 _ACEOF
15771 rm -f conftest.$ac_objext conftest$ac_exeext
15772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15773 (eval $ac_link) 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -z "$ac_f77_werror_flag"
15781 || test ! -s conftest.err'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest$ac_exeext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793
15794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15795 }'`
15796 # Check for a 64-bit object if we didn't find anything.
15797 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; }
15798 }'`; fi
15799 else
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803 fi
15804 rm -f conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
15806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15807
15808 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15809 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"
15810 else
15811 if test "$host_cpu" = ia64; then
15812 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15813 allow_undefined_flag_F77="-z nodefs"
15814 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"
15815 else
15816 # Determine the default libpath from the value encoded in an empty executable.
15817 cat >conftest.$ac_ext <<_ACEOF
15818 program main
15819
15820 end
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824 (eval $ac_link) 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_f77_werror_flag"
15832 || test ! -s conftest.err'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; } &&
15838 { ac_try='test -s conftest$ac_exeext'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844
15845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15846 }'`
15847 # Check for a 64-bit object if we didn't find anything.
15848 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; }
15849 }'`; fi
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 fi
15855 rm -f conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15858
15859 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15860 # Warning - without using the other run time loading flags,
15861 # -berok will link without error, but may produce a broken library.
15862 no_undefined_flag_F77=' ${wl}-bernotok'
15863 allow_undefined_flag_F77=' ${wl}-berok'
15864 # Exported symbols can be pulled into shared objects from archives
15865 whole_archive_flag_spec_F77='$convenience'
15866 archive_cmds_need_lc_F77=yes
15867 # This is similar to how AIX traditionally builds its shared libraries.
15868 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'
15869 fi
15870 fi
15871 ;;
15872
15873 amigaos*)
15874 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)'
15875 hardcode_libdir_flag_spec_F77='-L$libdir'
15876 hardcode_minus_L_F77=yes
15877 # see comment about different semantics on the GNU ld section
15878 ld_shlibs_F77=no
15879 ;;
15880
15881 bsdi[45]*)
15882 export_dynamic_flag_spec_F77=-rdynamic
15883 ;;
15884
15885 cygwin* | mingw* | pw32*)
15886 # When not using gcc, we currently assume that we are using
15887 # Microsoft Visual C++.
15888 # hardcode_libdir_flag_spec is actually meaningless, as there is
15889 # no search path for DLLs.
15890 hardcode_libdir_flag_spec_F77=' '
15891 allow_undefined_flag_F77=unsupported
15892 # Tell ltmain to make .lib files, not .a files.
15893 libext=lib
15894 # Tell ltmain to make .dll files, not .so files.
15895 shrext_cmds=".dll"
15896 # FIXME: Setting linknames here is a bad hack.
15897 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15898 # The linker will automatically build a .lib file if we build a DLL.
15899 old_archive_From_new_cmds_F77='true'
15900 # FIXME: Should let the user specify the lib program.
15901 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15902 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15903 enable_shared_with_static_runtimes_F77=yes
15904 ;;
15905
15906 darwin* | rhapsody*)
15907 case $host_os in
15908 rhapsody* | darwin1.[012])
15909 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15910 ;;
15911 *) # Darwin 1.3 on
15912 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15913 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15914 else
15915 case ${MACOSX_DEPLOYMENT_TARGET} in
15916 10.[012])
15917 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15918 ;;
15919 10.*)
15920 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15921 ;;
15922 esac
15923 fi
15924 ;;
15925 esac
15926 archive_cmds_need_lc_F77=no
15927 hardcode_direct_F77=no
15928 hardcode_automatic_F77=yes
15929 hardcode_shlibpath_var_F77=unsupported
15930 whole_archive_flag_spec_F77=''
15931 link_all_deplibs_F77=yes
15932 if test "$GCC" = yes ; then
15933 output_verbose_link_cmd='echo'
15934 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15935 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15936 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15937 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}'
15938 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}'
15939 else
15940 case $cc_basename in
15941 xlc*)
15942 output_verbose_link_cmd='echo'
15943 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15944 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15945 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15946 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}'
15947 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}'
15948 ;;
15949 *)
15950 ld_shlibs_F77=no
15951 ;;
15952 esac
15953 fi
15954 ;;
15955
15956 dgux*)
15957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_libdir_flag_spec_F77='-L$libdir'
15959 hardcode_shlibpath_var_F77=no
15960 ;;
15961
15962 freebsd1*)
15963 ld_shlibs_F77=no
15964 ;;
15965
15966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15967 # support. Future versions do this automatically, but an explicit c++rt0.o
15968 # does not break anything, and helps significantly (at the cost of a little
15969 # extra space).
15970 freebsd2.2*)
15971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15972 hardcode_libdir_flag_spec_F77='-R$libdir'
15973 hardcode_direct_F77=yes
15974 hardcode_shlibpath_var_F77=no
15975 ;;
15976
15977 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15978 freebsd2*)
15979 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct_F77=yes
15981 hardcode_minus_L_F77=yes
15982 hardcode_shlibpath_var_F77=no
15983 ;;
15984
15985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15986 freebsd* | kfreebsd*-gnu | dragonfly*)
15987 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15988 hardcode_libdir_flag_spec_F77='-R$libdir'
15989 hardcode_direct_F77=yes
15990 hardcode_shlibpath_var_F77=no
15991 ;;
15992
15993 hpux9*)
15994 if test "$GCC" = yes; then
15995 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'
15996 else
15997 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'
15998 fi
15999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16000 hardcode_libdir_separator_F77=:
16001 hardcode_direct_F77=yes
16002
16003 # hardcode_minus_L: Not really in the search PATH,
16004 # but as the default location of the library.
16005 hardcode_minus_L_F77=yes
16006 export_dynamic_flag_spec_F77='${wl}-E'
16007 ;;
16008
16009 hpux10*)
16010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16012 else
16013 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16014 fi
16015 if test "$with_gnu_ld" = no; then
16016 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16017 hardcode_libdir_separator_F77=:
16018
16019 hardcode_direct_F77=yes
16020 export_dynamic_flag_spec_F77='${wl}-E'
16021
16022 # hardcode_minus_L: Not really in the search PATH,
16023 # but as the default location of the library.
16024 hardcode_minus_L_F77=yes
16025 fi
16026 ;;
16027
16028 hpux11*)
16029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16030 case $host_cpu in
16031 hppa*64*)
16032 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16033 ;;
16034 ia64*)
16035 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16036 ;;
16037 *)
16038 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16039 ;;
16040 esac
16041 else
16042 case $host_cpu in
16043 hppa*64*)
16044 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16045 ;;
16046 ia64*)
16047 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16048 ;;
16049 *)
16050 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16051 ;;
16052 esac
16053 fi
16054 if test "$with_gnu_ld" = no; then
16055 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16056 hardcode_libdir_separator_F77=:
16057
16058 case $host_cpu in
16059 hppa*64*|ia64*)
16060 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16061 hardcode_direct_F77=no
16062 hardcode_shlibpath_var_F77=no
16063 ;;
16064 *)
16065 hardcode_direct_F77=yes
16066 export_dynamic_flag_spec_F77='${wl}-E'
16067
16068 # hardcode_minus_L: Not really in the search PATH,
16069 # but as the default location of the library.
16070 hardcode_minus_L_F77=yes
16071 ;;
16072 esac
16073 fi
16074 ;;
16075
16076 irix5* | irix6* | nonstopux*)
16077 if test "$GCC" = yes; then
16078 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'
16079 else
16080 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'
16081 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16082 fi
16083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16084 hardcode_libdir_separator_F77=:
16085 link_all_deplibs_F77=yes
16086 ;;
16087
16088 netbsd*)
16089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16091 else
16092 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16093 fi
16094 hardcode_libdir_flag_spec_F77='-R$libdir'
16095 hardcode_direct_F77=yes
16096 hardcode_shlibpath_var_F77=no
16097 ;;
16098
16099 newsos6)
16100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct_F77=yes
16102 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16103 hardcode_libdir_separator_F77=:
16104 hardcode_shlibpath_var_F77=no
16105 ;;
16106
16107 openbsd*)
16108 hardcode_direct_F77=yes
16109 hardcode_shlibpath_var_F77=no
16110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16112 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16113 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16114 export_dynamic_flag_spec_F77='${wl}-E'
16115 else
16116 case $host_os in
16117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16118 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_libdir_flag_spec_F77='-R$libdir'
16120 ;;
16121 *)
16122 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16123 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16124 ;;
16125 esac
16126 fi
16127 ;;
16128
16129 os2*)
16130 hardcode_libdir_flag_spec_F77='-L$libdir'
16131 hardcode_minus_L_F77=yes
16132 allow_undefined_flag_F77=unsupported
16133 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'
16134 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16135 ;;
16136
16137 osf3*)
16138 if test "$GCC" = yes; then
16139 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16140 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'
16141 else
16142 allow_undefined_flag_F77=' -expect_unresolved \*'
16143 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'
16144 fi
16145 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16146 hardcode_libdir_separator_F77=:
16147 ;;
16148
16149 osf4* | osf5*) # as osf3* with the addition of -msym flag
16150 if test "$GCC" = yes; then
16151 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16152 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'
16153 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16154 else
16155 allow_undefined_flag_F77=' -expect_unresolved \*'
16156 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'
16157 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~
16158 $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'
16159
16160 # Both c and cxx compiler support -rpath directly
16161 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16162 fi
16163 hardcode_libdir_separator_F77=:
16164 ;;
16165
16166 solaris*)
16167 no_undefined_flag_F77=' -z text'
16168 if test "$GCC" = yes; then
16169 wlarc='${wl}'
16170 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16172 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16173 else
16174 wlarc=''
16175 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16178 fi
16179 hardcode_libdir_flag_spec_F77='-R$libdir'
16180 hardcode_shlibpath_var_F77=no
16181 case $host_os in
16182 solaris2.[0-5] | solaris2.[0-5].*) ;;
16183 *)
16184 # The compiler driver will combine linker options so we
16185 # cannot just pass the convience library names through
16186 # without $wl, iff we do not link with $LD.
16187 # Luckily, gcc supports the same syntax we need for Sun Studio.
16188 # Supported since Solaris 2.6 (maybe 2.5.1?)
16189 case $wlarc in
16190 '')
16191 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16192 *)
16193 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' ;;
16194 esac ;;
16195 esac
16196 link_all_deplibs_F77=yes
16197 ;;
16198
16199 sunos4*)
16200 if test "x$host_vendor" = xsequent; then
16201 # Use $CC to link under sequent, because it throws in some extra .o
16202 # files that make .init and .fini sections work.
16203 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16204 else
16205 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16206 fi
16207 hardcode_libdir_flag_spec_F77='-L$libdir'
16208 hardcode_direct_F77=yes
16209 hardcode_minus_L_F77=yes
16210 hardcode_shlibpath_var_F77=no
16211 ;;
16212
16213 sysv4)
16214 case $host_vendor in
16215 sni)
16216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16217 hardcode_direct_F77=yes # is this really true???
16218 ;;
16219 siemens)
16220 ## LD is ld it makes a PLAMLIB
16221 ## CC just makes a GrossModule.
16222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16223 reload_cmds_F77='$CC -r -o $output$reload_objs'
16224 hardcode_direct_F77=no
16225 ;;
16226 motorola)
16227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16228 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16229 ;;
16230 esac
16231 runpath_var='LD_RUN_PATH'
16232 hardcode_shlibpath_var_F77=no
16233 ;;
16234
16235 sysv4.3*)
16236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_shlibpath_var_F77=no
16238 export_dynamic_flag_spec_F77='-Bexport'
16239 ;;
16240
16241 sysv4*MP*)
16242 if test -d /usr/nec; then
16243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16244 hardcode_shlibpath_var_F77=no
16245 runpath_var=LD_RUN_PATH
16246 hardcode_runpath_var=yes
16247 ld_shlibs_F77=yes
16248 fi
16249 ;;
16250
16251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16252 no_undefined_flag_F77='${wl}-z,text'
16253 archive_cmds_need_lc_F77=no
16254 hardcode_shlibpath_var_F77=no
16255 runpath_var='LD_RUN_PATH'
16256
16257 if test "$GCC" = yes; then
16258 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 else
16261 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16263 fi
16264 ;;
16265
16266 sysv5* | sco3.2v5* | sco5v6*)
16267 # Note: We can NOT use -z defs as we might desire, because we do not
16268 # link with -lc, and that would cause any symbols used from libc to
16269 # always be unresolved, which means just about no library would
16270 # ever link correctly. If we're not using GNU ld we use -z text
16271 # though, which does catch some bad symbols but isn't as heavy-handed
16272 # as -z defs.
16273 no_undefined_flag_F77='${wl}-z,text'
16274 allow_undefined_flag_F77='${wl}-z,nodefs'
16275 archive_cmds_need_lc_F77=no
16276 hardcode_shlibpath_var_F77=no
16277 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16278 hardcode_libdir_separator_F77=':'
16279 link_all_deplibs_F77=yes
16280 export_dynamic_flag_spec_F77='${wl}-Bexport'
16281 runpath_var='LD_RUN_PATH'
16282
16283 if test "$GCC" = yes; then
16284 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16286 else
16287 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16289 fi
16290 ;;
16291
16292 uts4*)
16293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16294 hardcode_libdir_flag_spec_F77='-L$libdir'
16295 hardcode_shlibpath_var_F77=no
16296 ;;
16297
16298 *)
16299 ld_shlibs_F77=no
16300 ;;
16301 esac
16302 fi
16303
16304 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16305 echo "${ECHO_T}$ld_shlibs_F77" >&6
16306 test "$ld_shlibs_F77" = no && can_build_shared=no
16307
16308 #
16309 # Do we need to explicitly link libc?
16310 #
16311 case "x$archive_cmds_need_lc_F77" in
16312 x|xyes)
16313 # Assume -lc should be added
16314 archive_cmds_need_lc_F77=yes
16315
16316 if test "$enable_shared" = yes && test "$GCC" = yes; then
16317 case $archive_cmds_F77 in
16318 *'~'*)
16319 # FIXME: we may have to deal with multi-command sequences.
16320 ;;
16321 '$CC '*)
16322 # Test whether the compiler implicitly links with -lc since on some
16323 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16324 # to ld, don't add -lc before -lgcc.
16325 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16326 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16327 $rm conftest*
16328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16329
16330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16331 (eval $ac_compile) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } 2>conftest.err; then
16335 soname=conftest
16336 lib=conftest
16337 libobjs=conftest.$ac_objext
16338 deplibs=
16339 wl=$lt_prog_compiler_wl_F77
16340 pic_flag=$lt_prog_compiler_pic_F77
16341 compiler_flags=-v
16342 linker_flags=-v
16343 verstring=
16344 output_objdir=.
16345 libname=conftest
16346 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16347 allow_undefined_flag_F77=
16348 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16349 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }
16353 then
16354 archive_cmds_need_lc_F77=no
16355 else
16356 archive_cmds_need_lc_F77=yes
16357 fi
16358 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16359 else
16360 cat conftest.err 1>&5
16361 fi
16362 $rm conftest*
16363 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16364 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16365 ;;
16366 esac
16367 fi
16368 ;;
16369 esac
16370
16371 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16372 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16373 library_names_spec=
16374 libname_spec='lib$name'
16375 soname_spec=
16376 shrext_cmds=".so"
16377 postinstall_cmds=
16378 postuninstall_cmds=
16379 finish_cmds=
16380 finish_eval=
16381 shlibpath_var=
16382 shlibpath_overrides_runpath=unknown
16383 version_type=none
16384 dynamic_linker="$host_os ld.so"
16385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16386 if test "$GCC" = yes; then
16387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16388 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16389 # if the path contains ";" then we assume it to be the separator
16390 # otherwise default to the standard path separator (i.e. ":") - it is
16391 # assumed that no part of a normal pathname contains ";" but that should
16392 # okay in the real world where ";" in dirpaths is itself problematic.
16393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16394 else
16395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16396 fi
16397 else
16398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16399 fi
16400 need_lib_prefix=unknown
16401 hardcode_into_libs=no
16402
16403 # when you set need_version to no, make sure it does not cause -set_version
16404 # flags to be left without arguments
16405 need_version=unknown
16406
16407 case $host_os in
16408 aix3*)
16409 version_type=linux
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16411 shlibpath_var=LIBPATH
16412
16413 # AIX 3 has no versioning support, so we append a major version to the name.
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 ;;
16416
16417 aix4* | aix5*)
16418 version_type=linux
16419 need_lib_prefix=no
16420 need_version=no
16421 hardcode_into_libs=yes
16422 if test "$host_cpu" = ia64; then
16423 # AIX 5 supports IA64
16424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 else
16427 # With GCC up to 2.95.x, collect2 would create an import file
16428 # for dependence libraries. The import file would start with
16429 # the line `#! .'. This would cause the generated library to
16430 # depend on `.', always an invalid library. This was fixed in
16431 # development snapshots of GCC prior to 3.0.
16432 case $host_os in
16433 aix4 | aix4.[01] | aix4.[01].*)
16434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16435 echo ' yes '
16436 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16437 :
16438 else
16439 can_build_shared=no
16440 fi
16441 ;;
16442 esac
16443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16444 # soname into executable. Probably we can add versioning support to
16445 # collect2, so additional links can be useful in future.
16446 if test "$aix_use_runtimelinking" = yes; then
16447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16448 # instead of lib<name>.a to let people know that these are not
16449 # typical AIX shared libraries.
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451 else
16452 # We preserve .a as extension for shared libraries through AIX4.2
16453 # and later when we are not doing run time linking.
16454 library_names_spec='${libname}${release}.a $libname.a'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 fi
16457 shlibpath_var=LIBPATH
16458 fi
16459 ;;
16460
16461 amigaos*)
16462 library_names_spec='$libname.ixlibrary $libname.a'
16463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16464 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'
16465 ;;
16466
16467 beos*)
16468 library_names_spec='${libname}${shared_ext}'
16469 dynamic_linker="$host_os ld.so"
16470 shlibpath_var=LIBRARY_PATH
16471 ;;
16472
16473 bsdi[45]*)
16474 version_type=linux
16475 need_version=no
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16482 # the default ld.so.conf also contains /usr/contrib/lib and
16483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16484 # libtool to hard-code these into programs
16485 ;;
16486
16487 cygwin* | mingw* | pw32*)
16488 version_type=windows
16489 shrext_cmds=".dll"
16490 need_version=no
16491 need_lib_prefix=no
16492
16493 case $GCC,$host_os in
16494 yes,cygwin* | yes,mingw* | yes,pw32*)
16495 library_names_spec='$libname.dll.a'
16496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16497 postinstall_cmds='base_file=`basename \${file}`~
16498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16499 dldir=$destdir/`dirname \$dlpath`~
16500 test -d \$dldir || mkdir -p \$dldir~
16501 $install_prog $dir/$dlname \$dldir/$dlname~
16502 chmod a+x \$dldir/$dlname'
16503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16504 dlpath=$dir/\$dldll~
16505 $rm \$dlpath'
16506 shlibpath_overrides_runpath=yes
16507
16508 case $host_os in
16509 cygwin*)
16510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16511 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16512 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16513 ;;
16514 mingw*)
16515 # MinGW DLLs use traditional 'lib' prefix
16516 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16518 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16519 # It is most probably a Windows format PATH printed by
16520 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16521 # path with ; separators, and with drive letters. We can handle the
16522 # drive letters (cygwin fileutils understands them), so leave them,
16523 # especially as we might pass files found there to a mingw objdump,
16524 # which wouldn't understand a cygwinified path. Ahh.
16525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16526 else
16527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16528 fi
16529 ;;
16530 pw32*)
16531 # pw32 DLLs use 'pw' prefix rather than 'lib'
16532 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16533 ;;
16534 esac
16535 ;;
16536
16537 *)
16538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16539 ;;
16540 esac
16541 dynamic_linker='Win32 ld.exe'
16542 # FIXME: first we should search . and the directory the executable is in
16543 shlibpath_var=PATH
16544 ;;
16545
16546 darwin* | rhapsody*)
16547 dynamic_linker="$host_os dyld"
16548 version_type=darwin
16549 need_lib_prefix=no
16550 need_version=no
16551 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16552 soname_spec='${libname}${release}${major}$shared_ext'
16553 shlibpath_overrides_runpath=yes
16554 shlibpath_var=DYLD_LIBRARY_PATH
16555 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16556 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16557 if test "$GCC" = yes; then
16558 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"`
16559 else
16560 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16561 fi
16562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16563 ;;
16564
16565 dgux*)
16566 version_type=linux
16567 need_lib_prefix=no
16568 need_version=no
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 shlibpath_var=LD_LIBRARY_PATH
16572 ;;
16573
16574 freebsd1*)
16575 dynamic_linker=no
16576 ;;
16577
16578 kfreebsd*-gnu)
16579 version_type=linux
16580 need_lib_prefix=no
16581 need_version=no
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath=no
16586 hardcode_into_libs=yes
16587 dynamic_linker='GNU ld.so'
16588 ;;
16589
16590 freebsd* | dragonfly*)
16591 # DragonFly does not have aout. When/if they implement a new
16592 # versioning mechanism, adjust this.
16593 if test -x /usr/bin/objformat; then
16594 objformat=`/usr/bin/objformat`
16595 else
16596 case $host_os in
16597 freebsd[123]*) objformat=aout ;;
16598 *) objformat=elf ;;
16599 esac
16600 fi
16601 version_type=freebsd-$objformat
16602 case $version_type in
16603 freebsd-elf*)
16604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16605 need_version=no
16606 need_lib_prefix=no
16607 ;;
16608 freebsd-*)
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16610 need_version=yes
16611 ;;
16612 esac
16613 shlibpath_var=LD_LIBRARY_PATH
16614 case $host_os in
16615 freebsd2*)
16616 shlibpath_overrides_runpath=yes
16617 ;;
16618 freebsd3.[01]* | freebsdelf3.[01]*)
16619 shlibpath_overrides_runpath=yes
16620 hardcode_into_libs=yes
16621 ;;
16622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16624 shlibpath_overrides_runpath=no
16625 hardcode_into_libs=yes
16626 ;;
16627 freebsd*) # from 4.6 on
16628 shlibpath_overrides_runpath=yes
16629 hardcode_into_libs=yes
16630 ;;
16631 esac
16632 ;;
16633
16634 gnu*)
16635 version_type=linux
16636 need_lib_prefix=no
16637 need_version=no
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16639 soname_spec='${libname}${release}${shared_ext}$major'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 hardcode_into_libs=yes
16642 ;;
16643
16644 hpux9* | hpux10* | hpux11*)
16645 # Give a soname corresponding to the major version so that dld.sl refuses to
16646 # link against other versions.
16647 version_type=sunos
16648 need_lib_prefix=no
16649 need_version=no
16650 case $host_cpu in
16651 ia64*)
16652 shrext_cmds='.so'
16653 hardcode_into_libs=yes
16654 dynamic_linker="$host_os dld.so"
16655 shlibpath_var=LD_LIBRARY_PATH
16656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 if test "X$HPUX_IA64_MODE" = X32; then
16660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16661 else
16662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16663 fi
16664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16665 ;;
16666 hppa*64*)
16667 shrext_cmds='.sl'
16668 hardcode_into_libs=yes
16669 dynamic_linker="$host_os dld.sl"
16670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16676 ;;
16677 *)
16678 shrext_cmds='.sl'
16679 dynamic_linker="$host_os dld.sl"
16680 shlibpath_var=SHLIB_PATH
16681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683 soname_spec='${libname}${release}${shared_ext}$major'
16684 ;;
16685 esac
16686 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16687 postinstall_cmds='chmod 555 $lib'
16688 ;;
16689
16690 interix3*)
16691 version_type=linux
16692 need_lib_prefix=no
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=no
16699 hardcode_into_libs=yes
16700 ;;
16701
16702 irix5* | irix6* | nonstopux*)
16703 case $host_os in
16704 nonstopux*) version_type=nonstopux ;;
16705 *)
16706 if test "$lt_cv_prog_gnu_ld" = yes; then
16707 version_type=linux
16708 else
16709 version_type=irix
16710 fi ;;
16711 esac
16712 need_lib_prefix=no
16713 need_version=no
16714 soname_spec='${libname}${release}${shared_ext}$major'
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16716 case $host_os in
16717 irix5* | nonstopux*)
16718 libsuff= shlibsuff=
16719 ;;
16720 *)
16721 case $LD in # libtool.m4 will add one of these switches to LD
16722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16723 libsuff= shlibsuff= libmagic=32-bit;;
16724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16725 libsuff=32 shlibsuff=N32 libmagic=N32;;
16726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16728 *) libsuff= shlibsuff= libmagic=never-match;;
16729 esac
16730 ;;
16731 esac
16732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16733 shlibpath_overrides_runpath=no
16734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16736 hardcode_into_libs=yes
16737 ;;
16738
16739 # No shared lib support for Linux oldld, aout, or coff.
16740 linux*oldld* | linux*aout* | linux*coff*)
16741 dynamic_linker=no
16742 ;;
16743
16744 # This must be Linux ELF.
16745 linux*)
16746 version_type=linux
16747 need_lib_prefix=no
16748 need_version=no
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=no
16754 # This implies no fast_install, which is unacceptable.
16755 # Some rework will be needed to allow for fast_install
16756 # before this can be enabled.
16757 hardcode_into_libs=yes
16758
16759 # Append ld.so.conf contents to the search path
16760 if test -f /etc/ld.so.conf; then
16761 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' ' '`
16762 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16763 fi
16764
16765 # We used to test for /lib/ld.so.1 and disable shared libraries on
16766 # powerpc, because MkLinux only supported shared libraries with the
16767 # GNU dynamic linker. Since this was broken with cross compilers,
16768 # most powerpc-linux boxes support dynamic linking these days and
16769 # people can always --disable-shared, the test was removed, and we
16770 # assume the GNU/Linux dynamic linker is in use.
16771 dynamic_linker='GNU/Linux ld.so'
16772 ;;
16773
16774 knetbsd*-gnu)
16775 version_type=linux
16776 need_lib_prefix=no
16777 need_version=no
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=no
16782 hardcode_into_libs=yes
16783 dynamic_linker='GNU ld.so'
16784 ;;
16785
16786 netbsd*)
16787 version_type=sunos
16788 need_lib_prefix=no
16789 need_version=no
16790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16793 dynamic_linker='NetBSD (a.out) ld.so'
16794 else
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 dynamic_linker='NetBSD ld.elf_so'
16798 fi
16799 shlibpath_var=LD_LIBRARY_PATH
16800 shlibpath_overrides_runpath=yes
16801 hardcode_into_libs=yes
16802 ;;
16803
16804 newsos6)
16805 version_type=linux
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=yes
16809 ;;
16810
16811 nto-qnx*)
16812 version_type=linux
16813 need_lib_prefix=no
16814 need_version=no
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 shlibpath_overrides_runpath=yes
16819 ;;
16820
16821 openbsd*)
16822 version_type=sunos
16823 sys_lib_dlsearch_path_spec="/usr/lib"
16824 need_lib_prefix=no
16825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16826 case $host_os in
16827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16828 *) need_version=no ;;
16829 esac
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16834 case $host_os in
16835 openbsd2.[89] | openbsd2.[89].*)
16836 shlibpath_overrides_runpath=no
16837 ;;
16838 *)
16839 shlibpath_overrides_runpath=yes
16840 ;;
16841 esac
16842 else
16843 shlibpath_overrides_runpath=yes
16844 fi
16845 ;;
16846
16847 os2*)
16848 libname_spec='$name'
16849 shrext_cmds=".dll"
16850 need_lib_prefix=no
16851 library_names_spec='$libname${shared_ext} $libname.a'
16852 dynamic_linker='OS/2 ld.exe'
16853 shlibpath_var=LIBPATH
16854 ;;
16855
16856 osf3* | osf4* | osf5*)
16857 version_type=osf
16858 need_lib_prefix=no
16859 need_version=no
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 shlibpath_var=LD_LIBRARY_PATH
16863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16865 ;;
16866
16867 solaris*)
16868 version_type=linux
16869 need_lib_prefix=no
16870 need_version=no
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 shlibpath_overrides_runpath=yes
16875 hardcode_into_libs=yes
16876 # ldd complains unless libraries are executable
16877 postinstall_cmds='chmod +x $lib'
16878 ;;
16879
16880 sunos4*)
16881 version_type=sunos
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 shlibpath_overrides_runpath=yes
16886 if test "$with_gnu_ld" = yes; then
16887 need_lib_prefix=no
16888 fi
16889 need_version=yes
16890 ;;
16891
16892 sysv4 | sysv4.3*)
16893 version_type=linux
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 case $host_vendor in
16898 sni)
16899 shlibpath_overrides_runpath=no
16900 need_lib_prefix=no
16901 export_dynamic_flag_spec='${wl}-Blargedynsym'
16902 runpath_var=LD_RUN_PATH
16903 ;;
16904 siemens)
16905 need_lib_prefix=no
16906 ;;
16907 motorola)
16908 need_lib_prefix=no
16909 need_version=no
16910 shlibpath_overrides_runpath=no
16911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16912 ;;
16913 esac
16914 ;;
16915
16916 sysv4*MP*)
16917 if test -d /usr/nec ;then
16918 version_type=linux
16919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16920 soname_spec='$libname${shared_ext}.$major'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 fi
16923 ;;
16924
16925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16926 version_type=freebsd-elf
16927 need_lib_prefix=no
16928 need_version=no
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 hardcode_into_libs=yes
16933 if test "$with_gnu_ld" = yes; then
16934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16935 shlibpath_overrides_runpath=no
16936 else
16937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16938 shlibpath_overrides_runpath=yes
16939 case $host_os in
16940 sco3.2v5*)
16941 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16942 ;;
16943 esac
16944 fi
16945 sys_lib_dlsearch_path_spec='/usr/lib'
16946 ;;
16947
16948 uts4*)
16949 version_type=linux
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 ;;
16954
16955 *)
16956 dynamic_linker=no
16957 ;;
16958 esac
16959 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16960 echo "${ECHO_T}$dynamic_linker" >&6
16961 test "$dynamic_linker" = no && can_build_shared=no
16962
16963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16964 if test "$GCC" = yes; then
16965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16966 fi
16967
16968 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16969 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16970 hardcode_action_F77=
16971 if test -n "$hardcode_libdir_flag_spec_F77" || \
16972 test -n "$runpath_var_F77" || \
16973 test "X$hardcode_automatic_F77" = "Xyes" ; then
16974
16975 # We can hardcode non-existant directories.
16976 if test "$hardcode_direct_F77" != no &&
16977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16978 # have to relink, otherwise we might link with an installed library
16979 # when we should be linking with a yet-to-be-installed one
16980 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16981 test "$hardcode_minus_L_F77" != no; then
16982 # Linking always hardcodes the temporary library directory.
16983 hardcode_action_F77=relink
16984 else
16985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16986 hardcode_action_F77=immediate
16987 fi
16988 else
16989 # We cannot hardcode anything, or else we can only hardcode existing
16990 # directories.
16991 hardcode_action_F77=unsupported
16992 fi
16993 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16994 echo "${ECHO_T}$hardcode_action_F77" >&6
16995
16996 if test "$hardcode_action_F77" = relink; then
16997 # Fast installation is not supported
16998 enable_fast_install=no
16999 elif test "$shlibpath_overrides_runpath" = yes ||
17000 test "$enable_shared" = no; then
17001 # Fast installation is not necessary
17002 enable_fast_install=needless
17003 fi
17004
17005
17006 # The else clause should only fire when bootstrapping the
17007 # libtool distribution, otherwise you forgot to ship ltmain.sh
17008 # with your package, and you will get complaints that there are
17009 # no rules to generate ltmain.sh.
17010 if test -f "$ltmain"; then
17011 # See if we are running on zsh, and set the options which allow our commands through
17012 # without removal of \ escapes.
17013 if test -n "${ZSH_VERSION+set}" ; then
17014 setopt NO_GLOB_SUBST
17015 fi
17016 # Now quote all the things that may contain metacharacters while being
17017 # careful not to overquote the AC_SUBSTed values. We take copies of the
17018 # variables and quote the copies for generation of the libtool script.
17019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17020 SED SHELL STRIP \
17021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17023 deplibs_check_method reload_flag reload_cmds need_locks \
17024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17025 lt_cv_sys_global_symbol_to_c_name_address \
17026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17027 old_postinstall_cmds old_postuninstall_cmds \
17028 compiler_F77 \
17029 CC_F77 \
17030 LD_F77 \
17031 lt_prog_compiler_wl_F77 \
17032 lt_prog_compiler_pic_F77 \
17033 lt_prog_compiler_static_F77 \
17034 lt_prog_compiler_no_builtin_flag_F77 \
17035 export_dynamic_flag_spec_F77 \
17036 thread_safe_flag_spec_F77 \
17037 whole_archive_flag_spec_F77 \
17038 enable_shared_with_static_runtimes_F77 \
17039 old_archive_cmds_F77 \
17040 old_archive_from_new_cmds_F77 \
17041 predep_objects_F77 \
17042 postdep_objects_F77 \
17043 predeps_F77 \
17044 postdeps_F77 \
17045 compiler_lib_search_path_F77 \
17046 archive_cmds_F77 \
17047 archive_expsym_cmds_F77 \
17048 postinstall_cmds_F77 \
17049 postuninstall_cmds_F77 \
17050 old_archive_from_expsyms_cmds_F77 \
17051 allow_undefined_flag_F77 \
17052 no_undefined_flag_F77 \
17053 export_symbols_cmds_F77 \
17054 hardcode_libdir_flag_spec_F77 \
17055 hardcode_libdir_flag_spec_ld_F77 \
17056 hardcode_libdir_separator_F77 \
17057 hardcode_automatic_F77 \
17058 module_cmds_F77 \
17059 module_expsym_cmds_F77 \
17060 lt_cv_prog_compiler_c_o_F77 \
17061 exclude_expsyms_F77 \
17062 include_expsyms_F77; do
17063
17064 case $var in
17065 old_archive_cmds_F77 | \
17066 old_archive_from_new_cmds_F77 | \
17067 archive_cmds_F77 | \
17068 archive_expsym_cmds_F77 | \
17069 module_cmds_F77 | \
17070 module_expsym_cmds_F77 | \
17071 old_archive_from_expsyms_cmds_F77 | \
17072 export_symbols_cmds_F77 | \
17073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17074 postinstall_cmds | postuninstall_cmds | \
17075 old_postinstall_cmds | old_postuninstall_cmds | \
17076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17077 # Double-quote double-evaled strings.
17078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17079 ;;
17080 *)
17081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17082 ;;
17083 esac
17084 done
17085
17086 case $lt_echo in
17087 *'\$0 --fallback-echo"')
17088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17089 ;;
17090 esac
17091
17092 cfgfile="$ofile"
17093
17094 cat <<__EOF__ >> "$cfgfile"
17095 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17096
17097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17098
17099 # Shell to use when invoking shell scripts.
17100 SHELL=$lt_SHELL
17101
17102 # Whether or not to build shared libraries.
17103 build_libtool_libs=$enable_shared
17104
17105 # Whether or not to build static libraries.
17106 build_old_libs=$enable_static
17107
17108 # Whether or not to add -lc for building shared libraries.
17109 build_libtool_need_lc=$archive_cmds_need_lc_F77
17110
17111 # Whether or not to disallow shared libs when runtime libs are static
17112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17113
17114 # Whether or not to optimize for fast installation.
17115 fast_install=$enable_fast_install
17116
17117 # The host system.
17118 host_alias=$host_alias
17119 host=$host
17120 host_os=$host_os
17121
17122 # The build system.
17123 build_alias=$build_alias
17124 build=$build
17125 build_os=$build_os
17126
17127 # An echo program that does not interpret backslashes.
17128 echo=$lt_echo
17129
17130 # The archiver.
17131 AR=$lt_AR
17132 AR_FLAGS=$lt_AR_FLAGS
17133
17134 # A C compiler.
17135 LTCC=$lt_LTCC
17136
17137 # LTCC compiler flags.
17138 LTCFLAGS=$lt_LTCFLAGS
17139
17140 # A language-specific compiler.
17141 CC=$lt_compiler_F77
17142
17143 # Is the compiler the GNU C compiler?
17144 with_gcc=$GCC_F77
17145
17146 # An ERE matcher.
17147 EGREP=$lt_EGREP
17148
17149 # The linker used to build libraries.
17150 LD=$lt_LD_F77
17151
17152 # Whether we need hard or soft links.
17153 LN_S=$lt_LN_S
17154
17155 # A BSD-compatible nm program.
17156 NM=$lt_NM
17157
17158 # A symbol stripping program
17159 STRIP=$lt_STRIP
17160
17161 # Used to examine libraries when file_magic_cmd begins "file"
17162 MAGIC_CMD=$MAGIC_CMD
17163
17164 # Used on cygwin: DLL creation program.
17165 DLLTOOL="$DLLTOOL"
17166
17167 # Used on cygwin: object dumper.
17168 OBJDUMP="$OBJDUMP"
17169
17170 # Used on cygwin: assembler.
17171 AS="$AS"
17172
17173 # The name of the directory that contains temporary libtool files.
17174 objdir=$objdir
17175
17176 # How to create reloadable object files.
17177 reload_flag=$lt_reload_flag
17178 reload_cmds=$lt_reload_cmds
17179
17180 # How to pass a linker flag through the compiler.
17181 wl=$lt_lt_prog_compiler_wl_F77
17182
17183 # Object file suffix (normally "o").
17184 objext="$ac_objext"
17185
17186 # Old archive suffix (normally "a").
17187 libext="$libext"
17188
17189 # Shared library suffix (normally ".so").
17190 shrext_cmds='$shrext_cmds'
17191
17192 # Executable file suffix (normally "").
17193 exeext="$exeext"
17194
17195 # Additional compiler flags for building library objects.
17196 pic_flag=$lt_lt_prog_compiler_pic_F77
17197 pic_mode=$pic_mode
17198
17199 # What is the maximum length of a command?
17200 max_cmd_len=$lt_cv_sys_max_cmd_len
17201
17202 # Does compiler simultaneously support -c and -o options?
17203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17204
17205 # Must we lock files when doing compilation?
17206 need_locks=$lt_need_locks
17207
17208 # Do we need the lib prefix for modules?
17209 need_lib_prefix=$need_lib_prefix
17210
17211 # Do we need a version for libraries?
17212 need_version=$need_version
17213
17214 # Whether dlopen is supported.
17215 dlopen_support=$enable_dlopen
17216
17217 # Whether dlopen of programs is supported.
17218 dlopen_self=$enable_dlopen_self
17219
17220 # Whether dlopen of statically linked programs is supported.
17221 dlopen_self_static=$enable_dlopen_self_static
17222
17223 # Compiler flag to prevent dynamic linking.
17224 link_static_flag=$lt_lt_prog_compiler_static_F77
17225
17226 # Compiler flag to turn off builtin functions.
17227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17228
17229 # Compiler flag to allow reflexive dlopens.
17230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17231
17232 # Compiler flag to generate shared objects directly from archives.
17233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17234
17235 # Compiler flag to generate thread-safe objects.
17236 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17237
17238 # Library versioning type.
17239 version_type=$version_type
17240
17241 # Format of library name prefix.
17242 libname_spec=$lt_libname_spec
17243
17244 # List of archive names. First name is the real one, the rest are links.
17245 # The last name is the one that the linker finds with -lNAME.
17246 library_names_spec=$lt_library_names_spec
17247
17248 # The coded name of the library, if different from the real name.
17249 soname_spec=$lt_soname_spec
17250
17251 # Commands used to build and install an old-style archive.
17252 RANLIB=$lt_RANLIB
17253 old_archive_cmds=$lt_old_archive_cmds_F77
17254 old_postinstall_cmds=$lt_old_postinstall_cmds
17255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17256
17257 # Create an old-style archive from a shared archive.
17258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17259
17260 # Create a temporary old-style archive to link instead of a shared archive.
17261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17262
17263 # Commands used to build and install a shared archive.
17264 archive_cmds=$lt_archive_cmds_F77
17265 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17266 postinstall_cmds=$lt_postinstall_cmds
17267 postuninstall_cmds=$lt_postuninstall_cmds
17268
17269 # Commands used to build a loadable module (assumed same as above if empty)
17270 module_cmds=$lt_module_cmds_F77
17271 module_expsym_cmds=$lt_module_expsym_cmds_F77
17272
17273 # Commands to strip libraries.
17274 old_striplib=$lt_old_striplib
17275 striplib=$lt_striplib
17276
17277 # Dependencies to place before the objects being linked to create a
17278 # shared library.
17279 predep_objects=$lt_predep_objects_F77
17280
17281 # Dependencies to place after the objects being linked to create a
17282 # shared library.
17283 postdep_objects=$lt_postdep_objects_F77
17284
17285 # Dependencies to place before the objects being linked to create a
17286 # shared library.
17287 predeps=$lt_predeps_F77
17288
17289 # Dependencies to place after the objects being linked to create a
17290 # shared library.
17291 postdeps=$lt_postdeps_F77
17292
17293 # The library search path used internally by the compiler when linking
17294 # a shared library.
17295 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17296
17297 # Method to check whether dependent libraries are shared objects.
17298 deplibs_check_method=$lt_deplibs_check_method
17299
17300 # Command to use when deplibs_check_method == file_magic.
17301 file_magic_cmd=$lt_file_magic_cmd
17302
17303 # Flag that allows shared libraries with undefined symbols to be built.
17304 allow_undefined_flag=$lt_allow_undefined_flag_F77
17305
17306 # Flag that forces no undefined symbols.
17307 no_undefined_flag=$lt_no_undefined_flag_F77
17308
17309 # Commands used to finish a libtool library installation in a directory.
17310 finish_cmds=$lt_finish_cmds
17311
17312 # Same as above, but a single script fragment to be evaled but not shown.
17313 finish_eval=$lt_finish_eval
17314
17315 # Take the output of nm and produce a listing of raw symbols and C names.
17316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17317
17318 # Transform the output of nm in a proper C declaration
17319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17320
17321 # Transform the output of nm in a C name address pair
17322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17323
17324 # This is the shared library runtime path variable.
17325 runpath_var=$runpath_var
17326
17327 # This is the shared library path variable.
17328 shlibpath_var=$shlibpath_var
17329
17330 # Is shlibpath searched before the hard-coded library search path?
17331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17332
17333 # How to hardcode a shared library path into an executable.
17334 hardcode_action=$hardcode_action_F77
17335
17336 # Whether we should hardcode library paths into libraries.
17337 hardcode_into_libs=$hardcode_into_libs
17338
17339 # Flag to hardcode \$libdir into a binary during linking.
17340 # This must work even if \$libdir does not exist.
17341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17342
17343 # If ld is used when linking, flag to hardcode \$libdir into
17344 # a binary during linking. This must work even if \$libdir does
17345 # not exist.
17346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17347
17348 # Whether we need a single -rpath flag with a separated argument.
17349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17350
17351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17352 # resulting binary.
17353 hardcode_direct=$hardcode_direct_F77
17354
17355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17356 # resulting binary.
17357 hardcode_minus_L=$hardcode_minus_L_F77
17358
17359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17360 # the resulting binary.
17361 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17362
17363 # Set to yes if building a shared library automatically hardcodes DIR into the library
17364 # and all subsequent libraries and executables linked against it.
17365 hardcode_automatic=$hardcode_automatic_F77
17366
17367 # Variables whose values should be saved in libtool wrapper scripts and
17368 # restored at relink time.
17369 variables_saved_for_relink="$variables_saved_for_relink"
17370
17371 # Whether libtool must link a program against all its dependency libraries.
17372 link_all_deplibs=$link_all_deplibs_F77
17373
17374 # Compile-time system search path for libraries
17375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17376
17377 # Run-time system search path for libraries
17378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17379
17380 # Fix the shell variable \$srcfile for the compiler.
17381 fix_srcfile_path="$fix_srcfile_path_F77"
17382
17383 # Set to yes if exported symbols are required.
17384 always_export_symbols=$always_export_symbols_F77
17385
17386 # The commands to list exported symbols.
17387 export_symbols_cmds=$lt_export_symbols_cmds_F77
17388
17389 # The commands to extract the exported symbol list from a shared archive.
17390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17391
17392 # Symbols that should not be listed in the preloaded symbols.
17393 exclude_expsyms=$lt_exclude_expsyms_F77
17394
17395 # Symbols that must always be exported.
17396 include_expsyms=$lt_include_expsyms_F77
17397
17398 # ### END LIBTOOL TAG CONFIG: $tagname
17399
17400 __EOF__
17401
17402
17403 else
17404 # If there is no Makefile yet, we rely on a make rule to execute
17405 # `config.status --recheck' to rerun these tests and create the
17406 # libtool script then.
17407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17408 if test -f "$ltmain_in"; then
17409 test -f Makefile && make "$ltmain"
17410 fi
17411 fi
17412
17413
17414 ac_ext=c
17415 ac_cpp='$CPP $CPPFLAGS'
17416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17419
17420 CC="$lt_save_CC"
17421
17422 else
17423 tagname=""
17424 fi
17425 ;;
17426
17427 GCJ)
17428 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17429
17430
17431
17432 # Source file extension for Java test sources.
17433 ac_ext=java
17434
17435 # Object file extension for compiled Java test sources.
17436 objext=o
17437 objext_GCJ=$objext
17438
17439 # Code to be used in simple compile tests
17440 lt_simple_compile_test_code="class foo {}\n"
17441
17442 # Code to be used in simple link tests
17443 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17444
17445 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17446
17447 # If no C compiler was specified, use CC.
17448 LTCC=${LTCC-"$CC"}
17449
17450 # If no C compiler flags were specified, use CFLAGS.
17451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17452
17453 # Allow CC to be a program name with arguments.
17454 compiler=$CC
17455
17456
17457 # save warnings/boilerplate of simple test code
17458 ac_outfile=conftest.$ac_objext
17459 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17461 _lt_compiler_boilerplate=`cat conftest.err`
17462 $rm conftest*
17463
17464 ac_outfile=conftest.$ac_objext
17465 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17467 _lt_linker_boilerplate=`cat conftest.err`
17468 $rm conftest*
17469
17470
17471 # Allow CC to be a program name with arguments.
17472 lt_save_CC="$CC"
17473 CC=${GCJ-"gcj"}
17474 compiler=$CC
17475 compiler_GCJ=$CC
17476 for cc_temp in $compiler""; do
17477 case $cc_temp in
17478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17480 \-*) ;;
17481 *) break;;
17482 esac
17483 done
17484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17485
17486
17487 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17488 archive_cmds_need_lc_GCJ=no
17489
17490 old_archive_cmds_GCJ=$old_archive_cmds
17491
17492 ## CAVEAT EMPTOR:
17493 ## There is no encapsulation within the following macros, do not change
17494 ## the running order or otherwise move them around unless you know exactly
17495 ## what you are doing...
17496
17497 lt_prog_compiler_no_builtin_flag_GCJ=
17498
17499 if test "$GCC" = yes; then
17500 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17501
17502
17503 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17504 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17505 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508 lt_cv_prog_compiler_rtti_exceptions=no
17509 ac_outfile=conftest.$ac_objext
17510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17511 lt_compiler_flag="-fno-rtti -fno-exceptions"
17512 # Insert the option either (1) after the last *FLAGS variable, or
17513 # (2) before a word containing "conftest.", or (3) at the end.
17514 # Note that $ac_compile itself does not contain backslashes and begins
17515 # with a dollar sign (not a hyphen), so the echo should work correctly.
17516 # The option is referenced via a variable to avoid confusing sed.
17517 lt_compile=`echo "$ac_compile" | $SED \
17518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17520 -e 's:$: $lt_compiler_flag:'`
17521 (eval echo "\"\$as_me:17521: $lt_compile\"" >&5)
17522 (eval "$lt_compile" 2>conftest.err)
17523 ac_status=$?
17524 cat conftest.err >&5
17525 echo "$as_me:17525: \$? = $ac_status" >&5
17526 if (exit $ac_status) && test -s "$ac_outfile"; then
17527 # The compiler can only warn and ignore the option if not recognized
17528 # So say no if there are warnings other than the usual output.
17529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17532 lt_cv_prog_compiler_rtti_exceptions=yes
17533 fi
17534 fi
17535 $rm conftest*
17536
17537 fi
17538 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17539 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17540
17541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17542 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17543 else
17544 :
17545 fi
17546
17547 fi
17548
17549 lt_prog_compiler_wl_GCJ=
17550 lt_prog_compiler_pic_GCJ=
17551 lt_prog_compiler_static_GCJ=
17552
17553 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17554 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17555
17556 if test "$GCC" = yes; then
17557 lt_prog_compiler_wl_GCJ='-Wl,'
17558 lt_prog_compiler_static_GCJ='-static'
17559
17560 case $host_os in
17561 aix*)
17562 # All AIX code is PIC.
17563 if test "$host_cpu" = ia64; then
17564 # AIX 5 now supports IA64 processor
17565 lt_prog_compiler_static_GCJ='-Bstatic'
17566 fi
17567 ;;
17568
17569 amigaos*)
17570 # FIXME: we need at least 68020 code to build shared libraries, but
17571 # adding the `-m68020' flag to GCC prevents building anything better,
17572 # like `-m68040'.
17573 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17574 ;;
17575
17576 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17577 # PIC is the default for these OSes.
17578 ;;
17579
17580 mingw* | pw32* | os2*)
17581 # This hack is so that the source file can tell whether it is being
17582 # built for inclusion in a dll (and should export symbols for example).
17583 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17584 ;;
17585
17586 darwin* | rhapsody*)
17587 # PIC is the default on this platform
17588 # Common symbols not allowed in MH_DYLIB files
17589 lt_prog_compiler_pic_GCJ='-fno-common'
17590 ;;
17591
17592 interix3*)
17593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17594 # Instead, we relocate shared libraries at runtime.
17595 ;;
17596
17597 msdosdjgpp*)
17598 # Just because we use GCC doesn't mean we suddenly get shared libraries
17599 # on systems that don't support them.
17600 lt_prog_compiler_can_build_shared_GCJ=no
17601 enable_shared=no
17602 ;;
17603
17604 sysv4*MP*)
17605 if test -d /usr/nec; then
17606 lt_prog_compiler_pic_GCJ=-Kconform_pic
17607 fi
17608 ;;
17609
17610 hpux*)
17611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17612 # not for PA HP-UX.
17613 case $host_cpu in
17614 hppa*64*|ia64*)
17615 # +Z the default
17616 ;;
17617 *)
17618 lt_prog_compiler_pic_GCJ='-fPIC'
17619 ;;
17620 esac
17621 ;;
17622
17623 *)
17624 lt_prog_compiler_pic_GCJ='-fPIC'
17625 ;;
17626 esac
17627 else
17628 # PORTME Check for flag to pass linker flags through the system compiler.
17629 case $host_os in
17630 aix*)
17631 lt_prog_compiler_wl_GCJ='-Wl,'
17632 if test "$host_cpu" = ia64; then
17633 # AIX 5 now supports IA64 processor
17634 lt_prog_compiler_static_GCJ='-Bstatic'
17635 else
17636 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17637 fi
17638 ;;
17639 darwin*)
17640 # PIC is the default on this platform
17641 # Common symbols not allowed in MH_DYLIB files
17642 case $cc_basename in
17643 xlc*)
17644 lt_prog_compiler_pic_GCJ='-qnocommon'
17645 lt_prog_compiler_wl_GCJ='-Wl,'
17646 ;;
17647 esac
17648 ;;
17649
17650 mingw* | pw32* | os2*)
17651 # This hack is so that the source file can tell whether it is being
17652 # built for inclusion in a dll (and should export symbols for example).
17653 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17654 ;;
17655
17656 hpux9* | hpux10* | hpux11*)
17657 lt_prog_compiler_wl_GCJ='-Wl,'
17658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17659 # not for PA HP-UX.
17660 case $host_cpu in
17661 hppa*64*|ia64*)
17662 # +Z the default
17663 ;;
17664 *)
17665 lt_prog_compiler_pic_GCJ='+Z'
17666 ;;
17667 esac
17668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17669 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17670 ;;
17671
17672 irix5* | irix6* | nonstopux*)
17673 lt_prog_compiler_wl_GCJ='-Wl,'
17674 # PIC (with -KPIC) is the default.
17675 lt_prog_compiler_static_GCJ='-non_shared'
17676 ;;
17677
17678 newsos6)
17679 lt_prog_compiler_pic_GCJ='-KPIC'
17680 lt_prog_compiler_static_GCJ='-Bstatic'
17681 ;;
17682
17683 linux*)
17684 case $cc_basename in
17685 icc* | ecc*)
17686 lt_prog_compiler_wl_GCJ='-Wl,'
17687 lt_prog_compiler_pic_GCJ='-KPIC'
17688 lt_prog_compiler_static_GCJ='-static'
17689 ;;
17690 pgcc* | pgf77* | pgf90* | pgf95*)
17691 # Portland Group compilers (*not* the Pentium gcc compiler,
17692 # which looks to be a dead project)
17693 lt_prog_compiler_wl_GCJ='-Wl,'
17694 lt_prog_compiler_pic_GCJ='-fpic'
17695 lt_prog_compiler_static_GCJ='-Bstatic'
17696 ;;
17697 ccc*)
17698 lt_prog_compiler_wl_GCJ='-Wl,'
17699 # All Alpha code is PIC.
17700 lt_prog_compiler_static_GCJ='-non_shared'
17701 ;;
17702 esac
17703 ;;
17704
17705 osf3* | osf4* | osf5*)
17706 lt_prog_compiler_wl_GCJ='-Wl,'
17707 # All OSF/1 code is PIC.
17708 lt_prog_compiler_static_GCJ='-non_shared'
17709 ;;
17710
17711 solaris*)
17712 lt_prog_compiler_pic_GCJ='-KPIC'
17713 lt_prog_compiler_static_GCJ='-Bstatic'
17714 case $cc_basename in
17715 f77* | f90* | f95*)
17716 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17717 *)
17718 lt_prog_compiler_wl_GCJ='-Wl,';;
17719 esac
17720 ;;
17721
17722 sunos4*)
17723 lt_prog_compiler_wl_GCJ='-Qoption ld '
17724 lt_prog_compiler_pic_GCJ='-PIC'
17725 lt_prog_compiler_static_GCJ='-Bstatic'
17726 ;;
17727
17728 sysv4 | sysv4.2uw2* | sysv4.3*)
17729 lt_prog_compiler_wl_GCJ='-Wl,'
17730 lt_prog_compiler_pic_GCJ='-KPIC'
17731 lt_prog_compiler_static_GCJ='-Bstatic'
17732 ;;
17733
17734 sysv4*MP*)
17735 if test -d /usr/nec ;then
17736 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17737 lt_prog_compiler_static_GCJ='-Bstatic'
17738 fi
17739 ;;
17740
17741 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17742 lt_prog_compiler_wl_GCJ='-Wl,'
17743 lt_prog_compiler_pic_GCJ='-KPIC'
17744 lt_prog_compiler_static_GCJ='-Bstatic'
17745 ;;
17746
17747 unicos*)
17748 lt_prog_compiler_wl_GCJ='-Wl,'
17749 lt_prog_compiler_can_build_shared_GCJ=no
17750 ;;
17751
17752 uts4*)
17753 lt_prog_compiler_pic_GCJ='-pic'
17754 lt_prog_compiler_static_GCJ='-Bstatic'
17755 ;;
17756
17757 *)
17758 lt_prog_compiler_can_build_shared_GCJ=no
17759 ;;
17760 esac
17761 fi
17762
17763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17764 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17765
17766 #
17767 # Check to make sure the PIC flag actually works.
17768 #
17769 if test -n "$lt_prog_compiler_pic_GCJ"; then
17770
17771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17773 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776 lt_prog_compiler_pic_works_GCJ=no
17777 ac_outfile=conftest.$ac_objext
17778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17779 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17780 # Insert the option either (1) after the last *FLAGS variable, or
17781 # (2) before a word containing "conftest.", or (3) at the end.
17782 # Note that $ac_compile itself does not contain backslashes and begins
17783 # with a dollar sign (not a hyphen), so the echo should work correctly.
17784 # The option is referenced via a variable to avoid confusing sed.
17785 lt_compile=`echo "$ac_compile" | $SED \
17786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17788 -e 's:$: $lt_compiler_flag:'`
17789 (eval echo "\"\$as_me:17789: $lt_compile\"" >&5)
17790 (eval "$lt_compile" 2>conftest.err)
17791 ac_status=$?
17792 cat conftest.err >&5
17793 echo "$as_me:17793: \$? = $ac_status" >&5
17794 if (exit $ac_status) && test -s "$ac_outfile"; then
17795 # The compiler can only warn and ignore the option if not recognized
17796 # So say no if there are warnings other than the usual output.
17797 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17799 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17800 lt_prog_compiler_pic_works_GCJ=yes
17801 fi
17802 fi
17803 $rm conftest*
17804
17805 fi
17806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17807 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17808
17809 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17810 case $lt_prog_compiler_pic_GCJ in
17811 "" | " "*) ;;
17812 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17813 esac
17814 else
17815 lt_prog_compiler_pic_GCJ=
17816 lt_prog_compiler_can_build_shared_GCJ=no
17817 fi
17818
17819 fi
17820 case $host_os in
17821 # For platforms which do not support PIC, -DPIC is meaningless:
17822 *djgpp*)
17823 lt_prog_compiler_pic_GCJ=
17824 ;;
17825 *)
17826 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17827 ;;
17828 esac
17829
17830 #
17831 # Check to make sure the static flag actually works.
17832 #
17833 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17834 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17835 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17836 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839 lt_prog_compiler_static_works_GCJ=no
17840 save_LDFLAGS="$LDFLAGS"
17841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17842 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17844 # The linker can only warn and ignore the option if not recognized
17845 # So say no if there are warnings
17846 if test -s conftest.err; then
17847 # Append any errors to the config.log.
17848 cat conftest.err 1>&5
17849 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17851 if diff conftest.exp conftest.er2 >/dev/null; then
17852 lt_prog_compiler_static_works_GCJ=yes
17853 fi
17854 else
17855 lt_prog_compiler_static_works_GCJ=yes
17856 fi
17857 fi
17858 $rm conftest*
17859 LDFLAGS="$save_LDFLAGS"
17860
17861 fi
17862 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17863 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17864
17865 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17866 :
17867 else
17868 lt_prog_compiler_static_GCJ=
17869 fi
17870
17871
17872 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17873 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17874 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877 lt_cv_prog_compiler_c_o_GCJ=no
17878 $rm -r conftest 2>/dev/null
17879 mkdir conftest
17880 cd conftest
17881 mkdir out
17882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17883
17884 lt_compiler_flag="-o out/conftest2.$ac_objext"
17885 # Insert the option either (1) after the last *FLAGS variable, or
17886 # (2) before a word containing "conftest.", or (3) at the end.
17887 # Note that $ac_compile itself does not contain backslashes and begins
17888 # with a dollar sign (not a hyphen), so the echo should work correctly.
17889 lt_compile=`echo "$ac_compile" | $SED \
17890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17892 -e 's:$: $lt_compiler_flag:'`
17893 (eval echo "\"\$as_me:17893: $lt_compile\"" >&5)
17894 (eval "$lt_compile" 2>out/conftest.err)
17895 ac_status=$?
17896 cat out/conftest.err >&5
17897 echo "$as_me:17897: \$? = $ac_status" >&5
17898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17899 then
17900 # The compiler can only warn and ignore the option if not recognized
17901 # So say no if there are warnings
17902 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17905 lt_cv_prog_compiler_c_o_GCJ=yes
17906 fi
17907 fi
17908 chmod u+w . 2>&5
17909 $rm conftest*
17910 # SGI C++ compiler will create directory out/ii_files/ for
17911 # template instantiation
17912 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17913 $rm out/* && rmdir out
17914 cd ..
17915 rmdir conftest
17916 $rm conftest*
17917
17918 fi
17919 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17920 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17921
17922
17923 hard_links="nottested"
17924 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17925 # do not overwrite the value of need_locks provided by the user
17926 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17927 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17928 hard_links=yes
17929 $rm conftest*
17930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17931 touch conftest.a
17932 ln conftest.a conftest.b 2>&5 || hard_links=no
17933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17934 echo "$as_me:$LINENO: result: $hard_links" >&5
17935 echo "${ECHO_T}$hard_links" >&6
17936 if test "$hard_links" = no; then
17937 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17938 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17939 need_locks=warn
17940 fi
17941 else
17942 need_locks=no
17943 fi
17944
17945 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17946 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17947
17948 runpath_var=
17949 allow_undefined_flag_GCJ=
17950 enable_shared_with_static_runtimes_GCJ=no
17951 archive_cmds_GCJ=
17952 archive_expsym_cmds_GCJ=
17953 old_archive_From_new_cmds_GCJ=
17954 old_archive_from_expsyms_cmds_GCJ=
17955 export_dynamic_flag_spec_GCJ=
17956 whole_archive_flag_spec_GCJ=
17957 thread_safe_flag_spec_GCJ=
17958 hardcode_libdir_flag_spec_GCJ=
17959 hardcode_libdir_flag_spec_ld_GCJ=
17960 hardcode_libdir_separator_GCJ=
17961 hardcode_direct_GCJ=no
17962 hardcode_minus_L_GCJ=no
17963 hardcode_shlibpath_var_GCJ=unsupported
17964 link_all_deplibs_GCJ=unknown
17965 hardcode_automatic_GCJ=no
17966 module_cmds_GCJ=
17967 module_expsym_cmds_GCJ=
17968 always_export_symbols_GCJ=no
17969 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17970 # include_expsyms should be a list of space-separated symbols to be *always*
17971 # included in the symbol list
17972 include_expsyms_GCJ=
17973 # exclude_expsyms can be an extended regexp of symbols to exclude
17974 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17975 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17976 # as well as any symbol that contains `d'.
17977 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17978 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17979 # platforms (ab)use it in PIC code, but their linkers get confused if
17980 # the symbol is explicitly referenced. Since portable code cannot
17981 # rely on this symbol name, it's probably fine to never include it in
17982 # preloaded symbol tables.
17983 extract_expsyms_cmds=
17984 # Just being paranoid about ensuring that cc_basename is set.
17985 for cc_temp in $compiler""; do
17986 case $cc_temp in
17987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17989 \-*) ;;
17990 *) break;;
17991 esac
17992 done
17993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17994
17995 case $host_os in
17996 cygwin* | mingw* | pw32*)
17997 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17998 # When not using gcc, we currently assume that we are using
17999 # Microsoft Visual C++.
18000 if test "$GCC" != yes; then
18001 with_gnu_ld=no
18002 fi
18003 ;;
18004 interix*)
18005 # we just hope/assume this is gcc and not c89 (= MSVC++)
18006 with_gnu_ld=yes
18007 ;;
18008 openbsd*)
18009 with_gnu_ld=no
18010 ;;
18011 esac
18012
18013 ld_shlibs_GCJ=yes
18014 if test "$with_gnu_ld" = yes; then
18015 # If archive_cmds runs LD, not CC, wlarc should be empty
18016 wlarc='${wl}'
18017
18018 # Set some defaults for GNU ld with shared library support. These
18019 # are reset later if shared libraries are not supported. Putting them
18020 # here allows them to be overridden if necessary.
18021 runpath_var=LD_RUN_PATH
18022 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18023 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18024 # ancient GNU ld didn't support --whole-archive et. al.
18025 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18026 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18027 else
18028 whole_archive_flag_spec_GCJ=
18029 fi
18030 supports_anon_versioning=no
18031 case `$LD -v 2>/dev/null` in
18032 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18033 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18034 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18035 *\ 2.11.*) ;; # other 2.11 versions
18036 *) supports_anon_versioning=yes ;;
18037 esac
18038
18039 # See if GNU ld supports shared libraries.
18040 case $host_os in
18041 aix3* | aix4* | aix5*)
18042 # On AIX/PPC, the GNU linker is very broken
18043 if test "$host_cpu" != ia64; then
18044 ld_shlibs_GCJ=no
18045 cat <<EOF 1>&2
18046
18047 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18048 *** to be unable to reliably create shared libraries on AIX.
18049 *** Therefore, libtool is disabling shared libraries support. If you
18050 *** really care for shared libraries, you may want to modify your PATH
18051 *** so that a non-GNU linker is found, and then restart.
18052
18053 EOF
18054 fi
18055 ;;
18056
18057 amigaos*)
18058 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)'
18059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060 hardcode_minus_L_GCJ=yes
18061
18062 # Samuel A. Falvo II <[email protected]> reports
18063 # that the semantics of dynamic libraries on AmigaOS, at least up
18064 # to version 4, is to share data among multiple programs linked
18065 # with the same dynamic library. Since this doesn't match the
18066 # behavior of shared libraries on other platforms, we can't use
18067 # them.
18068 ld_shlibs_GCJ=no
18069 ;;
18070
18071 beos*)
18072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18073 allow_undefined_flag_GCJ=unsupported
18074 # Joseph Beckenbach <[email protected]> says some releases of gcc
18075 # support --undefined. This deserves some investigation. FIXME
18076 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18077 else
18078 ld_shlibs_GCJ=no
18079 fi
18080 ;;
18081
18082 cygwin* | mingw* | pw32*)
18083 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18084 # as there is no search path for DLLs.
18085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086 allow_undefined_flag_GCJ=unsupported
18087 always_export_symbols_GCJ=no
18088 enable_shared_with_static_runtimes_GCJ=yes
18089 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18090
18091 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18093 # If the export-symbols file already is a .def file (1st line
18094 # is EXPORTS), use it as is; otherwise, prepend...
18095 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18096 cp $export_symbols $output_objdir/$soname.def;
18097 else
18098 echo EXPORTS > $output_objdir/$soname.def;
18099 cat $export_symbols >> $output_objdir/$soname.def;
18100 fi~
18101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18102 else
18103 ld_shlibs_GCJ=no
18104 fi
18105 ;;
18106
18107 interix3*)
18108 hardcode_direct_GCJ=no
18109 hardcode_shlibpath_var_GCJ=no
18110 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18111 export_dynamic_flag_spec_GCJ='${wl}-E'
18112 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18113 # Instead, shared libraries are loaded at an image base (0x10000000 by
18114 # default) and relocated if they conflict, which is a slow very memory
18115 # consuming and fragmenting process. To avoid this, we pick a random,
18116 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18117 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18118 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'
18119 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'
18120 ;;
18121
18122 linux*)
18123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18124 tmp_addflag=
18125 case $cc_basename,$host_cpu in
18126 pgcc*) # Portland Group C compiler
18127 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'
18128 tmp_addflag=' $pic_flag'
18129 ;;
18130 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18131 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'
18132 tmp_addflag=' $pic_flag -Mnomain' ;;
18133 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18134 tmp_addflag=' -i_dynamic' ;;
18135 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18136 tmp_addflag=' -i_dynamic -nofor_main' ;;
18137 ifc* | ifort*) # Intel Fortran compiler
18138 tmp_addflag=' -nofor_main' ;;
18139 esac
18140 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18141
18142 if test $supports_anon_versioning = yes; then
18143 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18145 $echo "local: *; };" >> $output_objdir/$libname.ver~
18146 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18147 fi
18148 else
18149 ld_shlibs_GCJ=no
18150 fi
18151 ;;
18152
18153 netbsd*)
18154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18155 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18156 wlarc=
18157 else
18158 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18159 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18160 fi
18161 ;;
18162
18163 solaris*)
18164 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18165 ld_shlibs_GCJ=no
18166 cat <<EOF 1>&2
18167
18168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18169 *** create shared libraries on Solaris systems. Therefore, libtool
18170 *** is disabling shared libraries support. We urge you to upgrade GNU
18171 *** binutils to release 2.9.1 or newer. Another option is to modify
18172 *** your PATH or compiler configuration so that the native linker is
18173 *** used, and then restart.
18174
18175 EOF
18176 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18179 else
18180 ld_shlibs_GCJ=no
18181 fi
18182 ;;
18183
18184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18185 case `$LD -v 2>&1` in
18186 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18187 ld_shlibs_GCJ=no
18188 cat <<_LT_EOF 1>&2
18189
18190 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18191 *** reliably create shared libraries on SCO systems. Therefore, libtool
18192 *** is disabling shared libraries support. We urge you to upgrade GNU
18193 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18194 *** your PATH or compiler configuration so that the native linker is
18195 *** used, and then restart.
18196
18197 _LT_EOF
18198 ;;
18199 *)
18200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18201 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18202 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18203 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18204 else
18205 ld_shlibs_GCJ=no
18206 fi
18207 ;;
18208 esac
18209 ;;
18210
18211 sunos4*)
18212 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18213 wlarc=
18214 hardcode_direct_GCJ=yes
18215 hardcode_shlibpath_var_GCJ=no
18216 ;;
18217
18218 *)
18219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18222 else
18223 ld_shlibs_GCJ=no
18224 fi
18225 ;;
18226 esac
18227
18228 if test "$ld_shlibs_GCJ" = no; then
18229 runpath_var=
18230 hardcode_libdir_flag_spec_GCJ=
18231 export_dynamic_flag_spec_GCJ=
18232 whole_archive_flag_spec_GCJ=
18233 fi
18234 else
18235 # PORTME fill in a description of your system's linker (not GNU ld)
18236 case $host_os in
18237 aix3*)
18238 allow_undefined_flag_GCJ=unsupported
18239 always_export_symbols_GCJ=yes
18240 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'
18241 # Note: this linker hardcodes the directories in LIBPATH if there
18242 # are no directories specified by -L.
18243 hardcode_minus_L_GCJ=yes
18244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18245 # Neither direct hardcoding nor static linking is supported with a
18246 # broken collect2.
18247 hardcode_direct_GCJ=unsupported
18248 fi
18249 ;;
18250
18251 aix4* | aix5*)
18252 if test "$host_cpu" = ia64; then
18253 # On IA64, the linker does run time linking by default, so we don't
18254 # have to do anything special.
18255 aix_use_runtimelinking=no
18256 exp_sym_flag='-Bexport'
18257 no_entry_flag=""
18258 else
18259 # If we're using GNU nm, then we don't want the "-C" option.
18260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18261 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18262 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'
18263 else
18264 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'
18265 fi
18266 aix_use_runtimelinking=no
18267
18268 # Test if we are trying to use run time linking or normal
18269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18270 # need to do runtime linking.
18271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18272 for ld_flag in $LDFLAGS; do
18273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18274 aix_use_runtimelinking=yes
18275 break
18276 fi
18277 done
18278 ;;
18279 esac
18280
18281 exp_sym_flag='-bexport'
18282 no_entry_flag='-bnoentry'
18283 fi
18284
18285 # When large executables or shared objects are built, AIX ld can
18286 # have problems creating the table of contents. If linking a library
18287 # or program results in "error TOC overflow" add -mminimal-toc to
18288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18290
18291 archive_cmds_GCJ=''
18292 hardcode_direct_GCJ=yes
18293 hardcode_libdir_separator_GCJ=':'
18294 link_all_deplibs_GCJ=yes
18295
18296 if test "$GCC" = yes; then
18297 case $host_os in aix4.[012]|aix4.[012].*)
18298 # We only want to do this on AIX 4.2 and lower, the check
18299 # below for broken collect2 doesn't work under 4.3+
18300 collect2name=`${CC} -print-prog-name=collect2`
18301 if test -f "$collect2name" && \
18302 strings "$collect2name" | grep resolve_lib_name >/dev/null
18303 then
18304 # We have reworked collect2
18305 hardcode_direct_GCJ=yes
18306 else
18307 # We have old collect2
18308 hardcode_direct_GCJ=unsupported
18309 # It fails to find uninstalled libraries when the uninstalled
18310 # path is not listed in the libpath. Setting hardcode_minus_L
18311 # to unsupported forces relinking
18312 hardcode_minus_L_GCJ=yes
18313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18314 hardcode_libdir_separator_GCJ=
18315 fi
18316 ;;
18317 esac
18318 shared_flag='-shared'
18319 if test "$aix_use_runtimelinking" = yes; then
18320 shared_flag="$shared_flag "'${wl}-G'
18321 fi
18322 else
18323 # not using gcc
18324 if test "$host_cpu" = ia64; then
18325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18326 # chokes on -Wl,-G. The following line is correct:
18327 shared_flag='-G'
18328 else
18329 if test "$aix_use_runtimelinking" = yes; then
18330 shared_flag='${wl}-G'
18331 else
18332 shared_flag='${wl}-bM:SRE'
18333 fi
18334 fi
18335 fi
18336
18337 # It seems that -bexpall does not export symbols beginning with
18338 # underscore (_), so it is better to generate a list of symbols to export.
18339 always_export_symbols_GCJ=yes
18340 if test "$aix_use_runtimelinking" = yes; then
18341 # Warning - without using the other runtime loading flags (-brtl),
18342 # -berok will link without error, but may produce a broken library.
18343 allow_undefined_flag_GCJ='-berok'
18344 # Determine the default libpath from the value encoded in an empty executable.
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h. */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351
18352 int
18353 main ()
18354 {
18355
18356 ;
18357 return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362 (eval $ac_link) 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382
18383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18384 }'`
18385 # Check for a 64-bit object if we didn't find anything.
18386 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; }
18387 }'`; fi
18388 else
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 fi
18393 rm -f conftest.err conftest.$ac_objext \
18394 conftest$ac_exeext conftest.$ac_ext
18395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18396
18397 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18398 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"
18399 else
18400 if test "$host_cpu" = ia64; then
18401 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18402 allow_undefined_flag_GCJ="-z nodefs"
18403 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"
18404 else
18405 # Determine the default libpath from the value encoded in an empty executable.
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h. */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412
18413 int
18414 main ()
18415 {
18416
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext conftest$ac_exeext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423 (eval $ac_link) 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443
18444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18445 }'`
18446 # Check for a 64-bit object if we didn't find anything.
18447 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; }
18448 }'`; fi
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 fi
18454 rm -f conftest.err conftest.$ac_objext \
18455 conftest$ac_exeext conftest.$ac_ext
18456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18457
18458 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18459 # Warning - without using the other run time loading flags,
18460 # -berok will link without error, but may produce a broken library.
18461 no_undefined_flag_GCJ=' ${wl}-bernotok'
18462 allow_undefined_flag_GCJ=' ${wl}-berok'
18463 # Exported symbols can be pulled into shared objects from archives
18464 whole_archive_flag_spec_GCJ='$convenience'
18465 archive_cmds_need_lc_GCJ=yes
18466 # This is similar to how AIX traditionally builds its shared libraries.
18467 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'
18468 fi
18469 fi
18470 ;;
18471
18472 amigaos*)
18473 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)'
18474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18475 hardcode_minus_L_GCJ=yes
18476 # see comment about different semantics on the GNU ld section
18477 ld_shlibs_GCJ=no
18478 ;;
18479
18480 bsdi[45]*)
18481 export_dynamic_flag_spec_GCJ=-rdynamic
18482 ;;
18483
18484 cygwin* | mingw* | pw32*)
18485 # When not using gcc, we currently assume that we are using
18486 # Microsoft Visual C++.
18487 # hardcode_libdir_flag_spec is actually meaningless, as there is
18488 # no search path for DLLs.
18489 hardcode_libdir_flag_spec_GCJ=' '
18490 allow_undefined_flag_GCJ=unsupported
18491 # Tell ltmain to make .lib files, not .a files.
18492 libext=lib
18493 # Tell ltmain to make .dll files, not .so files.
18494 shrext_cmds=".dll"
18495 # FIXME: Setting linknames here is a bad hack.
18496 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18497 # The linker will automatically build a .lib file if we build a DLL.
18498 old_archive_From_new_cmds_GCJ='true'
18499 # FIXME: Should let the user specify the lib program.
18500 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18501 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18502 enable_shared_with_static_runtimes_GCJ=yes
18503 ;;
18504
18505 darwin* | rhapsody*)
18506 case $host_os in
18507 rhapsody* | darwin1.[012])
18508 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18509 ;;
18510 *) # Darwin 1.3 on
18511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18512 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18513 else
18514 case ${MACOSX_DEPLOYMENT_TARGET} in
18515 10.[012])
18516 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18517 ;;
18518 10.*)
18519 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18520 ;;
18521 esac
18522 fi
18523 ;;
18524 esac
18525 archive_cmds_need_lc_GCJ=no
18526 hardcode_direct_GCJ=no
18527 hardcode_automatic_GCJ=yes
18528 hardcode_shlibpath_var_GCJ=unsupported
18529 whole_archive_flag_spec_GCJ=''
18530 link_all_deplibs_GCJ=yes
18531 if test "$GCC" = yes ; then
18532 output_verbose_link_cmd='echo'
18533 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18534 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18536 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}'
18537 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}'
18538 else
18539 case $cc_basename in
18540 xlc*)
18541 output_verbose_link_cmd='echo'
18542 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18543 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18545 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}'
18546 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}'
18547 ;;
18548 *)
18549 ld_shlibs_GCJ=no
18550 ;;
18551 esac
18552 fi
18553 ;;
18554
18555 dgux*)
18556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18558 hardcode_shlibpath_var_GCJ=no
18559 ;;
18560
18561 freebsd1*)
18562 ld_shlibs_GCJ=no
18563 ;;
18564
18565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18566 # support. Future versions do this automatically, but an explicit c++rt0.o
18567 # does not break anything, and helps significantly (at the cost of a little
18568 # extra space).
18569 freebsd2.2*)
18570 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18572 hardcode_direct_GCJ=yes
18573 hardcode_shlibpath_var_GCJ=no
18574 ;;
18575
18576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18577 freebsd2*)
18578 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18579 hardcode_direct_GCJ=yes
18580 hardcode_minus_L_GCJ=yes
18581 hardcode_shlibpath_var_GCJ=no
18582 ;;
18583
18584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18585 freebsd* | kfreebsd*-gnu | dragonfly*)
18586 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18587 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18588 hardcode_direct_GCJ=yes
18589 hardcode_shlibpath_var_GCJ=no
18590 ;;
18591
18592 hpux9*)
18593 if test "$GCC" = yes; then
18594 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'
18595 else
18596 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'
18597 fi
18598 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18599 hardcode_libdir_separator_GCJ=:
18600 hardcode_direct_GCJ=yes
18601
18602 # hardcode_minus_L: Not really in the search PATH,
18603 # but as the default location of the library.
18604 hardcode_minus_L_GCJ=yes
18605 export_dynamic_flag_spec_GCJ='${wl}-E'
18606 ;;
18607
18608 hpux10*)
18609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18610 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18611 else
18612 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18613 fi
18614 if test "$with_gnu_ld" = no; then
18615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18616 hardcode_libdir_separator_GCJ=:
18617
18618 hardcode_direct_GCJ=yes
18619 export_dynamic_flag_spec_GCJ='${wl}-E'
18620
18621 # hardcode_minus_L: Not really in the search PATH,
18622 # but as the default location of the library.
18623 hardcode_minus_L_GCJ=yes
18624 fi
18625 ;;
18626
18627 hpux11*)
18628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18629 case $host_cpu in
18630 hppa*64*)
18631 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18632 ;;
18633 ia64*)
18634 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18635 ;;
18636 *)
18637 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18638 ;;
18639 esac
18640 else
18641 case $host_cpu in
18642 hppa*64*)
18643 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18644 ;;
18645 ia64*)
18646 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18647 ;;
18648 *)
18649 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18650 ;;
18651 esac
18652 fi
18653 if test "$with_gnu_ld" = no; then
18654 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18655 hardcode_libdir_separator_GCJ=:
18656
18657 case $host_cpu in
18658 hppa*64*|ia64*)
18659 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18660 hardcode_direct_GCJ=no
18661 hardcode_shlibpath_var_GCJ=no
18662 ;;
18663 *)
18664 hardcode_direct_GCJ=yes
18665 export_dynamic_flag_spec_GCJ='${wl}-E'
18666
18667 # hardcode_minus_L: Not really in the search PATH,
18668 # but as the default location of the library.
18669 hardcode_minus_L_GCJ=yes
18670 ;;
18671 esac
18672 fi
18673 ;;
18674
18675 irix5* | irix6* | nonstopux*)
18676 if test "$GCC" = yes; then
18677 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'
18678 else
18679 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'
18680 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18681 fi
18682 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18683 hardcode_libdir_separator_GCJ=:
18684 link_all_deplibs_GCJ=yes
18685 ;;
18686
18687 netbsd*)
18688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18689 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18690 else
18691 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18692 fi
18693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18694 hardcode_direct_GCJ=yes
18695 hardcode_shlibpath_var_GCJ=no
18696 ;;
18697
18698 newsos6)
18699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18700 hardcode_direct_GCJ=yes
18701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18702 hardcode_libdir_separator_GCJ=:
18703 hardcode_shlibpath_var_GCJ=no
18704 ;;
18705
18706 openbsd*)
18707 hardcode_direct_GCJ=yes
18708 hardcode_shlibpath_var_GCJ=no
18709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18710 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18711 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18713 export_dynamic_flag_spec_GCJ='${wl}-E'
18714 else
18715 case $host_os in
18716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18717 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18718 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18719 ;;
18720 *)
18721 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18723 ;;
18724 esac
18725 fi
18726 ;;
18727
18728 os2*)
18729 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18730 hardcode_minus_L_GCJ=yes
18731 allow_undefined_flag_GCJ=unsupported
18732 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'
18733 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18734 ;;
18735
18736 osf3*)
18737 if test "$GCC" = yes; then
18738 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18739 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'
18740 else
18741 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18742 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'
18743 fi
18744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18745 hardcode_libdir_separator_GCJ=:
18746 ;;
18747
18748 osf4* | osf5*) # as osf3* with the addition of -msym flag
18749 if test "$GCC" = yes; then
18750 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18751 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'
18752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18753 else
18754 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18755 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'
18756 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~
18757 $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'
18758
18759 # Both c and cxx compiler support -rpath directly
18760 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18761 fi
18762 hardcode_libdir_separator_GCJ=:
18763 ;;
18764
18765 solaris*)
18766 no_undefined_flag_GCJ=' -z text'
18767 if test "$GCC" = yes; then
18768 wlarc='${wl}'
18769 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18770 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18771 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18772 else
18773 wlarc=''
18774 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18775 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18776 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18777 fi
18778 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18779 hardcode_shlibpath_var_GCJ=no
18780 case $host_os in
18781 solaris2.[0-5] | solaris2.[0-5].*) ;;
18782 *)
18783 # The compiler driver will combine linker options so we
18784 # cannot just pass the convience library names through
18785 # without $wl, iff we do not link with $LD.
18786 # Luckily, gcc supports the same syntax we need for Sun Studio.
18787 # Supported since Solaris 2.6 (maybe 2.5.1?)
18788 case $wlarc in
18789 '')
18790 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18791 *)
18792 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' ;;
18793 esac ;;
18794 esac
18795 link_all_deplibs_GCJ=yes
18796 ;;
18797
18798 sunos4*)
18799 if test "x$host_vendor" = xsequent; then
18800 # Use $CC to link under sequent, because it throws in some extra .o
18801 # files that make .init and .fini sections work.
18802 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18803 else
18804 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18805 fi
18806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18807 hardcode_direct_GCJ=yes
18808 hardcode_minus_L_GCJ=yes
18809 hardcode_shlibpath_var_GCJ=no
18810 ;;
18811
18812 sysv4)
18813 case $host_vendor in
18814 sni)
18815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18816 hardcode_direct_GCJ=yes # is this really true???
18817 ;;
18818 siemens)
18819 ## LD is ld it makes a PLAMLIB
18820 ## CC just makes a GrossModule.
18821 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18822 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18823 hardcode_direct_GCJ=no
18824 ;;
18825 motorola)
18826 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18827 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18828 ;;
18829 esac
18830 runpath_var='LD_RUN_PATH'
18831 hardcode_shlibpath_var_GCJ=no
18832 ;;
18833
18834 sysv4.3*)
18835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18836 hardcode_shlibpath_var_GCJ=no
18837 export_dynamic_flag_spec_GCJ='-Bexport'
18838 ;;
18839
18840 sysv4*MP*)
18841 if test -d /usr/nec; then
18842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18843 hardcode_shlibpath_var_GCJ=no
18844 runpath_var=LD_RUN_PATH
18845 hardcode_runpath_var=yes
18846 ld_shlibs_GCJ=yes
18847 fi
18848 ;;
18849
18850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18851 no_undefined_flag_GCJ='${wl}-z,text'
18852 archive_cmds_need_lc_GCJ=no
18853 hardcode_shlibpath_var_GCJ=no
18854 runpath_var='LD_RUN_PATH'
18855
18856 if test "$GCC" = yes; then
18857 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18858 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18859 else
18860 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18861 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18862 fi
18863 ;;
18864
18865 sysv5* | sco3.2v5* | sco5v6*)
18866 # Note: We can NOT use -z defs as we might desire, because we do not
18867 # link with -lc, and that would cause any symbols used from libc to
18868 # always be unresolved, which means just about no library would
18869 # ever link correctly. If we're not using GNU ld we use -z text
18870 # though, which does catch some bad symbols but isn't as heavy-handed
18871 # as -z defs.
18872 no_undefined_flag_GCJ='${wl}-z,text'
18873 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18874 archive_cmds_need_lc_GCJ=no
18875 hardcode_shlibpath_var_GCJ=no
18876 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18877 hardcode_libdir_separator_GCJ=':'
18878 link_all_deplibs_GCJ=yes
18879 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18880 runpath_var='LD_RUN_PATH'
18881
18882 if test "$GCC" = yes; then
18883 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18884 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18885 else
18886 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18887 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18888 fi
18889 ;;
18890
18891 uts4*)
18892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18893 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18894 hardcode_shlibpath_var_GCJ=no
18895 ;;
18896
18897 *)
18898 ld_shlibs_GCJ=no
18899 ;;
18900 esac
18901 fi
18902
18903 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18904 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18905 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18906
18907 #
18908 # Do we need to explicitly link libc?
18909 #
18910 case "x$archive_cmds_need_lc_GCJ" in
18911 x|xyes)
18912 # Assume -lc should be added
18913 archive_cmds_need_lc_GCJ=yes
18914
18915 if test "$enable_shared" = yes && test "$GCC" = yes; then
18916 case $archive_cmds_GCJ in
18917 *'~'*)
18918 # FIXME: we may have to deal with multi-command sequences.
18919 ;;
18920 '$CC '*)
18921 # Test whether the compiler implicitly links with -lc since on some
18922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18923 # to ld, don't add -lc before -lgcc.
18924 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18925 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18926 $rm conftest*
18927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18928
18929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18930 (eval $ac_compile) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } 2>conftest.err; then
18934 soname=conftest
18935 lib=conftest
18936 libobjs=conftest.$ac_objext
18937 deplibs=
18938 wl=$lt_prog_compiler_wl_GCJ
18939 pic_flag=$lt_prog_compiler_pic_GCJ
18940 compiler_flags=-v
18941 linker_flags=-v
18942 verstring=
18943 output_objdir=.
18944 libname=conftest
18945 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18946 allow_undefined_flag_GCJ=
18947 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18948 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }
18952 then
18953 archive_cmds_need_lc_GCJ=no
18954 else
18955 archive_cmds_need_lc_GCJ=yes
18956 fi
18957 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18958 else
18959 cat conftest.err 1>&5
18960 fi
18961 $rm conftest*
18962 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18963 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18964 ;;
18965 esac
18966 fi
18967 ;;
18968 esac
18969
18970 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18971 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18972 library_names_spec=
18973 libname_spec='lib$name'
18974 soname_spec=
18975 shrext_cmds=".so"
18976 postinstall_cmds=
18977 postuninstall_cmds=
18978 finish_cmds=
18979 finish_eval=
18980 shlibpath_var=
18981 shlibpath_overrides_runpath=unknown
18982 version_type=none
18983 dynamic_linker="$host_os ld.so"
18984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18985 if test "$GCC" = yes; then
18986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18987 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18988 # if the path contains ";" then we assume it to be the separator
18989 # otherwise default to the standard path separator (i.e. ":") - it is
18990 # assumed that no part of a normal pathname contains ";" but that should
18991 # okay in the real world where ";" in dirpaths is itself problematic.
18992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18993 else
18994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18995 fi
18996 else
18997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18998 fi
18999 need_lib_prefix=unknown
19000 hardcode_into_libs=no
19001
19002 # when you set need_version to no, make sure it does not cause -set_version
19003 # flags to be left without arguments
19004 need_version=unknown
19005
19006 case $host_os in
19007 aix3*)
19008 version_type=linux
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19010 shlibpath_var=LIBPATH
19011
19012 # AIX 3 has no versioning support, so we append a major version to the name.
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 ;;
19015
19016 aix4* | aix5*)
19017 version_type=linux
19018 need_lib_prefix=no
19019 need_version=no
19020 hardcode_into_libs=yes
19021 if test "$host_cpu" = ia64; then
19022 # AIX 5 supports IA64
19023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19024 shlibpath_var=LD_LIBRARY_PATH
19025 else
19026 # With GCC up to 2.95.x, collect2 would create an import file
19027 # for dependence libraries. The import file would start with
19028 # the line `#! .'. This would cause the generated library to
19029 # depend on `.', always an invalid library. This was fixed in
19030 # development snapshots of GCC prior to 3.0.
19031 case $host_os in
19032 aix4 | aix4.[01] | aix4.[01].*)
19033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19034 echo ' yes '
19035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19036 :
19037 else
19038 can_build_shared=no
19039 fi
19040 ;;
19041 esac
19042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19043 # soname into executable. Probably we can add versioning support to
19044 # collect2, so additional links can be useful in future.
19045 if test "$aix_use_runtimelinking" = yes; then
19046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19047 # instead of lib<name>.a to let people know that these are not
19048 # typical AIX shared libraries.
19049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19050 else
19051 # We preserve .a as extension for shared libraries through AIX4.2
19052 # and later when we are not doing run time linking.
19053 library_names_spec='${libname}${release}.a $libname.a'
19054 soname_spec='${libname}${release}${shared_ext}$major'
19055 fi
19056 shlibpath_var=LIBPATH
19057 fi
19058 ;;
19059
19060 amigaos*)
19061 library_names_spec='$libname.ixlibrary $libname.a'
19062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19063 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'
19064 ;;
19065
19066 beos*)
19067 library_names_spec='${libname}${shared_ext}'
19068 dynamic_linker="$host_os ld.so"
19069 shlibpath_var=LIBRARY_PATH
19070 ;;
19071
19072 bsdi[45]*)
19073 version_type=linux
19074 need_version=no
19075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19076 soname_spec='${libname}${release}${shared_ext}$major'
19077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19078 shlibpath_var=LD_LIBRARY_PATH
19079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19081 # the default ld.so.conf also contains /usr/contrib/lib and
19082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19083 # libtool to hard-code these into programs
19084 ;;
19085
19086 cygwin* | mingw* | pw32*)
19087 version_type=windows
19088 shrext_cmds=".dll"
19089 need_version=no
19090 need_lib_prefix=no
19091
19092 case $GCC,$host_os in
19093 yes,cygwin* | yes,mingw* | yes,pw32*)
19094 library_names_spec='$libname.dll.a'
19095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19096 postinstall_cmds='base_file=`basename \${file}`~
19097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19098 dldir=$destdir/`dirname \$dlpath`~
19099 test -d \$dldir || mkdir -p \$dldir~
19100 $install_prog $dir/$dlname \$dldir/$dlname~
19101 chmod a+x \$dldir/$dlname'
19102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19103 dlpath=$dir/\$dldll~
19104 $rm \$dlpath'
19105 shlibpath_overrides_runpath=yes
19106
19107 case $host_os in
19108 cygwin*)
19109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19112 ;;
19113 mingw*)
19114 # MinGW DLLs use traditional 'lib' prefix
19115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19118 # It is most probably a Windows format PATH printed by
19119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19120 # path with ; separators, and with drive letters. We can handle the
19121 # drive letters (cygwin fileutils understands them), so leave them,
19122 # especially as we might pass files found there to a mingw objdump,
19123 # which wouldn't understand a cygwinified path. Ahh.
19124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19125 else
19126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19127 fi
19128 ;;
19129 pw32*)
19130 # pw32 DLLs use 'pw' prefix rather than 'lib'
19131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19132 ;;
19133 esac
19134 ;;
19135
19136 *)
19137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19138 ;;
19139 esac
19140 dynamic_linker='Win32 ld.exe'
19141 # FIXME: first we should search . and the directory the executable is in
19142 shlibpath_var=PATH
19143 ;;
19144
19145 darwin* | rhapsody*)
19146 dynamic_linker="$host_os dyld"
19147 version_type=darwin
19148 need_lib_prefix=no
19149 need_version=no
19150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19151 soname_spec='${libname}${release}${major}$shared_ext'
19152 shlibpath_overrides_runpath=yes
19153 shlibpath_var=DYLD_LIBRARY_PATH
19154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19155 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19156 if test "$GCC" = yes; then
19157 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"`
19158 else
19159 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19160 fi
19161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19162 ;;
19163
19164 dgux*)
19165 version_type=linux
19166 need_lib_prefix=no
19167 need_version=no
19168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19169 soname_spec='${libname}${release}${shared_ext}$major'
19170 shlibpath_var=LD_LIBRARY_PATH
19171 ;;
19172
19173 freebsd1*)
19174 dynamic_linker=no
19175 ;;
19176
19177 kfreebsd*-gnu)
19178 version_type=linux
19179 need_lib_prefix=no
19180 need_version=no
19181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19182 soname_spec='${libname}${release}${shared_ext}$major'
19183 shlibpath_var=LD_LIBRARY_PATH
19184 shlibpath_overrides_runpath=no
19185 hardcode_into_libs=yes
19186 dynamic_linker='GNU ld.so'
19187 ;;
19188
19189 freebsd* | dragonfly*)
19190 # DragonFly does not have aout. When/if they implement a new
19191 # versioning mechanism, adjust this.
19192 if test -x /usr/bin/objformat; then
19193 objformat=`/usr/bin/objformat`
19194 else
19195 case $host_os in
19196 freebsd[123]*) objformat=aout ;;
19197 *) objformat=elf ;;
19198 esac
19199 fi
19200 version_type=freebsd-$objformat
19201 case $version_type in
19202 freebsd-elf*)
19203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19204 need_version=no
19205 need_lib_prefix=no
19206 ;;
19207 freebsd-*)
19208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19209 need_version=yes
19210 ;;
19211 esac
19212 shlibpath_var=LD_LIBRARY_PATH
19213 case $host_os in
19214 freebsd2*)
19215 shlibpath_overrides_runpath=yes
19216 ;;
19217 freebsd3.[01]* | freebsdelf3.[01]*)
19218 shlibpath_overrides_runpath=yes
19219 hardcode_into_libs=yes
19220 ;;
19221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19223 shlibpath_overrides_runpath=no
19224 hardcode_into_libs=yes
19225 ;;
19226 freebsd*) # from 4.6 on
19227 shlibpath_overrides_runpath=yes
19228 hardcode_into_libs=yes
19229 ;;
19230 esac
19231 ;;
19232
19233 gnu*)
19234 version_type=linux
19235 need_lib_prefix=no
19236 need_version=no
19237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19238 soname_spec='${libname}${release}${shared_ext}$major'
19239 shlibpath_var=LD_LIBRARY_PATH
19240 hardcode_into_libs=yes
19241 ;;
19242
19243 hpux9* | hpux10* | hpux11*)
19244 # Give a soname corresponding to the major version so that dld.sl refuses to
19245 # link against other versions.
19246 version_type=sunos
19247 need_lib_prefix=no
19248 need_version=no
19249 case $host_cpu in
19250 ia64*)
19251 shrext_cmds='.so'
19252 hardcode_into_libs=yes
19253 dynamic_linker="$host_os dld.so"
19254 shlibpath_var=LD_LIBRARY_PATH
19255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19257 soname_spec='${libname}${release}${shared_ext}$major'
19258 if test "X$HPUX_IA64_MODE" = X32; then
19259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19260 else
19261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19262 fi
19263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19264 ;;
19265 hppa*64*)
19266 shrext_cmds='.sl'
19267 hardcode_into_libs=yes
19268 dynamic_linker="$host_os dld.sl"
19269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19272 soname_spec='${libname}${release}${shared_ext}$major'
19273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19275 ;;
19276 *)
19277 shrext_cmds='.sl'
19278 dynamic_linker="$host_os dld.sl"
19279 shlibpath_var=SHLIB_PATH
19280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19282 soname_spec='${libname}${release}${shared_ext}$major'
19283 ;;
19284 esac
19285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19286 postinstall_cmds='chmod 555 $lib'
19287 ;;
19288
19289 interix3*)
19290 version_type=linux
19291 need_lib_prefix=no
19292 need_version=no
19293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19294 soname_spec='${libname}${release}${shared_ext}$major'
19295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19296 shlibpath_var=LD_LIBRARY_PATH
19297 shlibpath_overrides_runpath=no
19298 hardcode_into_libs=yes
19299 ;;
19300
19301 irix5* | irix6* | nonstopux*)
19302 case $host_os in
19303 nonstopux*) version_type=nonstopux ;;
19304 *)
19305 if test "$lt_cv_prog_gnu_ld" = yes; then
19306 version_type=linux
19307 else
19308 version_type=irix
19309 fi ;;
19310 esac
19311 need_lib_prefix=no
19312 need_version=no
19313 soname_spec='${libname}${release}${shared_ext}$major'
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19315 case $host_os in
19316 irix5* | nonstopux*)
19317 libsuff= shlibsuff=
19318 ;;
19319 *)
19320 case $LD in # libtool.m4 will add one of these switches to LD
19321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19322 libsuff= shlibsuff= libmagic=32-bit;;
19323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19324 libsuff=32 shlibsuff=N32 libmagic=N32;;
19325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19327 *) libsuff= shlibsuff= libmagic=never-match;;
19328 esac
19329 ;;
19330 esac
19331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19332 shlibpath_overrides_runpath=no
19333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19335 hardcode_into_libs=yes
19336 ;;
19337
19338 # No shared lib support for Linux oldld, aout, or coff.
19339 linux*oldld* | linux*aout* | linux*coff*)
19340 dynamic_linker=no
19341 ;;
19342
19343 # This must be Linux ELF.
19344 linux*)
19345 version_type=linux
19346 need_lib_prefix=no
19347 need_version=no
19348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349 soname_spec='${libname}${release}${shared_ext}$major'
19350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19351 shlibpath_var=LD_LIBRARY_PATH
19352 shlibpath_overrides_runpath=no
19353 # This implies no fast_install, which is unacceptable.
19354 # Some rework will be needed to allow for fast_install
19355 # before this can be enabled.
19356 hardcode_into_libs=yes
19357
19358 # Append ld.so.conf contents to the search path
19359 if test -f /etc/ld.so.conf; then
19360 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' ' '`
19361 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19362 fi
19363
19364 # We used to test for /lib/ld.so.1 and disable shared libraries on
19365 # powerpc, because MkLinux only supported shared libraries with the
19366 # GNU dynamic linker. Since this was broken with cross compilers,
19367 # most powerpc-linux boxes support dynamic linking these days and
19368 # people can always --disable-shared, the test was removed, and we
19369 # assume the GNU/Linux dynamic linker is in use.
19370 dynamic_linker='GNU/Linux ld.so'
19371 ;;
19372
19373 knetbsd*-gnu)
19374 version_type=linux
19375 need_lib_prefix=no
19376 need_version=no
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19378 soname_spec='${libname}${release}${shared_ext}$major'
19379 shlibpath_var=LD_LIBRARY_PATH
19380 shlibpath_overrides_runpath=no
19381 hardcode_into_libs=yes
19382 dynamic_linker='GNU ld.so'
19383 ;;
19384
19385 netbsd*)
19386 version_type=sunos
19387 need_lib_prefix=no
19388 need_version=no
19389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19392 dynamic_linker='NetBSD (a.out) ld.so'
19393 else
19394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19395 soname_spec='${libname}${release}${shared_ext}$major'
19396 dynamic_linker='NetBSD ld.elf_so'
19397 fi
19398 shlibpath_var=LD_LIBRARY_PATH
19399 shlibpath_overrides_runpath=yes
19400 hardcode_into_libs=yes
19401 ;;
19402
19403 newsos6)
19404 version_type=linux
19405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406 shlibpath_var=LD_LIBRARY_PATH
19407 shlibpath_overrides_runpath=yes
19408 ;;
19409
19410 nto-qnx*)
19411 version_type=linux
19412 need_lib_prefix=no
19413 need_version=no
19414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19415 soname_spec='${libname}${release}${shared_ext}$major'
19416 shlibpath_var=LD_LIBRARY_PATH
19417 shlibpath_overrides_runpath=yes
19418 ;;
19419
19420 openbsd*)
19421 version_type=sunos
19422 sys_lib_dlsearch_path_spec="/usr/lib"
19423 need_lib_prefix=no
19424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19425 case $host_os in
19426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19427 *) need_version=no ;;
19428 esac
19429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19431 shlibpath_var=LD_LIBRARY_PATH
19432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19433 case $host_os in
19434 openbsd2.[89] | openbsd2.[89].*)
19435 shlibpath_overrides_runpath=no
19436 ;;
19437 *)
19438 shlibpath_overrides_runpath=yes
19439 ;;
19440 esac
19441 else
19442 shlibpath_overrides_runpath=yes
19443 fi
19444 ;;
19445
19446 os2*)
19447 libname_spec='$name'
19448 shrext_cmds=".dll"
19449 need_lib_prefix=no
19450 library_names_spec='$libname${shared_ext} $libname.a'
19451 dynamic_linker='OS/2 ld.exe'
19452 shlibpath_var=LIBPATH
19453 ;;
19454
19455 osf3* | osf4* | osf5*)
19456 version_type=osf
19457 need_lib_prefix=no
19458 need_version=no
19459 soname_spec='${libname}${release}${shared_ext}$major'
19460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19461 shlibpath_var=LD_LIBRARY_PATH
19462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19464 ;;
19465
19466 solaris*)
19467 version_type=linux
19468 need_lib_prefix=no
19469 need_version=no
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 shlibpath_overrides_runpath=yes
19474 hardcode_into_libs=yes
19475 # ldd complains unless libraries are executable
19476 postinstall_cmds='chmod +x $lib'
19477 ;;
19478
19479 sunos4*)
19480 version_type=sunos
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19483 shlibpath_var=LD_LIBRARY_PATH
19484 shlibpath_overrides_runpath=yes
19485 if test "$with_gnu_ld" = yes; then
19486 need_lib_prefix=no
19487 fi
19488 need_version=yes
19489 ;;
19490
19491 sysv4 | sysv4.3*)
19492 version_type=linux
19493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19494 soname_spec='${libname}${release}${shared_ext}$major'
19495 shlibpath_var=LD_LIBRARY_PATH
19496 case $host_vendor in
19497 sni)
19498 shlibpath_overrides_runpath=no
19499 need_lib_prefix=no
19500 export_dynamic_flag_spec='${wl}-Blargedynsym'
19501 runpath_var=LD_RUN_PATH
19502 ;;
19503 siemens)
19504 need_lib_prefix=no
19505 ;;
19506 motorola)
19507 need_lib_prefix=no
19508 need_version=no
19509 shlibpath_overrides_runpath=no
19510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19511 ;;
19512 esac
19513 ;;
19514
19515 sysv4*MP*)
19516 if test -d /usr/nec ;then
19517 version_type=linux
19518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19519 soname_spec='$libname${shared_ext}.$major'
19520 shlibpath_var=LD_LIBRARY_PATH
19521 fi
19522 ;;
19523
19524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19525 version_type=freebsd-elf
19526 need_lib_prefix=no
19527 need_version=no
19528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19529 soname_spec='${libname}${release}${shared_ext}$major'
19530 shlibpath_var=LD_LIBRARY_PATH
19531 hardcode_into_libs=yes
19532 if test "$with_gnu_ld" = yes; then
19533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19534 shlibpath_overrides_runpath=no
19535 else
19536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19537 shlibpath_overrides_runpath=yes
19538 case $host_os in
19539 sco3.2v5*)
19540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19541 ;;
19542 esac
19543 fi
19544 sys_lib_dlsearch_path_spec='/usr/lib'
19545 ;;
19546
19547 uts4*)
19548 version_type=linux
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19550 soname_spec='${libname}${release}${shared_ext}$major'
19551 shlibpath_var=LD_LIBRARY_PATH
19552 ;;
19553
19554 *)
19555 dynamic_linker=no
19556 ;;
19557 esac
19558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19559 echo "${ECHO_T}$dynamic_linker" >&6
19560 test "$dynamic_linker" = no && can_build_shared=no
19561
19562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19563 if test "$GCC" = yes; then
19564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19565 fi
19566
19567 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19568 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19569 hardcode_action_GCJ=
19570 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19571 test -n "$runpath_var_GCJ" || \
19572 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19573
19574 # We can hardcode non-existant directories.
19575 if test "$hardcode_direct_GCJ" != no &&
19576 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19577 # have to relink, otherwise we might link with an installed library
19578 # when we should be linking with a yet-to-be-installed one
19579 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19580 test "$hardcode_minus_L_GCJ" != no; then
19581 # Linking always hardcodes the temporary library directory.
19582 hardcode_action_GCJ=relink
19583 else
19584 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19585 hardcode_action_GCJ=immediate
19586 fi
19587 else
19588 # We cannot hardcode anything, or else we can only hardcode existing
19589 # directories.
19590 hardcode_action_GCJ=unsupported
19591 fi
19592 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19593 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19594
19595 if test "$hardcode_action_GCJ" = relink; then
19596 # Fast installation is not supported
19597 enable_fast_install=no
19598 elif test "$shlibpath_overrides_runpath" = yes ||
19599 test "$enable_shared" = no; then
19600 # Fast installation is not necessary
19601 enable_fast_install=needless
19602 fi
19603
19604
19605 # The else clause should only fire when bootstrapping the
19606 # libtool distribution, otherwise you forgot to ship ltmain.sh
19607 # with your package, and you will get complaints that there are
19608 # no rules to generate ltmain.sh.
19609 if test -f "$ltmain"; then
19610 # See if we are running on zsh, and set the options which allow our commands through
19611 # without removal of \ escapes.
19612 if test -n "${ZSH_VERSION+set}" ; then
19613 setopt NO_GLOB_SUBST
19614 fi
19615 # Now quote all the things that may contain metacharacters while being
19616 # careful not to overquote the AC_SUBSTed values. We take copies of the
19617 # variables and quote the copies for generation of the libtool script.
19618 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19619 SED SHELL STRIP \
19620 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19621 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19622 deplibs_check_method reload_flag reload_cmds need_locks \
19623 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19624 lt_cv_sys_global_symbol_to_c_name_address \
19625 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19626 old_postinstall_cmds old_postuninstall_cmds \
19627 compiler_GCJ \
19628 CC_GCJ \
19629 LD_GCJ \
19630 lt_prog_compiler_wl_GCJ \
19631 lt_prog_compiler_pic_GCJ \
19632 lt_prog_compiler_static_GCJ \
19633 lt_prog_compiler_no_builtin_flag_GCJ \
19634 export_dynamic_flag_spec_GCJ \
19635 thread_safe_flag_spec_GCJ \
19636 whole_archive_flag_spec_GCJ \
19637 enable_shared_with_static_runtimes_GCJ \
19638 old_archive_cmds_GCJ \
19639 old_archive_from_new_cmds_GCJ \
19640 predep_objects_GCJ \
19641 postdep_objects_GCJ \
19642 predeps_GCJ \
19643 postdeps_GCJ \
19644 compiler_lib_search_path_GCJ \
19645 archive_cmds_GCJ \
19646 archive_expsym_cmds_GCJ \
19647 postinstall_cmds_GCJ \
19648 postuninstall_cmds_GCJ \
19649 old_archive_from_expsyms_cmds_GCJ \
19650 allow_undefined_flag_GCJ \
19651 no_undefined_flag_GCJ \
19652 export_symbols_cmds_GCJ \
19653 hardcode_libdir_flag_spec_GCJ \
19654 hardcode_libdir_flag_spec_ld_GCJ \
19655 hardcode_libdir_separator_GCJ \
19656 hardcode_automatic_GCJ \
19657 module_cmds_GCJ \
19658 module_expsym_cmds_GCJ \
19659 lt_cv_prog_compiler_c_o_GCJ \
19660 exclude_expsyms_GCJ \
19661 include_expsyms_GCJ; do
19662
19663 case $var in
19664 old_archive_cmds_GCJ | \
19665 old_archive_from_new_cmds_GCJ | \
19666 archive_cmds_GCJ | \
19667 archive_expsym_cmds_GCJ | \
19668 module_cmds_GCJ | \
19669 module_expsym_cmds_GCJ | \
19670 old_archive_from_expsyms_cmds_GCJ | \
19671 export_symbols_cmds_GCJ | \
19672 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19673 postinstall_cmds | postuninstall_cmds | \
19674 old_postinstall_cmds | old_postuninstall_cmds | \
19675 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19676 # Double-quote double-evaled strings.
19677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19678 ;;
19679 *)
19680 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19681 ;;
19682 esac
19683 done
19684
19685 case $lt_echo in
19686 *'\$0 --fallback-echo"')
19687 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19688 ;;
19689 esac
19690
19691 cfgfile="$ofile"
19692
19693 cat <<__EOF__ >> "$cfgfile"
19694 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19695
19696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19697
19698 # Shell to use when invoking shell scripts.
19699 SHELL=$lt_SHELL
19700
19701 # Whether or not to build shared libraries.
19702 build_libtool_libs=$enable_shared
19703
19704 # Whether or not to build static libraries.
19705 build_old_libs=$enable_static
19706
19707 # Whether or not to add -lc for building shared libraries.
19708 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19709
19710 # Whether or not to disallow shared libs when runtime libs are static
19711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19712
19713 # Whether or not to optimize for fast installation.
19714 fast_install=$enable_fast_install
19715
19716 # The host system.
19717 host_alias=$host_alias
19718 host=$host
19719 host_os=$host_os
19720
19721 # The build system.
19722 build_alias=$build_alias
19723 build=$build
19724 build_os=$build_os
19725
19726 # An echo program that does not interpret backslashes.
19727 echo=$lt_echo
19728
19729 # The archiver.
19730 AR=$lt_AR
19731 AR_FLAGS=$lt_AR_FLAGS
19732
19733 # A C compiler.
19734 LTCC=$lt_LTCC
19735
19736 # LTCC compiler flags.
19737 LTCFLAGS=$lt_LTCFLAGS
19738
19739 # A language-specific compiler.
19740 CC=$lt_compiler_GCJ
19741
19742 # Is the compiler the GNU C compiler?
19743 with_gcc=$GCC_GCJ
19744
19745 # An ERE matcher.
19746 EGREP=$lt_EGREP
19747
19748 # The linker used to build libraries.
19749 LD=$lt_LD_GCJ
19750
19751 # Whether we need hard or soft links.
19752 LN_S=$lt_LN_S
19753
19754 # A BSD-compatible nm program.
19755 NM=$lt_NM
19756
19757 # A symbol stripping program
19758 STRIP=$lt_STRIP
19759
19760 # Used to examine libraries when file_magic_cmd begins "file"
19761 MAGIC_CMD=$MAGIC_CMD
19762
19763 # Used on cygwin: DLL creation program.
19764 DLLTOOL="$DLLTOOL"
19765
19766 # Used on cygwin: object dumper.
19767 OBJDUMP="$OBJDUMP"
19768
19769 # Used on cygwin: assembler.
19770 AS="$AS"
19771
19772 # The name of the directory that contains temporary libtool files.
19773 objdir=$objdir
19774
19775 # How to create reloadable object files.
19776 reload_flag=$lt_reload_flag
19777 reload_cmds=$lt_reload_cmds
19778
19779 # How to pass a linker flag through the compiler.
19780 wl=$lt_lt_prog_compiler_wl_GCJ
19781
19782 # Object file suffix (normally "o").
19783 objext="$ac_objext"
19784
19785 # Old archive suffix (normally "a").
19786 libext="$libext"
19787
19788 # Shared library suffix (normally ".so").
19789 shrext_cmds='$shrext_cmds'
19790
19791 # Executable file suffix (normally "").
19792 exeext="$exeext"
19793
19794 # Additional compiler flags for building library objects.
19795 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19796 pic_mode=$pic_mode
19797
19798 # What is the maximum length of a command?
19799 max_cmd_len=$lt_cv_sys_max_cmd_len
19800
19801 # Does compiler simultaneously support -c and -o options?
19802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19803
19804 # Must we lock files when doing compilation?
19805 need_locks=$lt_need_locks
19806
19807 # Do we need the lib prefix for modules?
19808 need_lib_prefix=$need_lib_prefix
19809
19810 # Do we need a version for libraries?
19811 need_version=$need_version
19812
19813 # Whether dlopen is supported.
19814 dlopen_support=$enable_dlopen
19815
19816 # Whether dlopen of programs is supported.
19817 dlopen_self=$enable_dlopen_self
19818
19819 # Whether dlopen of statically linked programs is supported.
19820 dlopen_self_static=$enable_dlopen_self_static
19821
19822 # Compiler flag to prevent dynamic linking.
19823 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19824
19825 # Compiler flag to turn off builtin functions.
19826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19827
19828 # Compiler flag to allow reflexive dlopens.
19829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19830
19831 # Compiler flag to generate shared objects directly from archives.
19832 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19833
19834 # Compiler flag to generate thread-safe objects.
19835 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19836
19837 # Library versioning type.
19838 version_type=$version_type
19839
19840 # Format of library name prefix.
19841 libname_spec=$lt_libname_spec
19842
19843 # List of archive names. First name is the real one, the rest are links.
19844 # The last name is the one that the linker finds with -lNAME.
19845 library_names_spec=$lt_library_names_spec
19846
19847 # The coded name of the library, if different from the real name.
19848 soname_spec=$lt_soname_spec
19849
19850 # Commands used to build and install an old-style archive.
19851 RANLIB=$lt_RANLIB
19852 old_archive_cmds=$lt_old_archive_cmds_GCJ
19853 old_postinstall_cmds=$lt_old_postinstall_cmds
19854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19855
19856 # Create an old-style archive from a shared archive.
19857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19858
19859 # Create a temporary old-style archive to link instead of a shared archive.
19860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19861
19862 # Commands used to build and install a shared archive.
19863 archive_cmds=$lt_archive_cmds_GCJ
19864 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19865 postinstall_cmds=$lt_postinstall_cmds
19866 postuninstall_cmds=$lt_postuninstall_cmds
19867
19868 # Commands used to build a loadable module (assumed same as above if empty)
19869 module_cmds=$lt_module_cmds_GCJ
19870 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19871
19872 # Commands to strip libraries.
19873 old_striplib=$lt_old_striplib
19874 striplib=$lt_striplib
19875
19876 # Dependencies to place before the objects being linked to create a
19877 # shared library.
19878 predep_objects=$lt_predep_objects_GCJ
19879
19880 # Dependencies to place after the objects being linked to create a
19881 # shared library.
19882 postdep_objects=$lt_postdep_objects_GCJ
19883
19884 # Dependencies to place before the objects being linked to create a
19885 # shared library.
19886 predeps=$lt_predeps_GCJ
19887
19888 # Dependencies to place after the objects being linked to create a
19889 # shared library.
19890 postdeps=$lt_postdeps_GCJ
19891
19892 # The library search path used internally by the compiler when linking
19893 # a shared library.
19894 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19895
19896 # Method to check whether dependent libraries are shared objects.
19897 deplibs_check_method=$lt_deplibs_check_method
19898
19899 # Command to use when deplibs_check_method == file_magic.
19900 file_magic_cmd=$lt_file_magic_cmd
19901
19902 # Flag that allows shared libraries with undefined symbols to be built.
19903 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19904
19905 # Flag that forces no undefined symbols.
19906 no_undefined_flag=$lt_no_undefined_flag_GCJ
19907
19908 # Commands used to finish a libtool library installation in a directory.
19909 finish_cmds=$lt_finish_cmds
19910
19911 # Same as above, but a single script fragment to be evaled but not shown.
19912 finish_eval=$lt_finish_eval
19913
19914 # Take the output of nm and produce a listing of raw symbols and C names.
19915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19916
19917 # Transform the output of nm in a proper C declaration
19918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19919
19920 # Transform the output of nm in a C name address pair
19921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19922
19923 # This is the shared library runtime path variable.
19924 runpath_var=$runpath_var
19925
19926 # This is the shared library path variable.
19927 shlibpath_var=$shlibpath_var
19928
19929 # Is shlibpath searched before the hard-coded library search path?
19930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19931
19932 # How to hardcode a shared library path into an executable.
19933 hardcode_action=$hardcode_action_GCJ
19934
19935 # Whether we should hardcode library paths into libraries.
19936 hardcode_into_libs=$hardcode_into_libs
19937
19938 # Flag to hardcode \$libdir into a binary during linking.
19939 # This must work even if \$libdir does not exist.
19940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19941
19942 # If ld is used when linking, flag to hardcode \$libdir into
19943 # a binary during linking. This must work even if \$libdir does
19944 # not exist.
19945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19946
19947 # Whether we need a single -rpath flag with a separated argument.
19948 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19949
19950 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19951 # resulting binary.
19952 hardcode_direct=$hardcode_direct_GCJ
19953
19954 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_minus_L=$hardcode_minus_L_GCJ
19957
19958 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19959 # the resulting binary.
19960 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19961
19962 # Set to yes if building a shared library automatically hardcodes DIR into the library
19963 # and all subsequent libraries and executables linked against it.
19964 hardcode_automatic=$hardcode_automatic_GCJ
19965
19966 # Variables whose values should be saved in libtool wrapper scripts and
19967 # restored at relink time.
19968 variables_saved_for_relink="$variables_saved_for_relink"
19969
19970 # Whether libtool must link a program against all its dependency libraries.
19971 link_all_deplibs=$link_all_deplibs_GCJ
19972
19973 # Compile-time system search path for libraries
19974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19975
19976 # Run-time system search path for libraries
19977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19978
19979 # Fix the shell variable \$srcfile for the compiler.
19980 fix_srcfile_path="$fix_srcfile_path_GCJ"
19981
19982 # Set to yes if exported symbols are required.
19983 always_export_symbols=$always_export_symbols_GCJ
19984
19985 # The commands to list exported symbols.
19986 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19987
19988 # The commands to extract the exported symbol list from a shared archive.
19989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19990
19991 # Symbols that should not be listed in the preloaded symbols.
19992 exclude_expsyms=$lt_exclude_expsyms_GCJ
19993
19994 # Symbols that must always be exported.
19995 include_expsyms=$lt_include_expsyms_GCJ
19996
19997 # ### END LIBTOOL TAG CONFIG: $tagname
19998
19999 __EOF__
20000
20001
20002 else
20003 # If there is no Makefile yet, we rely on a make rule to execute
20004 # `config.status --recheck' to rerun these tests and create the
20005 # libtool script then.
20006 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20007 if test -f "$ltmain_in"; then
20008 test -f Makefile && make "$ltmain"
20009 fi
20010 fi
20011
20012
20013 ac_ext=c
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018
20019 CC="$lt_save_CC"
20020
20021 else
20022 tagname=""
20023 fi
20024 ;;
20025
20026 RC)
20027
20028
20029
20030 # Source file extension for RC test sources.
20031 ac_ext=rc
20032
20033 # Object file extension for compiled RC test sources.
20034 objext=o
20035 objext_RC=$objext
20036
20037 # Code to be used in simple compile tests
20038 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20039
20040 # Code to be used in simple link tests
20041 lt_simple_link_test_code="$lt_simple_compile_test_code"
20042
20043 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20044
20045 # If no C compiler was specified, use CC.
20046 LTCC=${LTCC-"$CC"}
20047
20048 # If no C compiler flags were specified, use CFLAGS.
20049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20050
20051 # Allow CC to be a program name with arguments.
20052 compiler=$CC
20053
20054
20055 # save warnings/boilerplate of simple test code
20056 ac_outfile=conftest.$ac_objext
20057 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20058 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20059 _lt_compiler_boilerplate=`cat conftest.err`
20060 $rm conftest*
20061
20062 ac_outfile=conftest.$ac_objext
20063 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20064 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20065 _lt_linker_boilerplate=`cat conftest.err`
20066 $rm conftest*
20067
20068
20069 # Allow CC to be a program name with arguments.
20070 lt_save_CC="$CC"
20071 CC=${RC-"windres"}
20072 compiler=$CC
20073 compiler_RC=$CC
20074 for cc_temp in $compiler""; do
20075 case $cc_temp in
20076 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20077 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20078 \-*) ;;
20079 *) break;;
20080 esac
20081 done
20082 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20083
20084 lt_cv_prog_compiler_c_o_RC=yes
20085
20086 # The else clause should only fire when bootstrapping the
20087 # libtool distribution, otherwise you forgot to ship ltmain.sh
20088 # with your package, and you will get complaints that there are
20089 # no rules to generate ltmain.sh.
20090 if test -f "$ltmain"; then
20091 # See if we are running on zsh, and set the options which allow our commands through
20092 # without removal of \ escapes.
20093 if test -n "${ZSH_VERSION+set}" ; then
20094 setopt NO_GLOB_SUBST
20095 fi
20096 # Now quote all the things that may contain metacharacters while being
20097 # careful not to overquote the AC_SUBSTed values. We take copies of the
20098 # variables and quote the copies for generation of the libtool script.
20099 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20100 SED SHELL STRIP \
20101 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20102 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20103 deplibs_check_method reload_flag reload_cmds need_locks \
20104 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20105 lt_cv_sys_global_symbol_to_c_name_address \
20106 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20107 old_postinstall_cmds old_postuninstall_cmds \
20108 compiler_RC \
20109 CC_RC \
20110 LD_RC \
20111 lt_prog_compiler_wl_RC \
20112 lt_prog_compiler_pic_RC \
20113 lt_prog_compiler_static_RC \
20114 lt_prog_compiler_no_builtin_flag_RC \
20115 export_dynamic_flag_spec_RC \
20116 thread_safe_flag_spec_RC \
20117 whole_archive_flag_spec_RC \
20118 enable_shared_with_static_runtimes_RC \
20119 old_archive_cmds_RC \
20120 old_archive_from_new_cmds_RC \
20121 predep_objects_RC \
20122 postdep_objects_RC \
20123 predeps_RC \
20124 postdeps_RC \
20125 compiler_lib_search_path_RC \
20126 archive_cmds_RC \
20127 archive_expsym_cmds_RC \
20128 postinstall_cmds_RC \
20129 postuninstall_cmds_RC \
20130 old_archive_from_expsyms_cmds_RC \
20131 allow_undefined_flag_RC \
20132 no_undefined_flag_RC \
20133 export_symbols_cmds_RC \
20134 hardcode_libdir_flag_spec_RC \
20135 hardcode_libdir_flag_spec_ld_RC \
20136 hardcode_libdir_separator_RC \
20137 hardcode_automatic_RC \
20138 module_cmds_RC \
20139 module_expsym_cmds_RC \
20140 lt_cv_prog_compiler_c_o_RC \
20141 exclude_expsyms_RC \
20142 include_expsyms_RC; do
20143
20144 case $var in
20145 old_archive_cmds_RC | \
20146 old_archive_from_new_cmds_RC | \
20147 archive_cmds_RC | \
20148 archive_expsym_cmds_RC | \
20149 module_cmds_RC | \
20150 module_expsym_cmds_RC | \
20151 old_archive_from_expsyms_cmds_RC | \
20152 export_symbols_cmds_RC | \
20153 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20154 postinstall_cmds | postuninstall_cmds | \
20155 old_postinstall_cmds | old_postuninstall_cmds | \
20156 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20157 # Double-quote double-evaled strings.
20158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20159 ;;
20160 *)
20161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20162 ;;
20163 esac
20164 done
20165
20166 case $lt_echo in
20167 *'\$0 --fallback-echo"')
20168 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20169 ;;
20170 esac
20171
20172 cfgfile="$ofile"
20173
20174 cat <<__EOF__ >> "$cfgfile"
20175 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20176
20177 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20178
20179 # Shell to use when invoking shell scripts.
20180 SHELL=$lt_SHELL
20181
20182 # Whether or not to build shared libraries.
20183 build_libtool_libs=$enable_shared
20184
20185 # Whether or not to build static libraries.
20186 build_old_libs=$enable_static
20187
20188 # Whether or not to add -lc for building shared libraries.
20189 build_libtool_need_lc=$archive_cmds_need_lc_RC
20190
20191 # Whether or not to disallow shared libs when runtime libs are static
20192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20193
20194 # Whether or not to optimize for fast installation.
20195 fast_install=$enable_fast_install
20196
20197 # The host system.
20198 host_alias=$host_alias
20199 host=$host
20200 host_os=$host_os
20201
20202 # The build system.
20203 build_alias=$build_alias
20204 build=$build
20205 build_os=$build_os
20206
20207 # An echo program that does not interpret backslashes.
20208 echo=$lt_echo
20209
20210 # The archiver.
20211 AR=$lt_AR
20212 AR_FLAGS=$lt_AR_FLAGS
20213
20214 # A C compiler.
20215 LTCC=$lt_LTCC
20216
20217 # LTCC compiler flags.
20218 LTCFLAGS=$lt_LTCFLAGS
20219
20220 # A language-specific compiler.
20221 CC=$lt_compiler_RC
20222
20223 # Is the compiler the GNU C compiler?
20224 with_gcc=$GCC_RC
20225
20226 # An ERE matcher.
20227 EGREP=$lt_EGREP
20228
20229 # The linker used to build libraries.
20230 LD=$lt_LD_RC
20231
20232 # Whether we need hard or soft links.
20233 LN_S=$lt_LN_S
20234
20235 # A BSD-compatible nm program.
20236 NM=$lt_NM
20237
20238 # A symbol stripping program
20239 STRIP=$lt_STRIP
20240
20241 # Used to examine libraries when file_magic_cmd begins "file"
20242 MAGIC_CMD=$MAGIC_CMD
20243
20244 # Used on cygwin: DLL creation program.
20245 DLLTOOL="$DLLTOOL"
20246
20247 # Used on cygwin: object dumper.
20248 OBJDUMP="$OBJDUMP"
20249
20250 # Used on cygwin: assembler.
20251 AS="$AS"
20252
20253 # The name of the directory that contains temporary libtool files.
20254 objdir=$objdir
20255
20256 # How to create reloadable object files.
20257 reload_flag=$lt_reload_flag
20258 reload_cmds=$lt_reload_cmds
20259
20260 # How to pass a linker flag through the compiler.
20261 wl=$lt_lt_prog_compiler_wl_RC
20262
20263 # Object file suffix (normally "o").
20264 objext="$ac_objext"
20265
20266 # Old archive suffix (normally "a").
20267 libext="$libext"
20268
20269 # Shared library suffix (normally ".so").
20270 shrext_cmds='$shrext_cmds'
20271
20272 # Executable file suffix (normally "").
20273 exeext="$exeext"
20274
20275 # Additional compiler flags for building library objects.
20276 pic_flag=$lt_lt_prog_compiler_pic_RC
20277 pic_mode=$pic_mode
20278
20279 # What is the maximum length of a command?
20280 max_cmd_len=$lt_cv_sys_max_cmd_len
20281
20282 # Does compiler simultaneously support -c and -o options?
20283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20284
20285 # Must we lock files when doing compilation?
20286 need_locks=$lt_need_locks
20287
20288 # Do we need the lib prefix for modules?
20289 need_lib_prefix=$need_lib_prefix
20290
20291 # Do we need a version for libraries?
20292 need_version=$need_version
20293
20294 # Whether dlopen is supported.
20295 dlopen_support=$enable_dlopen
20296
20297 # Whether dlopen of programs is supported.
20298 dlopen_self=$enable_dlopen_self
20299
20300 # Whether dlopen of statically linked programs is supported.
20301 dlopen_self_static=$enable_dlopen_self_static
20302
20303 # Compiler flag to prevent dynamic linking.
20304 link_static_flag=$lt_lt_prog_compiler_static_RC
20305
20306 # Compiler flag to turn off builtin functions.
20307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20308
20309 # Compiler flag to allow reflexive dlopens.
20310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20311
20312 # Compiler flag to generate shared objects directly from archives.
20313 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20314
20315 # Compiler flag to generate thread-safe objects.
20316 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20317
20318 # Library versioning type.
20319 version_type=$version_type
20320
20321 # Format of library name prefix.
20322 libname_spec=$lt_libname_spec
20323
20324 # List of archive names. First name is the real one, the rest are links.
20325 # The last name is the one that the linker finds with -lNAME.
20326 library_names_spec=$lt_library_names_spec
20327
20328 # The coded name of the library, if different from the real name.
20329 soname_spec=$lt_soname_spec
20330
20331 # Commands used to build and install an old-style archive.
20332 RANLIB=$lt_RANLIB
20333 old_archive_cmds=$lt_old_archive_cmds_RC
20334 old_postinstall_cmds=$lt_old_postinstall_cmds
20335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20336
20337 # Create an old-style archive from a shared archive.
20338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20339
20340 # Create a temporary old-style archive to link instead of a shared archive.
20341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20342
20343 # Commands used to build and install a shared archive.
20344 archive_cmds=$lt_archive_cmds_RC
20345 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20346 postinstall_cmds=$lt_postinstall_cmds
20347 postuninstall_cmds=$lt_postuninstall_cmds
20348
20349 # Commands used to build a loadable module (assumed same as above if empty)
20350 module_cmds=$lt_module_cmds_RC
20351 module_expsym_cmds=$lt_module_expsym_cmds_RC
20352
20353 # Commands to strip libraries.
20354 old_striplib=$lt_old_striplib
20355 striplib=$lt_striplib
20356
20357 # Dependencies to place before the objects being linked to create a
20358 # shared library.
20359 predep_objects=$lt_predep_objects_RC
20360
20361 # Dependencies to place after the objects being linked to create a
20362 # shared library.
20363 postdep_objects=$lt_postdep_objects_RC
20364
20365 # Dependencies to place before the objects being linked to create a
20366 # shared library.
20367 predeps=$lt_predeps_RC
20368
20369 # Dependencies to place after the objects being linked to create a
20370 # shared library.
20371 postdeps=$lt_postdeps_RC
20372
20373 # The library search path used internally by the compiler when linking
20374 # a shared library.
20375 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20376
20377 # Method to check whether dependent libraries are shared objects.
20378 deplibs_check_method=$lt_deplibs_check_method
20379
20380 # Command to use when deplibs_check_method == file_magic.
20381 file_magic_cmd=$lt_file_magic_cmd
20382
20383 # Flag that allows shared libraries with undefined symbols to be built.
20384 allow_undefined_flag=$lt_allow_undefined_flag_RC
20385
20386 # Flag that forces no undefined symbols.
20387 no_undefined_flag=$lt_no_undefined_flag_RC
20388
20389 # Commands used to finish a libtool library installation in a directory.
20390 finish_cmds=$lt_finish_cmds
20391
20392 # Same as above, but a single script fragment to be evaled but not shown.
20393 finish_eval=$lt_finish_eval
20394
20395 # Take the output of nm and produce a listing of raw symbols and C names.
20396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20397
20398 # Transform the output of nm in a proper C declaration
20399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20400
20401 # Transform the output of nm in a C name address pair
20402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20403
20404 # This is the shared library runtime path variable.
20405 runpath_var=$runpath_var
20406
20407 # This is the shared library path variable.
20408 shlibpath_var=$shlibpath_var
20409
20410 # Is shlibpath searched before the hard-coded library search path?
20411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20412
20413 # How to hardcode a shared library path into an executable.
20414 hardcode_action=$hardcode_action_RC
20415
20416 # Whether we should hardcode library paths into libraries.
20417 hardcode_into_libs=$hardcode_into_libs
20418
20419 # Flag to hardcode \$libdir into a binary during linking.
20420 # This must work even if \$libdir does not exist.
20421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20422
20423 # If ld is used when linking, flag to hardcode \$libdir into
20424 # a binary during linking. This must work even if \$libdir does
20425 # not exist.
20426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20427
20428 # Whether we need a single -rpath flag with a separated argument.
20429 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20430
20431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20432 # resulting binary.
20433 hardcode_direct=$hardcode_direct_RC
20434
20435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20436 # resulting binary.
20437 hardcode_minus_L=$hardcode_minus_L_RC
20438
20439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20440 # the resulting binary.
20441 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20442
20443 # Set to yes if building a shared library automatically hardcodes DIR into the library
20444 # and all subsequent libraries and executables linked against it.
20445 hardcode_automatic=$hardcode_automatic_RC
20446
20447 # Variables whose values should be saved in libtool wrapper scripts and
20448 # restored at relink time.
20449 variables_saved_for_relink="$variables_saved_for_relink"
20450
20451 # Whether libtool must link a program against all its dependency libraries.
20452 link_all_deplibs=$link_all_deplibs_RC
20453
20454 # Compile-time system search path for libraries
20455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20456
20457 # Run-time system search path for libraries
20458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20459
20460 # Fix the shell variable \$srcfile for the compiler.
20461 fix_srcfile_path="$fix_srcfile_path_RC"
20462
20463 # Set to yes if exported symbols are required.
20464 always_export_symbols=$always_export_symbols_RC
20465
20466 # The commands to list exported symbols.
20467 export_symbols_cmds=$lt_export_symbols_cmds_RC
20468
20469 # The commands to extract the exported symbol list from a shared archive.
20470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20471
20472 # Symbols that should not be listed in the preloaded symbols.
20473 exclude_expsyms=$lt_exclude_expsyms_RC
20474
20475 # Symbols that must always be exported.
20476 include_expsyms=$lt_include_expsyms_RC
20477
20478 # ### END LIBTOOL TAG CONFIG: $tagname
20479
20480 __EOF__
20481
20482
20483 else
20484 # If there is no Makefile yet, we rely on a make rule to execute
20485 # `config.status --recheck' to rerun these tests and create the
20486 # libtool script then.
20487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20488 if test -f "$ltmain_in"; then
20489 test -f Makefile && make "$ltmain"
20490 fi
20491 fi
20492
20493
20494 ac_ext=c
20495 ac_cpp='$CPP $CPPFLAGS'
20496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499
20500 CC="$lt_save_CC"
20501
20502 ;;
20503
20504 *)
20505 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20506 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20507 { (exit 1); exit 1; }; }
20508 ;;
20509 esac
20510
20511 # Append the new tag name to the list of available tags.
20512 if test -n "$tagname" ; then
20513 available_tags="$available_tags $tagname"
20514 fi
20515 fi
20516 done
20517 IFS="$lt_save_ifs"
20518
20519 # Now substitute the updated list of available tags.
20520 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20521 mv "${ofile}T" "$ofile"
20522 chmod +x "$ofile"
20523 else
20524 rm -f "${ofile}T"
20525 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20526 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20527 { (exit 1); exit 1; }; }
20528 fi
20529 fi
20530
20531
20532
20533 # This can be used to rebuild libtool when needed
20534 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20535
20536 # Always use our own libtool.
20537 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20538
20539 # Prevent multiple expansion
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20552 # AC_REQUIRE([AC_COIN_DLFCN_H])
20553
20554 # NEW: If libtool exists in the directory higher up, we use that one
20555 # instead of creating a new one
20556
20557 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20558 # out in front of this macro body. You'll notice that LIBTOOL is already
20559 # defined here. We'll have to count on this macro not being called if libtool
20560 # already exists, or at least move the libtool fixes outside the conditional.
20561 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20562 # This test is therefore removed. -- lh, 061214 --
20563 # if test "x$LIBTOOL" = x; then
20564
20565 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20576
20577
20578
20579 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20580 echo "$as_me: Build is \"$build\"." >&6;}
20581 # Extract the first word of "dos2unix", so it can be a program name with args.
20582 set dummy dos2unix; ac_word=$2
20583 echo "$as_me:$LINENO: checking for $ac_word" >&5
20584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20585 if test "${ac_cv_prog_dos2unix+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588 if test -n "$dos2unix"; then
20589 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20590 else
20591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20592 for as_dir in $PATH
20593 do
20594 IFS=$as_save_IFS
20595 test -z "$as_dir" && as_dir=.
20596 for ac_exec_ext in '' $ac_executable_extensions; do
20597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20598 ac_cv_prog_dos2unix="dos2unix"
20599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20600 break 2
20601 fi
20602 done
20603 done
20604
20605 fi
20606 fi
20607 dos2unix=$ac_cv_prog_dos2unix
20608 if test -n "$dos2unix"; then
20609 echo "$as_me:$LINENO: result: $dos2unix" >&5
20610 echo "${ECHO_T}$dos2unix" >&6
20611 else
20612 echo "$as_me:$LINENO: result: no" >&5
20613 echo "${ECHO_T}no" >&6
20614 fi
20615
20616 if test "$dos2unix" = dos2unix ; then
20617 mydos2unix="| dos2unix"
20618 fi
20619 case $build in
20620 *-mingw*)
20621 CYGPATH_W=echo
20622 ;;
20623 esac
20624
20625 case $build in
20626 # Here we need to check if -m32 is specified. If so, we need to correct
20627 # sys_lib_search_path_spec
20628 *-cygwin* | *-mingw*)
20629 case "$CXX" in
20630 clang* )
20631 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20632 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20633 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20634 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20635 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20636 -e 's|libext="lib"|libext="a"|' \
20637 libtool > conftest.bla
20638 ;;
20639 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20640 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20641 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20642 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20643 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20644 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20645 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20646 -e 's%lib /OUT:%lib -OUT:%' \
20647 -e "s%cygpath -w%$CYGPATH_W%" \
20648 -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%' \
20649 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20650 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20651 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20652 -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"%' \
20653 libtool > conftest.bla
20654 ;;
20655 *)
20656 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20657 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20658 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20659 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20660 -e 's|libext="lib"|libext="a"|' \
20661 libtool > conftest.bla
20662 ;;
20663 esac
20664 mv conftest.bla libtool
20665 chmod 755 libtool
20666
20667 ;;
20668 *x86_64-*)
20669 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20670 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20671 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20672 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20673 mv conftest.bla libtool
20674 chmod 755 libtool
20675 fi
20676 ;;
20677
20678 *-solaris*)
20679 if test "$GCC" = yes && \
20680 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20681 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20682 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20683 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20684 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20685 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20686 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20687 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20688 # AC_MSG_NOTICE(Compensating for broken gcc)
20689 for lib in $fixlibtmp ; do
20690 if test -d "${lib}${hdwisa}" ; then
20691 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20692 fi
20693 done
20694 syslibpath64="${syslibpath64} ${fixlibtmp}"
20695 else
20696 syslibpath64="$fixlibtmp"
20697 fi
20698 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20699 mv conftest.bla libtool
20700 chmod 755 libtool
20701 fi
20702 # AC_MSG_NOTICE(Result is )
20703 # $EGREP 'sys_lib_search_path_spec=' libtool
20704 fi
20705 ;;
20706 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20707 *-darwin*)
20708 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20709 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20710 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"/' \
20711 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20712 libtool > conftest.bla
20713
20714 mv conftest.bla libtool
20715 chmod 755 libtool
20716 ;;
20717 esac
20718 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20719 # the macro. -- lh, 061214 --
20720 # fi
20721
20722 # AC_MSG_NOTICE([End libtool initialisation.])
20723
20724 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20725 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20726 # of the shared objects
20727 RPATH_FLAGS=
20728
20729 if test $enable_shared = yes; then
20730 case $build in
20731 *-linux-*)
20732 if test "$GXX" = "yes"; then
20733 RPATH_FLAGS=
20734 for dir in $abs_lib_dir; do
20735 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20736 done
20737 fi ;;
20738 *-darwin*)
20739 RPATH_FLAGS=nothing ;;
20740 *-ibm-*)
20741 case "$CXX" in
20742 xlC* | */xlC* | mpxlC* | */mpxlC*)
20743 RPATH_FLAGS=nothing ;;
20744 esac ;;
20745 *-hp-*)
20746 RPATH_FLAGS=nothing ;;
20747 *-mingw32)
20748 RPATH_FLAGS=nothing ;;
20749 *-*-solaris*)
20750 RPATH_FLAGS=
20751 for dir in $abs_lib_dir; do
20752 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20753 done
20754 esac
20755
20756 if test "$RPATH_FLAGS" = ""; then
20757 { 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
20758 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;}
20759 fi
20760 if test "$RPATH_FLAGS" = "nothing"; then
20761 RPATH_FLAGS=
20762 fi
20763 fi
20764
20765
20766
20767
20768 else
20769
20770 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20771 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20772 # get all missing information from the config.log file
20773
20774 # output variables and defines
20775 as_save_IFS=$IFS
20776 IFS='
20777 '
20778 for oneline in `cat $coin_config_dir/config.status`; do
20779 case "$oneline" in
20780 # First some automake conditionals
20781 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20782 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20783 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20784 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20785 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20786 # echo "$command"
20787 eval "$command"
20788 ;;
20789 s,@DEFS@* )
20790 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20791 # echo "$command"
20792 eval "$command"
20793 ;;
20794 esac
20795 done
20796 IFS=$as_save_IFS
20797
20798 # And some defines (assuming here that the packages base dir
20799 # doesn't have a config.h file
20800 for word in $defsline; do
20801 # echo word $word
20802 case $word in
20803 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20804 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20805 # echo dd $i
20806 echo $i >>confdefs.h
20807 ;;
20808 esac
20809 done
20810 fi
20811
20812 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20813
20814 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20815 if test "${enable_dependency_linking+set}" = set; then
20816 enableval="$enable_dependency_linking"
20817 dependency_linking="$enableval"
20818 else
20819 dependency_linking=auto
20820 fi;
20821
20822 if test "$dependency_linking" = auto; then
20823 # On Cygwin and AIX, building DLLs doesn't work
20824 dependency_linking=no
20825 if test x"$coin_disable_shared" = xno; then
20826 case $build in
20827 *-cygwin* | *-mingw*)
20828 case "$CC" in
20829 clang* )
20830 dependency_linking=yes
20831 ;;
20832 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20833 dependency_linking=no
20834 ;;
20835 *gcc*)
20836 dependency_linking=yes
20837 ;;
20838 *)
20839 dependency_linking=yes
20840 ;;
20841 esac
20842 ;;
20843 *)
20844 dependency_linking=yes
20845 ;;
20846 esac
20847 fi
20848 fi
20849
20850 # Set up LT_LDFLAGS, user can initialize and we augment below
20851
20852
20853 if test "$dependency_linking" = yes ;
20854 then
20855 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20856 else
20857 LT_LDFLAGS="$LT_LDFLAGS"
20858 fi
20859
20860
20861
20862 if test "$dependency_linking" = yes; then
20863 DEPENDENCY_LINKING_TRUE=
20864 DEPENDENCY_LINKING_FALSE='#'
20865 else
20866 DEPENDENCY_LINKING_TRUE='#'
20867 DEPENDENCY_LINKING_FALSE=
20868 fi
20869
20870
20871 # Check if we want to set the library version
20872 echo "$as_me:$LINENO: checking if library version is set" >&5
20873 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20874 if test x"$coin_libversion" != x; then
20875 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20876 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20877 echo "${ECHO_T}$coin_libversion" >&6
20878 else
20879 echo "$as_me:$LINENO: result: no" >&5
20880 echo "${ECHO_T}no" >&6
20881 fi
20882
20883
20884
20885 #END
20886 }
20887 # AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20888
20889
20890 #############################################################################
20891 # Check which subprojects are there #
20892 #############################################################################
20893
20894
20895 echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
20896 echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
20897
20898 coin_has_blas=notGiven
20899 coin_reason=
20900
20901 # check if user wants to skip project in any case
20902
20903 if test x"$COIN_SKIP_PROJECTS" != x; then
20904 for dir in $COIN_SKIP_PROJECTS; do
20905 if test $dir = "Blas"; then
20906 coin_has_blas="no"
20907 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
20908 fi
20909
20910 if test $dir = "ThirdParty/Blas"; then
20911 coin_has_blas="no"
20912 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
20913 fi
20914 done
20915 fi
20916
20917 if test "$coin_has_blas" != no; then
20918
20919 # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
20920 if test "${with_blas+set}" = set; then
20921 withval="$with_blas"
20922 if test "$withval" = no ; then
20923 coin_has_blas="no"
20924 coin_reason="--without-blas has been specified"
20925 fi
20926
20927 fi;
20928 fi
20929
20930 if test "$coin_has_blas" != no; then
20931
20932 # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
20933 if test "${with_blas_lib+set}" = set; then
20934 withval="$with_blas_lib"
20935 if test "$withval" = no ; then
20936 coin_has_blas="no"
20937 coin_reason="--without-blas-lib has been specified"
20938 else
20939 coin_has_blas="no"
20940 coin_reason="--with-blas-lib has been specified"
20941 fi
20942 fi;
20943 fi
20944
20945 if test "$coin_has_blas" != no; then
20946
20947 # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
20948 if test "${with_blas_incdir+set}" = set; then
20949 withval="$with_blas_incdir"
20950 if test "$withval" = no ; then
20951 coin_has_blas="no"
20952 coin_reason="--without-blas-incdir has been specified"
20953 else
20954 coin_has_blas="no"
20955 coin_reason="--with-blas-incdir has been specified"
20956 fi
20957 fi;
20958 fi
20959
20960 if test "$coin_has_blas" != no; then
20961
20962 # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
20963 if test "${with_blas_datadir+set}" = set; then
20964 withval="$with_blas_datadir"
20965 if test "$withval" = no ; then
20966 coin_has_blas="no"
20967 coin_reason="--without-blas-datadir has been specified"
20968 else
20969 coin_has_blas="no"
20970 coin_reason="--with-blas-datadir has been specified"
20971 fi
20972 fi;
20973 fi
20974
20975
20976 if test $coin_has_blas != no; then
20977 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
20978
20979 # Check whether --with-blas or --without-blas was given.
20980 if test "${with_blas+set}" = set; then
20981 withval="$with_blas"
20982 if test x"$withval" = "xno" ; then
20983 coin_has_blas="no"
20984 coin_reason="--without-blas has been specified"
20985 elif test x"$withval" != "xBUILD" ; then
20986 coin_has_blas="no"
20987 coin_reason="--with-blas has been specified"
20988 fi
20989 fi;
20990 fi
20991
20992
20993
20994
20995 # check if project is available in present directory
20996 if test "$coin_has_blas" = notGiven; then
20997 coin_has_blas=no
20998 if test -d $srcdir/ThirdParty/Blas; then
20999 coin_reason="source in ThirdParty/Blas"
21000 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21001 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21002 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21003 for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21004 if test -r $i; then
21005 coin_has_blas="yes"
21006 else
21007 coin_has_blas="no"
21008 coin_reason="source file $i not available"
21009 break
21010 fi
21011 done
21012
21013 fi
21014 fi
21015
21016 if test -z "$coin_reason" ; then
21017 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21018 echo "${ECHO_T}$coin_has_blas" >&6
21019 else
21020 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21021 echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21022 fi
21023
21024 if test "$coin_has_blas" = yes ; then
21025 if test -r $srcdir/ThirdParty/Blas/configure; then
21026 coin_subdirs="$coin_subdirs ThirdParty/Blas"
21027
21028
21029 subdirs="$subdirs ThirdParty/Blas"
21030
21031 fi
21032 fi
21033
21034
21035 echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21036 echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21037
21038 coin_has_lapack=notGiven
21039 coin_reason=
21040
21041 # check if user wants to skip project in any case
21042
21043 if test x"$COIN_SKIP_PROJECTS" != x; then
21044 for dir in $COIN_SKIP_PROJECTS; do
21045 if test $dir = "Lapack"; then
21046 coin_has_lapack="no"
21047 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21048 fi
21049
21050 if test $dir = "ThirdParty/Lapack"; then
21051 coin_has_lapack="no"
21052 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21053 fi
21054 done
21055 fi
21056
21057 if test "$coin_has_lapack" != no; then
21058
21059 # Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21060 if test "${with_lapack+set}" = set; then
21061 withval="$with_lapack"
21062 if test "$withval" = no ; then
21063 coin_has_lapack="no"
21064 coin_reason="--without-lapack has been specified"
21065 fi
21066
21067 fi;
21068 fi
21069
21070 if test "$coin_has_lapack" != no; then
21071
21072 # Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21073 if test "${with_lapack_lib+set}" = set; then
21074 withval="$with_lapack_lib"
21075 if test "$withval" = no ; then
21076 coin_has_lapack="no"
21077 coin_reason="--without-lapack-lib has been specified"
21078 else
21079 coin_has_lapack="no"
21080 coin_reason="--with-lapack-lib has been specified"
21081 fi
21082 fi;
21083 fi
21084
21085 if test "$coin_has_lapack" != no; then
21086
21087 # Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21088 if test "${with_lapack_incdir+set}" = set; then
21089 withval="$with_lapack_incdir"
21090 if test "$withval" = no ; then
21091 coin_has_lapack="no"
21092 coin_reason="--without-lapack-incdir has been specified"
21093 else
21094 coin_has_lapack="no"
21095 coin_reason="--with-lapack-incdir has been specified"
21096 fi
21097 fi;
21098 fi
21099
21100 if test "$coin_has_lapack" != no; then
21101
21102 # Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21103 if test "${with_lapack_datadir+set}" = set; then
21104 withval="$with_lapack_datadir"
21105 if test "$withval" = no ; then
21106 coin_has_lapack="no"
21107 coin_reason="--without-lapack-datadir has been specified"
21108 else
21109 coin_has_lapack="no"
21110 coin_reason="--with-lapack-datadir has been specified"
21111 fi
21112 fi;
21113 fi
21114
21115
21116
21117
21118 if test $coin_has_lapack != no; then
21119 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21120
21121 # Check whether --with-lapack or --without-lapack was given.
21122 if test "${with_lapack+set}" = set; then
21123 withval="$with_lapack"
21124 if test x"$withval" = "xno" ; then
21125 coin_has_lapack="no"
21126 coin_reason="--without-lapack has been specified"
21127 elif test x"$withval" != "xBUILD" ; then
21128 coin_has_lapack="no"
21129 coin_reason="--with-lapack has been specified"
21130 fi
21131 fi;
21132 fi
21133
21134
21135 # check if project is available in present directory
21136 if test "$coin_has_lapack" = notGiven; then
21137 coin_has_lapack=no
21138 if test -d $srcdir/ThirdParty/Lapack; then
21139 coin_reason="source in ThirdParty/Lapack"
21140 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21141 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21142 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21143 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21144 if test -r $i; then
21145 coin_has_lapack="yes"
21146 else
21147 coin_has_lapack="no"
21148 coin_reason="source file $i not available"
21149 break
21150 fi
21151 done
21152
21153 fi
21154 fi
21155
21156 if test -z "$coin_reason" ; then
21157 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21158 echo "${ECHO_T}$coin_has_lapack" >&6
21159 else
21160 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21161 echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21162 fi
21163
21164 if test "$coin_has_lapack" = yes ; then
21165 if test -r $srcdir/ThirdParty/Lapack/configure; then
21166 coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21167
21168
21169 subdirs="$subdirs ThirdParty/Lapack"
21170
21171 fi
21172 fi
21173
21174
21175 echo "$as_me:$LINENO: checking whether source of project ASL is available and should be compiled" >&5
21176 echo $ECHO_N "checking whether source of project ASL is available and should be compiled... $ECHO_C" >&6
21177
21178 coin_has_asl=notGiven
21179 coin_reason=
21180
21181 # check if user wants to skip project in any case
21182
21183 if test x"$COIN_SKIP_PROJECTS" != x; then
21184 for dir in $COIN_SKIP_PROJECTS; do
21185 if test $dir = "ASL"; then
21186 coin_has_asl="no"
21187 coin_reason="ASL has been specified in COIN_SKIP_PROJECTS"
21188 fi
21189
21190 if test $dir = "ThirdParty/ASL"; then
21191 coin_has_asl="no"
21192 coin_reason="ThirdParty/ASL has been specified in COIN_SKIP_PROJECTS"
21193 fi
21194 done
21195 fi
21196
21197 if test "$coin_has_asl" != no; then
21198
21199 # Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
21200 if test "${with_asl+set}" = set; then
21201 withval="$with_asl"
21202 if test "$withval" = no ; then
21203 coin_has_asl="no"
21204 coin_reason="--without-asl has been specified"
21205 fi
21206
21207 fi;
21208 fi
21209
21210 if test "$coin_has_asl" != no; then
21211
21212 # Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
21213 if test "${with_asl_lib+set}" = set; then
21214 withval="$with_asl_lib"
21215 if test "$withval" = no ; then
21216 coin_has_asl="no"
21217 coin_reason="--without-asl-lib has been specified"
21218 else
21219 coin_has_asl="no"
21220 coin_reason="--with-asl-lib has been specified"
21221 fi
21222 fi;
21223 fi
21224
21225 if test "$coin_has_asl" != no; then
21226
21227 # Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
21228 if test "${with_asl_incdir+set}" = set; then
21229 withval="$with_asl_incdir"
21230 if test "$withval" = no ; then
21231 coin_has_asl="no"
21232 coin_reason="--without-asl-incdir has been specified"
21233 else
21234 coin_has_asl="no"
21235 coin_reason="--with-asl-incdir has been specified"
21236 fi
21237 fi;
21238 fi
21239
21240 if test "$coin_has_asl" != no; then
21241
21242 # Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
21243 if test "${with_asl_datadir+set}" = set; then
21244 withval="$with_asl_datadir"
21245 if test "$withval" = no ; then
21246 coin_has_asl="no"
21247 coin_reason="--without-asl-datadir has been specified"
21248 else
21249 coin_has_asl="no"
21250 coin_reason="--with-asl-datadir has been specified"
21251 fi
21252 fi;
21253 fi
21254
21255
21256
21257
21258
21259 # check if project is available in present directory
21260 if test "$coin_has_asl" = notGiven; then
21261 coin_has_asl=no
21262 if test -d $srcdir/ThirdParty/ASL; then
21263 coin_reason="source in ThirdParty/ASL"
21264 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21265 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21266 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21267 for i in $srcdir/ThirdParty/ASL/solvers/asl.h; do
21268 if test -r $i; then
21269 coin_has_asl="yes"
21270 else
21271 coin_has_asl="no"
21272 coin_reason="source file $i not available"
21273 break
21274 fi
21275 done
21276
21277 fi
21278 fi
21279
21280 if test -z "$coin_reason" ; then
21281 echo "$as_me:$LINENO: result: $coin_has_asl" >&5
21282 echo "${ECHO_T}$coin_has_asl" >&6
21283 else
21284 echo "$as_me:$LINENO: result: $coin_has_asl, $coin_reason" >&5
21285 echo "${ECHO_T}$coin_has_asl, $coin_reason" >&6
21286 fi
21287
21288 if test "$coin_has_asl" = yes ; then
21289 if test -r $srcdir/ThirdParty/ASL/configure; then
21290 coin_subdirs="$coin_subdirs ThirdParty/ASL"
21291
21292
21293 subdirs="$subdirs ThirdParty/ASL"
21294
21295 fi
21296 fi
21297
21298
21299 echo "$as_me:$LINENO: checking whether source of project FilterSQP is available and should be compiled" >&5
21300 echo $ECHO_N "checking whether source of project FilterSQP is available and should be compiled... $ECHO_C" >&6
21301
21302 coin_has_filtersqp=notGiven
21303 coin_reason=
21304
21305 # check if user wants to skip project in any case
21306
21307 if test x"$COIN_SKIP_PROJECTS" != x; then
21308 for dir in $COIN_SKIP_PROJECTS; do
21309 if test $dir = "FilterSQP"; then
21310 coin_has_filtersqp="no"
21311 coin_reason="FilterSQP has been specified in COIN_SKIP_PROJECTS"
21312 fi
21313
21314 if test $dir = "ThirdParty/FilterSQP"; then
21315 coin_has_filtersqp="no"
21316 coin_reason="ThirdParty/FilterSQP has been specified in COIN_SKIP_PROJECTS"
21317 fi
21318 done
21319 fi
21320
21321 if test "$coin_has_filtersqp" != no; then
21322
21323 # Check whether --with-m4_tolower(FilterSQP) or --without-m4_tolower(FilterSQP) was given.
21324 if test "${with_filtersqp+set}" = set; then
21325 withval="$with_filtersqp"
21326 if test "$withval" = no ; then
21327 coin_has_filtersqp="no"
21328 coin_reason="--without-filtersqp has been specified"
21329 fi
21330
21331 fi;
21332 fi
21333
21334 if test "$coin_has_filtersqp" != no; then
21335
21336 # Check whether --with-m4_tolower(FilterSQP)-lib or --without-m4_tolower(FilterSQP)-lib was given.
21337 if test "${with_filtersqp_lib+set}" = set; then
21338 withval="$with_filtersqp_lib"
21339 if test "$withval" = no ; then
21340 coin_has_filtersqp="no"
21341 coin_reason="--without-filtersqp-lib has been specified"
21342 else
21343 coin_has_filtersqp="no"
21344 coin_reason="--with-filtersqp-lib has been specified"
21345 fi
21346 fi;
21347 fi
21348
21349 if test "$coin_has_filtersqp" != no; then
21350
21351 # Check whether --with-m4_tolower(FilterSQP)-incdir or --without-m4_tolower(FilterSQP)-incdir was given.
21352 if test "${with_filtersqp_incdir+set}" = set; then
21353 withval="$with_filtersqp_incdir"
21354 if test "$withval" = no ; then
21355 coin_has_filtersqp="no"
21356 coin_reason="--without-filtersqp-incdir has been specified"
21357 else
21358 coin_has_filtersqp="no"
21359 coin_reason="--with-filtersqp-incdir has been specified"
21360 fi
21361 fi;
21362 fi
21363
21364 if test "$coin_has_filtersqp" != no; then
21365
21366 # Check whether --with-m4_tolower(FilterSQP)-datadir or --without-m4_tolower(FilterSQP)-datadir was given.
21367 if test "${with_filtersqp_datadir+set}" = set; then
21368 withval="$with_filtersqp_datadir"
21369 if test "$withval" = no ; then
21370 coin_has_filtersqp="no"
21371 coin_reason="--without-filtersqp-datadir has been specified"
21372 else
21373 coin_has_filtersqp="no"
21374 coin_reason="--with-filtersqp-datadir has been specified"
21375 fi
21376 fi;
21377 fi
21378
21379
21380
21381
21382
21383 # check if project is available in present directory
21384 if test "$coin_has_filtersqp" = notGiven; then
21385 coin_has_filtersqp=no
21386 if test -d $srcdir/ThirdParty/FilterSQP; then
21387 coin_reason="source in ThirdParty/FilterSQP"
21388 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21389 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21390 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21391 for i in $srcdir/ThirdParty/FilterSQP/source/src/filter.f; do
21392 if test -r $i; then
21393 coin_has_filtersqp="yes"
21394 else
21395 coin_has_filtersqp="no"
21396 coin_reason="source file $i not available"
21397 break
21398 fi
21399 done
21400
21401 fi
21402 fi
21403
21404 if test -z "$coin_reason" ; then
21405 echo "$as_me:$LINENO: result: $coin_has_filtersqp" >&5
21406 echo "${ECHO_T}$coin_has_filtersqp" >&6
21407 else
21408 echo "$as_me:$LINENO: result: $coin_has_filtersqp, $coin_reason" >&5
21409 echo "${ECHO_T}$coin_has_filtersqp, $coin_reason" >&6
21410 fi
21411
21412 if test "$coin_has_filtersqp" = yes ; then
21413 if test -r $srcdir/ThirdParty/FilterSQP/configure; then
21414 coin_subdirs="$coin_subdirs ThirdParty/FilterSQP"
21415
21416
21417 subdirs="$subdirs ThirdParty/FilterSQP"
21418
21419 fi
21420 fi
21421
21422
21423 echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5
21424 echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6
21425
21426 coin_has_metis=notGiven
21427 coin_reason=
21428
21429 # check if user wants to skip project in any case
21430
21431 if test x"$COIN_SKIP_PROJECTS" != x; then
21432 for dir in $COIN_SKIP_PROJECTS; do
21433 if test $dir = "Metis"; then
21434 coin_has_metis="no"
21435 coin_reason="Metis has been specified in COIN_SKIP_PROJECTS"
21436 fi
21437
21438 if test $dir = "ThirdParty/Metis"; then
21439 coin_has_metis="no"
21440 coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS"
21441 fi
21442 done
21443 fi
21444
21445 if test "$coin_has_metis" != no; then
21446
21447 # Check whether --with-m4_tolower(Metis) or --without-m4_tolower(Metis) was given.
21448 if test "${with_metis+set}" = set; then
21449 withval="$with_metis"
21450 if test "$withval" = no ; then
21451 coin_has_metis="no"
21452 coin_reason="--without-metis has been specified"
21453 fi
21454
21455 fi;
21456 fi
21457
21458 if test "$coin_has_metis" != no; then
21459
21460 # Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given.
21461 if test "${with_metis_lib+set}" = set; then
21462 withval="$with_metis_lib"
21463 if test "$withval" = no ; then
21464 coin_has_metis="no"
21465 coin_reason="--without-metis-lib has been specified"
21466 else
21467 coin_has_metis="no"
21468 coin_reason="--with-metis-lib has been specified"
21469 fi
21470 fi;
21471 fi
21472
21473 if test "$coin_has_metis" != no; then
21474
21475 # Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given.
21476 if test "${with_metis_incdir+set}" = set; then
21477 withval="$with_metis_incdir"
21478 if test "$withval" = no ; then
21479 coin_has_metis="no"
21480 coin_reason="--without-metis-incdir has been specified"
21481 else
21482 coin_has_metis="no"
21483 coin_reason="--with-metis-incdir has been specified"
21484 fi
21485 fi;
21486 fi
21487
21488 if test "$coin_has_metis" != no; then
21489
21490 # Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given.
21491 if test "${with_metis_datadir+set}" = set; then
21492 withval="$with_metis_datadir"
21493 if test "$withval" = no ; then
21494 coin_has_metis="no"
21495 coin_reason="--without-metis-datadir has been specified"
21496 else
21497 coin_has_metis="no"
21498 coin_reason="--with-metis-datadir has been specified"
21499 fi
21500 fi;
21501 fi
21502
21503
21504
21505
21506
21507 # check if project is available in present directory
21508 if test "$coin_has_metis" = notGiven; then
21509 coin_has_metis=no
21510 if test -d $srcdir/ThirdParty/Metis; then
21511 coin_reason="source in ThirdParty/Metis"
21512 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21513 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21514 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21515 for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do
21516 if test -r $i; then
21517 coin_has_metis="yes"
21518 else
21519 coin_has_metis="no"
21520 coin_reason="source file $i not available"
21521 break
21522 fi
21523 done
21524
21525 fi
21526 fi
21527
21528 if test -z "$coin_reason" ; then
21529 echo "$as_me:$LINENO: result: $coin_has_metis" >&5
21530 echo "${ECHO_T}$coin_has_metis" >&6
21531 else
21532 echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5
21533 echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6
21534 fi
21535
21536 if test "$coin_has_metis" = yes ; then
21537 if test -r $srcdir/ThirdParty/Metis/configure; then
21538 coin_subdirs="$coin_subdirs ThirdParty/Metis"
21539
21540
21541 subdirs="$subdirs ThirdParty/Metis"
21542
21543 fi
21544 fi
21545
21546
21547 echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5
21548 echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6
21549
21550 coin_has_mumps=notGiven
21551 coin_reason=
21552
21553 # check if user wants to skip project in any case
21554
21555 if test x"$COIN_SKIP_PROJECTS" != x; then
21556 for dir in $COIN_SKIP_PROJECTS; do
21557 if test $dir = "Mumps"; then
21558 coin_has_mumps="no"
21559 coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS"
21560 fi
21561
21562 if test $dir = "ThirdParty/Mumps"; then
21563 coin_has_mumps="no"
21564 coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS"
21565 fi
21566 done
21567 fi
21568
21569 if test "$coin_has_mumps" != no; then
21570
21571 # Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given.
21572 if test "${with_mumps+set}" = set; then
21573 withval="$with_mumps"
21574 if test "$withval" = no ; then
21575 coin_has_mumps="no"
21576 coin_reason="--without-mumps has been specified"
21577 fi
21578
21579 fi;
21580 fi
21581
21582 if test "$coin_has_mumps" != no; then
21583
21584 # Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given.
21585 if test "${with_mumps_lib+set}" = set; then
21586 withval="$with_mumps_lib"
21587 if test "$withval" = no ; then
21588 coin_has_mumps="no"
21589 coin_reason="--without-mumps-lib has been specified"
21590 else
21591 coin_has_mumps="no"
21592 coin_reason="--with-mumps-lib has been specified"
21593 fi
21594 fi;
21595 fi
21596
21597 if test "$coin_has_mumps" != no; then
21598
21599 # Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given.
21600 if test "${with_mumps_incdir+set}" = set; then
21601 withval="$with_mumps_incdir"
21602 if test "$withval" = no ; then
21603 coin_has_mumps="no"
21604 coin_reason="--without-mumps-incdir has been specified"
21605 else
21606 coin_has_mumps="no"
21607 coin_reason="--with-mumps-incdir has been specified"
21608 fi
21609 fi;
21610 fi
21611
21612 if test "$coin_has_mumps" != no; then
21613
21614 # Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given.
21615 if test "${with_mumps_datadir+set}" = set; then
21616 withval="$with_mumps_datadir"
21617 if test "$withval" = no ; then
21618 coin_has_mumps="no"
21619 coin_reason="--without-mumps-datadir has been specified"
21620 else
21621 coin_has_mumps="no"
21622 coin_reason="--with-mumps-datadir has been specified"
21623 fi
21624 fi;
21625 fi
21626
21627
21628
21629
21630
21631 # check if project is available in present directory
21632 if test "$coin_has_mumps" = notGiven; then
21633 coin_has_mumps=no
21634 if test -d $srcdir/ThirdParty/Mumps; then
21635 coin_reason="source in ThirdParty/Mumps"
21636 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21637 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21638 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21639 for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do
21640 if test -r $i; then
21641 coin_has_mumps="yes"
21642 else
21643 coin_has_mumps="no"
21644 coin_reason="source file $i not available"
21645 break
21646 fi
21647 done
21648
21649 fi
21650 fi
21651
21652 if test -z "$coin_reason" ; then
21653 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
21654 echo "${ECHO_T}$coin_has_mumps" >&6
21655 else
21656 echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5
21657 echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6
21658 fi
21659
21660 if test "$coin_has_mumps" = yes ; then
21661 if test -r $srcdir/ThirdParty/Mumps/configure; then
21662 coin_subdirs="$coin_subdirs ThirdParty/Mumps"
21663
21664
21665 subdirs="$subdirs ThirdParty/Mumps"
21666
21667 fi
21668 fi
21669
21670
21671 echo "$as_me:$LINENO: checking whether source of project HSL is available and should be compiled" >&5
21672 echo $ECHO_N "checking whether source of project HSL is available and should be compiled... $ECHO_C" >&6
21673
21674 coin_has_hsl=notGiven
21675 coin_reason=
21676
21677 # check if user wants to skip project in any case
21678
21679 if test x"$COIN_SKIP_PROJECTS" != x; then
21680 for dir in $COIN_SKIP_PROJECTS; do
21681 if test $dir = "HSL"; then
21682 coin_has_hsl="no"
21683 coin_reason="HSL has been specified in COIN_SKIP_PROJECTS"
21684 fi
21685
21686 if test $dir = "ThirdParty/HSL"; then
21687 coin_has_hsl="no"
21688 coin_reason="ThirdParty/HSL has been specified in COIN_SKIP_PROJECTS"
21689 fi
21690 done
21691 fi
21692
21693 if test "$coin_has_hsl" != no; then
21694
21695 # Check whether --with-m4_tolower(HSL) or --without-m4_tolower(HSL) was given.
21696 if test "${with_hsl+set}" = set; then
21697 withval="$with_hsl"
21698 if test "$withval" = no ; then
21699 coin_has_hsl="no"
21700 coin_reason="--without-hsl has been specified"
21701 fi
21702
21703 fi;
21704 fi
21705
21706 if test "$coin_has_hsl" != no; then
21707
21708 # Check whether --with-m4_tolower(HSL)-lib or --without-m4_tolower(HSL)-lib was given.
21709 if test "${with_hsl_lib+set}" = set; then
21710 withval="$with_hsl_lib"
21711 if test "$withval" = no ; then
21712 coin_has_hsl="no"
21713 coin_reason="--without-hsl-lib has been specified"
21714 else
21715 coin_has_hsl="no"
21716 coin_reason="--with-hsl-lib has been specified"
21717 fi
21718 fi;
21719 fi
21720
21721 if test "$coin_has_hsl" != no; then
21722
21723 # Check whether --with-m4_tolower(HSL)-incdir or --without-m4_tolower(HSL)-incdir was given.
21724 if test "${with_hsl_incdir+set}" = set; then
21725 withval="$with_hsl_incdir"
21726 if test "$withval" = no ; then
21727 coin_has_hsl="no"
21728 coin_reason="--without-hsl-incdir has been specified"
21729 else
21730 coin_has_hsl="no"
21731 coin_reason="--with-hsl-incdir has been specified"
21732 fi
21733 fi;
21734 fi
21735
21736 if test "$coin_has_hsl" != no; then
21737
21738 # Check whether --with-m4_tolower(HSL)-datadir or --without-m4_tolower(HSL)-datadir was given.
21739 if test "${with_hsl_datadir+set}" = set; then
21740 withval="$with_hsl_datadir"
21741 if test "$withval" = no ; then
21742 coin_has_hsl="no"
21743 coin_reason="--without-hsl-datadir has been specified"
21744 else
21745 coin_has_hsl="no"
21746 coin_reason="--with-hsl-datadir has been specified"
21747 fi
21748 fi;
21749 fi
21750
21751
21752
21753
21754
21755 # check if project is available in present directory
21756 if test "$coin_has_hsl" = notGiven; then
21757 coin_has_hsl=no
21758 if test -d $srcdir/ThirdParty/HSL; then
21759 coin_reason="source in ThirdParty/HSL"
21760 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21761 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21762 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21763 for i in $srcdir/ThirdParty/HSL/coinhsl/common/deps.f; do
21764 if test -r $i; then
21765 coin_has_hsl="yes"
21766 else
21767 coin_has_hsl="no"
21768 coin_reason="source file $i not available"
21769 break
21770 fi
21771 done
21772
21773 fi
21774 fi
21775
21776 if test -z "$coin_reason" ; then
21777 echo "$as_me:$LINENO: result: $coin_has_hsl" >&5
21778 echo "${ECHO_T}$coin_has_hsl" >&6
21779 else
21780 echo "$as_me:$LINENO: result: $coin_has_hsl, $coin_reason" >&5
21781 echo "${ECHO_T}$coin_has_hsl, $coin_reason" >&6
21782 fi
21783
21784 if test "$coin_has_hsl" = yes ; then
21785 if test -r $srcdir/ThirdParty/HSL/configure; then
21786 coin_subdirs="$coin_subdirs ThirdParty/HSL"
21787
21788
21789 subdirs="$subdirs ThirdParty/HSL"
21790
21791 fi
21792 fi
21793
21794
21795 echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21796 echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21797
21798 coin_has_sample=notGiven
21799 coin_reason=
21800
21801 # check if user wants to skip project in any case
21802
21803 if test x"$COIN_SKIP_PROJECTS" != x; then
21804 for dir in $COIN_SKIP_PROJECTS; do
21805 if test $dir = "Sample"; then
21806 coin_has_sample="no"
21807 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21808 fi
21809
21810 if test $dir = "Data/Sample"; then
21811 coin_has_sample="no"
21812 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21813 fi
21814 done
21815 fi
21816
21817 if test "$coin_has_sample" != no; then
21818
21819 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21820 if test "${with_sample+set}" = set; then
21821 withval="$with_sample"
21822 if test "$withval" = no ; then
21823 coin_has_sample="no"
21824 coin_reason="--without-sample has been specified"
21825 fi
21826
21827 fi;
21828 fi
21829
21830 if test "$coin_has_sample" != no; then
21831
21832 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21833 if test "${with_sample_lib+set}" = set; then
21834 withval="$with_sample_lib"
21835 if test "$withval" = no ; then
21836 coin_has_sample="no"
21837 coin_reason="--without-sample-lib has been specified"
21838 else
21839 coin_has_sample="no"
21840 coin_reason="--with-sample-lib has been specified"
21841 fi
21842 fi;
21843 fi
21844
21845 if test "$coin_has_sample" != no; then
21846
21847 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21848 if test "${with_sample_incdir+set}" = set; then
21849 withval="$with_sample_incdir"
21850 if test "$withval" = no ; then
21851 coin_has_sample="no"
21852 coin_reason="--without-sample-incdir has been specified"
21853 else
21854 coin_has_sample="no"
21855 coin_reason="--with-sample-incdir has been specified"
21856 fi
21857 fi;
21858 fi
21859
21860 if test "$coin_has_sample" != no; then
21861
21862 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21863 if test "${with_sample_datadir+set}" = set; then
21864 withval="$with_sample_datadir"
21865 if test "$withval" = no ; then
21866 coin_has_sample="no"
21867 coin_reason="--without-sample-datadir has been specified"
21868 else
21869 coin_has_sample="no"
21870 coin_reason="--with-sample-datadir has been specified"
21871 fi
21872 fi;
21873 fi
21874
21875
21876
21877
21878
21879 # check if project is available in present directory
21880 if test "$coin_has_sample" = notGiven; then
21881 coin_has_sample=no
21882 if test -d $srcdir/Data/Sample; then
21883 coin_reason="source in Data/Sample"
21884 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21885 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21886 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21887 coin_has_sample="yes"
21888
21889 fi
21890 fi
21891
21892 if test -z "$coin_reason" ; then
21893 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21894 echo "${ECHO_T}$coin_has_sample" >&6
21895 else
21896 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21897 echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21898 fi
21899
21900 if test "$coin_has_sample" = yes ; then
21901 if test -r $srcdir/Data/Sample/configure; then
21902 coin_subdirs="$coin_subdirs Data/Sample"
21903
21904
21905 subdirs="$subdirs Data/Sample"
21906
21907 fi
21908 fi
21909
21910
21911 echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
21912 echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
21913
21914 coin_has_coinutils=notGiven
21915 coin_reason=
21916
21917 # check if user wants to skip project in any case
21918
21919 if test x"$COIN_SKIP_PROJECTS" != x; then
21920 for dir in $COIN_SKIP_PROJECTS; do
21921 if test $dir = "CoinUtils"; then
21922 coin_has_coinutils="no"
21923 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
21924 fi
21925
21926 done
21927 fi
21928
21929 if test "$coin_has_coinutils" != no; then
21930
21931 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
21932 if test "${with_coinutils+set}" = set; then
21933 withval="$with_coinutils"
21934 if test "$withval" = no ; then
21935 coin_has_coinutils="no"
21936 coin_reason="--without-coinutils has been specified"
21937 fi
21938
21939 fi;
21940 fi
21941
21942 if test "$coin_has_coinutils" != no; then
21943
21944 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
21945 if test "${with_coinutils_lib+set}" = set; then
21946 withval="$with_coinutils_lib"
21947 if test "$withval" = no ; then
21948 coin_has_coinutils="no"
21949 coin_reason="--without-coinutils-lib has been specified"
21950 else
21951 coin_has_coinutils="no"
21952 coin_reason="--with-coinutils-lib has been specified"
21953 fi
21954 fi;
21955 fi
21956
21957 if test "$coin_has_coinutils" != no; then
21958
21959 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
21960 if test "${with_coinutils_incdir+set}" = set; then
21961 withval="$with_coinutils_incdir"
21962 if test "$withval" = no ; then
21963 coin_has_coinutils="no"
21964 coin_reason="--without-coinutils-incdir has been specified"
21965 else
21966 coin_has_coinutils="no"
21967 coin_reason="--with-coinutils-incdir has been specified"
21968 fi
21969 fi;
21970 fi
21971
21972 if test "$coin_has_coinutils" != no; then
21973
21974 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
21975 if test "${with_coinutils_datadir+set}" = set; then
21976 withval="$with_coinutils_datadir"
21977 if test "$withval" = no ; then
21978 coin_has_coinutils="no"
21979 coin_reason="--without-coinutils-datadir has been specified"
21980 else
21981 coin_has_coinutils="no"
21982 coin_reason="--with-coinutils-datadir has been specified"
21983 fi
21984 fi;
21985 fi
21986
21987
21988
21989
21990
21991 # check if project is available in present directory
21992 if test "$coin_has_coinutils" = notGiven; then
21993 coin_has_coinutils=no
21994 if test -d $srcdir/CoinUtils; then
21995 coin_reason="source in CoinUtils"
21996 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21997 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21998 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21999 coin_has_coinutils="yes"
22000
22001 fi
22002 fi
22003
22004 if test -z "$coin_reason" ; then
22005 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
22006 echo "${ECHO_T}$coin_has_coinutils" >&6
22007 else
22008 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
22009 echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
22010 fi
22011
22012 if test "$coin_has_coinutils" = yes ; then
22013 if test -r $srcdir/CoinUtils/configure; then
22014 coin_subdirs="$coin_subdirs CoinUtils"
22015
22016
22017 subdirs="$subdirs CoinUtils"
22018
22019 fi
22020 fi
22021
22022
22023 echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
22024 echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
22025
22026 coin_has_osi=notGiven
22027 coin_reason=
22028
22029 # check if user wants to skip project in any case
22030
22031 if test x"$COIN_SKIP_PROJECTS" != x; then
22032 for dir in $COIN_SKIP_PROJECTS; do
22033 if test $dir = "Osi"; then
22034 coin_has_osi="no"
22035 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
22036 fi
22037
22038 done
22039 fi
22040
22041 if test "$coin_has_osi" != no; then
22042
22043 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
22044 if test "${with_osi+set}" = set; then
22045 withval="$with_osi"
22046 if test "$withval" = no ; then
22047 coin_has_osi="no"
22048 coin_reason="--without-osi has been specified"
22049 fi
22050
22051 fi;
22052 fi
22053
22054 if test "$coin_has_osi" != no; then
22055
22056 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
22057 if test "${with_osi_lib+set}" = set; then
22058 withval="$with_osi_lib"
22059 if test "$withval" = no ; then
22060 coin_has_osi="no"
22061 coin_reason="--without-osi-lib has been specified"
22062 else
22063 coin_has_osi="no"
22064 coin_reason="--with-osi-lib has been specified"
22065 fi
22066 fi;
22067 fi
22068
22069 if test "$coin_has_osi" != no; then
22070
22071 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
22072 if test "${with_osi_incdir+set}" = set; then
22073 withval="$with_osi_incdir"
22074 if test "$withval" = no ; then
22075 coin_has_osi="no"
22076 coin_reason="--without-osi-incdir has been specified"
22077 else
22078 coin_has_osi="no"
22079 coin_reason="--with-osi-incdir has been specified"
22080 fi
22081 fi;
22082 fi
22083
22084 if test "$coin_has_osi" != no; then
22085
22086 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
22087 if test "${with_osi_datadir+set}" = set; then
22088 withval="$with_osi_datadir"
22089 if test "$withval" = no ; then
22090 coin_has_osi="no"
22091 coin_reason="--without-osi-datadir has been specified"
22092 else
22093 coin_has_osi="no"
22094 coin_reason="--with-osi-datadir has been specified"
22095 fi
22096 fi;
22097 fi
22098
22099
22100
22101
22102
22103 # check if project is available in present directory
22104 if test "$coin_has_osi" = notGiven; then
22105 coin_has_osi=no
22106 if test -d $srcdir/Osi; then
22107 coin_reason="source in Osi"
22108 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22109 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22110 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22111 coin_has_osi="yes"
22112
22113 fi
22114 fi
22115
22116 if test -z "$coin_reason" ; then
22117 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
22118 echo "${ECHO_T}$coin_has_osi" >&6
22119 else
22120 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
22121 echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
22122 fi
22123
22124 if test "$coin_has_osi" = yes ; then
22125 if test -r $srcdir/Osi/configure; then
22126 coin_subdirs="$coin_subdirs Osi"
22127
22128
22129 subdirs="$subdirs Osi"
22130
22131 fi
22132 fi
22133
22134
22135 echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
22136 echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
22137
22138 coin_has_clp=notGiven
22139 coin_reason=
22140
22141 # check if user wants to skip project in any case
22142
22143 if test x"$COIN_SKIP_PROJECTS" != x; then
22144 for dir in $COIN_SKIP_PROJECTS; do
22145 if test $dir = "Clp"; then
22146 coin_has_clp="no"
22147 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
22148 fi
22149
22150 done
22151 fi
22152
22153 if test "$coin_has_clp" != no; then
22154
22155 # Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
22156 if test "${with_clp+set}" = set; then
22157 withval="$with_clp"
22158 if test "$withval" = no ; then
22159 coin_has_clp="no"
22160 coin_reason="--without-clp has been specified"
22161 fi
22162
22163 fi;
22164 fi
22165
22166 if test "$coin_has_clp" != no; then
22167
22168 # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
22169 if test "${with_clp_lib+set}" = set; then
22170 withval="$with_clp_lib"
22171 if test "$withval" = no ; then
22172 coin_has_clp="no"
22173 coin_reason="--without-clp-lib has been specified"
22174 else
22175 coin_has_clp="no"
22176 coin_reason="--with-clp-lib has been specified"
22177 fi
22178 fi;
22179 fi
22180
22181 if test "$coin_has_clp" != no; then
22182
22183 # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
22184 if test "${with_clp_incdir+set}" = set; then
22185 withval="$with_clp_incdir"
22186 if test "$withval" = no ; then
22187 coin_has_clp="no"
22188 coin_reason="--without-clp-incdir has been specified"
22189 else
22190 coin_has_clp="no"
22191 coin_reason="--with-clp-incdir has been specified"
22192 fi
22193 fi;
22194 fi
22195
22196 if test "$coin_has_clp" != no; then
22197
22198 # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
22199 if test "${with_clp_datadir+set}" = set; then
22200 withval="$with_clp_datadir"
22201 if test "$withval" = no ; then
22202 coin_has_clp="no"
22203 coin_reason="--without-clp-datadir has been specified"
22204 else
22205 coin_has_clp="no"
22206 coin_reason="--with-clp-datadir has been specified"
22207 fi
22208 fi;
22209 fi
22210
22211
22212
22213
22214
22215 # check if project is available in present directory
22216 if test "$coin_has_clp" = notGiven; then
22217 coin_has_clp=no
22218 if test -d $srcdir/Clp; then
22219 coin_reason="source in Clp"
22220 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22221 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22222 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22223 coin_has_clp="yes"
22224
22225 fi
22226 fi
22227
22228 if test -z "$coin_reason" ; then
22229 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
22230 echo "${ECHO_T}$coin_has_clp" >&6
22231 else
22232 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
22233 echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
22234 fi
22235
22236 if test "$coin_has_clp" = yes ; then
22237 if test -r $srcdir/Clp/configure; then
22238 coin_subdirs="$coin_subdirs Clp"
22239
22240
22241 subdirs="$subdirs Clp"
22242
22243 fi
22244 fi
22245
22246
22247 echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5
22248 echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6
22249
22250 coin_has_cgl=notGiven
22251 coin_reason=
22252
22253 # check if user wants to skip project in any case
22254
22255 if test x"$COIN_SKIP_PROJECTS" != x; then
22256 for dir in $COIN_SKIP_PROJECTS; do
22257 if test $dir = "Cgl"; then
22258 coin_has_cgl="no"
22259 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS"
22260 fi
22261
22262 done
22263 fi
22264
22265 if test "$coin_has_cgl" != no; then
22266
22267 # Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
22268 if test "${with_cgl+set}" = set; then
22269 withval="$with_cgl"
22270 if test "$withval" = no ; then
22271 coin_has_cgl="no"
22272 coin_reason="--without-cgl has been specified"
22273 fi
22274
22275 fi;
22276 fi
22277
22278 if test "$coin_has_cgl" != no; then
22279
22280 # Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
22281 if test "${with_cgl_lib+set}" = set; then
22282 withval="$with_cgl_lib"
22283 if test "$withval" = no ; then
22284 coin_has_cgl="no"
22285 coin_reason="--without-cgl-lib has been specified"
22286 else
22287 coin_has_cgl="no"
22288 coin_reason="--with-cgl-lib has been specified"
22289 fi
22290 fi;
22291 fi
22292
22293 if test "$coin_has_cgl" != no; then
22294
22295 # Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
22296 if test "${with_cgl_incdir+set}" = set; then
22297 withval="$with_cgl_incdir"
22298 if test "$withval" = no ; then
22299 coin_has_cgl="no"
22300 coin_reason="--without-cgl-incdir has been specified"
22301 else
22302 coin_has_cgl="no"
22303 coin_reason="--with-cgl-incdir has been specified"
22304 fi
22305 fi;
22306 fi
22307
22308 if test "$coin_has_cgl" != no; then
22309
22310 # Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
22311 if test "${with_cgl_datadir+set}" = set; then
22312 withval="$with_cgl_datadir"
22313 if test "$withval" = no ; then
22314 coin_has_cgl="no"
22315 coin_reason="--without-cgl-datadir has been specified"
22316 else
22317 coin_has_cgl="no"
22318 coin_reason="--with-cgl-datadir has been specified"
22319 fi
22320 fi;
22321 fi
22322
22323
22324
22325
22326
22327 # check if project is available in present directory
22328 if test "$coin_has_cgl" = notGiven; then
22329 coin_has_cgl=no
22330 if test -d $srcdir/Cgl; then
22331 coin_reason="source in Cgl"
22332 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22333 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22334 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22335 coin_has_cgl="yes"
22336
22337 fi
22338 fi
22339
22340 if test -z "$coin_reason" ; then
22341 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
22342 echo "${ECHO_T}$coin_has_cgl" >&6
22343 else
22344 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5
22345 echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6
22346 fi
22347
22348 if test "$coin_has_cgl" = yes ; then
22349 if test -r $srcdir/Cgl/configure; then
22350 coin_subdirs="$coin_subdirs Cgl"
22351
22352
22353 subdirs="$subdirs Cgl"
22354
22355 fi
22356 fi
22357
22358
22359 echo "$as_me:$LINENO: checking whether source of project Cbc is available and should be compiled" >&5
22360 echo $ECHO_N "checking whether source of project Cbc is available and should be compiled... $ECHO_C" >&6
22361
22362 coin_has_cbc=notGiven
22363 coin_reason=
22364
22365 # check if user wants to skip project in any case
22366
22367 if test x"$COIN_SKIP_PROJECTS" != x; then
22368 for dir in $COIN_SKIP_PROJECTS; do
22369 if test $dir = "Cbc"; then
22370 coin_has_cbc="no"
22371 coin_reason="Cbc has been specified in COIN_SKIP_PROJECTS"
22372 fi
22373
22374 done
22375 fi
22376
22377 if test "$coin_has_cbc" != no; then
22378
22379 # Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
22380 if test "${with_cbc+set}" = set; then
22381 withval="$with_cbc"
22382 if test "$withval" = no ; then
22383 coin_has_cbc="no"
22384 coin_reason="--without-cbc has been specified"
22385 fi
22386
22387 fi;
22388 fi
22389
22390 if test "$coin_has_cbc" != no; then
22391
22392 # Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
22393 if test "${with_cbc_lib+set}" = set; then
22394 withval="$with_cbc_lib"
22395 if test "$withval" = no ; then
22396 coin_has_cbc="no"
22397 coin_reason="--without-cbc-lib has been specified"
22398 else
22399 coin_has_cbc="no"
22400 coin_reason="--with-cbc-lib has been specified"
22401 fi
22402 fi;
22403 fi
22404
22405 if test "$coin_has_cbc" != no; then
22406
22407 # Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
22408 if test "${with_cbc_incdir+set}" = set; then
22409 withval="$with_cbc_incdir"
22410 if test "$withval" = no ; then
22411 coin_has_cbc="no"
22412 coin_reason="--without-cbc-incdir has been specified"
22413 else
22414 coin_has_cbc="no"
22415 coin_reason="--with-cbc-incdir has been specified"
22416 fi
22417 fi;
22418 fi
22419
22420 if test "$coin_has_cbc" != no; then
22421
22422 # Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
22423 if test "${with_cbc_datadir+set}" = set; then
22424 withval="$with_cbc_datadir"
22425 if test "$withval" = no ; then
22426 coin_has_cbc="no"
22427 coin_reason="--without-cbc-datadir has been specified"
22428 else
22429 coin_has_cbc="no"
22430 coin_reason="--with-cbc-datadir has been specified"
22431 fi
22432 fi;
22433 fi
22434
22435
22436
22437
22438
22439 # check if project is available in present directory
22440 if test "$coin_has_cbc" = notGiven; then
22441 coin_has_cbc=no
22442 if test -d $srcdir/Cbc; then
22443 coin_reason="source in Cbc"
22444 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22445 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22446 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22447 coin_has_cbc="yes"
22448
22449 fi
22450 fi
22451
22452 if test -z "$coin_reason" ; then
22453 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
22454 echo "${ECHO_T}$coin_has_cbc" >&6
22455 else
22456 echo "$as_me:$LINENO: result: $coin_has_cbc, $coin_reason" >&5
22457 echo "${ECHO_T}$coin_has_cbc, $coin_reason" >&6
22458 fi
22459
22460 if test "$coin_has_cbc" = yes ; then
22461 if test -r $srcdir/Cbc/configure; then
22462 coin_subdirs="$coin_subdirs Cbc"
22463
22464
22465 subdirs="$subdirs Cbc"
22466
22467 fi
22468 fi
22469
22470
22471 echo "$as_me:$LINENO: checking whether source of project Bcp is available and should be compiled" >&5
22472 echo $ECHO_N "checking whether source of project Bcp is available and should be compiled... $ECHO_C" >&6
22473
22474 coin_has_bcp=notGiven
22475 coin_reason=
22476
22477 # check if user wants to skip project in any case
22478
22479 if test x"$COIN_SKIP_PROJECTS" != x; then
22480 for dir in $COIN_SKIP_PROJECTS; do
22481 if test $dir = "Bcp"; then
22482 coin_has_bcp="no"
22483 coin_reason="Bcp has been specified in COIN_SKIP_PROJECTS"
22484 fi
22485
22486 done
22487 fi
22488
22489 if test "$coin_has_bcp" != no; then
22490
22491 # Check whether --with-m4_tolower(Bcp) or --without-m4_tolower(Bcp) was given.
22492 if test "${with_bcp+set}" = set; then
22493 withval="$with_bcp"
22494 if test "$withval" = no ; then
22495 coin_has_bcp="no"
22496 coin_reason="--without-bcp has been specified"
22497 fi
22498
22499 fi;
22500 fi
22501
22502 if test "$coin_has_bcp" != no; then
22503
22504 # Check whether --with-m4_tolower(Bcp)-lib or --without-m4_tolower(Bcp)-lib was given.
22505 if test "${with_bcp_lib+set}" = set; then
22506 withval="$with_bcp_lib"
22507 if test "$withval" = no ; then
22508 coin_has_bcp="no"
22509 coin_reason="--without-bcp-lib has been specified"
22510 else
22511 coin_has_bcp="no"
22512 coin_reason="--with-bcp-lib has been specified"
22513 fi
22514 fi;
22515 fi
22516
22517 if test "$coin_has_bcp" != no; then
22518
22519 # Check whether --with-m4_tolower(Bcp)-incdir or --without-m4_tolower(Bcp)-incdir was given.
22520 if test "${with_bcp_incdir+set}" = set; then
22521 withval="$with_bcp_incdir"
22522 if test "$withval" = no ; then
22523 coin_has_bcp="no"
22524 coin_reason="--without-bcp-incdir has been specified"
22525 else
22526 coin_has_bcp="no"
22527 coin_reason="--with-bcp-incdir has been specified"
22528 fi
22529 fi;
22530 fi
22531
22532 if test "$coin_has_bcp" != no; then
22533
22534 # Check whether --with-m4_tolower(Bcp)-datadir or --without-m4_tolower(Bcp)-datadir was given.
22535 if test "${with_bcp_datadir+set}" = set; then
22536 withval="$with_bcp_datadir"
22537 if test "$withval" = no ; then
22538 coin_has_bcp="no"
22539 coin_reason="--without-bcp-datadir has been specified"
22540 else
22541 coin_has_bcp="no"
22542 coin_reason="--with-bcp-datadir has been specified"
22543 fi
22544 fi;
22545 fi
22546
22547
22548
22549
22550
22551 # check if project is available in present directory
22552 if test "$coin_has_bcp" = notGiven; then
22553 coin_has_bcp=no
22554 if test -d $srcdir/Bcp; then
22555 coin_reason="source in Bcp"
22556 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22557 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22558 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22559 coin_has_bcp="yes"
22560
22561 fi
22562 fi
22563
22564 if test -z "$coin_reason" ; then
22565 echo "$as_me:$LINENO: result: $coin_has_bcp" >&5
22566 echo "${ECHO_T}$coin_has_bcp" >&6
22567 else
22568 echo "$as_me:$LINENO: result: $coin_has_bcp, $coin_reason" >&5
22569 echo "${ECHO_T}$coin_has_bcp, $coin_reason" >&6
22570 fi
22571
22572 if test "$coin_has_bcp" = yes ; then
22573 if test -r $srcdir/Bcp/configure; then
22574 coin_subdirs="$coin_subdirs Bcp"
22575
22576
22577 subdirs="$subdirs Bcp"
22578
22579 fi
22580 fi
22581
22582
22583 echo "$as_me:$LINENO: checking whether source of project Ipopt is available and should be compiled" >&5
22584 echo $ECHO_N "checking whether source of project Ipopt is available and should be compiled... $ECHO_C" >&6
22585
22586 coin_has_ipopt=notGiven
22587 coin_reason=
22588
22589 # check if user wants to skip project in any case
22590
22591 if test x"$COIN_SKIP_PROJECTS" != x; then
22592 for dir in $COIN_SKIP_PROJECTS; do
22593 if test $dir = "Ipopt"; then
22594 coin_has_ipopt="no"
22595 coin_reason="Ipopt has been specified in COIN_SKIP_PROJECTS"
22596 fi
22597
22598 done
22599 fi
22600
22601 if test "$coin_has_ipopt" != no; then
22602
22603 # Check whether --with-m4_tolower(Ipopt) or --without-m4_tolower(Ipopt) was given.
22604 if test "${with_ipopt+set}" = set; then
22605 withval="$with_ipopt"
22606 if test "$withval" = no ; then
22607 coin_has_ipopt="no"
22608 coin_reason="--without-ipopt has been specified"
22609 fi
22610
22611 fi;
22612 fi
22613
22614 if test "$coin_has_ipopt" != no; then
22615
22616 # Check whether --with-m4_tolower(Ipopt)-lib or --without-m4_tolower(Ipopt)-lib was given.
22617 if test "${with_ipopt_lib+set}" = set; then
22618 withval="$with_ipopt_lib"
22619 if test "$withval" = no ; then
22620 coin_has_ipopt="no"
22621 coin_reason="--without-ipopt-lib has been specified"
22622 else
22623 coin_has_ipopt="no"
22624 coin_reason="--with-ipopt-lib has been specified"
22625 fi
22626 fi;
22627 fi
22628
22629 if test "$coin_has_ipopt" != no; then
22630
22631 # Check whether --with-m4_tolower(Ipopt)-incdir or --without-m4_tolower(Ipopt)-incdir was given.
22632 if test "${with_ipopt_incdir+set}" = set; then
22633 withval="$with_ipopt_incdir"
22634 if test "$withval" = no ; then
22635 coin_has_ipopt="no"
22636 coin_reason="--without-ipopt-incdir has been specified"
22637 else
22638 coin_has_ipopt="no"
22639 coin_reason="--with-ipopt-incdir has been specified"
22640 fi
22641 fi;
22642 fi
22643
22644 if test "$coin_has_ipopt" != no; then
22645
22646 # Check whether --with-m4_tolower(Ipopt)-datadir or --without-m4_tolower(Ipopt)-datadir was given.
22647 if test "${with_ipopt_datadir+set}" = set; then
22648 withval="$with_ipopt_datadir"
22649 if test "$withval" = no ; then
22650 coin_has_ipopt="no"
22651 coin_reason="--without-ipopt-datadir has been specified"
22652 else
22653 coin_has_ipopt="no"
22654 coin_reason="--with-ipopt-datadir has been specified"
22655 fi
22656 fi;
22657 fi
22658
22659
22660
22661
22662
22663 # check if project is available in present directory
22664 if test "$coin_has_ipopt" = notGiven; then
22665 coin_has_ipopt=no
22666 if test -d $srcdir/Ipopt; then
22667 coin_reason="source in Ipopt"
22668 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22669 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22670 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22671 coin_has_ipopt="yes"
22672
22673 fi
22674 fi
22675
22676 if test -z "$coin_reason" ; then
22677 echo "$as_me:$LINENO: result: $coin_has_ipopt" >&5
22678 echo "${ECHO_T}$coin_has_ipopt" >&6
22679 else
22680 echo "$as_me:$LINENO: result: $coin_has_ipopt, $coin_reason" >&5
22681 echo "${ECHO_T}$coin_has_ipopt, $coin_reason" >&6
22682 fi
22683
22684 if test "$coin_has_ipopt" = yes ; then
22685 if test -r $srcdir/Ipopt/configure; then
22686 coin_subdirs="$coin_subdirs Ipopt"
22687
22688
22689 subdirs="$subdirs Ipopt"
22690
22691 fi
22692 fi
22693
22694
22695 echo "$as_me:$LINENO: checking whether source of project Bonmin is available and should be compiled" >&5
22696 echo $ECHO_N "checking whether source of project Bonmin is available and should be compiled... $ECHO_C" >&6
22697
22698 coin_has_bonmin=notGiven
22699 coin_reason=
22700
22701 # check if user wants to skip project in any case
22702
22703 if test x"$COIN_SKIP_PROJECTS" != x; then
22704 for dir in $COIN_SKIP_PROJECTS; do
22705 if test $dir = "Bonmin"; then
22706 coin_has_bonmin="no"
22707 coin_reason="Bonmin has been specified in COIN_SKIP_PROJECTS"
22708 fi
22709
22710 done
22711 fi
22712
22713 if test "$coin_has_bonmin" != no; then
22714
22715 # Check whether --with-m4_tolower(Bonmin) or --without-m4_tolower(Bonmin) was given.
22716 if test "${with_bonmin+set}" = set; then
22717 withval="$with_bonmin"
22718 if test "$withval" = no ; then
22719 coin_has_bonmin="no"
22720 coin_reason="--without-bonmin has been specified"
22721 fi
22722
22723 fi;
22724 fi
22725
22726 if test "$coin_has_bonmin" != no; then
22727
22728 # Check whether --with-m4_tolower(Bonmin)-lib or --without-m4_tolower(Bonmin)-lib was given.
22729 if test "${with_bonmin_lib+set}" = set; then
22730 withval="$with_bonmin_lib"
22731 if test "$withval" = no ; then
22732 coin_has_bonmin="no"
22733 coin_reason="--without-bonmin-lib has been specified"
22734 else
22735 coin_has_bonmin="no"
22736 coin_reason="--with-bonmin-lib has been specified"
22737 fi
22738 fi;
22739 fi
22740
22741 if test "$coin_has_bonmin" != no; then
22742
22743 # Check whether --with-m4_tolower(Bonmin)-incdir or --without-m4_tolower(Bonmin)-incdir was given.
22744 if test "${with_bonmin_incdir+set}" = set; then
22745 withval="$with_bonmin_incdir"
22746 if test "$withval" = no ; then
22747 coin_has_bonmin="no"
22748 coin_reason="--without-bonmin-incdir has been specified"
22749 else
22750 coin_has_bonmin="no"
22751 coin_reason="--with-bonmin-incdir has been specified"
22752 fi
22753 fi;
22754 fi
22755
22756 if test "$coin_has_bonmin" != no; then
22757
22758 # Check whether --with-m4_tolower(Bonmin)-datadir or --without-m4_tolower(Bonmin)-datadir was given.
22759 if test "${with_bonmin_datadir+set}" = set; then
22760 withval="$with_bonmin_datadir"
22761 if test "$withval" = no ; then
22762 coin_has_bonmin="no"
22763 coin_reason="--without-bonmin-datadir has been specified"
22764 else
22765 coin_has_bonmin="no"
22766 coin_reason="--with-bonmin-datadir has been specified"
22767 fi
22768 fi;
22769 fi
22770
22771
22772
22773
22774
22775 # check if project is available in present directory
22776 if test "$coin_has_bonmin" = notGiven; then
22777 coin_has_bonmin=no
22778 if test -d $srcdir/Bonmin; then
22779 coin_reason="source in Bonmin"
22780 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22781 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22782 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22783 coin_has_bonmin="yes"
22784
22785 fi
22786 fi
22787
22788 if test -z "$coin_reason" ; then
22789 echo "$as_me:$LINENO: result: $coin_has_bonmin" >&5
22790 echo "${ECHO_T}$coin_has_bonmin" >&6
22791 else
22792 echo "$as_me:$LINENO: result: $coin_has_bonmin, $coin_reason" >&5
22793 echo "${ECHO_T}$coin_has_bonmin, $coin_reason" >&6
22794 fi
22795
22796 if test "$coin_has_bonmin" = yes ; then
22797 if test -r $srcdir/Bonmin/configure; then
22798 coin_subdirs="$coin_subdirs Bonmin"
22799
22800
22801 subdirs="$subdirs Bonmin"
22802
22803 fi
22804 fi
22805
22806
22807 ##############################################################################
22808 # Finishing up by writing all the output #
22809 ##############################################################################
22810
22811 # Here list all the files that configure should create (except for the
22812 # configuration header file)
22813 ac_config_files="$ac_config_files Makefile doxydoc/doxygen.conf"
22814
22815
22816 # Finally, we let configure write all the output...
22817
22818
22819
22820
22821 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22822 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22823 coin_link_input_cmd="$LN_S"
22824 case "$CC" in
22825 clang* ) ;;
22826 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22827 coin_link_input_cmd=cp ;;
22828 esac
22829 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22830 echo "${ECHO_T}$coin_link_input_cmd" >&6
22831
22832
22833
22834 if test x$coin_skip_ac_output != xyes; then
22835
22836 # library extension
22837
22838 case "$CC" in
22839 clang* )
22840 LIBEXT=a ;;
22841 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22842 LIBEXT=lib ;;
22843 *) LIBEXT=a ;;
22844 esac
22845
22846 # Define VPATH_DISTCLEANFILES to be everything that needs to be
22847 # cleaned for distclean in a vpath configuration
22848
22849 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22850
22851 # Take out subdirectories if their configuration concluded that they
22852 # don't need to be compiled
22853 if test x"$coin_ac_skip_subdirs" != x; then
22854 new_subdirs=
22855 for i in $subdirs; do
22856 skipme=no
22857 for j in $coin_ac_skip_subdirs; do
22858 if test $i = $j; then
22859 skipme=yes;
22860 fi
22861 done
22862 if test $skipme = no; then
22863 new_subdirs="$new_subdirs $i"
22864 fi
22865 done
22866 subdirs="$new_subdirs"
22867 fi
22868
22869 # need to come before AC_OUTPUT
22870 if test x$coin_projectdir != xyes; then
22871 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22872 echo $coin_subdirs > coin_subdirs.txt
22873 else
22874 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22875 ABSBUILDDIR="`pwd`"
22876
22877 fi
22878
22879 cat >confcache <<\_ACEOF
22880 # This file is a shell script that caches the results of configure
22881 # tests run on this system so they can be shared between configure
22882 # scripts and configure runs, see configure's option --config-cache.
22883 # It is not useful on other systems. If it contains results you don't
22884 # want to keep, you may remove or edit it.
22885 #
22886 # config.status only pays attention to the cache file if you give it
22887 # the --recheck option to rerun configure.
22888 #
22889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22891 # following values.
22892
22893 _ACEOF
22894
22895 # The following way of writing the cache mishandles newlines in values,
22896 # but we know of no workaround that is simple, portable, and efficient.
22897 # So, don't put newlines in cache variables' values.
22898 # Ultrix sh set writes to stderr and can't be redirected directly,
22899 # and sets the high bit in the cache file unless we assign to the vars.
22900 {
22901 (set) 2>&1 |
22902 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22903 *ac_space=\ *)
22904 # `set' does not quote correctly, so add quotes (double-quote
22905 # substitution turns \\\\ into \\, and sed turns \\ into \).
22906 sed -n \
22907 "s/'/'\\\\''/g;
22908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22909 ;;
22910 *)
22911 # `set' quotes correctly as required by POSIX, so do not add quotes.
22912 sed -n \
22913 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22914 ;;
22915 esac;
22916 } |
22917 sed '
22918 t clear
22919 : clear
22920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22921 t end
22922 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22923 : end' >>confcache
22924 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22925 if test -w $cache_file; then
22926 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22927 cat confcache >$cache_file
22928 else
22929 echo "not updating unwritable cache $cache_file"
22930 fi
22931 fi
22932 rm -f confcache
22933
22934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22935 # Let make expand exec_prefix.
22936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22937
22938 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22939 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22940 # trailing colons and then remove the whole line if VPATH becomes empty
22941 # (actually we leave an empty line to preserve line numbers).
22942 if test "x$srcdir" = x.; then
22943 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22944 s/:*\$(srcdir):*/:/;
22945 s/:*\${srcdir}:*/:/;
22946 s/:*@srcdir@:*/:/;
22947 s/^\([^=]*=[ ]*\):*/\1/;
22948 s/:*$//;
22949 s/^[^=]*=[ ]*$//;
22950 }'
22951 fi
22952
22953 # Transform confdefs.h into DEFS.
22954 # Protect against shell expansion while executing Makefile rules.
22955 # Protect against Makefile macro expansion.
22956 #
22957 # If the first sed substitution is executed (which looks for macros that
22958 # take arguments), then we branch to the quote section. Otherwise,
22959 # look for a macro that doesn't take arguments.
22960 cat >confdef2opt.sed <<\_ACEOF
22961 t clear
22962 : clear
22963 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
22964 t quote
22965 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
22966 t quote
22967 d
22968 : quote
22969 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
22970 s,\[,\\&,g
22971 s,\],\\&,g
22972 s,\$,$$,g
22973 p
22974 _ACEOF
22975 # We use echo to avoid assuming a particular line-breaking character.
22976 # The extra dot is to prevent the shell from consuming trailing
22977 # line-breaks from the sub-command output. A line-break within
22978 # single-quotes doesn't work because, if this script is created in a
22979 # platform that uses two characters for line-breaks (e.g., DOS), tr
22980 # would break.
22981 ac_LF_and_DOT=`echo; echo .`
22982 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22983 rm -f confdef2opt.sed
22984
22985
22986 ac_libobjs=
22987 ac_ltlibobjs=
22988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22989 # 1. Remove the extension, and $U if already installed.
22990 ac_i=`echo "$ac_i" |
22991 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22992 # 2. Add them.
22993 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22994 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22995 done
22996 LIBOBJS=$ac_libobjs
22997
22998 LTLIBOBJS=$ac_ltlibobjs
22999
23000
23001 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
23002 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
23003 Usually this means the macro was only invoked conditionally." >&5
23004 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
23005 Usually this means the macro was only invoked conditionally." >&2;}
23006 { (exit 1); exit 1; }; }
23007 fi
23008 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
23009 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
23010 Usually this means the macro was only invoked conditionally." >&5
23011 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
23012 Usually this means the macro was only invoked conditionally." >&2;}
23013 { (exit 1); exit 1; }; }
23014 fi
23015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23016 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23017 Usually this means the macro was only invoked conditionally." >&5
23018 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23019 Usually this means the macro was only invoked conditionally." >&2;}
23020 { (exit 1); exit 1; }; }
23021 fi
23022 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23023 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23024 Usually this means the macro was only invoked conditionally." >&5
23025 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23026 Usually this means the macro was only invoked conditionally." >&2;}
23027 { (exit 1); exit 1; }; }
23028 fi
23029 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23030 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23031 Usually this means the macro was only invoked conditionally." >&5
23032 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23033 Usually this means the macro was only invoked conditionally." >&2;}
23034 { (exit 1); exit 1; }; }
23035 fi
23036 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23037 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23038 Usually this means the macro was only invoked conditionally." >&5
23039 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23040 Usually this means the macro was only invoked conditionally." >&2;}
23041 { (exit 1); exit 1; }; }
23042 fi
23043 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
23044 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
23045 Usually this means the macro was only invoked conditionally." >&5
23046 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
23047 Usually this means the macro was only invoked conditionally." >&2;}
23048 { (exit 1); exit 1; }; }
23049 fi
23050 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
23051 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
23052 Usually this means the macro was only invoked conditionally." >&5
23053 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
23054 Usually this means the macro was only invoked conditionally." >&2;}
23055 { (exit 1); exit 1; }; }
23056 fi
23057
23058 : ${CONFIG_STATUS=./config.status}
23059 ac_clean_files_save=$ac_clean_files
23060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23063 cat >$CONFIG_STATUS <<_ACEOF
23064 #! $SHELL
23065 # Generated by $as_me.
23066 # Run this file to recreate the current configuration.
23067 # Compiler output produced by configure, useful for debugging
23068 # configure, is in config.log if it exists.
23069
23070 debug=false
23071 ac_cs_recheck=false
23072 ac_cs_silent=false
23073 SHELL=\${CONFIG_SHELL-$SHELL}
23074 _ACEOF
23075
23076 cat >>$CONFIG_STATUS <<\_ACEOF
23077 ## --------------------- ##
23078 ## M4sh Initialization. ##
23079 ## --------------------- ##
23080
23081 # Be Bourne compatible
23082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23083 emulate sh
23084 NULLCMD=:
23085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23086 # is contrary to our usage. Disable this feature.
23087 alias -g '${1+"$@"}'='"$@"'
23088 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23089 set -o posix
23090 fi
23091 DUALCASE=1; export DUALCASE # for MKS sh
23092
23093 # Support unset when possible.
23094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23095 as_unset=unset
23096 else
23097 as_unset=false
23098 fi
23099
23100
23101 # Work around bugs in pre-3.0 UWIN ksh.
23102 $as_unset ENV MAIL MAILPATH
23103 PS1='$ '
23104 PS2='> '
23105 PS4='+ '
23106
23107 # NLS nuisances.
23108 for as_var in \
23109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23111 LC_TELEPHONE LC_TIME
23112 do
23113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23114 eval $as_var=C; export $as_var
23115 else
23116 $as_unset $as_var
23117 fi
23118 done
23119
23120 # Required to use basename.
23121 if expr a : '\(a\)' >/dev/null 2>&1; then
23122 as_expr=expr
23123 else
23124 as_expr=false
23125 fi
23126
23127 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23128 as_basename=basename
23129 else
23130 as_basename=false
23131 fi
23132
23133
23134 # Name of the executable.
23135 as_me=`$as_basename "$0" ||
23136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23137 X"$0" : 'X\(//\)$' \| \
23138 X"$0" : 'X\(/\)$' \| \
23139 . : '\(.\)' 2>/dev/null ||
23140 echo X/"$0" |
23141 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23142 /^X\/\(\/\/\)$/{ s//\1/; q; }
23143 /^X\/\(\/\).*/{ s//\1/; q; }
23144 s/.*/./; q'`
23145
23146
23147 # PATH needs CR, and LINENO needs CR and PATH.
23148 # Avoid depending upon Character Ranges.
23149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23152 as_cr_digits='0123456789'
23153 as_cr_alnum=$as_cr_Letters$as_cr_digits
23154
23155 # The user is always right.
23156 if test "${PATH_SEPARATOR+set}" != set; then
23157 echo "#! /bin/sh" >conf$$.sh
23158 echo "exit 0" >>conf$$.sh
23159 chmod +x conf$$.sh
23160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23161 PATH_SEPARATOR=';'
23162 else
23163 PATH_SEPARATOR=:
23164 fi
23165 rm -f conf$$.sh
23166 fi
23167
23168
23169 as_lineno_1=$LINENO
23170 as_lineno_2=$LINENO
23171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23172 test "x$as_lineno_1" != "x$as_lineno_2" &&
23173 test "x$as_lineno_3" = "x$as_lineno_2" || {
23174 # Find who we are. Look in the path if we contain no path at all
23175 # relative or not.
23176 case $0 in
23177 *[\\/]* ) as_myself=$0 ;;
23178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179 for as_dir in $PATH
23180 do
23181 IFS=$as_save_IFS
23182 test -z "$as_dir" && as_dir=.
23183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23184 done
23185
23186 ;;
23187 esac
23188 # We did not find ourselves, most probably we were run as `sh COMMAND'
23189 # in which case we are not to be found in the path.
23190 if test "x$as_myself" = x; then
23191 as_myself=$0
23192 fi
23193 if test ! -f "$as_myself"; then
23194 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23196 { (exit 1); exit 1; }; }
23197 fi
23198 case $CONFIG_SHELL in
23199 '')
23200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23202 do
23203 IFS=$as_save_IFS
23204 test -z "$as_dir" && as_dir=.
23205 for as_base in sh bash ksh sh5; do
23206 case $as_dir in
23207 /*)
23208 if ("$as_dir/$as_base" -c '
23209 as_lineno_1=$LINENO
23210 as_lineno_2=$LINENO
23211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23212 test "x$as_lineno_1" != "x$as_lineno_2" &&
23213 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23214 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23215 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23216 CONFIG_SHELL=$as_dir/$as_base
23217 export CONFIG_SHELL
23218 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23219 fi;;
23220 esac
23221 done
23222 done
23223 ;;
23224 esac
23225
23226 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23227 # uniformly replaced by the line number. The first 'sed' inserts a
23228 # line-number line before each line; the second 'sed' does the real
23229 # work. The second script uses 'N' to pair each line-number line
23230 # with the numbered line, and appends trailing '-' during
23231 # substitution so that $LINENO is not a special case at line end.
23232 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23233 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23234 sed '=' <$as_myself |
23235 sed '
23236 N
23237 s,$,-,
23238 : loop
23239 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23240 t loop
23241 s,-$,,
23242 s,^['$as_cr_digits']*\n,,
23243 ' >$as_me.lineno &&
23244 chmod +x $as_me.lineno ||
23245 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23246 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23247 { (exit 1); exit 1; }; }
23248
23249 # Don't try to exec as it changes $[0], causing all sort of problems
23250 # (the dirname of $[0] is not the place where we might find the
23251 # original and so on. Autoconf is especially sensible to this).
23252 . ./$as_me.lineno
23253 # Exit status is that of the last command.
23254 exit
23255 }
23256
23257
23258 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23259 *c*,-n*) ECHO_N= ECHO_C='
23260 ' ECHO_T=' ' ;;
23261 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23262 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23263 esac
23264
23265 if expr a : '\(a\)' >/dev/null 2>&1; then
23266 as_expr=expr
23267 else
23268 as_expr=false
23269 fi
23270
23271 rm -f conf$$ conf$$.exe conf$$.file
23272 echo >conf$$.file
23273 if ln -s conf$$.file conf$$ 2>/dev/null; then
23274 # We could just check for DJGPP; but this test a) works b) is more generic
23275 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23276 if test -f conf$$.exe; then
23277 # Don't use ln at all; we don't have any links
23278 as_ln_s='cp -p'
23279 else
23280 as_ln_s='ln -s'
23281 fi
23282 elif ln conf$$.file conf$$ 2>/dev/null; then
23283 as_ln_s=ln
23284 else
23285 as_ln_s='cp -p'
23286 fi
23287 rm -f conf$$ conf$$.exe conf$$.file
23288
23289 if mkdir -p . 2>/dev/null; then
23290 as_mkdir_p=:
23291 else
23292 test -d ./-p && rmdir ./-p
23293 as_mkdir_p=false
23294 fi
23295
23296 as_executable_p="test -f"
23297
23298 # Sed expression to map a string onto a valid CPP name.
23299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23300
23301 # Sed expression to map a string onto a valid variable name.
23302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23303
23304
23305 # IFS
23306 # We need space, tab and new line, in precisely that order.
23307 as_nl='
23308 '
23309 IFS=" $as_nl"
23310
23311 # CDPATH.
23312 $as_unset CDPATH
23313
23314 exec 6>&1
23315
23316 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23317 # report actual input values of CONFIG_FILES etc. instead of their
23318 # values after options handling. Logging --version etc. is OK.
23319 exec 5>>config.log
23320 {
23321 echo
23322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23323 ## Running $as_me. ##
23324 _ASBOX
23325 } >&5
23326 cat >&5 <<_CSEOF
23327
23328 This file was extended by Bonmin $as_me 1.8.9, which was
23329 generated by GNU Autoconf 2.59. Invocation command line was
23330
23331 CONFIG_FILES = $CONFIG_FILES
23332 CONFIG_HEADERS = $CONFIG_HEADERS
23333 CONFIG_LINKS = $CONFIG_LINKS
23334 CONFIG_COMMANDS = $CONFIG_COMMANDS
23335 $ $0 $@
23336
23337 _CSEOF
23338 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23339 echo >&5
23340 _ACEOF
23341
23342 # Files that config.status was made for.
23343 if test -n "$ac_config_files"; then
23344 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23345 fi
23346
23347 if test -n "$ac_config_headers"; then
23348 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23349 fi
23350
23351 if test -n "$ac_config_links"; then
23352 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23353 fi
23354
23355 if test -n "$ac_config_commands"; then
23356 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23357 fi
23358
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360
23361 ac_cs_usage="\
23362 \`$as_me' instantiates files from templates according to the
23363 current configuration.
23364
23365 Usage: $0 [OPTIONS] [FILE]...
23366
23367 -h, --help print this help, then exit
23368 -V, --version print version number, then exit
23369 -q, --quiet do not print progress messages
23370 -d, --debug don't remove temporary files
23371 --recheck update $as_me by reconfiguring in the same conditions
23372 --file=FILE[:TEMPLATE]
23373 instantiate the configuration file FILE
23374
23375 Configuration files:
23376 $config_files
23377
23378 Configuration commands:
23379 $config_commands
23380
23381 Report bugs to <[email protected]>."
23382 _ACEOF
23383
23384 cat >>$CONFIG_STATUS <<_ACEOF
23385 ac_cs_version="\\
23386 Bonmin config.status 1.8.9
23387 configured by $0, generated by GNU Autoconf 2.59,
23388 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23389
23390 Copyright (C) 2003 Free Software Foundation, Inc.
23391 This config.status script is free software; the Free Software Foundation
23392 gives unlimited permission to copy, distribute and modify it."
23393 srcdir=$srcdir
23394 INSTALL="$INSTALL"
23395 _ACEOF
23396
23397 cat >>$CONFIG_STATUS <<\_ACEOF
23398 # If no file are specified by the user, then we need to provide default
23399 # value. By we need to know if files were specified by the user.
23400 ac_need_defaults=:
23401 while test $# != 0
23402 do
23403 case $1 in
23404 --*=*)
23405 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23406 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23407 ac_shift=:
23408 ;;
23409 -*)
23410 ac_option=$1
23411 ac_optarg=$2
23412 ac_shift=shift
23413 ;;
23414 *) # This is not an option, so the user has probably given explicit
23415 # arguments.
23416 ac_option=$1
23417 ac_need_defaults=false;;
23418 esac
23419
23420 case $ac_option in
23421 # Handling of the options.
23422 _ACEOF
23423 cat >>$CONFIG_STATUS <<\_ACEOF
23424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23425 ac_cs_recheck=: ;;
23426 --version | --vers* | -V )
23427 echo "$ac_cs_version"; exit 0 ;;
23428 --he | --h)
23429 # Conflict between --help and --header
23430 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23431 Try \`$0 --help' for more information." >&5
23432 echo "$as_me: error: ambiguous option: $1
23433 Try \`$0 --help' for more information." >&2;}
23434 { (exit 1); exit 1; }; };;
23435 --help | --hel | -h )
23436 echo "$ac_cs_usage"; exit 0 ;;
23437 --debug | --d* | -d )
23438 debug=: ;;
23439 --file | --fil | --fi | --f )
23440 $ac_shift
23441 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23442 ac_need_defaults=false;;
23443 --header | --heade | --head | --hea )
23444 $ac_shift
23445 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23446 ac_need_defaults=false;;
23447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23448 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23449 ac_cs_silent=: ;;
23450
23451 # This is an error.
23452 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23453 Try \`$0 --help' for more information." >&5
23454 echo "$as_me: error: unrecognized option: $1
23455 Try \`$0 --help' for more information." >&2;}
23456 { (exit 1); exit 1; }; } ;;
23457
23458 *) ac_config_targets="$ac_config_targets $1" ;;
23459
23460 esac
23461 shift
23462 done
23463
23464 ac_configure_extra_args=
23465
23466 if $ac_cs_silent; then
23467 exec 6>/dev/null
23468 ac_configure_extra_args="$ac_configure_extra_args --silent"
23469 fi
23470
23471 _ACEOF
23472 cat >>$CONFIG_STATUS <<_ACEOF
23473 if \$ac_cs_recheck; then
23474 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23475 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23476 fi
23477
23478 _ACEOF
23479
23480 cat >>$CONFIG_STATUS <<_ACEOF
23481 #
23482 # INIT-COMMANDS section.
23483 #
23484
23485 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23486
23487 _ACEOF
23488
23489
23490
23491 cat >>$CONFIG_STATUS <<\_ACEOF
23492 for ac_config_target in $ac_config_targets
23493 do
23494 case "$ac_config_target" in
23495 # Handling of arguments.
23496 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23497 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
23498 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23501 { (exit 1); exit 1; }; };;
23502 esac
23503 done
23504
23505 # If the user did not use the arguments to specify the items to instantiate,
23506 # then the envvar interface is used. Set only those that are not.
23507 # We use the long form for the default assignment because of an extremely
23508 # bizarre bug on SunOS 4.1.3.
23509 if $ac_need_defaults; then
23510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23511 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23512 fi
23513
23514 # Have a temporary directory for convenience. Make it in the build tree
23515 # simply because there is no reason to put it here, and in addition,
23516 # creating and moving files from /tmp can sometimes cause problems.
23517 # Create a temporary directory, and hook for its removal unless debugging.
23518 $debug ||
23519 {
23520 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23521 trap '{ (exit 1); exit 1; }' 1 2 13 15
23522 }
23523
23524 # Create a (secure) tmp directory for tmp files.
23525
23526 {
23527 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23528 test -n "$tmp" && test -d "$tmp"
23529 } ||
23530 {
23531 tmp=./confstat$$-$RANDOM
23532 (umask 077 && mkdir $tmp)
23533 } ||
23534 {
23535 echo "$me: cannot create a temporary directory in ." >&2
23536 { (exit 1); exit 1; }
23537 }
23538
23539 _ACEOF
23540
23541 cat >>$CONFIG_STATUS <<_ACEOF
23542
23543 #
23544 # CONFIG_FILES section.
23545 #
23546
23547 # No need to generate the scripts if there are no CONFIG_FILES.
23548 # This happens for instance when ./config.status config.h
23549 if test -n "\$CONFIG_FILES"; then
23550 # Protect against being on the right side of a sed subst in config.status.
23551 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23552 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23553 s,@SHELL@,$SHELL,;t t
23554 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23555 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23556 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23557 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23558 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23559 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23560 s,@exec_prefix@,$exec_prefix,;t t
23561 s,@prefix@,$prefix,;t t
23562 s,@program_transform_name@,$program_transform_name,;t t
23563 s,@bindir@,$bindir,;t t
23564 s,@sbindir@,$sbindir,;t t
23565 s,@libexecdir@,$libexecdir,;t t
23566 s,@datadir@,$datadir,;t t
23567 s,@sysconfdir@,$sysconfdir,;t t
23568 s,@sharedstatedir@,$sharedstatedir,;t t
23569 s,@localstatedir@,$localstatedir,;t t
23570 s,@libdir@,$libdir,;t t
23571 s,@includedir@,$includedir,;t t
23572 s,@oldincludedir@,$oldincludedir,;t t
23573 s,@infodir@,$infodir,;t t
23574 s,@mandir@,$mandir,;t t
23575 s,@build_alias@,$build_alias,;t t
23576 s,@host_alias@,$host_alias,;t t
23577 s,@target_alias@,$target_alias,;t t
23578 s,@DEFS@,$DEFS,;t t
23579 s,@ECHO_C@,$ECHO_C,;t t
23580 s,@ECHO_N@,$ECHO_N,;t t
23581 s,@ECHO_T@,$ECHO_T,;t t
23582 s,@LIBS@,$LIBS,;t t
23583 s,@build@,$build,;t t
23584 s,@build_cpu@,$build_cpu,;t t
23585 s,@build_vendor@,$build_vendor,;t t
23586 s,@build_os@,$build_os,;t t
23587 s,@CDEFS@,$CDEFS,;t t
23588 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23589 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23590 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23591 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23592 s,@CC@,$CC,;t t
23593 s,@CFLAGS@,$CFLAGS,;t t
23594 s,@LDFLAGS@,$LDFLAGS,;t t
23595 s,@CPPFLAGS@,$CPPFLAGS,;t t
23596 s,@ac_ct_CC@,$ac_ct_CC,;t t
23597 s,@EXEEXT@,$EXEEXT,;t t
23598 s,@OBJEXT@,$OBJEXT,;t t
23599 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23600 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23601 s,@MPICC@,$MPICC,;t t
23602 s,@CXXDEFS@,$CXXDEFS,;t t
23603 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23604 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23605 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23606 s,@CXX@,$CXX,;t t
23607 s,@CXXFLAGS@,$CXXFLAGS,;t t
23608 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23609 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23610 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23611 s,@MPICXX@,$MPICXX,;t t
23612 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
23613 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
23614 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
23615 s,@F77@,$F77,;t t
23616 s,@ac_ct_F77@,$ac_ct_F77,;t t
23617 s,@FFLAGS@,$FFLAGS,;t t
23618 s,@MPIF77@,$MPIF77,;t t
23619 s,@EGREP@,$EGREP,;t t
23620 s,@LN_S@,$LN_S,;t t
23621 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23622 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23623 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23624 s,@CYGPATH_W@,$CYGPATH_W,;t t
23625 s,@PACKAGE@,$PACKAGE,;t t
23626 s,@VERSION@,$VERSION,;t t
23627 s,@ACLOCAL@,$ACLOCAL,;t t
23628 s,@AUTOCONF@,$AUTOCONF,;t t
23629 s,@AUTOMAKE@,$AUTOMAKE,;t t
23630 s,@AUTOHEADER@,$AUTOHEADER,;t t
23631 s,@MAKEINFO@,$MAKEINFO,;t t
23632 s,@install_sh@,$install_sh,;t t
23633 s,@STRIP@,$STRIP,;t t
23634 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23635 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23636 s,@mkdir_p@,$mkdir_p,;t t
23637 s,@AWK@,$AWK,;t t
23638 s,@SET_MAKE@,$SET_MAKE,;t t
23639 s,@am__leading_dot@,$am__leading_dot,;t t
23640 s,@AMTAR@,$AMTAR,;t t
23641 s,@am__tar@,$am__tar,;t t
23642 s,@am__untar@,$am__untar,;t t
23643 s,@DEPDIR@,$DEPDIR,;t t
23644 s,@am__include@,$am__include,;t t
23645 s,@am__quote@,$am__quote,;t t
23646 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23647 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23648 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23649 s,@CCDEPMODE@,$CCDEPMODE,;t t
23650 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23651 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23652 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23653 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23654 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23655 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23656 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23657 s,@MAINT@,$MAINT,;t t
23658 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23659 s,@have_autoconf@,$have_autoconf,;t t
23660 s,@have_automake@,$have_automake,;t t
23661 s,@have_svn@,$have_svn,;t t
23662 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23663 s,@AUX_DIR@,$AUX_DIR,;t t
23664 s,@abs_source_dir@,$abs_source_dir,;t t
23665 s,@abs_lib_dir@,$abs_lib_dir,;t t
23666 s,@abs_include_dir@,$abs_include_dir,;t t
23667 s,@abs_bin_dir@,$abs_bin_dir,;t t
23668 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23669 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23670 s,@host@,$host,;t t
23671 s,@host_cpu@,$host_cpu,;t t
23672 s,@host_vendor@,$host_vendor,;t t
23673 s,@host_os@,$host_os,;t t
23674 s,@ECHO@,$ECHO,;t t
23675 s,@AR@,$AR,;t t
23676 s,@ac_ct_AR@,$ac_ct_AR,;t t
23677 s,@RANLIB@,$RANLIB,;t t
23678 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23679 s,@CPP@,$CPP,;t t
23680 s,@CXXCPP@,$CXXCPP,;t t
23681 s,@LIBTOOL@,$LIBTOOL,;t t
23682 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23683 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23684 s,@dos2unix@,$dos2unix,;t t
23685 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23686 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23687 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
23688 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
23689 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
23690 s,@subdirs@,$subdirs,;t t
23691 s,@LIBEXT@,$LIBEXT,;t t
23692 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23693 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23694 s,@LIBOBJS@,$LIBOBJS,;t t
23695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23696 CEOF
23697
23698 _ACEOF
23699
23700 cat >>$CONFIG_STATUS <<\_ACEOF
23701 # Split the substitutions into bite-sized pieces for seds with
23702 # small command number limits, like on Digital OSF/1 and HP-UX.
23703 ac_max_sed_lines=48
23704 ac_sed_frag=1 # Number of current file.
23705 ac_beg=1 # First line for current file.
23706 ac_end=$ac_max_sed_lines # Line after last line for current file.
23707 ac_more_lines=:
23708 ac_sed_cmds=
23709 while $ac_more_lines; do
23710 if test $ac_beg -gt 1; then
23711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23712 else
23713 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23714 fi
23715 if test ! -s $tmp/subs.frag; then
23716 ac_more_lines=false
23717 else
23718 # The purpose of the label and of the branching condition is to
23719 # speed up the sed processing (if there are no `@' at all, there
23720 # is no need to browse any of the substitutions).
23721 # These are the two extra sed commands mentioned above.
23722 (echo ':t
23723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23724 if test -z "$ac_sed_cmds"; then
23725 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23726 else
23727 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23728 fi
23729 ac_sed_frag=`expr $ac_sed_frag + 1`
23730 ac_beg=$ac_end
23731 ac_end=`expr $ac_end + $ac_max_sed_lines`
23732 fi
23733 done
23734 if test -z "$ac_sed_cmds"; then
23735 ac_sed_cmds=cat
23736 fi
23737 fi # test -n "$CONFIG_FILES"
23738
23739 _ACEOF
23740 cat >>$CONFIG_STATUS <<\_ACEOF
23741 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23743 case $ac_file in
23744 - | *:- | *:-:* ) # input from stdin
23745 cat >$tmp/stdin
23746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23750 * ) ac_file_in=$ac_file.in ;;
23751 esac
23752
23753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23756 X"$ac_file" : 'X\(//\)[^/]' \| \
23757 X"$ac_file" : 'X\(//\)$' \| \
23758 X"$ac_file" : 'X\(/\)' \| \
23759 . : '\(.\)' 2>/dev/null ||
23760 echo X"$ac_file" |
23761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23763 /^X\(\/\/\)$/{ s//\1/; q; }
23764 /^X\(\/\).*/{ s//\1/; q; }
23765 s/.*/./; q'`
23766 { if $as_mkdir_p; then
23767 mkdir -p "$ac_dir"
23768 else
23769 as_dir="$ac_dir"
23770 as_dirs=
23771 while test ! -d "$as_dir"; do
23772 as_dirs="$as_dir $as_dirs"
23773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23775 X"$as_dir" : 'X\(//\)[^/]' \| \
23776 X"$as_dir" : 'X\(//\)$' \| \
23777 X"$as_dir" : 'X\(/\)' \| \
23778 . : '\(.\)' 2>/dev/null ||
23779 echo X"$as_dir" |
23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23782 /^X\(\/\/\)$/{ s//\1/; q; }
23783 /^X\(\/\).*/{ s//\1/; q; }
23784 s/.*/./; q'`
23785 done
23786 test ! -n "$as_dirs" || mkdir $as_dirs
23787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23789 { (exit 1); exit 1; }; }; }
23790
23791 ac_builddir=.
23792
23793 if test "$ac_dir" != .; then
23794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23795 # A "../" for each directory in $ac_dir_suffix.
23796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23797 else
23798 ac_dir_suffix= ac_top_builddir=
23799 fi
23800
23801 case $srcdir in
23802 .) # No --srcdir option. We are building in place.
23803 ac_srcdir=.
23804 if test -z "$ac_top_builddir"; then
23805 ac_top_srcdir=.
23806 else
23807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23808 fi ;;
23809 [\\/]* | ?:[\\/]* ) # Absolute path.
23810 ac_srcdir=$srcdir$ac_dir_suffix;
23811 ac_top_srcdir=$srcdir ;;
23812 *) # Relative path.
23813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23815 esac
23816
23817 # Do not use `cd foo && pwd` to compute absolute paths, because
23818 # the directories may not exist.
23819 case `pwd` in
23820 .) ac_abs_builddir="$ac_dir";;
23821 *)
23822 case "$ac_dir" in
23823 .) ac_abs_builddir=`pwd`;;
23824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23825 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23826 esac;;
23827 esac
23828 case $ac_abs_builddir in
23829 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23830 *)
23831 case ${ac_top_builddir}. in
23832 .) ac_abs_top_builddir=$ac_abs_builddir;;
23833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23835 esac;;
23836 esac
23837 case $ac_abs_builddir in
23838 .) ac_abs_srcdir=$ac_srcdir;;
23839 *)
23840 case $ac_srcdir in
23841 .) ac_abs_srcdir=$ac_abs_builddir;;
23842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23844 esac;;
23845 esac
23846 case $ac_abs_builddir in
23847 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23848 *)
23849 case $ac_top_srcdir in
23850 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23853 esac;;
23854 esac
23855
23856
23857 case $INSTALL in
23858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23859 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23860 esac
23861
23862 if test x"$ac_file" != x-; then
23863 { echo "$as_me:$LINENO: creating $ac_file" >&5
23864 echo "$as_me: creating $ac_file" >&6;}
23865 rm -f "$ac_file"
23866 fi
23867 # Let's still pretend it is `configure' which instantiates (i.e., don't
23868 # use $as_me), people would be surprised to read:
23869 # /* config.h. Generated by config.status. */
23870 if test x"$ac_file" = x-; then
23871 configure_input=
23872 else
23873 configure_input="$ac_file. "
23874 fi
23875 configure_input=$configure_input"Generated from `echo $ac_file_in |
23876 sed 's,.*/,,'` by configure."
23877
23878 # First look for the input files in the build tree, otherwise in the
23879 # src tree.
23880 ac_file_inputs=`IFS=:
23881 for f in $ac_file_in; do
23882 case $f in
23883 -) echo $tmp/stdin ;;
23884 [\\/$]*)
23885 # Absolute (can't be DOS-style, as IFS=:)
23886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23887 echo "$as_me: error: cannot find input file: $f" >&2;}
23888 { (exit 1); exit 1; }; }
23889 echo "$f";;
23890 *) # Relative
23891 if test -f "$f"; then
23892 # Build tree
23893 echo "$f"
23894 elif test -f "$srcdir/$f"; then
23895 # Source tree
23896 echo "$srcdir/$f"
23897 else
23898 # /dev/null tree
23899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23900 echo "$as_me: error: cannot find input file: $f" >&2;}
23901 { (exit 1); exit 1; }; }
23902 fi;;
23903 esac
23904 done` || { (exit 1); exit 1; }
23905 _ACEOF
23906 cat >>$CONFIG_STATUS <<_ACEOF
23907 sed "$ac_vpsub
23908 $extrasub
23909 _ACEOF
23910 cat >>$CONFIG_STATUS <<\_ACEOF
23911 :t
23912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23913 s,@configure_input@,$configure_input,;t t
23914 s,@srcdir@,$ac_srcdir,;t t
23915 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23916 s,@top_srcdir@,$ac_top_srcdir,;t t
23917 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23918 s,@builddir@,$ac_builddir,;t t
23919 s,@abs_builddir@,$ac_abs_builddir,;t t
23920 s,@top_builddir@,$ac_top_builddir,;t t
23921 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23922 s,@INSTALL@,$ac_INSTALL,;t t
23923 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23924 rm -f $tmp/stdin
23925 if test x"$ac_file" != x-; then
23926 mv $tmp/out $ac_file
23927 else
23928 cat $tmp/out
23929 rm -f $tmp/out
23930 fi
23931
23932 done
23933 _ACEOF
23934 cat >>$CONFIG_STATUS <<\_ACEOF
23935
23936 #
23937 # CONFIG_COMMANDS section.
23938 #
23939 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23940 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23941 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23942 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23943 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23944 X"$ac_dest" : 'X\(//\)[^/]' \| \
23945 X"$ac_dest" : 'X\(//\)$' \| \
23946 X"$ac_dest" : 'X\(/\)' \| \
23947 . : '\(.\)' 2>/dev/null ||
23948 echo X"$ac_dest" |
23949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23951 /^X\(\/\/\)$/{ s//\1/; q; }
23952 /^X\(\/\).*/{ s//\1/; q; }
23953 s/.*/./; q'`
23954 { if $as_mkdir_p; then
23955 mkdir -p "$ac_dir"
23956 else
23957 as_dir="$ac_dir"
23958 as_dirs=
23959 while test ! -d "$as_dir"; do
23960 as_dirs="$as_dir $as_dirs"
23961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23963 X"$as_dir" : 'X\(//\)[^/]' \| \
23964 X"$as_dir" : 'X\(//\)$' \| \
23965 X"$as_dir" : 'X\(/\)' \| \
23966 . : '\(.\)' 2>/dev/null ||
23967 echo X"$as_dir" |
23968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23970 /^X\(\/\/\)$/{ s//\1/; q; }
23971 /^X\(\/\).*/{ s//\1/; q; }
23972 s/.*/./; q'`
23973 done
23974 test ! -n "$as_dirs" || mkdir $as_dirs
23975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23977 { (exit 1); exit 1; }; }; }
23978
23979 ac_builddir=.
23980
23981 if test "$ac_dir" != .; then
23982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23983 # A "../" for each directory in $ac_dir_suffix.
23984 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23985 else
23986 ac_dir_suffix= ac_top_builddir=
23987 fi
23988
23989 case $srcdir in
23990 .) # No --srcdir option. We are building in place.
23991 ac_srcdir=.
23992 if test -z "$ac_top_builddir"; then
23993 ac_top_srcdir=.
23994 else
23995 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23996 fi ;;
23997 [\\/]* | ?:[\\/]* ) # Absolute path.
23998 ac_srcdir=$srcdir$ac_dir_suffix;
23999 ac_top_srcdir=$srcdir ;;
24000 *) # Relative path.
24001 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24002 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24003 esac
24004
24005 # Do not use `cd foo && pwd` to compute absolute paths, because
24006 # the directories may not exist.
24007 case `pwd` in
24008 .) ac_abs_builddir="$ac_dir";;
24009 *)
24010 case "$ac_dir" in
24011 .) ac_abs_builddir=`pwd`;;
24012 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24013 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24014 esac;;
24015 esac
24016 case $ac_abs_builddir in
24017 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24018 *)
24019 case ${ac_top_builddir}. in
24020 .) ac_abs_top_builddir=$ac_abs_builddir;;
24021 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24022 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24023 esac;;
24024 esac
24025 case $ac_abs_builddir in
24026 .) ac_abs_srcdir=$ac_srcdir;;
24027 *)
24028 case $ac_srcdir in
24029 .) ac_abs_srcdir=$ac_abs_builddir;;
24030 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24031 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24032 esac;;
24033 esac
24034 case $ac_abs_builddir in
24035 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24036 *)
24037 case $ac_top_srcdir in
24038 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24039 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24040 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24041 esac;;
24042 esac
24043
24044
24045 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24046 echo "$as_me: executing $ac_dest commands" >&6;}
24047 case $ac_dest in
24048 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24049 # Strip MF so we end up with the name of the file.
24050 mf=`echo "$mf" | sed -e 's/:.*$//'`
24051 # Check whether this is an Automake generated Makefile or not.
24052 # We used to match only the files named `Makefile.in', but
24053 # some people rename them; so instead we look at the file content.
24054 # Grep'ing the first line is not enough: some people post-process
24055 # each Makefile.in and add a new line on top of each file to say so.
24056 # So let's grep whole file.
24057 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24058 dirpart=`(dirname "$mf") 2>/dev/null ||
24059 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24060 X"$mf" : 'X\(//\)[^/]' \| \
24061 X"$mf" : 'X\(//\)$' \| \
24062 X"$mf" : 'X\(/\)' \| \
24063 . : '\(.\)' 2>/dev/null ||
24064 echo X"$mf" |
24065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24067 /^X\(\/\/\)$/{ s//\1/; q; }
24068 /^X\(\/\).*/{ s//\1/; q; }
24069 s/.*/./; q'`
24070 else
24071 continue
24072 fi
24073 # Extract the definition of DEPDIR, am__include, and am__quote
24074 # from the Makefile without running `make'.
24075 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24076 test -z "$DEPDIR" && continue
24077 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24078 test -z "am__include" && continue
24079 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24080 # When using ansi2knr, U may be empty or an underscore; expand it
24081 U=`sed -n 's/^U = //p' < "$mf"`
24082 # Find all dependency output files, they are included files with
24083 # $(DEPDIR) in their names. We invoke sed twice because it is the
24084 # simplest approach to changing $(DEPDIR) to its actual value in the
24085 # expansion.
24086 for file in `sed -n "
24087 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24088 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24089 # Make sure the directory exists.
24090 test -f "$dirpart/$file" && continue
24091 fdir=`(dirname "$file") 2>/dev/null ||
24092 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24093 X"$file" : 'X\(//\)[^/]' \| \
24094 X"$file" : 'X\(//\)$' \| \
24095 X"$file" : 'X\(/\)' \| \
24096 . : '\(.\)' 2>/dev/null ||
24097 echo X"$file" |
24098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24100 /^X\(\/\/\)$/{ s//\1/; q; }
24101 /^X\(\/\).*/{ s//\1/; q; }
24102 s/.*/./; q'`
24103 { if $as_mkdir_p; then
24104 mkdir -p $dirpart/$fdir
24105 else
24106 as_dir=$dirpart/$fdir
24107 as_dirs=
24108 while test ! -d "$as_dir"; do
24109 as_dirs="$as_dir $as_dirs"
24110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24112 X"$as_dir" : 'X\(//\)[^/]' \| \
24113 X"$as_dir" : 'X\(//\)$' \| \
24114 X"$as_dir" : 'X\(/\)' \| \
24115 . : '\(.\)' 2>/dev/null ||
24116 echo X"$as_dir" |
24117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24119 /^X\(\/\/\)$/{ s//\1/; q; }
24120 /^X\(\/\).*/{ s//\1/; q; }
24121 s/.*/./; q'`
24122 done
24123 test ! -n "$as_dirs" || mkdir $as_dirs
24124 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24125 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24126 { (exit 1); exit 1; }; }; }
24127
24128 # echo "creating $dirpart/$file"
24129 echo '# dummy' > "$dirpart/$file"
24130 done
24131 done
24132 ;;
24133 esac
24134 done
24135 _ACEOF
24136
24137 cat >>$CONFIG_STATUS <<\_ACEOF
24138
24139 { (exit 0); exit 0; }
24140 _ACEOF
24141 chmod +x $CONFIG_STATUS
24142 ac_clean_files=$ac_clean_files_save
24143
24144
24145 # configure is writing to config.log, and then calls config.status.
24146 # config.status does its own redirection, appending to config.log.
24147 # Unfortunately, on DOS this fails, as config.log is still kept open
24148 # by configure, so config.status won't be able to write to it; its
24149 # output is simply discarded. So we exec the FD to /dev/null,
24150 # effectively closing config.log, so it can be properly (re)opened and
24151 # appended to by config.status. When coming back to configure, we
24152 # need to make the FD available again.
24153 if test "$no_create" != yes; then
24154 ac_cs_success=:
24155 ac_config_status_args=
24156 test "$silent" = yes &&
24157 ac_config_status_args="$ac_config_status_args --quiet"
24158 exec 5>/dev/null
24159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24160 exec 5>>config.log
24161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24162 # would make configure fail if this is the last instruction.
24163 $ac_cs_success || { (exit 1); exit 1; }
24164 fi
24165
24166 #
24167 # CONFIG_SUBDIRS section.
24168 #
24169 if test "$no_recursion" != yes; then
24170
24171 # Remove --cache-file and --srcdir arguments so they do not pile up.
24172 ac_sub_configure_args=
24173 ac_prev=
24174 for ac_arg in $ac_configure_args; do
24175 if test -n "$ac_prev"; then
24176 ac_prev=
24177 continue
24178 fi
24179 case $ac_arg in
24180 -cache-file | --cache-file | --cache-fil | --cache-fi \
24181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24182 ac_prev=cache_file ;;
24183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24185 | --c=*)
24186 ;;
24187 --config-cache | -C)
24188 ;;
24189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24190 ac_prev=srcdir ;;
24191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24192 ;;
24193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24194 ac_prev=prefix ;;
24195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24196 ;;
24197 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24198 esac
24199 done
24200
24201 # Always prepend --prefix to ensure using the same prefix
24202 # in subdir configurations.
24203 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24204
24205 ac_popdir=`pwd`
24206 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24207
24208 # Do not complain, so a configure script can configure whichever
24209 # parts of a large source tree are present.
24210 test -d $srcdir/$ac_dir || continue
24211
24212 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24213 echo "$as_me: configuring in $ac_dir" >&6;}
24214 { if $as_mkdir_p; then
24215 mkdir -p "$ac_dir"
24216 else
24217 as_dir="$ac_dir"
24218 as_dirs=
24219 while test ! -d "$as_dir"; do
24220 as_dirs="$as_dir $as_dirs"
24221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24223 X"$as_dir" : 'X\(//\)[^/]' \| \
24224 X"$as_dir" : 'X\(//\)$' \| \
24225 X"$as_dir" : 'X\(/\)' \| \
24226 . : '\(.\)' 2>/dev/null ||
24227 echo X"$as_dir" |
24228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24230 /^X\(\/\/\)$/{ s//\1/; q; }
24231 /^X\(\/\).*/{ s//\1/; q; }
24232 s/.*/./; q'`
24233 done
24234 test ! -n "$as_dirs" || mkdir $as_dirs
24235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24236 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24237 { (exit 1); exit 1; }; }; }
24238
24239 ac_builddir=.
24240
24241 if test "$ac_dir" != .; then
24242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24243 # A "../" for each directory in $ac_dir_suffix.
24244 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24245 else
24246 ac_dir_suffix= ac_top_builddir=
24247 fi
24248
24249 case $srcdir in
24250 .) # No --srcdir option. We are building in place.
24251 ac_srcdir=.
24252 if test -z "$ac_top_builddir"; then
24253 ac_top_srcdir=.
24254 else
24255 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24256 fi ;;
24257 [\\/]* | ?:[\\/]* ) # Absolute path.
24258 ac_srcdir=$srcdir$ac_dir_suffix;
24259 ac_top_srcdir=$srcdir ;;
24260 *) # Relative path.
24261 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24262 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24263 esac
24264
24265 # Do not use `cd foo && pwd` to compute absolute paths, because
24266 # the directories may not exist.
24267 case `pwd` in
24268 .) ac_abs_builddir="$ac_dir";;
24269 *)
24270 case "$ac_dir" in
24271 .) ac_abs_builddir=`pwd`;;
24272 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24273 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24274 esac;;
24275 esac
24276 case $ac_abs_builddir in
24277 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24278 *)
24279 case ${ac_top_builddir}. in
24280 .) ac_abs_top_builddir=$ac_abs_builddir;;
24281 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24282 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24283 esac;;
24284 esac
24285 case $ac_abs_builddir in
24286 .) ac_abs_srcdir=$ac_srcdir;;
24287 *)
24288 case $ac_srcdir in
24289 .) ac_abs_srcdir=$ac_abs_builddir;;
24290 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24291 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24292 esac;;
24293 esac
24294 case $ac_abs_builddir in
24295 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24296 *)
24297 case $ac_top_srcdir in
24298 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24299 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24300 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24301 esac;;
24302 esac
24303
24304
24305 cd $ac_dir
24306
24307 # Check for guested configure; otherwise get Cygnus style configure.
24308 if test -f $ac_srcdir/configure.gnu; then
24309 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24310 elif test -f $ac_srcdir/configure; then
24311 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24312 elif test -f $ac_srcdir/configure.in; then
24313 ac_sub_configure=$ac_configure
24314 else
24315 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24316 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24317 ac_sub_configure=
24318 fi
24319
24320 # The recursion is here.
24321 if test -n "$ac_sub_configure"; then
24322 # Make the cache file name correct relative to the subdirectory.
24323 case $cache_file in
24324 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24325 *) # Relative path.
24326 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24327 esac
24328
24329 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24330 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24331 # The eval makes quoting arguments work.
24332 eval $ac_sub_configure $ac_sub_configure_args \
24333 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24334 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24335 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24336 { (exit 1); exit 1; }; }
24337 fi
24338
24339 cd $ac_popdir
24340 done
24341 fi
24342
24343
24344 if test x"$coin_vpath_link_files" = x; then : ; else
24345 lnkcmd="$coin_link_input_cmd"
24346 if test "$lnkcmd" = cp; then
24347 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
24348 echo "$as_me: Copying data files for VPATH configuration" >&6;}
24349 else
24350 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
24351 echo "$as_me: Creating VPATH links for data files" >&6;}
24352 fi
24353 for file in $coin_vpath_link_files; do
24354 dir=`(dirname "./$file") 2>/dev/null ||
24355 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24356 X"./$file" : 'X\(//\)[^/]' \| \
24357 X"./$file" : 'X\(//\)$' \| \
24358 X"./$file" : 'X\(/\)' \| \
24359 . : '\(.\)' 2>/dev/null ||
24360 echo X"./$file" |
24361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24363 /^X\(\/\/\)$/{ s//\1/; q; }
24364 /^X\(\/\).*/{ s//\1/; q; }
24365 s/.*/./; q'`
24366 if test -d $dir; then : ; else
24367 { if $as_mkdir_p; then
24368 mkdir -p $dir
24369 else
24370 as_dir=$dir
24371 as_dirs=
24372 while test ! -d "$as_dir"; do
24373 as_dirs="$as_dir $as_dirs"
24374 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24376 X"$as_dir" : 'X\(//\)[^/]' \| \
24377 X"$as_dir" : 'X\(//\)$' \| \
24378 X"$as_dir" : 'X\(/\)' \| \
24379 . : '\(.\)' 2>/dev/null ||
24380 echo X"$as_dir" |
24381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24383 /^X\(\/\/\)$/{ s//\1/; q; }
24384 /^X\(\/\).*/{ s//\1/; q; }
24385 s/.*/./; q'`
24386 done
24387 test ! -n "$as_dirs" || mkdir $as_dirs
24388 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
24389 echo "$as_me: error: cannot create directory $dir" >&2;}
24390 { (exit 1); exit 1; }; }; }
24391
24392 fi
24393 rm -f $file
24394 $lnkcmd $abs_source_dir/$file $file
24395 done
24396 fi
24397
24398 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
24399 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
24400 if test x$coin_projectdir = xyes; then
24401 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
24402 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
24403 else
24404 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
24405 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
24406 fi
24407 else
24408 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
24409 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
24410 fi
24411
24412