Debian Codegraph @

CoinMP/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for CoinMP 1.8.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 #
12 # Copyright 2006 International Business Machines and others.
13 # All Rights Reserved.
14 # This file is part of the open source package CoinMP which is distributed
15 # under the Common Public License.
16 ## --------------------- ##
17 ## M4sh Initialization. ##
18 ## --------------------- ##
19
20 # Be Bourne compatible
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 emulate sh
23 NULLCMD=:
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30 DUALCASE=1; export DUALCASE # for MKS sh
31
32 # Support unset when possible.
33 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 as_unset=unset
35 else
36 as_unset=false
37 fi
38
39
40 # Work around bugs in pre-3.0 UWIN ksh.
41 $as_unset ENV MAIL MAILPATH
42 PS1='$ '
43 PS2='> '
44 PS4='+ '
45
46 # NLS nuisances.
47 for as_var in \
48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50 LC_TELEPHONE LC_TIME
51 do
52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53 eval $as_var=C; export $as_var
54 else
55 $as_unset $as_var
56 fi
57 done
58
59 # Required to use basename.
60 if expr a : '\(a\)' >/dev/null 2>&1; then
61 as_expr=expr
62 else
63 as_expr=false
64 fi
65
66 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 as_basename=basename
68 else
69 as_basename=false
70 fi
71
72
73 # Name of the executable.
74 as_me=`$as_basename "$0" ||
75 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76 X"$0" : 'X\(//\)$' \| \
77 X"$0" : 'X\(/\)$' \| \
78 . : '\(.\)' 2>/dev/null ||
79 echo X/"$0" |
80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81 /^X\/\(\/\/\)$/{ s//\1/; q; }
82 /^X\/\(\/\).*/{ s//\1/; q; }
83 s/.*/./; q'`
84
85
86 # PATH needs CR, and LINENO needs CR and PATH.
87 # Avoid depending upon Character Ranges.
88 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91 as_cr_digits='0123456789'
92 as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 echo "#! /bin/sh" >conf$$.sh
97 echo "exit 0" >>conf$$.sh
98 chmod +x conf$$.sh
99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100 PATH_SEPARATOR=';'
101 else
102 PATH_SEPARATOR=:
103 fi
104 rm -f conf$$.sh
105 fi
106
107
108 as_lineno_1=$LINENO
109 as_lineno_2=$LINENO
110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111 test "x$as_lineno_1" != "x$as_lineno_2" &&
112 test "x$as_lineno_3" = "x$as_lineno_2" || {
113 # Find who we are. Look in the path if we contain no path at all
114 # relative or not.
115 case $0 in
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH
119 do
120 IFS=$as_save_IFS
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 done
124
125 ;;
126 esac
127 # We did not find ourselves, most probably we were run as `sh COMMAND'
128 # in which case we are not to be found in the path.
129 if test "x$as_myself" = x; then
130 as_myself=$0
131 fi
132 if test ! -f "$as_myself"; then
133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134 { (exit 1); exit 1; }; }
135 fi
136 case $CONFIG_SHELL in
137 '')
138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 do
141 IFS=$as_save_IFS
142 test -z "$as_dir" && as_dir=.
143 for as_base in sh bash ksh sh5; do
144 case $as_dir in
145 /*)
146 if ("$as_dir/$as_base" -c '
147 as_lineno_1=$LINENO
148 as_lineno_2=$LINENO
149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150 test "x$as_lineno_1" != "x$as_lineno_2" &&
151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154 CONFIG_SHELL=$as_dir/$as_base
155 export CONFIG_SHELL
156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 fi;;
158 esac
159 done
160 done
161 ;;
162 esac
163
164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165 # uniformly replaced by the line number. The first 'sed' inserts a
166 # line-number line before each line; the second 'sed' does the real
167 # work. The second script uses 'N' to pair each line-number line
168 # with the numbered line, and appends trailing '-' during
169 # substitution so that $LINENO is not a special case at line end.
170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
172 sed '=' <$as_myself |
173 sed '
174 N
175 s,$,-,
176 : loop
177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 t loop
179 s,-$,,
180 s,^['$as_cr_digits']*\n,,
181 ' >$as_me.lineno &&
182 chmod +x $as_me.lineno ||
183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184 { (exit 1); exit 1; }; }
185
186 # Don't try to exec as it changes $[0], causing all sort of problems
187 # (the dirname of $[0] is not the place where we might find the
188 # original and so on. Autoconf is especially sensible to this).
189 . ./$as_me.lineno
190 # Exit status is that of the last command.
191 exit
192 }
193
194
195 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196 *c*,-n*) ECHO_N= ECHO_C='
197 ' ECHO_T=' ' ;;
198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200 esac
201
202 if expr a : '\(a\)' >/dev/null 2>&1; then
203 as_expr=expr
204 else
205 as_expr=false
206 fi
207
208 rm -f conf$$ conf$$.exe conf$$.file
209 echo >conf$$.file
210 if ln -s conf$$.file conf$$ 2>/dev/null; then
211 # We could just check for DJGPP; but this test a) works b) is more generic
212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213 if test -f conf$$.exe; then
214 # Don't use ln at all; we don't have any links
215 as_ln_s='cp -p'
216 else
217 as_ln_s='ln -s'
218 fi
219 elif ln conf$$.file conf$$ 2>/dev/null; then
220 as_ln_s=ln
221 else
222 as_ln_s='cp -p'
223 fi
224 rm -f conf$$ conf$$.exe conf$$.file
225
226 if mkdir -p . 2>/dev/null; then
227 as_mkdir_p=:
228 else
229 test -d ./-p && rmdir ./-p
230 as_mkdir_p=false
231 fi
232
233 as_executable_p="test -f"
234
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242 # IFS
243 # We need space, tab and new line, in precisely that order.
244 as_nl='
245 '
246 IFS=" $as_nl"
247
248 # CDPATH.
249 $as_unset CDPATH
250
251
252
253 # Check that we are running under the correct shell.
254 SHELL=${CONFIG_SHELL-/bin/sh}
255
256 case X$ECHO in
257 X*--fallback-echo)
258 # Remove one level of quotation (which was required for Make).
259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 ;;
261 esac
262
263 echo=${ECHO-echo}
264 if test "X$1" = X--no-reexec; then
265 # Discard the --no-reexec flag, and continue.
266 shift
267 elif test "X$1" = X--fallback-echo; then
268 # Avoid inline document here, it may be left over
269 :
270 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271 # Yippee, $echo works!
272 :
273 else
274 # Restart under the correct shell.
275 exec $SHELL "$0" --no-reexec ${1+"$@"}
276 fi
277
278 if test "X$1" = X--fallback-echo; then
279 # used as fallback echo
280 shift
281 cat <<EOF
282 $*
283 EOF
284 exit 0
285 fi
286
287 # The HP-UX ksh and POSIX shell print the target directory to stdout
288 # if CDPATH is set.
289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291 if test -z "$ECHO"; then
292 if test "X${echo_test_string+set}" != Xset; then
293 # find a string as large as possible, as long as the shell can cope with it
294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297 echo_test_string=`eval $cmd` &&
298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 then
300 break
301 fi
302 done
303 fi
304
305 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307 test "X$echo_testing_string" = "X$echo_test_string"; then
308 :
309 else
310 # The Solaris, AIX, and Digital Unix default echo programs unquote
311 # backslashes. This makes it impossible to quote backslashes using
312 # echo "$something" | sed 's/\\/\\\\/g'
313 #
314 # So, first we look for a working echo in the user's PATH.
315
316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317 for dir in $PATH /usr/ucb; do
318 IFS="$lt_save_ifs"
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
323 echo="$dir/echo"
324 break
325 fi
326 done
327 IFS="$lt_save_ifs"
328
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
335 echo='print -r'
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
342 export CONFIG_SHELL
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344 else
345 # Try using printf.
346 echo='printf %s\n'
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # Cool, printf works
351 :
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357 export CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
359 export SHELL
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
366 else
367 # maybe with a smaller string...
368 prev=:
369
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 then
373 break
374 fi
375 prev="$cmd"
376 done
377
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382 else
383 # Oops. We lost completely, so just stick with echo.
384 echo=echo
385 fi
386 fi
387 fi
388 fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401
402 tagnames=${tagnames+${tagnames},}CXX
403
404 tagnames=${tagnames+${tagnames},}F77
405
406 # Name of the host.
407 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408 # so uname gets run too.
409 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411 exec 6>&1
412
413 #
414 # Initializations.
415 #
416 ac_default_prefix=/usr/local
417 ac_config_libobj_dir=.
418 cross_compiling=no
419 subdirs=
420 MFLAGS=
421 MAKEFLAGS=
422 SHELL=${CONFIG_SHELL-/bin/sh}
423
424 # Maximum number of lines to put in a shell here document.
425 # This variable seems obsolete. It should probably be removed, and
426 # only ac_max_sed_lines should be used.
427 : ${ac_max_here_lines=38}
428
429 # Identity of this package.
430 PACKAGE_NAME='CoinMP'
431 PACKAGE_TARNAME='coinmp'
432 PACKAGE_VERSION='1.8'
433 PACKAGE_STRING='CoinMP 1.8'
434 PACKAGE_BUGREPORT='[email protected]'
435
436 ac_unique_file="src/CoinMP.h"
437 ac_default_prefix=`pwd`
438 # Factoring default headers for most tests.
439 ac_includes_default="\
440 #include <stdio.h>
441 #if HAVE_SYS_TYPES_H
442 # include <sys/types.h>
443 #endif
444 #if HAVE_SYS_STAT_H
445 # include <sys/stat.h>
446 #endif
447 #if STDC_HEADERS
448 # include <stdlib.h>
449 # include <stddef.h>
450 #else
451 # if HAVE_STDLIB_H
452 # include <stdlib.h>
453 # endif
454 #endif
455 #if HAVE_STRING_H
456 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <memory.h>
458 # endif
459 # include <string.h>
460 #endif
461 #if HAVE_STRINGS_H
462 # include <strings.h>
463 #endif
464 #if HAVE_INTTYPES_H
465 # include <inttypes.h>
466 #else
467 # if HAVE_STDINT_H
468 # include <stdint.h>
469 # endif
470 #endif
471 #if HAVE_UNISTD_H
472 # include <unistd.h>
473 #endif"
474
475 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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINMP_SVN_REV 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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COINMP_CFLAGS COINMP_LIBS COINMP_PCLIBS COINMP_PCREQUIRES COINMP_DEPENDENCIES COINMP_CFLAGS_INSTALLED COINMP_LIBS_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476 ac_subst_files=''
477
478 # Initialize some variables set by options.
479 ac_init_help=
480 ac_init_version=false
481 # The variables have the same names as the options, with
482 # dashes changed to underlines.
483 cache_file=/dev/null
484 exec_prefix=NONE
485 no_create=
486 no_recursion=
487 prefix=NONE
488 program_prefix=NONE
489 program_suffix=NONE
490 program_transform_name=s,x,x,
491 silent=
492 site=
493 srcdir=
494 verbose=
495 x_includes=NONE
496 x_libraries=NONE
497
498 # Installation directory options.
499 # These are left unexpanded so users can "make install exec_prefix=/foo"
500 # and all the variables that are supposed to be based on exec_prefix
501 # by default will actually change.
502 # Use braces instead of parens because sh, perl, etc. also accept them.
503 bindir='${exec_prefix}/bin'
504 sbindir='${exec_prefix}/sbin'
505 libexecdir='${exec_prefix}/libexec'
506 datadir='${prefix}/share'
507 sysconfdir='${prefix}/etc'
508 sharedstatedir='${prefix}/com'
509 localstatedir='${prefix}/var'
510 libdir='${exec_prefix}/lib'
511 includedir='${prefix}/include'
512 oldincludedir='/usr/include'
513 infodir='${prefix}/info'
514 mandir='${prefix}/man'
515
516 ac_prev=
517 for ac_option
518 do
519 # If the previous option needs an argument, assign it.
520 if test -n "$ac_prev"; then
521 eval "$ac_prev=\$ac_option"
522 ac_prev=
523 continue
524 fi
525
526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528 # Accept the important Cygnus configure options, so we can diagnose typos.
529
530 case $ac_option in
531
532 -bindir | --bindir | --bindi | --bind | --bin | --bi)
533 ac_prev=bindir ;;
534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 bindir=$ac_optarg ;;
536
537 -build | --build | --buil | --bui | --bu)
538 ac_prev=build_alias ;;
539 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540 build_alias=$ac_optarg ;;
541
542 -cache-file | --cache-file | --cache-fil | --cache-fi \
543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544 ac_prev=cache_file ;;
545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547 cache_file=$ac_optarg ;;
548
549 --config-cache | -C)
550 cache_file=config.cache ;;
551
552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553 ac_prev=datadir ;;
554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555 | --da=*)
556 datadir=$ac_optarg ;;
557
558 -disable-* | --disable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 eval "enable_$ac_feature=no" ;;
566
567 -enable-* | --enable-*)
568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569 # Reject names that are not valid shell variable names.
570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572 { (exit 1); exit 1; }; }
573 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574 case $ac_option in
575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 *) ac_optarg=yes ;;
577 esac
578 eval "enable_$ac_feature='$ac_optarg'" ;;
579
580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582 | --exec | --exe | --ex)
583 ac_prev=exec_prefix ;;
584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586 | --exec=* | --exe=* | --ex=*)
587 exec_prefix=$ac_optarg ;;
588
589 -gas | --gas | --ga | --g)
590 # Obsolete; use --with-gas.
591 with_gas=yes ;;
592
593 -help | --help | --hel | --he | -h)
594 ac_init_help=long ;;
595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596 ac_init_help=recursive ;;
597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598 ac_init_help=short ;;
599
600 -host | --host | --hos | --ho)
601 ac_prev=host_alias ;;
602 -host=* | --host=* | --hos=* | --ho=*)
603 host_alias=$ac_optarg ;;
604
605 -includedir | --includedir | --includedi | --included | --include \
606 | --includ | --inclu | --incl | --inc)
607 ac_prev=includedir ;;
608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609 | --includ=* | --inclu=* | --incl=* | --inc=*)
610 includedir=$ac_optarg ;;
611
612 -infodir | --infodir | --infodi | --infod | --info | --inf)
613 ac_prev=infodir ;;
614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615 infodir=$ac_optarg ;;
616
617 -libdir | --libdir | --libdi | --libd)
618 ac_prev=libdir ;;
619 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 libdir=$ac_optarg ;;
621
622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623 | --libexe | --libex | --libe)
624 ac_prev=libexecdir ;;
625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626 | --libexe=* | --libex=* | --libe=*)
627 libexecdir=$ac_optarg ;;
628
629 -localstatedir | --localstatedir | --localstatedi | --localstated \
630 | --localstate | --localstat | --localsta | --localst \
631 | --locals | --local | --loca | --loc | --lo)
632 ac_prev=localstatedir ;;
633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636 localstatedir=$ac_optarg ;;
637
638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639 ac_prev=mandir ;;
640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 mandir=$ac_optarg ;;
642
643 -nfp | --nfp | --nf)
644 # Obsolete; use --without-fp.
645 with_fp=no ;;
646
647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648 | --no-cr | --no-c | -n)
649 no_create=yes ;;
650
651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 no_recursion=yes ;;
654
655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657 | --oldin | --oldi | --old | --ol | --o)
658 ac_prev=oldincludedir ;;
659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662 oldincludedir=$ac_optarg ;;
663
664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665 ac_prev=prefix ;;
666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 prefix=$ac_optarg ;;
668
669 -program-prefix | --program-prefix | --program-prefi | --program-pref \
670 | --program-pre | --program-pr | --program-p)
671 ac_prev=program_prefix ;;
672 -program-prefix=* | --program-prefix=* | --program-prefi=* \
673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674 program_prefix=$ac_optarg ;;
675
676 -program-suffix | --program-suffix | --program-suffi | --program-suff \
677 | --program-suf | --program-su | --program-s)
678 ac_prev=program_suffix ;;
679 -program-suffix=* | --program-suffix=* | --program-suffi=* \
680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681 program_suffix=$ac_optarg ;;
682
683 -program-transform-name | --program-transform-name \
684 | --program-transform-nam | --program-transform-na \
685 | --program-transform-n | --program-transform- \
686 | --program-transform | --program-transfor \
687 | --program-transfo | --program-transf \
688 | --program-trans | --program-tran \
689 | --progr-tra | --program-tr | --program-t)
690 ac_prev=program_transform_name ;;
691 -program-transform-name=* | --program-transform-name=* \
692 | --program-transform-nam=* | --program-transform-na=* \
693 | --program-transform-n=* | --program-transform-=* \
694 | --program-transform=* | --program-transfor=* \
695 | --program-transfo=* | --program-transf=* \
696 | --program-trans=* | --program-tran=* \
697 | --progr-tra=* | --program-tr=* | --program-t=*)
698 program_transform_name=$ac_optarg ;;
699
700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701 | -silent | --silent | --silen | --sile | --sil)
702 silent=yes ;;
703
704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705 ac_prev=sbindir ;;
706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707 | --sbi=* | --sb=*)
708 sbindir=$ac_optarg ;;
709
710 -sharedstatedir | --sharedstatedir | --sharedstatedi \
711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712 | --sharedst | --shareds | --shared | --share | --shar \
713 | --sha | --sh)
714 ac_prev=sharedstatedir ;;
715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718 | --sha=* | --sh=*)
719 sharedstatedir=$ac_optarg ;;
720
721 -site | --site | --sit)
722 ac_prev=site ;;
723 -site=* | --site=* | --sit=*)
724 site=$ac_optarg ;;
725
726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727 ac_prev=srcdir ;;
728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 srcdir=$ac_optarg ;;
730
731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732 | --syscon | --sysco | --sysc | --sys | --sy)
733 ac_prev=sysconfdir ;;
734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736 sysconfdir=$ac_optarg ;;
737
738 -target | --target | --targe | --targ | --tar | --ta | --t)
739 ac_prev=target_alias ;;
740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741 target_alias=$ac_optarg ;;
742
743 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 verbose=yes ;;
745
746 -version | --version | --versio | --versi | --vers | -V)
747 ac_init_version=: ;;
748
749 -with-* | --with-*)
750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 case $ac_option in
757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 *) ac_optarg=yes ;;
759 esac
760 eval "with_$ac_package='$ac_optarg'" ;;
761
762 -without-* | --without-*)
763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766 { echo "$as_me: error: invalid package name: $ac_package" >&2
767 { (exit 1); exit 1; }; }
768 ac_package=`echo $ac_package | sed 's/-/_/g'`
769 eval "with_$ac_package=no" ;;
770
771 --x)
772 # Obsolete; use --with-x.
773 with_x=yes ;;
774
775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776 | --x-incl | --x-inc | --x-in | --x-i)
777 ac_prev=x_includes ;;
778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780 x_includes=$ac_optarg ;;
781
782 -x-libraries | --x-libraries | --x-librarie | --x-librari \
783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784 ac_prev=x_libraries ;;
785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787 x_libraries=$ac_optarg ;;
788
789 -*) { echo "$as_me: error: unrecognized option: $ac_option
790 Try \`$0 --help' for more information." >&2
791 { (exit 1); exit 1; }; }
792 ;;
793
794 *=*)
795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799 { (exit 1); exit 1; }; }
800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801 eval "$ac_envvar='$ac_optarg'"
802 export $ac_envvar ;;
803
804 *)
805 # FIXME: should be removed in autoconf 3.0.
806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 ;;
811
812 esac
813 done
814
815 if test -n "$ac_prev"; then
816 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817 { echo "$as_me: error: missing argument to $ac_option" >&2
818 { (exit 1); exit 1; }; }
819 fi
820
821 # Be sure to have absolute paths.
822 for ac_var in exec_prefix prefix
823 do
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
831
832 # Be sure to have absolute paths.
833 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834 localstatedir libdir includedir oldincludedir infodir mandir
835 do
836 eval ac_val=$`echo $ac_var`
837 case $ac_val in
838 [\\/$]* | ?:[\\/]* ) ;;
839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840 { (exit 1); exit 1; }; };;
841 esac
842 done
843
844 # There might be people who depend on the old broken behavior: `$host'
845 # used to hold the argument of --host etc.
846 # FIXME: To remove some day.
847 build=$build_alias
848 host=$host_alias
849 target=$target_alias
850
851 # FIXME: To remove some day.
852 if test "x$host_alias" != x; then
853 if test "x$build_alias" = x; then
854 cross_compiling=maybe
855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856 If a cross compiler is detected then cross compile mode will be used." >&2
857 elif test "x$build_alias" != "x$host_alias"; then
858 cross_compiling=yes
859 fi
860 fi
861
862 ac_tool_prefix=
863 test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865 test "$silent" = yes && exec 6>/dev/null
866
867
868 # Find the source files, if location was not specified.
869 if test -z "$srcdir"; then
870 ac_srcdir_defaulted=yes
871 # Try the directory containing this script, then its parent.
872 ac_confdir=`(dirname "$0") 2>/dev/null ||
873 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874 X"$0" : 'X\(//\)[^/]' \| \
875 X"$0" : 'X\(//\)$' \| \
876 X"$0" : 'X\(/\)' \| \
877 . : '\(.\)' 2>/dev/null ||
878 echo X"$0" |
879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881 /^X\(\/\/\)$/{ s//\1/; q; }
882 /^X\(\/\).*/{ s//\1/; q; }
883 s/.*/./; q'`
884 srcdir=$ac_confdir
885 if test ! -r $srcdir/$ac_unique_file; then
886 srcdir=..
887 fi
888 else
889 ac_srcdir_defaulted=no
890 fi
891 if test ! -r $srcdir/$ac_unique_file; then
892 if test "$ac_srcdir_defaulted" = yes; then
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894 { (exit 1); exit 1; }; }
895 else
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897 { (exit 1); exit 1; }; }
898 fi
899 fi
900 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902 { (exit 1); exit 1; }; }
903 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904 ac_env_build_alias_set=${build_alias+set}
905 ac_env_build_alias_value=$build_alias
906 ac_cv_env_build_alias_set=${build_alias+set}
907 ac_cv_env_build_alias_value=$build_alias
908 ac_env_host_alias_set=${host_alias+set}
909 ac_env_host_alias_value=$host_alias
910 ac_cv_env_host_alias_set=${host_alias+set}
911 ac_cv_env_host_alias_value=$host_alias
912 ac_env_target_alias_set=${target_alias+set}
913 ac_env_target_alias_value=$target_alias
914 ac_cv_env_target_alias_set=${target_alias+set}
915 ac_cv_env_target_alias_value=$target_alias
916 ac_env_CDEFS_set=${CDEFS+set}
917 ac_env_CDEFS_value=$CDEFS
918 ac_cv_env_CDEFS_set=${CDEFS+set}
919 ac_cv_env_CDEFS_value=$CDEFS
920 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932 ac_env_CC_set=${CC+set}
933 ac_env_CC_value=$CC
934 ac_cv_env_CC_set=${CC+set}
935 ac_cv_env_CC_value=$CC
936 ac_env_CFLAGS_set=${CFLAGS+set}
937 ac_env_CFLAGS_value=$CFLAGS
938 ac_cv_env_CFLAGS_set=${CFLAGS+set}
939 ac_cv_env_CFLAGS_value=$CFLAGS
940 ac_env_LDFLAGS_set=${LDFLAGS+set}
941 ac_env_LDFLAGS_value=$LDFLAGS
942 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943 ac_cv_env_LDFLAGS_value=$LDFLAGS
944 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945 ac_env_CPPFLAGS_value=$CPPFLAGS
946 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948 ac_env_MPICC_set=${MPICC+set}
949 ac_env_MPICC_value=$MPICC
950 ac_cv_env_MPICC_set=${MPICC+set}
951 ac_cv_env_MPICC_value=$MPICC
952 ac_env_CXXDEFS_set=${CXXDEFS+set}
953 ac_env_CXXDEFS_value=$CXXDEFS
954 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955 ac_cv_env_CXXDEFS_value=$CXXDEFS
956 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968 ac_env_CXX_set=${CXX+set}
969 ac_env_CXX_value=$CXX
970 ac_cv_env_CXX_set=${CXX+set}
971 ac_cv_env_CXX_value=$CXX
972 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973 ac_env_CXXFLAGS_value=$CXXFLAGS
974 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976 ac_env_MPICXX_set=${MPICXX+set}
977 ac_env_MPICXX_value=$MPICXX
978 ac_cv_env_MPICXX_set=${MPICXX+set}
979 ac_cv_env_MPICXX_value=$MPICXX
980 ac_env_CPP_set=${CPP+set}
981 ac_env_CPP_value=$CPP
982 ac_cv_env_CPP_set=${CPP+set}
983 ac_cv_env_CPP_value=$CPP
984 ac_env_CXXCPP_set=${CXXCPP+set}
985 ac_env_CXXCPP_value=$CXXCPP
986 ac_cv_env_CXXCPP_set=${CXXCPP+set}
987 ac_cv_env_CXXCPP_value=$CXXCPP
988 ac_env_F77_set=${F77+set}
989 ac_env_F77_value=$F77
990 ac_cv_env_F77_set=${F77+set}
991 ac_cv_env_F77_value=$F77
992 ac_env_FFLAGS_set=${FFLAGS+set}
993 ac_env_FFLAGS_value=$FFLAGS
994 ac_cv_env_FFLAGS_set=${FFLAGS+set}
995 ac_cv_env_FFLAGS_value=$FFLAGS
996 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997 ac_env_PKG_CONFIG_value=$PKG_CONFIG
998 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001 #
1002 # Report the --help message.
1003 #
1004 if test "$ac_init_help" = "long"; then
1005 # Omit some internal or obsolete options to make the list less imposing.
1006 # This message is too long to be a string in the A/UX 3.1 sh.
1007 cat <<_ACEOF
1008 \`configure' configures CoinMP 1.8 to adapt to many kinds of systems.
1009
1010 Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013 VAR=VALUE. See below for descriptions of some of the useful variables.
1014
1015 Defaults for the options are specified in brackets.
1016
1017 Configuration:
1018 -h, --help display this help and exit
1019 --help=short display options specific to this package
1020 --help=recursive display the short help of all the included packages
1021 -V, --version display version information and exit
1022 -q, --quiet, --silent do not print \`checking...' messages
1023 --cache-file=FILE cache test results in FILE [disabled]
1024 -C, --config-cache alias for \`--cache-file=config.cache'
1025 -n, --no-create do not create output files
1026 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1027
1028 _ACEOF
1029
1030 cat <<_ACEOF
1031 Installation directories:
1032 --prefix=PREFIX install architecture-independent files in PREFIX
1033 [$ac_default_prefix]
1034 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1035 [PREFIX]
1036
1037 By default, \`make install' will install all the files in
1038 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1039 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040 for instance \`--prefix=\$HOME'.
1041
1042 For better control, use the options below.
1043
1044 Fine tuning of the installation directories:
1045 --bindir=DIR user executables [EPREFIX/bin]
1046 --sbindir=DIR system admin executables [EPREFIX/sbin]
1047 --libexecdir=DIR program executables [EPREFIX/libexec]
1048 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1049 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1050 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1051 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1052 --libdir=DIR object code libraries [EPREFIX/lib]
1053 --includedir=DIR C header files [PREFIX/include]
1054 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1055 --infodir=DIR info documentation [PREFIX/info]
1056 --mandir=DIR man documentation [PREFIX/man]
1057 _ACEOF
1058
1059 cat <<\_ACEOF
1060
1061 Program names:
1062 --program-prefix=PREFIX prepend PREFIX to installed program names
1063 --program-suffix=SUFFIX append SUFFIX to installed program names
1064 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1065
1066 System types:
1067 --build=BUILD configure for building on BUILD [guessed]
1068 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1069 _ACEOF
1070 fi
1071
1072 if test -n "$ac_init_help"; then
1073 case $ac_init_help in
1074 short | recursive ) echo "Configuration of CoinMP 1.8:";;
1075 esac
1076 cat <<\_ACEOF
1077
1078 Optional Features:
1079 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1080 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1081 --enable-debug compile all projects with debug options tests
1082 (implies --disable-shared)
1083 --enable-debug-coinmp compile project CoinMP with debug compiler flags
1084
1085 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086 --enable-static[=PKGS]
1087 build static libraries [default=no]
1088 --disable-dependency-tracking speeds up one-time build
1089 --enable-dependency-tracking do not reject slow dependency extractors
1090 --enable-maintainer-mode enable make rules and dependencies not useful
1091 (and sometimes confusing) to the casual installer
1092 --enable-shared[=PKGS]
1093 build shared libraries [default=yes]
1094 --enable-fast-install[=PKGS]
1095 optimize for fast installation [default=yes]
1096 --disable-libtool-lock avoid locking (might break parallel builds)
1097 --disable-dependency-linking
1098 disable linking library dependencies into shared
1099 libraries
1100 --disable-pkg-config disable use of pkg-config (if available)
1101 --disable-interpackage-dependencies
1102 disables deduction of Makefile dependencies from
1103 package linker flags
1104
1105 Optional Packages:
1106 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1107 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1108 --with-coinmp-verbosity specify the debug verbosity level for project CoinMP
1109 --with-coinmp-checklevel
1110 specify the sanity check level for project CoinMP
1111 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1112 --with-pic try to use only PIC/non-PIC objects [default=use
1113 both]
1114 --with-tags[=TAGS]
1115 include additional configurations [automatic]
1116 --with-coin-instdir prefix of installation directory for precompiled
1117 COIN packages
1118
1119 --with-cbc-lib linker flags for using package Cbc
1120 --with-cbc-incdir directory with header files for using package Cbc
1121 --with-cbc-datadir directory with data files for using package Cbc
1122
1123 Some influential environment variables:
1124 CDEFS Additional -D flags to be used when compiling C code.
1125 ADD_CFLAGS Additional C compiler options
1126 DBG_CFLAGS Debug C compiler options
1127 OPT_CFLAGS Optimize C compiler options
1128 CC C compiler command
1129 CFLAGS C compiler flags
1130 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1131 nonstandard directory <lib dir>
1132 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1133 headers in a nonstandard directory <include dir>
1134 MPICC C MPI Compiler
1135 CXXDEFS Additional -D flags to be used when compiling C++ code.
1136 ADD_CXXFLAGS
1137 Additional C++ compiler options
1138 DBG_CXXFLAGS
1139 Debug C++ compiler options
1140 OPT_CXXFLAGS
1141 Optimize C++ compiler options
1142 CXX C++ compiler command
1143 CXXFLAGS C++ compiler flags
1144 MPICXX C++ MPI Compiler
1145 CPP C preprocessor
1146 CXXCPP C++ preprocessor
1147 F77 Fortran 77 compiler command
1148 FFLAGS Fortran 77 compiler flags
1149 PKG_CONFIG path to pkg-config utility
1150
1151 Use these variables to override the choices made by `configure' or to help
1152 it to find libraries and programs with nonstandard names/locations.
1153
1154 Report bugs to <[email protected]>.
1155 _ACEOF
1156 fi
1157
1158 if test "$ac_init_help" = "recursive"; then
1159 # If there are subdirs, report their specific --help.
1160 ac_popdir=`pwd`
1161 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1162 test -d $ac_dir || continue
1163 ac_builddir=.
1164
1165 if test "$ac_dir" != .; then
1166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1167 # A "../" for each directory in $ac_dir_suffix.
1168 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1169 else
1170 ac_dir_suffix= ac_top_builddir=
1171 fi
1172
1173 case $srcdir in
1174 .) # No --srcdir option. We are building in place.
1175 ac_srcdir=.
1176 if test -z "$ac_top_builddir"; then
1177 ac_top_srcdir=.
1178 else
1179 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1180 fi ;;
1181 [\\/]* | ?:[\\/]* ) # Absolute path.
1182 ac_srcdir=$srcdir$ac_dir_suffix;
1183 ac_top_srcdir=$srcdir ;;
1184 *) # Relative path.
1185 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1186 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1187 esac
1188
1189 # Do not use `cd foo && pwd` to compute absolute paths, because
1190 # the directories may not exist.
1191 case `pwd` in
1192 .) ac_abs_builddir="$ac_dir";;
1193 *)
1194 case "$ac_dir" in
1195 .) ac_abs_builddir=`pwd`;;
1196 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1197 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1198 esac;;
1199 esac
1200 case $ac_abs_builddir in
1201 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1202 *)
1203 case ${ac_top_builddir}. in
1204 .) ac_abs_top_builddir=$ac_abs_builddir;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1206 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1207 esac;;
1208 esac
1209 case $ac_abs_builddir in
1210 .) ac_abs_srcdir=$ac_srcdir;;
1211 *)
1212 case $ac_srcdir in
1213 .) ac_abs_srcdir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1215 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1216 esac;;
1217 esac
1218 case $ac_abs_builddir in
1219 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1220 *)
1221 case $ac_top_srcdir in
1222 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1223 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1224 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1225 esac;;
1226 esac
1227
1228 cd $ac_dir
1229 # Check for guested configure; otherwise get Cygnus style configure.
1230 if test -f $ac_srcdir/configure.gnu; then
1231 echo
1232 $SHELL $ac_srcdir/configure.gnu --help=recursive
1233 elif test -f $ac_srcdir/configure; then
1234 echo
1235 $SHELL $ac_srcdir/configure --help=recursive
1236 elif test -f $ac_srcdir/configure.ac ||
1237 test -f $ac_srcdir/configure.in; then
1238 echo
1239 $ac_configure --help
1240 else
1241 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1242 fi
1243 cd $ac_popdir
1244 done
1245 fi
1246
1247 test -n "$ac_init_help" && exit 0
1248 if $ac_init_version; then
1249 cat <<\_ACEOF
1250 CoinMP configure 1.8
1251 generated by GNU Autoconf 2.59
1252
1253 Copyright (C) 2003 Free Software Foundation, Inc.
1254 This configure script is free software; the Free Software Foundation
1255 gives unlimited permission to copy, distribute and modify it.
1256
1257
1258 Copyright 2006 International Business Machines and others.
1259 All Rights Reserved.
1260 This file is part of the open source package CoinMP which is distributed
1261 under the Common Public License.
1262 _ACEOF
1263 exit 0
1264 fi
1265 exec 5>config.log
1266 cat >&5 <<_ACEOF
1267 This file contains any messages produced by compilers while
1268 running configure, to aid debugging if configure makes a mistake.
1269
1270 It was created by CoinMP $as_me 1.8, which was
1271 generated by GNU Autoconf 2.59. Invocation command line was
1272
1273 $ $0 $@
1274
1275 _ACEOF
1276 {
1277 cat <<_ASUNAME
1278 ## --------- ##
1279 ## Platform. ##
1280 ## --------- ##
1281
1282 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1283 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1284 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1285 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1286 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1287
1288 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1289 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1290
1291 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1292 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1293 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1294 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1295 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1296 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1297 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1298
1299 _ASUNAME
1300
1301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1302 for as_dir in $PATH
1303 do
1304 IFS=$as_save_IFS
1305 test -z "$as_dir" && as_dir=.
1306 echo "PATH: $as_dir"
1307 done
1308
1309 } >&5
1310
1311 cat >&5 <<_ACEOF
1312
1313
1314 ## ----------- ##
1315 ## Core tests. ##
1316 ## ----------- ##
1317
1318 _ACEOF
1319
1320
1321 # Keep a trace of the command line.
1322 # Strip out --no-create and --no-recursion so they do not pile up.
1323 # Strip out --silent because we don't want to record it for future runs.
1324 # Also quote any args containing shell meta-characters.
1325 # Make two passes to allow for proper duplicate-argument suppression.
1326 ac_configure_args=
1327 ac_configure_args0=
1328 ac_configure_args1=
1329 ac_sep=
1330 ac_must_keep_next=false
1331 for ac_pass in 1 2
1332 do
1333 for ac_arg
1334 do
1335 case $ac_arg in
1336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338 | -silent | --silent | --silen | --sile | --sil)
1339 continue ;;
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 esac
1343 case $ac_pass in
1344 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1345 2)
1346 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1347 if test $ac_must_keep_next = true; then
1348 ac_must_keep_next=false # Got value, back to normal.
1349 else
1350 case $ac_arg in
1351 *=* | --config-cache | -C | -disable-* | --disable-* \
1352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1354 | -with-* | --with-* | -without-* | --without-* | --x)
1355 case "$ac_configure_args0 " in
1356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1357 esac
1358 ;;
1359 -* ) ac_must_keep_next=true ;;
1360 esac
1361 fi
1362 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1363 # Get rid of the leading space.
1364 ac_sep=" "
1365 ;;
1366 esac
1367 done
1368 done
1369 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1370 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1371
1372 # When interrupted or exit'd, cleanup temporary files, and complete
1373 # config.log. We remove comments because anyway the quotes in there
1374 # would cause problems or look ugly.
1375 # WARNING: Be sure not to use single quotes in there, as some shells,
1376 # such as our DU 5.0 friend, will then `close' the trap.
1377 trap 'exit_status=$?
1378 # Save into config.log some information that might help in debugging.
1379 {
1380 echo
1381
1382 cat <<\_ASBOX
1383 ## ---------------- ##
1384 ## Cache variables. ##
1385 ## ---------------- ##
1386 _ASBOX
1387 echo
1388 # The following way of writing the cache mishandles newlines in values,
1389 {
1390 (set) 2>&1 |
1391 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1392 *ac_space=\ *)
1393 sed -n \
1394 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1396 ;;
1397 *)
1398 sed -n \
1399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1400 ;;
1401 esac;
1402 }
1403 echo
1404
1405 cat <<\_ASBOX
1406 ## ----------------- ##
1407 ## Output variables. ##
1408 ## ----------------- ##
1409 _ASBOX
1410 echo
1411 for ac_var in $ac_subst_vars
1412 do
1413 eval ac_val=$`echo $ac_var`
1414 echo "$ac_var='"'"'$ac_val'"'"'"
1415 done | sort
1416 echo
1417
1418 if test -n "$ac_subst_files"; then
1419 cat <<\_ASBOX
1420 ## ------------- ##
1421 ## Output files. ##
1422 ## ------------- ##
1423 _ASBOX
1424 echo
1425 for ac_var in $ac_subst_files
1426 do
1427 eval ac_val=$`echo $ac_var`
1428 echo "$ac_var='"'"'$ac_val'"'"'"
1429 done | sort
1430 echo
1431 fi
1432
1433 if test -s confdefs.h; then
1434 cat <<\_ASBOX
1435 ## ----------- ##
1436 ## confdefs.h. ##
1437 ## ----------- ##
1438 _ASBOX
1439 echo
1440 sed "/^$/d" confdefs.h | sort
1441 echo
1442 fi
1443 test "$ac_signal" != 0 &&
1444 echo "$as_me: caught signal $ac_signal"
1445 echo "$as_me: exit $exit_status"
1446 } >&5
1447 rm -f core *.core &&
1448 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1449 exit $exit_status
1450 ' 0
1451 for ac_signal in 1 2 13 15; do
1452 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1453 done
1454 ac_signal=0
1455
1456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1457 rm -rf conftest* confdefs.h
1458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1459 echo >confdefs.h
1460
1461 # Predefined preprocessor variables.
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_NAME "$PACKAGE_NAME"
1465 _ACEOF
1466
1467
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1470 _ACEOF
1471
1472
1473 cat >>confdefs.h <<_ACEOF
1474 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1475 _ACEOF
1476
1477
1478 cat >>confdefs.h <<_ACEOF
1479 #define PACKAGE_STRING "$PACKAGE_STRING"
1480 _ACEOF
1481
1482
1483 cat >>confdefs.h <<_ACEOF
1484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1485 _ACEOF
1486
1487
1488 # Let the site file select an alternate cache file if it wants to.
1489 # Prefer explicitly selected file to automatically selected ones.
1490 if test -z "$CONFIG_SITE"; then
1491 if test "x$prefix" != xNONE; then
1492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1493 else
1494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1495 fi
1496 fi
1497 for ac_site_file in $CONFIG_SITE; do
1498 if test -r "$ac_site_file"; then
1499 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1500 echo "$as_me: loading site script $ac_site_file" >&6;}
1501 sed 's/^/| /' "$ac_site_file" >&5
1502 . "$ac_site_file"
1503 fi
1504 done
1505
1506 if test -r "$cache_file"; then
1507 # Some versions of bash will fail to source /dev/null (special
1508 # files actually), so we avoid doing that.
1509 if test -f "$cache_file"; then
1510 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1511 echo "$as_me: loading cache $cache_file" >&6;}
1512 case $cache_file in
1513 [\\/]* | ?:[\\/]* ) . $cache_file;;
1514 *) . ./$cache_file;;
1515 esac
1516 fi
1517 else
1518 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1519 echo "$as_me: creating cache $cache_file" >&6;}
1520 >$cache_file
1521 fi
1522
1523 # Check that the precious variables saved in the cache have kept the same
1524 # value.
1525 ac_cache_corrupted=false
1526 for ac_var in `(set) 2>&1 |
1527 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1528 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1529 eval ac_new_set=\$ac_env_${ac_var}_set
1530 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1531 eval ac_new_val="\$ac_env_${ac_var}_value"
1532 case $ac_old_set,$ac_new_set in
1533 set,)
1534 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1535 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1536 ac_cache_corrupted=: ;;
1537 ,set)
1538 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1539 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1540 ac_cache_corrupted=: ;;
1541 ,);;
1542 *)
1543 if test "x$ac_old_val" != "x$ac_new_val"; then
1544 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1545 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1546 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1547 echo "$as_me: former value: $ac_old_val" >&2;}
1548 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1549 echo "$as_me: current value: $ac_new_val" >&2;}
1550 ac_cache_corrupted=:
1551 fi;;
1552 esac
1553 # Pass precious variables to config.status.
1554 if test "$ac_new_set" = set; then
1555 case $ac_new_val in
1556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1557 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1558 *) ac_arg=$ac_var=$ac_new_val ;;
1559 esac
1560 case " $ac_configure_args " in
1561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1562 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1563 esac
1564 fi
1565 done
1566 if $ac_cache_corrupted; then
1567 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1568 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1569 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1570 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1571 { (exit 1); exit 1; }; }
1572 fi
1573
1574 ac_ext=c
1575 ac_cpp='$CPP $CPPFLAGS'
1576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609 # List one file in the package so that the configure script can test
1610 # whether the package is actually there
1611
1612
1613 # Where should everything be installed by default? Here, we want it
1614 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1615 # of the directory where configure is run. The default would be
1616 # /usr/local.
1617
1618
1619 #############################################################################
1620 # Standard build tool stuff #
1621 #############################################################################
1622
1623 # Get the system type
1624 ac_aux_dir=
1625 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1626 if test -f $ac_dir/install-sh; then
1627 ac_aux_dir=$ac_dir
1628 ac_install_sh="$ac_aux_dir/install-sh -c"
1629 break
1630 elif test -f $ac_dir/install.sh; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/install.sh -c"
1633 break
1634 elif test -f $ac_dir/shtool; then
1635 ac_aux_dir=$ac_dir
1636 ac_install_sh="$ac_aux_dir/shtool install -c"
1637 break
1638 fi
1639 done
1640 if test -z "$ac_aux_dir"; then
1641 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1642 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1643 { (exit 1); exit 1; }; }
1644 fi
1645 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1646 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1647 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1648
1649 # Make sure we can run config.sub.
1650 $ac_config_sub sun4 >/dev/null 2>&1 ||
1651 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1653 { (exit 1); exit 1; }; }
1654
1655 echo "$as_me:$LINENO: checking build system type" >&5
1656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1657 if test "${ac_cv_build+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 ac_cv_build_alias=$build_alias
1661 test -z "$ac_cv_build_alias" &&
1662 ac_cv_build_alias=`$ac_config_guess`
1663 test -z "$ac_cv_build_alias" &&
1664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1666 { (exit 1); exit 1; }; }
1667 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1671
1672 fi
1673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1674 echo "${ECHO_T}$ac_cv_build" >&6
1675 build=$ac_cv_build
1676 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679
1680
1681
1682 # If this project depends on external projects, the Externals file in
1683 # the source root directory contains definition of where to find those
1684 # externals. The following macro ensures that those externals are
1685 # retrieved by svn if they are not there yet.
1686
1687 # As backup, we make sure we don't loose an FLIBS if it has been set
1688 # by the user
1689 save_FLIBS="$FLIBS"
1690
1691 # A useful makefile conditional that is always false
1692
1693
1694 if false; then
1695 ALWAYS_FALSE_TRUE=
1696 ALWAYS_FALSE_FALSE='#'
1697 else
1698 ALWAYS_FALSE_TRUE='#'
1699 ALWAYS_FALSE_FALSE=
1700 fi
1701
1702
1703 # We set the following variable so that we know later in AC_COIN_FINALIZE
1704 # that we are in a project main directory
1705 coin_projectdir=yes
1706
1707 # Set the project's version numbers
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define COINMP_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1716 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1717 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1718 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1719 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1720 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define COINMP_VERSION_MAJOR $coin_majorver
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define COINMP_VERSION_MINOR $coin_minorver
1729 _ACEOF
1730
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define COINMP_VERSION_RELEASE $coin_releasever
1734 _ACEOF
1735
1736
1737 # We use the following variable to have a string with the upper case
1738 # version of the project name
1739 COIN_PRJCT=COINMP
1740
1741 # Set the project's SVN revision number. The complicated sed expression
1742 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1743 # as a single number.
1744 # Extract the first word of "svnversion", so it can be a program name with args.
1745 set dummy svnversion; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_have_svnversion+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 if test -n "$have_svnversion"; then
1752 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_have_svnversion="yes"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 break 2
1764 fi
1765 done
1766 done
1767
1768 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1769 fi
1770 fi
1771 have_svnversion=$ac_cv_prog_have_svnversion
1772 if test -n "$have_svnversion"; then
1773 echo "$as_me:$LINENO: result: $have_svnversion" >&5
1774 echo "${ECHO_T}$have_svnversion" >&6
1775 else
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780 if test "x$have_svnversion" = xyes; then
1781
1782 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1783 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1784 COINMP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define COINMP_SVN_REV $COINMP_SVN_REV
1788 _ACEOF
1789
1790 fi
1791 fi
1792
1793
1794
1795 # Capture libtool library version, if given.
1796
1797
1798
1799
1800 # Check if user wants to produce debugging code
1801
1802 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1803 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1804
1805 # Check whether --enable-debug or --disable-debug was given.
1806 if test "${enable_debug+set}" = set; then
1807 enableval="$enable_debug"
1808 case "${enableval}" in
1809 yes) coin_debug_compile=true
1810 if test "${enable_shared+set}" = set; then :; else
1811 enable_shared=no
1812 fi
1813 ;;
1814 no) coin_debug_compile=false
1815 ;;
1816 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1817 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1818 { (exit 1); exit 1; }; }
1819 ;;
1820 esac
1821 else
1822 coin_debug_compile=false
1823 fi;
1824
1825 # Check whether --enable-debug-coinmp or --disable-debug-coinmp was given.
1826 if test "${enable_debug_coinmp+set}" = set; then
1827 enableval="$enable_debug_coinmp"
1828 case "${enableval}" in
1829 yes) coin_debug_compile=true
1830 ;;
1831 no) coin_debug_compile=false
1832 ;;
1833 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-coinmp" >&5
1834 echo "$as_me: error: bad value ${enableval} for --enable-debug-coinmp" >&2;}
1835 { (exit 1); exit 1; }; }
1836 ;;
1837 esac
1838 else
1839 :
1840 fi;
1841
1842 # m4_ifvaln([CoinMP],
1843
1844 if test $coin_debug_compile = true; then
1845 echo "$as_me:$LINENO: result: yes" >&5
1846 echo "${ECHO_T}yes" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852
1853 # Check whether --with-coinmp-verbosity or --without-coinmp-verbosity was given.
1854 if test "${with_coinmp_verbosity+set}" = set; then
1855 withval="$with_coinmp_verbosity"
1856 if test "$withval" = yes; then
1857 withval=1
1858 fi
1859 coin_coinmp_verbosity=$withval
1860 else
1861 coin_coinmp_verbosity=0
1862 fi;
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define COIN_COINMP_VERBOSITY $coin_coinmp_verbosity
1866 _ACEOF
1867
1868
1869
1870 # Check whether --with-coinmp-checklevel or --without-coinmp-checklevel was given.
1871 if test "${with_coinmp_checklevel+set}" = set; then
1872 withval="$with_coinmp_checklevel"
1873 if test "$withval" = yes; then
1874 withval=1
1875 fi
1876 coin_coinmp_checklevel=$withval
1877 else
1878 coin_coinmp_checklevel=0
1879 fi;
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define COIN_COINMP_CHECKLEVEL $coin_coinmp_checklevel
1883 _ACEOF
1884
1885
1886 # m4_ifvaln([CoinMP],
1887
1888
1889
1890 # Get the name of the C++ compiler and appropriate compiler options
1891
1892
1893 # for backward compatibility
1894 # Check whether --enable-doscompile or --disable-doscompile was given.
1895 if test "${enable_doscompile+set}" = set; then
1896 enableval="$enable_doscompile"
1897 enable_doscompile=$enableval
1898 else
1899 enable_doscompile=no
1900 fi;
1901
1902 # Check whether --enable-msvc or --disable-msvc was given.
1903 if test "${enable_msvc+set}" = set; then
1904 enableval="$enable_msvc"
1905 enable_msvc=$enableval
1906 else
1907 enable_msvc=no
1908 if test "$enable_doscompile" = msvc ; then
1909 enable_msvc=yes
1910 elif test "$enable_doscompile" != no ; then
1911 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1912 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1913 { (exit 1); exit 1; }; }
1914 fi
1915
1916 fi;
1917
1918 if test "$enable_msvc" = MD; then
1919 enable_shared=yes
1920 enable_msvc=yes
1921 fi
1922
1923 if test "$enable_msvc" = yes; then
1924 case $build in
1925 *-cygwin* | *-mingw*) ;;
1926 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1927 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1928 { (exit 1); exit 1; }; } ;;
1929 esac
1930 fi
1931
1932
1933
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939
1940
1941 # For consistency, we set the C compiler to the same value of the C++
1942 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1943 if test x"$CXX" != x; then
1944 case "$CXX" in
1945 clang* ) ;;
1946 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1947 if test x"$CC" = x; then
1948 CC="$CXX"
1949 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1950 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1951 fi
1952 ;;
1953 esac
1954 fi
1955
1956
1957
1958
1959
1960
1961 coin_has_cc=yes
1962
1963 save_cflags="$CFLAGS"
1964
1965 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1966 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1967 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1968 # compiler. In this case, put cc after gcc.
1969
1970 case $build in
1971 *-cygwin* | *-mingw*)
1972 if test "$enable_msvc" = yes ; then
1973 comps="icl cl gcc"
1974 else
1975 comps="gcc icl cl"
1976 fi ;;
1977 *-*-solaris*)
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 if test -n "$sol_cc_compiler"; then
1986 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1987 else
1988 ac_prog_rejected=no
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected=yes
1998 continue
1999 fi
2000 ac_cv_prog_sol_cc_compiler="cc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004 done
2005 done
2006
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_sol_cc_compiler
2010 shift
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set sol_cc_compiler to just the basename; use the full file name.
2015 shift
2016 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2017 fi
2018 fi
2019 fi
2020 fi
2021 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2022 if test -n "$sol_cc_compiler"; then
2023 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2024 echo "${ECHO_T}$sol_cc_compiler" >&6
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 if test "$sol_cc_compiler" = "cc" ; then
2031 comps="cc xlc gcc pgcc icc"
2032 else
2033 comps="xlc gcc pgcc icc cc"
2034 fi
2035 ;;
2036 *-*-darwin*) comps="clang gcc cc" ;;
2037 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2038 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2039 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
2040 esac
2041
2042 # We delete the cached value, since the test might not have been
2043 # performed with our choice of compilers earlier
2044 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2045 # AC_MSG_NOTICE([C compiler candidates: $comps])
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 if test -n "$ac_tool_prefix"; then
2052 for ac_prog in $comps
2053 do
2054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 break 2
2074 fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082 echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2084 else
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089 test -n "$CC" && break
2090 done
2091 fi
2092 if test -z "$CC"; then
2093 ac_ct_CC=$CC
2094 for ac_prog in $comps
2095 do
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_ac_ct_CC="$ac_prog"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2126 else
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131 test -n "$ac_ct_CC" && break
2132 done
2133
2134 CC=$ac_ct_CC
2135 fi
2136
2137
2138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&5
2140 echo "$as_me: error: no acceptable C compiler found in \$PATH
2141 See \`config.log' for more details." >&2;}
2142 { (exit 1); exit 1; }; }
2143
2144 # Provide some information about the compiler.
2145 echo "$as_me:$LINENO:" \
2146 "checking for C compiler version" >&5
2147 ac_compiler=`set X $ac_compile; echo $2`
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149 (eval $ac_compiler --version </dev/null >&5) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2154 (eval $ac_compiler -v </dev/null >&5) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159 (eval $ac_compiler -V </dev/null >&5) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164 cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h. */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2170
2171 int
2172 main ()
2173 {
2174
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 ac_clean_files_save=$ac_clean_files
2180 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181 # Try to create an executable without -o first, disregard a.out.
2182 # It will help us diagnose broken compilers, and finding out an intuition
2183 # of exeext.
2184 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2186 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2188 (eval $ac_link_default) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # Find the output, starting from the most likely. This scheme is
2193 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194 # resort.
2195
2196 # Be careful to initialize this variable, since it used to be cached.
2197 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198 ac_cv_exeext=
2199 # b.out is created by i960 compilers.
2200 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201 do
2202 test -f "$ac_file" || continue
2203 case $ac_file in
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205 ;;
2206 conftest.$ac_ext )
2207 # This is the source file.
2208 ;;
2209 [ab].out )
2210 # We found the default executable, but exeext='' is most
2211 # certainly right.
2212 break;;
2213 *.* )
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 # FIXME: I believe we export ac_cv_exeext for Libtool,
2216 # but it would be cool to find out if it's true. Does anybody
2217 # maintain Libtool? --akim.
2218 export ac_cv_exeext
2219 break;;
2220 * )
2221 break;;
2222 esac
2223 done
2224 else
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&2;}
2232 { (exit 77); exit 77; }; }
2233 fi
2234
2235 ac_exeext=$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_file" >&5
2237 echo "${ECHO_T}$ac_file" >&6
2238
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244 # If not cross compiling, check that we can run a simple program.
2245 if test "$cross_compiling" != yes; then
2246 if { ac_try='./$ac_file'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 cross_compiling=no
2253 else
2254 if test "$cross_compiling" = maybe; then
2255 cross_compiling=yes
2256 else
2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2264 fi
2265 fi
2266 fi
2267 echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6
2269
2270 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271 ac_clean_files=$ac_clean_files_save
2272 # Check the compiler produces executables we can run. If not, either
2273 # the compiler is broken, or we cross compile.
2274 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277 echo "${ECHO_T}$cross_compiling" >&6
2278
2279 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2282 (eval $ac_link) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
2286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2288 # work properly (i.e., refer to `conftest.exe'), while it won't with
2289 # `rm'.
2290 for ac_file in conftest.exe conftest conftest.*; do
2291 test -f "$ac_file" || continue
2292 case $ac_file in
2293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295 export ac_cv_exeext
2296 break;;
2297 * ) break;;
2298 esac
2299 done
2300 else
2301 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2302 See \`config.log' for more details." >&5
2303 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&2;}
2305 { (exit 1); exit 1; }; }
2306 fi
2307
2308 rm -f conftest$ac_cv_exeext
2309 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310 echo "${ECHO_T}$ac_cv_exeext" >&6
2311
2312 rm -f conftest.$ac_ext
2313 EXEEXT=$ac_cv_exeext
2314 ac_exeext=$EXEEXT
2315 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317 if test "${ac_cv_objext+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 cat >conftest.$ac_ext <<_ACEOF
2321 /* confdefs.h. */
2322 _ACEOF
2323 cat confdefs.h >>conftest.$ac_ext
2324 cat >>conftest.$ac_ext <<_ACEOF
2325 /* end confdefs.h. */
2326
2327 int
2328 main ()
2329 {
2330
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 rm -f conftest.o conftest.obj
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
2341 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342 case $ac_file in
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 break;;
2346 esac
2347 done
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2357 fi
2358
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 fi
2361 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376
2377 int
2378 main ()
2379 {
2380 #ifndef __GNUC__
2381 choke me
2382 #endif
2383
2384 ;
2385 return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_compiler_gnu=yes
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_compiler_gnu=no
2416 fi
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420 fi
2421 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 CFLAGS="-g"
2427 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2438
2439 int
2440 main ()
2441 {
2442
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_prog_cc_g=yes
2470 else
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2473
2474 ac_cv_prog_cc_g=no
2475 fi
2476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480 if test "$ac_test_CFLAGS" = set; then
2481 CFLAGS=$ac_save_CFLAGS
2482 elif test $ac_cv_prog_cc_g = yes; then
2483 if test "$GCC" = yes; then
2484 CFLAGS="-g -O2"
2485 else
2486 CFLAGS="-g"
2487 fi
2488 else
2489 if test "$GCC" = yes; then
2490 CFLAGS="-O2"
2491 else
2492 CFLAGS=
2493 fi
2494 fi
2495 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 ac_cv_prog_cc_stdc=no
2501 ac_save_CC=$CC
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508 #include <stdarg.h>
2509 #include <stdio.h>
2510 #include <sys/types.h>
2511 #include <sys/stat.h>
2512 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2513 struct buf { int x; };
2514 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515 static char *e (p, i)
2516 char **p;
2517 int i;
2518 {
2519 return p[i];
2520 }
2521 static char *f (char * (*g) (char **, int), char **p, ...)
2522 {
2523 char *s;
2524 va_list v;
2525 va_start (v,p);
2526 s = g (p, va_arg (v,int));
2527 va_end (v);
2528 return s;
2529 }
2530
2531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2532 function prototypes and stuff, but not '\xHH' hex character constants.
2533 These don't provoke an error unfortunately, instead are silently treated
2534 as 'x'. The following induces an error, until -std1 is added to get
2535 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2536 array size at least. It's necessary to write '\x00'==0 to get something
2537 that's true only with -std1. */
2538 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
2540 int test (int i, double x);
2541 struct s1 {int (*f) (int a);};
2542 struct s2 {int (*f) (double a);};
2543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544 int argc;
2545 char **argv;
2546 int
2547 main ()
2548 {
2549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2550 ;
2551 return 0;
2552 }
2553 _ACEOF
2554 # Don't try gcc -ansi; that turns off useful extensions and
2555 # breaks some systems' header files.
2556 # AIX -qlanglvl=ansi
2557 # Ultrix and OSF/1 -std1
2558 # HP-UX 10.20 and later -Ae
2559 # HP-UX older versions -Aa -D_HPUX_SOURCE
2560 # SVR4 -Xc -D__EXTENSIONS__
2561 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 do
2563 CC="$ac_save_CC $ac_arg"
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cc_stdc=$ac_arg
2587 break
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 fi
2593 rm -f conftest.err conftest.$ac_objext
2594 done
2595 rm -f conftest.$ac_ext conftest.$ac_objext
2596 CC=$ac_save_CC
2597
2598 fi
2599
2600 case "x$ac_cv_prog_cc_stdc" in
2601 x|xno)
2602 echo "$as_me:$LINENO: result: none needed" >&5
2603 echo "${ECHO_T}none needed" >&6 ;;
2604 *)
2605 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607 CC="$CC $ac_cv_prog_cc_stdc" ;;
2608 esac
2609
2610 # Some people use a C++ compiler to compile C. Since we use `exit',
2611 # in C++ we need to declare it. In case someone uses the same compiler
2612 # for both compiling C and C++ we need to have the C++ compiler decide
2613 # the declaration of exit, since it's the most demanding environment.
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #ifndef __cplusplus
2616 choke me
2617 #endif
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 for ac_declaration in \
2642 '' \
2643 'extern "C" void std::exit (int) throw (); using std::exit;' \
2644 'extern "C" void std::exit (int); using std::exit;' \
2645 'extern "C" void exit (int) throw ();' \
2646 'extern "C" void exit (int);' \
2647 'void exit (int);'
2648 do
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h. */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2655 $ac_declaration
2656 #include <stdlib.h>
2657 int
2658 main ()
2659 {
2660 exit (42);
2661 ;
2662 return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2668 ac_status=$?
2669 grep -v '^ *+' conftest.er1 >conftest.err
2670 rm -f conftest.er1
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 :
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 continue
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2701 $ac_declaration
2702 int
2703 main ()
2704 {
2705 exit (42);
2706 ;
2707 return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 break
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 done
2740 rm -f conftest*
2741 if test -n "$ac_declaration"; then
2742 echo '#ifdef __cplusplus' >>confdefs.h
2743 echo $ac_declaration >>confdefs.h
2744 echo '#endif' >>confdefs.h
2745 fi
2746
2747 else
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 fi
2752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759 if test -z "$CC" ; then
2760 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2761 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2762 { (exit 1); exit 1; }; }
2763 fi
2764 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2765 case "$CC" in
2766 clang* ) ;;
2767 cl* | */cl* | CL* | */CL* )
2768 if test "$ac_cv_prog_cc_g" = yes ; then
2769 ac_cv_prog_cc_g=no
2770 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2771 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2772 fi ;;
2773 * )
2774 if test x"$CYGPATH_W" = x ; then
2775 CYGPATH_W=echo
2776 fi
2777 ;;
2778 esac
2779 CFLAGS="$save_cflags"
2780
2781 # add automake conditional so we can recognize cl compiler in makefile
2782 coin_cc_is_cl=false
2783 case "$CC" in
2784 clang* ) ;;
2785 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2786 coin_cc_is_cl=true
2787 ;;
2788 esac
2789
2790
2791 if test $coin_cc_is_cl = true; then
2792 COIN_CC_IS_CL_TRUE=
2793 COIN_CC_IS_CL_FALSE='#'
2794 else
2795 COIN_CC_IS_CL_TRUE='#'
2796 COIN_CC_IS_CL_FALSE=
2797 fi
2798
2799
2800 # Check if a project specific CFLAGS variable has been set
2801 if test x$COIN_PRJCT != x; then
2802 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2803 if test x$coin_tmp = xset; then
2804 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2805 fi
2806 fi
2807
2808 if test x"$CFLAGS" = x; then
2809
2810 coin_add_cflags=
2811 coin_opt_cflags=
2812 coin_dbg_cflags=
2813 coin_warn_cflags=
2814
2815 if test "$GCC" = "yes"; then
2816 case "$CC" in
2817 icc* | */icc*)
2818 ;;
2819 *)
2820 coin_opt_cflags="-O3"
2821 coin_add_cflags="-pipe"
2822 coin_dbg_cflags="-g -O0"
2823 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2824 esac
2825 fi
2826 if test -z "$coin_opt_cflags"; then
2827 case $build in
2828 *-cygwin* | *-mingw*)
2829 case "$CC" in
2830 clang* ) ;;
2831 cl* | */cl* | CL* | */CL*)
2832 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2833 coin_opt_cflags='-MD -O2'
2834 coin_dbg_cflags='-MDd'
2835 else
2836 coin_opt_cflags='-MT -O2'
2837 coin_dbg_cflags='-MTd'
2838 fi
2839 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2840 ;;
2841 icl* | */icl* | ICL* | */ICL*)
2842 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2843 coin_opt_cflags='-MD -Ox'
2844 coin_dbg_cflags='-MDd -debug'
2845 else
2846 coin_opt_cflags='-MT -Ox'
2847 coin_dbg_cflags='-MTd -debug'
2848 fi
2849 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2850 ;;
2851 esac
2852 ;;
2853 *-linux-*)
2854 case "$CC" in
2855 icc* | */icc*)
2856 coin_opt_cflags="-O3 -ip -mp1"
2857 coin_add_cflags=""
2858 coin_dbg_cflags="-g"
2859 # Check if -i_dynamic is necessary (for new glibc library)
2860 CFLAGS=
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871 int i=0; i++;
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext conftest$ac_exeext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2878 (eval $ac_link) 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_c_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest$ac_exeext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 :
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 coin_add_cflags="-i_dynamic $coin_add_cflags"
2904 fi
2905 rm -f conftest.err conftest.$ac_objext \
2906 conftest$ac_exeext conftest.$ac_ext
2907 ;;
2908 pgcc* | */pgcc*)
2909 coin_opt_cflags="-fast"
2910 coin_add_cflags="-Kieee -pc 64"
2911 coin_dbg_cflags="-g"
2912 ;;
2913 esac
2914 ;;
2915 *-ibm-*)
2916 case "$CC" in
2917 xlc* | */xlc* | mpxlc* | */mpxlc*)
2918 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2919 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2920 coin_dbg_cflags="-g"
2921 ;;
2922 esac
2923 ;;
2924 *-hp-*)
2925 coin_opt_cflags="-O"
2926 coin_add_cflags="-Ae"
2927 coin_dbg_cflags="-g"
2928 ;;
2929 *-*-solaris*)
2930 coin_opt_cflags="-xO4"
2931 coin_dbg_cflags="-g"
2932 ;;
2933 *-sgi-*)
2934 coin_opt_cflags="-O -OPT:Olimit=0"
2935 coin_dbg_cflags="-g"
2936 ;;
2937 esac
2938 fi
2939
2940 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2941 coin_dbg_cflags="-g"
2942 fi
2943
2944 if test -z "$coin_opt_cflags"; then
2945 # Try if -O option works if nothing else is set
2946 CFLAGS="-O"
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957 int i=0; i++;
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext conftest$ac_exeext
2963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964 (eval $ac_link) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -z "$ac_c_werror_flag"
2972 || test ! -s conftest.err'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; } &&
2978 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2984 coin_opt_cflags="-O"
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 fi
2990 rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
2992 fi
2993
2994 # if PM doesn't want the warning messages, take them out
2995 if test x"$coin_skip_warn_cflags" = xyes; then
2996 coin_warn_cflags=
2997 fi
2998
2999 if test x${DBG_CFLAGS+set} != xset; then
3000 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3001 fi
3002 if test x${OPT_CFLAGS+set} != xset; then
3003 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3004 fi
3005
3006 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3007 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3008
3009 if test "$coin_debug_compile" = "true"; then
3010 CFLAGS="$DBG_CFLAGS"
3011 else
3012 CFLAGS="$OPT_CFLAGS"
3013 fi
3014 else
3015 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3016 if test x${DBG_CFLAGS+set} != xset; then
3017 DBG_CFLAGS="$CFLAGS"
3018 fi
3019 if test x${OPT_CFLAGS+set} != xset; then
3020 OPT_CFLAGS="$CFLAGS"
3021 fi
3022 fi
3023
3024 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3025 if test x$COIN_PRJCT != x; then
3026 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3027 fi
3028
3029 # Try if CFLAGS works
3030 save_CFLAGS="$CFLAGS"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037
3038 int
3039 main ()
3040 {
3041 int i=0; i++;
3042 ;
3043 return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext conftest$ac_exeext
3047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3048 (eval $ac_link) 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } &&
3055 { ac_try='test -z "$ac_c_werror_flag"
3056 || test ! -s conftest.err'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest$ac_exeext'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 (eval $ac_try) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3068 :
3069 else
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3072
3073 CFLAGS=
3074 fi
3075 rm -f conftest.err conftest.$ac_objext \
3076 conftest$ac_exeext conftest.$ac_ext
3077 if test -z "$CFLAGS"; then
3078 { 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
3079 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;}
3080 CFLAGS='-O'
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087
3088 int
3089 main ()
3090 {
3091 int i=0; i++;
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext conftest$ac_exeext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098 (eval $ac_link) 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag"
3106 || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest$ac_exeext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 :
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 CFLAGS=
3124 fi
3125 rm -f conftest.err conftest.$ac_objext \
3126 conftest$ac_exeext conftest.$ac_ext
3127 if test -z "$CFLAGS"; then
3128 { 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
3129 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;}
3130 fi
3131 fi
3132
3133 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3134 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3135
3136
3137 if test x"$MPICC" = x; then :; else
3138 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3139 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3140 CC="$MPICC"
3141 fi
3142
3143 # Correct the LD variable if we are using the MS or Intel-windows compiler
3144 case "$CC" in
3145 clang* ) ;;
3146 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3147 LD=link
3148 ;;
3149 esac
3150
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
3157
3158
3159 #Let's try if that overcomes configuration problem with VC++ 6.0
3160
3161 ac_ext=cc
3162 ac_cpp='$CXXCPP $CPPFLAGS'
3163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3166
3167
3168
3169
3170
3171
3172
3173 coin_has_cxx=yes
3174
3175 save_cxxflags="$CXXFLAGS"
3176 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3177 case $build in
3178 *-cygwin* | *-mingw*)
3179 if test "$enable_msvc" = yes ; then
3180 comps="icl cl g++"
3181 else
3182 comps="g++ icl cl"
3183 fi ;;
3184 *-*-solaris*)
3185 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3186 *-darwin*) comps="clang++ g++ c++ CC" ;;
3187 *-linux-gnu*)
3188 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3189 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3190 esac
3191
3192 # We delete the cached value, since the test might not have been
3193 # performed with our choice of compilers earlier
3194 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3195 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3196 ac_ext=cc
3197 ac_cpp='$CXXCPP $CPPFLAGS'
3198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3201 if test -n "$ac_tool_prefix"; then
3202 for ac_prog in $CCC $comps
3203 do
3204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_CXX+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 if test -n "$CXX"; then
3212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227
3228 fi
3229 fi
3230 CXX=$ac_cv_prog_CXX
3231 if test -n "$CXX"; then
3232 echo "$as_me:$LINENO: result: $CXX" >&5
3233 echo "${ECHO_T}$CXX" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237 fi
3238
3239 test -n "$CXX" && break
3240 done
3241 fi
3242 if test -z "$CXX"; then
3243 ac_ct_CXX=$CXX
3244 for ac_prog in $CCC $comps
3245 do
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy $ac_prog; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 if test -n "$ac_ct_CXX"; then
3254 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_ac_ct_CXX="$ac_prog"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269
3270 fi
3271 fi
3272 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3273 if test -n "$ac_ct_CXX"; then
3274 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3275 echo "${ECHO_T}$ac_ct_CXX" >&6
3276 else
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 fi
3280
3281 test -n "$ac_ct_CXX" && break
3282 done
3283 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3284
3285 CXX=$ac_ct_CXX
3286 fi
3287
3288
3289 # Provide some information about the compiler.
3290 echo "$as_me:$LINENO:" \
3291 "checking for C++ compiler version" >&5
3292 ac_compiler=`set X $ac_compile; echo $2`
3293 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3294 (eval $ac_compiler --version </dev/null >&5) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3299 (eval $ac_compiler -v </dev/null >&5) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }
3303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3304 (eval $ac_compiler -V </dev/null >&5) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }
3308
3309 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3310 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3311 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320
3321 int
3322 main ()
3323 {
3324 #ifndef __GNUC__
3325 choke me
3326 #endif
3327
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_compiler_gnu=yes
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ac_compiler_gnu=no
3360 fi
3361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3363
3364 fi
3365 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3366 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3367 GXX=`test $ac_compiler_gnu = yes && echo yes`
3368 ac_test_CXXFLAGS=${CXXFLAGS+set}
3369 ac_save_CXXFLAGS=$CXXFLAGS
3370 CXXFLAGS="-g"
3371 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3372 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3373 if test "${ac_cv_prog_cxx_g+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_cxx_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 ac_cv_prog_cxx_g=yes
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 ac_cv_prog_cxx_g=no
3419 fi
3420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 fi
3422 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3423 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3424 if test "$ac_test_CXXFLAGS" = set; then
3425 CXXFLAGS=$ac_save_CXXFLAGS
3426 elif test $ac_cv_prog_cxx_g = yes; then
3427 if test "$GXX" = yes; then
3428 CXXFLAGS="-g -O2"
3429 else
3430 CXXFLAGS="-g"
3431 fi
3432 else
3433 if test "$GXX" = yes; then
3434 CXXFLAGS="-O2"
3435 else
3436 CXXFLAGS=
3437 fi
3438 fi
3439 for ac_declaration in \
3440 '' \
3441 'extern "C" void std::exit (int) throw (); using std::exit;' \
3442 'extern "C" void std::exit (int); using std::exit;' \
3443 'extern "C" void exit (int) throw ();' \
3444 'extern "C" void exit (int);' \
3445 'void exit (int);'
3446 do
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 $ac_declaration
3454 #include <stdlib.h>
3455 int
3456 main ()
3457 {
3458 exit (42);
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_cxx_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 :
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 continue
3491 fi
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 $ac_declaration
3500 int
3501 main ()
3502 {
3503 exit (42);
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_cxx_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 break
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 done
3538 rm -f conftest*
3539 if test -n "$ac_declaration"; then
3540 echo '#ifdef __cplusplus' >>confdefs.h
3541 echo $ac_declaration >>confdefs.h
3542 echo '#endif' >>confdefs.h
3543 fi
3544
3545 ac_ext=cc
3546 ac_cpp='$CXXCPP $CPPFLAGS'
3547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3550
3551
3552 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3553 #thus, we test here whether $CXX is actually working
3554 ac_ext=cc
3555 ac_cpp='$CXXCPP $CPPFLAGS'
3556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3559
3560 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3561 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568
3569 int
3570 main ()
3571 {
3572 int i=0;
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_cxx_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600 echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3608 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3609 { (exit 1); exit 1; }; }
3610
3611 fi
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_ext=cc
3614 ac_cpp='$CXXCPP $CPPFLAGS'
3615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3618
3619
3620 coin_cxx_is_cl=false
3621 # It seems that we need to cleanup something here for the Windows
3622 case "$CXX" in
3623 clang* | */clang*) ;;
3624 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3625 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3626 mv confdefs.hh confdefs.h
3627 coin_cxx_is_cl=true
3628 ;;
3629 esac
3630
3631 # add automake conditional so we can recognize cl compiler in makefile
3632
3633
3634 if test $coin_cxx_is_cl = true; then
3635 COIN_CXX_IS_CL_TRUE=
3636 COIN_CXX_IS_CL_FALSE='#'
3637 else
3638 COIN_CXX_IS_CL_TRUE='#'
3639 COIN_CXX_IS_CL_FALSE=
3640 fi
3641
3642
3643 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3644 case "$CXX" in
3645 clang* ) ;;
3646 cl* | */cl* | CL* | */CL* )
3647 if test "$ac_cv_prog_cxx_g" = yes ; then
3648 ac_cv_prog_cxx_g=no
3649 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3650 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3651 fi ;;
3652 * )
3653 if test x"$CYGPATH_W" = x ; then
3654 CYGPATH_W=echo
3655 fi
3656 ;;
3657 esac
3658 CXXFLAGS="$save_cxxflags"
3659
3660 # Check if a project specific CXXFLAGS variable has been set
3661 if test x$COIN_PRJCT != x; then
3662 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3663 if test x$coin_tmp = xset; then
3664 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3665 fi
3666 fi
3667
3668 if test x"$CXXFLAGS" = x; then
3669
3670 # ToDo decide whether we want -DNDEBUG for optimization
3671 coin_add_cxxflags=
3672 coin_opt_cxxflags=
3673 coin_dbg_cxxflags=
3674 coin_warn_cxxflags=
3675
3676 if test "$GXX" = "yes"; then
3677 case "$CXX" in
3678 icpc* | */icpc*)
3679 ;;
3680 *)
3681 # ToDo decide about unroll-loops
3682 coin_opt_cxxflags="-O3"
3683 coin_add_cxxflags="-pipe"
3684 coin_dbg_cxxflags="-g -O0"
3685 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3686 esac
3687 fi
3688
3689 # Note that we do not need to cover GCC in the following tests.
3690
3691 if test -z "$coin_opt_cxxflags"; then
3692 case $build in
3693 *-cygwin* | *-mingw*)
3694 case "$CXX" in
3695 clang* ) ;;
3696 cl* | */cl* | CL* | */CL*)
3697 # The MT and MTd options are mutually exclusive
3698 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3699 coin_opt_cxxflags='-MD -O2'
3700 coin_dbg_cxxflags='-MDd'
3701 else
3702 coin_opt_cxxflags='-MT -O2'
3703 coin_dbg_cxxflags='-MTd'
3704 fi
3705 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3706 ;;
3707 icl* | */icl* | ICL* | */ICL*)
3708 # The MT and MTd options are mutually exclusive
3709 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3710 coin_opt_cxxflags='-MD -Ox'
3711 coin_dbg_cxxflags='-MDd -debug'
3712 else
3713 coin_opt_cxxflags='-MT -Ox'
3714 coin_dbg_cxxflags='-MTd -debug'
3715 fi
3716 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3717 ;;
3718 esac
3719 ;;
3720 *-linux-*)
3721 case "$CXX" in
3722 icpc* | */icpc*)
3723 coin_opt_cxxflags="-O3 -ip -mp1"
3724 coin_add_cxxflags=""
3725 coin_dbg_cxxflags="-g"
3726 # Check if -i_dynamic is necessary (for new glibc library)
3727 CXXFLAGS=
3728 cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h. */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734
3735 int
3736 main ()
3737 {
3738 int i=0; i++;
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745 (eval $ac_link) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_cxx_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest$ac_exeext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 :
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3771 fi
3772 rm -f conftest.err conftest.$ac_objext \
3773 conftest$ac_exeext conftest.$ac_ext
3774 ;;
3775 pgCC* | */pgCC*)
3776 coin_opt_cxxflags="-fast"
3777 coin_add_cxxflags="-Kieee -pc 64"
3778 coin_dbg_cxxflags="-g"
3779 ;;
3780 esac
3781 ;;
3782 *-ibm-*)
3783 case "$CXX" in
3784 xlC* | */xlC* | mpxlC* | */mpxlC*)
3785 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3786 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3787 coin_dbg_cxxflags="-g"
3788 ;;
3789 esac
3790 ;;
3791 *-hp-*)
3792 case "$CXX" in
3793 aCC* | */aCC* )
3794 coin_opt_cxxflags="-O"
3795 coin_add_cxxflags="-AA"
3796 coin_dbg_cxxflags="-g"
3797 ;;
3798 esac
3799 ;;
3800 *-*-solaris*)
3801 coin_opt_cxxflags="-O4"
3802 coin_dbg_cxxflags="-g"
3803 ;;
3804 esac
3805 fi
3806
3807 # Generic flag settings. If these don't work, add a case above.
3808
3809 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3810 coin_dbg_cxxflags="-g"
3811 fi
3812
3813 if test -z "$coin_opt_cxxflags"; then
3814 # Try if -O option works if nothing else is set
3815 CXXFLAGS=-O
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826 int i=0; i++;
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_cxx_werror_flag"
3841 || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest$ac_exeext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 coin_opt_cxxflags="-O"
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 fi
3859 rm -f conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3861 fi
3862
3863 # if PM doesn't want the warning messages, take them out
3864 if test x"$coin_skip_warn_cxxflags" = xyes; then
3865 coin_warn_cxxflags=
3866 fi
3867
3868 # Do final setup of flags based on values determined above.
3869
3870 if test x${DBG_CXXFLAGS+set} != xset; then
3871 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3872 fi
3873 if test x${OPT_CXXFLAGS+set} != xset; then
3874 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3875 fi
3876
3877 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3878 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3879
3880 if test "$coin_debug_compile" = "true"; then
3881 CXXFLAGS="$DBG_CXXFLAGS"
3882 else
3883 CXXFLAGS="$OPT_CXXFLAGS"
3884 fi
3885
3886 # Handle the case where CXXFLAGS was set externally.
3887 else
3888 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3889 if test x${DBG_CXXFLAGS+set} != xset; then
3890 DBG_CXXFLAGS="$CXXFLAGS"
3891 fi
3892 if test x${OPT_CXXFLAGS+set} != xset; then
3893 OPT_CXXFLAGS="$CXXFLAGS"
3894 fi
3895 fi
3896
3897 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3898 if test x$COIN_PRJCT != x; then
3899 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3900 fi
3901
3902 # Try if CXXFLAGS works
3903 save_CXXFLAGS="$CXXFLAGS"
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910
3911 int
3912 main ()
3913 {
3914 int i=0; i++;
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 rm -f conftest.$ac_objext conftest$ac_exeext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3921 (eval $ac_link) 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -z "$ac_cxx_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 :
3942 else
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 CXXFLAGS=
3947 fi
3948 rm -f conftest.err conftest.$ac_objext \
3949 conftest$ac_exeext conftest.$ac_ext
3950 if test -z "$CXXFLAGS"; then
3951 { 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
3952 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;}
3953 CXXFLAGS='-O'
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960
3961 int
3962 main ()
3963 {
3964 int i=0; i++;
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.$ac_objext conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -z "$ac_cxx_werror_flag"
3979 || test ! -s conftest.err'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try='test -s conftest$ac_exeext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 :
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996 CXXFLAGS=
3997 fi
3998 rm -f conftest.err conftest.$ac_objext \
3999 conftest$ac_exeext conftest.$ac_ext
4000 if test -z "$CXXFLAGS"; then
4001 { 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
4002 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;}
4003 fi
4004 fi
4005
4006 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4007 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4008
4009
4010 if test x"$MPICXX" = x; then :; else
4011 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4012 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4013 CXX="$MPICXX"
4014 fi
4015
4016 # correct the LD variable in a build with MS or Intel-windows compiler
4017 case "$CXX" in
4018 clang* ) ;;
4019 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4020 LD=link
4021 ;;
4022 esac
4023
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029
4030
4031
4032 # Initialize automake and libtool
4033 {
4034
4035
4036
4037 # START
4038
4039 coin_disable_shared=no
4040 # Test if force_shared has been set
4041 if test "x" = xforce_shared; then
4042 if test x$enable_shared = xno; then
4043 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4044 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4045 { (exit 1); exit 1; }; }
4046 fi
4047 enable_shared=yes;
4048 else
4049 case $build in
4050 *-cygwin* | *-mingw*)
4051 coin_disable_shared=yes
4052 if test x"$enable_shared" = xyes; then
4053 case "$CC" in
4054 clang* )
4055 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4056 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4057 ;;
4058 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4059 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4060 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4061 ;;
4062 *gcc*)
4063 if test x"$enable_dependency_linking" = xyes; then
4064 coin_disable_shared=no
4065 else
4066 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4067 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4068 fi
4069 ;;
4070 *)
4071 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4072 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4073 ;;
4074 esac
4075 fi
4076 ;;
4077 *-aix*)
4078 coin_disable_shared=yes
4079 platform=AIX
4080 if test x"$enable_shared" = xyes; then
4081 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4082 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4083 fi
4084 ;;
4085 esac
4086 fi
4087 if test x"$coin_disable_shared" = xyes; then
4088 if test x"$enable_shared" = xyes; then
4089 :
4090 else
4091 # we don't disable shared, because it was not selected anyway
4092 coin_disable_shared=no
4093 fi
4094 enable_shared=no
4095 fi
4096 # By default, we only want the shared objects to be compiled
4097 # Check whether --enable-static or --disable-static was given.
4098 if test "${enable_static+set}" = set; then
4099 enableval="$enable_static"
4100 p=${PACKAGE-default}
4101 case $enableval in
4102 yes) enable_static=yes ;;
4103 no) enable_static=no ;;
4104 *)
4105 enable_static=no
4106 # Look at the argument we got. We use all the common list separators.
4107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4108 for pkg in $enableval; do
4109 IFS="$lt_save_ifs"
4110 if test "X$pkg" = "X$p"; then
4111 enable_static=yes
4112 fi
4113 done
4114 IFS="$lt_save_ifs"
4115 ;;
4116 esac
4117 else
4118 enable_static=no
4119 fi;
4120
4121
4122
4123
4124 # Initialize automake
4125 echo "$as_me:$LINENO: checking for egrep" >&5
4126 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4127 if test "${ac_cv_prog_egrep+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4131 then ac_cv_prog_egrep='grep -E'
4132 else ac_cv_prog_egrep='egrep'
4133 fi
4134 fi
4135 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4136 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4137 EGREP=$ac_cv_prog_egrep
4138
4139
4140 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4141 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4142 LN_S=$as_ln_s
4143 if test "$LN_S" = "ln -s"; then
4144 echo "$as_me:$LINENO: result: yes" >&5
4145 echo "${ECHO_T}yes" >&6
4146 else
4147 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4148 echo "${ECHO_T}no, using $LN_S" >&6
4149 fi
4150
4151 am__api_version="1.9"
4152 # Find a good install program. We prefer a C program (faster),
4153 # so one script is as good as another. But avoid the broken or
4154 # incompatible versions:
4155 # SysV /etc/install, /usr/sbin/install
4156 # SunOS /usr/etc/install
4157 # IRIX /sbin/install
4158 # AIX /bin/install
4159 # AmigaOS /C/install, which installs bootblocks on floppy discs
4160 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4161 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4162 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4163 # OS/2's system install, which has a completely different semantic
4164 # ./install, which can be erroneously created by make from ./install.sh.
4165 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4166 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4167 if test -z "$INSTALL"; then
4168 if test "${ac_cv_path_install+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 # Account for people who put trailing slashes in PATH elements.
4177 case $as_dir/ in
4178 ./ | .// | /cC/* | \
4179 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4180 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4181 /usr/ucb/* ) ;;
4182 *)
4183 # OSF1 and SCO ODT 3.0 have their own names for install.
4184 # Don't use installbsd from OSF since it installs stuff as root
4185 # by default.
4186 for ac_prog in ginstall scoinst install; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4189 if test $ac_prog = install &&
4190 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4191 # AIX install. It has an incompatible calling convention.
4192 :
4193 elif test $ac_prog = install &&
4194 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4195 # program-specific install script used by HP pwplus--don't use.
4196 :
4197 else
4198 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4199 break 3
4200 fi
4201 fi
4202 done
4203 done
4204 ;;
4205 esac
4206 done
4207
4208
4209 fi
4210 if test "${ac_cv_path_install+set}" = set; then
4211 INSTALL=$ac_cv_path_install
4212 else
4213 # As a last resort, use the slow shell script. We don't cache a
4214 # path for INSTALL within a source directory, because that will
4215 # break other packages using the cache if that directory is
4216 # removed, or if the path is relative.
4217 INSTALL=$ac_install_sh
4218 fi
4219 fi
4220 echo "$as_me:$LINENO: result: $INSTALL" >&5
4221 echo "${ECHO_T}$INSTALL" >&6
4222
4223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4224 # It thinks the first close brace ends the variable substitution.
4225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4226
4227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4228
4229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4230
4231 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4232 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4233 # Just in case
4234 sleep 1
4235 echo timestamp > conftest.file
4236 # Do `set' in a subshell so we don't clobber the current shell's
4237 # arguments. Must try -L first in case configure is actually a
4238 # symlink; some systems play weird games with the mod time of symlinks
4239 # (eg FreeBSD returns the mod time of the symlink's containing
4240 # directory).
4241 if (
4242 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4243 if test "$*" = "X"; then
4244 # -L didn't work.
4245 set X `ls -t $srcdir/configure conftest.file`
4246 fi
4247 rm -f conftest.file
4248 if test "$*" != "X $srcdir/configure conftest.file" \
4249 && test "$*" != "X conftest.file $srcdir/configure"; then
4250
4251 # If neither matched, then we have a broken ls. This can happen
4252 # if, for instance, CONFIG_SHELL is bash and it inherits a
4253 # broken ls alias from the environment. This has actually
4254 # happened. Such a system could not be considered "sane".
4255 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4256 alias in your environment" >&5
4257 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4258 alias in your environment" >&2;}
4259 { (exit 1); exit 1; }; }
4260 fi
4261
4262 test "$2" = conftest.file
4263 )
4264 then
4265 # Ok.
4266 :
4267 else
4268 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4269 Check your system clock" >&5
4270 echo "$as_me: error: newly created file is older than distributed files!
4271 Check your system clock" >&2;}
4272 { (exit 1); exit 1; }; }
4273 fi
4274 echo "$as_me:$LINENO: result: yes" >&5
4275 echo "${ECHO_T}yes" >&6
4276 test "$program_prefix" != NONE &&
4277 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4278 # Use a double $ so make ignores it.
4279 test "$program_suffix" != NONE &&
4280 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4281 # Double any \ or $. echo might interpret backslashes.
4282 # By default was `s,x,x', remove it if useless.
4283 cat <<\_ACEOF >conftest.sed
4284 s/[\\$]/&&/g;s/;s,x,x,$//
4285 _ACEOF
4286 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4287 rm conftest.sed
4288
4289 # expand $ac_aux_dir to an absolute path
4290 am_aux_dir=`cd $ac_aux_dir && pwd`
4291
4292 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4293 # Use eval to expand $SHELL
4294 if eval "$MISSING --run true"; then
4295 am_missing_run="$MISSING --run "
4296 else
4297 am_missing_run=
4298 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4299 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4300 fi
4301
4302 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4303 # We used to keeping the `.' as first argument, in order to
4304 # allow $(mkdir_p) to be used without argument. As in
4305 # $(mkdir_p) $(somedir)
4306 # where $(somedir) is conditionally defined. However this is wrong
4307 # for two reasons:
4308 # 1. if the package is installed by a user who cannot write `.'
4309 # make install will fail,
4310 # 2. the above comment should most certainly read
4311 # $(mkdir_p) $(DESTDIR)$(somedir)
4312 # so it does not work when $(somedir) is undefined and
4313 # $(DESTDIR) is not.
4314 # To support the latter case, we have to write
4315 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4316 # so the `.' trick is pointless.
4317 mkdir_p='mkdir -p --'
4318 else
4319 # On NextStep and OpenStep, the `mkdir' command does not
4320 # recognize any option. It will interpret all options as
4321 # directories to create, and then abort because `.' already
4322 # exists.
4323 for d in ./-p ./--version;
4324 do
4325 test -d $d && rmdir $d
4326 done
4327 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4328 if test -f "$ac_aux_dir/mkinstalldirs"; then
4329 mkdir_p='$(mkinstalldirs)'
4330 else
4331 mkdir_p='$(install_sh) -d'
4332 fi
4333 fi
4334
4335 for ac_prog in gawk mawk nawk awk
4336 do
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_AWK+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 if test -n "$AWK"; then
4345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_AWK="$ac_prog"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358 done
4359 done
4360
4361 fi
4362 fi
4363 AWK=$ac_cv_prog_AWK
4364 if test -n "$AWK"; then
4365 echo "$as_me:$LINENO: result: $AWK" >&5
4366 echo "${ECHO_T}$AWK" >&6
4367 else
4368 echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4370 fi
4371
4372 test -n "$AWK" && break
4373 done
4374
4375 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4376 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4377 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4378 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381 cat >conftest.make <<\_ACEOF
4382 all:
4383 @echo 'ac_maketemp="$(MAKE)"'
4384 _ACEOF
4385 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4386 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4387 if test -n "$ac_maketemp"; then
4388 eval ac_cv_prog_make_${ac_make}_set=yes
4389 else
4390 eval ac_cv_prog_make_${ac_make}_set=no
4391 fi
4392 rm -f conftest.make
4393 fi
4394 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4395 echo "$as_me:$LINENO: result: yes" >&5
4396 echo "${ECHO_T}yes" >&6
4397 SET_MAKE=
4398 else
4399 echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4401 SET_MAKE="MAKE=${MAKE-make}"
4402 fi
4403
4404 rm -rf .tst 2>/dev/null
4405 mkdir .tst 2>/dev/null
4406 if test -d .tst; then
4407 am__leading_dot=.
4408 else
4409 am__leading_dot=_
4410 fi
4411 rmdir .tst 2>/dev/null
4412
4413 DEPDIR="${am__leading_dot}deps"
4414
4415 ac_config_commands="$ac_config_commands depfiles"
4416
4417
4418 am_make=${MAKE-make}
4419 cat > confinc << 'END'
4420 am__doit:
4421 @echo done
4422 .PHONY: am__doit
4423 END
4424 # If we don't find an include directive, just comment out the code.
4425 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4426 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4427 am__include="#"
4428 am__quote=
4429 _am_result=none
4430 # First try GNU make style include.
4431 echo "include confinc" > confmf
4432 # We grep out `Entering directory' and `Leaving directory'
4433 # messages which can occur if `w' ends up in MAKEFLAGS.
4434 # In particular we don't look at `^make:' because GNU make might
4435 # be invoked under some other name (usually "gmake"), in which
4436 # case it prints its new name instead of `make'.
4437 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4438 am__include=include
4439 am__quote=
4440 _am_result=GNU
4441 fi
4442 # Now try BSD make style include.
4443 if test "$am__include" = "#"; then
4444 echo '.include "confinc"' > confmf
4445 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4446 am__include=.include
4447 am__quote="\""
4448 _am_result=BSD
4449 fi
4450 fi
4451
4452
4453 echo "$as_me:$LINENO: result: $_am_result" >&5
4454 echo "${ECHO_T}$_am_result" >&6
4455 rm -f confinc confmf
4456
4457 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4458 if test "${enable_dependency_tracking+set}" = set; then
4459 enableval="$enable_dependency_tracking"
4460
4461 fi;
4462 if test "x$enable_dependency_tracking" != xno; then
4463 am_depcomp="$ac_aux_dir/depcomp"
4464 AMDEPBACKSLASH='\'
4465 fi
4466
4467
4468 if test "x$enable_dependency_tracking" != xno; then
4469 AMDEP_TRUE=
4470 AMDEP_FALSE='#'
4471 else
4472 AMDEP_TRUE='#'
4473 AMDEP_FALSE=
4474 fi
4475
4476
4477
4478
4479
4480
4481 # AC_MSG_NOTICE([Beginning automake initialisation.])
4482 # Stuff for automake
4483 # test to see if srcdir already configured
4484 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4485 test -f $srcdir/config.status; then
4486 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4487 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4488 { (exit 1); exit 1; }; }
4489 fi
4490
4491 # test whether we have cygpath
4492 if test -z "$CYGPATH_W"; then
4493 if (cygpath --version) >/dev/null 2>/dev/null; then
4494 CYGPATH_W='cygpath -w'
4495 else
4496 CYGPATH_W=echo
4497 fi
4498 fi
4499
4500
4501 # Define the identity of the package.
4502 PACKAGE='coinmp'
4503 VERSION='1.8'
4504
4505
4506 cat >>confdefs.h <<_ACEOF
4507 #define PACKAGE "$PACKAGE"
4508 _ACEOF
4509
4510
4511 cat >>confdefs.h <<_ACEOF
4512 #define VERSION "$VERSION"
4513 _ACEOF
4514
4515 # Some tools Automake needs.
4516
4517 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4518
4519
4520 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4521
4522
4523 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4524
4525
4526 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4527
4528
4529 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4530
4531 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4532
4533 # Installed binaries are usually stripped using `strip' when the user
4534 # run `make install-strip'. However `strip' might not be the right
4535 # tool to use in cross-compilation environments, therefore Automake
4536 # will honor the `STRIP' environment variable to overrule this program.
4537 if test "$cross_compiling" != no; then
4538 if test -n "$ac_tool_prefix"; then
4539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4540 set dummy ${ac_tool_prefix}strip; ac_word=$2
4541 echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543 if test "${ac_cv_prog_STRIP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 if test -n "$STRIP"; then
4547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560 done
4561 done
4562
4563 fi
4564 fi
4565 STRIP=$ac_cv_prog_STRIP
4566 if test -n "$STRIP"; then
4567 echo "$as_me:$LINENO: result: $STRIP" >&5
4568 echo "${ECHO_T}$STRIP" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572 fi
4573
4574 fi
4575 if test -z "$ac_cv_prog_STRIP"; then
4576 ac_ct_STRIP=$STRIP
4577 # Extract the first word of "strip", so it can be a program name with args.
4578 set dummy strip; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$ac_ct_STRIP"; then
4585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594 ac_cv_prog_ac_ct_STRIP="strip"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600
4601 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4602 fi
4603 fi
4604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4605 if test -n "$ac_ct_STRIP"; then
4606 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4607 echo "${ECHO_T}$ac_ct_STRIP" >&6
4608 else
4609 echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4611 fi
4612
4613 STRIP=$ac_ct_STRIP
4614 else
4615 STRIP="$ac_cv_prog_STRIP"
4616 fi
4617
4618 fi
4619 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4620
4621 # We need awk for the "check" target. The system "awk" is bad on
4622 # some platforms.
4623 # Always define AMTAR for backward compatibility.
4624
4625 AMTAR=${AMTAR-"${am_missing_run}tar"}
4626
4627 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4628
4629
4630
4631
4632 depcc="$CC" am_compiler_list=
4633
4634 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4635 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4636 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4640 # We make a subdir and do the tests there. Otherwise we can end up
4641 # making bogus files that we don't know about and never remove. For
4642 # instance it was reported that on HP-UX the gcc test will end up
4643 # making a dummy file named `D' -- because `-MD' means `put the output
4644 # in D'.
4645 mkdir conftest.dir
4646 # Copy depcomp to subdir because otherwise we won't find it if we're
4647 # using a relative directory.
4648 cp "$am_depcomp" conftest.dir
4649 cd conftest.dir
4650 # We will build objects and dependencies in a subdirectory because
4651 # it helps to detect inapplicable dependency modes. For instance
4652 # both Tru64's cc and ICC support -MD to output dependencies as a
4653 # side effect of compilation, but ICC will put the dependencies in
4654 # the current directory while Tru64 will put them in the object
4655 # directory.
4656 mkdir sub
4657
4658 am_cv_CC_dependencies_compiler_type=none
4659 if test "$am_compiler_list" = ""; then
4660 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4661 fi
4662 for depmode in $am_compiler_list; do
4663 # Setup a source with many dependencies, because some compilers
4664 # like to wrap large dependency lists on column 80 (with \), and
4665 # we should not choose a depcomp mode which is confused by this.
4666 #
4667 # We need to recreate these files for each test, as the compiler may
4668 # overwrite some of them when testing with obscure command lines.
4669 # This happens at least with the AIX C compiler.
4670 : > sub/conftest.c
4671 for i in 1 2 3 4 5 6; do
4672 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4673 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4674 # Solaris 8's {/usr,}/bin/sh.
4675 touch sub/conftst$i.h
4676 done
4677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4678
4679 case $depmode in
4680 nosideeffect)
4681 # after this tag, mechanisms are not by side-effect, so they'll
4682 # only be used when explicitly requested
4683 if test "x$enable_dependency_tracking" = xyes; then
4684 continue
4685 else
4686 break
4687 fi
4688 ;;
4689 none) break ;;
4690 esac
4691 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4692 # mode. It turns out that the SunPro C++ compiler does not properly
4693 # handle `-M -o', and we need to detect this.
4694 if depmode=$depmode \
4695 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4696 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4697 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4698 >/dev/null 2>conftest.err &&
4699 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4700 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4701 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4702 # icc doesn't choke on unknown options, it will just issue warnings
4703 # or remarks (even with -Werror). So we grep stderr for any message
4704 # that says an option was ignored or not supported.
4705 # When given -MP, icc 7.0 and 7.1 complain thusly:
4706 # icc: Command line warning: ignoring option '-M'; no argument required
4707 # The diagnosis changed in icc 8.0:
4708 # icc: Command line remark: option '-MP' not supported
4709 if (grep 'ignoring option' conftest.err ||
4710 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4711 am_cv_CC_dependencies_compiler_type=$depmode
4712 break
4713 fi
4714 fi
4715 done
4716
4717 cd ..
4718 rm -rf conftest.dir
4719 else
4720 am_cv_CC_dependencies_compiler_type=none
4721 fi
4722
4723 fi
4724 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4725 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4726 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4727
4728
4729
4730 if
4731 test "x$enable_dependency_tracking" != xno \
4732 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4733 am__fastdepCC_TRUE=
4734 am__fastdepCC_FALSE='#'
4735 else
4736 am__fastdepCC_TRUE='#'
4737 am__fastdepCC_FALSE=
4738 fi
4739
4740
4741 depcc="$CXX" am_compiler_list=
4742
4743 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4744 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4745 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4749 # We make a subdir and do the tests there. Otherwise we can end up
4750 # making bogus files that we don't know about and never remove. For
4751 # instance it was reported that on HP-UX the gcc test will end up
4752 # making a dummy file named `D' -- because `-MD' means `put the output
4753 # in D'.
4754 mkdir conftest.dir
4755 # Copy depcomp to subdir because otherwise we won't find it if we're
4756 # using a relative directory.
4757 cp "$am_depcomp" conftest.dir
4758 cd conftest.dir
4759 # We will build objects and dependencies in a subdirectory because
4760 # it helps to detect inapplicable dependency modes. For instance
4761 # both Tru64's cc and ICC support -MD to output dependencies as a
4762 # side effect of compilation, but ICC will put the dependencies in
4763 # the current directory while Tru64 will put them in the object
4764 # directory.
4765 mkdir sub
4766
4767 am_cv_CXX_dependencies_compiler_type=none
4768 if test "$am_compiler_list" = ""; then
4769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4770 fi
4771 for depmode in $am_compiler_list; do
4772 # Setup a source with many dependencies, because some compilers
4773 # like to wrap large dependency lists on column 80 (with \), and
4774 # we should not choose a depcomp mode which is confused by this.
4775 #
4776 # We need to recreate these files for each test, as the compiler may
4777 # overwrite some of them when testing with obscure command lines.
4778 # This happens at least with the AIX C compiler.
4779 : > sub/conftest.c
4780 for i in 1 2 3 4 5 6; do
4781 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4783 # Solaris 8's {/usr,}/bin/sh.
4784 touch sub/conftst$i.h
4785 done
4786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4787
4788 case $depmode in
4789 nosideeffect)
4790 # after this tag, mechanisms are not by side-effect, so they'll
4791 # only be used when explicitly requested
4792 if test "x$enable_dependency_tracking" = xyes; then
4793 continue
4794 else
4795 break
4796 fi
4797 ;;
4798 none) break ;;
4799 esac
4800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4801 # mode. It turns out that the SunPro C++ compiler does not properly
4802 # handle `-M -o', and we need to detect this.
4803 if depmode=$depmode \
4804 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4806 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4807 >/dev/null 2>conftest.err &&
4808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4809 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4811 # icc doesn't choke on unknown options, it will just issue warnings
4812 # or remarks (even with -Werror). So we grep stderr for any message
4813 # that says an option was ignored or not supported.
4814 # When given -MP, icc 7.0 and 7.1 complain thusly:
4815 # icc: Command line warning: ignoring option '-M'; no argument required
4816 # The diagnosis changed in icc 8.0:
4817 # icc: Command line remark: option '-MP' not supported
4818 if (grep 'ignoring option' conftest.err ||
4819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4820 am_cv_CXX_dependencies_compiler_type=$depmode
4821 break
4822 fi
4823 fi
4824 done
4825
4826 cd ..
4827 rm -rf conftest.dir
4828 else
4829 am_cv_CXX_dependencies_compiler_type=none
4830 fi
4831
4832 fi
4833 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4834 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4835 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4836
4837
4838
4839 if
4840 test "x$enable_dependency_tracking" != xno \
4841 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4842 am__fastdepCXX_TRUE=
4843 am__fastdepCXX_FALSE='#'
4844 else
4845 am__fastdepCXX_TRUE='#'
4846 am__fastdepCXX_FALSE=
4847 fi
4848
4849
4850
4851 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4852 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4853 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4854 if test "${enable_maintainer_mode+set}" = set; then
4855 enableval="$enable_maintainer_mode"
4856 USE_MAINTAINER_MODE=$enableval
4857 else
4858 USE_MAINTAINER_MODE=no
4859 fi;
4860 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4861 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4862
4863
4864 if test $USE_MAINTAINER_MODE = yes; then
4865 MAINTAINER_MODE_TRUE=
4866 MAINTAINER_MODE_FALSE='#'
4867 else
4868 MAINTAINER_MODE_TRUE='#'
4869 MAINTAINER_MODE_FALSE=
4870 fi
4871
4872 MAINT=$MAINTAINER_MODE_TRUE
4873
4874
4875
4876 coin_have_externals=no
4877 if test "$enable_maintainer_mode" = yes; then
4878
4879 # If maintainer mode is chosen, we make sure that the correct versions
4880 # of the tools are used, and that we know where libtool.m4 is (to
4881 # recreate acinclude.m4)
4882
4883
4884 LIBTOOLM4=
4885 # Normally, $HOME
4886 AUTOTOOLS_DFLT=$HOME
4887
4888 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4889 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4890 if test "${ac_cv_use_correct_autotools+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 ac_cv_use_correct_autotools=check
4894 fi
4895 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4896 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4897
4898 if test $ac_cv_use_correct_autotools = check; then
4899 ac_cv_use_correct_autotools=yes
4900 # Check if we have autoconf
4901 # Extract the first word of "autoconf", so it can be a program name with args.
4902 set dummy autoconf; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_have_autoconf+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$have_autoconf"; then
4909 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_have_autoconf="yes"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924
4925 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4926 fi
4927 fi
4928 have_autoconf=$ac_cv_prog_have_autoconf
4929 if test -n "$have_autoconf"; then
4930 echo "$as_me:$LINENO: result: $have_autoconf" >&5
4931 echo "${ECHO_T}$have_autoconf" >&6
4932 else
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937 if test $have_autoconf = no; then
4938 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4939 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4940 { (exit 1); exit 1; }; }
4941 fi
4942
4943 # Check whether autoconf is the correct version
4944 correct_version='2.59'
4945 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
4946 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4947 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4948 autoconf --version > confauto.out 2>&1
4949 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4950 echo "$as_me:$LINENO: result: yes" >&5
4951 echo "${ECHO_T}yes" >&6
4952 else
4953 rm -f confauto.out
4954 echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4956 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4957 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4958 { (exit 1); exit 1; }; }
4959 fi
4960 rm -f confauto.out
4961
4962 # Check if the executable autoconf is picked up from the correct location
4963 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4964 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4965 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4966 autoconf_dir=`cd $autoconf_dir; pwd`
4967 if test x$AUTOTOOLS_DIR = x; then
4968 want_dir=$AUTOTOOLS_DFLT/bin
4969 else
4970 want_dir=$AUTOTOOLS_DIR/bin
4971 fi
4972 if test $autoconf_dir = `cd $want_dir; pwd`; then
4973 echo "$as_me:$LINENO: result: yes" >&5
4974 echo "${ECHO_T}yes" >&6
4975 else
4976 rm -f confauto.out
4977 echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4979 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4980 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4981 { (exit 1); exit 1; }; }
4982 fi
4983
4984 # Check if we have automake
4985 # Extract the first word of "automake", so it can be a program name with args.
4986 set dummy automake; ac_word=$2
4987 echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_prog_have_automake+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 if test -n "$have_automake"; then
4993 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_have_automake="yes"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006 done
5007 done
5008
5009 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5010 fi
5011 fi
5012 have_automake=$ac_cv_prog_have_automake
5013 if test -n "$have_automake"; then
5014 echo "$as_me:$LINENO: result: $have_automake" >&5
5015 echo "${ECHO_T}$have_automake" >&6
5016 else
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5019 fi
5020
5021 if test $have_automake = no; then
5022 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5023 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5024 { (exit 1); exit 1; }; }
5025 fi
5026
5027 # Check whether automake is the correct version
5028 correct_version='1.9.6'
5029 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5030 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5031 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5032 automake --version > confauto.out 2>&1
5033 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5034 echo "$as_me:$LINENO: result: yes" >&5
5035 echo "${ECHO_T}yes" >&6
5036 else
5037 rm -f confauto.out
5038 echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6
5040 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5041 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5042 { (exit 1); exit 1; }; }
5043 fi
5044 rm -f confauto.out
5045
5046 # Check if the executable automake is picked up from the correct location
5047 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5048 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5049 automake_dir=`which automake | sed -e 's=/automake=='`
5050 automake_dir=`cd $automake_dir; pwd`
5051 if test x$AUTOTOOLS_DIR = x; then
5052 want_dir=$AUTOTOOLS_DFLT/bin
5053 else
5054 want_dir=$AUTOTOOLS_DIR/bin
5055 fi
5056 if test $automake_dir = `cd $want_dir; pwd`; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058 echo "${ECHO_T}yes" >&6
5059 else
5060 rm -f confauto.out
5061 echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6
5063 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5064 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5065 { (exit 1); exit 1; }; }
5066 fi
5067
5068 # Check if this is the correct version of libtool (with escaped dots)
5069 if test x$AUTOTOOLS_DIR = x; then
5070 want_dir=$AUTOTOOLS_DFLT/share
5071 else
5072 want_dir=$AUTOTOOLS_DIR/share
5073 fi
5074 correct_version='1.5.22'
5075 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5076 if test -r $want_dir/libtool/ltmain.sh; then
5077 have_ltmain=yes
5078 :
5079 else
5080 have_ltmain=no
5081 :
5082 fi
5083
5084 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5085 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5086 if test $have_ltmain = yes; then
5087 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5088 echo "$as_me:$LINENO: result: yes" >&5
5089 echo "${ECHO_T}yes" >&6
5090 else
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5093 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5094 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5095 { (exit 1); exit 1; }; }
5096 fi
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6
5100 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5101 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5102 { (exit 1); exit 1; }; }
5103 fi
5104 fi
5105
5106 # Check if we can find the libtool file
5107 if test x$AUTOTOOLS_DIR = x; then
5108 want_dir=$AUTOTOOLS_DFLT/share
5109 else
5110 want_dir=$AUTOTOOLS_DIR/share
5111 fi
5112 if test -r $want_dir/aclocal/libtool.m4; then
5113 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5114 :
5115 else
5116 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5117 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5118 { (exit 1); exit 1; }; }
5119 :
5120 fi
5121
5122
5123 # Check if we have an Dependencies file
5124 if test -r $srcdir/Dependencies; then
5125 coin_have_externals=yes
5126 fi
5127 # Check if subversion is installed and understands https
5128 # Extract the first word of "svn", so it can be a program name with args.
5129 set dummy svn; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_prog_have_svn+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 if test -n "$have_svn"; then
5136 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_have_svn="yes"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151
5152 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5153 fi
5154 fi
5155 have_svn=$ac_cv_prog_have_svn
5156 if test -n "$have_svn"; then
5157 echo "$as_me:$LINENO: result: $have_svn" >&5
5158 echo "${ECHO_T}$have_svn" >&6
5159 else
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5162 fi
5163
5164 if test x$have_svn = xyes; then
5165 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5166 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5167 if test "${ac_cv_svn_understands_https+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 svn --version > confauto.out 2>&1
5171 if $EGREP https confauto.out >/dev/null 2>&1; then
5172 ac_cv_svn_understands_https=yes
5173 else
5174 ac_cv_svn_understands_https=no
5175 have_svn=no
5176 ac_cv_prog_have_svn=no
5177 fi
5178 rm -f confauto.out
5179 fi
5180 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5181 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5182 fi
5183
5184 # Find the location of the BuildTools directory
5185 BUILDTOOLSDIR=
5186 if test -r $srcdir/BuildTools/coin.m4; then
5187 BUILDTOOLSDIR=$srcdir/BuildTools
5188 elif test -r $srcdir/../BuildTools/coin.m4; then
5189 BUILDTOOLSDIR=$srcdir/../BuildTools
5190 elif test -r $srcdir/../../BuildTools/coin.m4; then
5191 BUILDTOOLSDIR=$srcdir/../../BuildTools
5192 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5193 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5194 else
5195 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5196 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5197 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5198 fi
5199
5200
5201 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5202 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5203 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5204 fi
5205
5206 # The following variable is set to the name of the directory where
5207 # the autotool scripts are located
5208
5209 AUX_DIR=$ac_aux_dir
5210 fi
5211
5212 # helpful variable for the base directory of this package
5213 abs_source_dir=`cd $srcdir; pwd`
5214
5215
5216 # Stuff for example Makefiles
5217 if test x$prefix = xNONE; then
5218 full_prefix=$ac_default_prefix
5219 else
5220 full_prefix=$prefix
5221 fi
5222 full_prefix=`cd $full_prefix ; pwd`
5223
5224 abs_lib_dir=$full_prefix/lib
5225
5226 abs_include_dir=$full_prefix/include
5227
5228 abs_bin_dir=$full_prefix/bin
5229
5230
5231
5232 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5233 HAVE_EXTERNALS_TRUE=
5234 HAVE_EXTERNALS_FALSE='#'
5235 else
5236 HAVE_EXTERNALS_TRUE='#'
5237 HAVE_EXTERNALS_FALSE=
5238 fi
5239
5240
5241 # AC_MSG_NOTICE([End automake initialisation.])
5242
5243
5244
5245 LIBTOOL=
5246 if test -f ../libtool; then
5247 coin_config_dir=..
5248 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5249 fi
5250 if test "x$LIBTOOL" = x; then
5251 if test -f ../../libtool; then
5252 coin_config_dir=../..
5253 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5254 fi
5255 fi
5256
5257 if test "x$LIBTOOL" = x; then
5258 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5259 # Stuff for libtool
5260 # Check whether --enable-shared or --disable-shared was given.
5261 if test "${enable_shared+set}" = set; then
5262 enableval="$enable_shared"
5263 p=${PACKAGE-default}
5264 case $enableval in
5265 yes) enable_shared=yes ;;
5266 no) enable_shared=no ;;
5267 *)
5268 enable_shared=no
5269 # Look at the argument we got. We use all the common list separators.
5270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5271 for pkg in $enableval; do
5272 IFS="$lt_save_ifs"
5273 if test "X$pkg" = "X$p"; then
5274 enable_shared=yes
5275 fi
5276 done
5277 IFS="$lt_save_ifs"
5278 ;;
5279 esac
5280 else
5281 enable_shared=yes
5282 fi;
5283
5284 # Check whether --enable-fast-install or --disable-fast-install was given.
5285 if test "${enable_fast_install+set}" = set; then
5286 enableval="$enable_fast_install"
5287 p=${PACKAGE-default}
5288 case $enableval in
5289 yes) enable_fast_install=yes ;;
5290 no) enable_fast_install=no ;;
5291 *)
5292 enable_fast_install=no
5293 # Look at the argument we got. We use all the common list separators.
5294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5295 for pkg in $enableval; do
5296 IFS="$lt_save_ifs"
5297 if test "X$pkg" = "X$p"; then
5298 enable_fast_install=yes
5299 fi
5300 done
5301 IFS="$lt_save_ifs"
5302 ;;
5303 esac
5304 else
5305 enable_fast_install=yes
5306 fi;
5307
5308 echo "$as_me:$LINENO: checking host system type" >&5
5309 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5310 if test "${ac_cv_host+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 ac_cv_host_alias=$host_alias
5314 test -z "$ac_cv_host_alias" &&
5315 ac_cv_host_alias=$ac_cv_build_alias
5316 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5317 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5318 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5319 { (exit 1); exit 1; }; }
5320
5321 fi
5322 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5323 echo "${ECHO_T}$ac_cv_host" >&6
5324 host=$ac_cv_host
5325 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5326 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5327 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5328
5329
5330 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5331 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5332 if test "${lt_cv_path_SED+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335 # Loop through the user's path and test for sed and gsed.
5336 # Then use that list of sed's as ones to test for truncation.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for lt_ac_prog in sed gsed; do
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5345 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5346 fi
5347 done
5348 done
5349 done
5350 lt_ac_max=0
5351 lt_ac_count=0
5352 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5353 # along with /bin/sed that truncates output.
5354 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5355 test ! -f $lt_ac_sed && continue
5356 cat /dev/null > conftest.in
5357 lt_ac_count=0
5358 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5359 # Check for GNU sed and select it if it is found.
5360 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5361 lt_cv_path_SED=$lt_ac_sed
5362 break
5363 fi
5364 while true; do
5365 cat conftest.in conftest.in >conftest.tmp
5366 mv conftest.tmp conftest.in
5367 cp conftest.in conftest.nl
5368 echo >>conftest.nl
5369 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5370 cmp -s conftest.out conftest.nl || break
5371 # 10000 chars as input seems more than enough
5372 test $lt_ac_count -gt 10 && break
5373 lt_ac_count=`expr $lt_ac_count + 1`
5374 if test $lt_ac_count -gt $lt_ac_max; then
5375 lt_ac_max=$lt_ac_count
5376 lt_cv_path_SED=$lt_ac_sed
5377 fi
5378 done
5379 done
5380
5381 fi
5382
5383 SED=$lt_cv_path_SED
5384 echo "$as_me:$LINENO: result: $SED" >&5
5385 echo "${ECHO_T}$SED" >&6
5386
5387
5388 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5389 if test "${with_gnu_ld+set}" = set; then
5390 withval="$with_gnu_ld"
5391 test "$withval" = no || with_gnu_ld=yes
5392 else
5393 with_gnu_ld=no
5394 fi;
5395 ac_prog=ld
5396 if test "$GCC" = yes; then
5397 # Check if gcc -print-prog-name=ld gives a path.
5398 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5399 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5400 case $host in
5401 *-*-mingw*)
5402 # gcc leaves a trailing carriage return which upsets mingw
5403 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5404 *)
5405 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5406 esac
5407 case $ac_prog in
5408 # Accept absolute paths.
5409 [\\/]* | ?:[\\/]*)
5410 re_direlt='/[^/][^/]*/\.\./'
5411 # Canonicalize the pathname of ld
5412 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5413 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5414 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5415 done
5416 test -z "$LD" && LD="$ac_prog"
5417 ;;
5418 "")
5419 # If it fails, then pretend we aren't using GCC.
5420 ac_prog=ld
5421 ;;
5422 *)
5423 # If it is relative, then search for the first ld in PATH.
5424 with_gnu_ld=unknown
5425 ;;
5426 esac
5427 elif test "$with_gnu_ld" = yes; then
5428 echo "$as_me:$LINENO: checking for GNU ld" >&5
5429 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5430 else
5431 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5432 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5433 fi
5434 if test "${lt_cv_path_LD+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 if test -z "$LD"; then
5438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5439 for ac_dir in $PATH; do
5440 IFS="$lt_save_ifs"
5441 test -z "$ac_dir" && ac_dir=.
5442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5443 lt_cv_path_LD="$ac_dir/$ac_prog"
5444 # Check to see if the program is GNU ld. I'd rather use --version,
5445 # but apparently some variants of GNU ld only accept -v.
5446 # Break only if it was the GNU/non-GNU ld that we prefer.
5447 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5448 *GNU* | *'with BFD'*)
5449 test "$with_gnu_ld" != no && break
5450 ;;
5451 *)
5452 test "$with_gnu_ld" != yes && break
5453 ;;
5454 esac
5455 fi
5456 done
5457 IFS="$lt_save_ifs"
5458 else
5459 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5460 fi
5461 fi
5462
5463 LD="$lt_cv_path_LD"
5464 if test -n "$LD"; then
5465 echo "$as_me:$LINENO: result: $LD" >&5
5466 echo "${ECHO_T}$LD" >&6
5467 else
5468 echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6
5470 fi
5471 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5472 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5473 { (exit 1); exit 1; }; }
5474 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5475 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5476 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5480 case `$LD -v 2>&1 </dev/null` in
5481 *GNU* | *'with BFD'*)
5482 lt_cv_prog_gnu_ld=yes
5483 ;;
5484 *)
5485 lt_cv_prog_gnu_ld=no
5486 ;;
5487 esac
5488 fi
5489 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5490 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5491 with_gnu_ld=$lt_cv_prog_gnu_ld
5492
5493
5494 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5495 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5496 if test "${lt_cv_ld_reload_flag+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 lt_cv_ld_reload_flag='-r'
5500 fi
5501 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5502 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5503 reload_flag=$lt_cv_ld_reload_flag
5504 case $reload_flag in
5505 "" | " "*) ;;
5506 *) reload_flag=" $reload_flag" ;;
5507 esac
5508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5509 case $host_os in
5510 darwin*)
5511 if test "$GCC" = yes; then
5512 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5513 else
5514 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5515 fi
5516 ;;
5517 esac
5518
5519 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5520 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5521 if test "${lt_cv_path_NM+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 if test -n "$NM"; then
5525 # Let the user override the test.
5526 lt_cv_path_NM="$NM"
5527 else
5528 lt_nm_to_check="${ac_tool_prefix}nm"
5529 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5530 lt_nm_to_check="$lt_nm_to_check nm"
5531 fi
5532 for lt_tmp_nm in $lt_nm_to_check; do
5533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5534 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5535 IFS="$lt_save_ifs"
5536 test -z "$ac_dir" && ac_dir=.
5537 tmp_nm="$ac_dir/$lt_tmp_nm"
5538 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5539 # Check to see if the nm accepts a BSD-compat flag.
5540 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5541 # nm: unknown option "B" ignored
5542 # Tru64's nm complains that /dev/null is an invalid object file
5543 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5544 */dev/null* | *'Invalid file or object type'*)
5545 lt_cv_path_NM="$tmp_nm -B"
5546 break
5547 ;;
5548 *)
5549 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5550 */dev/null*)
5551 lt_cv_path_NM="$tmp_nm -p"
5552 break
5553 ;;
5554 *)
5555 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5556 continue # so that we can try to find one that supports BSD flags
5557 ;;
5558 esac
5559 ;;
5560 esac
5561 fi
5562 done
5563 IFS="$lt_save_ifs"
5564 done
5565 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5566 fi
5567 fi
5568 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5569 echo "${ECHO_T}$lt_cv_path_NM" >&6
5570 NM="$lt_cv_path_NM"
5571
5572 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5573 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5574 if test "${lt_cv_deplibs_check_method+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 lt_cv_file_magic_cmd='$MAGIC_CMD'
5578 lt_cv_file_magic_test_file=
5579 lt_cv_deplibs_check_method='unknown'
5580 # Need to set the preceding variable on all platforms that support
5581 # interlibrary dependencies.
5582 # 'none' -- dependencies not supported.
5583 # `unknown' -- same as none, but documents that we really don't know.
5584 # 'pass_all' -- all dependencies passed with no checks.
5585 # 'test_compile' -- check by making test program.
5586 # 'file_magic [[regex]]' -- check by looking for files in library path
5587 # which responds to the $file_magic_cmd with a given extended regex.
5588 # If you have `file' or equivalent on your system and you're not sure
5589 # whether `pass_all' will *always* work, you probably want this one.
5590
5591 case $host_os in
5592 aix4* | aix5*)
5593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595
5596 beos*)
5597 lt_cv_deplibs_check_method=pass_all
5598 ;;
5599
5600 bsdi[45]*)
5601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5602 lt_cv_file_magic_cmd='/usr/bin/file -L'
5603 lt_cv_file_magic_test_file=/shlib/libc.so
5604 ;;
5605
5606 cygwin*)
5607 # func_win32_libid is a shell function defined in ltmain.sh
5608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5609 lt_cv_file_magic_cmd='func_win32_libid'
5610 ;;
5611
5612 mingw* | pw32*)
5613 # Base MSYS/MinGW do not provide the 'file' command needed by
5614 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5615 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5616 lt_cv_file_magic_cmd='$OBJDUMP -f'
5617 ;;
5618
5619 darwin* | rhapsody*)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622
5623 freebsd* | kfreebsd*-gnu | dragonfly*)
5624 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5625 case $host_cpu in
5626 i*86 )
5627 # Not sure whether the presence of OpenBSD here was a mistake.
5628 # Let's accept both of them until this is cleared up.
5629 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5630 lt_cv_file_magic_cmd=/usr/bin/file
5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5632 ;;
5633 esac
5634 else
5635 lt_cv_deplibs_check_method=pass_all
5636 fi
5637 ;;
5638
5639 gnu*)
5640 lt_cv_deplibs_check_method=pass_all
5641 ;;
5642
5643 hpux10.20* | hpux11*)
5644 lt_cv_file_magic_cmd=/usr/bin/file
5645 case $host_cpu in
5646 ia64*)
5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5648 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5649 ;;
5650 hppa*64*)
5651 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]'
5652 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5653 ;;
5654 *)
5655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5656 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5657 ;;
5658 esac
5659 ;;
5660
5661 interix3*)
5662 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5664 ;;
5665
5666 irix5* | irix6* | nonstopux*)
5667 case $LD in
5668 *-32|*"-32 ") libmagic=32-bit;;
5669 *-n32|*"-n32 ") libmagic=N32;;
5670 *-64|*"-64 ") libmagic=64-bit;;
5671 *) libmagic=never-match;;
5672 esac
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675
5676 # This must be Linux ELF.
5677 linux*)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5680
5681 netbsd*)
5682 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5684 else
5685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5686 fi
5687 ;;
5688
5689 newos6*)
5690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5691 lt_cv_file_magic_cmd=/usr/bin/file
5692 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5693 ;;
5694
5695 nto-qnx*)
5696 lt_cv_deplibs_check_method=unknown
5697 ;;
5698
5699 openbsd*)
5700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5702 else
5703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5704 fi
5705 ;;
5706
5707 osf3* | osf4* | osf5*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711 solaris*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 sysv4 | sysv4.3*)
5716 case $host_vendor in
5717 motorola)
5718 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]'
5719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5720 ;;
5721 ncr)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724 sequent)
5725 lt_cv_file_magic_cmd='/bin/file'
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5727 ;;
5728 sni)
5729 lt_cv_file_magic_cmd='/bin/file'
5730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5731 lt_cv_file_magic_test_file=/lib/libc.so
5732 ;;
5733 siemens)
5734 lt_cv_deplibs_check_method=pass_all
5735 ;;
5736 pc)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739 esac
5740 ;;
5741
5742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745 esac
5746
5747 fi
5748 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5749 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5750 file_magic_cmd=$lt_cv_file_magic_cmd
5751 deplibs_check_method=$lt_cv_deplibs_check_method
5752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5753
5754
5755
5756
5757 # If no C compiler was specified, use CC.
5758 LTCC=${LTCC-"$CC"}
5759
5760 # If no C compiler flags were specified, use CFLAGS.
5761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5762
5763 # Allow CC to be a program name with arguments.
5764 compiler=$CC
5765
5766 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5767 if test "${enable_libtool_lock+set}" = set; then
5768 enableval="$enable_libtool_lock"
5769
5770 fi;
5771 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5772
5773 # Some flags need to be propagated to the compiler or linker for good
5774 # libtool support.
5775 case $host in
5776 ia64-*-hpux*)
5777 # Find out which ABI we are using.
5778 echo 'int i;' > conftest.$ac_ext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; then
5784 case `/usr/bin/file conftest.$ac_objext` in
5785 *ELF-32*)
5786 HPUX_IA64_MODE="32"
5787 ;;
5788 *ELF-64*)
5789 HPUX_IA64_MODE="64"
5790 ;;
5791 esac
5792 fi
5793 rm -rf conftest*
5794 ;;
5795 *-*-irix6*)
5796 # Find out which ABI we are using.
5797 echo '#line 5797 "configure"' > conftest.$ac_ext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; then
5803 if test "$lt_cv_prog_gnu_ld" = yes; then
5804 case `/usr/bin/file conftest.$ac_objext` in
5805 *32-bit*)
5806 LD="${LD-ld} -melf32bsmip"
5807 ;;
5808 *N32*)
5809 LD="${LD-ld} -melf32bmipn32"
5810 ;;
5811 *64-bit*)
5812 LD="${LD-ld} -melf64bmip"
5813 ;;
5814 esac
5815 else
5816 case `/usr/bin/file conftest.$ac_objext` in
5817 *32-bit*)
5818 LD="${LD-ld} -32"
5819 ;;
5820 *N32*)
5821 LD="${LD-ld} -n32"
5822 ;;
5823 *64-bit*)
5824 LD="${LD-ld} -64"
5825 ;;
5826 esac
5827 fi
5828 fi
5829 rm -rf conftest*
5830 ;;
5831
5832 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5833 # Find out which ABI we are using.
5834 echo 'int i;' > conftest.$ac_ext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; then
5840 case `/usr/bin/file conftest.o` in
5841 *32-bit*)
5842 case $host in
5843 x86_64-*linux*)
5844 LD="${LD-ld} -m elf_i386"
5845 ;;
5846 ppc64-*linux*|powerpc64-*linux*)
5847 LD="${LD-ld} -m elf32ppclinux"
5848 ;;
5849 s390x-*linux*)
5850 LD="${LD-ld} -m elf_s390"
5851 ;;
5852 sparc64-*linux*)
5853 LD="${LD-ld} -m elf32_sparc"
5854 ;;
5855 esac
5856 ;;
5857 *64-bit*)
5858 case $host in
5859 x86_64-*linux*)
5860 LD="${LD-ld} -m elf_x86_64"
5861 ;;
5862 ppc*-*linux*|powerpc*-*linux*)
5863 LD="${LD-ld} -m elf64ppc"
5864 ;;
5865 s390*-*linux*)
5866 LD="${LD-ld} -m elf64_s390"
5867 ;;
5868 sparc*-*linux*)
5869 LD="${LD-ld} -m elf64_sparc"
5870 ;;
5871 esac
5872 ;;
5873 esac
5874 fi
5875 rm -rf conftest*
5876 ;;
5877
5878 *-*-sco3.2v5*)
5879 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5880 SAVE_CFLAGS="$CFLAGS"
5881 CFLAGS="$CFLAGS -belf"
5882 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5883 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5884 if test "${lt_cv_cc_needs_belf+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 ac_ext=c
5888 ac_cpp='$CPP $CPPFLAGS'
5889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899
5900 int
5901 main ()
5902 {
5903
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 lt_cv_cc_needs_belf=yes
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 lt_cv_cc_needs_belf=no
5936 fi
5937 rm -f conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 ac_ext=c
5940 ac_cpp='$CPP $CPPFLAGS'
5941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5944
5945 fi
5946 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5947 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5948 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5949 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5950 CFLAGS="$SAVE_CFLAGS"
5951 fi
5952 ;;
5953 sparc*-*solaris*)
5954 # Find out which ABI we are using.
5955 echo 'int i;' > conftest.$ac_ext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957 (eval $ac_compile) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; then
5961 case `/usr/bin/file conftest.o` in
5962 *64-bit*)
5963 case $lt_cv_prog_gnu_ld in
5964 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5965 *) LD="${LD-ld} -64" ;;
5966 esac
5967 ;;
5968 esac
5969 fi
5970 rm -rf conftest*
5971 ;;
5972
5973
5974 esac
5975
5976 need_locks="$enable_libtool_lock"
5977
5978
5979 ac_ext=c
5980 ac_cpp='$CPP $CPPFLAGS'
5981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5985 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5986 # On Suns, sometimes $CPP names a directory.
5987 if test -n "$CPP" && test -d "$CPP"; then
5988 CPP=
5989 fi
5990 if test -z "$CPP"; then
5991 if test "${ac_cv_prog_CPP+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 # Double quotes because CPP needs to be expanded
5995 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5996 do
5997 ac_preproc_ok=false
5998 for ac_c_preproc_warn_flag in '' yes
5999 do
6000 # Use a header file that comes with gcc, so configuring glibc
6001 # with a fresh cross-compiler works.
6002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6003 # <limits.h> exists even on freestanding compilers.
6004 # On the NeXT, cc -E runs the code through the compiler's parser,
6005 # not just through cpp. "Syntax error" is here to catch this case.
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #ifdef __STDC__
6013 # include <limits.h>
6014 #else
6015 # include <assert.h>
6016 #endif
6017 Syntax error
6018 _ACEOF
6019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } >/dev/null; then
6027 if test -s conftest.err; then
6028 ac_cpp_err=$ac_c_preproc_warn_flag
6029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6030 else
6031 ac_cpp_err=
6032 fi
6033 else
6034 ac_cpp_err=yes
6035 fi
6036 if test -z "$ac_cpp_err"; then
6037 :
6038 else
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 # Broken: fails on valid input.
6043 continue
6044 fi
6045 rm -f conftest.err conftest.$ac_ext
6046
6047 # OK, works on sane cases. Now check whether non-existent headers
6048 # can be detected and how.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <ac_nonexistent.h>
6056 _ACEOF
6057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } >/dev/null; then
6065 if test -s conftest.err; then
6066 ac_cpp_err=$ac_c_preproc_warn_flag
6067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6068 else
6069 ac_cpp_err=
6070 fi
6071 else
6072 ac_cpp_err=yes
6073 fi
6074 if test -z "$ac_cpp_err"; then
6075 # Broken: success on invalid input.
6076 continue
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 # Passes both tests.
6082 ac_preproc_ok=:
6083 break
6084 fi
6085 rm -f conftest.err conftest.$ac_ext
6086
6087 done
6088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6089 rm -f conftest.err conftest.$ac_ext
6090 if $ac_preproc_ok; then
6091 break
6092 fi
6093
6094 done
6095 ac_cv_prog_CPP=$CPP
6096
6097 fi
6098 CPP=$ac_cv_prog_CPP
6099 else
6100 ac_cv_prog_CPP=$CPP
6101 fi
6102 echo "$as_me:$LINENO: result: $CPP" >&5
6103 echo "${ECHO_T}$CPP" >&6
6104 ac_preproc_ok=false
6105 for ac_c_preproc_warn_flag in '' yes
6106 do
6107 # Use a header file that comes with gcc, so configuring glibc
6108 # with a fresh cross-compiler works.
6109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6110 # <limits.h> exists even on freestanding compilers.
6111 # On the NeXT, cc -E runs the code through the compiler's parser,
6112 # not just through cpp. "Syntax error" is here to catch this case.
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #ifdef __STDC__
6120 # include <limits.h>
6121 #else
6122 # include <assert.h>
6123 #endif
6124 Syntax error
6125 _ACEOF
6126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } >/dev/null; then
6134 if test -s conftest.err; then
6135 ac_cpp_err=$ac_c_preproc_warn_flag
6136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137 else
6138 ac_cpp_err=
6139 fi
6140 else
6141 ac_cpp_err=yes
6142 fi
6143 if test -z "$ac_cpp_err"; then
6144 :
6145 else
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 # Broken: fails on valid input.
6150 continue
6151 fi
6152 rm -f conftest.err conftest.$ac_ext
6153
6154 # OK, works on sane cases. Now check whether non-existent headers
6155 # can be detected and how.
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <ac_nonexistent.h>
6163 _ACEOF
6164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } >/dev/null; then
6172 if test -s conftest.err; then
6173 ac_cpp_err=$ac_c_preproc_warn_flag
6174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6175 else
6176 ac_cpp_err=
6177 fi
6178 else
6179 ac_cpp_err=yes
6180 fi
6181 if test -z "$ac_cpp_err"; then
6182 # Broken: success on invalid input.
6183 continue
6184 else
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 # Passes both tests.
6189 ac_preproc_ok=:
6190 break
6191 fi
6192 rm -f conftest.err conftest.$ac_ext
6193
6194 done
6195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6196 rm -f conftest.err conftest.$ac_ext
6197 if $ac_preproc_ok; then
6198 :
6199 else
6200 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6201 See \`config.log' for more details." >&5
6202 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6203 See \`config.log' for more details." >&2;}
6204 { (exit 1); exit 1; }; }
6205 fi
6206
6207 ac_ext=c
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213
6214 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6215 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6216 if test "${ac_cv_header_stdc+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <stdlib.h>
6226 #include <stdarg.h>
6227 #include <string.h>
6228 #include <float.h>
6229
6230 int
6231 main ()
6232 {
6233
6234 ;
6235 return 0;
6236 }
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240 (eval $ac_compile) 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -z "$ac_c_werror_flag"
6248 || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_cv_header_stdc=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268
6269 if test $ac_cv_header_stdc = yes; then
6270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <string.h>
6278
6279 _ACEOF
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "memchr" >/dev/null 2>&1; then
6282 :
6283 else
6284 ac_cv_header_stdc=no
6285 fi
6286 rm -f conftest*
6287
6288 fi
6289
6290 if test $ac_cv_header_stdc = yes; then
6291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <stdlib.h>
6299
6300 _ACEOF
6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302 $EGREP "free" >/dev/null 2>&1; then
6303 :
6304 else
6305 ac_cv_header_stdc=no
6306 fi
6307 rm -f conftest*
6308
6309 fi
6310
6311 if test $ac_cv_header_stdc = yes; then
6312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6313 if test "$cross_compiling" = yes; then
6314 :
6315 else
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <ctype.h>
6323 #if ((' ' & 0x0FF) == 0x020)
6324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6326 #else
6327 # define ISLOWER(c) \
6328 (('a' <= (c) && (c) <= 'i') \
6329 || ('j' <= (c) && (c) <= 'r') \
6330 || ('s' <= (c) && (c) <= 'z'))
6331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6332 #endif
6333
6334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6335 int
6336 main ()
6337 {
6338 int i;
6339 for (i = 0; i < 256; i++)
6340 if (XOR (islower (i), ISLOWER (i))
6341 || toupper (i) != TOUPPER (i))
6342 exit(2);
6343 exit (0);
6344 }
6345 _ACEOF
6346 rm -f conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 :
6358 else
6359 echo "$as_me: program exited with status $ac_status" >&5
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ( exit $ac_status )
6364 ac_cv_header_stdc=no
6365 fi
6366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 fi
6369 fi
6370 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6371 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6372 if test $ac_cv_header_stdc = yes; then
6373
6374 cat >>confdefs.h <<\_ACEOF
6375 #define STDC_HEADERS 1
6376 _ACEOF
6377
6378 fi
6379
6380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6391 inttypes.h stdint.h unistd.h
6392 do
6393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 echo "$as_me:$LINENO: checking for $ac_header" >&5
6395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6406
6407 #include <$ac_header>
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 eval "$as_ac_Header=yes"
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 eval "$as_ac_Header=no"
6437 fi
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6446
6447 fi
6448
6449 done
6450
6451
6452
6453 for ac_header in dlfcn.h
6454 do
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457 echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 fi
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6464 else
6465 # Is the header compilable?
6466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 #include <$ac_header>
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_header_compiler=yes
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ac_header_compiler=no
6505 fi
6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6508 echo "${ECHO_T}$ac_header_compiler" >&6
6509
6510 # Is the header present?
6511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <$ac_header>
6520 _ACEOF
6521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } >/dev/null; then
6529 if test -s conftest.err; then
6530 ac_cpp_err=$ac_c_preproc_warn_flag
6531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6532 else
6533 ac_cpp_err=
6534 fi
6535 else
6536 ac_cpp_err=yes
6537 fi
6538 if test -z "$ac_cpp_err"; then
6539 ac_header_preproc=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_header_preproc=no
6545 fi
6546 rm -f conftest.err conftest.$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6548 echo "${ECHO_T}$ac_header_preproc" >&6
6549
6550 # So? What about this header?
6551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6552 yes:no: )
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6557 ac_header_preproc=yes
6558 ;;
6559 no:yes:* )
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6572 (
6573 cat <<\_ASBOX
6574 ## -------------------------------------- ##
6575 ## Report this to [email protected] ##
6576 ## -------------------------------------- ##
6577 _ASBOX
6578 ) |
6579 sed "s/^/$as_me: WARNING: /" >&2
6580 ;;
6581 esac
6582 echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 eval "$as_ac_Header=\$ac_header_preproc"
6588 fi
6589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6591
6592 fi
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6597
6598 fi
6599
6600 done
6601
6602
6603
6604 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6605 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6606 (test "X$CXX" != "Xg++"))) ; then
6607 ac_ext=cc
6608 ac_cpp='$CXXCPP $CPPFLAGS'
6609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6612 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6613 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6614 if test -z "$CXXCPP"; then
6615 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 # Double quotes because CXXCPP needs to be expanded
6619 for CXXCPP in "$CXX -E" "/lib/cpp"
6620 do
6621 ac_preproc_ok=false
6622 for ac_cxx_preproc_warn_flag in '' yes
6623 do
6624 # Use a header file that comes with gcc, so configuring glibc
6625 # with a fresh cross-compiler works.
6626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6627 # <limits.h> exists even on freestanding compilers.
6628 # On the NeXT, cc -E runs the code through the compiler's parser,
6629 # not just through cpp. "Syntax error" is here to catch this case.
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 #ifdef __STDC__
6637 # include <limits.h>
6638 #else
6639 # include <assert.h>
6640 #endif
6641 Syntax error
6642 _ACEOF
6643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } >/dev/null; then
6651 if test -s conftest.err; then
6652 ac_cpp_err=$ac_cxx_preproc_warn_flag
6653 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6654 else
6655 ac_cpp_err=
6656 fi
6657 else
6658 ac_cpp_err=yes
6659 fi
6660 if test -z "$ac_cpp_err"; then
6661 :
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 # Broken: fails on valid input.
6667 continue
6668 fi
6669 rm -f conftest.err conftest.$ac_ext
6670
6671 # OK, works on sane cases. Now check whether non-existent headers
6672 # can be detected and how.
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <ac_nonexistent.h>
6680 _ACEOF
6681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6683 ac_status=$?
6684 grep -v '^ *+' conftest.er1 >conftest.err
6685 rm -f conftest.er1
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } >/dev/null; then
6689 if test -s conftest.err; then
6690 ac_cpp_err=$ac_cxx_preproc_warn_flag
6691 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6692 else
6693 ac_cpp_err=
6694 fi
6695 else
6696 ac_cpp_err=yes
6697 fi
6698 if test -z "$ac_cpp_err"; then
6699 # Broken: success on invalid input.
6700 continue
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 # Passes both tests.
6706 ac_preproc_ok=:
6707 break
6708 fi
6709 rm -f conftest.err conftest.$ac_ext
6710
6711 done
6712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6713 rm -f conftest.err conftest.$ac_ext
6714 if $ac_preproc_ok; then
6715 break
6716 fi
6717
6718 done
6719 ac_cv_prog_CXXCPP=$CXXCPP
6720
6721 fi
6722 CXXCPP=$ac_cv_prog_CXXCPP
6723 else
6724 ac_cv_prog_CXXCPP=$CXXCPP
6725 fi
6726 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6727 echo "${ECHO_T}$CXXCPP" >&6
6728 ac_preproc_ok=false
6729 for ac_cxx_preproc_warn_flag in '' yes
6730 do
6731 # Use a header file that comes with gcc, so configuring glibc
6732 # with a fresh cross-compiler works.
6733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6734 # <limits.h> exists even on freestanding compilers.
6735 # On the NeXT, cc -E runs the code through the compiler's parser,
6736 # not just through cpp. "Syntax error" is here to catch this case.
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #ifdef __STDC__
6744 # include <limits.h>
6745 #else
6746 # include <assert.h>
6747 #endif
6748 Syntax error
6749 _ACEOF
6750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } >/dev/null; then
6758 if test -s conftest.err; then
6759 ac_cpp_err=$ac_cxx_preproc_warn_flag
6760 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6761 else
6762 ac_cpp_err=
6763 fi
6764 else
6765 ac_cpp_err=yes
6766 fi
6767 if test -z "$ac_cpp_err"; then
6768 :
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 # Broken: fails on valid input.
6774 continue
6775 fi
6776 rm -f conftest.err conftest.$ac_ext
6777
6778 # OK, works on sane cases. Now check whether non-existent headers
6779 # can be detected and how.
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <ac_nonexistent.h>
6787 _ACEOF
6788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } >/dev/null; then
6796 if test -s conftest.err; then
6797 ac_cpp_err=$ac_cxx_preproc_warn_flag
6798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6799 else
6800 ac_cpp_err=
6801 fi
6802 else
6803 ac_cpp_err=yes
6804 fi
6805 if test -z "$ac_cpp_err"; then
6806 # Broken: success on invalid input.
6807 continue
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 # Passes both tests.
6813 ac_preproc_ok=:
6814 break
6815 fi
6816 rm -f conftest.err conftest.$ac_ext
6817
6818 done
6819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6820 rm -f conftest.err conftest.$ac_ext
6821 if $ac_preproc_ok; then
6822 :
6823 else
6824 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6825 See \`config.log' for more details." >&5
6826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6827 See \`config.log' for more details." >&2;}
6828 { (exit 1); exit 1; }; }
6829 fi
6830
6831 ac_ext=cc
6832 ac_cpp='$CXXCPP $CPPFLAGS'
6833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6836
6837 fi
6838
6839 ac_ext=f
6840 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6841 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6843 if test -n "$ac_tool_prefix"; then
6844 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6845 do
6846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6848 echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6850 if test "${ac_cv_prog_F77+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 if test -n "$F77"; then
6854 ac_cv_prog_F77="$F77" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869
6870 fi
6871 fi
6872 F77=$ac_cv_prog_F77
6873 if test -n "$F77"; then
6874 echo "$as_me:$LINENO: result: $F77" >&5
6875 echo "${ECHO_T}$F77" >&6
6876 else
6877 echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6
6879 fi
6880
6881 test -n "$F77" && break
6882 done
6883 fi
6884 if test -z "$F77"; then
6885 ac_ct_F77=$F77
6886 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6887 do
6888 # Extract the first word of "$ac_prog", so it can be a program name with args.
6889 set dummy $ac_prog; ac_word=$2
6890 echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6892 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 if test -n "$ac_ct_F77"; then
6896 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_ac_ct_F77="$ac_prog"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909 done
6910 done
6911
6912 fi
6913 fi
6914 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6915 if test -n "$ac_ct_F77"; then
6916 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6917 echo "${ECHO_T}$ac_ct_F77" >&6
6918 else
6919 echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6
6921 fi
6922
6923 test -n "$ac_ct_F77" && break
6924 done
6925
6926 F77=$ac_ct_F77
6927 fi
6928
6929
6930 # Provide some information about the compiler.
6931 echo "$as_me:6931:" \
6932 "checking for Fortran 77 compiler version" >&5
6933 ac_compiler=`set X $ac_compile; echo $2`
6934 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6935 (eval $ac_compiler --version </dev/null >&5) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }
6939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6940 (eval $ac_compiler -v </dev/null >&5) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }
6944 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6945 (eval $ac_compiler -V </dev/null >&5) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }
6949 rm -f a.out
6950
6951 # If we don't use `.F' as extension, the preprocessor is not run on the
6952 # input file. (Note that this only needs to work for GNU compilers.)
6953 ac_save_ext=$ac_ext
6954 ac_ext=F
6955 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6956 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6957 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 program main
6962 #ifndef __GNUC__
6963 choke me
6964 #endif
6965
6966 end
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_f77_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest.$ac_objext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_compiler_gnu=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 ac_compiler_gnu=no
6996 fi
6997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6999
7000 fi
7001 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7002 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7003 ac_ext=$ac_save_ext
7004 ac_test_FFLAGS=${FFLAGS+set}
7005 ac_save_FFLAGS=$FFLAGS
7006 FFLAGS=
7007 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7008 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7009 if test "${ac_cv_prog_f77_g+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 FFLAGS=-g
7013 cat >conftest.$ac_ext <<_ACEOF
7014 program main
7015
7016 end
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020 (eval $ac_compile) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_f77_werror_flag"
7028 || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_cv_prog_f77_g=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 ac_cv_prog_f77_g=no
7046 fi
7047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7048
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7051 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7052 if test "$ac_test_FFLAGS" = set; then
7053 FFLAGS=$ac_save_FFLAGS
7054 elif test $ac_cv_prog_f77_g = yes; then
7055 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7056 FFLAGS="-g -O2"
7057 else
7058 FFLAGS="-g"
7059 fi
7060 else
7061 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7062 FFLAGS="-O2"
7063 else
7064 FFLAGS=
7065 fi
7066 fi
7067
7068 G77=`test $ac_compiler_gnu = yes && echo yes`
7069 ac_ext=c
7070 ac_cpp='$CPP $CPPFLAGS'
7071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074
7075
7076
7077 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7078
7079 # find the maximum length of command line arguments
7080 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7081 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7082 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 i=0
7086 teststring="ABCD"
7087
7088 case $build_os in
7089 msdosdjgpp*)
7090 # On DJGPP, this test can blow up pretty badly due to problems in libc
7091 # (any single argument exceeding 2000 bytes causes a buffer overrun
7092 # during glob expansion). Even if it were fixed, the result of this
7093 # check would be larger than it should be.
7094 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7095 ;;
7096
7097 gnu*)
7098 # Under GNU Hurd, this test is not required because there is
7099 # no limit to the length of command line arguments.
7100 # Libtool will interpret -1 as no limit whatsoever
7101 lt_cv_sys_max_cmd_len=-1;
7102 ;;
7103
7104 cygwin* | mingw*)
7105 # On Win9x/ME, this test blows up -- it succeeds, but takes
7106 # about 5 minutes as the teststring grows exponentially.
7107 # Worse, since 9x/ME are not pre-emptively multitasking,
7108 # you end up with a "frozen" computer, even though with patience
7109 # the test eventually succeeds (with a max line length of 256k).
7110 # Instead, let's just punt: use the minimum linelength reported by
7111 # all of the supported platforms: 8192 (on NT/2K/XP).
7112 lt_cv_sys_max_cmd_len=8192;
7113 ;;
7114
7115 amigaos*)
7116 # On AmigaOS with pdksh, this test takes hours, literally.
7117 # So we just punt and use a minimum line length of 8192.
7118 lt_cv_sys_max_cmd_len=8192;
7119 ;;
7120
7121 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7122 # This has been around since 386BSD, at least. Likely further.
7123 if test -x /sbin/sysctl; then
7124 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7125 elif test -x /usr/sbin/sysctl; then
7126 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7127 else
7128 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7129 fi
7130 # And add a safety zone
7131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7133 ;;
7134
7135 interix*)
7136 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7137 lt_cv_sys_max_cmd_len=196608
7138 ;;
7139
7140 osf*)
7141 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7142 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7143 # nice to cause kernel panics so lets avoid the loop below.
7144 # First set a reasonable default.
7145 lt_cv_sys_max_cmd_len=16384
7146 #
7147 if test -x /sbin/sysconfig; then
7148 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7149 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7150 esac
7151 fi
7152 ;;
7153 sco3.2v5*)
7154 lt_cv_sys_max_cmd_len=102400
7155 ;;
7156 sysv5* | sco5v6* | sysv4.2uw2*)
7157 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7158 if test -n "$kargmax"; then
7159 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7160 else
7161 lt_cv_sys_max_cmd_len=32768
7162 fi
7163 ;;
7164 *)
7165 # If test is not a shell built-in, we'll probably end up computing a
7166 # maximum length that is only half of the actual maximum length, but
7167 # we can't tell.
7168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7169 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7170 = "XX$teststring") >/dev/null 2>&1 &&
7171 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7172 lt_cv_sys_max_cmd_len=$new_result &&
7173 test $i != 17 # 1/2 MB should be enough
7174 do
7175 i=`expr $i + 1`
7176 teststring=$teststring$teststring
7177 done
7178 teststring=
7179 # Add a significant safety factor because C++ compilers can tack on massive
7180 # amounts of additional arguments before passing them to the linker.
7181 # It appears as though 1/2 is a usable value.
7182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7183 ;;
7184 esac
7185
7186 fi
7187
7188 if test -n $lt_cv_sys_max_cmd_len ; then
7189 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7190 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7191 else
7192 echo "$as_me:$LINENO: result: none" >&5
7193 echo "${ECHO_T}none" >&6
7194 fi
7195
7196
7197
7198
7199 # Check for command to grab the raw symbol name followed by C symbol from nm.
7200 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7201 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7202 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205
7206 # These are sane defaults that work on at least a few old systems.
7207 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7208
7209 # Character class describing NM global symbol codes.
7210 symcode='[BCDEGRST]'
7211
7212 # Regexp to match symbols that can be accessed directly from C.
7213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7214
7215 # Transform an extracted symbol line into a proper C declaration
7216 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7217
7218 # Transform an extracted symbol line into symbol name and symbol address
7219 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'"
7220
7221 # Define system-specific variables.
7222 case $host_os in
7223 aix*)
7224 symcode='[BCDT]'
7225 ;;
7226 cygwin* | mingw* | pw32*)
7227 symcode='[ABCDGISTW]'
7228 ;;
7229 hpux*) # Its linker distinguishes data from code symbols
7230 if test "$host_cpu" = ia64; then
7231 symcode='[ABCDEGRST]'
7232 fi
7233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7234 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'"
7235 ;;
7236 linux*)
7237 if test "$host_cpu" = ia64; then
7238 symcode='[ABCDGIRSTW]'
7239 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7240 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'"
7241 fi
7242 ;;
7243 irix* | nonstopux*)
7244 symcode='[BCDEGRST]'
7245 ;;
7246 osf*)
7247 symcode='[BCDEGQRST]'
7248 ;;
7249 solaris*)
7250 symcode='[BDRT]'
7251 ;;
7252 sco3.2v5*)
7253 symcode='[DT]'
7254 ;;
7255 sysv4.2uw2*)
7256 symcode='[DT]'
7257 ;;
7258 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7259 symcode='[ABDT]'
7260 ;;
7261 sysv4)
7262 symcode='[DFNSTU]'
7263 ;;
7264 esac
7265
7266 # Handle CRLF in mingw tool chain
7267 opt_cr=
7268 case $build_os in
7269 mingw*)
7270 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7271 ;;
7272 esac
7273
7274 # If we're using GNU nm, then use its standard symbol codes.
7275 case `$NM -V 2>&1` in
7276 *GNU* | *'with BFD'*)
7277 symcode='[ABCDGIRSTW]' ;;
7278 esac
7279
7280 # Try without a prefix undercore, then with it.
7281 for ac_symprfx in "" "_"; do
7282
7283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7284 symxfrm="\\1 $ac_symprfx\\2 \\2"
7285
7286 # Write the raw and C identifiers.
7287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7288
7289 # Check to see that the pipe works correctly.
7290 pipe_works=no
7291
7292 rm -f conftest*
7293 cat > conftest.$ac_ext <<EOF
7294 #ifdef __cplusplus
7295 extern "C" {
7296 #endif
7297 char nm_test_var;
7298 void nm_test_func(){}
7299 #ifdef __cplusplus
7300 }
7301 #endif
7302 int main(){nm_test_var='a';nm_test_func();return(0);}
7303 EOF
7304
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; then
7310 # Now try to grab the symbols.
7311 nlist=conftest.nm
7312 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7313 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && test -s "$nlist"; then
7317 # Try sorting and uniquifying the output.
7318 if sort "$nlist" | uniq > "$nlist"T; then
7319 mv -f "$nlist"T "$nlist"
7320 else
7321 rm -f "$nlist"T
7322 fi
7323
7324 # Make sure that we snagged all the symbols we need.
7325 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7326 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7327 cat <<EOF > conftest.$ac_ext
7328 #ifdef __cplusplus
7329 extern "C" {
7330 #endif
7331
7332 EOF
7333 # Now generate the symbol file.
7334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7335
7336 cat <<EOF >> conftest.$ac_ext
7337 #if defined (__STDC__) && __STDC__
7338 # define lt_ptr_t void *
7339 #else
7340 # define lt_ptr_t char *
7341 # define const
7342 #endif
7343
7344 /* The mapping between symbol names and symbols. */
7345 const struct {
7346 const char *name;
7347 lt_ptr_t address;
7348 }
7349 lt_preloaded_symbols[] =
7350 {
7351 EOF
7352 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7353 cat <<\EOF >> conftest.$ac_ext
7354 {0, (lt_ptr_t) 0}
7355 };
7356
7357 #ifdef __cplusplus
7358 }
7359 #endif
7360 EOF
7361 # Now try linking the two files.
7362 mv conftest.$ac_objext conftstm.$ac_objext
7363 lt_save_LIBS="$LIBS"
7364 lt_save_CFLAGS="$CFLAGS"
7365 LIBS="conftstm.$ac_objext"
7366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368 (eval $ac_link) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7372 pipe_works=yes
7373 fi
7374 LIBS="$lt_save_LIBS"
7375 CFLAGS="$lt_save_CFLAGS"
7376 else
7377 echo "cannot find nm_test_func in $nlist" >&5
7378 fi
7379 else
7380 echo "cannot find nm_test_var in $nlist" >&5
7381 fi
7382 else
7383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7384 fi
7385 else
7386 echo "$progname: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7388 fi
7389 rm -f conftest* conftst*
7390
7391 # Do not use the global_symbol_pipe unless it works.
7392 if test "$pipe_works" = yes; then
7393 break
7394 else
7395 lt_cv_sys_global_symbol_pipe=
7396 fi
7397 done
7398
7399 fi
7400
7401 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7402 lt_cv_sys_global_symbol_to_cdecl=
7403 fi
7404 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7405 echo "$as_me:$LINENO: result: failed" >&5
7406 echo "${ECHO_T}failed" >&6
7407 else
7408 echo "$as_me:$LINENO: result: ok" >&5
7409 echo "${ECHO_T}ok" >&6
7410 fi
7411
7412 echo "$as_me:$LINENO: checking for objdir" >&5
7413 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7414 if test "${lt_cv_objdir+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 rm -f .libs 2>/dev/null
7418 mkdir .libs 2>/dev/null
7419 if test -d .libs; then
7420 lt_cv_objdir=.libs
7421 else
7422 # MS-DOS does not allow filenames that begin with a dot.
7423 lt_cv_objdir=_libs
7424 fi
7425 rmdir .libs 2>/dev/null
7426 fi
7427 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7428 echo "${ECHO_T}$lt_cv_objdir" >&6
7429 objdir=$lt_cv_objdir
7430
7431
7432
7433
7434
7435 case $host_os in
7436 aix3*)
7437 # AIX sometimes has problems with the GCC collect2 program. For some
7438 # reason, if we set the COLLECT_NAMES environment variable, the problems
7439 # vanish in a puff of smoke.
7440 if test "X${COLLECT_NAMES+set}" != Xset; then
7441 COLLECT_NAMES=
7442 export COLLECT_NAMES
7443 fi
7444 ;;
7445 esac
7446
7447 # Sed substitution that helps us do robust quoting. It backslashifies
7448 # metacharacters that are still active within double-quoted strings.
7449 Xsed='sed -e 1s/^X//'
7450 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7451
7452 # Same as above, but do not quote variable references.
7453 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7454
7455 # Sed substitution to delay expansion of an escaped shell variable in a
7456 # double_quote_subst'ed string.
7457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7458
7459 # Sed substitution to avoid accidental globbing in evaled expressions
7460 no_glob_subst='s/\*/\\\*/g'
7461
7462 # Constants:
7463 rm="rm -f"
7464
7465 # Global variables:
7466 default_ofile=libtool
7467 can_build_shared=yes
7468
7469 # All known linkers require a `.a' archive for static linking (except MSVC,
7470 # which needs '.lib').
7471 libext=a
7472 ltmain="$ac_aux_dir/ltmain.sh"
7473 ofile="$default_ofile"
7474 with_gnu_ld="$lt_cv_prog_gnu_ld"
7475
7476 if test -n "$ac_tool_prefix"; then
7477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7478 set dummy ${ac_tool_prefix}ar; ac_word=$2
7479 echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7481 if test "${ac_cv_prog_AR+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 if test -n "$AR"; then
7485 ac_cv_prog_AR="$AR" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_AR="${ac_tool_prefix}ar"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498 done
7499 done
7500
7501 fi
7502 fi
7503 AR=$ac_cv_prog_AR
7504 if test -n "$AR"; then
7505 echo "$as_me:$LINENO: result: $AR" >&5
7506 echo "${ECHO_T}$AR" >&6
7507 else
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 fi
7511
7512 fi
7513 if test -z "$ac_cv_prog_AR"; then
7514 ac_ct_AR=$AR
7515 # Extract the first word of "ar", so it can be a program name with args.
7516 set dummy ar; ac_word=$2
7517 echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7519 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 if test -n "$ac_ct_AR"; then
7523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_AR="ar"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536 done
7537 done
7538
7539 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7540 fi
7541 fi
7542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7543 if test -n "$ac_ct_AR"; then
7544 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7545 echo "${ECHO_T}$ac_ct_AR" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 fi
7550
7551 AR=$ac_ct_AR
7552 else
7553 AR="$ac_cv_prog_AR"
7554 fi
7555
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7559 echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7561 if test "${ac_cv_prog_RANLIB+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 if test -n "$RANLIB"; then
7565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580
7581 fi
7582 fi
7583 RANLIB=$ac_cv_prog_RANLIB
7584 if test -n "$RANLIB"; then
7585 echo "$as_me:$LINENO: result: $RANLIB" >&5
7586 echo "${ECHO_T}$RANLIB" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590 fi
7591
7592 fi
7593 if test -z "$ac_cv_prog_RANLIB"; then
7594 ac_ct_RANLIB=$RANLIB
7595 # Extract the first word of "ranlib", so it can be a program name with args.
7596 set dummy ranlib; ac_word=$2
7597 echo "$as_me:$LINENO: checking for $ac_word" >&5
7598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 if test -n "$ac_ct_RANLIB"; then
7603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_ac_ct_RANLIB="ranlib"
7613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7615 fi
7616 done
7617 done
7618
7619 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7620 fi
7621 fi
7622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7623 if test -n "$ac_ct_RANLIB"; then
7624 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7625 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7626 else
7627 echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6
7629 fi
7630
7631 RANLIB=$ac_ct_RANLIB
7632 else
7633 RANLIB="$ac_cv_prog_RANLIB"
7634 fi
7635
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}strip; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_STRIP+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644 if test -n "$STRIP"; then
7645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658 done
7659 done
7660
7661 fi
7662 fi
7663 STRIP=$ac_cv_prog_STRIP
7664 if test -n "$STRIP"; then
7665 echo "$as_me:$LINENO: result: $STRIP" >&5
7666 echo "${ECHO_T}$STRIP" >&6
7667 else
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670 fi
7671
7672 fi
7673 if test -z "$ac_cv_prog_STRIP"; then
7674 ac_ct_STRIP=$STRIP
7675 # Extract the first word of "strip", so it can be a program name with args.
7676 set dummy strip; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 if test -n "$ac_ct_STRIP"; then
7683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_STRIP="strip"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696 done
7697 done
7698
7699 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7700 fi
7701 fi
7702 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7703 if test -n "$ac_ct_STRIP"; then
7704 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7705 echo "${ECHO_T}$ac_ct_STRIP" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6
7709 fi
7710
7711 STRIP=$ac_ct_STRIP
7712 else
7713 STRIP="$ac_cv_prog_STRIP"
7714 fi
7715
7716
7717 old_CC="$CC"
7718 old_CFLAGS="$CFLAGS"
7719
7720 # Set sane defaults for various variables
7721 test -z "$AR" && AR=ar
7722 test -z "$AR_FLAGS" && AR_FLAGS=cru
7723 test -z "$AS" && AS=as
7724 test -z "$CC" && CC=cc
7725 test -z "$LTCC" && LTCC=$CC
7726 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7727 test -z "$DLLTOOL" && DLLTOOL=dlltool
7728 test -z "$LD" && LD=ld
7729 test -z "$LN_S" && LN_S="ln -s"
7730 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7731 test -z "$NM" && NM=nm
7732 test -z "$SED" && SED=sed
7733 test -z "$OBJDUMP" && OBJDUMP=objdump
7734 test -z "$RANLIB" && RANLIB=:
7735 test -z "$STRIP" && STRIP=:
7736 test -z "$ac_objext" && ac_objext=o
7737
7738 # Determine commands to create old-style static archives.
7739 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7740 old_postinstall_cmds='chmod 644 $oldlib'
7741 old_postuninstall_cmds=
7742
7743 if test -n "$RANLIB"; then
7744 case $host_os in
7745 openbsd*)
7746 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7747 ;;
7748 *)
7749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7750 ;;
7751 esac
7752 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7753 fi
7754
7755 for cc_temp in $compiler""; do
7756 case $cc_temp in
7757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7759 \-*) ;;
7760 *) break;;
7761 esac
7762 done
7763 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7764
7765
7766 # Only perform the check for file, if the check method requires it
7767 case $deplibs_check_method in
7768 file_magic*)
7769 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7770 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7771 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 case $MAGIC_CMD in
7776 [\\/*] | ?:[\\/]*)
7777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7778 ;;
7779 *)
7780 lt_save_MAGIC_CMD="$MAGIC_CMD"
7781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7783 for ac_dir in $ac_dummy; do
7784 IFS="$lt_save_ifs"
7785 test -z "$ac_dir" && ac_dir=.
7786 if test -f $ac_dir/${ac_tool_prefix}file; then
7787 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7788 if test -n "$file_magic_test_file"; then
7789 case $deplibs_check_method in
7790 "file_magic "*)
7791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7794 $EGREP "$file_magic_regex" > /dev/null; then
7795 :
7796 else
7797 cat <<EOF 1>&2
7798
7799 *** Warning: the command libtool uses to detect shared libraries,
7800 *** $file_magic_cmd, produces output that libtool cannot recognize.
7801 *** The result is that libtool may fail to recognize shared libraries
7802 *** as such. This will affect the creation of libtool libraries that
7803 *** depend on shared libraries, but programs linked with such libtool
7804 *** libraries will work regardless of this problem. Nevertheless, you
7805 *** may want to report the problem to your system manager and/or to
7806 *** [email protected]
7807
7808 EOF
7809 fi ;;
7810 esac
7811 fi
7812 break
7813 fi
7814 done
7815 IFS="$lt_save_ifs"
7816 MAGIC_CMD="$lt_save_MAGIC_CMD"
7817 ;;
7818 esac
7819 fi
7820
7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822 if test -n "$MAGIC_CMD"; then
7823 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7824 echo "${ECHO_T}$MAGIC_CMD" >&6
7825 else
7826 echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6
7828 fi
7829
7830 if test -z "$lt_cv_path_MAGIC_CMD"; then
7831 if test -n "$ac_tool_prefix"; then
7832 echo "$as_me:$LINENO: checking for file" >&5
7833 echo $ECHO_N "checking for file... $ECHO_C" >&6
7834 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 case $MAGIC_CMD in
7838 [\\/*] | ?:[\\/]*)
7839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7840 ;;
7841 *)
7842 lt_save_MAGIC_CMD="$MAGIC_CMD"
7843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7845 for ac_dir in $ac_dummy; do
7846 IFS="$lt_save_ifs"
7847 test -z "$ac_dir" && ac_dir=.
7848 if test -f $ac_dir/file; then
7849 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7850 if test -n "$file_magic_test_file"; then
7851 case $deplibs_check_method in
7852 "file_magic "*)
7853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7856 $EGREP "$file_magic_regex" > /dev/null; then
7857 :
7858 else
7859 cat <<EOF 1>&2
7860
7861 *** Warning: the command libtool uses to detect shared libraries,
7862 *** $file_magic_cmd, produces output that libtool cannot recognize.
7863 *** The result is that libtool may fail to recognize shared libraries
7864 *** as such. This will affect the creation of libtool libraries that
7865 *** depend on shared libraries, but programs linked with such libtool
7866 *** libraries will work regardless of this problem. Nevertheless, you
7867 *** may want to report the problem to your system manager and/or to
7868 *** [email protected]
7869
7870 EOF
7871 fi ;;
7872 esac
7873 fi
7874 break
7875 fi
7876 done
7877 IFS="$lt_save_ifs"
7878 MAGIC_CMD="$lt_save_MAGIC_CMD"
7879 ;;
7880 esac
7881 fi
7882
7883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884 if test -n "$MAGIC_CMD"; then
7885 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7886 echo "${ECHO_T}$MAGIC_CMD" >&6
7887 else
7888 echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7890 fi
7891
7892 else
7893 MAGIC_CMD=:
7894 fi
7895 fi
7896
7897 fi
7898 ;;
7899 esac
7900
7901 enable_dlopen=no
7902 enable_win32_dll=no
7903
7904 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7905 if test "${enable_libtool_lock+set}" = set; then
7906 enableval="$enable_libtool_lock"
7907
7908 fi;
7909 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7910
7911
7912 # Check whether --with-pic or --without-pic was given.
7913 if test "${with_pic+set}" = set; then
7914 withval="$with_pic"
7915 pic_mode="$withval"
7916 else
7917 pic_mode=default
7918 fi;
7919 test -z "$pic_mode" && pic_mode=default
7920
7921 # Use C for the default configuration in the libtool script
7922 tagname=
7923 lt_save_CC="$CC"
7924 ac_ext=c
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929
7930
7931 # Source file extension for C test sources.
7932 ac_ext=c
7933
7934 # Object file extension for compiled C test sources.
7935 objext=o
7936 objext=$objext
7937
7938 # Code to be used in simple compile tests
7939 lt_simple_compile_test_code="int some_variable = 0;\n"
7940
7941 # Code to be used in simple link tests
7942 lt_simple_link_test_code='int main(){return(0);}\n'
7943
7944
7945 # If no C compiler was specified, use CC.
7946 LTCC=${LTCC-"$CC"}
7947
7948 # If no C compiler flags were specified, use CFLAGS.
7949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7950
7951 # Allow CC to be a program name with arguments.
7952 compiler=$CC
7953
7954
7955 # save warnings/boilerplate of simple test code
7956 ac_outfile=conftest.$ac_objext
7957 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7959 _lt_compiler_boilerplate=`cat conftest.err`
7960 $rm conftest*
7961
7962 ac_outfile=conftest.$ac_objext
7963 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7964 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7965 _lt_linker_boilerplate=`cat conftest.err`
7966 $rm conftest*
7967
7968
7969 ## CAVEAT EMPTOR:
7970 ## There is no encapsulation within the following macros, do not change
7971 ## the running order or otherwise move them around unless you know exactly
7972 ## what you are doing...
7973
7974 lt_prog_compiler_no_builtin_flag=
7975
7976 if test "$GCC" = yes; then
7977 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7978
7979
7980 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7981 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7982 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 lt_cv_prog_compiler_rtti_exceptions=no
7986 ac_outfile=conftest.$ac_objext
7987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7988 lt_compiler_flag="-fno-rtti -fno-exceptions"
7989 # Insert the option either (1) after the last *FLAGS variable, or
7990 # (2) before a word containing "conftest.", or (3) at the end.
7991 # Note that $ac_compile itself does not contain backslashes and begins
7992 # with a dollar sign (not a hyphen), so the echo should work correctly.
7993 # The option is referenced via a variable to avoid confusing sed.
7994 lt_compile=`echo "$ac_compile" | $SED \
7995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7997 -e 's:$: $lt_compiler_flag:'`
7998 (eval echo "\"\$as_me:7998: $lt_compile\"" >&5)
7999 (eval "$lt_compile" 2>conftest.err)
8000 ac_status=$?
8001 cat conftest.err >&5
8002 echo "$as_me:8002: \$? = $ac_status" >&5
8003 if (exit $ac_status) && test -s "$ac_outfile"; then
8004 # The compiler can only warn and ignore the option if not recognized
8005 # So say no if there are warnings other than the usual output.
8006 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8009 lt_cv_prog_compiler_rtti_exceptions=yes
8010 fi
8011 fi
8012 $rm conftest*
8013
8014 fi
8015 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8016 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8017
8018 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8019 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8020 else
8021 :
8022 fi
8023
8024 fi
8025
8026 lt_prog_compiler_wl=
8027 lt_prog_compiler_pic=
8028 lt_prog_compiler_static=
8029
8030 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8031 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8032
8033 if test "$GCC" = yes; then
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_static='-static'
8036
8037 case $host_os in
8038 aix*)
8039 # All AIX code is PIC.
8040 if test "$host_cpu" = ia64; then
8041 # AIX 5 now supports IA64 processor
8042 lt_prog_compiler_static='-Bstatic'
8043 fi
8044 ;;
8045
8046 amigaos*)
8047 # FIXME: we need at least 68020 code to build shared libraries, but
8048 # adding the `-m68020' flag to GCC prevents building anything better,
8049 # like `-m68040'.
8050 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8051 ;;
8052
8053 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8054 # PIC is the default for these OSes.
8055 ;;
8056
8057 mingw* | pw32* | os2*)
8058 # This hack is so that the source file can tell whether it is being
8059 # built for inclusion in a dll (and should export symbols for example).
8060 lt_prog_compiler_pic='-DDLL_EXPORT'
8061 ;;
8062
8063 darwin* | rhapsody*)
8064 # PIC is the default on this platform
8065 # Common symbols not allowed in MH_DYLIB files
8066 lt_prog_compiler_pic='-fno-common'
8067 ;;
8068
8069 interix3*)
8070 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8071 # Instead, we relocate shared libraries at runtime.
8072 ;;
8073
8074 msdosdjgpp*)
8075 # Just because we use GCC doesn't mean we suddenly get shared libraries
8076 # on systems that don't support them.
8077 lt_prog_compiler_can_build_shared=no
8078 enable_shared=no
8079 ;;
8080
8081 sysv4*MP*)
8082 if test -d /usr/nec; then
8083 lt_prog_compiler_pic=-Kconform_pic
8084 fi
8085 ;;
8086
8087 hpux*)
8088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8089 # not for PA HP-UX.
8090 case $host_cpu in
8091 hppa*64*|ia64*)
8092 # +Z the default
8093 ;;
8094 *)
8095 lt_prog_compiler_pic='-fPIC'
8096 ;;
8097 esac
8098 ;;
8099
8100 *)
8101 lt_prog_compiler_pic='-fPIC'
8102 ;;
8103 esac
8104 else
8105 # PORTME Check for flag to pass linker flags through the system compiler.
8106 case $host_os in
8107 aix*)
8108 lt_prog_compiler_wl='-Wl,'
8109 if test "$host_cpu" = ia64; then
8110 # AIX 5 now supports IA64 processor
8111 lt_prog_compiler_static='-Bstatic'
8112 else
8113 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8114 fi
8115 ;;
8116 darwin*)
8117 # PIC is the default on this platform
8118 # Common symbols not allowed in MH_DYLIB files
8119 case $cc_basename in
8120 xlc*)
8121 lt_prog_compiler_pic='-qnocommon'
8122 lt_prog_compiler_wl='-Wl,'
8123 ;;
8124 esac
8125 ;;
8126
8127 mingw* | pw32* | os2*)
8128 # This hack is so that the source file can tell whether it is being
8129 # built for inclusion in a dll (and should export symbols for example).
8130 lt_prog_compiler_pic='-DDLL_EXPORT'
8131 ;;
8132
8133 hpux9* | hpux10* | hpux11*)
8134 lt_prog_compiler_wl='-Wl,'
8135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8136 # not for PA HP-UX.
8137 case $host_cpu in
8138 hppa*64*|ia64*)
8139 # +Z the default
8140 ;;
8141 *)
8142 lt_prog_compiler_pic='+Z'
8143 ;;
8144 esac
8145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8146 lt_prog_compiler_static='${wl}-a ${wl}archive'
8147 ;;
8148
8149 irix5* | irix6* | nonstopux*)
8150 lt_prog_compiler_wl='-Wl,'
8151 # PIC (with -KPIC) is the default.
8152 lt_prog_compiler_static='-non_shared'
8153 ;;
8154
8155 newsos6)
8156 lt_prog_compiler_pic='-KPIC'
8157 lt_prog_compiler_static='-Bstatic'
8158 ;;
8159
8160 linux*)
8161 case $cc_basename in
8162 icc* | ecc*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-static'
8166 ;;
8167 pgcc* | pgf77* | pgf90* | pgf95*)
8168 # Portland Group compilers (*not* the Pentium gcc compiler,
8169 # which looks to be a dead project)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fpic'
8172 lt_prog_compiler_static='-Bstatic'
8173 ;;
8174 ccc*)
8175 lt_prog_compiler_wl='-Wl,'
8176 # All Alpha code is PIC.
8177 lt_prog_compiler_static='-non_shared'
8178 ;;
8179 esac
8180 ;;
8181
8182 osf3* | osf4* | osf5*)
8183 lt_prog_compiler_wl='-Wl,'
8184 # All OSF/1 code is PIC.
8185 lt_prog_compiler_static='-non_shared'
8186 ;;
8187
8188 solaris*)
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 case $cc_basename in
8192 f77* | f90* | f95*)
8193 lt_prog_compiler_wl='-Qoption ld ';;
8194 *)
8195 lt_prog_compiler_wl='-Wl,';;
8196 esac
8197 ;;
8198
8199 sunos4*)
8200 lt_prog_compiler_wl='-Qoption ld '
8201 lt_prog_compiler_pic='-PIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 ;;
8204
8205 sysv4 | sysv4.2uw2* | sysv4.3*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-KPIC'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210
8211 sysv4*MP*)
8212 if test -d /usr/nec ;then
8213 lt_prog_compiler_pic='-Kconform_pic'
8214 lt_prog_compiler_static='-Bstatic'
8215 fi
8216 ;;
8217
8218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8219 lt_prog_compiler_wl='-Wl,'
8220 lt_prog_compiler_pic='-KPIC'
8221 lt_prog_compiler_static='-Bstatic'
8222 ;;
8223
8224 unicos*)
8225 lt_prog_compiler_wl='-Wl,'
8226 lt_prog_compiler_can_build_shared=no
8227 ;;
8228
8229 uts4*)
8230 lt_prog_compiler_pic='-pic'
8231 lt_prog_compiler_static='-Bstatic'
8232 ;;
8233
8234 *)
8235 lt_prog_compiler_can_build_shared=no
8236 ;;
8237 esac
8238 fi
8239
8240 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8241 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8242
8243 #
8244 # Check to make sure the PIC flag actually works.
8245 #
8246 if test -n "$lt_prog_compiler_pic"; then
8247
8248 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8249 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8250 if test "${lt_prog_compiler_pic_works+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 lt_prog_compiler_pic_works=no
8254 ac_outfile=conftest.$ac_objext
8255 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8257 # Insert the option either (1) after the last *FLAGS variable, or
8258 # (2) before a word containing "conftest.", or (3) at the end.
8259 # Note that $ac_compile itself does not contain backslashes and begins
8260 # with a dollar sign (not a hyphen), so the echo should work correctly.
8261 # The option is referenced via a variable to avoid confusing sed.
8262 lt_compile=`echo "$ac_compile" | $SED \
8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265 -e 's:$: $lt_compiler_flag:'`
8266 (eval echo "\"\$as_me:8266: $lt_compile\"" >&5)
8267 (eval "$lt_compile" 2>conftest.err)
8268 ac_status=$?
8269 cat conftest.err >&5
8270 echo "$as_me:8270: \$? = $ac_status" >&5
8271 if (exit $ac_status) && test -s "$ac_outfile"; then
8272 # The compiler can only warn and ignore the option if not recognized
8273 # So say no if there are warnings other than the usual output.
8274 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8277 lt_prog_compiler_pic_works=yes
8278 fi
8279 fi
8280 $rm conftest*
8281
8282 fi
8283 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8284 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8285
8286 if test x"$lt_prog_compiler_pic_works" = xyes; then
8287 case $lt_prog_compiler_pic in
8288 "" | " "*) ;;
8289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8290 esac
8291 else
8292 lt_prog_compiler_pic=
8293 lt_prog_compiler_can_build_shared=no
8294 fi
8295
8296 fi
8297 case $host_os in
8298 # For platforms which do not support PIC, -DPIC is meaningless:
8299 *djgpp*)
8300 lt_prog_compiler_pic=
8301 ;;
8302 *)
8303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304 ;;
8305 esac
8306
8307 #
8308 # Check to make sure the static flag actually works.
8309 #
8310 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8311 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8312 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8313 if test "${lt_prog_compiler_static_works+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316 lt_prog_compiler_static_works=no
8317 save_LDFLAGS="$LDFLAGS"
8318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8319 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8321 # The linker can only warn and ignore the option if not recognized
8322 # So say no if there are warnings
8323 if test -s conftest.err; then
8324 # Append any errors to the config.log.
8325 cat conftest.err 1>&5
8326 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8328 if diff conftest.exp conftest.er2 >/dev/null; then
8329 lt_prog_compiler_static_works=yes
8330 fi
8331 else
8332 lt_prog_compiler_static_works=yes
8333 fi
8334 fi
8335 $rm conftest*
8336 LDFLAGS="$save_LDFLAGS"
8337
8338 fi
8339 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8340 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8341
8342 if test x"$lt_prog_compiler_static_works" = xyes; then
8343 :
8344 else
8345 lt_prog_compiler_static=
8346 fi
8347
8348
8349 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8350 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8351 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 lt_cv_prog_compiler_c_o=no
8355 $rm -r conftest 2>/dev/null
8356 mkdir conftest
8357 cd conftest
8358 mkdir out
8359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8360
8361 lt_compiler_flag="-o out/conftest2.$ac_objext"
8362 # Insert the option either (1) after the last *FLAGS variable, or
8363 # (2) before a word containing "conftest.", or (3) at the end.
8364 # Note that $ac_compile itself does not contain backslashes and begins
8365 # with a dollar sign (not a hyphen), so the echo should work correctly.
8366 lt_compile=`echo "$ac_compile" | $SED \
8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369 -e 's:$: $lt_compiler_flag:'`
8370 (eval echo "\"\$as_me:8370: $lt_compile\"" >&5)
8371 (eval "$lt_compile" 2>out/conftest.err)
8372 ac_status=$?
8373 cat out/conftest.err >&5
8374 echo "$as_me:8374: \$? = $ac_status" >&5
8375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376 then
8377 # The compiler can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8382 lt_cv_prog_compiler_c_o=yes
8383 fi
8384 fi
8385 chmod u+w . 2>&5
8386 $rm conftest*
8387 # SGI C++ compiler will create directory out/ii_files/ for
8388 # template instantiation
8389 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8390 $rm out/* && rmdir out
8391 cd ..
8392 rmdir conftest
8393 $rm conftest*
8394
8395 fi
8396 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8397 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8398
8399
8400 hard_links="nottested"
8401 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8402 # do not overwrite the value of need_locks provided by the user
8403 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8404 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8405 hard_links=yes
8406 $rm conftest*
8407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8408 touch conftest.a
8409 ln conftest.a conftest.b 2>&5 || hard_links=no
8410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8411 echo "$as_me:$LINENO: result: $hard_links" >&5
8412 echo "${ECHO_T}$hard_links" >&6
8413 if test "$hard_links" = no; then
8414 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8415 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8416 need_locks=warn
8417 fi
8418 else
8419 need_locks=no
8420 fi
8421
8422 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8423 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8424
8425 runpath_var=
8426 allow_undefined_flag=
8427 enable_shared_with_static_runtimes=no
8428 archive_cmds=
8429 archive_expsym_cmds=
8430 old_archive_From_new_cmds=
8431 old_archive_from_expsyms_cmds=
8432 export_dynamic_flag_spec=
8433 whole_archive_flag_spec=
8434 thread_safe_flag_spec=
8435 hardcode_libdir_flag_spec=
8436 hardcode_libdir_flag_spec_ld=
8437 hardcode_libdir_separator=
8438 hardcode_direct=no
8439 hardcode_minus_L=no
8440 hardcode_shlibpath_var=unsupported
8441 link_all_deplibs=unknown
8442 hardcode_automatic=no
8443 module_cmds=
8444 module_expsym_cmds=
8445 always_export_symbols=no
8446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8447 # include_expsyms should be a list of space-separated symbols to be *always*
8448 # included in the symbol list
8449 include_expsyms=
8450 # exclude_expsyms can be an extended regexp of symbols to exclude
8451 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8452 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8453 # as well as any symbol that contains `d'.
8454 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8455 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8456 # platforms (ab)use it in PIC code, but their linkers get confused if
8457 # the symbol is explicitly referenced. Since portable code cannot
8458 # rely on this symbol name, it's probably fine to never include it in
8459 # preloaded symbol tables.
8460 extract_expsyms_cmds=
8461 # Just being paranoid about ensuring that cc_basename is set.
8462 for cc_temp in $compiler""; do
8463 case $cc_temp in
8464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8466 \-*) ;;
8467 *) break;;
8468 esac
8469 done
8470 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8471
8472 case $host_os in
8473 cygwin* | mingw* | pw32*)
8474 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8475 # When not using gcc, we currently assume that we are using
8476 # Microsoft Visual C++.
8477 if test "$GCC" != yes; then
8478 with_gnu_ld=no
8479 fi
8480 ;;
8481 interix*)
8482 # we just hope/assume this is gcc and not c89 (= MSVC++)
8483 with_gnu_ld=yes
8484 ;;
8485 openbsd*)
8486 with_gnu_ld=no
8487 ;;
8488 esac
8489
8490 ld_shlibs=yes
8491 if test "$with_gnu_ld" = yes; then
8492 # If archive_cmds runs LD, not CC, wlarc should be empty
8493 wlarc='${wl}'
8494
8495 # Set some defaults for GNU ld with shared library support. These
8496 # are reset later if shared libraries are not supported. Putting them
8497 # here allows them to be overridden if necessary.
8498 runpath_var=LD_RUN_PATH
8499 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8500 export_dynamic_flag_spec='${wl}--export-dynamic'
8501 # ancient GNU ld didn't support --whole-archive et. al.
8502 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8503 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8504 else
8505 whole_archive_flag_spec=
8506 fi
8507 supports_anon_versioning=no
8508 case `$LD -v 2>/dev/null` in
8509 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8510 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8511 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8512 *\ 2.11.*) ;; # other 2.11 versions
8513 *) supports_anon_versioning=yes ;;
8514 esac
8515
8516 # See if GNU ld supports shared libraries.
8517 case $host_os in
8518 aix3* | aix4* | aix5*)
8519 # On AIX/PPC, the GNU linker is very broken
8520 if test "$host_cpu" != ia64; then
8521 ld_shlibs=no
8522 cat <<EOF 1>&2
8523
8524 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8525 *** to be unable to reliably create shared libraries on AIX.
8526 *** Therefore, libtool is disabling shared libraries support. If you
8527 *** really care for shared libraries, you may want to modify your PATH
8528 *** so that a non-GNU linker is found, and then restart.
8529
8530 EOF
8531 fi
8532 ;;
8533
8534 amigaos*)
8535 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)'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_minus_L=yes
8538
8539 # Samuel A. Falvo II <[email protected]> reports
8540 # that the semantics of dynamic libraries on AmigaOS, at least up
8541 # to version 4, is to share data among multiple programs linked
8542 # with the same dynamic library. Since this doesn't match the
8543 # behavior of shared libraries on other platforms, we can't use
8544 # them.
8545 ld_shlibs=no
8546 ;;
8547
8548 beos*)
8549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8550 allow_undefined_flag=unsupported
8551 # Joseph Beckenbach <[email protected]> says some releases of gcc
8552 # support --undefined. This deserves some investigation. FIXME
8553 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554 else
8555 ld_shlibs=no
8556 fi
8557 ;;
8558
8559 cygwin* | mingw* | pw32*)
8560 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8561 # as there is no search path for DLLs.
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 allow_undefined_flag=unsupported
8564 always_export_symbols=no
8565 enable_shared_with_static_runtimes=yes
8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8567
8568 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8570 # If the export-symbols file already is a .def file (1st line
8571 # is EXPORTS), use it as is; otherwise, prepend...
8572 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8573 cp $export_symbols $output_objdir/$soname.def;
8574 else
8575 echo EXPORTS > $output_objdir/$soname.def;
8576 cat $export_symbols >> $output_objdir/$soname.def;
8577 fi~
8578 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8579 else
8580 ld_shlibs=no
8581 fi
8582 ;;
8583
8584 interix3*)
8585 hardcode_direct=no
8586 hardcode_shlibpath_var=no
8587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8588 export_dynamic_flag_spec='${wl}-E'
8589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8590 # Instead, shared libraries are loaded at an image base (0x10000000 by
8591 # default) and relocated if they conflict, which is a slow very memory
8592 # consuming and fragmenting process. To avoid this, we pick a random,
8593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8596 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'
8597 ;;
8598
8599 linux*)
8600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8601 tmp_addflag=
8602 case $cc_basename,$host_cpu in
8603 pgcc*) # Portland Group C compiler
8604 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'
8605 tmp_addflag=' $pic_flag'
8606 ;;
8607 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8608 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'
8609 tmp_addflag=' $pic_flag -Mnomain' ;;
8610 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8611 tmp_addflag=' -i_dynamic' ;;
8612 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8613 tmp_addflag=' -i_dynamic -nofor_main' ;;
8614 ifc* | ifort*) # Intel Fortran compiler
8615 tmp_addflag=' -nofor_main' ;;
8616 esac
8617 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618
8619 if test $supports_anon_versioning = yes; then
8620 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8622 $echo "local: *; };" >> $output_objdir/$libname.ver~
8623 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8624 fi
8625 else
8626 ld_shlibs=no
8627 fi
8628 ;;
8629
8630 netbsd*)
8631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8632 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8633 wlarc=
8634 else
8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8637 fi
8638 ;;
8639
8640 solaris*)
8641 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8642 ld_shlibs=no
8643 cat <<EOF 1>&2
8644
8645 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8646 *** create shared libraries on Solaris systems. Therefore, libtool
8647 *** is disabling shared libraries support. We urge you to upgrade GNU
8648 *** binutils to release 2.9.1 or newer. Another option is to modify
8649 *** your PATH or compiler configuration so that the native linker is
8650 *** used, and then restart.
8651
8652 EOF
8653 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8656 else
8657 ld_shlibs=no
8658 fi
8659 ;;
8660
8661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8662 case `$LD -v 2>&1` in
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8664 ld_shlibs=no
8665 cat <<_LT_EOF 1>&2
8666
8667 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8668 *** reliably create shared libraries on SCO systems. Therefore, libtool
8669 *** is disabling shared libraries support. We urge you to upgrade GNU
8670 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8671 *** your PATH or compiler configuration so that the native linker is
8672 *** used, and then restart.
8673
8674 _LT_EOF
8675 ;;
8676 *)
8677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8678 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8681 else
8682 ld_shlibs=no
8683 fi
8684 ;;
8685 esac
8686 ;;
8687
8688 sunos4*)
8689 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8690 wlarc=
8691 hardcode_direct=yes
8692 hardcode_shlibpath_var=no
8693 ;;
8694
8695 *)
8696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703 esac
8704
8705 if test "$ld_shlibs" = no; then
8706 runpath_var=
8707 hardcode_libdir_flag_spec=
8708 export_dynamic_flag_spec=
8709 whole_archive_flag_spec=
8710 fi
8711 else
8712 # PORTME fill in a description of your system's linker (not GNU ld)
8713 case $host_os in
8714 aix3*)
8715 allow_undefined_flag=unsupported
8716 always_export_symbols=yes
8717 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'
8718 # Note: this linker hardcodes the directories in LIBPATH if there
8719 # are no directories specified by -L.
8720 hardcode_minus_L=yes
8721 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8722 # Neither direct hardcoding nor static linking is supported with a
8723 # broken collect2.
8724 hardcode_direct=unsupported
8725 fi
8726 ;;
8727
8728 aix4* | aix5*)
8729 if test "$host_cpu" = ia64; then
8730 # On IA64, the linker does run time linking by default, so we don't
8731 # have to do anything special.
8732 aix_use_runtimelinking=no
8733 exp_sym_flag='-Bexport'
8734 no_entry_flag=""
8735 else
8736 # If we're using GNU nm, then we don't want the "-C" option.
8737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8738 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8739 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'
8740 else
8741 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'
8742 fi
8743 aix_use_runtimelinking=no
8744
8745 # Test if we are trying to use run time linking or normal
8746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8747 # need to do runtime linking.
8748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8749 for ld_flag in $LDFLAGS; do
8750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8751 aix_use_runtimelinking=yes
8752 break
8753 fi
8754 done
8755 ;;
8756 esac
8757
8758 exp_sym_flag='-bexport'
8759 no_entry_flag='-bnoentry'
8760 fi
8761
8762 # When large executables or shared objects are built, AIX ld can
8763 # have problems creating the table of contents. If linking a library
8764 # or program results in "error TOC overflow" add -mminimal-toc to
8765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8767
8768 archive_cmds=''
8769 hardcode_direct=yes
8770 hardcode_libdir_separator=':'
8771 link_all_deplibs=yes
8772
8773 if test "$GCC" = yes; then
8774 case $host_os in aix4.[012]|aix4.[012].*)
8775 # We only want to do this on AIX 4.2 and lower, the check
8776 # below for broken collect2 doesn't work under 4.3+
8777 collect2name=`${CC} -print-prog-name=collect2`
8778 if test -f "$collect2name" && \
8779 strings "$collect2name" | grep resolve_lib_name >/dev/null
8780 then
8781 # We have reworked collect2
8782 hardcode_direct=yes
8783 else
8784 # We have old collect2
8785 hardcode_direct=unsupported
8786 # It fails to find uninstalled libraries when the uninstalled
8787 # path is not listed in the libpath. Setting hardcode_minus_L
8788 # to unsupported forces relinking
8789 hardcode_minus_L=yes
8790 hardcode_libdir_flag_spec='-L$libdir'
8791 hardcode_libdir_separator=
8792 fi
8793 ;;
8794 esac
8795 shared_flag='-shared'
8796 if test "$aix_use_runtimelinking" = yes; then
8797 shared_flag="$shared_flag "'${wl}-G'
8798 fi
8799 else
8800 # not using gcc
8801 if test "$host_cpu" = ia64; then
8802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8803 # chokes on -Wl,-G. The following line is correct:
8804 shared_flag='-G'
8805 else
8806 if test "$aix_use_runtimelinking" = yes; then
8807 shared_flag='${wl}-G'
8808 else
8809 shared_flag='${wl}-bM:SRE'
8810 fi
8811 fi
8812 fi
8813
8814 # It seems that -bexpall does not export symbols beginning with
8815 # underscore (_), so it is better to generate a list of symbols to export.
8816 always_export_symbols=yes
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # Warning - without using the other runtime loading flags (-brtl),
8819 # -berok will link without error, but may produce a broken library.
8820 allow_undefined_flag='-berok'
8821 # Determine the default libpath from the value encoded in an empty executable.
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828
8829 int
8830 main ()
8831 {
8832
8833 ;
8834 return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag"
8847 || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859
8860 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8861 }'`
8862 # Check for a 64-bit object if we didn't find anything.
8863 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; }
8864 }'`; fi
8865 else
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 fi
8870 rm -f conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8873
8874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8875 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"
8876 else
8877 if test "$host_cpu" = ia64; then
8878 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8879 allow_undefined_flag="-z nodefs"
8880 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"
8881 else
8882 # Determine the default libpath from the value encoded in an empty executable.
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h. */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889
8890 int
8891 main ()
8892 {
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900 (eval $ac_link) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_c_werror_flag"
8908 || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920
8921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8922 }'`
8923 # Check for a 64-bit object if we didn't find anything.
8924 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; }
8925 }'`; fi
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8929
8930 fi
8931 rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8934
8935 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8936 # Warning - without using the other run time loading flags,
8937 # -berok will link without error, but may produce a broken library.
8938 no_undefined_flag=' ${wl}-bernotok'
8939 allow_undefined_flag=' ${wl}-berok'
8940 # Exported symbols can be pulled into shared objects from archives
8941 whole_archive_flag_spec='$convenience'
8942 archive_cmds_need_lc=yes
8943 # This is similar to how AIX traditionally builds its shared libraries.
8944 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'
8945 fi
8946 fi
8947 ;;
8948
8949 amigaos*)
8950 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)'
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 hardcode_minus_L=yes
8953 # see comment about different semantics on the GNU ld section
8954 ld_shlibs=no
8955 ;;
8956
8957 bsdi[45]*)
8958 export_dynamic_flag_spec=-rdynamic
8959 ;;
8960
8961 cygwin* | mingw* | pw32*)
8962 # When not using gcc, we currently assume that we are using
8963 # Microsoft Visual C++.
8964 # hardcode_libdir_flag_spec is actually meaningless, as there is
8965 # no search path for DLLs.
8966 hardcode_libdir_flag_spec=' '
8967 allow_undefined_flag=unsupported
8968 # Tell ltmain to make .lib files, not .a files.
8969 libext=lib
8970 # Tell ltmain to make .dll files, not .so files.
8971 shrext_cmds=".dll"
8972 # FIXME: Setting linknames here is a bad hack.
8973 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8974 # The linker will automatically build a .lib file if we build a DLL.
8975 old_archive_From_new_cmds='true'
8976 # FIXME: Should let the user specify the lib program.
8977 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8978 fix_srcfile_path='`cygpath -w "$srcfile"`'
8979 enable_shared_with_static_runtimes=yes
8980 ;;
8981
8982 darwin* | rhapsody*)
8983 case $host_os in
8984 rhapsody* | darwin1.[012])
8985 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8986 ;;
8987 *) # Darwin 1.3 on
8988 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8989 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8990 else
8991 case ${MACOSX_DEPLOYMENT_TARGET} in
8992 10.[012])
8993 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8994 ;;
8995 10.*)
8996 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8997 ;;
8998 esac
8999 fi
9000 ;;
9001 esac
9002 archive_cmds_need_lc=no
9003 hardcode_direct=no
9004 hardcode_automatic=yes
9005 hardcode_shlibpath_var=unsupported
9006 whole_archive_flag_spec=''
9007 link_all_deplibs=yes
9008 if test "$GCC" = yes ; then
9009 output_verbose_link_cmd='echo'
9010 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9011 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9012 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9013 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}'
9014 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}'
9015 else
9016 case $cc_basename in
9017 xlc*)
9018 output_verbose_link_cmd='echo'
9019 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9020 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9021 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9022 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}'
9023 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}'
9024 ;;
9025 *)
9026 ld_shlibs=no
9027 ;;
9028 esac
9029 fi
9030 ;;
9031
9032 dgux*)
9033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034 hardcode_libdir_flag_spec='-L$libdir'
9035 hardcode_shlibpath_var=no
9036 ;;
9037
9038 freebsd1*)
9039 ld_shlibs=no
9040 ;;
9041
9042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043 # support. Future versions do this automatically, but an explicit c++rt0.o
9044 # does not break anything, and helps significantly (at the cost of a little
9045 # extra space).
9046 freebsd2.2*)
9047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048 hardcode_libdir_flag_spec='-R$libdir'
9049 hardcode_direct=yes
9050 hardcode_shlibpath_var=no
9051 ;;
9052
9053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9054 freebsd2*)
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_direct=yes
9057 hardcode_minus_L=yes
9058 hardcode_shlibpath_var=no
9059 ;;
9060
9061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062 freebsd* | kfreebsd*-gnu | dragonfly*)
9063 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec='-R$libdir'
9065 hardcode_direct=yes
9066 hardcode_shlibpath_var=no
9067 ;;
9068
9069 hpux9*)
9070 if test "$GCC" = yes; then
9071 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'
9072 else
9073 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'
9074 fi
9075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_separator=:
9077 hardcode_direct=yes
9078
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L=yes
9082 export_dynamic_flag_spec='${wl}-E'
9083 ;;
9084
9085 hpux10*)
9086 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9087 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088 else
9089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090 fi
9091 if test "$with_gnu_ld" = no; then
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_separator=:
9094
9095 hardcode_direct=yes
9096 export_dynamic_flag_spec='${wl}-E'
9097
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9101 fi
9102 ;;
9103
9104 hpux11*)
9105 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9106 case $host_cpu in
9107 hppa*64*)
9108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 ia64*)
9111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9112 ;;
9113 *)
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 esac
9117 else
9118 case $host_cpu in
9119 hppa*64*)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 ia64*)
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 *)
9126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9127 ;;
9128 esac
9129 fi
9130 if test "$with_gnu_ld" = no; then
9131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9132 hardcode_libdir_separator=:
9133
9134 case $host_cpu in
9135 hppa*64*|ia64*)
9136 hardcode_libdir_flag_spec_ld='+b $libdir'
9137 hardcode_direct=no
9138 hardcode_shlibpath_var=no
9139 ;;
9140 *)
9141 hardcode_direct=yes
9142 export_dynamic_flag_spec='${wl}-E'
9143
9144 # hardcode_minus_L: Not really in the search PATH,
9145 # but as the default location of the library.
9146 hardcode_minus_L=yes
9147 ;;
9148 esac
9149 fi
9150 ;;
9151
9152 irix5* | irix6* | nonstopux*)
9153 if test "$GCC" = yes; then
9154 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'
9155 else
9156 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'
9157 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9158 fi
9159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 link_all_deplibs=yes
9162 ;;
9163
9164 netbsd*)
9165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9167 else
9168 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9169 fi
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 newsos6)
9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177 hardcode_direct=yes
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 hardcode_libdir_separator=:
9180 hardcode_shlibpath_var=no
9181 ;;
9182
9183 openbsd*)
9184 hardcode_direct=yes
9185 hardcode_shlibpath_var=no
9186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9188 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9190 export_dynamic_flag_spec='${wl}-E'
9191 else
9192 case $host_os in
9193 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9195 hardcode_libdir_flag_spec='-R$libdir'
9196 ;;
9197 *)
9198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9200 ;;
9201 esac
9202 fi
9203 ;;
9204
9205 os2*)
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9208 allow_undefined_flag=unsupported
9209 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'
9210 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9211 ;;
9212
9213 osf3*)
9214 if test "$GCC" = yes; then
9215 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9216 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'
9217 else
9218 allow_undefined_flag=' -expect_unresolved \*'
9219 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'
9220 fi
9221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222 hardcode_libdir_separator=:
9223 ;;
9224
9225 osf4* | osf5*) # as osf3* with the addition of -msym flag
9226 if test "$GCC" = yes; then
9227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9228 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'
9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230 else
9231 allow_undefined_flag=' -expect_unresolved \*'
9232 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'
9233 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9234 $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'
9235
9236 # Both c and cxx compiler support -rpath directly
9237 hardcode_libdir_flag_spec='-rpath $libdir'
9238 fi
9239 hardcode_libdir_separator=:
9240 ;;
9241
9242 solaris*)
9243 no_undefined_flag=' -z text'
9244 if test "$GCC" = yes; then
9245 wlarc='${wl}'
9246 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9248 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9249 else
9250 wlarc=''
9251 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9254 fi
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_shlibpath_var=no
9257 case $host_os in
9258 solaris2.[0-5] | solaris2.[0-5].*) ;;
9259 *)
9260 # The compiler driver will combine linker options so we
9261 # cannot just pass the convience library names through
9262 # without $wl, iff we do not link with $LD.
9263 # Luckily, gcc supports the same syntax we need for Sun Studio.
9264 # Supported since Solaris 2.6 (maybe 2.5.1?)
9265 case $wlarc in
9266 '')
9267 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9268 *)
9269 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' ;;
9270 esac ;;
9271 esac
9272 link_all_deplibs=yes
9273 ;;
9274
9275 sunos4*)
9276 if test "x$host_vendor" = xsequent; then
9277 # Use $CC to link under sequent, because it throws in some extra .o
9278 # files that make .init and .fini sections work.
9279 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280 else
9281 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9282 fi
9283 hardcode_libdir_flag_spec='-L$libdir'
9284 hardcode_direct=yes
9285 hardcode_minus_L=yes
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 sysv4)
9290 case $host_vendor in
9291 sni)
9292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293 hardcode_direct=yes # is this really true???
9294 ;;
9295 siemens)
9296 ## LD is ld it makes a PLAMLIB
9297 ## CC just makes a GrossModule.
9298 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9299 reload_cmds='$CC -r -o $output$reload_objs'
9300 hardcode_direct=no
9301 ;;
9302 motorola)
9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9305 ;;
9306 esac
9307 runpath_var='LD_RUN_PATH'
9308 hardcode_shlibpath_var=no
9309 ;;
9310
9311 sysv4.3*)
9312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_shlibpath_var=no
9314 export_dynamic_flag_spec='-Bexport'
9315 ;;
9316
9317 sysv4*MP*)
9318 if test -d /usr/nec; then
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_shlibpath_var=no
9321 runpath_var=LD_RUN_PATH
9322 hardcode_runpath_var=yes
9323 ld_shlibs=yes
9324 fi
9325 ;;
9326
9327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9328 no_undefined_flag='${wl}-z,text'
9329 archive_cmds_need_lc=no
9330 hardcode_shlibpath_var=no
9331 runpath_var='LD_RUN_PATH'
9332
9333 if test "$GCC" = yes; then
9334 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336 else
9337 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9339 fi
9340 ;;
9341
9342 sysv5* | sco3.2v5* | sco5v6*)
9343 # Note: We can NOT use -z defs as we might desire, because we do not
9344 # link with -lc, and that would cause any symbols used from libc to
9345 # always be unresolved, which means just about no library would
9346 # ever link correctly. If we're not using GNU ld we use -z text
9347 # though, which does catch some bad symbols but isn't as heavy-handed
9348 # as -z defs.
9349 no_undefined_flag='${wl}-z,text'
9350 allow_undefined_flag='${wl}-z,nodefs'
9351 archive_cmds_need_lc=no
9352 hardcode_shlibpath_var=no
9353 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9354 hardcode_libdir_separator=':'
9355 link_all_deplibs=yes
9356 export_dynamic_flag_spec='${wl}-Bexport'
9357 runpath_var='LD_RUN_PATH'
9358
9359 if test "$GCC" = yes; then
9360 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362 else
9363 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 fi
9366 ;;
9367
9368 uts4*)
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_shlibpath_var=no
9372 ;;
9373
9374 *)
9375 ld_shlibs=no
9376 ;;
9377 esac
9378 fi
9379
9380 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9381 echo "${ECHO_T}$ld_shlibs" >&6
9382 test "$ld_shlibs" = no && can_build_shared=no
9383
9384 #
9385 # Do we need to explicitly link libc?
9386 #
9387 case "x$archive_cmds_need_lc" in
9388 x|xyes)
9389 # Assume -lc should be added
9390 archive_cmds_need_lc=yes
9391
9392 if test "$enable_shared" = yes && test "$GCC" = yes; then
9393 case $archive_cmds in
9394 *'~'*)
9395 # FIXME: we may have to deal with multi-command sequences.
9396 ;;
9397 '$CC '*)
9398 # Test whether the compiler implicitly links with -lc since on some
9399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9400 # to ld, don't add -lc before -lgcc.
9401 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9402 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9403 $rm conftest*
9404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9405
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } 2>conftest.err; then
9411 soname=conftest
9412 lib=conftest
9413 libobjs=conftest.$ac_objext
9414 deplibs=
9415 wl=$lt_prog_compiler_wl
9416 pic_flag=$lt_prog_compiler_pic
9417 compiler_flags=-v
9418 linker_flags=-v
9419 verstring=
9420 output_objdir=.
9421 libname=conftest
9422 lt_save_allow_undefined_flag=$allow_undefined_flag
9423 allow_undefined_flag=
9424 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9425 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }
9429 then
9430 archive_cmds_need_lc=no
9431 else
9432 archive_cmds_need_lc=yes
9433 fi
9434 allow_undefined_flag=$lt_save_allow_undefined_flag
9435 else
9436 cat conftest.err 1>&5
9437 fi
9438 $rm conftest*
9439 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9440 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9441 ;;
9442 esac
9443 fi
9444 ;;
9445 esac
9446
9447 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9448 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9449 library_names_spec=
9450 libname_spec='lib$name'
9451 soname_spec=
9452 shrext_cmds=".so"
9453 postinstall_cmds=
9454 postuninstall_cmds=
9455 finish_cmds=
9456 finish_eval=
9457 shlibpath_var=
9458 shlibpath_overrides_runpath=unknown
9459 version_type=none
9460 dynamic_linker="$host_os ld.so"
9461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9462 if test "$GCC" = yes; then
9463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9464 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9465 # if the path contains ";" then we assume it to be the separator
9466 # otherwise default to the standard path separator (i.e. ":") - it is
9467 # assumed that no part of a normal pathname contains ";" but that should
9468 # okay in the real world where ";" in dirpaths is itself problematic.
9469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9470 else
9471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9472 fi
9473 else
9474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9475 fi
9476 need_lib_prefix=unknown
9477 hardcode_into_libs=no
9478
9479 # when you set need_version to no, make sure it does not cause -set_version
9480 # flags to be left without arguments
9481 need_version=unknown
9482
9483 case $host_os in
9484 aix3*)
9485 version_type=linux
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9487 shlibpath_var=LIBPATH
9488
9489 # AIX 3 has no versioning support, so we append a major version to the name.
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 ;;
9492
9493 aix4* | aix5*)
9494 version_type=linux
9495 need_lib_prefix=no
9496 need_version=no
9497 hardcode_into_libs=yes
9498 if test "$host_cpu" = ia64; then
9499 # AIX 5 supports IA64
9500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 else
9503 # With GCC up to 2.95.x, collect2 would create an import file
9504 # for dependence libraries. The import file would start with
9505 # the line `#! .'. This would cause the generated library to
9506 # depend on `.', always an invalid library. This was fixed in
9507 # development snapshots of GCC prior to 3.0.
9508 case $host_os in
9509 aix4 | aix4.[01] | aix4.[01].*)
9510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9511 echo ' yes '
9512 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9513 :
9514 else
9515 can_build_shared=no
9516 fi
9517 ;;
9518 esac
9519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9520 # soname into executable. Probably we can add versioning support to
9521 # collect2, so additional links can be useful in future.
9522 if test "$aix_use_runtimelinking" = yes; then
9523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9524 # instead of lib<name>.a to let people know that these are not
9525 # typical AIX shared libraries.
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 else
9528 # We preserve .a as extension for shared libraries through AIX4.2
9529 # and later when we are not doing run time linking.
9530 library_names_spec='${libname}${release}.a $libname.a'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 fi
9533 shlibpath_var=LIBPATH
9534 fi
9535 ;;
9536
9537 amigaos*)
9538 library_names_spec='$libname.ixlibrary $libname.a'
9539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9540 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'
9541 ;;
9542
9543 beos*)
9544 library_names_spec='${libname}${shared_ext}'
9545 dynamic_linker="$host_os ld.so"
9546 shlibpath_var=LIBRARY_PATH
9547 ;;
9548
9549 bsdi[45]*)
9550 version_type=linux
9551 need_version=no
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9558 # the default ld.so.conf also contains /usr/contrib/lib and
9559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9560 # libtool to hard-code these into programs
9561 ;;
9562
9563 cygwin* | mingw* | pw32*)
9564 version_type=windows
9565 shrext_cmds=".dll"
9566 need_version=no
9567 need_lib_prefix=no
9568
9569 case $GCC,$host_os in
9570 yes,cygwin* | yes,mingw* | yes,pw32*)
9571 library_names_spec='$libname.dll.a'
9572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9573 postinstall_cmds='base_file=`basename \${file}`~
9574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9575 dldir=$destdir/`dirname \$dlpath`~
9576 test -d \$dldir || mkdir -p \$dldir~
9577 $install_prog $dir/$dlname \$dldir/$dlname~
9578 chmod a+x \$dldir/$dlname'
9579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9580 dlpath=$dir/\$dldll~
9581 $rm \$dlpath'
9582 shlibpath_overrides_runpath=yes
9583
9584 case $host_os in
9585 cygwin*)
9586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9589 ;;
9590 mingw*)
9591 # MinGW DLLs use traditional 'lib' prefix
9592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9595 # It is most probably a Windows format PATH printed by
9596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9597 # path with ; separators, and with drive letters. We can handle the
9598 # drive letters (cygwin fileutils understands them), so leave them,
9599 # especially as we might pass files found there to a mingw objdump,
9600 # which wouldn't understand a cygwinified path. Ahh.
9601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9602 else
9603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9604 fi
9605 ;;
9606 pw32*)
9607 # pw32 DLLs use 'pw' prefix rather than 'lib'
9608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9609 ;;
9610 esac
9611 ;;
9612
9613 *)
9614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9615 ;;
9616 esac
9617 dynamic_linker='Win32 ld.exe'
9618 # FIXME: first we should search . and the directory the executable is in
9619 shlibpath_var=PATH
9620 ;;
9621
9622 darwin* | rhapsody*)
9623 dynamic_linker="$host_os dyld"
9624 version_type=darwin
9625 need_lib_prefix=no
9626 need_version=no
9627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9628 soname_spec='${libname}${release}${major}$shared_ext'
9629 shlibpath_overrides_runpath=yes
9630 shlibpath_var=DYLD_LIBRARY_PATH
9631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9633 if test "$GCC" = yes; then
9634 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"`
9635 else
9636 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9637 fi
9638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9639 ;;
9640
9641 dgux*)
9642 version_type=linux
9643 need_lib_prefix=no
9644 need_version=no
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 ;;
9649
9650 freebsd1*)
9651 dynamic_linker=no
9652 ;;
9653
9654 kfreebsd*-gnu)
9655 version_type=linux
9656 need_lib_prefix=no
9657 need_version=no
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=no
9662 hardcode_into_libs=yes
9663 dynamic_linker='GNU ld.so'
9664 ;;
9665
9666 freebsd* | dragonfly*)
9667 # DragonFly does not have aout. When/if they implement a new
9668 # versioning mechanism, adjust this.
9669 if test -x /usr/bin/objformat; then
9670 objformat=`/usr/bin/objformat`
9671 else
9672 case $host_os in
9673 freebsd[123]*) objformat=aout ;;
9674 *) objformat=elf ;;
9675 esac
9676 fi
9677 version_type=freebsd-$objformat
9678 case $version_type in
9679 freebsd-elf*)
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9681 need_version=no
9682 need_lib_prefix=no
9683 ;;
9684 freebsd-*)
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9686 need_version=yes
9687 ;;
9688 esac
9689 shlibpath_var=LD_LIBRARY_PATH
9690 case $host_os in
9691 freebsd2*)
9692 shlibpath_overrides_runpath=yes
9693 ;;
9694 freebsd3.[01]* | freebsdelf3.[01]*)
9695 shlibpath_overrides_runpath=yes
9696 hardcode_into_libs=yes
9697 ;;
9698 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9699 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9700 shlibpath_overrides_runpath=no
9701 hardcode_into_libs=yes
9702 ;;
9703 freebsd*) # from 4.6 on
9704 shlibpath_overrides_runpath=yes
9705 hardcode_into_libs=yes
9706 ;;
9707 esac
9708 ;;
9709
9710 gnu*)
9711 version_type=linux
9712 need_lib_prefix=no
9713 need_version=no
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 hardcode_into_libs=yes
9718 ;;
9719
9720 hpux9* | hpux10* | hpux11*)
9721 # Give a soname corresponding to the major version so that dld.sl refuses to
9722 # link against other versions.
9723 version_type=sunos
9724 need_lib_prefix=no
9725 need_version=no
9726 case $host_cpu in
9727 ia64*)
9728 shrext_cmds='.so'
9729 hardcode_into_libs=yes
9730 dynamic_linker="$host_os dld.so"
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 if test "X$HPUX_IA64_MODE" = X32; then
9736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9737 else
9738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9739 fi
9740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9741 ;;
9742 hppa*64*)
9743 shrext_cmds='.sl'
9744 hardcode_into_libs=yes
9745 dynamic_linker="$host_os dld.sl"
9746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9752 ;;
9753 *)
9754 shrext_cmds='.sl'
9755 dynamic_linker="$host_os dld.sl"
9756 shlibpath_var=SHLIB_PATH
9757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 ;;
9761 esac
9762 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9763 postinstall_cmds='chmod 555 $lib'
9764 ;;
9765
9766 interix3*)
9767 version_type=linux
9768 need_lib_prefix=no
9769 need_version=no
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 shlibpath_overrides_runpath=no
9775 hardcode_into_libs=yes
9776 ;;
9777
9778 irix5* | irix6* | nonstopux*)
9779 case $host_os in
9780 nonstopux*) version_type=nonstopux ;;
9781 *)
9782 if test "$lt_cv_prog_gnu_ld" = yes; then
9783 version_type=linux
9784 else
9785 version_type=irix
9786 fi ;;
9787 esac
9788 need_lib_prefix=no
9789 need_version=no
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9792 case $host_os in
9793 irix5* | nonstopux*)
9794 libsuff= shlibsuff=
9795 ;;
9796 *)
9797 case $LD in # libtool.m4 will add one of these switches to LD
9798 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9799 libsuff= shlibsuff= libmagic=32-bit;;
9800 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9801 libsuff=32 shlibsuff=N32 libmagic=N32;;
9802 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9803 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9804 *) libsuff= shlibsuff= libmagic=never-match;;
9805 esac
9806 ;;
9807 esac
9808 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9809 shlibpath_overrides_runpath=no
9810 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9811 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9812 hardcode_into_libs=yes
9813 ;;
9814
9815 # No shared lib support for Linux oldld, aout, or coff.
9816 linux*oldld* | linux*aout* | linux*coff*)
9817 dynamic_linker=no
9818 ;;
9819
9820 # This must be Linux ELF.
9821 linux*)
9822 version_type=linux
9823 need_lib_prefix=no
9824 need_version=no
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 shlibpath_overrides_runpath=no
9830 # This implies no fast_install, which is unacceptable.
9831 # Some rework will be needed to allow for fast_install
9832 # before this can be enabled.
9833 hardcode_into_libs=yes
9834
9835 # Append ld.so.conf contents to the search path
9836 if test -f /etc/ld.so.conf; then
9837 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' ' '`
9838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9839 fi
9840
9841 # We used to test for /lib/ld.so.1 and disable shared libraries on
9842 # powerpc, because MkLinux only supported shared libraries with the
9843 # GNU dynamic linker. Since this was broken with cross compilers,
9844 # most powerpc-linux boxes support dynamic linking these days and
9845 # people can always --disable-shared, the test was removed, and we
9846 # assume the GNU/Linux dynamic linker is in use.
9847 dynamic_linker='GNU/Linux ld.so'
9848 ;;
9849
9850 knetbsd*-gnu)
9851 version_type=linux
9852 need_lib_prefix=no
9853 need_version=no
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=no
9858 hardcode_into_libs=yes
9859 dynamic_linker='GNU ld.so'
9860 ;;
9861
9862 netbsd*)
9863 version_type=sunos
9864 need_lib_prefix=no
9865 need_version=no
9866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 dynamic_linker='NetBSD (a.out) ld.so'
9870 else
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 dynamic_linker='NetBSD ld.elf_so'
9874 fi
9875 shlibpath_var=LD_LIBRARY_PATH
9876 shlibpath_overrides_runpath=yes
9877 hardcode_into_libs=yes
9878 ;;
9879
9880 newsos6)
9881 version_type=linux
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 ;;
9886
9887 nto-qnx*)
9888 version_type=linux
9889 need_lib_prefix=no
9890 need_version=no
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 shlibpath_overrides_runpath=yes
9895 ;;
9896
9897 openbsd*)
9898 version_type=sunos
9899 sys_lib_dlsearch_path_spec="/usr/lib"
9900 need_lib_prefix=no
9901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9902 case $host_os in
9903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9904 *) need_version=no ;;
9905 esac
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9910 case $host_os in
9911 openbsd2.[89] | openbsd2.[89].*)
9912 shlibpath_overrides_runpath=no
9913 ;;
9914 *)
9915 shlibpath_overrides_runpath=yes
9916 ;;
9917 esac
9918 else
9919 shlibpath_overrides_runpath=yes
9920 fi
9921 ;;
9922
9923 os2*)
9924 libname_spec='$name'
9925 shrext_cmds=".dll"
9926 need_lib_prefix=no
9927 library_names_spec='$libname${shared_ext} $libname.a'
9928 dynamic_linker='OS/2 ld.exe'
9929 shlibpath_var=LIBPATH
9930 ;;
9931
9932 osf3* | osf4* | osf5*)
9933 version_type=osf
9934 need_lib_prefix=no
9935 need_version=no
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9941 ;;
9942
9943 solaris*)
9944 version_type=linux
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=yes
9951 hardcode_into_libs=yes
9952 # ldd complains unless libraries are executable
9953 postinstall_cmds='chmod +x $lib'
9954 ;;
9955
9956 sunos4*)
9957 version_type=sunos
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9962 if test "$with_gnu_ld" = yes; then
9963 need_lib_prefix=no
9964 fi
9965 need_version=yes
9966 ;;
9967
9968 sysv4 | sysv4.3*)
9969 version_type=linux
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 case $host_vendor in
9974 sni)
9975 shlibpath_overrides_runpath=no
9976 need_lib_prefix=no
9977 export_dynamic_flag_spec='${wl}-Blargedynsym'
9978 runpath_var=LD_RUN_PATH
9979 ;;
9980 siemens)
9981 need_lib_prefix=no
9982 ;;
9983 motorola)
9984 need_lib_prefix=no
9985 need_version=no
9986 shlibpath_overrides_runpath=no
9987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9988 ;;
9989 esac
9990 ;;
9991
9992 sysv4*MP*)
9993 if test -d /usr/nec ;then
9994 version_type=linux
9995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9996 soname_spec='$libname${shared_ext}.$major'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 fi
9999 ;;
10000
10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10002 version_type=freebsd-elf
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 hardcode_into_libs=yes
10009 if test "$with_gnu_ld" = yes; then
10010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10011 shlibpath_overrides_runpath=no
10012 else
10013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10014 shlibpath_overrides_runpath=yes
10015 case $host_os in
10016 sco3.2v5*)
10017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10018 ;;
10019 esac
10020 fi
10021 sys_lib_dlsearch_path_spec='/usr/lib'
10022 ;;
10023
10024 uts4*)
10025 version_type=linux
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 ;;
10030
10031 *)
10032 dynamic_linker=no
10033 ;;
10034 esac
10035 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10036 echo "${ECHO_T}$dynamic_linker" >&6
10037 test "$dynamic_linker" = no && can_build_shared=no
10038
10039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10040 if test "$GCC" = yes; then
10041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10042 fi
10043
10044 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10045 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10046 hardcode_action=
10047 if test -n "$hardcode_libdir_flag_spec" || \
10048 test -n "$runpath_var" || \
10049 test "X$hardcode_automatic" = "Xyes" ; then
10050
10051 # We can hardcode non-existant directories.
10052 if test "$hardcode_direct" != no &&
10053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10054 # have to relink, otherwise we might link with an installed library
10055 # when we should be linking with a yet-to-be-installed one
10056 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10057 test "$hardcode_minus_L" != no; then
10058 # Linking always hardcodes the temporary library directory.
10059 hardcode_action=relink
10060 else
10061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10062 hardcode_action=immediate
10063 fi
10064 else
10065 # We cannot hardcode anything, or else we can only hardcode existing
10066 # directories.
10067 hardcode_action=unsupported
10068 fi
10069 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10070 echo "${ECHO_T}$hardcode_action" >&6
10071
10072 if test "$hardcode_action" = relink; then
10073 # Fast installation is not supported
10074 enable_fast_install=no
10075 elif test "$shlibpath_overrides_runpath" = yes ||
10076 test "$enable_shared" = no; then
10077 # Fast installation is not necessary
10078 enable_fast_install=needless
10079 fi
10080
10081 striplib=
10082 old_striplib=
10083 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10084 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10085 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10086 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10087 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10088 echo "$as_me:$LINENO: result: yes" >&5
10089 echo "${ECHO_T}yes" >&6
10090 else
10091 # FIXME - insert some real tests, host_os isn't really good enough
10092 case $host_os in
10093 darwin*)
10094 if test -n "$STRIP" ; then
10095 striplib="$STRIP -x"
10096 echo "$as_me:$LINENO: result: yes" >&5
10097 echo "${ECHO_T}yes" >&6
10098 else
10099 echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6
10101 fi
10102 ;;
10103 *)
10104 echo "$as_me:$LINENO: result: no" >&5
10105 echo "${ECHO_T}no" >&6
10106 ;;
10107 esac
10108 fi
10109
10110 if test "x$enable_dlopen" != xyes; then
10111 enable_dlopen=unknown
10112 enable_dlopen_self=unknown
10113 enable_dlopen_self_static=unknown
10114 else
10115 lt_cv_dlopen=no
10116 lt_cv_dlopen_libs=
10117
10118 case $host_os in
10119 beos*)
10120 lt_cv_dlopen="load_add_on"
10121 lt_cv_dlopen_libs=
10122 lt_cv_dlopen_self=yes
10123 ;;
10124
10125 mingw* | pw32*)
10126 lt_cv_dlopen="LoadLibrary"
10127 lt_cv_dlopen_libs=
10128 ;;
10129
10130 cygwin*)
10131 lt_cv_dlopen="dlopen"
10132 lt_cv_dlopen_libs=
10133 ;;
10134
10135 darwin*)
10136 # if libdl is installed we need to link against it
10137 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10138 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10139 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-ldl $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150
10151 /* Override any gcc2 internal prototype to avoid an error. */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 /* We use char because int might match the return type of a gcc2
10156 builtin and then its argument prototype would still apply. */
10157 char dlopen ();
10158 int
10159 main ()
10160 {
10161 dlopen ();
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest$ac_exeext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 ac_cv_lib_dl_dlopen=yes
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 ac_cv_lib_dl_dlopen=no
10194 fi
10195 rm -f conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 LIBS=$ac_check_lib_save_LIBS
10198 fi
10199 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10200 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10201 if test $ac_cv_lib_dl_dlopen = yes; then
10202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10203 else
10204
10205 lt_cv_dlopen="dyld"
10206 lt_cv_dlopen_libs=
10207 lt_cv_dlopen_self=yes
10208
10209 fi
10210
10211 ;;
10212
10213 *)
10214 echo "$as_me:$LINENO: checking for shl_load" >&5
10215 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10216 if test "${ac_cv_func_shl_load+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10227 #define shl_load innocuous_shl_load
10228
10229 /* System header to define __stub macros and hopefully few prototypes,
10230 which can conflict with char shl_load (); below.
10231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10232 <limits.h> exists even on freestanding compilers. */
10233
10234 #ifdef __STDC__
10235 # include <limits.h>
10236 #else
10237 # include <assert.h>
10238 #endif
10239
10240 #undef shl_load
10241
10242 /* Override any gcc2 internal prototype to avoid an error. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 {
10246 #endif
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249 char shl_load ();
10250 /* The GNU C library defines this for functions which it implements
10251 to always fail with ENOSYS. Some functions are actually named
10252 something starting with __ and the normal name is an alias. */
10253 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10254 choke me
10255 #else
10256 char (*f) () = shl_load;
10257 #endif
10258 #ifdef __cplusplus
10259 }
10260 #endif
10261
10262 int
10263 main ()
10264 {
10265 return f != shl_load;
10266 ;
10267 return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_func_shl_load=yes
10293 else
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_cv_func_shl_load=no
10298 fi
10299 rm -f conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10301 fi
10302 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10303 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10304 if test $ac_cv_func_shl_load = yes; then
10305 lt_cv_dlopen="shl_load"
10306 else
10307 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 ac_check_lib_save_LIBS=$LIBS
10313 LIBS="-ldld $LIBS"
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 #ifdef __cplusplus
10323 extern "C"
10324 #endif
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char shl_load ();
10328 int
10329 main ()
10330 {
10331 shl_load ();
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_lib_dld_shl_load=yes
10359 else
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_cv_lib_dld_shl_load=no
10364 fi
10365 rm -f conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_lib_save_LIBS
10368 fi
10369 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10370 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10371 if test $ac_cv_lib_dld_shl_load = yes; then
10372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10373 else
10374 echo "$as_me:$LINENO: checking for dlopen" >&5
10375 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10376 if test "${ac_cv_func_dlopen+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10387 #define dlopen innocuous_dlopen
10388
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char dlopen (); below.
10391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392 <limits.h> exists even on freestanding compilers. */
10393
10394 #ifdef __STDC__
10395 # include <limits.h>
10396 #else
10397 # include <assert.h>
10398 #endif
10399
10400 #undef dlopen
10401
10402 /* Override any gcc2 internal prototype to avoid an error. */
10403 #ifdef __cplusplus
10404 extern "C"
10405 {
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char dlopen ();
10410 /* The GNU C library defines this for functions which it implements
10411 to always fail with ENOSYS. Some functions are actually named
10412 something starting with __ and the normal name is an alias. */
10413 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10414 choke me
10415 #else
10416 char (*f) () = dlopen;
10417 #endif
10418 #ifdef __cplusplus
10419 }
10420 #endif
10421
10422 int
10423 main ()
10424 {
10425 return f != dlopen;
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_c_werror_flag"
10440 || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_func_dlopen=yes
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 ac_cv_func_dlopen=no
10458 fi
10459 rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461 fi
10462 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10463 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10464 if test $ac_cv_func_dlopen = yes; then
10465 lt_cv_dlopen="dlopen"
10466 else
10467 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10468 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10469 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-ldl $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char dlopen ();
10488 int
10489 main ()
10490 {
10491 dlopen ();
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_lib_dl_dlopen=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_cv_lib_dl_dlopen=no
10524 fi
10525 rm -f conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10531 if test $ac_cv_lib_dl_dlopen = yes; then
10532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10533 else
10534 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10535 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10536 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lsvld $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547
10548 /* Override any gcc2 internal prototype to avoid an error. */
10549 #ifdef __cplusplus
10550 extern "C"
10551 #endif
10552 /* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10554 char dlopen ();
10555 int
10556 main ()
10557 {
10558 dlopen ();
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_lib_svld_dlopen=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 ac_cv_lib_svld_dlopen=no
10591 fi
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10595 fi
10596 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10597 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10598 if test $ac_cv_lib_svld_dlopen = yes; then
10599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10600 else
10601 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10602 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10603 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-ldld $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614
10615 /* Override any gcc2 internal prototype to avoid an error. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10621 char dld_link ();
10622 int
10623 main ()
10624 {
10625 dld_link ();
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_lib_dld_dld_link=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_cv_lib_dld_dld_link=no
10658 fi
10659 rm -f conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10662 fi
10663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10665 if test $ac_cv_lib_dld_dld_link = yes; then
10666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10667 fi
10668
10669
10670 fi
10671
10672
10673 fi
10674
10675
10676 fi
10677
10678
10679 fi
10680
10681
10682 fi
10683
10684 ;;
10685 esac
10686
10687 if test "x$lt_cv_dlopen" != xno; then
10688 enable_dlopen=yes
10689 else
10690 enable_dlopen=no
10691 fi
10692
10693 case $lt_cv_dlopen in
10694 dlopen)
10695 save_CPPFLAGS="$CPPFLAGS"
10696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10697
10698 save_LDFLAGS="$LDFLAGS"
10699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10700
10701 save_LIBS="$LIBS"
10702 LIBS="$lt_cv_dlopen_libs $LIBS"
10703
10704 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10706 if test "${lt_cv_dlopen_self+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709 if test "$cross_compiling" = yes; then :
10710 lt_cv_dlopen_self=cross
10711 else
10712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10713 lt_status=$lt_dlunknown
10714 cat > conftest.$ac_ext <<EOF
10715 #line 10715 "configure"
10716 #include "confdefs.h"
10717
10718 #if HAVE_DLFCN_H
10719 #include <dlfcn.h>
10720 #endif
10721
10722 #include <stdio.h>
10723
10724 #ifdef RTLD_GLOBAL
10725 # define LT_DLGLOBAL RTLD_GLOBAL
10726 #else
10727 # ifdef DL_GLOBAL
10728 # define LT_DLGLOBAL DL_GLOBAL
10729 # else
10730 # define LT_DLGLOBAL 0
10731 # endif
10732 #endif
10733
10734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10735 find out it does not work in some platform. */
10736 #ifndef LT_DLLAZY_OR_NOW
10737 # ifdef RTLD_LAZY
10738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10739 # else
10740 # ifdef DL_LAZY
10741 # define LT_DLLAZY_OR_NOW DL_LAZY
10742 # else
10743 # ifdef RTLD_NOW
10744 # define LT_DLLAZY_OR_NOW RTLD_NOW
10745 # else
10746 # ifdef DL_NOW
10747 # define LT_DLLAZY_OR_NOW DL_NOW
10748 # else
10749 # define LT_DLLAZY_OR_NOW 0
10750 # endif
10751 # endif
10752 # endif
10753 # endif
10754 #endif
10755
10756 #ifdef __cplusplus
10757 extern "C" void exit (int);
10758 #endif
10759
10760 void fnord() { int i=42;}
10761 int main ()
10762 {
10763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10764 int status = $lt_dlunknown;
10765
10766 if (self)
10767 {
10768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10770 /* dlclose (self); */
10771 }
10772 else
10773 puts (dlerror ());
10774
10775 exit (status);
10776 }
10777 EOF
10778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10779 (eval $ac_link) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10783 (./conftest; exit; ) >&5 2>/dev/null
10784 lt_status=$?
10785 case x$lt_status in
10786 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10787 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10788 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10789 esac
10790 else :
10791 # compilation failed
10792 lt_cv_dlopen_self=no
10793 fi
10794 fi
10795 rm -fr conftest*
10796
10797
10798 fi
10799 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10800 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10801
10802 if test "x$lt_cv_dlopen_self" = xyes; then
10803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10804 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10805 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10806 if test "${lt_cv_dlopen_self_static+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 if test "$cross_compiling" = yes; then :
10810 lt_cv_dlopen_self_static=cross
10811 else
10812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10813 lt_status=$lt_dlunknown
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10817
10818 #if HAVE_DLFCN_H
10819 #include <dlfcn.h>
10820 #endif
10821
10822 #include <stdio.h>
10823
10824 #ifdef RTLD_GLOBAL
10825 # define LT_DLGLOBAL RTLD_GLOBAL
10826 #else
10827 # ifdef DL_GLOBAL
10828 # define LT_DLGLOBAL DL_GLOBAL
10829 # else
10830 # define LT_DLGLOBAL 0
10831 # endif
10832 #endif
10833
10834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10835 find out it does not work in some platform. */
10836 #ifndef LT_DLLAZY_OR_NOW
10837 # ifdef RTLD_LAZY
10838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10839 # else
10840 # ifdef DL_LAZY
10841 # define LT_DLLAZY_OR_NOW DL_LAZY
10842 # else
10843 # ifdef RTLD_NOW
10844 # define LT_DLLAZY_OR_NOW RTLD_NOW
10845 # else
10846 # ifdef DL_NOW
10847 # define LT_DLLAZY_OR_NOW DL_NOW
10848 # else
10849 # define LT_DLLAZY_OR_NOW 0
10850 # endif
10851 # endif
10852 # endif
10853 # endif
10854 #endif
10855
10856 #ifdef __cplusplus
10857 extern "C" void exit (int);
10858 #endif
10859
10860 void fnord() { int i=42;}
10861 int main ()
10862 {
10863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10864 int status = $lt_dlunknown;
10865
10866 if (self)
10867 {
10868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10870 /* dlclose (self); */
10871 }
10872 else
10873 puts (dlerror ());
10874
10875 exit (status);
10876 }
10877 EOF
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10879 (eval $ac_link) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10883 (./conftest; exit; ) >&5 2>/dev/null
10884 lt_status=$?
10885 case x$lt_status in
10886 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10887 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10888 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10889 esac
10890 else :
10891 # compilation failed
10892 lt_cv_dlopen_self_static=no
10893 fi
10894 fi
10895 rm -fr conftest*
10896
10897
10898 fi
10899 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10900 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10901 fi
10902
10903 CPPFLAGS="$save_CPPFLAGS"
10904 LDFLAGS="$save_LDFLAGS"
10905 LIBS="$save_LIBS"
10906 ;;
10907 esac
10908
10909 case $lt_cv_dlopen_self in
10910 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10911 *) enable_dlopen_self=unknown ;;
10912 esac
10913
10914 case $lt_cv_dlopen_self_static in
10915 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10916 *) enable_dlopen_self_static=unknown ;;
10917 esac
10918 fi
10919
10920
10921 # Report which library types will actually be built
10922 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10923 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10924 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10925 echo "${ECHO_T}$can_build_shared" >&6
10926
10927 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10928 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10929 test "$can_build_shared" = "no" && enable_shared=no
10930
10931 # On AIX, shared libraries and static libraries use the same namespace, and
10932 # are all built from PIC.
10933 case $host_os in
10934 aix3*)
10935 test "$enable_shared" = yes && enable_static=no
10936 if test -n "$RANLIB"; then
10937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10938 postinstall_cmds='$RANLIB $lib'
10939 fi
10940 ;;
10941
10942 aix4* | aix5*)
10943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10944 test "$enable_shared" = yes && enable_static=no
10945 fi
10946 ;;
10947 esac
10948 echo "$as_me:$LINENO: result: $enable_shared" >&5
10949 echo "${ECHO_T}$enable_shared" >&6
10950
10951 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10952 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10953 # Make sure either enable_shared or enable_static is yes.
10954 test "$enable_shared" = yes || enable_static=yes
10955 echo "$as_me:$LINENO: result: $enable_static" >&5
10956 echo "${ECHO_T}$enable_static" >&6
10957
10958 # The else clause should only fire when bootstrapping the
10959 # libtool distribution, otherwise you forgot to ship ltmain.sh
10960 # with your package, and you will get complaints that there are
10961 # no rules to generate ltmain.sh.
10962 if test -f "$ltmain"; then
10963 # See if we are running on zsh, and set the options which allow our commands through
10964 # without removal of \ escapes.
10965 if test -n "${ZSH_VERSION+set}" ; then
10966 setopt NO_GLOB_SUBST
10967 fi
10968 # Now quote all the things that may contain metacharacters while being
10969 # careful not to overquote the AC_SUBSTed values. We take copies of the
10970 # variables and quote the copies for generation of the libtool script.
10971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10972 SED SHELL STRIP \
10973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10975 deplibs_check_method reload_flag reload_cmds need_locks \
10976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10977 lt_cv_sys_global_symbol_to_c_name_address \
10978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10979 old_postinstall_cmds old_postuninstall_cmds \
10980 compiler \
10981 CC \
10982 LD \
10983 lt_prog_compiler_wl \
10984 lt_prog_compiler_pic \
10985 lt_prog_compiler_static \
10986 lt_prog_compiler_no_builtin_flag \
10987 export_dynamic_flag_spec \
10988 thread_safe_flag_spec \
10989 whole_archive_flag_spec \
10990 enable_shared_with_static_runtimes \
10991 old_archive_cmds \
10992 old_archive_from_new_cmds \
10993 predep_objects \
10994 postdep_objects \
10995 predeps \
10996 postdeps \
10997 compiler_lib_search_path \
10998 archive_cmds \
10999 archive_expsym_cmds \
11000 postinstall_cmds \
11001 postuninstall_cmds \
11002 old_archive_from_expsyms_cmds \
11003 allow_undefined_flag \
11004 no_undefined_flag \
11005 export_symbols_cmds \
11006 hardcode_libdir_flag_spec \
11007 hardcode_libdir_flag_spec_ld \
11008 hardcode_libdir_separator \
11009 hardcode_automatic \
11010 module_cmds \
11011 module_expsym_cmds \
11012 lt_cv_prog_compiler_c_o \
11013 exclude_expsyms \
11014 include_expsyms; do
11015
11016 case $var in
11017 old_archive_cmds | \
11018 old_archive_from_new_cmds | \
11019 archive_cmds | \
11020 archive_expsym_cmds | \
11021 module_cmds | \
11022 module_expsym_cmds | \
11023 old_archive_from_expsyms_cmds | \
11024 export_symbols_cmds | \
11025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11026 postinstall_cmds | postuninstall_cmds | \
11027 old_postinstall_cmds | old_postuninstall_cmds | \
11028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11029 # Double-quote double-evaled strings.
11030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11031 ;;
11032 *)
11033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11034 ;;
11035 esac
11036 done
11037
11038 case $lt_echo in
11039 *'\$0 --fallback-echo"')
11040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11041 ;;
11042 esac
11043
11044 cfgfile="${ofile}T"
11045 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11046 $rm -f "$cfgfile"
11047 { echo "$as_me:$LINENO: creating $ofile" >&5
11048 echo "$as_me: creating $ofile" >&6;}
11049
11050 cat <<__EOF__ >> "$cfgfile"
11051 #! $SHELL
11052
11053 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11054 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11055 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11056 #
11057 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11058 # Free Software Foundation, Inc.
11059 #
11060 # This file is part of GNU Libtool:
11061 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11062 #
11063 # This program is free software; you can redistribute it and/or modify
11064 # it under the terms of the GNU General Public License as published by
11065 # the Free Software Foundation; either version 2 of the License, or
11066 # (at your option) any later version.
11067 #
11068 # This program is distributed in the hope that it will be useful, but
11069 # WITHOUT ANY WARRANTY; without even the implied warranty of
11070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11071 # General Public License for more details.
11072 #
11073 # You should have received a copy of the GNU General Public License
11074 # along with this program; if not, write to the Free Software
11075 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11076 #
11077 # As a special exception to the GNU General Public License, if you
11078 # distribute this file as part of a program that contains a
11079 # configuration script generated by Autoconf, you may include it under
11080 # the same distribution terms that you use for the rest of that program.
11081
11082 # A sed program that does not truncate output.
11083 SED=$lt_SED
11084
11085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11086 Xsed="$SED -e 1s/^X//"
11087
11088 # The HP-UX ksh and POSIX shell print the target directory to stdout
11089 # if CDPATH is set.
11090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11091
11092 # The names of the tagged configurations supported by this script.
11093 available_tags=
11094
11095 # ### BEGIN LIBTOOL CONFIG
11096
11097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11098
11099 # Shell to use when invoking shell scripts.
11100 SHELL=$lt_SHELL
11101
11102 # Whether or not to build shared libraries.
11103 build_libtool_libs=$enable_shared
11104
11105 # Whether or not to build static libraries.
11106 build_old_libs=$enable_static
11107
11108 # Whether or not to add -lc for building shared libraries.
11109 build_libtool_need_lc=$archive_cmds_need_lc
11110
11111 # Whether or not to disallow shared libs when runtime libs are static
11112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11113
11114 # Whether or not to optimize for fast installation.
11115 fast_install=$enable_fast_install
11116
11117 # The host system.
11118 host_alias=$host_alias
11119 host=$host
11120 host_os=$host_os
11121
11122 # The build system.
11123 build_alias=$build_alias
11124 build=$build
11125 build_os=$build_os
11126
11127 # An echo program that does not interpret backslashes.
11128 echo=$lt_echo
11129
11130 # The archiver.
11131 AR=$lt_AR
11132 AR_FLAGS=$lt_AR_FLAGS
11133
11134 # A C compiler.
11135 LTCC=$lt_LTCC
11136
11137 # LTCC compiler flags.
11138 LTCFLAGS=$lt_LTCFLAGS
11139
11140 # A language-specific compiler.
11141 CC=$lt_compiler
11142
11143 # Is the compiler the GNU C compiler?
11144 with_gcc=$GCC
11145
11146 # An ERE matcher.
11147 EGREP=$lt_EGREP
11148
11149 # The linker used to build libraries.
11150 LD=$lt_LD
11151
11152 # Whether we need hard or soft links.
11153 LN_S=$lt_LN_S
11154
11155 # A BSD-compatible nm program.
11156 NM=$lt_NM
11157
11158 # A symbol stripping program
11159 STRIP=$lt_STRIP
11160
11161 # Used to examine libraries when file_magic_cmd begins "file"
11162 MAGIC_CMD=$MAGIC_CMD
11163
11164 # Used on cygwin: DLL creation program.
11165 DLLTOOL="$DLLTOOL"
11166
11167 # Used on cygwin: object dumper.
11168 OBJDUMP="$OBJDUMP"
11169
11170 # Used on cygwin: assembler.
11171 AS="$AS"
11172
11173 # The name of the directory that contains temporary libtool files.
11174 objdir=$objdir
11175
11176 # How to create reloadable object files.
11177 reload_flag=$lt_reload_flag
11178 reload_cmds=$lt_reload_cmds
11179
11180 # How to pass a linker flag through the compiler.
11181 wl=$lt_lt_prog_compiler_wl
11182
11183 # Object file suffix (normally "o").
11184 objext="$ac_objext"
11185
11186 # Old archive suffix (normally "a").
11187 libext="$libext"
11188
11189 # Shared library suffix (normally ".so").
11190 shrext_cmds='$shrext_cmds'
11191
11192 # Executable file suffix (normally "").
11193 exeext="$exeext"
11194
11195 # Additional compiler flags for building library objects.
11196 pic_flag=$lt_lt_prog_compiler_pic
11197 pic_mode=$pic_mode
11198
11199 # What is the maximum length of a command?
11200 max_cmd_len=$lt_cv_sys_max_cmd_len
11201
11202 # Does compiler simultaneously support -c and -o options?
11203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11204
11205 # Must we lock files when doing compilation?
11206 need_locks=$lt_need_locks
11207
11208 # Do we need the lib prefix for modules?
11209 need_lib_prefix=$need_lib_prefix
11210
11211 # Do we need a version for libraries?
11212 need_version=$need_version
11213
11214 # Whether dlopen is supported.
11215 dlopen_support=$enable_dlopen
11216
11217 # Whether dlopen of programs is supported.
11218 dlopen_self=$enable_dlopen_self
11219
11220 # Whether dlopen of statically linked programs is supported.
11221 dlopen_self_static=$enable_dlopen_self_static
11222
11223 # Compiler flag to prevent dynamic linking.
11224 link_static_flag=$lt_lt_prog_compiler_static
11225
11226 # Compiler flag to turn off builtin functions.
11227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11228
11229 # Compiler flag to allow reflexive dlopens.
11230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11231
11232 # Compiler flag to generate shared objects directly from archives.
11233 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11234
11235 # Compiler flag to generate thread-safe objects.
11236 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11237
11238 # Library versioning type.
11239 version_type=$version_type
11240
11241 # Format of library name prefix.
11242 libname_spec=$lt_libname_spec
11243
11244 # List of archive names. First name is the real one, the rest are links.
11245 # The last name is the one that the linker finds with -lNAME.
11246 library_names_spec=$lt_library_names_spec
11247
11248 # The coded name of the library, if different from the real name.
11249 soname_spec=$lt_soname_spec
11250
11251 # Commands used to build and install an old-style archive.
11252 RANLIB=$lt_RANLIB
11253 old_archive_cmds=$lt_old_archive_cmds
11254 old_postinstall_cmds=$lt_old_postinstall_cmds
11255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11256
11257 # Create an old-style archive from a shared archive.
11258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11259
11260 # Create a temporary old-style archive to link instead of a shared archive.
11261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11262
11263 # Commands used to build and install a shared archive.
11264 archive_cmds=$lt_archive_cmds
11265 archive_expsym_cmds=$lt_archive_expsym_cmds
11266 postinstall_cmds=$lt_postinstall_cmds
11267 postuninstall_cmds=$lt_postuninstall_cmds
11268
11269 # Commands used to build a loadable module (assumed same as above if empty)
11270 module_cmds=$lt_module_cmds
11271 module_expsym_cmds=$lt_module_expsym_cmds
11272
11273 # Commands to strip libraries.
11274 old_striplib=$lt_old_striplib
11275 striplib=$lt_striplib
11276
11277 # Dependencies to place before the objects being linked to create a
11278 # shared library.
11279 predep_objects=$lt_predep_objects
11280
11281 # Dependencies to place after the objects being linked to create a
11282 # shared library.
11283 postdep_objects=$lt_postdep_objects
11284
11285 # Dependencies to place before the objects being linked to create a
11286 # shared library.
11287 predeps=$lt_predeps
11288
11289 # Dependencies to place after the objects being linked to create a
11290 # shared library.
11291 postdeps=$lt_postdeps
11292
11293 # The library search path used internally by the compiler when linking
11294 # a shared library.
11295 compiler_lib_search_path=$lt_compiler_lib_search_path
11296
11297 # Method to check whether dependent libraries are shared objects.
11298 deplibs_check_method=$lt_deplibs_check_method
11299
11300 # Command to use when deplibs_check_method == file_magic.
11301 file_magic_cmd=$lt_file_magic_cmd
11302
11303 # Flag that allows shared libraries with undefined symbols to be built.
11304 allow_undefined_flag=$lt_allow_undefined_flag
11305
11306 # Flag that forces no undefined symbols.
11307 no_undefined_flag=$lt_no_undefined_flag
11308
11309 # Commands used to finish a libtool library installation in a directory.
11310 finish_cmds=$lt_finish_cmds
11311
11312 # Same as above, but a single script fragment to be evaled but not shown.
11313 finish_eval=$lt_finish_eval
11314
11315 # Take the output of nm and produce a listing of raw symbols and C names.
11316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11317
11318 # Transform the output of nm in a proper C declaration
11319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11320
11321 # Transform the output of nm in a C name address pair
11322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11323
11324 # This is the shared library runtime path variable.
11325 runpath_var=$runpath_var
11326
11327 # This is the shared library path variable.
11328 shlibpath_var=$shlibpath_var
11329
11330 # Is shlibpath searched before the hard-coded library search path?
11331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11332
11333 # How to hardcode a shared library path into an executable.
11334 hardcode_action=$hardcode_action
11335
11336 # Whether we should hardcode library paths into libraries.
11337 hardcode_into_libs=$hardcode_into_libs
11338
11339 # Flag to hardcode \$libdir into a binary during linking.
11340 # This must work even if \$libdir does not exist.
11341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11342
11343 # If ld is used when linking, flag to hardcode \$libdir into
11344 # a binary during linking. This must work even if \$libdir does
11345 # not exist.
11346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11347
11348 # Whether we need a single -rpath flag with a separated argument.
11349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11350
11351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11352 # resulting binary.
11353 hardcode_direct=$hardcode_direct
11354
11355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11356 # resulting binary.
11357 hardcode_minus_L=$hardcode_minus_L
11358
11359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11360 # the resulting binary.
11361 hardcode_shlibpath_var=$hardcode_shlibpath_var
11362
11363 # Set to yes if building a shared library automatically hardcodes DIR into the library
11364 # and all subsequent libraries and executables linked against it.
11365 hardcode_automatic=$hardcode_automatic
11366
11367 # Variables whose values should be saved in libtool wrapper scripts and
11368 # restored at relink time.
11369 variables_saved_for_relink="$variables_saved_for_relink"
11370
11371 # Whether libtool must link a program against all its dependency libraries.
11372 link_all_deplibs=$link_all_deplibs
11373
11374 # Compile-time system search path for libraries
11375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11376
11377 # Run-time system search path for libraries
11378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11379
11380 # Fix the shell variable \$srcfile for the compiler.
11381 fix_srcfile_path="$fix_srcfile_path"
11382
11383 # Set to yes if exported symbols are required.
11384 always_export_symbols=$always_export_symbols
11385
11386 # The commands to list exported symbols.
11387 export_symbols_cmds=$lt_export_symbols_cmds
11388
11389 # The commands to extract the exported symbol list from a shared archive.
11390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11391
11392 # Symbols that should not be listed in the preloaded symbols.
11393 exclude_expsyms=$lt_exclude_expsyms
11394
11395 # Symbols that must always be exported.
11396 include_expsyms=$lt_include_expsyms
11397
11398 # ### END LIBTOOL CONFIG
11399
11400 __EOF__
11401
11402
11403 case $host_os in
11404 aix3*)
11405 cat <<\EOF >> "$cfgfile"
11406
11407 # AIX sometimes has problems with the GCC collect2 program. For some
11408 # reason, if we set the COLLECT_NAMES environment variable, the problems
11409 # vanish in a puff of smoke.
11410 if test "X${COLLECT_NAMES+set}" != Xset; then
11411 COLLECT_NAMES=
11412 export COLLECT_NAMES
11413 fi
11414 EOF
11415 ;;
11416 esac
11417
11418 # We use sed instead of cat because bash on DJGPP gets confused if
11419 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11420 # text mode, it properly converts lines to CR/LF. This bash problem
11421 # is reportedly fixed, but why not run on old versions too?
11422 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11423
11424 mv -f "$cfgfile" "$ofile" || \
11425 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11426 chmod +x "$ofile"
11427
11428 else
11429 # If there is no Makefile yet, we rely on a make rule to execute
11430 # `config.status --recheck' to rerun these tests and create the
11431 # libtool script then.
11432 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11433 if test -f "$ltmain_in"; then
11434 test -f Makefile && make "$ltmain"
11435 fi
11436 fi
11437
11438
11439 ac_ext=c
11440 ac_cpp='$CPP $CPPFLAGS'
11441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444
11445 CC="$lt_save_CC"
11446
11447
11448 # Check whether --with-tags or --without-tags was given.
11449 if test "${with_tags+set}" = set; then
11450 withval="$with_tags"
11451 tagnames="$withval"
11452 fi;
11453
11454 if test -f "$ltmain" && test -n "$tagnames"; then
11455 if test ! -f "${ofile}"; then
11456 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11457 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11458 fi
11459
11460 if test -z "$LTCC"; then
11461 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11462 if test -z "$LTCC"; then
11463 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11464 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11465 else
11466 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11467 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11468 fi
11469 fi
11470 if test -z "$LTCFLAGS"; then
11471 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11472 fi
11473
11474 # Extract list of available tagged configurations in $ofile.
11475 # Note that this assumes the entire list is on one line.
11476 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11477
11478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11479 for tagname in $tagnames; do
11480 IFS="$lt_save_ifs"
11481 # Check whether tagname contains only valid characters
11482 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11483 "") ;;
11484 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11485 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11486 { (exit 1); exit 1; }; }
11487 ;;
11488 esac
11489
11490 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11491 then
11492 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11493 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11494 { (exit 1); exit 1; }; }
11495 fi
11496
11497 # Update the list of available tags.
11498 if test -n "$tagname"; then
11499 echo appending configuration tag \"$tagname\" to $ofile
11500
11501 case $tagname in
11502 CXX)
11503 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11504 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11505 (test "X$CXX" != "Xg++"))) ; then
11506 ac_ext=cc
11507 ac_cpp='$CXXCPP $CPPFLAGS'
11508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11511
11512
11513
11514
11515 archive_cmds_need_lc_CXX=no
11516 allow_undefined_flag_CXX=
11517 always_export_symbols_CXX=no
11518 archive_expsym_cmds_CXX=
11519 export_dynamic_flag_spec_CXX=
11520 hardcode_direct_CXX=no
11521 hardcode_libdir_flag_spec_CXX=
11522 hardcode_libdir_flag_spec_ld_CXX=
11523 hardcode_libdir_separator_CXX=
11524 hardcode_minus_L_CXX=no
11525 hardcode_shlibpath_var_CXX=unsupported
11526 hardcode_automatic_CXX=no
11527 module_cmds_CXX=
11528 module_expsym_cmds_CXX=
11529 link_all_deplibs_CXX=unknown
11530 old_archive_cmds_CXX=$old_archive_cmds
11531 no_undefined_flag_CXX=
11532 whole_archive_flag_spec_CXX=
11533 enable_shared_with_static_runtimes_CXX=no
11534
11535 # Dependencies to place before and after the object being linked:
11536 predep_objects_CXX=
11537 postdep_objects_CXX=
11538 predeps_CXX=
11539 postdeps_CXX=
11540 compiler_lib_search_path_CXX=
11541
11542 # Source file extension for C++ test sources.
11543 ac_ext=cpp
11544
11545 # Object file extension for compiled C++ test sources.
11546 objext=o
11547 objext_CXX=$objext
11548
11549 # Code to be used in simple compile tests
11550 lt_simple_compile_test_code="int some_variable = 0;\n"
11551
11552 # Code to be used in simple link tests
11553 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11554
11555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11556
11557 # If no C compiler was specified, use CC.
11558 LTCC=${LTCC-"$CC"}
11559
11560 # If no C compiler flags were specified, use CFLAGS.
11561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11562
11563 # Allow CC to be a program name with arguments.
11564 compiler=$CC
11565
11566
11567 # save warnings/boilerplate of simple test code
11568 ac_outfile=conftest.$ac_objext
11569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11571 _lt_compiler_boilerplate=`cat conftest.err`
11572 $rm conftest*
11573
11574 ac_outfile=conftest.$ac_objext
11575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11577 _lt_linker_boilerplate=`cat conftest.err`
11578 $rm conftest*
11579
11580
11581 # Allow CC to be a program name with arguments.
11582 lt_save_CC=$CC
11583 lt_save_LD=$LD
11584 lt_save_GCC=$GCC
11585 GCC=$GXX
11586 lt_save_with_gnu_ld=$with_gnu_ld
11587 lt_save_path_LD=$lt_cv_path_LD
11588 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11589 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11590 else
11591 $as_unset lt_cv_prog_gnu_ld
11592 fi
11593 if test -n "${lt_cv_path_LDCXX+set}"; then
11594 lt_cv_path_LD=$lt_cv_path_LDCXX
11595 else
11596 $as_unset lt_cv_path_LD
11597 fi
11598 test -z "${LDCXX+set}" || LD=$LDCXX
11599 CC=${CXX-"c++"}
11600 compiler=$CC
11601 compiler_CXX=$CC
11602 for cc_temp in $compiler""; do
11603 case $cc_temp in
11604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11606 \-*) ;;
11607 *) break;;
11608 esac
11609 done
11610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11611
11612
11613 # We don't want -fno-exception wen compiling C++ code, so set the
11614 # no_builtin_flag separately
11615 if test "$GXX" = yes; then
11616 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11617 else
11618 lt_prog_compiler_no_builtin_flag_CXX=
11619 fi
11620
11621 if test "$GXX" = yes; then
11622 # Set up default GNU C++ configuration
11623
11624
11625 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11626 if test "${with_gnu_ld+set}" = set; then
11627 withval="$with_gnu_ld"
11628 test "$withval" = no || with_gnu_ld=yes
11629 else
11630 with_gnu_ld=no
11631 fi;
11632 ac_prog=ld
11633 if test "$GCC" = yes; then
11634 # Check if gcc -print-prog-name=ld gives a path.
11635 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11636 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11637 case $host in
11638 *-*-mingw*)
11639 # gcc leaves a trailing carriage return which upsets mingw
11640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11641 *)
11642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11643 esac
11644 case $ac_prog in
11645 # Accept absolute paths.
11646 [\\/]* | ?:[\\/]*)
11647 re_direlt='/[^/][^/]*/\.\./'
11648 # Canonicalize the pathname of ld
11649 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11650 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11651 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11652 done
11653 test -z "$LD" && LD="$ac_prog"
11654 ;;
11655 "")
11656 # If it fails, then pretend we aren't using GCC.
11657 ac_prog=ld
11658 ;;
11659 *)
11660 # If it is relative, then search for the first ld in PATH.
11661 with_gnu_ld=unknown
11662 ;;
11663 esac
11664 elif test "$with_gnu_ld" = yes; then
11665 echo "$as_me:$LINENO: checking for GNU ld" >&5
11666 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11667 else
11668 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11669 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11670 fi
11671 if test "${lt_cv_path_LD+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 if test -z "$LD"; then
11675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11676 for ac_dir in $PATH; do
11677 IFS="$lt_save_ifs"
11678 test -z "$ac_dir" && ac_dir=.
11679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11680 lt_cv_path_LD="$ac_dir/$ac_prog"
11681 # Check to see if the program is GNU ld. I'd rather use --version,
11682 # but apparently some variants of GNU ld only accept -v.
11683 # Break only if it was the GNU/non-GNU ld that we prefer.
11684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11685 *GNU* | *'with BFD'*)
11686 test "$with_gnu_ld" != no && break
11687 ;;
11688 *)
11689 test "$with_gnu_ld" != yes && break
11690 ;;
11691 esac
11692 fi
11693 done
11694 IFS="$lt_save_ifs"
11695 else
11696 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11697 fi
11698 fi
11699
11700 LD="$lt_cv_path_LD"
11701 if test -n "$LD"; then
11702 echo "$as_me:$LINENO: result: $LD" >&5
11703 echo "${ECHO_T}$LD" >&6
11704 else
11705 echo "$as_me:$LINENO: result: no" >&5
11706 echo "${ECHO_T}no" >&6
11707 fi
11708 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11709 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11710 { (exit 1); exit 1; }; }
11711 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11712 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11713 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11717 case `$LD -v 2>&1 </dev/null` in
11718 *GNU* | *'with BFD'*)
11719 lt_cv_prog_gnu_ld=yes
11720 ;;
11721 *)
11722 lt_cv_prog_gnu_ld=no
11723 ;;
11724 esac
11725 fi
11726 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11727 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11728 with_gnu_ld=$lt_cv_prog_gnu_ld
11729
11730
11731
11732 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11733 # archiving commands below assume that GNU ld is being used.
11734 if test "$with_gnu_ld" = yes; then
11735 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11736 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'
11737
11738 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11740
11741 # If archive_cmds runs LD, not CC, wlarc should be empty
11742 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11743 # investigate it a little bit more. (MM)
11744 wlarc='${wl}'
11745
11746 # ancient GNU ld didn't support --whole-archive et. al.
11747 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11748 grep 'no-whole-archive' > /dev/null; then
11749 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11750 else
11751 whole_archive_flag_spec_CXX=
11752 fi
11753 else
11754 with_gnu_ld=no
11755 wlarc=
11756
11757 # A generic and very simple default shared library creation
11758 # command for GNU C++ for the case where it uses the native
11759 # linker, instead of GNU ld. If possible, this setting should
11760 # overridden to take advantage of the native linker features on
11761 # the platform it is being used on.
11762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11763 fi
11764
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11769
11770 else
11771 GXX=no
11772 with_gnu_ld=no
11773 wlarc=
11774 fi
11775
11776 # PORTME: fill in a description of your system's C++ link characteristics
11777 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11778 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11779 ld_shlibs_CXX=yes
11780 case $host_os in
11781 aix3*)
11782 # FIXME: insert proper C++ library support
11783 ld_shlibs_CXX=no
11784 ;;
11785 aix4* | aix5*)
11786 if test "$host_cpu" = ia64; then
11787 # On IA64, the linker does run time linking by default, so we don't
11788 # have to do anything special.
11789 aix_use_runtimelinking=no
11790 exp_sym_flag='-Bexport'
11791 no_entry_flag=""
11792 else
11793 aix_use_runtimelinking=no
11794
11795 # Test if we are trying to use run time linking or normal
11796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11797 # need to do runtime linking.
11798 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11799 for ld_flag in $LDFLAGS; do
11800 case $ld_flag in
11801 *-brtl*)
11802 aix_use_runtimelinking=yes
11803 break
11804 ;;
11805 esac
11806 done
11807 ;;
11808 esac
11809
11810 exp_sym_flag='-bexport'
11811 no_entry_flag='-bnoentry'
11812 fi
11813
11814 # When large executables or shared objects are built, AIX ld can
11815 # have problems creating the table of contents. If linking a library
11816 # or program results in "error TOC overflow" add -mminimal-toc to
11817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11819
11820 archive_cmds_CXX=''
11821 hardcode_direct_CXX=yes
11822 hardcode_libdir_separator_CXX=':'
11823 link_all_deplibs_CXX=yes
11824
11825 if test "$GXX" = yes; then
11826 case $host_os in aix4.[012]|aix4.[012].*)
11827 # We only want to do this on AIX 4.2 and lower, the check
11828 # below for broken collect2 doesn't work under 4.3+
11829 collect2name=`${CC} -print-prog-name=collect2`
11830 if test -f "$collect2name" && \
11831 strings "$collect2name" | grep resolve_lib_name >/dev/null
11832 then
11833 # We have reworked collect2
11834 hardcode_direct_CXX=yes
11835 else
11836 # We have old collect2
11837 hardcode_direct_CXX=unsupported
11838 # It fails to find uninstalled libraries when the uninstalled
11839 # path is not listed in the libpath. Setting hardcode_minus_L
11840 # to unsupported forces relinking
11841 hardcode_minus_L_CXX=yes
11842 hardcode_libdir_flag_spec_CXX='-L$libdir'
11843 hardcode_libdir_separator_CXX=
11844 fi
11845 ;;
11846 esac
11847 shared_flag='-shared'
11848 if test "$aix_use_runtimelinking" = yes; then
11849 shared_flag="$shared_flag "'${wl}-G'
11850 fi
11851 else
11852 # not using gcc
11853 if test "$host_cpu" = ia64; then
11854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11855 # chokes on -Wl,-G. The following line is correct:
11856 shared_flag='-G'
11857 else
11858 if test "$aix_use_runtimelinking" = yes; then
11859 shared_flag='${wl}-G'
11860 else
11861 shared_flag='${wl}-bM:SRE'
11862 fi
11863 fi
11864 fi
11865
11866 # It seems that -bexpall does not export symbols beginning with
11867 # underscore (_), so it is better to generate a list of symbols to export.
11868 always_export_symbols_CXX=yes
11869 if test "$aix_use_runtimelinking" = yes; then
11870 # Warning - without using the other runtime loading flags (-brtl),
11871 # -berok will link without error, but may produce a broken library.
11872 allow_undefined_flag_CXX='-berok'
11873 # Determine the default libpath from the value encoded in an empty executable.
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880
11881 int
11882 main ()
11883 {
11884
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891 (eval $ac_link) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_cxx_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911
11912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11913 }'`
11914 # Check for a 64-bit object if we didn't find anything.
11915 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; }
11916 }'`; fi
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 fi
11922 rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11925
11926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11927
11928 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"
11929 else
11930 if test "$host_cpu" = ia64; then
11931 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11932 allow_undefined_flag_CXX="-z nodefs"
11933 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"
11934 else
11935 # Determine the default libpath from the value encoded in an empty executable.
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h. */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942
11943 int
11944 main ()
11945 {
11946
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_cxx_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973
11974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11975 }'`
11976 # Check for a 64-bit object if we didn't find anything.
11977 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; }
11978 }'`; fi
11979 else
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 fi
11984 rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11987
11988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11989 # Warning - without using the other run time loading flags,
11990 # -berok will link without error, but may produce a broken library.
11991 no_undefined_flag_CXX=' ${wl}-bernotok'
11992 allow_undefined_flag_CXX=' ${wl}-berok'
11993 # Exported symbols can be pulled into shared objects from archives
11994 whole_archive_flag_spec_CXX='$convenience'
11995 archive_cmds_need_lc_CXX=yes
11996 # This is similar to how AIX traditionally builds its shared libraries.
11997 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'
11998 fi
11999 fi
12000 ;;
12001
12002 beos*)
12003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12004 allow_undefined_flag_CXX=unsupported
12005 # Joseph Beckenbach <[email protected]> says some releases of gcc
12006 # support --undefined. This deserves some investigation. FIXME
12007 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12008 else
12009 ld_shlibs_CXX=no
12010 fi
12011 ;;
12012
12013 chorus*)
12014 case $cc_basename in
12015 *)
12016 # FIXME: insert proper C++ library support
12017 ld_shlibs_CXX=no
12018 ;;
12019 esac
12020 ;;
12021
12022 cygwin* | mingw* | pw32*)
12023 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12024 # as there is no search path for DLLs.
12025 hardcode_libdir_flag_spec_CXX='-L$libdir'
12026 allow_undefined_flag_CXX=unsupported
12027 always_export_symbols_CXX=no
12028 enable_shared_with_static_runtimes_CXX=yes
12029
12030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12031 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'
12032 # If the export-symbols file already is a .def file (1st line
12033 # is EXPORTS), use it as is; otherwise, prepend...
12034 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12035 cp $export_symbols $output_objdir/$soname.def;
12036 else
12037 echo EXPORTS > $output_objdir/$soname.def;
12038 cat $export_symbols >> $output_objdir/$soname.def;
12039 fi~
12040 $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'
12041 else
12042 ld_shlibs_CXX=no
12043 fi
12044 ;;
12045 darwin* | rhapsody*)
12046 case $host_os in
12047 rhapsody* | darwin1.[012])
12048 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12049 ;;
12050 *) # Darwin 1.3 on
12051 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12052 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12053 else
12054 case ${MACOSX_DEPLOYMENT_TARGET} in
12055 10.[012])
12056 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12057 ;;
12058 10.*)
12059 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12060 ;;
12061 esac
12062 fi
12063 ;;
12064 esac
12065 archive_cmds_need_lc_CXX=no
12066 hardcode_direct_CXX=no
12067 hardcode_automatic_CXX=yes
12068 hardcode_shlibpath_var_CXX=unsupported
12069 whole_archive_flag_spec_CXX=''
12070 link_all_deplibs_CXX=yes
12071
12072 if test "$GXX" = yes ; then
12073 lt_int_apple_cc_single_mod=no
12074 output_verbose_link_cmd='echo'
12075 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12076 lt_int_apple_cc_single_mod=yes
12077 fi
12078 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12079 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12080 else
12081 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'
12082 fi
12083 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12085 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12086 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}'
12087 else
12088 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}'
12089 fi
12090 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}'
12091 else
12092 case $cc_basename in
12093 xlc*)
12094 output_verbose_link_cmd='echo'
12095 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'
12096 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12098 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}'
12099 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}'
12100 ;;
12101 *)
12102 ld_shlibs_CXX=no
12103 ;;
12104 esac
12105 fi
12106 ;;
12107
12108 dgux*)
12109 case $cc_basename in
12110 ec++*)
12111 # FIXME: insert proper C++ library support
12112 ld_shlibs_CXX=no
12113 ;;
12114 ghcx*)
12115 # Green Hills C++ Compiler
12116 # FIXME: insert proper C++ library support
12117 ld_shlibs_CXX=no
12118 ;;
12119 *)
12120 # FIXME: insert proper C++ library support
12121 ld_shlibs_CXX=no
12122 ;;
12123 esac
12124 ;;
12125 freebsd[12]*)
12126 # C++ shared libraries reported to be fairly broken before switch to ELF
12127 ld_shlibs_CXX=no
12128 ;;
12129 freebsd-elf*)
12130 archive_cmds_need_lc_CXX=no
12131 ;;
12132 freebsd* | kfreebsd*-gnu | dragonfly*)
12133 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12134 # conventions
12135 ld_shlibs_CXX=yes
12136 ;;
12137 gnu*)
12138 ;;
12139 hpux9*)
12140 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12141 hardcode_libdir_separator_CXX=:
12142 export_dynamic_flag_spec_CXX='${wl}-E'
12143 hardcode_direct_CXX=yes
12144 hardcode_minus_L_CXX=yes # Not in the search PATH,
12145 # but as the default
12146 # location of the library.
12147
12148 case $cc_basename in
12149 CC*)
12150 # FIXME: insert proper C++ library support
12151 ld_shlibs_CXX=no
12152 ;;
12153 aCC*)
12154 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'
12155 # Commands to make compiler produce verbose output that lists
12156 # what "hidden" libraries, object files and flags are used when
12157 # linking a shared library.
12158 #
12159 # There doesn't appear to be a way to prevent this compiler from
12160 # explicitly linking system object files so we need to strip them
12161 # from the output so that they don't get included in the library
12162 # dependencies.
12163 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'
12164 ;;
12165 *)
12166 if test "$GXX" = yes; then
12167 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'
12168 else
12169 # FIXME: insert proper C++ library support
12170 ld_shlibs_CXX=no
12171 fi
12172 ;;
12173 esac
12174 ;;
12175 hpux10*|hpux11*)
12176 if test $with_gnu_ld = no; then
12177 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12178 hardcode_libdir_separator_CXX=:
12179
12180 case $host_cpu in
12181 hppa*64*|ia64*)
12182 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12183 ;;
12184 *)
12185 export_dynamic_flag_spec_CXX='${wl}-E'
12186 ;;
12187 esac
12188 fi
12189 case $host_cpu in
12190 hppa*64*|ia64*)
12191 hardcode_direct_CXX=no
12192 hardcode_shlibpath_var_CXX=no
12193 ;;
12194 *)
12195 hardcode_direct_CXX=yes
12196 hardcode_minus_L_CXX=yes # Not in the search PATH,
12197 # but as the default
12198 # location of the library.
12199 ;;
12200 esac
12201
12202 case $cc_basename in
12203 CC*)
12204 # FIXME: insert proper C++ library support
12205 ld_shlibs_CXX=no
12206 ;;
12207 aCC*)
12208 case $host_cpu in
12209 hppa*64*)
12210 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12211 ;;
12212 ia64*)
12213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12214 ;;
12215 *)
12216 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12217 ;;
12218 esac
12219 # Commands to make compiler produce verbose output that lists
12220 # what "hidden" libraries, object files and flags are used when
12221 # linking a shared library.
12222 #
12223 # There doesn't appear to be a way to prevent this compiler from
12224 # explicitly linking system object files so we need to strip them
12225 # from the output so that they don't get included in the library
12226 # dependencies.
12227 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'
12228 ;;
12229 *)
12230 if test "$GXX" = yes; then
12231 if test $with_gnu_ld = no; then
12232 case $host_cpu in
12233 hppa*64*)
12234 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12235 ;;
12236 ia64*)
12237 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12238 ;;
12239 *)
12240 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'
12241 ;;
12242 esac
12243 fi
12244 else
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 fi
12248 ;;
12249 esac
12250 ;;
12251 interix3*)
12252 hardcode_direct_CXX=no
12253 hardcode_shlibpath_var_CXX=no
12254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12255 export_dynamic_flag_spec_CXX='${wl}-E'
12256 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12257 # Instead, shared libraries are loaded at an image base (0x10000000 by
12258 # default) and relocated if they conflict, which is a slow very memory
12259 # consuming and fragmenting process. To avoid this, we pick a random,
12260 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12261 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12262 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'
12263 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'
12264 ;;
12265 irix5* | irix6*)
12266 case $cc_basename in
12267 CC*)
12268 # SGI C++
12269 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'
12270
12271 # Archives containing C++ object files must be created using
12272 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12273 # necessary to make sure instantiated templates are included
12274 # in the archive.
12275 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12276 ;;
12277 *)
12278 if test "$GXX" = yes; then
12279 if test "$with_gnu_ld" = no; then
12280 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'
12281 else
12282 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'
12283 fi
12284 fi
12285 link_all_deplibs_CXX=yes
12286 ;;
12287 esac
12288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12289 hardcode_libdir_separator_CXX=:
12290 ;;
12291 linux*)
12292 case $cc_basename in
12293 KCC*)
12294 # Kuck and Associates, Inc. (KAI) C++ Compiler
12295
12296 # KCC will only create a shared library if the output file
12297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12298 # to its proper name (with version) after linking.
12299 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'
12300 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'
12301 # Commands to make compiler produce verbose output that lists
12302 # what "hidden" libraries, object files and flags are used when
12303 # linking a shared library.
12304 #
12305 # There doesn't appear to be a way to prevent this compiler from
12306 # explicitly linking system object files so we need to strip them
12307 # from the output so that they don't get included in the library
12308 # dependencies.
12309 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'
12310
12311 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12313
12314 # Archives containing C++ object files must be created using
12315 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12316 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12317 ;;
12318 icpc*)
12319 # Intel C++
12320 with_gnu_ld=yes
12321 # version 8.0 and above of icpc choke on multiply defined symbols
12322 # if we add $predep_objects and $postdep_objects, however 7.1 and
12323 # earlier do not add the objects themselves.
12324 case `$CC -V 2>&1` in
12325 *"Version 7."*)
12326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327 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'
12328 ;;
12329 *) # Version 8.0 or newer
12330 tmp_idyn=
12331 case $host_cpu in
12332 ia64*) tmp_idyn=' -i_dynamic';;
12333 esac
12334 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12335 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'
12336 ;;
12337 esac
12338 archive_cmds_need_lc_CXX=no
12339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12341 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12342 ;;
12343 pgCC*)
12344 # Portland Group C++ compiler
12345 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12346 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'
12347
12348 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12350 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'
12351 ;;
12352 cxx*)
12353 # Compaq C++
12354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 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'
12356
12357 runpath_var=LD_RUN_PATH
12358 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12359 hardcode_libdir_separator_CXX=:
12360
12361 # Commands to make compiler produce verbose output that lists
12362 # what "hidden" libraries, object files and flags are used when
12363 # linking a shared library.
12364 #
12365 # There doesn't appear to be a way to prevent this compiler from
12366 # explicitly linking system object files so we need to strip them
12367 # from the output so that they don't get included in the library
12368 # dependencies.
12369 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'
12370 ;;
12371 esac
12372 ;;
12373 lynxos*)
12374 # FIXME: insert proper C++ library support
12375 ld_shlibs_CXX=no
12376 ;;
12377 m88k*)
12378 # FIXME: insert proper C++ library support
12379 ld_shlibs_CXX=no
12380 ;;
12381 mvs*)
12382 case $cc_basename in
12383 cxx*)
12384 # FIXME: insert proper C++ library support
12385 ld_shlibs_CXX=no
12386 ;;
12387 *)
12388 # FIXME: insert proper C++ library support
12389 ld_shlibs_CXX=no
12390 ;;
12391 esac
12392 ;;
12393 netbsd*)
12394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12395 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12396 wlarc=
12397 hardcode_libdir_flag_spec_CXX='-R$libdir'
12398 hardcode_direct_CXX=yes
12399 hardcode_shlibpath_var_CXX=no
12400 fi
12401 # Workaround some broken pre-1.5 toolchains
12402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12403 ;;
12404 openbsd2*)
12405 # C++ shared libraries are fairly broken
12406 ld_shlibs_CXX=no
12407 ;;
12408 openbsd*)
12409 hardcode_direct_CXX=yes
12410 hardcode_shlibpath_var_CXX=no
12411 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12412 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12414 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12415 export_dynamic_flag_spec_CXX='${wl}-E'
12416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12417 fi
12418 output_verbose_link_cmd='echo'
12419 ;;
12420 osf3*)
12421 case $cc_basename in
12422 KCC*)
12423 # Kuck and Associates, Inc. (KAI) C++ Compiler
12424
12425 # KCC will only create a shared library if the output file
12426 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12427 # to its proper name (with version) after linking.
12428 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'
12429
12430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12431 hardcode_libdir_separator_CXX=:
12432
12433 # Archives containing C++ object files must be created using
12434 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12435 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12436
12437 ;;
12438 RCC*)
12439 # Rational C++ 2.4.1
12440 # FIXME: insert proper C++ library support
12441 ld_shlibs_CXX=no
12442 ;;
12443 cxx*)
12444 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12445 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'
12446
12447 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12448 hardcode_libdir_separator_CXX=:
12449
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12453 #
12454 # There doesn't appear to be a way to prevent this compiler from
12455 # explicitly linking system object files so we need to strip them
12456 # from the output so that they don't get included in the library
12457 # dependencies.
12458 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'
12459 ;;
12460 *)
12461 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12462 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12463 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'
12464
12465 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12466 hardcode_libdir_separator_CXX=:
12467
12468 # Commands to make compiler produce verbose output that lists
12469 # what "hidden" libraries, object files and flags are used when
12470 # linking a shared library.
12471 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12472
12473 else
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12476 fi
12477 ;;
12478 esac
12479 ;;
12480 osf4* | osf5*)
12481 case $cc_basename in
12482 KCC*)
12483 # Kuck and Associates, Inc. (KAI) C++ Compiler
12484
12485 # KCC will only create a shared library if the output file
12486 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12487 # to its proper name (with version) after linking.
12488 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'
12489
12490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12491 hardcode_libdir_separator_CXX=:
12492
12493 # Archives containing C++ object files must be created using
12494 # the KAI C++ compiler.
12495 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12496 ;;
12497 RCC*)
12498 # Rational C++ 2.4.1
12499 # FIXME: insert proper C++ library support
12500 ld_shlibs_CXX=no
12501 ;;
12502 cxx*)
12503 allow_undefined_flag_CXX=' -expect_unresolved \*'
12504 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'
12505 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12506 echo "-hidden">> $lib.exp~
12507 $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~
12508 $rm $lib.exp'
12509
12510 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12511 hardcode_libdir_separator_CXX=:
12512
12513 # Commands to make compiler produce verbose output that lists
12514 # what "hidden" libraries, object files and flags are used when
12515 # linking a shared library.
12516 #
12517 # There doesn't appear to be a way to prevent this compiler from
12518 # explicitly linking system object files so we need to strip them
12519 # from the output so that they don't get included in the library
12520 # dependencies.
12521 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'
12522 ;;
12523 *)
12524 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12525 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12526 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'
12527
12528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12529 hardcode_libdir_separator_CXX=:
12530
12531 # Commands to make compiler produce verbose output that lists
12532 # what "hidden" libraries, object files and flags are used when
12533 # linking a shared library.
12534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12535
12536 else
12537 # FIXME: insert proper C++ library support
12538 ld_shlibs_CXX=no
12539 fi
12540 ;;
12541 esac
12542 ;;
12543 psos*)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547 sunos4*)
12548 case $cc_basename in
12549 CC*)
12550 # Sun C++ 4.x
12551 # FIXME: insert proper C++ library support
12552 ld_shlibs_CXX=no
12553 ;;
12554 lcc*)
12555 # Lucid
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
12558 ;;
12559 *)
12560 # FIXME: insert proper C++ library support
12561 ld_shlibs_CXX=no
12562 ;;
12563 esac
12564 ;;
12565 solaris*)
12566 case $cc_basename in
12567 CC*)
12568 # Sun C++ 4.2, 5.x and Centerline C++
12569 archive_cmds_need_lc_CXX=yes
12570 no_undefined_flag_CXX=' -zdefs'
12571 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12572 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12573 $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'
12574
12575 hardcode_libdir_flag_spec_CXX='-R$libdir'
12576 hardcode_shlibpath_var_CXX=no
12577 case $host_os in
12578 solaris2.[0-5] | solaris2.[0-5].*) ;;
12579 *)
12580 # The C++ compiler is used as linker so we must use $wl
12581 # flag to pass the commands to the underlying system
12582 # linker. We must also pass each convience library through
12583 # to the system linker between allextract/defaultextract.
12584 # The C++ compiler will combine linker options so we
12585 # cannot just pass the convience library names through
12586 # without $wl.
12587 # Supported since Solaris 2.6 (maybe 2.5.1?)
12588 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'
12589 ;;
12590 esac
12591 link_all_deplibs_CXX=yes
12592
12593 output_verbose_link_cmd='echo'
12594
12595 # Archives containing C++ object files must be created using
12596 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12597 # necessary to make sure instantiated templates are included
12598 # in the archive.
12599 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12600 ;;
12601 gcx*)
12602 # Green Hills C++ Compiler
12603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12604
12605 # The C++ compiler must be used to create the archive.
12606 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12607 ;;
12608 *)
12609 # GNU C++ compiler with Solaris linker
12610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12611 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12612 if $CC --version | grep -v '^2\.7' > /dev/null; then
12613 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12614 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12615 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12616
12617 # Commands to make compiler produce verbose output that lists
12618 # what "hidden" libraries, object files and flags are used when
12619 # linking a shared library.
12620 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12621 else
12622 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12623 # platform.
12624 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12625 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12626 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12627
12628 # Commands to make compiler produce verbose output that lists
12629 # what "hidden" libraries, object files and flags are used when
12630 # linking a shared library.
12631 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12632 fi
12633
12634 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12635 fi
12636 ;;
12637 esac
12638 ;;
12639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12640 no_undefined_flag_CXX='${wl}-z,text'
12641 archive_cmds_need_lc_CXX=no
12642 hardcode_shlibpath_var_CXX=no
12643 runpath_var='LD_RUN_PATH'
12644
12645 case $cc_basename in
12646 CC*)
12647 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12648 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649 ;;
12650 *)
12651 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12652 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12653 ;;
12654 esac
12655 ;;
12656 sysv5* | sco3.2v5* | sco5v6*)
12657 # Note: We can NOT use -z defs as we might desire, because we do not
12658 # link with -lc, and that would cause any symbols used from libc to
12659 # always be unresolved, which means just about no library would
12660 # ever link correctly. If we're not using GNU ld we use -z text
12661 # though, which does catch some bad symbols but isn't as heavy-handed
12662 # as -z defs.
12663 # For security reasons, it is highly recommended that you always
12664 # use absolute paths for naming shared libraries, and exclude the
12665 # DT_RUNPATH tag from executables and libraries. But doing so
12666 # requires that you compile everything twice, which is a pain.
12667 # So that behaviour is only enabled if SCOABSPATH is set to a
12668 # non-empty value in the environment. Most likely only useful for
12669 # creating official distributions of packages.
12670 # This is a hack until libtool officially supports absolute path
12671 # names for shared libraries.
12672 no_undefined_flag_CXX='${wl}-z,text'
12673 allow_undefined_flag_CXX='${wl}-z,nodefs'
12674 archive_cmds_need_lc_CXX=no
12675 hardcode_shlibpath_var_CXX=no
12676 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12677 hardcode_libdir_separator_CXX=':'
12678 link_all_deplibs_CXX=yes
12679 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12680 runpath_var='LD_RUN_PATH'
12681
12682 case $cc_basename in
12683 CC*)
12684 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12685 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12686 ;;
12687 *)
12688 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12689 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12690 ;;
12691 esac
12692 ;;
12693 tandem*)
12694 case $cc_basename in
12695 NCC*)
12696 # NonStop-UX NCC 3.20
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
12700 *)
12701 # FIXME: insert proper C++ library support
12702 ld_shlibs_CXX=no
12703 ;;
12704 esac
12705 ;;
12706 vxworks*)
12707 # FIXME: insert proper C++ library support
12708 ld_shlibs_CXX=no
12709 ;;
12710 *)
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 ;;
12714 esac
12715 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12716 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12717 test "$ld_shlibs_CXX" = no && can_build_shared=no
12718
12719 GCC_CXX="$GXX"
12720 LD_CXX="$LD"
12721
12722 ## CAVEAT EMPTOR:
12723 ## There is no encapsulation within the following macros, do not change
12724 ## the running order or otherwise move them around unless you know exactly
12725 ## what you are doing...
12726
12727 cat > conftest.$ac_ext <<EOF
12728 class Foo
12729 {
12730 public:
12731 Foo (void) { a = 0; }
12732 private:
12733 int a;
12734 };
12735 EOF
12736
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; then
12742 # Parse the compiler output and extract the necessary
12743 # objects, libraries and library flags.
12744
12745 # Sentinel used to keep track of whether or not we are before
12746 # the conftest object file.
12747 pre_test_object_deps_done=no
12748
12749 # The `*' in the case matches for architectures that use `case' in
12750 # $output_verbose_cmd can trigger glob expansion during the loop
12751 # eval without this substitution.
12752 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12753
12754 for p in `eval $output_verbose_link_cmd`; do
12755 case $p in
12756
12757 -L* | -R* | -l*)
12758 # Some compilers place space between "-{L,R}" and the path.
12759 # Remove the space.
12760 if test $p = "-L" \
12761 || test $p = "-R"; then
12762 prev=$p
12763 continue
12764 else
12765 prev=
12766 fi
12767
12768 if test "$pre_test_object_deps_done" = no; then
12769 case $p in
12770 -L* | -R*)
12771 # Internal compiler library paths should come after those
12772 # provided the user. The postdeps already come after the
12773 # user supplied libs so there is no need to process them.
12774 if test -z "$compiler_lib_search_path_CXX"; then
12775 compiler_lib_search_path_CXX="${prev}${p}"
12776 else
12777 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12778 fi
12779 ;;
12780 # The "-l" case would never come before the object being
12781 # linked, so don't bother handling this case.
12782 esac
12783 else
12784 if test -z "$postdeps_CXX"; then
12785 postdeps_CXX="${prev}${p}"
12786 else
12787 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12788 fi
12789 fi
12790 ;;
12791
12792 *.$objext)
12793 # This assumes that the test object file only shows up
12794 # once in the compiler output.
12795 if test "$p" = "conftest.$objext"; then
12796 pre_test_object_deps_done=yes
12797 continue
12798 fi
12799
12800 if test "$pre_test_object_deps_done" = no; then
12801 if test -z "$predep_objects_CXX"; then
12802 predep_objects_CXX="$p"
12803 else
12804 predep_objects_CXX="$predep_objects_CXX $p"
12805 fi
12806 else
12807 if test -z "$postdep_objects_CXX"; then
12808 postdep_objects_CXX="$p"
12809 else
12810 postdep_objects_CXX="$postdep_objects_CXX $p"
12811 fi
12812 fi
12813 ;;
12814
12815 *) ;; # Ignore the rest.
12816
12817 esac
12818 done
12819
12820 # Clean up.
12821 rm -f a.out a.exe
12822 else
12823 echo "libtool.m4: error: problem compiling CXX test program"
12824 fi
12825
12826 $rm -f confest.$objext
12827
12828 # PORTME: override above test on systems where it is broken
12829 case $host_os in
12830 interix3*)
12831 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12832 # hack all around it, let's just trust "g++" to DTRT.
12833 predep_objects_CXX=
12834 postdep_objects_CXX=
12835 postdeps_CXX=
12836 ;;
12837
12838 solaris*)
12839 case $cc_basename in
12840 CC*)
12841 # Adding this requires a known-good setup of shared libraries for
12842 # Sun compiler versions before 5.6, else PIC objects from an old
12843 # archive will be linked into the output, leading to subtle bugs.
12844 postdeps_CXX='-lCstd -lCrun'
12845 ;;
12846 esac
12847 ;;
12848 esac
12849
12850
12851 case " $postdeps_CXX " in
12852 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12853 esac
12854
12855 lt_prog_compiler_wl_CXX=
12856 lt_prog_compiler_pic_CXX=
12857 lt_prog_compiler_static_CXX=
12858
12859 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12860 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12861
12862 # C++ specific cases for pic, static, wl, etc.
12863 if test "$GXX" = yes; then
12864 lt_prog_compiler_wl_CXX='-Wl,'
12865 lt_prog_compiler_static_CXX='-static'
12866
12867 case $host_os in
12868 aix*)
12869 # All AIX code is PIC.
12870 if test "$host_cpu" = ia64; then
12871 # AIX 5 now supports IA64 processor
12872 lt_prog_compiler_static_CXX='-Bstatic'
12873 fi
12874 ;;
12875 amigaos*)
12876 # FIXME: we need at least 68020 code to build shared libraries, but
12877 # adding the `-m68020' flag to GCC prevents building anything better,
12878 # like `-m68040'.
12879 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12880 ;;
12881 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12882 # PIC is the default for these OSes.
12883 ;;
12884 mingw* | os2* | pw32*)
12885 # This hack is so that the source file can tell whether it is being
12886 # built for inclusion in a dll (and should export symbols for example).
12887 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12888 ;;
12889 darwin* | rhapsody*)
12890 # PIC is the default on this platform
12891 # Common symbols not allowed in MH_DYLIB files
12892 lt_prog_compiler_pic_CXX='-fno-common'
12893 ;;
12894 *djgpp*)
12895 # DJGPP does not support shared libraries at all
12896 lt_prog_compiler_pic_CXX=
12897 ;;
12898 interix3*)
12899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12900 # Instead, we relocate shared libraries at runtime.
12901 ;;
12902 sysv4*MP*)
12903 if test -d /usr/nec; then
12904 lt_prog_compiler_pic_CXX=-Kconform_pic
12905 fi
12906 ;;
12907 hpux*)
12908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12909 # not for PA HP-UX.
12910 case $host_cpu in
12911 hppa*64*|ia64*)
12912 ;;
12913 *)
12914 lt_prog_compiler_pic_CXX='-fPIC'
12915 ;;
12916 esac
12917 ;;
12918 *)
12919 lt_prog_compiler_pic_CXX='-fPIC'
12920 ;;
12921 esac
12922 else
12923 case $host_os in
12924 aix4* | aix5*)
12925 # All AIX code is PIC.
12926 if test "$host_cpu" = ia64; then
12927 # AIX 5 now supports IA64 processor
12928 lt_prog_compiler_static_CXX='-Bstatic'
12929 else
12930 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12931 fi
12932 ;;
12933 chorus*)
12934 case $cc_basename in
12935 cxch68*)
12936 # Green Hills C++ Compiler
12937 # _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"
12938 ;;
12939 esac
12940 ;;
12941 darwin*)
12942 # PIC is the default on this platform
12943 # Common symbols not allowed in MH_DYLIB files
12944 case $cc_basename in
12945 xlc*)
12946 lt_prog_compiler_pic_CXX='-qnocommon'
12947 lt_prog_compiler_wl_CXX='-Wl,'
12948 ;;
12949 esac
12950 ;;
12951 dgux*)
12952 case $cc_basename in
12953 ec++*)
12954 lt_prog_compiler_pic_CXX='-KPIC'
12955 ;;
12956 ghcx*)
12957 # Green Hills C++ Compiler
12958 lt_prog_compiler_pic_CXX='-pic'
12959 ;;
12960 *)
12961 ;;
12962 esac
12963 ;;
12964 freebsd* | kfreebsd*-gnu | dragonfly*)
12965 # FreeBSD uses GNU C++
12966 ;;
12967 hpux9* | hpux10* | hpux11*)
12968 case $cc_basename in
12969 CC*)
12970 lt_prog_compiler_wl_CXX='-Wl,'
12971 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12972 if test "$host_cpu" != ia64; then
12973 lt_prog_compiler_pic_CXX='+Z'
12974 fi
12975 ;;
12976 aCC*)
12977 lt_prog_compiler_wl_CXX='-Wl,'
12978 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12979 case $host_cpu in
12980 hppa*64*|ia64*)
12981 # +Z the default
12982 ;;
12983 *)
12984 lt_prog_compiler_pic_CXX='+Z'
12985 ;;
12986 esac
12987 ;;
12988 *)
12989 ;;
12990 esac
12991 ;;
12992 interix*)
12993 # This is c89, which is MS Visual C++ (no shared libs)
12994 # Anyone wants to do a port?
12995 ;;
12996 irix5* | irix6* | nonstopux*)
12997 case $cc_basename in
12998 CC*)
12999 lt_prog_compiler_wl_CXX='-Wl,'
13000 lt_prog_compiler_static_CXX='-non_shared'
13001 # CC pic flag -KPIC is the default.
13002 ;;
13003 *)
13004 ;;
13005 esac
13006 ;;
13007 linux*)
13008 case $cc_basename in
13009 KCC*)
13010 # KAI C++ Compiler
13011 lt_prog_compiler_wl_CXX='--backend -Wl,'
13012 lt_prog_compiler_pic_CXX='-fPIC'
13013 ;;
13014 icpc* | ecpc*)
13015 # Intel C++
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_pic_CXX='-KPIC'
13018 lt_prog_compiler_static_CXX='-static'
13019 ;;
13020 pgCC*)
13021 # Portland Group C++ compiler.
13022 lt_prog_compiler_wl_CXX='-Wl,'
13023 lt_prog_compiler_pic_CXX='-fpic'
13024 lt_prog_compiler_static_CXX='-Bstatic'
13025 ;;
13026 cxx*)
13027 # Compaq C++
13028 # Make sure the PIC flag is empty. It appears that all Alpha
13029 # Linux and Compaq Tru64 Unix objects are PIC.
13030 lt_prog_compiler_pic_CXX=
13031 lt_prog_compiler_static_CXX='-non_shared'
13032 ;;
13033 *)
13034 ;;
13035 esac
13036 ;;
13037 lynxos*)
13038 ;;
13039 m88k*)
13040 ;;
13041 mvs*)
13042 case $cc_basename in
13043 cxx*)
13044 lt_prog_compiler_pic_CXX='-W c,exportall'
13045 ;;
13046 *)
13047 ;;
13048 esac
13049 ;;
13050 netbsd*)
13051 ;;
13052 osf3* | osf4* | osf5*)
13053 case $cc_basename in
13054 KCC*)
13055 lt_prog_compiler_wl_CXX='--backend -Wl,'
13056 ;;
13057 RCC*)
13058 # Rational C++ 2.4.1
13059 lt_prog_compiler_pic_CXX='-pic'
13060 ;;
13061 cxx*)
13062 # Digital/Compaq C++
13063 lt_prog_compiler_wl_CXX='-Wl,'
13064 # Make sure the PIC flag is empty. It appears that all Alpha
13065 # Linux and Compaq Tru64 Unix objects are PIC.
13066 lt_prog_compiler_pic_CXX=
13067 lt_prog_compiler_static_CXX='-non_shared'
13068 ;;
13069 *)
13070 ;;
13071 esac
13072 ;;
13073 psos*)
13074 ;;
13075 solaris*)
13076 case $cc_basename in
13077 CC*)
13078 # Sun C++ 4.2, 5.x and Centerline C++
13079 lt_prog_compiler_pic_CXX='-KPIC'
13080 lt_prog_compiler_static_CXX='-Bstatic'
13081 lt_prog_compiler_wl_CXX='-Qoption ld '
13082 ;;
13083 gcx*)
13084 # Green Hills C++ Compiler
13085 lt_prog_compiler_pic_CXX='-PIC'
13086 ;;
13087 *)
13088 ;;
13089 esac
13090 ;;
13091 sunos4*)
13092 case $cc_basename in
13093 CC*)
13094 # Sun C++ 4.x
13095 lt_prog_compiler_pic_CXX='-pic'
13096 lt_prog_compiler_static_CXX='-Bstatic'
13097 ;;
13098 lcc*)
13099 # Lucid
13100 lt_prog_compiler_pic_CXX='-pic'
13101 ;;
13102 *)
13103 ;;
13104 esac
13105 ;;
13106 tandem*)
13107 case $cc_basename in
13108 NCC*)
13109 # NonStop-UX NCC 3.20
13110 lt_prog_compiler_pic_CXX='-KPIC'
13111 ;;
13112 *)
13113 ;;
13114 esac
13115 ;;
13116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13117 case $cc_basename in
13118 CC*)
13119 lt_prog_compiler_wl_CXX='-Wl,'
13120 lt_prog_compiler_pic_CXX='-KPIC'
13121 lt_prog_compiler_static_CXX='-Bstatic'
13122 ;;
13123 esac
13124 ;;
13125 vxworks*)
13126 ;;
13127 *)
13128 lt_prog_compiler_can_build_shared_CXX=no
13129 ;;
13130 esac
13131 fi
13132
13133 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13134 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13135
13136 #
13137 # Check to make sure the PIC flag actually works.
13138 #
13139 if test -n "$lt_prog_compiler_pic_CXX"; then
13140
13141 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13142 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13143 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 lt_prog_compiler_pic_works_CXX=no
13147 ac_outfile=conftest.$ac_objext
13148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13149 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13150 # Insert the option either (1) after the last *FLAGS variable, or
13151 # (2) before a word containing "conftest.", or (3) at the end.
13152 # Note that $ac_compile itself does not contain backslashes and begins
13153 # with a dollar sign (not a hyphen), so the echo should work correctly.
13154 # The option is referenced via a variable to avoid confusing sed.
13155 lt_compile=`echo "$ac_compile" | $SED \
13156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13158 -e 's:$: $lt_compiler_flag:'`
13159 (eval echo "\"\$as_me:13159: $lt_compile\"" >&5)
13160 (eval "$lt_compile" 2>conftest.err)
13161 ac_status=$?
13162 cat conftest.err >&5
13163 echo "$as_me:13163: \$? = $ac_status" >&5
13164 if (exit $ac_status) && test -s "$ac_outfile"; then
13165 # The compiler can only warn and ignore the option if not recognized
13166 # So say no if there are warnings other than the usual output.
13167 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13170 lt_prog_compiler_pic_works_CXX=yes
13171 fi
13172 fi
13173 $rm conftest*
13174
13175 fi
13176 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13177 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13178
13179 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13180 case $lt_prog_compiler_pic_CXX in
13181 "" | " "*) ;;
13182 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13183 esac
13184 else
13185 lt_prog_compiler_pic_CXX=
13186 lt_prog_compiler_can_build_shared_CXX=no
13187 fi
13188
13189 fi
13190 case $host_os in
13191 # For platforms which do not support PIC, -DPIC is meaningless:
13192 *djgpp*)
13193 lt_prog_compiler_pic_CXX=
13194 ;;
13195 *)
13196 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13197 ;;
13198 esac
13199
13200 #
13201 # Check to make sure the static flag actually works.
13202 #
13203 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13204 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13205 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13206 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209 lt_prog_compiler_static_works_CXX=no
13210 save_LDFLAGS="$LDFLAGS"
13211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13212 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13214 # The linker can only warn and ignore the option if not recognized
13215 # So say no if there are warnings
13216 if test -s conftest.err; then
13217 # Append any errors to the config.log.
13218 cat conftest.err 1>&5
13219 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13221 if diff conftest.exp conftest.er2 >/dev/null; then
13222 lt_prog_compiler_static_works_CXX=yes
13223 fi
13224 else
13225 lt_prog_compiler_static_works_CXX=yes
13226 fi
13227 fi
13228 $rm conftest*
13229 LDFLAGS="$save_LDFLAGS"
13230
13231 fi
13232 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13233 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13234
13235 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13236 :
13237 else
13238 lt_prog_compiler_static_CXX=
13239 fi
13240
13241
13242 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13243 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13244 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247 lt_cv_prog_compiler_c_o_CXX=no
13248 $rm -r conftest 2>/dev/null
13249 mkdir conftest
13250 cd conftest
13251 mkdir out
13252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13253
13254 lt_compiler_flag="-o out/conftest2.$ac_objext"
13255 # Insert the option either (1) after the last *FLAGS variable, or
13256 # (2) before a word containing "conftest.", or (3) at the end.
13257 # Note that $ac_compile itself does not contain backslashes and begins
13258 # with a dollar sign (not a hyphen), so the echo should work correctly.
13259 lt_compile=`echo "$ac_compile" | $SED \
13260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13262 -e 's:$: $lt_compiler_flag:'`
13263 (eval echo "\"\$as_me:13263: $lt_compile\"" >&5)
13264 (eval "$lt_compile" 2>out/conftest.err)
13265 ac_status=$?
13266 cat out/conftest.err >&5
13267 echo "$as_me:13267: \$? = $ac_status" >&5
13268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13269 then
13270 # The compiler can only warn and ignore the option if not recognized
13271 # So say no if there are warnings
13272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13275 lt_cv_prog_compiler_c_o_CXX=yes
13276 fi
13277 fi
13278 chmod u+w . 2>&5
13279 $rm conftest*
13280 # SGI C++ compiler will create directory out/ii_files/ for
13281 # template instantiation
13282 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13283 $rm out/* && rmdir out
13284 cd ..
13285 rmdir conftest
13286 $rm conftest*
13287
13288 fi
13289 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13290 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13291
13292
13293 hard_links="nottested"
13294 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13295 # do not overwrite the value of need_locks provided by the user
13296 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13297 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13298 hard_links=yes
13299 $rm conftest*
13300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13301 touch conftest.a
13302 ln conftest.a conftest.b 2>&5 || hard_links=no
13303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13304 echo "$as_me:$LINENO: result: $hard_links" >&5
13305 echo "${ECHO_T}$hard_links" >&6
13306 if test "$hard_links" = no; then
13307 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13308 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13309 need_locks=warn
13310 fi
13311 else
13312 need_locks=no
13313 fi
13314
13315 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13316 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13317
13318 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13319 case $host_os in
13320 aix4* | aix5*)
13321 # If we're using GNU nm, then we don't want the "-C" option.
13322 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13323 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13324 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'
13325 else
13326 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'
13327 fi
13328 ;;
13329 pw32*)
13330 export_symbols_cmds_CXX="$ltdll_cmds"
13331 ;;
13332 cygwin* | mingw*)
13333 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'
13334 ;;
13335 *)
13336 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13337 ;;
13338 esac
13339
13340 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13341 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13342 test "$ld_shlibs_CXX" = no && can_build_shared=no
13343
13344 #
13345 # Do we need to explicitly link libc?
13346 #
13347 case "x$archive_cmds_need_lc_CXX" in
13348 x|xyes)
13349 # Assume -lc should be added
13350 archive_cmds_need_lc_CXX=yes
13351
13352 if test "$enable_shared" = yes && test "$GCC" = yes; then
13353 case $archive_cmds_CXX in
13354 *'~'*)
13355 # FIXME: we may have to deal with multi-command sequences.
13356 ;;
13357 '$CC '*)
13358 # Test whether the compiler implicitly links with -lc since on some
13359 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13360 # to ld, don't add -lc before -lgcc.
13361 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13363 $rm conftest*
13364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13365
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } 2>conftest.err; then
13371 soname=conftest
13372 lib=conftest
13373 libobjs=conftest.$ac_objext
13374 deplibs=
13375 wl=$lt_prog_compiler_wl_CXX
13376 pic_flag=$lt_prog_compiler_pic_CXX
13377 compiler_flags=-v
13378 linker_flags=-v
13379 verstring=
13380 output_objdir=.
13381 libname=conftest
13382 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13383 allow_undefined_flag_CXX=
13384 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13385 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }
13389 then
13390 archive_cmds_need_lc_CXX=no
13391 else
13392 archive_cmds_need_lc_CXX=yes
13393 fi
13394 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13395 else
13396 cat conftest.err 1>&5
13397 fi
13398 $rm conftest*
13399 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13400 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13401 ;;
13402 esac
13403 fi
13404 ;;
13405 esac
13406
13407 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13409 library_names_spec=
13410 libname_spec='lib$name'
13411 soname_spec=
13412 shrext_cmds=".so"
13413 postinstall_cmds=
13414 postuninstall_cmds=
13415 finish_cmds=
13416 finish_eval=
13417 shlibpath_var=
13418 shlibpath_overrides_runpath=unknown
13419 version_type=none
13420 dynamic_linker="$host_os ld.so"
13421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13422 if test "$GCC" = yes; then
13423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13424 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13425 # if the path contains ";" then we assume it to be the separator
13426 # otherwise default to the standard path separator (i.e. ":") - it is
13427 # assumed that no part of a normal pathname contains ";" but that should
13428 # okay in the real world where ";" in dirpaths is itself problematic.
13429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13430 else
13431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13432 fi
13433 else
13434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13435 fi
13436 need_lib_prefix=unknown
13437 hardcode_into_libs=no
13438
13439 # when you set need_version to no, make sure it does not cause -set_version
13440 # flags to be left without arguments
13441 need_version=unknown
13442
13443 case $host_os in
13444 aix3*)
13445 version_type=linux
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13447 shlibpath_var=LIBPATH
13448
13449 # AIX 3 has no versioning support, so we append a major version to the name.
13450 soname_spec='${libname}${release}${shared_ext}$major'
13451 ;;
13452
13453 aix4* | aix5*)
13454 version_type=linux
13455 need_lib_prefix=no
13456 need_version=no
13457 hardcode_into_libs=yes
13458 if test "$host_cpu" = ia64; then
13459 # AIX 5 supports IA64
13460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 else
13463 # With GCC up to 2.95.x, collect2 would create an import file
13464 # for dependence libraries. The import file would start with
13465 # the line `#! .'. This would cause the generated library to
13466 # depend on `.', always an invalid library. This was fixed in
13467 # development snapshots of GCC prior to 3.0.
13468 case $host_os in
13469 aix4 | aix4.[01] | aix4.[01].*)
13470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13471 echo ' yes '
13472 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13473 :
13474 else
13475 can_build_shared=no
13476 fi
13477 ;;
13478 esac
13479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13480 # soname into executable. Probably we can add versioning support to
13481 # collect2, so additional links can be useful in future.
13482 if test "$aix_use_runtimelinking" = yes; then
13483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13484 # instead of lib<name>.a to let people know that these are not
13485 # typical AIX shared libraries.
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 else
13488 # We preserve .a as extension for shared libraries through AIX4.2
13489 # and later when we are not doing run time linking.
13490 library_names_spec='${libname}${release}.a $libname.a'
13491 soname_spec='${libname}${release}${shared_ext}$major'
13492 fi
13493 shlibpath_var=LIBPATH
13494 fi
13495 ;;
13496
13497 amigaos*)
13498 library_names_spec='$libname.ixlibrary $libname.a'
13499 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13500 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'
13501 ;;
13502
13503 beos*)
13504 library_names_spec='${libname}${shared_ext}'
13505 dynamic_linker="$host_os ld.so"
13506 shlibpath_var=LIBRARY_PATH
13507 ;;
13508
13509 bsdi[45]*)
13510 version_type=linux
13511 need_version=no
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513 soname_spec='${libname}${release}${shared_ext}$major'
13514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13518 # the default ld.so.conf also contains /usr/contrib/lib and
13519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13520 # libtool to hard-code these into programs
13521 ;;
13522
13523 cygwin* | mingw* | pw32*)
13524 version_type=windows
13525 shrext_cmds=".dll"
13526 need_version=no
13527 need_lib_prefix=no
13528
13529 case $GCC,$host_os in
13530 yes,cygwin* | yes,mingw* | yes,pw32*)
13531 library_names_spec='$libname.dll.a'
13532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13533 postinstall_cmds='base_file=`basename \${file}`~
13534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13535 dldir=$destdir/`dirname \$dlpath`~
13536 test -d \$dldir || mkdir -p \$dldir~
13537 $install_prog $dir/$dlname \$dldir/$dlname~
13538 chmod a+x \$dldir/$dlname'
13539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13540 dlpath=$dir/\$dldll~
13541 $rm \$dlpath'
13542 shlibpath_overrides_runpath=yes
13543
13544 case $host_os in
13545 cygwin*)
13546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13549 ;;
13550 mingw*)
13551 # MinGW DLLs use traditional 'lib' prefix
13552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13555 # It is most probably a Windows format PATH printed by
13556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13557 # path with ; separators, and with drive letters. We can handle the
13558 # drive letters (cygwin fileutils understands them), so leave them,
13559 # especially as we might pass files found there to a mingw objdump,
13560 # which wouldn't understand a cygwinified path. Ahh.
13561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13562 else
13563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13564 fi
13565 ;;
13566 pw32*)
13567 # pw32 DLLs use 'pw' prefix rather than 'lib'
13568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13569 ;;
13570 esac
13571 ;;
13572
13573 *)
13574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13575 ;;
13576 esac
13577 dynamic_linker='Win32 ld.exe'
13578 # FIXME: first we should search . and the directory the executable is in
13579 shlibpath_var=PATH
13580 ;;
13581
13582 darwin* | rhapsody*)
13583 dynamic_linker="$host_os dyld"
13584 version_type=darwin
13585 need_lib_prefix=no
13586 need_version=no
13587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13588 soname_spec='${libname}${release}${major}$shared_ext'
13589 shlibpath_overrides_runpath=yes
13590 shlibpath_var=DYLD_LIBRARY_PATH
13591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13592 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13593 if test "$GCC" = yes; then
13594 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"`
13595 else
13596 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13597 fi
13598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13599 ;;
13600
13601 dgux*)
13602 version_type=linux
13603 need_lib_prefix=no
13604 need_version=no
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 ;;
13609
13610 freebsd1*)
13611 dynamic_linker=no
13612 ;;
13613
13614 kfreebsd*-gnu)
13615 version_type=linux
13616 need_lib_prefix=no
13617 need_version=no
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13619 soname_spec='${libname}${release}${shared_ext}$major'
13620 shlibpath_var=LD_LIBRARY_PATH
13621 shlibpath_overrides_runpath=no
13622 hardcode_into_libs=yes
13623 dynamic_linker='GNU ld.so'
13624 ;;
13625
13626 freebsd* | dragonfly*)
13627 # DragonFly does not have aout. When/if they implement a new
13628 # versioning mechanism, adjust this.
13629 if test -x /usr/bin/objformat; then
13630 objformat=`/usr/bin/objformat`
13631 else
13632 case $host_os in
13633 freebsd[123]*) objformat=aout ;;
13634 *) objformat=elf ;;
13635 esac
13636 fi
13637 version_type=freebsd-$objformat
13638 case $version_type in
13639 freebsd-elf*)
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13641 need_version=no
13642 need_lib_prefix=no
13643 ;;
13644 freebsd-*)
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13646 need_version=yes
13647 ;;
13648 esac
13649 shlibpath_var=LD_LIBRARY_PATH
13650 case $host_os in
13651 freebsd2*)
13652 shlibpath_overrides_runpath=yes
13653 ;;
13654 freebsd3.[01]* | freebsdelf3.[01]*)
13655 shlibpath_overrides_runpath=yes
13656 hardcode_into_libs=yes
13657 ;;
13658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13660 shlibpath_overrides_runpath=no
13661 hardcode_into_libs=yes
13662 ;;
13663 freebsd*) # from 4.6 on
13664 shlibpath_overrides_runpath=yes
13665 hardcode_into_libs=yes
13666 ;;
13667 esac
13668 ;;
13669
13670 gnu*)
13671 version_type=linux
13672 need_lib_prefix=no
13673 need_version=no
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13675 soname_spec='${libname}${release}${shared_ext}$major'
13676 shlibpath_var=LD_LIBRARY_PATH
13677 hardcode_into_libs=yes
13678 ;;
13679
13680 hpux9* | hpux10* | hpux11*)
13681 # Give a soname corresponding to the major version so that dld.sl refuses to
13682 # link against other versions.
13683 version_type=sunos
13684 need_lib_prefix=no
13685 need_version=no
13686 case $host_cpu in
13687 ia64*)
13688 shrext_cmds='.so'
13689 hardcode_into_libs=yes
13690 dynamic_linker="$host_os dld.so"
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13694 soname_spec='${libname}${release}${shared_ext}$major'
13695 if test "X$HPUX_IA64_MODE" = X32; then
13696 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13697 else
13698 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13699 fi
13700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13701 ;;
13702 hppa*64*)
13703 shrext_cmds='.sl'
13704 hardcode_into_libs=yes
13705 dynamic_linker="$host_os dld.sl"
13706 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13709 soname_spec='${libname}${release}${shared_ext}$major'
13710 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13712 ;;
13713 *)
13714 shrext_cmds='.sl'
13715 dynamic_linker="$host_os dld.sl"
13716 shlibpath_var=SHLIB_PATH
13717 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 ;;
13721 esac
13722 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13723 postinstall_cmds='chmod 555 $lib'
13724 ;;
13725
13726 interix3*)
13727 version_type=linux
13728 need_lib_prefix=no
13729 need_version=no
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13731 soname_spec='${libname}${release}${shared_ext}$major'
13732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13733 shlibpath_var=LD_LIBRARY_PATH
13734 shlibpath_overrides_runpath=no
13735 hardcode_into_libs=yes
13736 ;;
13737
13738 irix5* | irix6* | nonstopux*)
13739 case $host_os in
13740 nonstopux*) version_type=nonstopux ;;
13741 *)
13742 if test "$lt_cv_prog_gnu_ld" = yes; then
13743 version_type=linux
13744 else
13745 version_type=irix
13746 fi ;;
13747 esac
13748 need_lib_prefix=no
13749 need_version=no
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13752 case $host_os in
13753 irix5* | nonstopux*)
13754 libsuff= shlibsuff=
13755 ;;
13756 *)
13757 case $LD in # libtool.m4 will add one of these switches to LD
13758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13759 libsuff= shlibsuff= libmagic=32-bit;;
13760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13761 libsuff=32 shlibsuff=N32 libmagic=N32;;
13762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13764 *) libsuff= shlibsuff= libmagic=never-match;;
13765 esac
13766 ;;
13767 esac
13768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13769 shlibpath_overrides_runpath=no
13770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13772 hardcode_into_libs=yes
13773 ;;
13774
13775 # No shared lib support for Linux oldld, aout, or coff.
13776 linux*oldld* | linux*aout* | linux*coff*)
13777 dynamic_linker=no
13778 ;;
13779
13780 # This must be Linux ELF.
13781 linux*)
13782 version_type=linux
13783 need_lib_prefix=no
13784 need_version=no
13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13788 shlibpath_var=LD_LIBRARY_PATH
13789 shlibpath_overrides_runpath=no
13790 # This implies no fast_install, which is unacceptable.
13791 # Some rework will be needed to allow for fast_install
13792 # before this can be enabled.
13793 hardcode_into_libs=yes
13794
13795 # Append ld.so.conf contents to the search path
13796 if test -f /etc/ld.so.conf; then
13797 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' ' '`
13798 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13799 fi
13800
13801 # We used to test for /lib/ld.so.1 and disable shared libraries on
13802 # powerpc, because MkLinux only supported shared libraries with the
13803 # GNU dynamic linker. Since this was broken with cross compilers,
13804 # most powerpc-linux boxes support dynamic linking these days and
13805 # people can always --disable-shared, the test was removed, and we
13806 # assume the GNU/Linux dynamic linker is in use.
13807 dynamic_linker='GNU/Linux ld.so'
13808 ;;
13809
13810 knetbsd*-gnu)
13811 version_type=linux
13812 need_lib_prefix=no
13813 need_version=no
13814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13815 soname_spec='${libname}${release}${shared_ext}$major'
13816 shlibpath_var=LD_LIBRARY_PATH
13817 shlibpath_overrides_runpath=no
13818 hardcode_into_libs=yes
13819 dynamic_linker='GNU ld.so'
13820 ;;
13821
13822 netbsd*)
13823 version_type=sunos
13824 need_lib_prefix=no
13825 need_version=no
13826 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13829 dynamic_linker='NetBSD (a.out) ld.so'
13830 else
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 dynamic_linker='NetBSD ld.elf_so'
13834 fi
13835 shlibpath_var=LD_LIBRARY_PATH
13836 shlibpath_overrides_runpath=yes
13837 hardcode_into_libs=yes
13838 ;;
13839
13840 newsos6)
13841 version_type=linux
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13843 shlibpath_var=LD_LIBRARY_PATH
13844 shlibpath_overrides_runpath=yes
13845 ;;
13846
13847 nto-qnx*)
13848 version_type=linux
13849 need_lib_prefix=no
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 shlibpath_overrides_runpath=yes
13855 ;;
13856
13857 openbsd*)
13858 version_type=sunos
13859 sys_lib_dlsearch_path_spec="/usr/lib"
13860 need_lib_prefix=no
13861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13862 case $host_os in
13863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13864 *) need_version=no ;;
13865 esac
13866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13868 shlibpath_var=LD_LIBRARY_PATH
13869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13870 case $host_os in
13871 openbsd2.[89] | openbsd2.[89].*)
13872 shlibpath_overrides_runpath=no
13873 ;;
13874 *)
13875 shlibpath_overrides_runpath=yes
13876 ;;
13877 esac
13878 else
13879 shlibpath_overrides_runpath=yes
13880 fi
13881 ;;
13882
13883 os2*)
13884 libname_spec='$name'
13885 shrext_cmds=".dll"
13886 need_lib_prefix=no
13887 library_names_spec='$libname${shared_ext} $libname.a'
13888 dynamic_linker='OS/2 ld.exe'
13889 shlibpath_var=LIBPATH
13890 ;;
13891
13892 osf3* | osf4* | osf5*)
13893 version_type=osf
13894 need_lib_prefix=no
13895 need_version=no
13896 soname_spec='${libname}${release}${shared_ext}$major'
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 shlibpath_var=LD_LIBRARY_PATH
13899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13901 ;;
13902
13903 solaris*)
13904 version_type=linux
13905 need_lib_prefix=no
13906 need_version=no
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 hardcode_into_libs=yes
13912 # ldd complains unless libraries are executable
13913 postinstall_cmds='chmod +x $lib'
13914 ;;
13915
13916 sunos4*)
13917 version_type=sunos
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=yes
13922 if test "$with_gnu_ld" = yes; then
13923 need_lib_prefix=no
13924 fi
13925 need_version=yes
13926 ;;
13927
13928 sysv4 | sysv4.3*)
13929 version_type=linux
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 shlibpath_var=LD_LIBRARY_PATH
13933 case $host_vendor in
13934 sni)
13935 shlibpath_overrides_runpath=no
13936 need_lib_prefix=no
13937 export_dynamic_flag_spec='${wl}-Blargedynsym'
13938 runpath_var=LD_RUN_PATH
13939 ;;
13940 siemens)
13941 need_lib_prefix=no
13942 ;;
13943 motorola)
13944 need_lib_prefix=no
13945 need_version=no
13946 shlibpath_overrides_runpath=no
13947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13948 ;;
13949 esac
13950 ;;
13951
13952 sysv4*MP*)
13953 if test -d /usr/nec ;then
13954 version_type=linux
13955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13956 soname_spec='$libname${shared_ext}.$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 fi
13959 ;;
13960
13961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13962 version_type=freebsd-elf
13963 need_lib_prefix=no
13964 need_version=no
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 hardcode_into_libs=yes
13969 if test "$with_gnu_ld" = yes; then
13970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13971 shlibpath_overrides_runpath=no
13972 else
13973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13974 shlibpath_overrides_runpath=yes
13975 case $host_os in
13976 sco3.2v5*)
13977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13978 ;;
13979 esac
13980 fi
13981 sys_lib_dlsearch_path_spec='/usr/lib'
13982 ;;
13983
13984 uts4*)
13985 version_type=linux
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 shlibpath_var=LD_LIBRARY_PATH
13989 ;;
13990
13991 *)
13992 dynamic_linker=no
13993 ;;
13994 esac
13995 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13996 echo "${ECHO_T}$dynamic_linker" >&6
13997 test "$dynamic_linker" = no && can_build_shared=no
13998
13999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14000 if test "$GCC" = yes; then
14001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14002 fi
14003
14004 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14005 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14006 hardcode_action_CXX=
14007 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14008 test -n "$runpath_var_CXX" || \
14009 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14010
14011 # We can hardcode non-existant directories.
14012 if test "$hardcode_direct_CXX" != no &&
14013 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14014 # have to relink, otherwise we might link with an installed library
14015 # when we should be linking with a yet-to-be-installed one
14016 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14017 test "$hardcode_minus_L_CXX" != no; then
14018 # Linking always hardcodes the temporary library directory.
14019 hardcode_action_CXX=relink
14020 else
14021 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14022 hardcode_action_CXX=immediate
14023 fi
14024 else
14025 # We cannot hardcode anything, or else we can only hardcode existing
14026 # directories.
14027 hardcode_action_CXX=unsupported
14028 fi
14029 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14030 echo "${ECHO_T}$hardcode_action_CXX" >&6
14031
14032 if test "$hardcode_action_CXX" = relink; then
14033 # Fast installation is not supported
14034 enable_fast_install=no
14035 elif test "$shlibpath_overrides_runpath" = yes ||
14036 test "$enable_shared" = no; then
14037 # Fast installation is not necessary
14038 enable_fast_install=needless
14039 fi
14040
14041
14042 # The else clause should only fire when bootstrapping the
14043 # libtool distribution, otherwise you forgot to ship ltmain.sh
14044 # with your package, and you will get complaints that there are
14045 # no rules to generate ltmain.sh.
14046 if test -f "$ltmain"; then
14047 # See if we are running on zsh, and set the options which allow our commands through
14048 # without removal of \ escapes.
14049 if test -n "${ZSH_VERSION+set}" ; then
14050 setopt NO_GLOB_SUBST
14051 fi
14052 # Now quote all the things that may contain metacharacters while being
14053 # careful not to overquote the AC_SUBSTed values. We take copies of the
14054 # variables and quote the copies for generation of the libtool script.
14055 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14056 SED SHELL STRIP \
14057 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14058 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14059 deplibs_check_method reload_flag reload_cmds need_locks \
14060 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14061 lt_cv_sys_global_symbol_to_c_name_address \
14062 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14063 old_postinstall_cmds old_postuninstall_cmds \
14064 compiler_CXX \
14065 CC_CXX \
14066 LD_CXX \
14067 lt_prog_compiler_wl_CXX \
14068 lt_prog_compiler_pic_CXX \
14069 lt_prog_compiler_static_CXX \
14070 lt_prog_compiler_no_builtin_flag_CXX \
14071 export_dynamic_flag_spec_CXX \
14072 thread_safe_flag_spec_CXX \
14073 whole_archive_flag_spec_CXX \
14074 enable_shared_with_static_runtimes_CXX \
14075 old_archive_cmds_CXX \
14076 old_archive_from_new_cmds_CXX \
14077 predep_objects_CXX \
14078 postdep_objects_CXX \
14079 predeps_CXX \
14080 postdeps_CXX \
14081 compiler_lib_search_path_CXX \
14082 archive_cmds_CXX \
14083 archive_expsym_cmds_CXX \
14084 postinstall_cmds_CXX \
14085 postuninstall_cmds_CXX \
14086 old_archive_from_expsyms_cmds_CXX \
14087 allow_undefined_flag_CXX \
14088 no_undefined_flag_CXX \
14089 export_symbols_cmds_CXX \
14090 hardcode_libdir_flag_spec_CXX \
14091 hardcode_libdir_flag_spec_ld_CXX \
14092 hardcode_libdir_separator_CXX \
14093 hardcode_automatic_CXX \
14094 module_cmds_CXX \
14095 module_expsym_cmds_CXX \
14096 lt_cv_prog_compiler_c_o_CXX \
14097 exclude_expsyms_CXX \
14098 include_expsyms_CXX; do
14099
14100 case $var in
14101 old_archive_cmds_CXX | \
14102 old_archive_from_new_cmds_CXX | \
14103 archive_cmds_CXX | \
14104 archive_expsym_cmds_CXX | \
14105 module_cmds_CXX | \
14106 module_expsym_cmds_CXX | \
14107 old_archive_from_expsyms_cmds_CXX | \
14108 export_symbols_cmds_CXX | \
14109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14110 postinstall_cmds | postuninstall_cmds | \
14111 old_postinstall_cmds | old_postuninstall_cmds | \
14112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14113 # Double-quote double-evaled strings.
14114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14115 ;;
14116 *)
14117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14118 ;;
14119 esac
14120 done
14121
14122 case $lt_echo in
14123 *'\$0 --fallback-echo"')
14124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14125 ;;
14126 esac
14127
14128 cfgfile="$ofile"
14129
14130 cat <<__EOF__ >> "$cfgfile"
14131 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14132
14133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14134
14135 # Shell to use when invoking shell scripts.
14136 SHELL=$lt_SHELL
14137
14138 # Whether or not to build shared libraries.
14139 build_libtool_libs=$enable_shared
14140
14141 # Whether or not to build static libraries.
14142 build_old_libs=$enable_static
14143
14144 # Whether or not to add -lc for building shared libraries.
14145 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14146
14147 # Whether or not to disallow shared libs when runtime libs are static
14148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14149
14150 # Whether or not to optimize for fast installation.
14151 fast_install=$enable_fast_install
14152
14153 # The host system.
14154 host_alias=$host_alias
14155 host=$host
14156 host_os=$host_os
14157
14158 # The build system.
14159 build_alias=$build_alias
14160 build=$build
14161 build_os=$build_os
14162
14163 # An echo program that does not interpret backslashes.
14164 echo=$lt_echo
14165
14166 # The archiver.
14167 AR=$lt_AR
14168 AR_FLAGS=$lt_AR_FLAGS
14169
14170 # A C compiler.
14171 LTCC=$lt_LTCC
14172
14173 # LTCC compiler flags.
14174 LTCFLAGS=$lt_LTCFLAGS
14175
14176 # A language-specific compiler.
14177 CC=$lt_compiler_CXX
14178
14179 # Is the compiler the GNU C compiler?
14180 with_gcc=$GCC_CXX
14181
14182 # An ERE matcher.
14183 EGREP=$lt_EGREP
14184
14185 # The linker used to build libraries.
14186 LD=$lt_LD_CXX
14187
14188 # Whether we need hard or soft links.
14189 LN_S=$lt_LN_S
14190
14191 # A BSD-compatible nm program.
14192 NM=$lt_NM
14193
14194 # A symbol stripping program
14195 STRIP=$lt_STRIP
14196
14197 # Used to examine libraries when file_magic_cmd begins "file"
14198 MAGIC_CMD=$MAGIC_CMD
14199
14200 # Used on cygwin: DLL creation program.
14201 DLLTOOL="$DLLTOOL"
14202
14203 # Used on cygwin: object dumper.
14204 OBJDUMP="$OBJDUMP"
14205
14206 # Used on cygwin: assembler.
14207 AS="$AS"
14208
14209 # The name of the directory that contains temporary libtool files.
14210 objdir=$objdir
14211
14212 # How to create reloadable object files.
14213 reload_flag=$lt_reload_flag
14214 reload_cmds=$lt_reload_cmds
14215
14216 # How to pass a linker flag through the compiler.
14217 wl=$lt_lt_prog_compiler_wl_CXX
14218
14219 # Object file suffix (normally "o").
14220 objext="$ac_objext"
14221
14222 # Old archive suffix (normally "a").
14223 libext="$libext"
14224
14225 # Shared library suffix (normally ".so").
14226 shrext_cmds='$shrext_cmds'
14227
14228 # Executable file suffix (normally "").
14229 exeext="$exeext"
14230
14231 # Additional compiler flags for building library objects.
14232 pic_flag=$lt_lt_prog_compiler_pic_CXX
14233 pic_mode=$pic_mode
14234
14235 # What is the maximum length of a command?
14236 max_cmd_len=$lt_cv_sys_max_cmd_len
14237
14238 # Does compiler simultaneously support -c and -o options?
14239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14240
14241 # Must we lock files when doing compilation?
14242 need_locks=$lt_need_locks
14243
14244 # Do we need the lib prefix for modules?
14245 need_lib_prefix=$need_lib_prefix
14246
14247 # Do we need a version for libraries?
14248 need_version=$need_version
14249
14250 # Whether dlopen is supported.
14251 dlopen_support=$enable_dlopen
14252
14253 # Whether dlopen of programs is supported.
14254 dlopen_self=$enable_dlopen_self
14255
14256 # Whether dlopen of statically linked programs is supported.
14257 dlopen_self_static=$enable_dlopen_self_static
14258
14259 # Compiler flag to prevent dynamic linking.
14260 link_static_flag=$lt_lt_prog_compiler_static_CXX
14261
14262 # Compiler flag to turn off builtin functions.
14263 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14264
14265 # Compiler flag to allow reflexive dlopens.
14266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14267
14268 # Compiler flag to generate shared objects directly from archives.
14269 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14270
14271 # Compiler flag to generate thread-safe objects.
14272 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14273
14274 # Library versioning type.
14275 version_type=$version_type
14276
14277 # Format of library name prefix.
14278 libname_spec=$lt_libname_spec
14279
14280 # List of archive names. First name is the real one, the rest are links.
14281 # The last name is the one that the linker finds with -lNAME.
14282 library_names_spec=$lt_library_names_spec
14283
14284 # The coded name of the library, if different from the real name.
14285 soname_spec=$lt_soname_spec
14286
14287 # Commands used to build and install an old-style archive.
14288 RANLIB=$lt_RANLIB
14289 old_archive_cmds=$lt_old_archive_cmds_CXX
14290 old_postinstall_cmds=$lt_old_postinstall_cmds
14291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14292
14293 # Create an old-style archive from a shared archive.
14294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14295
14296 # Create a temporary old-style archive to link instead of a shared archive.
14297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14298
14299 # Commands used to build and install a shared archive.
14300 archive_cmds=$lt_archive_cmds_CXX
14301 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14302 postinstall_cmds=$lt_postinstall_cmds
14303 postuninstall_cmds=$lt_postuninstall_cmds
14304
14305 # Commands used to build a loadable module (assumed same as above if empty)
14306 module_cmds=$lt_module_cmds_CXX
14307 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14308
14309 # Commands to strip libraries.
14310 old_striplib=$lt_old_striplib
14311 striplib=$lt_striplib
14312
14313 # Dependencies to place before the objects being linked to create a
14314 # shared library.
14315 predep_objects=$lt_predep_objects_CXX
14316
14317 # Dependencies to place after the objects being linked to create a
14318 # shared library.
14319 postdep_objects=$lt_postdep_objects_CXX
14320
14321 # Dependencies to place before the objects being linked to create a
14322 # shared library.
14323 predeps=$lt_predeps_CXX
14324
14325 # Dependencies to place after the objects being linked to create a
14326 # shared library.
14327 postdeps=$lt_postdeps_CXX
14328
14329 # The library search path used internally by the compiler when linking
14330 # a shared library.
14331 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14332
14333 # Method to check whether dependent libraries are shared objects.
14334 deplibs_check_method=$lt_deplibs_check_method
14335
14336 # Command to use when deplibs_check_method == file_magic.
14337 file_magic_cmd=$lt_file_magic_cmd
14338
14339 # Flag that allows shared libraries with undefined symbols to be built.
14340 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14341
14342 # Flag that forces no undefined symbols.
14343 no_undefined_flag=$lt_no_undefined_flag_CXX
14344
14345 # Commands used to finish a libtool library installation in a directory.
14346 finish_cmds=$lt_finish_cmds
14347
14348 # Same as above, but a single script fragment to be evaled but not shown.
14349 finish_eval=$lt_finish_eval
14350
14351 # Take the output of nm and produce a listing of raw symbols and C names.
14352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14353
14354 # Transform the output of nm in a proper C declaration
14355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14356
14357 # Transform the output of nm in a C name address pair
14358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14359
14360 # This is the shared library runtime path variable.
14361 runpath_var=$runpath_var
14362
14363 # This is the shared library path variable.
14364 shlibpath_var=$shlibpath_var
14365
14366 # Is shlibpath searched before the hard-coded library search path?
14367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14368
14369 # How to hardcode a shared library path into an executable.
14370 hardcode_action=$hardcode_action_CXX
14371
14372 # Whether we should hardcode library paths into libraries.
14373 hardcode_into_libs=$hardcode_into_libs
14374
14375 # Flag to hardcode \$libdir into a binary during linking.
14376 # This must work even if \$libdir does not exist.
14377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14378
14379 # If ld is used when linking, flag to hardcode \$libdir into
14380 # a binary during linking. This must work even if \$libdir does
14381 # not exist.
14382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14383
14384 # Whether we need a single -rpath flag with a separated argument.
14385 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14386
14387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14388 # resulting binary.
14389 hardcode_direct=$hardcode_direct_CXX
14390
14391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14392 # resulting binary.
14393 hardcode_minus_L=$hardcode_minus_L_CXX
14394
14395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14396 # the resulting binary.
14397 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14398
14399 # Set to yes if building a shared library automatically hardcodes DIR into the library
14400 # and all subsequent libraries and executables linked against it.
14401 hardcode_automatic=$hardcode_automatic_CXX
14402
14403 # Variables whose values should be saved in libtool wrapper scripts and
14404 # restored at relink time.
14405 variables_saved_for_relink="$variables_saved_for_relink"
14406
14407 # Whether libtool must link a program against all its dependency libraries.
14408 link_all_deplibs=$link_all_deplibs_CXX
14409
14410 # Compile-time system search path for libraries
14411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14412
14413 # Run-time system search path for libraries
14414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14415
14416 # Fix the shell variable \$srcfile for the compiler.
14417 fix_srcfile_path="$fix_srcfile_path_CXX"
14418
14419 # Set to yes if exported symbols are required.
14420 always_export_symbols=$always_export_symbols_CXX
14421
14422 # The commands to list exported symbols.
14423 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14424
14425 # The commands to extract the exported symbol list from a shared archive.
14426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14427
14428 # Symbols that should not be listed in the preloaded symbols.
14429 exclude_expsyms=$lt_exclude_expsyms_CXX
14430
14431 # Symbols that must always be exported.
14432 include_expsyms=$lt_include_expsyms_CXX
14433
14434 # ### END LIBTOOL TAG CONFIG: $tagname
14435
14436 __EOF__
14437
14438
14439 else
14440 # If there is no Makefile yet, we rely on a make rule to execute
14441 # `config.status --recheck' to rerun these tests and create the
14442 # libtool script then.
14443 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14444 if test -f "$ltmain_in"; then
14445 test -f Makefile && make "$ltmain"
14446 fi
14447 fi
14448
14449
14450 ac_ext=c
14451 ac_cpp='$CPP $CPPFLAGS'
14452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14455
14456 CC=$lt_save_CC
14457 LDCXX=$LD
14458 LD=$lt_save_LD
14459 GCC=$lt_save_GCC
14460 with_gnu_ldcxx=$with_gnu_ld
14461 with_gnu_ld=$lt_save_with_gnu_ld
14462 lt_cv_path_LDCXX=$lt_cv_path_LD
14463 lt_cv_path_LD=$lt_save_path_LD
14464 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14465 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14466
14467 else
14468 tagname=""
14469 fi
14470 ;;
14471
14472 F77)
14473 if test -n "$F77" && test "X$F77" != "Xno"; then
14474
14475 ac_ext=f
14476 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14477 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14478 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14479
14480
14481 archive_cmds_need_lc_F77=no
14482 allow_undefined_flag_F77=
14483 always_export_symbols_F77=no
14484 archive_expsym_cmds_F77=
14485 export_dynamic_flag_spec_F77=
14486 hardcode_direct_F77=no
14487 hardcode_libdir_flag_spec_F77=
14488 hardcode_libdir_flag_spec_ld_F77=
14489 hardcode_libdir_separator_F77=
14490 hardcode_minus_L_F77=no
14491 hardcode_automatic_F77=no
14492 module_cmds_F77=
14493 module_expsym_cmds_F77=
14494 link_all_deplibs_F77=unknown
14495 old_archive_cmds_F77=$old_archive_cmds
14496 no_undefined_flag_F77=
14497 whole_archive_flag_spec_F77=
14498 enable_shared_with_static_runtimes_F77=no
14499
14500 # Source file extension for f77 test sources.
14501 ac_ext=f
14502
14503 # Object file extension for compiled f77 test sources.
14504 objext=o
14505 objext_F77=$objext
14506
14507 # Code to be used in simple compile tests
14508 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14509
14510 # Code to be used in simple link tests
14511 lt_simple_link_test_code=" program t\n end\n"
14512
14513 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14514
14515 # If no C compiler was specified, use CC.
14516 LTCC=${LTCC-"$CC"}
14517
14518 # If no C compiler flags were specified, use CFLAGS.
14519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14520
14521 # Allow CC to be a program name with arguments.
14522 compiler=$CC
14523
14524
14525 # save warnings/boilerplate of simple test code
14526 ac_outfile=conftest.$ac_objext
14527 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14529 _lt_compiler_boilerplate=`cat conftest.err`
14530 $rm conftest*
14531
14532 ac_outfile=conftest.$ac_objext
14533 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14535 _lt_linker_boilerplate=`cat conftest.err`
14536 $rm conftest*
14537
14538
14539 # Allow CC to be a program name with arguments.
14540 lt_save_CC="$CC"
14541 CC=${F77-"f77"}
14542 compiler=$CC
14543 compiler_F77=$CC
14544 for cc_temp in $compiler""; do
14545 case $cc_temp in
14546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14548 \-*) ;;
14549 *) break;;
14550 esac
14551 done
14552 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14553
14554
14555 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14556 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14557 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14558 echo "${ECHO_T}$can_build_shared" >&6
14559
14560 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14561 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14562 test "$can_build_shared" = "no" && enable_shared=no
14563
14564 # On AIX, shared libraries and static libraries use the same namespace, and
14565 # are all built from PIC.
14566 case $host_os in
14567 aix3*)
14568 test "$enable_shared" = yes && enable_static=no
14569 if test -n "$RANLIB"; then
14570 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14571 postinstall_cmds='$RANLIB $lib'
14572 fi
14573 ;;
14574 aix4* | aix5*)
14575 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14576 test "$enable_shared" = yes && enable_static=no
14577 fi
14578 ;;
14579 esac
14580 echo "$as_me:$LINENO: result: $enable_shared" >&5
14581 echo "${ECHO_T}$enable_shared" >&6
14582
14583 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14584 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14585 # Make sure either enable_shared or enable_static is yes.
14586 test "$enable_shared" = yes || enable_static=yes
14587 echo "$as_me:$LINENO: result: $enable_static" >&5
14588 echo "${ECHO_T}$enable_static" >&6
14589
14590 GCC_F77="$G77"
14591 LD_F77="$LD"
14592
14593 lt_prog_compiler_wl_F77=
14594 lt_prog_compiler_pic_F77=
14595 lt_prog_compiler_static_F77=
14596
14597 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14598 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14599
14600 if test "$GCC" = yes; then
14601 lt_prog_compiler_wl_F77='-Wl,'
14602 lt_prog_compiler_static_F77='-static'
14603
14604 case $host_os in
14605 aix*)
14606 # All AIX code is PIC.
14607 if test "$host_cpu" = ia64; then
14608 # AIX 5 now supports IA64 processor
14609 lt_prog_compiler_static_F77='-Bstatic'
14610 fi
14611 ;;
14612
14613 amigaos*)
14614 # FIXME: we need at least 68020 code to build shared libraries, but
14615 # adding the `-m68020' flag to GCC prevents building anything better,
14616 # like `-m68040'.
14617 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14618 ;;
14619
14620 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14621 # PIC is the default for these OSes.
14622 ;;
14623
14624 mingw* | pw32* | os2*)
14625 # This hack is so that the source file can tell whether it is being
14626 # built for inclusion in a dll (and should export symbols for example).
14627 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14628 ;;
14629
14630 darwin* | rhapsody*)
14631 # PIC is the default on this platform
14632 # Common symbols not allowed in MH_DYLIB files
14633 lt_prog_compiler_pic_F77='-fno-common'
14634 ;;
14635
14636 interix3*)
14637 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14638 # Instead, we relocate shared libraries at runtime.
14639 ;;
14640
14641 msdosdjgpp*)
14642 # Just because we use GCC doesn't mean we suddenly get shared libraries
14643 # on systems that don't support them.
14644 lt_prog_compiler_can_build_shared_F77=no
14645 enable_shared=no
14646 ;;
14647
14648 sysv4*MP*)
14649 if test -d /usr/nec; then
14650 lt_prog_compiler_pic_F77=-Kconform_pic
14651 fi
14652 ;;
14653
14654 hpux*)
14655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14656 # not for PA HP-UX.
14657 case $host_cpu in
14658 hppa*64*|ia64*)
14659 # +Z the default
14660 ;;
14661 *)
14662 lt_prog_compiler_pic_F77='-fPIC'
14663 ;;
14664 esac
14665 ;;
14666
14667 *)
14668 lt_prog_compiler_pic_F77='-fPIC'
14669 ;;
14670 esac
14671 else
14672 # PORTME Check for flag to pass linker flags through the system compiler.
14673 case $host_os in
14674 aix*)
14675 lt_prog_compiler_wl_F77='-Wl,'
14676 if test "$host_cpu" = ia64; then
14677 # AIX 5 now supports IA64 processor
14678 lt_prog_compiler_static_F77='-Bstatic'
14679 else
14680 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14681 fi
14682 ;;
14683 darwin*)
14684 # PIC is the default on this platform
14685 # Common symbols not allowed in MH_DYLIB files
14686 case $cc_basename in
14687 xlc*)
14688 lt_prog_compiler_pic_F77='-qnocommon'
14689 lt_prog_compiler_wl_F77='-Wl,'
14690 ;;
14691 esac
14692 ;;
14693
14694 mingw* | pw32* | os2*)
14695 # This hack is so that the source file can tell whether it is being
14696 # built for inclusion in a dll (and should export symbols for example).
14697 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14698 ;;
14699
14700 hpux9* | hpux10* | hpux11*)
14701 lt_prog_compiler_wl_F77='-Wl,'
14702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14703 # not for PA HP-UX.
14704 case $host_cpu in
14705 hppa*64*|ia64*)
14706 # +Z the default
14707 ;;
14708 *)
14709 lt_prog_compiler_pic_F77='+Z'
14710 ;;
14711 esac
14712 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14713 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14714 ;;
14715
14716 irix5* | irix6* | nonstopux*)
14717 lt_prog_compiler_wl_F77='-Wl,'
14718 # PIC (with -KPIC) is the default.
14719 lt_prog_compiler_static_F77='-non_shared'
14720 ;;
14721
14722 newsos6)
14723 lt_prog_compiler_pic_F77='-KPIC'
14724 lt_prog_compiler_static_F77='-Bstatic'
14725 ;;
14726
14727 linux*)
14728 case $cc_basename in
14729 icc* | ecc*)
14730 lt_prog_compiler_wl_F77='-Wl,'
14731 lt_prog_compiler_pic_F77='-KPIC'
14732 lt_prog_compiler_static_F77='-static'
14733 ;;
14734 pgcc* | pgf77* | pgf90* | pgf95*)
14735 # Portland Group compilers (*not* the Pentium gcc compiler,
14736 # which looks to be a dead project)
14737 lt_prog_compiler_wl_F77='-Wl,'
14738 lt_prog_compiler_pic_F77='-fpic'
14739 lt_prog_compiler_static_F77='-Bstatic'
14740 ;;
14741 ccc*)
14742 lt_prog_compiler_wl_F77='-Wl,'
14743 # All Alpha code is PIC.
14744 lt_prog_compiler_static_F77='-non_shared'
14745 ;;
14746 esac
14747 ;;
14748
14749 osf3* | osf4* | osf5*)
14750 lt_prog_compiler_wl_F77='-Wl,'
14751 # All OSF/1 code is PIC.
14752 lt_prog_compiler_static_F77='-non_shared'
14753 ;;
14754
14755 solaris*)
14756 lt_prog_compiler_pic_F77='-KPIC'
14757 lt_prog_compiler_static_F77='-Bstatic'
14758 case $cc_basename in
14759 f77* | f90* | f95*)
14760 lt_prog_compiler_wl_F77='-Qoption ld ';;
14761 *)
14762 lt_prog_compiler_wl_F77='-Wl,';;
14763 esac
14764 ;;
14765
14766 sunos4*)
14767 lt_prog_compiler_wl_F77='-Qoption ld '
14768 lt_prog_compiler_pic_F77='-PIC'
14769 lt_prog_compiler_static_F77='-Bstatic'
14770 ;;
14771
14772 sysv4 | sysv4.2uw2* | sysv4.3*)
14773 lt_prog_compiler_wl_F77='-Wl,'
14774 lt_prog_compiler_pic_F77='-KPIC'
14775 lt_prog_compiler_static_F77='-Bstatic'
14776 ;;
14777
14778 sysv4*MP*)
14779 if test -d /usr/nec ;then
14780 lt_prog_compiler_pic_F77='-Kconform_pic'
14781 lt_prog_compiler_static_F77='-Bstatic'
14782 fi
14783 ;;
14784
14785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14786 lt_prog_compiler_wl_F77='-Wl,'
14787 lt_prog_compiler_pic_F77='-KPIC'
14788 lt_prog_compiler_static_F77='-Bstatic'
14789 ;;
14790
14791 unicos*)
14792 lt_prog_compiler_wl_F77='-Wl,'
14793 lt_prog_compiler_can_build_shared_F77=no
14794 ;;
14795
14796 uts4*)
14797 lt_prog_compiler_pic_F77='-pic'
14798 lt_prog_compiler_static_F77='-Bstatic'
14799 ;;
14800
14801 *)
14802 lt_prog_compiler_can_build_shared_F77=no
14803 ;;
14804 esac
14805 fi
14806
14807 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14808 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14809
14810 #
14811 # Check to make sure the PIC flag actually works.
14812 #
14813 if test -n "$lt_prog_compiler_pic_F77"; then
14814
14815 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14816 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14817 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820 lt_prog_compiler_pic_works_F77=no
14821 ac_outfile=conftest.$ac_objext
14822 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14823 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14824 # Insert the option either (1) after the last *FLAGS variable, or
14825 # (2) before a word containing "conftest.", or (3) at the end.
14826 # Note that $ac_compile itself does not contain backslashes and begins
14827 # with a dollar sign (not a hyphen), so the echo should work correctly.
14828 # The option is referenced via a variable to avoid confusing sed.
14829 lt_compile=`echo "$ac_compile" | $SED \
14830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832 -e 's:$: $lt_compiler_flag:'`
14833 (eval echo "\"\$as_me:14833: $lt_compile\"" >&5)
14834 (eval "$lt_compile" 2>conftest.err)
14835 ac_status=$?
14836 cat conftest.err >&5
14837 echo "$as_me:14837: \$? = $ac_status" >&5
14838 if (exit $ac_status) && test -s "$ac_outfile"; then
14839 # The compiler can only warn and ignore the option if not recognized
14840 # So say no if there are warnings other than the usual output.
14841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_prog_compiler_pic_works_F77=yes
14845 fi
14846 fi
14847 $rm conftest*
14848
14849 fi
14850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14851 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14852
14853 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14854 case $lt_prog_compiler_pic_F77 in
14855 "" | " "*) ;;
14856 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14857 esac
14858 else
14859 lt_prog_compiler_pic_F77=
14860 lt_prog_compiler_can_build_shared_F77=no
14861 fi
14862
14863 fi
14864 case $host_os in
14865 # For platforms which do not support PIC, -DPIC is meaningless:
14866 *djgpp*)
14867 lt_prog_compiler_pic_F77=
14868 ;;
14869 *)
14870 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14871 ;;
14872 esac
14873
14874 #
14875 # Check to make sure the static flag actually works.
14876 #
14877 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14878 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14879 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14880 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883 lt_prog_compiler_static_works_F77=no
14884 save_LDFLAGS="$LDFLAGS"
14885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14886 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14888 # The linker can only warn and ignore the option if not recognized
14889 # So say no if there are warnings
14890 if test -s conftest.err; then
14891 # Append any errors to the config.log.
14892 cat conftest.err 1>&5
14893 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14895 if diff conftest.exp conftest.er2 >/dev/null; then
14896 lt_prog_compiler_static_works_F77=yes
14897 fi
14898 else
14899 lt_prog_compiler_static_works_F77=yes
14900 fi
14901 fi
14902 $rm conftest*
14903 LDFLAGS="$save_LDFLAGS"
14904
14905 fi
14906 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14907 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14908
14909 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14910 :
14911 else
14912 lt_prog_compiler_static_F77=
14913 fi
14914
14915
14916 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14917 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14918 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921 lt_cv_prog_compiler_c_o_F77=no
14922 $rm -r conftest 2>/dev/null
14923 mkdir conftest
14924 cd conftest
14925 mkdir out
14926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14927
14928 lt_compiler_flag="-o out/conftest2.$ac_objext"
14929 # Insert the option either (1) after the last *FLAGS variable, or
14930 # (2) before a word containing "conftest.", or (3) at the end.
14931 # Note that $ac_compile itself does not contain backslashes and begins
14932 # with a dollar sign (not a hyphen), so the echo should work correctly.
14933 lt_compile=`echo "$ac_compile" | $SED \
14934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936 -e 's:$: $lt_compiler_flag:'`
14937 (eval echo "\"\$as_me:14937: $lt_compile\"" >&5)
14938 (eval "$lt_compile" 2>out/conftest.err)
14939 ac_status=$?
14940 cat out/conftest.err >&5
14941 echo "$as_me:14941: \$? = $ac_status" >&5
14942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14943 then
14944 # The compiler can only warn and ignore the option if not recognized
14945 # So say no if there are warnings
14946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14949 lt_cv_prog_compiler_c_o_F77=yes
14950 fi
14951 fi
14952 chmod u+w . 2>&5
14953 $rm conftest*
14954 # SGI C++ compiler will create directory out/ii_files/ for
14955 # template instantiation
14956 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14957 $rm out/* && rmdir out
14958 cd ..
14959 rmdir conftest
14960 $rm conftest*
14961
14962 fi
14963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14964 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14965
14966
14967 hard_links="nottested"
14968 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14969 # do not overwrite the value of need_locks provided by the user
14970 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14972 hard_links=yes
14973 $rm conftest*
14974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14975 touch conftest.a
14976 ln conftest.a conftest.b 2>&5 || hard_links=no
14977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14978 echo "$as_me:$LINENO: result: $hard_links" >&5
14979 echo "${ECHO_T}$hard_links" >&6
14980 if test "$hard_links" = no; then
14981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14983 need_locks=warn
14984 fi
14985 else
14986 need_locks=no
14987 fi
14988
14989 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14990 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14991
14992 runpath_var=
14993 allow_undefined_flag_F77=
14994 enable_shared_with_static_runtimes_F77=no
14995 archive_cmds_F77=
14996 archive_expsym_cmds_F77=
14997 old_archive_From_new_cmds_F77=
14998 old_archive_from_expsyms_cmds_F77=
14999 export_dynamic_flag_spec_F77=
15000 whole_archive_flag_spec_F77=
15001 thread_safe_flag_spec_F77=
15002 hardcode_libdir_flag_spec_F77=
15003 hardcode_libdir_flag_spec_ld_F77=
15004 hardcode_libdir_separator_F77=
15005 hardcode_direct_F77=no
15006 hardcode_minus_L_F77=no
15007 hardcode_shlibpath_var_F77=unsupported
15008 link_all_deplibs_F77=unknown
15009 hardcode_automatic_F77=no
15010 module_cmds_F77=
15011 module_expsym_cmds_F77=
15012 always_export_symbols_F77=no
15013 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15014 # include_expsyms should be a list of space-separated symbols to be *always*
15015 # included in the symbol list
15016 include_expsyms_F77=
15017 # exclude_expsyms can be an extended regexp of symbols to exclude
15018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15020 # as well as any symbol that contains `d'.
15021 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15023 # platforms (ab)use it in PIC code, but their linkers get confused if
15024 # the symbol is explicitly referenced. Since portable code cannot
15025 # rely on this symbol name, it's probably fine to never include it in
15026 # preloaded symbol tables.
15027 extract_expsyms_cmds=
15028 # Just being paranoid about ensuring that cc_basename is set.
15029 for cc_temp in $compiler""; do
15030 case $cc_temp in
15031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15033 \-*) ;;
15034 *) break;;
15035 esac
15036 done
15037 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15038
15039 case $host_os in
15040 cygwin* | mingw* | pw32*)
15041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15042 # When not using gcc, we currently assume that we are using
15043 # Microsoft Visual C++.
15044 if test "$GCC" != yes; then
15045 with_gnu_ld=no
15046 fi
15047 ;;
15048 interix*)
15049 # we just hope/assume this is gcc and not c89 (= MSVC++)
15050 with_gnu_ld=yes
15051 ;;
15052 openbsd*)
15053 with_gnu_ld=no
15054 ;;
15055 esac
15056
15057 ld_shlibs_F77=yes
15058 if test "$with_gnu_ld" = yes; then
15059 # If archive_cmds runs LD, not CC, wlarc should be empty
15060 wlarc='${wl}'
15061
15062 # Set some defaults for GNU ld with shared library support. These
15063 # are reset later if shared libraries are not supported. Putting them
15064 # here allows them to be overridden if necessary.
15065 runpath_var=LD_RUN_PATH
15066 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15067 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15068 # ancient GNU ld didn't support --whole-archive et. al.
15069 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15070 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15071 else
15072 whole_archive_flag_spec_F77=
15073 fi
15074 supports_anon_versioning=no
15075 case `$LD -v 2>/dev/null` in
15076 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15079 *\ 2.11.*) ;; # other 2.11 versions
15080 *) supports_anon_versioning=yes ;;
15081 esac
15082
15083 # See if GNU ld supports shared libraries.
15084 case $host_os in
15085 aix3* | aix4* | aix5*)
15086 # On AIX/PPC, the GNU linker is very broken
15087 if test "$host_cpu" != ia64; then
15088 ld_shlibs_F77=no
15089 cat <<EOF 1>&2
15090
15091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15092 *** to be unable to reliably create shared libraries on AIX.
15093 *** Therefore, libtool is disabling shared libraries support. If you
15094 *** really care for shared libraries, you may want to modify your PATH
15095 *** so that a non-GNU linker is found, and then restart.
15096
15097 EOF
15098 fi
15099 ;;
15100
15101 amigaos*)
15102 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)'
15103 hardcode_libdir_flag_spec_F77='-L$libdir'
15104 hardcode_minus_L_F77=yes
15105
15106 # Samuel A. Falvo II <[email protected]> reports
15107 # that the semantics of dynamic libraries on AmigaOS, at least up
15108 # to version 4, is to share data among multiple programs linked
15109 # with the same dynamic library. Since this doesn't match the
15110 # behavior of shared libraries on other platforms, we can't use
15111 # them.
15112 ld_shlibs_F77=no
15113 ;;
15114
15115 beos*)
15116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15117 allow_undefined_flag_F77=unsupported
15118 # Joseph Beckenbach <[email protected]> says some releases of gcc
15119 # support --undefined. This deserves some investigation. FIXME
15120 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121 else
15122 ld_shlibs_F77=no
15123 fi
15124 ;;
15125
15126 cygwin* | mingw* | pw32*)
15127 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15128 # as there is no search path for DLLs.
15129 hardcode_libdir_flag_spec_F77='-L$libdir'
15130 allow_undefined_flag_F77=unsupported
15131 always_export_symbols_F77=no
15132 enable_shared_with_static_runtimes_F77=yes
15133 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15134
15135 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15136 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15137 # If the export-symbols file already is a .def file (1st line
15138 # is EXPORTS), use it as is; otherwise, prepend...
15139 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15140 cp $export_symbols $output_objdir/$soname.def;
15141 else
15142 echo EXPORTS > $output_objdir/$soname.def;
15143 cat $export_symbols >> $output_objdir/$soname.def;
15144 fi~
15145 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15146 else
15147 ld_shlibs_F77=no
15148 fi
15149 ;;
15150
15151 interix3*)
15152 hardcode_direct_F77=no
15153 hardcode_shlibpath_var_F77=no
15154 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15155 export_dynamic_flag_spec_F77='${wl}-E'
15156 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15157 # Instead, shared libraries are loaded at an image base (0x10000000 by
15158 # default) and relocated if they conflict, which is a slow very memory
15159 # consuming and fragmenting process. To avoid this, we pick a random,
15160 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15161 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15162 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'
15163 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'
15164 ;;
15165
15166 linux*)
15167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 tmp_addflag=
15169 case $cc_basename,$host_cpu in
15170 pgcc*) # Portland Group C compiler
15171 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'
15172 tmp_addflag=' $pic_flag'
15173 ;;
15174 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15175 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'
15176 tmp_addflag=' $pic_flag -Mnomain' ;;
15177 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15178 tmp_addflag=' -i_dynamic' ;;
15179 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15180 tmp_addflag=' -i_dynamic -nofor_main' ;;
15181 ifc* | ifort*) # Intel Fortran compiler
15182 tmp_addflag=' -nofor_main' ;;
15183 esac
15184 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185
15186 if test $supports_anon_versioning = yes; then
15187 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15189 $echo "local: *; };" >> $output_objdir/$libname.ver~
15190 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15191 fi
15192 else
15193 ld_shlibs_F77=no
15194 fi
15195 ;;
15196
15197 netbsd*)
15198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15199 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15200 wlarc=
15201 else
15202 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15203 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15204 fi
15205 ;;
15206
15207 solaris*)
15208 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15209 ld_shlibs_F77=no
15210 cat <<EOF 1>&2
15211
15212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15213 *** create shared libraries on Solaris systems. Therefore, libtool
15214 *** is disabling shared libraries support. We urge you to upgrade GNU
15215 *** binutils to release 2.9.1 or newer. Another option is to modify
15216 *** your PATH or compiler configuration so that the native linker is
15217 *** used, and then restart.
15218
15219 EOF
15220 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15221 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15223 else
15224 ld_shlibs_F77=no
15225 fi
15226 ;;
15227
15228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15229 case `$LD -v 2>&1` in
15230 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15231 ld_shlibs_F77=no
15232 cat <<_LT_EOF 1>&2
15233
15234 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15235 *** reliably create shared libraries on SCO systems. Therefore, libtool
15236 *** is disabling shared libraries support. We urge you to upgrade GNU
15237 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15238 *** your PATH or compiler configuration so that the native linker is
15239 *** used, and then restart.
15240
15241 _LT_EOF
15242 ;;
15243 *)
15244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15245 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15246 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15247 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15248 else
15249 ld_shlibs_F77=no
15250 fi
15251 ;;
15252 esac
15253 ;;
15254
15255 sunos4*)
15256 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15257 wlarc=
15258 hardcode_direct_F77=yes
15259 hardcode_shlibpath_var_F77=no
15260 ;;
15261
15262 *)
15263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15265 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15266 else
15267 ld_shlibs_F77=no
15268 fi
15269 ;;
15270 esac
15271
15272 if test "$ld_shlibs_F77" = no; then
15273 runpath_var=
15274 hardcode_libdir_flag_spec_F77=
15275 export_dynamic_flag_spec_F77=
15276 whole_archive_flag_spec_F77=
15277 fi
15278 else
15279 # PORTME fill in a description of your system's linker (not GNU ld)
15280 case $host_os in
15281 aix3*)
15282 allow_undefined_flag_F77=unsupported
15283 always_export_symbols_F77=yes
15284 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'
15285 # Note: this linker hardcodes the directories in LIBPATH if there
15286 # are no directories specified by -L.
15287 hardcode_minus_L_F77=yes
15288 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15289 # Neither direct hardcoding nor static linking is supported with a
15290 # broken collect2.
15291 hardcode_direct_F77=unsupported
15292 fi
15293 ;;
15294
15295 aix4* | aix5*)
15296 if test "$host_cpu" = ia64; then
15297 # On IA64, the linker does run time linking by default, so we don't
15298 # have to do anything special.
15299 aix_use_runtimelinking=no
15300 exp_sym_flag='-Bexport'
15301 no_entry_flag=""
15302 else
15303 # If we're using GNU nm, then we don't want the "-C" option.
15304 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15305 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15306 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'
15307 else
15308 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'
15309 fi
15310 aix_use_runtimelinking=no
15311
15312 # Test if we are trying to use run time linking or normal
15313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15314 # need to do runtime linking.
15315 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15316 for ld_flag in $LDFLAGS; do
15317 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15318 aix_use_runtimelinking=yes
15319 break
15320 fi
15321 done
15322 ;;
15323 esac
15324
15325 exp_sym_flag='-bexport'
15326 no_entry_flag='-bnoentry'
15327 fi
15328
15329 # When large executables or shared objects are built, AIX ld can
15330 # have problems creating the table of contents. If linking a library
15331 # or program results in "error TOC overflow" add -mminimal-toc to
15332 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15333 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15334
15335 archive_cmds_F77=''
15336 hardcode_direct_F77=yes
15337 hardcode_libdir_separator_F77=':'
15338 link_all_deplibs_F77=yes
15339
15340 if test "$GCC" = yes; then
15341 case $host_os in aix4.[012]|aix4.[012].*)
15342 # We only want to do this on AIX 4.2 and lower, the check
15343 # below for broken collect2 doesn't work under 4.3+
15344 collect2name=`${CC} -print-prog-name=collect2`
15345 if test -f "$collect2name" && \
15346 strings "$collect2name" | grep resolve_lib_name >/dev/null
15347 then
15348 # We have reworked collect2
15349 hardcode_direct_F77=yes
15350 else
15351 # We have old collect2
15352 hardcode_direct_F77=unsupported
15353 # It fails to find uninstalled libraries when the uninstalled
15354 # path is not listed in the libpath. Setting hardcode_minus_L
15355 # to unsupported forces relinking
15356 hardcode_minus_L_F77=yes
15357 hardcode_libdir_flag_spec_F77='-L$libdir'
15358 hardcode_libdir_separator_F77=
15359 fi
15360 ;;
15361 esac
15362 shared_flag='-shared'
15363 if test "$aix_use_runtimelinking" = yes; then
15364 shared_flag="$shared_flag "'${wl}-G'
15365 fi
15366 else
15367 # not using gcc
15368 if test "$host_cpu" = ia64; then
15369 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15370 # chokes on -Wl,-G. The following line is correct:
15371 shared_flag='-G'
15372 else
15373 if test "$aix_use_runtimelinking" = yes; then
15374 shared_flag='${wl}-G'
15375 else
15376 shared_flag='${wl}-bM:SRE'
15377 fi
15378 fi
15379 fi
15380
15381 # It seems that -bexpall does not export symbols beginning with
15382 # underscore (_), so it is better to generate a list of symbols to export.
15383 always_export_symbols_F77=yes
15384 if test "$aix_use_runtimelinking" = yes; then
15385 # Warning - without using the other runtime loading flags (-brtl),
15386 # -berok will link without error, but may produce a broken library.
15387 allow_undefined_flag_F77='-berok'
15388 # Determine the default libpath from the value encoded in an empty executable.
15389 cat >conftest.$ac_ext <<_ACEOF
15390 program main
15391
15392 end
15393 _ACEOF
15394 rm -f conftest.$ac_objext conftest$ac_exeext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15396 (eval $ac_link) 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_f77_werror_flag"
15404 || test ! -s conftest.err'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest$ac_exeext'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416
15417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15418 }'`
15419 # Check for a 64-bit object if we didn't find anything.
15420 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; }
15421 }'`; fi
15422 else
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426 fi
15427 rm -f conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15430
15431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15432 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"
15433 else
15434 if test "$host_cpu" = ia64; then
15435 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15436 allow_undefined_flag_F77="-z nodefs"
15437 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"
15438 else
15439 # Determine the default libpath from the value encoded in an empty executable.
15440 cat >conftest.$ac_ext <<_ACEOF
15441 program main
15442
15443 end
15444 _ACEOF
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447 (eval $ac_link) 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_f77_werror_flag"
15455 || test ! -s conftest.err'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; } &&
15461 { ac_try='test -s conftest$ac_exeext'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467
15468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15469 }'`
15470 # Check for a 64-bit object if we didn't find anything.
15471 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; }
15472 }'`; fi
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 fi
15478 rm -f conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15481
15482 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15483 # Warning - without using the other run time loading flags,
15484 # -berok will link without error, but may produce a broken library.
15485 no_undefined_flag_F77=' ${wl}-bernotok'
15486 allow_undefined_flag_F77=' ${wl}-berok'
15487 # Exported symbols can be pulled into shared objects from archives
15488 whole_archive_flag_spec_F77='$convenience'
15489 archive_cmds_need_lc_F77=yes
15490 # This is similar to how AIX traditionally builds its shared libraries.
15491 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'
15492 fi
15493 fi
15494 ;;
15495
15496 amigaos*)
15497 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)'
15498 hardcode_libdir_flag_spec_F77='-L$libdir'
15499 hardcode_minus_L_F77=yes
15500 # see comment about different semantics on the GNU ld section
15501 ld_shlibs_F77=no
15502 ;;
15503
15504 bsdi[45]*)
15505 export_dynamic_flag_spec_F77=-rdynamic
15506 ;;
15507
15508 cygwin* | mingw* | pw32*)
15509 # When not using gcc, we currently assume that we are using
15510 # Microsoft Visual C++.
15511 # hardcode_libdir_flag_spec is actually meaningless, as there is
15512 # no search path for DLLs.
15513 hardcode_libdir_flag_spec_F77=' '
15514 allow_undefined_flag_F77=unsupported
15515 # Tell ltmain to make .lib files, not .a files.
15516 libext=lib
15517 # Tell ltmain to make .dll files, not .so files.
15518 shrext_cmds=".dll"
15519 # FIXME: Setting linknames here is a bad hack.
15520 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15521 # The linker will automatically build a .lib file if we build a DLL.
15522 old_archive_From_new_cmds_F77='true'
15523 # FIXME: Should let the user specify the lib program.
15524 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15525 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15526 enable_shared_with_static_runtimes_F77=yes
15527 ;;
15528
15529 darwin* | rhapsody*)
15530 case $host_os in
15531 rhapsody* | darwin1.[012])
15532 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15533 ;;
15534 *) # Darwin 1.3 on
15535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15536 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15537 else
15538 case ${MACOSX_DEPLOYMENT_TARGET} in
15539 10.[012])
15540 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15541 ;;
15542 10.*)
15543 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15544 ;;
15545 esac
15546 fi
15547 ;;
15548 esac
15549 archive_cmds_need_lc_F77=no
15550 hardcode_direct_F77=no
15551 hardcode_automatic_F77=yes
15552 hardcode_shlibpath_var_F77=unsupported
15553 whole_archive_flag_spec_F77=''
15554 link_all_deplibs_F77=yes
15555 if test "$GCC" = yes ; then
15556 output_verbose_link_cmd='echo'
15557 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15558 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15559 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15560 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}'
15561 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}'
15562 else
15563 case $cc_basename in
15564 xlc*)
15565 output_verbose_link_cmd='echo'
15566 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15567 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15568 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15569 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}'
15570 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}'
15571 ;;
15572 *)
15573 ld_shlibs_F77=no
15574 ;;
15575 esac
15576 fi
15577 ;;
15578
15579 dgux*)
15580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_libdir_flag_spec_F77='-L$libdir'
15582 hardcode_shlibpath_var_F77=no
15583 ;;
15584
15585 freebsd1*)
15586 ld_shlibs_F77=no
15587 ;;
15588
15589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15590 # support. Future versions do this automatically, but an explicit c++rt0.o
15591 # does not break anything, and helps significantly (at the cost of a little
15592 # extra space).
15593 freebsd2.2*)
15594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15595 hardcode_libdir_flag_spec_F77='-R$libdir'
15596 hardcode_direct_F77=yes
15597 hardcode_shlibpath_var_F77=no
15598 ;;
15599
15600 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15601 freebsd2*)
15602 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15603 hardcode_direct_F77=yes
15604 hardcode_minus_L_F77=yes
15605 hardcode_shlibpath_var_F77=no
15606 ;;
15607
15608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15609 freebsd* | kfreebsd*-gnu | dragonfly*)
15610 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15611 hardcode_libdir_flag_spec_F77='-R$libdir'
15612 hardcode_direct_F77=yes
15613 hardcode_shlibpath_var_F77=no
15614 ;;
15615
15616 hpux9*)
15617 if test "$GCC" = yes; then
15618 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'
15619 else
15620 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'
15621 fi
15622 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15623 hardcode_libdir_separator_F77=:
15624 hardcode_direct_F77=yes
15625
15626 # hardcode_minus_L: Not really in the search PATH,
15627 # but as the default location of the library.
15628 hardcode_minus_L_F77=yes
15629 export_dynamic_flag_spec_F77='${wl}-E'
15630 ;;
15631
15632 hpux10*)
15633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15634 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15635 else
15636 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15637 fi
15638 if test "$with_gnu_ld" = no; then
15639 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15640 hardcode_libdir_separator_F77=:
15641
15642 hardcode_direct_F77=yes
15643 export_dynamic_flag_spec_F77='${wl}-E'
15644
15645 # hardcode_minus_L: Not really in the search PATH,
15646 # but as the default location of the library.
15647 hardcode_minus_L_F77=yes
15648 fi
15649 ;;
15650
15651 hpux11*)
15652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15653 case $host_cpu in
15654 hppa*64*)
15655 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656 ;;
15657 ia64*)
15658 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15659 ;;
15660 *)
15661 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15662 ;;
15663 esac
15664 else
15665 case $host_cpu in
15666 hppa*64*)
15667 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 ;;
15669 ia64*)
15670 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15671 ;;
15672 *)
15673 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15674 ;;
15675 esac
15676 fi
15677 if test "$with_gnu_ld" = no; then
15678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15679 hardcode_libdir_separator_F77=:
15680
15681 case $host_cpu in
15682 hppa*64*|ia64*)
15683 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15684 hardcode_direct_F77=no
15685 hardcode_shlibpath_var_F77=no
15686 ;;
15687 *)
15688 hardcode_direct_F77=yes
15689 export_dynamic_flag_spec_F77='${wl}-E'
15690
15691 # hardcode_minus_L: Not really in the search PATH,
15692 # but as the default location of the library.
15693 hardcode_minus_L_F77=yes
15694 ;;
15695 esac
15696 fi
15697 ;;
15698
15699 irix5* | irix6* | nonstopux*)
15700 if test "$GCC" = yes; then
15701 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'
15702 else
15703 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'
15704 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15705 fi
15706 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15707 hardcode_libdir_separator_F77=:
15708 link_all_deplibs_F77=yes
15709 ;;
15710
15711 netbsd*)
15712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15714 else
15715 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15716 fi
15717 hardcode_libdir_flag_spec_F77='-R$libdir'
15718 hardcode_direct_F77=yes
15719 hardcode_shlibpath_var_F77=no
15720 ;;
15721
15722 newsos6)
15723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15724 hardcode_direct_F77=yes
15725 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15726 hardcode_libdir_separator_F77=:
15727 hardcode_shlibpath_var_F77=no
15728 ;;
15729
15730 openbsd*)
15731 hardcode_direct_F77=yes
15732 hardcode_shlibpath_var_F77=no
15733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15735 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15737 export_dynamic_flag_spec_F77='${wl}-E'
15738 else
15739 case $host_os in
15740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15741 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_libdir_flag_spec_F77='-R$libdir'
15743 ;;
15744 *)
15745 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15747 ;;
15748 esac
15749 fi
15750 ;;
15751
15752 os2*)
15753 hardcode_libdir_flag_spec_F77='-L$libdir'
15754 hardcode_minus_L_F77=yes
15755 allow_undefined_flag_F77=unsupported
15756 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'
15757 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15758 ;;
15759
15760 osf3*)
15761 if test "$GCC" = yes; then
15762 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15763 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'
15764 else
15765 allow_undefined_flag_F77=' -expect_unresolved \*'
15766 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'
15767 fi
15768 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15769 hardcode_libdir_separator_F77=:
15770 ;;
15771
15772 osf4* | osf5*) # as osf3* with the addition of -msym flag
15773 if test "$GCC" = yes; then
15774 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15775 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'
15776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15777 else
15778 allow_undefined_flag_F77=' -expect_unresolved \*'
15779 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'
15780 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~
15781 $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'
15782
15783 # Both c and cxx compiler support -rpath directly
15784 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15785 fi
15786 hardcode_libdir_separator_F77=:
15787 ;;
15788
15789 solaris*)
15790 no_undefined_flag_F77=' -z text'
15791 if test "$GCC" = yes; then
15792 wlarc='${wl}'
15793 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15794 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15795 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15796 else
15797 wlarc=''
15798 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15800 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15801 fi
15802 hardcode_libdir_flag_spec_F77='-R$libdir'
15803 hardcode_shlibpath_var_F77=no
15804 case $host_os in
15805 solaris2.[0-5] | solaris2.[0-5].*) ;;
15806 *)
15807 # The compiler driver will combine linker options so we
15808 # cannot just pass the convience library names through
15809 # without $wl, iff we do not link with $LD.
15810 # Luckily, gcc supports the same syntax we need for Sun Studio.
15811 # Supported since Solaris 2.6 (maybe 2.5.1?)
15812 case $wlarc in
15813 '')
15814 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15815 *)
15816 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' ;;
15817 esac ;;
15818 esac
15819 link_all_deplibs_F77=yes
15820 ;;
15821
15822 sunos4*)
15823 if test "x$host_vendor" = xsequent; then
15824 # Use $CC to link under sequent, because it throws in some extra .o
15825 # files that make .init and .fini sections work.
15826 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15827 else
15828 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15829 fi
15830 hardcode_libdir_flag_spec_F77='-L$libdir'
15831 hardcode_direct_F77=yes
15832 hardcode_minus_L_F77=yes
15833 hardcode_shlibpath_var_F77=no
15834 ;;
15835
15836 sysv4)
15837 case $host_vendor in
15838 sni)
15839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840 hardcode_direct_F77=yes # is this really true???
15841 ;;
15842 siemens)
15843 ## LD is ld it makes a PLAMLIB
15844 ## CC just makes a GrossModule.
15845 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15846 reload_cmds_F77='$CC -r -o $output$reload_objs'
15847 hardcode_direct_F77=no
15848 ;;
15849 motorola)
15850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15852 ;;
15853 esac
15854 runpath_var='LD_RUN_PATH'
15855 hardcode_shlibpath_var_F77=no
15856 ;;
15857
15858 sysv4.3*)
15859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15860 hardcode_shlibpath_var_F77=no
15861 export_dynamic_flag_spec_F77='-Bexport'
15862 ;;
15863
15864 sysv4*MP*)
15865 if test -d /usr/nec; then
15866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_shlibpath_var_F77=no
15868 runpath_var=LD_RUN_PATH
15869 hardcode_runpath_var=yes
15870 ld_shlibs_F77=yes
15871 fi
15872 ;;
15873
15874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15875 no_undefined_flag_F77='${wl}-z,text'
15876 archive_cmds_need_lc_F77=no
15877 hardcode_shlibpath_var_F77=no
15878 runpath_var='LD_RUN_PATH'
15879
15880 if test "$GCC" = yes; then
15881 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15883 else
15884 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15885 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 fi
15887 ;;
15888
15889 sysv5* | sco3.2v5* | sco5v6*)
15890 # Note: We can NOT use -z defs as we might desire, because we do not
15891 # link with -lc, and that would cause any symbols used from libc to
15892 # always be unresolved, which means just about no library would
15893 # ever link correctly. If we're not using GNU ld we use -z text
15894 # though, which does catch some bad symbols but isn't as heavy-handed
15895 # as -z defs.
15896 no_undefined_flag_F77='${wl}-z,text'
15897 allow_undefined_flag_F77='${wl}-z,nodefs'
15898 archive_cmds_need_lc_F77=no
15899 hardcode_shlibpath_var_F77=no
15900 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15901 hardcode_libdir_separator_F77=':'
15902 link_all_deplibs_F77=yes
15903 export_dynamic_flag_spec_F77='${wl}-Bexport'
15904 runpath_var='LD_RUN_PATH'
15905
15906 if test "$GCC" = yes; then
15907 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15909 else
15910 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 fi
15913 ;;
15914
15915 uts4*)
15916 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec_F77='-L$libdir'
15918 hardcode_shlibpath_var_F77=no
15919 ;;
15920
15921 *)
15922 ld_shlibs_F77=no
15923 ;;
15924 esac
15925 fi
15926
15927 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15928 echo "${ECHO_T}$ld_shlibs_F77" >&6
15929 test "$ld_shlibs_F77" = no && can_build_shared=no
15930
15931 #
15932 # Do we need to explicitly link libc?
15933 #
15934 case "x$archive_cmds_need_lc_F77" in
15935 x|xyes)
15936 # Assume -lc should be added
15937 archive_cmds_need_lc_F77=yes
15938
15939 if test "$enable_shared" = yes && test "$GCC" = yes; then
15940 case $archive_cmds_F77 in
15941 *'~'*)
15942 # FIXME: we may have to deal with multi-command sequences.
15943 ;;
15944 '$CC '*)
15945 # Test whether the compiler implicitly links with -lc since on some
15946 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15947 # to ld, don't add -lc before -lgcc.
15948 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15949 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15950 $rm conftest*
15951 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15952
15953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15954 (eval $ac_compile) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } 2>conftest.err; then
15958 soname=conftest
15959 lib=conftest
15960 libobjs=conftest.$ac_objext
15961 deplibs=
15962 wl=$lt_prog_compiler_wl_F77
15963 pic_flag=$lt_prog_compiler_pic_F77
15964 compiler_flags=-v
15965 linker_flags=-v
15966 verstring=
15967 output_objdir=.
15968 libname=conftest
15969 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15970 allow_undefined_flag_F77=
15971 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15972 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }
15976 then
15977 archive_cmds_need_lc_F77=no
15978 else
15979 archive_cmds_need_lc_F77=yes
15980 fi
15981 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15982 else
15983 cat conftest.err 1>&5
15984 fi
15985 $rm conftest*
15986 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15987 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15988 ;;
15989 esac
15990 fi
15991 ;;
15992 esac
15993
15994 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15995 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15996 library_names_spec=
15997 libname_spec='lib$name'
15998 soname_spec=
15999 shrext_cmds=".so"
16000 postinstall_cmds=
16001 postuninstall_cmds=
16002 finish_cmds=
16003 finish_eval=
16004 shlibpath_var=
16005 shlibpath_overrides_runpath=unknown
16006 version_type=none
16007 dynamic_linker="$host_os ld.so"
16008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16009 if test "$GCC" = yes; then
16010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16011 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16012 # if the path contains ";" then we assume it to be the separator
16013 # otherwise default to the standard path separator (i.e. ":") - it is
16014 # assumed that no part of a normal pathname contains ";" but that should
16015 # okay in the real world where ";" in dirpaths is itself problematic.
16016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16017 else
16018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16019 fi
16020 else
16021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16022 fi
16023 need_lib_prefix=unknown
16024 hardcode_into_libs=no
16025
16026 # when you set need_version to no, make sure it does not cause -set_version
16027 # flags to be left without arguments
16028 need_version=unknown
16029
16030 case $host_os in
16031 aix3*)
16032 version_type=linux
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16034 shlibpath_var=LIBPATH
16035
16036 # AIX 3 has no versioning support, so we append a major version to the name.
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 ;;
16039
16040 aix4* | aix5*)
16041 version_type=linux
16042 need_lib_prefix=no
16043 need_version=no
16044 hardcode_into_libs=yes
16045 if test "$host_cpu" = ia64; then
16046 # AIX 5 supports IA64
16047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 else
16050 # With GCC up to 2.95.x, collect2 would create an import file
16051 # for dependence libraries. The import file would start with
16052 # the line `#! .'. This would cause the generated library to
16053 # depend on `.', always an invalid library. This was fixed in
16054 # development snapshots of GCC prior to 3.0.
16055 case $host_os in
16056 aix4 | aix4.[01] | aix4.[01].*)
16057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16058 echo ' yes '
16059 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16060 :
16061 else
16062 can_build_shared=no
16063 fi
16064 ;;
16065 esac
16066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16067 # soname into executable. Probably we can add versioning support to
16068 # collect2, so additional links can be useful in future.
16069 if test "$aix_use_runtimelinking" = yes; then
16070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16071 # instead of lib<name>.a to let people know that these are not
16072 # typical AIX shared libraries.
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 else
16075 # We preserve .a as extension for shared libraries through AIX4.2
16076 # and later when we are not doing run time linking.
16077 library_names_spec='${libname}${release}.a $libname.a'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 fi
16080 shlibpath_var=LIBPATH
16081 fi
16082 ;;
16083
16084 amigaos*)
16085 library_names_spec='$libname.ixlibrary $libname.a'
16086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16087 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'
16088 ;;
16089
16090 beos*)
16091 library_names_spec='${libname}${shared_ext}'
16092 dynamic_linker="$host_os ld.so"
16093 shlibpath_var=LIBRARY_PATH
16094 ;;
16095
16096 bsdi[45]*)
16097 version_type=linux
16098 need_version=no
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16105 # the default ld.so.conf also contains /usr/contrib/lib and
16106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16107 # libtool to hard-code these into programs
16108 ;;
16109
16110 cygwin* | mingw* | pw32*)
16111 version_type=windows
16112 shrext_cmds=".dll"
16113 need_version=no
16114 need_lib_prefix=no
16115
16116 case $GCC,$host_os in
16117 yes,cygwin* | yes,mingw* | yes,pw32*)
16118 library_names_spec='$libname.dll.a'
16119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16120 postinstall_cmds='base_file=`basename \${file}`~
16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16122 dldir=$destdir/`dirname \$dlpath`~
16123 test -d \$dldir || mkdir -p \$dldir~
16124 $install_prog $dir/$dlname \$dldir/$dlname~
16125 chmod a+x \$dldir/$dlname'
16126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16127 dlpath=$dir/\$dldll~
16128 $rm \$dlpath'
16129 shlibpath_overrides_runpath=yes
16130
16131 case $host_os in
16132 cygwin*)
16133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16136 ;;
16137 mingw*)
16138 # MinGW DLLs use traditional 'lib' prefix
16139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16142 # It is most probably a Windows format PATH printed by
16143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16144 # path with ; separators, and with drive letters. We can handle the
16145 # drive letters (cygwin fileutils understands them), so leave them,
16146 # especially as we might pass files found there to a mingw objdump,
16147 # which wouldn't understand a cygwinified path. Ahh.
16148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16149 else
16150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16151 fi
16152 ;;
16153 pw32*)
16154 # pw32 DLLs use 'pw' prefix rather than 'lib'
16155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16156 ;;
16157 esac
16158 ;;
16159
16160 *)
16161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16162 ;;
16163 esac
16164 dynamic_linker='Win32 ld.exe'
16165 # FIXME: first we should search . and the directory the executable is in
16166 shlibpath_var=PATH
16167 ;;
16168
16169 darwin* | rhapsody*)
16170 dynamic_linker="$host_os dyld"
16171 version_type=darwin
16172 need_lib_prefix=no
16173 need_version=no
16174 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16175 soname_spec='${libname}${release}${major}$shared_ext'
16176 shlibpath_overrides_runpath=yes
16177 shlibpath_var=DYLD_LIBRARY_PATH
16178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16179 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16180 if test "$GCC" = yes; then
16181 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"`
16182 else
16183 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16184 fi
16185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16186 ;;
16187
16188 dgux*)
16189 version_type=linux
16190 need_lib_prefix=no
16191 need_version=no
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 ;;
16196
16197 freebsd1*)
16198 dynamic_linker=no
16199 ;;
16200
16201 kfreebsd*-gnu)
16202 version_type=linux
16203 need_lib_prefix=no
16204 need_version=no
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 shlibpath_overrides_runpath=no
16209 hardcode_into_libs=yes
16210 dynamic_linker='GNU ld.so'
16211 ;;
16212
16213 freebsd* | dragonfly*)
16214 # DragonFly does not have aout. When/if they implement a new
16215 # versioning mechanism, adjust this.
16216 if test -x /usr/bin/objformat; then
16217 objformat=`/usr/bin/objformat`
16218 else
16219 case $host_os in
16220 freebsd[123]*) objformat=aout ;;
16221 *) objformat=elf ;;
16222 esac
16223 fi
16224 version_type=freebsd-$objformat
16225 case $version_type in
16226 freebsd-elf*)
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 need_version=no
16229 need_lib_prefix=no
16230 ;;
16231 freebsd-*)
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16233 need_version=yes
16234 ;;
16235 esac
16236 shlibpath_var=LD_LIBRARY_PATH
16237 case $host_os in
16238 freebsd2*)
16239 shlibpath_overrides_runpath=yes
16240 ;;
16241 freebsd3.[01]* | freebsdelf3.[01]*)
16242 shlibpath_overrides_runpath=yes
16243 hardcode_into_libs=yes
16244 ;;
16245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16247 shlibpath_overrides_runpath=no
16248 hardcode_into_libs=yes
16249 ;;
16250 freebsd*) # from 4.6 on
16251 shlibpath_overrides_runpath=yes
16252 hardcode_into_libs=yes
16253 ;;
16254 esac
16255 ;;
16256
16257 gnu*)
16258 version_type=linux
16259 need_lib_prefix=no
16260 need_version=no
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16264 hardcode_into_libs=yes
16265 ;;
16266
16267 hpux9* | hpux10* | hpux11*)
16268 # Give a soname corresponding to the major version so that dld.sl refuses to
16269 # link against other versions.
16270 version_type=sunos
16271 need_lib_prefix=no
16272 need_version=no
16273 case $host_cpu in
16274 ia64*)
16275 shrext_cmds='.so'
16276 hardcode_into_libs=yes
16277 dynamic_linker="$host_os dld.so"
16278 shlibpath_var=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 if test "X$HPUX_IA64_MODE" = X32; then
16283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16284 else
16285 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16286 fi
16287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16288 ;;
16289 hppa*64*)
16290 shrext_cmds='.sl'
16291 hardcode_into_libs=yes
16292 dynamic_linker="$host_os dld.sl"
16293 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16299 ;;
16300 *)
16301 shrext_cmds='.sl'
16302 dynamic_linker="$host_os dld.sl"
16303 shlibpath_var=SHLIB_PATH
16304 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 ;;
16308 esac
16309 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16310 postinstall_cmds='chmod 555 $lib'
16311 ;;
16312
16313 interix3*)
16314 version_type=linux
16315 need_lib_prefix=no
16316 need_version=no
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=no
16322 hardcode_into_libs=yes
16323 ;;
16324
16325 irix5* | irix6* | nonstopux*)
16326 case $host_os in
16327 nonstopux*) version_type=nonstopux ;;
16328 *)
16329 if test "$lt_cv_prog_gnu_ld" = yes; then
16330 version_type=linux
16331 else
16332 version_type=irix
16333 fi ;;
16334 esac
16335 need_lib_prefix=no
16336 need_version=no
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16339 case $host_os in
16340 irix5* | nonstopux*)
16341 libsuff= shlibsuff=
16342 ;;
16343 *)
16344 case $LD in # libtool.m4 will add one of these switches to LD
16345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16346 libsuff= shlibsuff= libmagic=32-bit;;
16347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16348 libsuff=32 shlibsuff=N32 libmagic=N32;;
16349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16351 *) libsuff= shlibsuff= libmagic=never-match;;
16352 esac
16353 ;;
16354 esac
16355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16356 shlibpath_overrides_runpath=no
16357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16359 hardcode_into_libs=yes
16360 ;;
16361
16362 # No shared lib support for Linux oldld, aout, or coff.
16363 linux*oldld* | linux*aout* | linux*coff*)
16364 dynamic_linker=no
16365 ;;
16366
16367 # This must be Linux ELF.
16368 linux*)
16369 version_type=linux
16370 need_lib_prefix=no
16371 need_version=no
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath=no
16377 # This implies no fast_install, which is unacceptable.
16378 # Some rework will be needed to allow for fast_install
16379 # before this can be enabled.
16380 hardcode_into_libs=yes
16381
16382 # Append ld.so.conf contents to the search path
16383 if test -f /etc/ld.so.conf; then
16384 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' ' '`
16385 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16386 fi
16387
16388 # We used to test for /lib/ld.so.1 and disable shared libraries on
16389 # powerpc, because MkLinux only supported shared libraries with the
16390 # GNU dynamic linker. Since this was broken with cross compilers,
16391 # most powerpc-linux boxes support dynamic linking these days and
16392 # people can always --disable-shared, the test was removed, and we
16393 # assume the GNU/Linux dynamic linker is in use.
16394 dynamic_linker='GNU/Linux ld.so'
16395 ;;
16396
16397 knetbsd*-gnu)
16398 version_type=linux
16399 need_lib_prefix=no
16400 need_version=no
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=no
16405 hardcode_into_libs=yes
16406 dynamic_linker='GNU ld.so'
16407 ;;
16408
16409 netbsd*)
16410 version_type=sunos
16411 need_lib_prefix=no
16412 need_version=no
16413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16416 dynamic_linker='NetBSD (a.out) ld.so'
16417 else
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 dynamic_linker='NetBSD ld.elf_so'
16421 fi
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=yes
16424 hardcode_into_libs=yes
16425 ;;
16426
16427 newsos6)
16428 version_type=linux
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=yes
16432 ;;
16433
16434 nto-qnx*)
16435 version_type=linux
16436 need_lib_prefix=no
16437 need_version=no
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=yes
16442 ;;
16443
16444 openbsd*)
16445 version_type=sunos
16446 sys_lib_dlsearch_path_spec="/usr/lib"
16447 need_lib_prefix=no
16448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16449 case $host_os in
16450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16451 *) need_version=no ;;
16452 esac
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16455 shlibpath_var=LD_LIBRARY_PATH
16456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16457 case $host_os in
16458 openbsd2.[89] | openbsd2.[89].*)
16459 shlibpath_overrides_runpath=no
16460 ;;
16461 *)
16462 shlibpath_overrides_runpath=yes
16463 ;;
16464 esac
16465 else
16466 shlibpath_overrides_runpath=yes
16467 fi
16468 ;;
16469
16470 os2*)
16471 libname_spec='$name'
16472 shrext_cmds=".dll"
16473 need_lib_prefix=no
16474 library_names_spec='$libname${shared_ext} $libname.a'
16475 dynamic_linker='OS/2 ld.exe'
16476 shlibpath_var=LIBPATH
16477 ;;
16478
16479 osf3* | osf4* | osf5*)
16480 version_type=osf
16481 need_lib_prefix=no
16482 need_version=no
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16488 ;;
16489
16490 solaris*)
16491 version_type=linux
16492 need_lib_prefix=no
16493 need_version=no
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 hardcode_into_libs=yes
16499 # ldd complains unless libraries are executable
16500 postinstall_cmds='chmod +x $lib'
16501 ;;
16502
16503 sunos4*)
16504 version_type=sunos
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 shlibpath_overrides_runpath=yes
16509 if test "$with_gnu_ld" = yes; then
16510 need_lib_prefix=no
16511 fi
16512 need_version=yes
16513 ;;
16514
16515 sysv4 | sysv4.3*)
16516 version_type=linux
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 case $host_vendor in
16521 sni)
16522 shlibpath_overrides_runpath=no
16523 need_lib_prefix=no
16524 export_dynamic_flag_spec='${wl}-Blargedynsym'
16525 runpath_var=LD_RUN_PATH
16526 ;;
16527 siemens)
16528 need_lib_prefix=no
16529 ;;
16530 motorola)
16531 need_lib_prefix=no
16532 need_version=no
16533 shlibpath_overrides_runpath=no
16534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16535 ;;
16536 esac
16537 ;;
16538
16539 sysv4*MP*)
16540 if test -d /usr/nec ;then
16541 version_type=linux
16542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16543 soname_spec='$libname${shared_ext}.$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 fi
16546 ;;
16547
16548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16549 version_type=freebsd-elf
16550 need_lib_prefix=no
16551 need_version=no
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16555 hardcode_into_libs=yes
16556 if test "$with_gnu_ld" = yes; then
16557 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16558 shlibpath_overrides_runpath=no
16559 else
16560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16561 shlibpath_overrides_runpath=yes
16562 case $host_os in
16563 sco3.2v5*)
16564 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16565 ;;
16566 esac
16567 fi
16568 sys_lib_dlsearch_path_spec='/usr/lib'
16569 ;;
16570
16571 uts4*)
16572 version_type=linux
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 ;;
16577
16578 *)
16579 dynamic_linker=no
16580 ;;
16581 esac
16582 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16583 echo "${ECHO_T}$dynamic_linker" >&6
16584 test "$dynamic_linker" = no && can_build_shared=no
16585
16586 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16587 if test "$GCC" = yes; then
16588 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16589 fi
16590
16591 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16592 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16593 hardcode_action_F77=
16594 if test -n "$hardcode_libdir_flag_spec_F77" || \
16595 test -n "$runpath_var_F77" || \
16596 test "X$hardcode_automatic_F77" = "Xyes" ; then
16597
16598 # We can hardcode non-existant directories.
16599 if test "$hardcode_direct_F77" != no &&
16600 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16601 # have to relink, otherwise we might link with an installed library
16602 # when we should be linking with a yet-to-be-installed one
16603 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16604 test "$hardcode_minus_L_F77" != no; then
16605 # Linking always hardcodes the temporary library directory.
16606 hardcode_action_F77=relink
16607 else
16608 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16609 hardcode_action_F77=immediate
16610 fi
16611 else
16612 # We cannot hardcode anything, or else we can only hardcode existing
16613 # directories.
16614 hardcode_action_F77=unsupported
16615 fi
16616 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16617 echo "${ECHO_T}$hardcode_action_F77" >&6
16618
16619 if test "$hardcode_action_F77" = relink; then
16620 # Fast installation is not supported
16621 enable_fast_install=no
16622 elif test "$shlibpath_overrides_runpath" = yes ||
16623 test "$enable_shared" = no; then
16624 # Fast installation is not necessary
16625 enable_fast_install=needless
16626 fi
16627
16628
16629 # The else clause should only fire when bootstrapping the
16630 # libtool distribution, otherwise you forgot to ship ltmain.sh
16631 # with your package, and you will get complaints that there are
16632 # no rules to generate ltmain.sh.
16633 if test -f "$ltmain"; then
16634 # See if we are running on zsh, and set the options which allow our commands through
16635 # without removal of \ escapes.
16636 if test -n "${ZSH_VERSION+set}" ; then
16637 setopt NO_GLOB_SUBST
16638 fi
16639 # Now quote all the things that may contain metacharacters while being
16640 # careful not to overquote the AC_SUBSTed values. We take copies of the
16641 # variables and quote the copies for generation of the libtool script.
16642 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16643 SED SHELL STRIP \
16644 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16645 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16646 deplibs_check_method reload_flag reload_cmds need_locks \
16647 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16648 lt_cv_sys_global_symbol_to_c_name_address \
16649 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16650 old_postinstall_cmds old_postuninstall_cmds \
16651 compiler_F77 \
16652 CC_F77 \
16653 LD_F77 \
16654 lt_prog_compiler_wl_F77 \
16655 lt_prog_compiler_pic_F77 \
16656 lt_prog_compiler_static_F77 \
16657 lt_prog_compiler_no_builtin_flag_F77 \
16658 export_dynamic_flag_spec_F77 \
16659 thread_safe_flag_spec_F77 \
16660 whole_archive_flag_spec_F77 \
16661 enable_shared_with_static_runtimes_F77 \
16662 old_archive_cmds_F77 \
16663 old_archive_from_new_cmds_F77 \
16664 predep_objects_F77 \
16665 postdep_objects_F77 \
16666 predeps_F77 \
16667 postdeps_F77 \
16668 compiler_lib_search_path_F77 \
16669 archive_cmds_F77 \
16670 archive_expsym_cmds_F77 \
16671 postinstall_cmds_F77 \
16672 postuninstall_cmds_F77 \
16673 old_archive_from_expsyms_cmds_F77 \
16674 allow_undefined_flag_F77 \
16675 no_undefined_flag_F77 \
16676 export_symbols_cmds_F77 \
16677 hardcode_libdir_flag_spec_F77 \
16678 hardcode_libdir_flag_spec_ld_F77 \
16679 hardcode_libdir_separator_F77 \
16680 hardcode_automatic_F77 \
16681 module_cmds_F77 \
16682 module_expsym_cmds_F77 \
16683 lt_cv_prog_compiler_c_o_F77 \
16684 exclude_expsyms_F77 \
16685 include_expsyms_F77; do
16686
16687 case $var in
16688 old_archive_cmds_F77 | \
16689 old_archive_from_new_cmds_F77 | \
16690 archive_cmds_F77 | \
16691 archive_expsym_cmds_F77 | \
16692 module_cmds_F77 | \
16693 module_expsym_cmds_F77 | \
16694 old_archive_from_expsyms_cmds_F77 | \
16695 export_symbols_cmds_F77 | \
16696 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16697 postinstall_cmds | postuninstall_cmds | \
16698 old_postinstall_cmds | old_postuninstall_cmds | \
16699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16700 # Double-quote double-evaled strings.
16701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16702 ;;
16703 *)
16704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16705 ;;
16706 esac
16707 done
16708
16709 case $lt_echo in
16710 *'\$0 --fallback-echo"')
16711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16712 ;;
16713 esac
16714
16715 cfgfile="$ofile"
16716
16717 cat <<__EOF__ >> "$cfgfile"
16718 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16719
16720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16721
16722 # Shell to use when invoking shell scripts.
16723 SHELL=$lt_SHELL
16724
16725 # Whether or not to build shared libraries.
16726 build_libtool_libs=$enable_shared
16727
16728 # Whether or not to build static libraries.
16729 build_old_libs=$enable_static
16730
16731 # Whether or not to add -lc for building shared libraries.
16732 build_libtool_need_lc=$archive_cmds_need_lc_F77
16733
16734 # Whether or not to disallow shared libs when runtime libs are static
16735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16736
16737 # Whether or not to optimize for fast installation.
16738 fast_install=$enable_fast_install
16739
16740 # The host system.
16741 host_alias=$host_alias
16742 host=$host
16743 host_os=$host_os
16744
16745 # The build system.
16746 build_alias=$build_alias
16747 build=$build
16748 build_os=$build_os
16749
16750 # An echo program that does not interpret backslashes.
16751 echo=$lt_echo
16752
16753 # The archiver.
16754 AR=$lt_AR
16755 AR_FLAGS=$lt_AR_FLAGS
16756
16757 # A C compiler.
16758 LTCC=$lt_LTCC
16759
16760 # LTCC compiler flags.
16761 LTCFLAGS=$lt_LTCFLAGS
16762
16763 # A language-specific compiler.
16764 CC=$lt_compiler_F77
16765
16766 # Is the compiler the GNU C compiler?
16767 with_gcc=$GCC_F77
16768
16769 # An ERE matcher.
16770 EGREP=$lt_EGREP
16771
16772 # The linker used to build libraries.
16773 LD=$lt_LD_F77
16774
16775 # Whether we need hard or soft links.
16776 LN_S=$lt_LN_S
16777
16778 # A BSD-compatible nm program.
16779 NM=$lt_NM
16780
16781 # A symbol stripping program
16782 STRIP=$lt_STRIP
16783
16784 # Used to examine libraries when file_magic_cmd begins "file"
16785 MAGIC_CMD=$MAGIC_CMD
16786
16787 # Used on cygwin: DLL creation program.
16788 DLLTOOL="$DLLTOOL"
16789
16790 # Used on cygwin: object dumper.
16791 OBJDUMP="$OBJDUMP"
16792
16793 # Used on cygwin: assembler.
16794 AS="$AS"
16795
16796 # The name of the directory that contains temporary libtool files.
16797 objdir=$objdir
16798
16799 # How to create reloadable object files.
16800 reload_flag=$lt_reload_flag
16801 reload_cmds=$lt_reload_cmds
16802
16803 # How to pass a linker flag through the compiler.
16804 wl=$lt_lt_prog_compiler_wl_F77
16805
16806 # Object file suffix (normally "o").
16807 objext="$ac_objext"
16808
16809 # Old archive suffix (normally "a").
16810 libext="$libext"
16811
16812 # Shared library suffix (normally ".so").
16813 shrext_cmds='$shrext_cmds'
16814
16815 # Executable file suffix (normally "").
16816 exeext="$exeext"
16817
16818 # Additional compiler flags for building library objects.
16819 pic_flag=$lt_lt_prog_compiler_pic_F77
16820 pic_mode=$pic_mode
16821
16822 # What is the maximum length of a command?
16823 max_cmd_len=$lt_cv_sys_max_cmd_len
16824
16825 # Does compiler simultaneously support -c and -o options?
16826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16827
16828 # Must we lock files when doing compilation?
16829 need_locks=$lt_need_locks
16830
16831 # Do we need the lib prefix for modules?
16832 need_lib_prefix=$need_lib_prefix
16833
16834 # Do we need a version for libraries?
16835 need_version=$need_version
16836
16837 # Whether dlopen is supported.
16838 dlopen_support=$enable_dlopen
16839
16840 # Whether dlopen of programs is supported.
16841 dlopen_self=$enable_dlopen_self
16842
16843 # Whether dlopen of statically linked programs is supported.
16844 dlopen_self_static=$enable_dlopen_self_static
16845
16846 # Compiler flag to prevent dynamic linking.
16847 link_static_flag=$lt_lt_prog_compiler_static_F77
16848
16849 # Compiler flag to turn off builtin functions.
16850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16851
16852 # Compiler flag to allow reflexive dlopens.
16853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16854
16855 # Compiler flag to generate shared objects directly from archives.
16856 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16857
16858 # Compiler flag to generate thread-safe objects.
16859 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16860
16861 # Library versioning type.
16862 version_type=$version_type
16863
16864 # Format of library name prefix.
16865 libname_spec=$lt_libname_spec
16866
16867 # List of archive names. First name is the real one, the rest are links.
16868 # The last name is the one that the linker finds with -lNAME.
16869 library_names_spec=$lt_library_names_spec
16870
16871 # The coded name of the library, if different from the real name.
16872 soname_spec=$lt_soname_spec
16873
16874 # Commands used to build and install an old-style archive.
16875 RANLIB=$lt_RANLIB
16876 old_archive_cmds=$lt_old_archive_cmds_F77
16877 old_postinstall_cmds=$lt_old_postinstall_cmds
16878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16879
16880 # Create an old-style archive from a shared archive.
16881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16882
16883 # Create a temporary old-style archive to link instead of a shared archive.
16884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16885
16886 # Commands used to build and install a shared archive.
16887 archive_cmds=$lt_archive_cmds_F77
16888 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16889 postinstall_cmds=$lt_postinstall_cmds
16890 postuninstall_cmds=$lt_postuninstall_cmds
16891
16892 # Commands used to build a loadable module (assumed same as above if empty)
16893 module_cmds=$lt_module_cmds_F77
16894 module_expsym_cmds=$lt_module_expsym_cmds_F77
16895
16896 # Commands to strip libraries.
16897 old_striplib=$lt_old_striplib
16898 striplib=$lt_striplib
16899
16900 # Dependencies to place before the objects being linked to create a
16901 # shared library.
16902 predep_objects=$lt_predep_objects_F77
16903
16904 # Dependencies to place after the objects being linked to create a
16905 # shared library.
16906 postdep_objects=$lt_postdep_objects_F77
16907
16908 # Dependencies to place before the objects being linked to create a
16909 # shared library.
16910 predeps=$lt_predeps_F77
16911
16912 # Dependencies to place after the objects being linked to create a
16913 # shared library.
16914 postdeps=$lt_postdeps_F77
16915
16916 # The library search path used internally by the compiler when linking
16917 # a shared library.
16918 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16919
16920 # Method to check whether dependent libraries are shared objects.
16921 deplibs_check_method=$lt_deplibs_check_method
16922
16923 # Command to use when deplibs_check_method == file_magic.
16924 file_magic_cmd=$lt_file_magic_cmd
16925
16926 # Flag that allows shared libraries with undefined symbols to be built.
16927 allow_undefined_flag=$lt_allow_undefined_flag_F77
16928
16929 # Flag that forces no undefined symbols.
16930 no_undefined_flag=$lt_no_undefined_flag_F77
16931
16932 # Commands used to finish a libtool library installation in a directory.
16933 finish_cmds=$lt_finish_cmds
16934
16935 # Same as above, but a single script fragment to be evaled but not shown.
16936 finish_eval=$lt_finish_eval
16937
16938 # Take the output of nm and produce a listing of raw symbols and C names.
16939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16940
16941 # Transform the output of nm in a proper C declaration
16942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16943
16944 # Transform the output of nm in a C name address pair
16945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16946
16947 # This is the shared library runtime path variable.
16948 runpath_var=$runpath_var
16949
16950 # This is the shared library path variable.
16951 shlibpath_var=$shlibpath_var
16952
16953 # Is shlibpath searched before the hard-coded library search path?
16954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16955
16956 # How to hardcode a shared library path into an executable.
16957 hardcode_action=$hardcode_action_F77
16958
16959 # Whether we should hardcode library paths into libraries.
16960 hardcode_into_libs=$hardcode_into_libs
16961
16962 # Flag to hardcode \$libdir into a binary during linking.
16963 # This must work even if \$libdir does not exist.
16964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16965
16966 # If ld is used when linking, flag to hardcode \$libdir into
16967 # a binary during linking. This must work even if \$libdir does
16968 # not exist.
16969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16970
16971 # Whether we need a single -rpath flag with a separated argument.
16972 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16973
16974 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16975 # resulting binary.
16976 hardcode_direct=$hardcode_direct_F77
16977
16978 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16979 # resulting binary.
16980 hardcode_minus_L=$hardcode_minus_L_F77
16981
16982 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16983 # the resulting binary.
16984 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16985
16986 # Set to yes if building a shared library automatically hardcodes DIR into the library
16987 # and all subsequent libraries and executables linked against it.
16988 hardcode_automatic=$hardcode_automatic_F77
16989
16990 # Variables whose values should be saved in libtool wrapper scripts and
16991 # restored at relink time.
16992 variables_saved_for_relink="$variables_saved_for_relink"
16993
16994 # Whether libtool must link a program against all its dependency libraries.
16995 link_all_deplibs=$link_all_deplibs_F77
16996
16997 # Compile-time system search path for libraries
16998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16999
17000 # Run-time system search path for libraries
17001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17002
17003 # Fix the shell variable \$srcfile for the compiler.
17004 fix_srcfile_path="$fix_srcfile_path_F77"
17005
17006 # Set to yes if exported symbols are required.
17007 always_export_symbols=$always_export_symbols_F77
17008
17009 # The commands to list exported symbols.
17010 export_symbols_cmds=$lt_export_symbols_cmds_F77
17011
17012 # The commands to extract the exported symbol list from a shared archive.
17013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17014
17015 # Symbols that should not be listed in the preloaded symbols.
17016 exclude_expsyms=$lt_exclude_expsyms_F77
17017
17018 # Symbols that must always be exported.
17019 include_expsyms=$lt_include_expsyms_F77
17020
17021 # ### END LIBTOOL TAG CONFIG: $tagname
17022
17023 __EOF__
17024
17025
17026 else
17027 # If there is no Makefile yet, we rely on a make rule to execute
17028 # `config.status --recheck' to rerun these tests and create the
17029 # libtool script then.
17030 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17031 if test -f "$ltmain_in"; then
17032 test -f Makefile && make "$ltmain"
17033 fi
17034 fi
17035
17036
17037 ac_ext=c
17038 ac_cpp='$CPP $CPPFLAGS'
17039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17042
17043 CC="$lt_save_CC"
17044
17045 else
17046 tagname=""
17047 fi
17048 ;;
17049
17050 GCJ)
17051 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17052
17053
17054
17055 # Source file extension for Java test sources.
17056 ac_ext=java
17057
17058 # Object file extension for compiled Java test sources.
17059 objext=o
17060 objext_GCJ=$objext
17061
17062 # Code to be used in simple compile tests
17063 lt_simple_compile_test_code="class foo {}\n"
17064
17065 # Code to be used in simple link tests
17066 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17067
17068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17069
17070 # If no C compiler was specified, use CC.
17071 LTCC=${LTCC-"$CC"}
17072
17073 # If no C compiler flags were specified, use CFLAGS.
17074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17075
17076 # Allow CC to be a program name with arguments.
17077 compiler=$CC
17078
17079
17080 # save warnings/boilerplate of simple test code
17081 ac_outfile=conftest.$ac_objext
17082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17084 _lt_compiler_boilerplate=`cat conftest.err`
17085 $rm conftest*
17086
17087 ac_outfile=conftest.$ac_objext
17088 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17090 _lt_linker_boilerplate=`cat conftest.err`
17091 $rm conftest*
17092
17093
17094 # Allow CC to be a program name with arguments.
17095 lt_save_CC="$CC"
17096 CC=${GCJ-"gcj"}
17097 compiler=$CC
17098 compiler_GCJ=$CC
17099 for cc_temp in $compiler""; do
17100 case $cc_temp in
17101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17103 \-*) ;;
17104 *) break;;
17105 esac
17106 done
17107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17108
17109
17110 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17111 archive_cmds_need_lc_GCJ=no
17112
17113 old_archive_cmds_GCJ=$old_archive_cmds
17114
17115 ## CAVEAT EMPTOR:
17116 ## There is no encapsulation within the following macros, do not change
17117 ## the running order or otherwise move them around unless you know exactly
17118 ## what you are doing...
17119
17120 lt_prog_compiler_no_builtin_flag_GCJ=
17121
17122 if test "$GCC" = yes; then
17123 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17124
17125
17126 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17127 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17128 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131 lt_cv_prog_compiler_rtti_exceptions=no
17132 ac_outfile=conftest.$ac_objext
17133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17134 lt_compiler_flag="-fno-rtti -fno-exceptions"
17135 # Insert the option either (1) after the last *FLAGS variable, or
17136 # (2) before a word containing "conftest.", or (3) at the end.
17137 # Note that $ac_compile itself does not contain backslashes and begins
17138 # with a dollar sign (not a hyphen), so the echo should work correctly.
17139 # The option is referenced via a variable to avoid confusing sed.
17140 lt_compile=`echo "$ac_compile" | $SED \
17141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17143 -e 's:$: $lt_compiler_flag:'`
17144 (eval echo "\"\$as_me:17144: $lt_compile\"" >&5)
17145 (eval "$lt_compile" 2>conftest.err)
17146 ac_status=$?
17147 cat conftest.err >&5
17148 echo "$as_me:17148: \$? = $ac_status" >&5
17149 if (exit $ac_status) && test -s "$ac_outfile"; then
17150 # The compiler can only warn and ignore the option if not recognized
17151 # So say no if there are warnings other than the usual output.
17152 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17155 lt_cv_prog_compiler_rtti_exceptions=yes
17156 fi
17157 fi
17158 $rm conftest*
17159
17160 fi
17161 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17162 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17163
17164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17165 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17166 else
17167 :
17168 fi
17169
17170 fi
17171
17172 lt_prog_compiler_wl_GCJ=
17173 lt_prog_compiler_pic_GCJ=
17174 lt_prog_compiler_static_GCJ=
17175
17176 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17177 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17178
17179 if test "$GCC" = yes; then
17180 lt_prog_compiler_wl_GCJ='-Wl,'
17181 lt_prog_compiler_static_GCJ='-static'
17182
17183 case $host_os in
17184 aix*)
17185 # All AIX code is PIC.
17186 if test "$host_cpu" = ia64; then
17187 # AIX 5 now supports IA64 processor
17188 lt_prog_compiler_static_GCJ='-Bstatic'
17189 fi
17190 ;;
17191
17192 amigaos*)
17193 # FIXME: we need at least 68020 code to build shared libraries, but
17194 # adding the `-m68020' flag to GCC prevents building anything better,
17195 # like `-m68040'.
17196 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17197 ;;
17198
17199 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17200 # PIC is the default for these OSes.
17201 ;;
17202
17203 mingw* | pw32* | os2*)
17204 # This hack is so that the source file can tell whether it is being
17205 # built for inclusion in a dll (and should export symbols for example).
17206 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17207 ;;
17208
17209 darwin* | rhapsody*)
17210 # PIC is the default on this platform
17211 # Common symbols not allowed in MH_DYLIB files
17212 lt_prog_compiler_pic_GCJ='-fno-common'
17213 ;;
17214
17215 interix3*)
17216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17217 # Instead, we relocate shared libraries at runtime.
17218 ;;
17219
17220 msdosdjgpp*)
17221 # Just because we use GCC doesn't mean we suddenly get shared libraries
17222 # on systems that don't support them.
17223 lt_prog_compiler_can_build_shared_GCJ=no
17224 enable_shared=no
17225 ;;
17226
17227 sysv4*MP*)
17228 if test -d /usr/nec; then
17229 lt_prog_compiler_pic_GCJ=-Kconform_pic
17230 fi
17231 ;;
17232
17233 hpux*)
17234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17235 # not for PA HP-UX.
17236 case $host_cpu in
17237 hppa*64*|ia64*)
17238 # +Z the default
17239 ;;
17240 *)
17241 lt_prog_compiler_pic_GCJ='-fPIC'
17242 ;;
17243 esac
17244 ;;
17245
17246 *)
17247 lt_prog_compiler_pic_GCJ='-fPIC'
17248 ;;
17249 esac
17250 else
17251 # PORTME Check for flag to pass linker flags through the system compiler.
17252 case $host_os in
17253 aix*)
17254 lt_prog_compiler_wl_GCJ='-Wl,'
17255 if test "$host_cpu" = ia64; then
17256 # AIX 5 now supports IA64 processor
17257 lt_prog_compiler_static_GCJ='-Bstatic'
17258 else
17259 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17260 fi
17261 ;;
17262 darwin*)
17263 # PIC is the default on this platform
17264 # Common symbols not allowed in MH_DYLIB files
17265 case $cc_basename in
17266 xlc*)
17267 lt_prog_compiler_pic_GCJ='-qnocommon'
17268 lt_prog_compiler_wl_GCJ='-Wl,'
17269 ;;
17270 esac
17271 ;;
17272
17273 mingw* | pw32* | os2*)
17274 # This hack is so that the source file can tell whether it is being
17275 # built for inclusion in a dll (and should export symbols for example).
17276 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17277 ;;
17278
17279 hpux9* | hpux10* | hpux11*)
17280 lt_prog_compiler_wl_GCJ='-Wl,'
17281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17282 # not for PA HP-UX.
17283 case $host_cpu in
17284 hppa*64*|ia64*)
17285 # +Z the default
17286 ;;
17287 *)
17288 lt_prog_compiler_pic_GCJ='+Z'
17289 ;;
17290 esac
17291 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17292 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17293 ;;
17294
17295 irix5* | irix6* | nonstopux*)
17296 lt_prog_compiler_wl_GCJ='-Wl,'
17297 # PIC (with -KPIC) is the default.
17298 lt_prog_compiler_static_GCJ='-non_shared'
17299 ;;
17300
17301 newsos6)
17302 lt_prog_compiler_pic_GCJ='-KPIC'
17303 lt_prog_compiler_static_GCJ='-Bstatic'
17304 ;;
17305
17306 linux*)
17307 case $cc_basename in
17308 icc* | ecc*)
17309 lt_prog_compiler_wl_GCJ='-Wl,'
17310 lt_prog_compiler_pic_GCJ='-KPIC'
17311 lt_prog_compiler_static_GCJ='-static'
17312 ;;
17313 pgcc* | pgf77* | pgf90* | pgf95*)
17314 # Portland Group compilers (*not* the Pentium gcc compiler,
17315 # which looks to be a dead project)
17316 lt_prog_compiler_wl_GCJ='-Wl,'
17317 lt_prog_compiler_pic_GCJ='-fpic'
17318 lt_prog_compiler_static_GCJ='-Bstatic'
17319 ;;
17320 ccc*)
17321 lt_prog_compiler_wl_GCJ='-Wl,'
17322 # All Alpha code is PIC.
17323 lt_prog_compiler_static_GCJ='-non_shared'
17324 ;;
17325 esac
17326 ;;
17327
17328 osf3* | osf4* | osf5*)
17329 lt_prog_compiler_wl_GCJ='-Wl,'
17330 # All OSF/1 code is PIC.
17331 lt_prog_compiler_static_GCJ='-non_shared'
17332 ;;
17333
17334 solaris*)
17335 lt_prog_compiler_pic_GCJ='-KPIC'
17336 lt_prog_compiler_static_GCJ='-Bstatic'
17337 case $cc_basename in
17338 f77* | f90* | f95*)
17339 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17340 *)
17341 lt_prog_compiler_wl_GCJ='-Wl,';;
17342 esac
17343 ;;
17344
17345 sunos4*)
17346 lt_prog_compiler_wl_GCJ='-Qoption ld '
17347 lt_prog_compiler_pic_GCJ='-PIC'
17348 lt_prog_compiler_static_GCJ='-Bstatic'
17349 ;;
17350
17351 sysv4 | sysv4.2uw2* | sysv4.3*)
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17353 lt_prog_compiler_pic_GCJ='-KPIC'
17354 lt_prog_compiler_static_GCJ='-Bstatic'
17355 ;;
17356
17357 sysv4*MP*)
17358 if test -d /usr/nec ;then
17359 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17360 lt_prog_compiler_static_GCJ='-Bstatic'
17361 fi
17362 ;;
17363
17364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17365 lt_prog_compiler_wl_GCJ='-Wl,'
17366 lt_prog_compiler_pic_GCJ='-KPIC'
17367 lt_prog_compiler_static_GCJ='-Bstatic'
17368 ;;
17369
17370 unicos*)
17371 lt_prog_compiler_wl_GCJ='-Wl,'
17372 lt_prog_compiler_can_build_shared_GCJ=no
17373 ;;
17374
17375 uts4*)
17376 lt_prog_compiler_pic_GCJ='-pic'
17377 lt_prog_compiler_static_GCJ='-Bstatic'
17378 ;;
17379
17380 *)
17381 lt_prog_compiler_can_build_shared_GCJ=no
17382 ;;
17383 esac
17384 fi
17385
17386 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17387 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17388
17389 #
17390 # Check to make sure the PIC flag actually works.
17391 #
17392 if test -n "$lt_prog_compiler_pic_GCJ"; then
17393
17394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17396 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399 lt_prog_compiler_pic_works_GCJ=no
17400 ac_outfile=conftest.$ac_objext
17401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17402 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17403 # Insert the option either (1) after the last *FLAGS variable, or
17404 # (2) before a word containing "conftest.", or (3) at the end.
17405 # Note that $ac_compile itself does not contain backslashes and begins
17406 # with a dollar sign (not a hyphen), so the echo should work correctly.
17407 # The option is referenced via a variable to avoid confusing sed.
17408 lt_compile=`echo "$ac_compile" | $SED \
17409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17411 -e 's:$: $lt_compiler_flag:'`
17412 (eval echo "\"\$as_me:17412: $lt_compile\"" >&5)
17413 (eval "$lt_compile" 2>conftest.err)
17414 ac_status=$?
17415 cat conftest.err >&5
17416 echo "$as_me:17416: \$? = $ac_status" >&5
17417 if (exit $ac_status) && test -s "$ac_outfile"; then
17418 # The compiler can only warn and ignore the option if not recognized
17419 # So say no if there are warnings other than the usual output.
17420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17423 lt_prog_compiler_pic_works_GCJ=yes
17424 fi
17425 fi
17426 $rm conftest*
17427
17428 fi
17429 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17430 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17431
17432 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17433 case $lt_prog_compiler_pic_GCJ in
17434 "" | " "*) ;;
17435 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17436 esac
17437 else
17438 lt_prog_compiler_pic_GCJ=
17439 lt_prog_compiler_can_build_shared_GCJ=no
17440 fi
17441
17442 fi
17443 case $host_os in
17444 # For platforms which do not support PIC, -DPIC is meaningless:
17445 *djgpp*)
17446 lt_prog_compiler_pic_GCJ=
17447 ;;
17448 *)
17449 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17450 ;;
17451 esac
17452
17453 #
17454 # Check to make sure the static flag actually works.
17455 #
17456 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17457 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17458 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17459 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 else
17462 lt_prog_compiler_static_works_GCJ=no
17463 save_LDFLAGS="$LDFLAGS"
17464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17465 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17467 # The linker can only warn and ignore the option if not recognized
17468 # So say no if there are warnings
17469 if test -s conftest.err; then
17470 # Append any errors to the config.log.
17471 cat conftest.err 1>&5
17472 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17474 if diff conftest.exp conftest.er2 >/dev/null; then
17475 lt_prog_compiler_static_works_GCJ=yes
17476 fi
17477 else
17478 lt_prog_compiler_static_works_GCJ=yes
17479 fi
17480 fi
17481 $rm conftest*
17482 LDFLAGS="$save_LDFLAGS"
17483
17484 fi
17485 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17486 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17487
17488 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17489 :
17490 else
17491 lt_prog_compiler_static_GCJ=
17492 fi
17493
17494
17495 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17496 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17497 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500 lt_cv_prog_compiler_c_o_GCJ=no
17501 $rm -r conftest 2>/dev/null
17502 mkdir conftest
17503 cd conftest
17504 mkdir out
17505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17506
17507 lt_compiler_flag="-o out/conftest2.$ac_objext"
17508 # Insert the option either (1) after the last *FLAGS variable, or
17509 # (2) before a word containing "conftest.", or (3) at the end.
17510 # Note that $ac_compile itself does not contain backslashes and begins
17511 # with a dollar sign (not a hyphen), so the echo should work correctly.
17512 lt_compile=`echo "$ac_compile" | $SED \
17513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17515 -e 's:$: $lt_compiler_flag:'`
17516 (eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
17517 (eval "$lt_compile" 2>out/conftest.err)
17518 ac_status=$?
17519 cat out/conftest.err >&5
17520 echo "$as_me:17520: \$? = $ac_status" >&5
17521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17522 then
17523 # The compiler can only warn and ignore the option if not recognized
17524 # So say no if there are warnings
17525 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17528 lt_cv_prog_compiler_c_o_GCJ=yes
17529 fi
17530 fi
17531 chmod u+w . 2>&5
17532 $rm conftest*
17533 # SGI C++ compiler will create directory out/ii_files/ for
17534 # template instantiation
17535 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17536 $rm out/* && rmdir out
17537 cd ..
17538 rmdir conftest
17539 $rm conftest*
17540
17541 fi
17542 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17543 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17544
17545
17546 hard_links="nottested"
17547 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17548 # do not overwrite the value of need_locks provided by the user
17549 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17550 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17551 hard_links=yes
17552 $rm conftest*
17553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17554 touch conftest.a
17555 ln conftest.a conftest.b 2>&5 || hard_links=no
17556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17557 echo "$as_me:$LINENO: result: $hard_links" >&5
17558 echo "${ECHO_T}$hard_links" >&6
17559 if test "$hard_links" = no; then
17560 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17561 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17562 need_locks=warn
17563 fi
17564 else
17565 need_locks=no
17566 fi
17567
17568 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17569 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17570
17571 runpath_var=
17572 allow_undefined_flag_GCJ=
17573 enable_shared_with_static_runtimes_GCJ=no
17574 archive_cmds_GCJ=
17575 archive_expsym_cmds_GCJ=
17576 old_archive_From_new_cmds_GCJ=
17577 old_archive_from_expsyms_cmds_GCJ=
17578 export_dynamic_flag_spec_GCJ=
17579 whole_archive_flag_spec_GCJ=
17580 thread_safe_flag_spec_GCJ=
17581 hardcode_libdir_flag_spec_GCJ=
17582 hardcode_libdir_flag_spec_ld_GCJ=
17583 hardcode_libdir_separator_GCJ=
17584 hardcode_direct_GCJ=no
17585 hardcode_minus_L_GCJ=no
17586 hardcode_shlibpath_var_GCJ=unsupported
17587 link_all_deplibs_GCJ=unknown
17588 hardcode_automatic_GCJ=no
17589 module_cmds_GCJ=
17590 module_expsym_cmds_GCJ=
17591 always_export_symbols_GCJ=no
17592 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17593 # include_expsyms should be a list of space-separated symbols to be *always*
17594 # included in the symbol list
17595 include_expsyms_GCJ=
17596 # exclude_expsyms can be an extended regexp of symbols to exclude
17597 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17598 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17599 # as well as any symbol that contains `d'.
17600 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17601 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17602 # platforms (ab)use it in PIC code, but their linkers get confused if
17603 # the symbol is explicitly referenced. Since portable code cannot
17604 # rely on this symbol name, it's probably fine to never include it in
17605 # preloaded symbol tables.
17606 extract_expsyms_cmds=
17607 # Just being paranoid about ensuring that cc_basename is set.
17608 for cc_temp in $compiler""; do
17609 case $cc_temp in
17610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17612 \-*) ;;
17613 *) break;;
17614 esac
17615 done
17616 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17617
17618 case $host_os in
17619 cygwin* | mingw* | pw32*)
17620 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17621 # When not using gcc, we currently assume that we are using
17622 # Microsoft Visual C++.
17623 if test "$GCC" != yes; then
17624 with_gnu_ld=no
17625 fi
17626 ;;
17627 interix*)
17628 # we just hope/assume this is gcc and not c89 (= MSVC++)
17629 with_gnu_ld=yes
17630 ;;
17631 openbsd*)
17632 with_gnu_ld=no
17633 ;;
17634 esac
17635
17636 ld_shlibs_GCJ=yes
17637 if test "$with_gnu_ld" = yes; then
17638 # If archive_cmds runs LD, not CC, wlarc should be empty
17639 wlarc='${wl}'
17640
17641 # Set some defaults for GNU ld with shared library support. These
17642 # are reset later if shared libraries are not supported. Putting them
17643 # here allows them to be overridden if necessary.
17644 runpath_var=LD_RUN_PATH
17645 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17646 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17647 # ancient GNU ld didn't support --whole-archive et. al.
17648 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17649 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17650 else
17651 whole_archive_flag_spec_GCJ=
17652 fi
17653 supports_anon_versioning=no
17654 case `$LD -v 2>/dev/null` in
17655 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17658 *\ 2.11.*) ;; # other 2.11 versions
17659 *) supports_anon_versioning=yes ;;
17660 esac
17661
17662 # See if GNU ld supports shared libraries.
17663 case $host_os in
17664 aix3* | aix4* | aix5*)
17665 # On AIX/PPC, the GNU linker is very broken
17666 if test "$host_cpu" != ia64; then
17667 ld_shlibs_GCJ=no
17668 cat <<EOF 1>&2
17669
17670 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17671 *** to be unable to reliably create shared libraries on AIX.
17672 *** Therefore, libtool is disabling shared libraries support. If you
17673 *** really care for shared libraries, you may want to modify your PATH
17674 *** so that a non-GNU linker is found, and then restart.
17675
17676 EOF
17677 fi
17678 ;;
17679
17680 amigaos*)
17681 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)'
17682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17683 hardcode_minus_L_GCJ=yes
17684
17685 # Samuel A. Falvo II <[email protected]> reports
17686 # that the semantics of dynamic libraries on AmigaOS, at least up
17687 # to version 4, is to share data among multiple programs linked
17688 # with the same dynamic library. Since this doesn't match the
17689 # behavior of shared libraries on other platforms, we can't use
17690 # them.
17691 ld_shlibs_GCJ=no
17692 ;;
17693
17694 beos*)
17695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17696 allow_undefined_flag_GCJ=unsupported
17697 # Joseph Beckenbach <[email protected]> says some releases of gcc
17698 # support --undefined. This deserves some investigation. FIXME
17699 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17700 else
17701 ld_shlibs_GCJ=no
17702 fi
17703 ;;
17704
17705 cygwin* | mingw* | pw32*)
17706 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17707 # as there is no search path for DLLs.
17708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17709 allow_undefined_flag_GCJ=unsupported
17710 always_export_symbols_GCJ=no
17711 enable_shared_with_static_runtimes_GCJ=yes
17712 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17713
17714 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17715 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17716 # If the export-symbols file already is a .def file (1st line
17717 # is EXPORTS), use it as is; otherwise, prepend...
17718 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17719 cp $export_symbols $output_objdir/$soname.def;
17720 else
17721 echo EXPORTS > $output_objdir/$soname.def;
17722 cat $export_symbols >> $output_objdir/$soname.def;
17723 fi~
17724 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17725 else
17726 ld_shlibs_GCJ=no
17727 fi
17728 ;;
17729
17730 interix3*)
17731 hardcode_direct_GCJ=no
17732 hardcode_shlibpath_var_GCJ=no
17733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17734 export_dynamic_flag_spec_GCJ='${wl}-E'
17735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17736 # Instead, shared libraries are loaded at an image base (0x10000000 by
17737 # default) and relocated if they conflict, which is a slow very memory
17738 # consuming and fragmenting process. To avoid this, we pick a random,
17739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17741 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'
17742 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'
17743 ;;
17744
17745 linux*)
17746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17747 tmp_addflag=
17748 case $cc_basename,$host_cpu in
17749 pgcc*) # Portland Group C compiler
17750 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'
17751 tmp_addflag=' $pic_flag'
17752 ;;
17753 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17754 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'
17755 tmp_addflag=' $pic_flag -Mnomain' ;;
17756 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17757 tmp_addflag=' -i_dynamic' ;;
17758 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17759 tmp_addflag=' -i_dynamic -nofor_main' ;;
17760 ifc* | ifort*) # Intel Fortran compiler
17761 tmp_addflag=' -nofor_main' ;;
17762 esac
17763 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17764
17765 if test $supports_anon_versioning = yes; then
17766 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17768 $echo "local: *; };" >> $output_objdir/$libname.ver~
17769 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17770 fi
17771 else
17772 ld_shlibs_GCJ=no
17773 fi
17774 ;;
17775
17776 netbsd*)
17777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17778 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17779 wlarc=
17780 else
17781 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17782 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17783 fi
17784 ;;
17785
17786 solaris*)
17787 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17788 ld_shlibs_GCJ=no
17789 cat <<EOF 1>&2
17790
17791 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17792 *** create shared libraries on Solaris systems. Therefore, libtool
17793 *** is disabling shared libraries support. We urge you to upgrade GNU
17794 *** binutils to release 2.9.1 or newer. Another option is to modify
17795 *** your PATH or compiler configuration so that the native linker is
17796 *** used, and then restart.
17797
17798 EOF
17799 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17800 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17801 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17802 else
17803 ld_shlibs_GCJ=no
17804 fi
17805 ;;
17806
17807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17808 case `$LD -v 2>&1` in
17809 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17810 ld_shlibs_GCJ=no
17811 cat <<_LT_EOF 1>&2
17812
17813 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17814 *** reliably create shared libraries on SCO systems. Therefore, libtool
17815 *** is disabling shared libraries support. We urge you to upgrade GNU
17816 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17817 *** your PATH or compiler configuration so that the native linker is
17818 *** used, and then restart.
17819
17820 _LT_EOF
17821 ;;
17822 *)
17823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17824 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17827 else
17828 ld_shlibs_GCJ=no
17829 fi
17830 ;;
17831 esac
17832 ;;
17833
17834 sunos4*)
17835 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17836 wlarc=
17837 hardcode_direct_GCJ=yes
17838 hardcode_shlibpath_var_GCJ=no
17839 ;;
17840
17841 *)
17842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17845 else
17846 ld_shlibs_GCJ=no
17847 fi
17848 ;;
17849 esac
17850
17851 if test "$ld_shlibs_GCJ" = no; then
17852 runpath_var=
17853 hardcode_libdir_flag_spec_GCJ=
17854 export_dynamic_flag_spec_GCJ=
17855 whole_archive_flag_spec_GCJ=
17856 fi
17857 else
17858 # PORTME fill in a description of your system's linker (not GNU ld)
17859 case $host_os in
17860 aix3*)
17861 allow_undefined_flag_GCJ=unsupported
17862 always_export_symbols_GCJ=yes
17863 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'
17864 # Note: this linker hardcodes the directories in LIBPATH if there
17865 # are no directories specified by -L.
17866 hardcode_minus_L_GCJ=yes
17867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17868 # Neither direct hardcoding nor static linking is supported with a
17869 # broken collect2.
17870 hardcode_direct_GCJ=unsupported
17871 fi
17872 ;;
17873
17874 aix4* | aix5*)
17875 if test "$host_cpu" = ia64; then
17876 # On IA64, the linker does run time linking by default, so we don't
17877 # have to do anything special.
17878 aix_use_runtimelinking=no
17879 exp_sym_flag='-Bexport'
17880 no_entry_flag=""
17881 else
17882 # If we're using GNU nm, then we don't want the "-C" option.
17883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17884 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17885 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'
17886 else
17887 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'
17888 fi
17889 aix_use_runtimelinking=no
17890
17891 # Test if we are trying to use run time linking or normal
17892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17893 # need to do runtime linking.
17894 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17895 for ld_flag in $LDFLAGS; do
17896 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17897 aix_use_runtimelinking=yes
17898 break
17899 fi
17900 done
17901 ;;
17902 esac
17903
17904 exp_sym_flag='-bexport'
17905 no_entry_flag='-bnoentry'
17906 fi
17907
17908 # When large executables or shared objects are built, AIX ld can
17909 # have problems creating the table of contents. If linking a library
17910 # or program results in "error TOC overflow" add -mminimal-toc to
17911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17913
17914 archive_cmds_GCJ=''
17915 hardcode_direct_GCJ=yes
17916 hardcode_libdir_separator_GCJ=':'
17917 link_all_deplibs_GCJ=yes
17918
17919 if test "$GCC" = yes; then
17920 case $host_os in aix4.[012]|aix4.[012].*)
17921 # We only want to do this on AIX 4.2 and lower, the check
17922 # below for broken collect2 doesn't work under 4.3+
17923 collect2name=`${CC} -print-prog-name=collect2`
17924 if test -f "$collect2name" && \
17925 strings "$collect2name" | grep resolve_lib_name >/dev/null
17926 then
17927 # We have reworked collect2
17928 hardcode_direct_GCJ=yes
17929 else
17930 # We have old collect2
17931 hardcode_direct_GCJ=unsupported
17932 # It fails to find uninstalled libraries when the uninstalled
17933 # path is not listed in the libpath. Setting hardcode_minus_L
17934 # to unsupported forces relinking
17935 hardcode_minus_L_GCJ=yes
17936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17937 hardcode_libdir_separator_GCJ=
17938 fi
17939 ;;
17940 esac
17941 shared_flag='-shared'
17942 if test "$aix_use_runtimelinking" = yes; then
17943 shared_flag="$shared_flag "'${wl}-G'
17944 fi
17945 else
17946 # not using gcc
17947 if test "$host_cpu" = ia64; then
17948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17949 # chokes on -Wl,-G. The following line is correct:
17950 shared_flag='-G'
17951 else
17952 if test "$aix_use_runtimelinking" = yes; then
17953 shared_flag='${wl}-G'
17954 else
17955 shared_flag='${wl}-bM:SRE'
17956 fi
17957 fi
17958 fi
17959
17960 # It seems that -bexpall does not export symbols beginning with
17961 # underscore (_), so it is better to generate a list of symbols to export.
17962 always_export_symbols_GCJ=yes
17963 if test "$aix_use_runtimelinking" = yes; then
17964 # Warning - without using the other runtime loading flags (-brtl),
17965 # -berok will link without error, but may produce a broken library.
17966 allow_undefined_flag_GCJ='-berok'
17967 # Determine the default libpath from the value encoded in an empty executable.
17968 cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h. */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974
17975 int
17976 main ()
17977 {
17978
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag"
17993 || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005
18006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18007 }'`
18008 # Check for a 64-bit object if we didn't find anything.
18009 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; }
18010 }'`; fi
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 fi
18016 rm -f conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18019
18020 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18021 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"
18022 else
18023 if test "$host_cpu" = ia64; then
18024 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18025 allow_undefined_flag_GCJ="-z nodefs"
18026 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"
18027 else
18028 # Determine the default libpath from the value encoded in an empty executable.
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h. */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035
18036 int
18037 main ()
18038 {
18039
18040 ;
18041 return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag"
18054 || test ! -s conftest.err'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest$ac_exeext'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066
18067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18068 }'`
18069 # Check for a 64-bit object if we didn't find anything.
18070 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; }
18071 }'`; fi
18072 else
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 fi
18077 rm -f conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18080
18081 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18082 # Warning - without using the other run time loading flags,
18083 # -berok will link without error, but may produce a broken library.
18084 no_undefined_flag_GCJ=' ${wl}-bernotok'
18085 allow_undefined_flag_GCJ=' ${wl}-berok'
18086 # Exported symbols can be pulled into shared objects from archives
18087 whole_archive_flag_spec_GCJ='$convenience'
18088 archive_cmds_need_lc_GCJ=yes
18089 # This is similar to how AIX traditionally builds its shared libraries.
18090 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'
18091 fi
18092 fi
18093 ;;
18094
18095 amigaos*)
18096 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)'
18097 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18098 hardcode_minus_L_GCJ=yes
18099 # see comment about different semantics on the GNU ld section
18100 ld_shlibs_GCJ=no
18101 ;;
18102
18103 bsdi[45]*)
18104 export_dynamic_flag_spec_GCJ=-rdynamic
18105 ;;
18106
18107 cygwin* | mingw* | pw32*)
18108 # When not using gcc, we currently assume that we are using
18109 # Microsoft Visual C++.
18110 # hardcode_libdir_flag_spec is actually meaningless, as there is
18111 # no search path for DLLs.
18112 hardcode_libdir_flag_spec_GCJ=' '
18113 allow_undefined_flag_GCJ=unsupported
18114 # Tell ltmain to make .lib files, not .a files.
18115 libext=lib
18116 # Tell ltmain to make .dll files, not .so files.
18117 shrext_cmds=".dll"
18118 # FIXME: Setting linknames here is a bad hack.
18119 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18120 # The linker will automatically build a .lib file if we build a DLL.
18121 old_archive_From_new_cmds_GCJ='true'
18122 # FIXME: Should let the user specify the lib program.
18123 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18124 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18125 enable_shared_with_static_runtimes_GCJ=yes
18126 ;;
18127
18128 darwin* | rhapsody*)
18129 case $host_os in
18130 rhapsody* | darwin1.[012])
18131 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18132 ;;
18133 *) # Darwin 1.3 on
18134 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18135 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18136 else
18137 case ${MACOSX_DEPLOYMENT_TARGET} in
18138 10.[012])
18139 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18140 ;;
18141 10.*)
18142 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18143 ;;
18144 esac
18145 fi
18146 ;;
18147 esac
18148 archive_cmds_need_lc_GCJ=no
18149 hardcode_direct_GCJ=no
18150 hardcode_automatic_GCJ=yes
18151 hardcode_shlibpath_var_GCJ=unsupported
18152 whole_archive_flag_spec_GCJ=''
18153 link_all_deplibs_GCJ=yes
18154 if test "$GCC" = yes ; then
18155 output_verbose_link_cmd='echo'
18156 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18157 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18159 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}'
18160 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}'
18161 else
18162 case $cc_basename in
18163 xlc*)
18164 output_verbose_link_cmd='echo'
18165 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18166 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18168 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}'
18169 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}'
18170 ;;
18171 *)
18172 ld_shlibs_GCJ=no
18173 ;;
18174 esac
18175 fi
18176 ;;
18177
18178 dgux*)
18179 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18181 hardcode_shlibpath_var_GCJ=no
18182 ;;
18183
18184 freebsd1*)
18185 ld_shlibs_GCJ=no
18186 ;;
18187
18188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18189 # support. Future versions do this automatically, but an explicit c++rt0.o
18190 # does not break anything, and helps significantly (at the cost of a little
18191 # extra space).
18192 freebsd2.2*)
18193 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18194 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195 hardcode_direct_GCJ=yes
18196 hardcode_shlibpath_var_GCJ=no
18197 ;;
18198
18199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18200 freebsd2*)
18201 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18202 hardcode_direct_GCJ=yes
18203 hardcode_minus_L_GCJ=yes
18204 hardcode_shlibpath_var_GCJ=no
18205 ;;
18206
18207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18208 freebsd* | kfreebsd*-gnu | dragonfly*)
18209 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18211 hardcode_direct_GCJ=yes
18212 hardcode_shlibpath_var_GCJ=no
18213 ;;
18214
18215 hpux9*)
18216 if test "$GCC" = yes; then
18217 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'
18218 else
18219 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'
18220 fi
18221 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18222 hardcode_libdir_separator_GCJ=:
18223 hardcode_direct_GCJ=yes
18224
18225 # hardcode_minus_L: Not really in the search PATH,
18226 # but as the default location of the library.
18227 hardcode_minus_L_GCJ=yes
18228 export_dynamic_flag_spec_GCJ='${wl}-E'
18229 ;;
18230
18231 hpux10*)
18232 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18233 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18234 else
18235 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18236 fi
18237 if test "$with_gnu_ld" = no; then
18238 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18239 hardcode_libdir_separator_GCJ=:
18240
18241 hardcode_direct_GCJ=yes
18242 export_dynamic_flag_spec_GCJ='${wl}-E'
18243
18244 # hardcode_minus_L: Not really in the search PATH,
18245 # but as the default location of the library.
18246 hardcode_minus_L_GCJ=yes
18247 fi
18248 ;;
18249
18250 hpux11*)
18251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18252 case $host_cpu in
18253 hppa*64*)
18254 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18255 ;;
18256 ia64*)
18257 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18258 ;;
18259 *)
18260 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18261 ;;
18262 esac
18263 else
18264 case $host_cpu in
18265 hppa*64*)
18266 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18267 ;;
18268 ia64*)
18269 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18270 ;;
18271 *)
18272 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18273 ;;
18274 esac
18275 fi
18276 if test "$with_gnu_ld" = no; then
18277 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18278 hardcode_libdir_separator_GCJ=:
18279
18280 case $host_cpu in
18281 hppa*64*|ia64*)
18282 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18283 hardcode_direct_GCJ=no
18284 hardcode_shlibpath_var_GCJ=no
18285 ;;
18286 *)
18287 hardcode_direct_GCJ=yes
18288 export_dynamic_flag_spec_GCJ='${wl}-E'
18289
18290 # hardcode_minus_L: Not really in the search PATH,
18291 # but as the default location of the library.
18292 hardcode_minus_L_GCJ=yes
18293 ;;
18294 esac
18295 fi
18296 ;;
18297
18298 irix5* | irix6* | nonstopux*)
18299 if test "$GCC" = yes; then
18300 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'
18301 else
18302 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'
18303 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18304 fi
18305 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18306 hardcode_libdir_separator_GCJ=:
18307 link_all_deplibs_GCJ=yes
18308 ;;
18309
18310 netbsd*)
18311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18312 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18313 else
18314 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18315 fi
18316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18317 hardcode_direct_GCJ=yes
18318 hardcode_shlibpath_var_GCJ=no
18319 ;;
18320
18321 newsos6)
18322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18323 hardcode_direct_GCJ=yes
18324 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18325 hardcode_libdir_separator_GCJ=:
18326 hardcode_shlibpath_var_GCJ=no
18327 ;;
18328
18329 openbsd*)
18330 hardcode_direct_GCJ=yes
18331 hardcode_shlibpath_var_GCJ=no
18332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18336 export_dynamic_flag_spec_GCJ='${wl}-E'
18337 else
18338 case $host_os in
18339 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18340 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18341 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18342 ;;
18343 *)
18344 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18346 ;;
18347 esac
18348 fi
18349 ;;
18350
18351 os2*)
18352 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18353 hardcode_minus_L_GCJ=yes
18354 allow_undefined_flag_GCJ=unsupported
18355 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'
18356 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18357 ;;
18358
18359 osf3*)
18360 if test "$GCC" = yes; then
18361 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18362 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'
18363 else
18364 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18365 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'
18366 fi
18367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18368 hardcode_libdir_separator_GCJ=:
18369 ;;
18370
18371 osf4* | osf5*) # as osf3* with the addition of -msym flag
18372 if test "$GCC" = yes; then
18373 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18374 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'
18375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18376 else
18377 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18378 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'
18379 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~
18380 $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'
18381
18382 # Both c and cxx compiler support -rpath directly
18383 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18384 fi
18385 hardcode_libdir_separator_GCJ=:
18386 ;;
18387
18388 solaris*)
18389 no_undefined_flag_GCJ=' -z text'
18390 if test "$GCC" = yes; then
18391 wlarc='${wl}'
18392 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18393 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18394 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18395 else
18396 wlarc=''
18397 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18400 fi
18401 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18402 hardcode_shlibpath_var_GCJ=no
18403 case $host_os in
18404 solaris2.[0-5] | solaris2.[0-5].*) ;;
18405 *)
18406 # The compiler driver will combine linker options so we
18407 # cannot just pass the convience library names through
18408 # without $wl, iff we do not link with $LD.
18409 # Luckily, gcc supports the same syntax we need for Sun Studio.
18410 # Supported since Solaris 2.6 (maybe 2.5.1?)
18411 case $wlarc in
18412 '')
18413 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18414 *)
18415 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' ;;
18416 esac ;;
18417 esac
18418 link_all_deplibs_GCJ=yes
18419 ;;
18420
18421 sunos4*)
18422 if test "x$host_vendor" = xsequent; then
18423 # Use $CC to link under sequent, because it throws in some extra .o
18424 # files that make .init and .fini sections work.
18425 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18426 else
18427 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18428 fi
18429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18430 hardcode_direct_GCJ=yes
18431 hardcode_minus_L_GCJ=yes
18432 hardcode_shlibpath_var_GCJ=no
18433 ;;
18434
18435 sysv4)
18436 case $host_vendor in
18437 sni)
18438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18439 hardcode_direct_GCJ=yes # is this really true???
18440 ;;
18441 siemens)
18442 ## LD is ld it makes a PLAMLIB
18443 ## CC just makes a GrossModule.
18444 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18445 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18446 hardcode_direct_GCJ=no
18447 ;;
18448 motorola)
18449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18450 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18451 ;;
18452 esac
18453 runpath_var='LD_RUN_PATH'
18454 hardcode_shlibpath_var_GCJ=no
18455 ;;
18456
18457 sysv4.3*)
18458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18459 hardcode_shlibpath_var_GCJ=no
18460 export_dynamic_flag_spec_GCJ='-Bexport'
18461 ;;
18462
18463 sysv4*MP*)
18464 if test -d /usr/nec; then
18465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18466 hardcode_shlibpath_var_GCJ=no
18467 runpath_var=LD_RUN_PATH
18468 hardcode_runpath_var=yes
18469 ld_shlibs_GCJ=yes
18470 fi
18471 ;;
18472
18473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18474 no_undefined_flag_GCJ='${wl}-z,text'
18475 archive_cmds_need_lc_GCJ=no
18476 hardcode_shlibpath_var_GCJ=no
18477 runpath_var='LD_RUN_PATH'
18478
18479 if test "$GCC" = yes; then
18480 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18481 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18482 else
18483 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18484 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18485 fi
18486 ;;
18487
18488 sysv5* | sco3.2v5* | sco5v6*)
18489 # Note: We can NOT use -z defs as we might desire, because we do not
18490 # link with -lc, and that would cause any symbols used from libc to
18491 # always be unresolved, which means just about no library would
18492 # ever link correctly. If we're not using GNU ld we use -z text
18493 # though, which does catch some bad symbols but isn't as heavy-handed
18494 # as -z defs.
18495 no_undefined_flag_GCJ='${wl}-z,text'
18496 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18497 archive_cmds_need_lc_GCJ=no
18498 hardcode_shlibpath_var_GCJ=no
18499 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18500 hardcode_libdir_separator_GCJ=':'
18501 link_all_deplibs_GCJ=yes
18502 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18503 runpath_var='LD_RUN_PATH'
18504
18505 if test "$GCC" = yes; then
18506 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 else
18509 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 fi
18512 ;;
18513
18514 uts4*)
18515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18517 hardcode_shlibpath_var_GCJ=no
18518 ;;
18519
18520 *)
18521 ld_shlibs_GCJ=no
18522 ;;
18523 esac
18524 fi
18525
18526 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18527 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18528 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18529
18530 #
18531 # Do we need to explicitly link libc?
18532 #
18533 case "x$archive_cmds_need_lc_GCJ" in
18534 x|xyes)
18535 # Assume -lc should be added
18536 archive_cmds_need_lc_GCJ=yes
18537
18538 if test "$enable_shared" = yes && test "$GCC" = yes; then
18539 case $archive_cmds_GCJ in
18540 *'~'*)
18541 # FIXME: we may have to deal with multi-command sequences.
18542 ;;
18543 '$CC '*)
18544 # Test whether the compiler implicitly links with -lc since on some
18545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18546 # to ld, don't add -lc before -lgcc.
18547 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18548 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18549 $rm conftest*
18550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18551
18552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18553 (eval $ac_compile) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } 2>conftest.err; then
18557 soname=conftest
18558 lib=conftest
18559 libobjs=conftest.$ac_objext
18560 deplibs=
18561 wl=$lt_prog_compiler_wl_GCJ
18562 pic_flag=$lt_prog_compiler_pic_GCJ
18563 compiler_flags=-v
18564 linker_flags=-v
18565 verstring=
18566 output_objdir=.
18567 libname=conftest
18568 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18569 allow_undefined_flag_GCJ=
18570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18571 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }
18575 then
18576 archive_cmds_need_lc_GCJ=no
18577 else
18578 archive_cmds_need_lc_GCJ=yes
18579 fi
18580 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18581 else
18582 cat conftest.err 1>&5
18583 fi
18584 $rm conftest*
18585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18586 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18587 ;;
18588 esac
18589 fi
18590 ;;
18591 esac
18592
18593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18595 library_names_spec=
18596 libname_spec='lib$name'
18597 soname_spec=
18598 shrext_cmds=".so"
18599 postinstall_cmds=
18600 postuninstall_cmds=
18601 finish_cmds=
18602 finish_eval=
18603 shlibpath_var=
18604 shlibpath_overrides_runpath=unknown
18605 version_type=none
18606 dynamic_linker="$host_os ld.so"
18607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18608 if test "$GCC" = yes; then
18609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18611 # if the path contains ";" then we assume it to be the separator
18612 # otherwise default to the standard path separator (i.e. ":") - it is
18613 # assumed that no part of a normal pathname contains ";" but that should
18614 # okay in the real world where ";" in dirpaths is itself problematic.
18615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18616 else
18617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18618 fi
18619 else
18620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18621 fi
18622 need_lib_prefix=unknown
18623 hardcode_into_libs=no
18624
18625 # when you set need_version to no, make sure it does not cause -set_version
18626 # flags to be left without arguments
18627 need_version=unknown
18628
18629 case $host_os in
18630 aix3*)
18631 version_type=linux
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18633 shlibpath_var=LIBPATH
18634
18635 # AIX 3 has no versioning support, so we append a major version to the name.
18636 soname_spec='${libname}${release}${shared_ext}$major'
18637 ;;
18638
18639 aix4* | aix5*)
18640 version_type=linux
18641 need_lib_prefix=no
18642 need_version=no
18643 hardcode_into_libs=yes
18644 if test "$host_cpu" = ia64; then
18645 # AIX 5 supports IA64
18646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18647 shlibpath_var=LD_LIBRARY_PATH
18648 else
18649 # With GCC up to 2.95.x, collect2 would create an import file
18650 # for dependence libraries. The import file would start with
18651 # the line `#! .'. This would cause the generated library to
18652 # depend on `.', always an invalid library. This was fixed in
18653 # development snapshots of GCC prior to 3.0.
18654 case $host_os in
18655 aix4 | aix4.[01] | aix4.[01].*)
18656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18657 echo ' yes '
18658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18659 :
18660 else
18661 can_build_shared=no
18662 fi
18663 ;;
18664 esac
18665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18666 # soname into executable. Probably we can add versioning support to
18667 # collect2, so additional links can be useful in future.
18668 if test "$aix_use_runtimelinking" = yes; then
18669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18670 # instead of lib<name>.a to let people know that these are not
18671 # typical AIX shared libraries.
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673 else
18674 # We preserve .a as extension for shared libraries through AIX4.2
18675 # and later when we are not doing run time linking.
18676 library_names_spec='${libname}${release}.a $libname.a'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 fi
18679 shlibpath_var=LIBPATH
18680 fi
18681 ;;
18682
18683 amigaos*)
18684 library_names_spec='$libname.ixlibrary $libname.a'
18685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18686 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'
18687 ;;
18688
18689 beos*)
18690 library_names_spec='${libname}${shared_ext}'
18691 dynamic_linker="$host_os ld.so"
18692 shlibpath_var=LIBRARY_PATH
18693 ;;
18694
18695 bsdi[45]*)
18696 version_type=linux
18697 need_version=no
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18704 # the default ld.so.conf also contains /usr/contrib/lib and
18705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18706 # libtool to hard-code these into programs
18707 ;;
18708
18709 cygwin* | mingw* | pw32*)
18710 version_type=windows
18711 shrext_cmds=".dll"
18712 need_version=no
18713 need_lib_prefix=no
18714
18715 case $GCC,$host_os in
18716 yes,cygwin* | yes,mingw* | yes,pw32*)
18717 library_names_spec='$libname.dll.a'
18718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18719 postinstall_cmds='base_file=`basename \${file}`~
18720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18721 dldir=$destdir/`dirname \$dlpath`~
18722 test -d \$dldir || mkdir -p \$dldir~
18723 $install_prog $dir/$dlname \$dldir/$dlname~
18724 chmod a+x \$dldir/$dlname'
18725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18726 dlpath=$dir/\$dldll~
18727 $rm \$dlpath'
18728 shlibpath_overrides_runpath=yes
18729
18730 case $host_os in
18731 cygwin*)
18732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18735 ;;
18736 mingw*)
18737 # MinGW DLLs use traditional 'lib' prefix
18738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18740 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18741 # It is most probably a Windows format PATH printed by
18742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18743 # path with ; separators, and with drive letters. We can handle the
18744 # drive letters (cygwin fileutils understands them), so leave them,
18745 # especially as we might pass files found there to a mingw objdump,
18746 # which wouldn't understand a cygwinified path. Ahh.
18747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18748 else
18749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18750 fi
18751 ;;
18752 pw32*)
18753 # pw32 DLLs use 'pw' prefix rather than 'lib'
18754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18755 ;;
18756 esac
18757 ;;
18758
18759 *)
18760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18761 ;;
18762 esac
18763 dynamic_linker='Win32 ld.exe'
18764 # FIXME: first we should search . and the directory the executable is in
18765 shlibpath_var=PATH
18766 ;;
18767
18768 darwin* | rhapsody*)
18769 dynamic_linker="$host_os dyld"
18770 version_type=darwin
18771 need_lib_prefix=no
18772 need_version=no
18773 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18774 soname_spec='${libname}${release}${major}$shared_ext'
18775 shlibpath_overrides_runpath=yes
18776 shlibpath_var=DYLD_LIBRARY_PATH
18777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18778 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18779 if test "$GCC" = yes; then
18780 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"`
18781 else
18782 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18783 fi
18784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18785 ;;
18786
18787 dgux*)
18788 version_type=linux
18789 need_lib_prefix=no
18790 need_version=no
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18792 soname_spec='${libname}${release}${shared_ext}$major'
18793 shlibpath_var=LD_LIBRARY_PATH
18794 ;;
18795
18796 freebsd1*)
18797 dynamic_linker=no
18798 ;;
18799
18800 kfreebsd*-gnu)
18801 version_type=linux
18802 need_lib_prefix=no
18803 need_version=no
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18805 soname_spec='${libname}${release}${shared_ext}$major'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=no
18808 hardcode_into_libs=yes
18809 dynamic_linker='GNU ld.so'
18810 ;;
18811
18812 freebsd* | dragonfly*)
18813 # DragonFly does not have aout. When/if they implement a new
18814 # versioning mechanism, adjust this.
18815 if test -x /usr/bin/objformat; then
18816 objformat=`/usr/bin/objformat`
18817 else
18818 case $host_os in
18819 freebsd[123]*) objformat=aout ;;
18820 *) objformat=elf ;;
18821 esac
18822 fi
18823 version_type=freebsd-$objformat
18824 case $version_type in
18825 freebsd-elf*)
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18827 need_version=no
18828 need_lib_prefix=no
18829 ;;
18830 freebsd-*)
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18832 need_version=yes
18833 ;;
18834 esac
18835 shlibpath_var=LD_LIBRARY_PATH
18836 case $host_os in
18837 freebsd2*)
18838 shlibpath_overrides_runpath=yes
18839 ;;
18840 freebsd3.[01]* | freebsdelf3.[01]*)
18841 shlibpath_overrides_runpath=yes
18842 hardcode_into_libs=yes
18843 ;;
18844 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18845 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18846 shlibpath_overrides_runpath=no
18847 hardcode_into_libs=yes
18848 ;;
18849 freebsd*) # from 4.6 on
18850 shlibpath_overrides_runpath=yes
18851 hardcode_into_libs=yes
18852 ;;
18853 esac
18854 ;;
18855
18856 gnu*)
18857 version_type=linux
18858 need_lib_prefix=no
18859 need_version=no
18860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18861 soname_spec='${libname}${release}${shared_ext}$major'
18862 shlibpath_var=LD_LIBRARY_PATH
18863 hardcode_into_libs=yes
18864 ;;
18865
18866 hpux9* | hpux10* | hpux11*)
18867 # Give a soname corresponding to the major version so that dld.sl refuses to
18868 # link against other versions.
18869 version_type=sunos
18870 need_lib_prefix=no
18871 need_version=no
18872 case $host_cpu in
18873 ia64*)
18874 shrext_cmds='.so'
18875 hardcode_into_libs=yes
18876 dynamic_linker="$host_os dld.so"
18877 shlibpath_var=LD_LIBRARY_PATH
18878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18880 soname_spec='${libname}${release}${shared_ext}$major'
18881 if test "X$HPUX_IA64_MODE" = X32; then
18882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18883 else
18884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18885 fi
18886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18887 ;;
18888 hppa*64*)
18889 shrext_cmds='.sl'
18890 hardcode_into_libs=yes
18891 dynamic_linker="$host_os dld.sl"
18892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 soname_spec='${libname}${release}${shared_ext}$major'
18896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18898 ;;
18899 *)
18900 shrext_cmds='.sl'
18901 dynamic_linker="$host_os dld.sl"
18902 shlibpath_var=SHLIB_PATH
18903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18905 soname_spec='${libname}${release}${shared_ext}$major'
18906 ;;
18907 esac
18908 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18909 postinstall_cmds='chmod 555 $lib'
18910 ;;
18911
18912 interix3*)
18913 version_type=linux
18914 need_lib_prefix=no
18915 need_version=no
18916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18917 soname_spec='${libname}${release}${shared_ext}$major'
18918 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18919 shlibpath_var=LD_LIBRARY_PATH
18920 shlibpath_overrides_runpath=no
18921 hardcode_into_libs=yes
18922 ;;
18923
18924 irix5* | irix6* | nonstopux*)
18925 case $host_os in
18926 nonstopux*) version_type=nonstopux ;;
18927 *)
18928 if test "$lt_cv_prog_gnu_ld" = yes; then
18929 version_type=linux
18930 else
18931 version_type=irix
18932 fi ;;
18933 esac
18934 need_lib_prefix=no
18935 need_version=no
18936 soname_spec='${libname}${release}${shared_ext}$major'
18937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18938 case $host_os in
18939 irix5* | nonstopux*)
18940 libsuff= shlibsuff=
18941 ;;
18942 *)
18943 case $LD in # libtool.m4 will add one of these switches to LD
18944 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18945 libsuff= shlibsuff= libmagic=32-bit;;
18946 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18947 libsuff=32 shlibsuff=N32 libmagic=N32;;
18948 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18949 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18950 *) libsuff= shlibsuff= libmagic=never-match;;
18951 esac
18952 ;;
18953 esac
18954 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18955 shlibpath_overrides_runpath=no
18956 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18957 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18958 hardcode_into_libs=yes
18959 ;;
18960
18961 # No shared lib support for Linux oldld, aout, or coff.
18962 linux*oldld* | linux*aout* | linux*coff*)
18963 dynamic_linker=no
18964 ;;
18965
18966 # This must be Linux ELF.
18967 linux*)
18968 version_type=linux
18969 need_lib_prefix=no
18970 need_version=no
18971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18972 soname_spec='${libname}${release}${shared_ext}$major'
18973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18974 shlibpath_var=LD_LIBRARY_PATH
18975 shlibpath_overrides_runpath=no
18976 # This implies no fast_install, which is unacceptable.
18977 # Some rework will be needed to allow for fast_install
18978 # before this can be enabled.
18979 hardcode_into_libs=yes
18980
18981 # Append ld.so.conf contents to the search path
18982 if test -f /etc/ld.so.conf; then
18983 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' ' '`
18984 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18985 fi
18986
18987 # We used to test for /lib/ld.so.1 and disable shared libraries on
18988 # powerpc, because MkLinux only supported shared libraries with the
18989 # GNU dynamic linker. Since this was broken with cross compilers,
18990 # most powerpc-linux boxes support dynamic linking these days and
18991 # people can always --disable-shared, the test was removed, and we
18992 # assume the GNU/Linux dynamic linker is in use.
18993 dynamic_linker='GNU/Linux ld.so'
18994 ;;
18995
18996 knetbsd*-gnu)
18997 version_type=linux
18998 need_lib_prefix=no
18999 need_version=no
19000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19001 soname_spec='${libname}${release}${shared_ext}$major'
19002 shlibpath_var=LD_LIBRARY_PATH
19003 shlibpath_overrides_runpath=no
19004 hardcode_into_libs=yes
19005 dynamic_linker='GNU ld.so'
19006 ;;
19007
19008 netbsd*)
19009 version_type=sunos
19010 need_lib_prefix=no
19011 need_version=no
19012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19015 dynamic_linker='NetBSD (a.out) ld.so'
19016 else
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 dynamic_linker='NetBSD ld.elf_so'
19020 fi
19021 shlibpath_var=LD_LIBRARY_PATH
19022 shlibpath_overrides_runpath=yes
19023 hardcode_into_libs=yes
19024 ;;
19025
19026 newsos6)
19027 version_type=linux
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029 shlibpath_var=LD_LIBRARY_PATH
19030 shlibpath_overrides_runpath=yes
19031 ;;
19032
19033 nto-qnx*)
19034 version_type=linux
19035 need_lib_prefix=no
19036 need_version=no
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038 soname_spec='${libname}${release}${shared_ext}$major'
19039 shlibpath_var=LD_LIBRARY_PATH
19040 shlibpath_overrides_runpath=yes
19041 ;;
19042
19043 openbsd*)
19044 version_type=sunos
19045 sys_lib_dlsearch_path_spec="/usr/lib"
19046 need_lib_prefix=no
19047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19048 case $host_os in
19049 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19050 *) need_version=no ;;
19051 esac
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19054 shlibpath_var=LD_LIBRARY_PATH
19055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19056 case $host_os in
19057 openbsd2.[89] | openbsd2.[89].*)
19058 shlibpath_overrides_runpath=no
19059 ;;
19060 *)
19061 shlibpath_overrides_runpath=yes
19062 ;;
19063 esac
19064 else
19065 shlibpath_overrides_runpath=yes
19066 fi
19067 ;;
19068
19069 os2*)
19070 libname_spec='$name'
19071 shrext_cmds=".dll"
19072 need_lib_prefix=no
19073 library_names_spec='$libname${shared_ext} $libname.a'
19074 dynamic_linker='OS/2 ld.exe'
19075 shlibpath_var=LIBPATH
19076 ;;
19077
19078 osf3* | osf4* | osf5*)
19079 version_type=osf
19080 need_lib_prefix=no
19081 need_version=no
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19084 shlibpath_var=LD_LIBRARY_PATH
19085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19087 ;;
19088
19089 solaris*)
19090 version_type=linux
19091 need_lib_prefix=no
19092 need_version=no
19093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19094 soname_spec='${libname}${release}${shared_ext}$major'
19095 shlibpath_var=LD_LIBRARY_PATH
19096 shlibpath_overrides_runpath=yes
19097 hardcode_into_libs=yes
19098 # ldd complains unless libraries are executable
19099 postinstall_cmds='chmod +x $lib'
19100 ;;
19101
19102 sunos4*)
19103 version_type=sunos
19104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19106 shlibpath_var=LD_LIBRARY_PATH
19107 shlibpath_overrides_runpath=yes
19108 if test "$with_gnu_ld" = yes; then
19109 need_lib_prefix=no
19110 fi
19111 need_version=yes
19112 ;;
19113
19114 sysv4 | sysv4.3*)
19115 version_type=linux
19116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19117 soname_spec='${libname}${release}${shared_ext}$major'
19118 shlibpath_var=LD_LIBRARY_PATH
19119 case $host_vendor in
19120 sni)
19121 shlibpath_overrides_runpath=no
19122 need_lib_prefix=no
19123 export_dynamic_flag_spec='${wl}-Blargedynsym'
19124 runpath_var=LD_RUN_PATH
19125 ;;
19126 siemens)
19127 need_lib_prefix=no
19128 ;;
19129 motorola)
19130 need_lib_prefix=no
19131 need_version=no
19132 shlibpath_overrides_runpath=no
19133 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19134 ;;
19135 esac
19136 ;;
19137
19138 sysv4*MP*)
19139 if test -d /usr/nec ;then
19140 version_type=linux
19141 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19142 soname_spec='$libname${shared_ext}.$major'
19143 shlibpath_var=LD_LIBRARY_PATH
19144 fi
19145 ;;
19146
19147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19148 version_type=freebsd-elf
19149 need_lib_prefix=no
19150 need_version=no
19151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19152 soname_spec='${libname}${release}${shared_ext}$major'
19153 shlibpath_var=LD_LIBRARY_PATH
19154 hardcode_into_libs=yes
19155 if test "$with_gnu_ld" = yes; then
19156 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19157 shlibpath_overrides_runpath=no
19158 else
19159 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19160 shlibpath_overrides_runpath=yes
19161 case $host_os in
19162 sco3.2v5*)
19163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19164 ;;
19165 esac
19166 fi
19167 sys_lib_dlsearch_path_spec='/usr/lib'
19168 ;;
19169
19170 uts4*)
19171 version_type=linux
19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19173 soname_spec='${libname}${release}${shared_ext}$major'
19174 shlibpath_var=LD_LIBRARY_PATH
19175 ;;
19176
19177 *)
19178 dynamic_linker=no
19179 ;;
19180 esac
19181 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19182 echo "${ECHO_T}$dynamic_linker" >&6
19183 test "$dynamic_linker" = no && can_build_shared=no
19184
19185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19186 if test "$GCC" = yes; then
19187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19188 fi
19189
19190 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19191 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19192 hardcode_action_GCJ=
19193 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19194 test -n "$runpath_var_GCJ" || \
19195 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19196
19197 # We can hardcode non-existant directories.
19198 if test "$hardcode_direct_GCJ" != no &&
19199 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19200 # have to relink, otherwise we might link with an installed library
19201 # when we should be linking with a yet-to-be-installed one
19202 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19203 test "$hardcode_minus_L_GCJ" != no; then
19204 # Linking always hardcodes the temporary library directory.
19205 hardcode_action_GCJ=relink
19206 else
19207 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19208 hardcode_action_GCJ=immediate
19209 fi
19210 else
19211 # We cannot hardcode anything, or else we can only hardcode existing
19212 # directories.
19213 hardcode_action_GCJ=unsupported
19214 fi
19215 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19216 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19217
19218 if test "$hardcode_action_GCJ" = relink; then
19219 # Fast installation is not supported
19220 enable_fast_install=no
19221 elif test "$shlibpath_overrides_runpath" = yes ||
19222 test "$enable_shared" = no; then
19223 # Fast installation is not necessary
19224 enable_fast_install=needless
19225 fi
19226
19227
19228 # The else clause should only fire when bootstrapping the
19229 # libtool distribution, otherwise you forgot to ship ltmain.sh
19230 # with your package, and you will get complaints that there are
19231 # no rules to generate ltmain.sh.
19232 if test -f "$ltmain"; then
19233 # See if we are running on zsh, and set the options which allow our commands through
19234 # without removal of \ escapes.
19235 if test -n "${ZSH_VERSION+set}" ; then
19236 setopt NO_GLOB_SUBST
19237 fi
19238 # Now quote all the things that may contain metacharacters while being
19239 # careful not to overquote the AC_SUBSTed values. We take copies of the
19240 # variables and quote the copies for generation of the libtool script.
19241 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19242 SED SHELL STRIP \
19243 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19244 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19245 deplibs_check_method reload_flag reload_cmds need_locks \
19246 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19247 lt_cv_sys_global_symbol_to_c_name_address \
19248 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19249 old_postinstall_cmds old_postuninstall_cmds \
19250 compiler_GCJ \
19251 CC_GCJ \
19252 LD_GCJ \
19253 lt_prog_compiler_wl_GCJ \
19254 lt_prog_compiler_pic_GCJ \
19255 lt_prog_compiler_static_GCJ \
19256 lt_prog_compiler_no_builtin_flag_GCJ \
19257 export_dynamic_flag_spec_GCJ \
19258 thread_safe_flag_spec_GCJ \
19259 whole_archive_flag_spec_GCJ \
19260 enable_shared_with_static_runtimes_GCJ \
19261 old_archive_cmds_GCJ \
19262 old_archive_from_new_cmds_GCJ \
19263 predep_objects_GCJ \
19264 postdep_objects_GCJ \
19265 predeps_GCJ \
19266 postdeps_GCJ \
19267 compiler_lib_search_path_GCJ \
19268 archive_cmds_GCJ \
19269 archive_expsym_cmds_GCJ \
19270 postinstall_cmds_GCJ \
19271 postuninstall_cmds_GCJ \
19272 old_archive_from_expsyms_cmds_GCJ \
19273 allow_undefined_flag_GCJ \
19274 no_undefined_flag_GCJ \
19275 export_symbols_cmds_GCJ \
19276 hardcode_libdir_flag_spec_GCJ \
19277 hardcode_libdir_flag_spec_ld_GCJ \
19278 hardcode_libdir_separator_GCJ \
19279 hardcode_automatic_GCJ \
19280 module_cmds_GCJ \
19281 module_expsym_cmds_GCJ \
19282 lt_cv_prog_compiler_c_o_GCJ \
19283 exclude_expsyms_GCJ \
19284 include_expsyms_GCJ; do
19285
19286 case $var in
19287 old_archive_cmds_GCJ | \
19288 old_archive_from_new_cmds_GCJ | \
19289 archive_cmds_GCJ | \
19290 archive_expsym_cmds_GCJ | \
19291 module_cmds_GCJ | \
19292 module_expsym_cmds_GCJ | \
19293 old_archive_from_expsyms_cmds_GCJ | \
19294 export_symbols_cmds_GCJ | \
19295 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19296 postinstall_cmds | postuninstall_cmds | \
19297 old_postinstall_cmds | old_postuninstall_cmds | \
19298 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19299 # Double-quote double-evaled strings.
19300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19301 ;;
19302 *)
19303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19304 ;;
19305 esac
19306 done
19307
19308 case $lt_echo in
19309 *'\$0 --fallback-echo"')
19310 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19311 ;;
19312 esac
19313
19314 cfgfile="$ofile"
19315
19316 cat <<__EOF__ >> "$cfgfile"
19317 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19318
19319 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19320
19321 # Shell to use when invoking shell scripts.
19322 SHELL=$lt_SHELL
19323
19324 # Whether or not to build shared libraries.
19325 build_libtool_libs=$enable_shared
19326
19327 # Whether or not to build static libraries.
19328 build_old_libs=$enable_static
19329
19330 # Whether or not to add -lc for building shared libraries.
19331 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19332
19333 # Whether or not to disallow shared libs when runtime libs are static
19334 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19335
19336 # Whether or not to optimize for fast installation.
19337 fast_install=$enable_fast_install
19338
19339 # The host system.
19340 host_alias=$host_alias
19341 host=$host
19342 host_os=$host_os
19343
19344 # The build system.
19345 build_alias=$build_alias
19346 build=$build
19347 build_os=$build_os
19348
19349 # An echo program that does not interpret backslashes.
19350 echo=$lt_echo
19351
19352 # The archiver.
19353 AR=$lt_AR
19354 AR_FLAGS=$lt_AR_FLAGS
19355
19356 # A C compiler.
19357 LTCC=$lt_LTCC
19358
19359 # LTCC compiler flags.
19360 LTCFLAGS=$lt_LTCFLAGS
19361
19362 # A language-specific compiler.
19363 CC=$lt_compiler_GCJ
19364
19365 # Is the compiler the GNU C compiler?
19366 with_gcc=$GCC_GCJ
19367
19368 # An ERE matcher.
19369 EGREP=$lt_EGREP
19370
19371 # The linker used to build libraries.
19372 LD=$lt_LD_GCJ
19373
19374 # Whether we need hard or soft links.
19375 LN_S=$lt_LN_S
19376
19377 # A BSD-compatible nm program.
19378 NM=$lt_NM
19379
19380 # A symbol stripping program
19381 STRIP=$lt_STRIP
19382
19383 # Used to examine libraries when file_magic_cmd begins "file"
19384 MAGIC_CMD=$MAGIC_CMD
19385
19386 # Used on cygwin: DLL creation program.
19387 DLLTOOL="$DLLTOOL"
19388
19389 # Used on cygwin: object dumper.
19390 OBJDUMP="$OBJDUMP"
19391
19392 # Used on cygwin: assembler.
19393 AS="$AS"
19394
19395 # The name of the directory that contains temporary libtool files.
19396 objdir=$objdir
19397
19398 # How to create reloadable object files.
19399 reload_flag=$lt_reload_flag
19400 reload_cmds=$lt_reload_cmds
19401
19402 # How to pass a linker flag through the compiler.
19403 wl=$lt_lt_prog_compiler_wl_GCJ
19404
19405 # Object file suffix (normally "o").
19406 objext="$ac_objext"
19407
19408 # Old archive suffix (normally "a").
19409 libext="$libext"
19410
19411 # Shared library suffix (normally ".so").
19412 shrext_cmds='$shrext_cmds'
19413
19414 # Executable file suffix (normally "").
19415 exeext="$exeext"
19416
19417 # Additional compiler flags for building library objects.
19418 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19419 pic_mode=$pic_mode
19420
19421 # What is the maximum length of a command?
19422 max_cmd_len=$lt_cv_sys_max_cmd_len
19423
19424 # Does compiler simultaneously support -c and -o options?
19425 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19426
19427 # Must we lock files when doing compilation?
19428 need_locks=$lt_need_locks
19429
19430 # Do we need the lib prefix for modules?
19431 need_lib_prefix=$need_lib_prefix
19432
19433 # Do we need a version for libraries?
19434 need_version=$need_version
19435
19436 # Whether dlopen is supported.
19437 dlopen_support=$enable_dlopen
19438
19439 # Whether dlopen of programs is supported.
19440 dlopen_self=$enable_dlopen_self
19441
19442 # Whether dlopen of statically linked programs is supported.
19443 dlopen_self_static=$enable_dlopen_self_static
19444
19445 # Compiler flag to prevent dynamic linking.
19446 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19447
19448 # Compiler flag to turn off builtin functions.
19449 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19450
19451 # Compiler flag to allow reflexive dlopens.
19452 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19453
19454 # Compiler flag to generate shared objects directly from archives.
19455 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19456
19457 # Compiler flag to generate thread-safe objects.
19458 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19459
19460 # Library versioning type.
19461 version_type=$version_type
19462
19463 # Format of library name prefix.
19464 libname_spec=$lt_libname_spec
19465
19466 # List of archive names. First name is the real one, the rest are links.
19467 # The last name is the one that the linker finds with -lNAME.
19468 library_names_spec=$lt_library_names_spec
19469
19470 # The coded name of the library, if different from the real name.
19471 soname_spec=$lt_soname_spec
19472
19473 # Commands used to build and install an old-style archive.
19474 RANLIB=$lt_RANLIB
19475 old_archive_cmds=$lt_old_archive_cmds_GCJ
19476 old_postinstall_cmds=$lt_old_postinstall_cmds
19477 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19478
19479 # Create an old-style archive from a shared archive.
19480 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19481
19482 # Create a temporary old-style archive to link instead of a shared archive.
19483 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19484
19485 # Commands used to build and install a shared archive.
19486 archive_cmds=$lt_archive_cmds_GCJ
19487 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19488 postinstall_cmds=$lt_postinstall_cmds
19489 postuninstall_cmds=$lt_postuninstall_cmds
19490
19491 # Commands used to build a loadable module (assumed same as above if empty)
19492 module_cmds=$lt_module_cmds_GCJ
19493 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19494
19495 # Commands to strip libraries.
19496 old_striplib=$lt_old_striplib
19497 striplib=$lt_striplib
19498
19499 # Dependencies to place before the objects being linked to create a
19500 # shared library.
19501 predep_objects=$lt_predep_objects_GCJ
19502
19503 # Dependencies to place after the objects being linked to create a
19504 # shared library.
19505 postdep_objects=$lt_postdep_objects_GCJ
19506
19507 # Dependencies to place before the objects being linked to create a
19508 # shared library.
19509 predeps=$lt_predeps_GCJ
19510
19511 # Dependencies to place after the objects being linked to create a
19512 # shared library.
19513 postdeps=$lt_postdeps_GCJ
19514
19515 # The library search path used internally by the compiler when linking
19516 # a shared library.
19517 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19518
19519 # Method to check whether dependent libraries are shared objects.
19520 deplibs_check_method=$lt_deplibs_check_method
19521
19522 # Command to use when deplibs_check_method == file_magic.
19523 file_magic_cmd=$lt_file_magic_cmd
19524
19525 # Flag that allows shared libraries with undefined symbols to be built.
19526 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19527
19528 # Flag that forces no undefined symbols.
19529 no_undefined_flag=$lt_no_undefined_flag_GCJ
19530
19531 # Commands used to finish a libtool library installation in a directory.
19532 finish_cmds=$lt_finish_cmds
19533
19534 # Same as above, but a single script fragment to be evaled but not shown.
19535 finish_eval=$lt_finish_eval
19536
19537 # Take the output of nm and produce a listing of raw symbols and C names.
19538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19539
19540 # Transform the output of nm in a proper C declaration
19541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19542
19543 # Transform the output of nm in a C name address pair
19544 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19545
19546 # This is the shared library runtime path variable.
19547 runpath_var=$runpath_var
19548
19549 # This is the shared library path variable.
19550 shlibpath_var=$shlibpath_var
19551
19552 # Is shlibpath searched before the hard-coded library search path?
19553 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19554
19555 # How to hardcode a shared library path into an executable.
19556 hardcode_action=$hardcode_action_GCJ
19557
19558 # Whether we should hardcode library paths into libraries.
19559 hardcode_into_libs=$hardcode_into_libs
19560
19561 # Flag to hardcode \$libdir into a binary during linking.
19562 # This must work even if \$libdir does not exist.
19563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19564
19565 # If ld is used when linking, flag to hardcode \$libdir into
19566 # a binary during linking. This must work even if \$libdir does
19567 # not exist.
19568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19569
19570 # Whether we need a single -rpath flag with a separated argument.
19571 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19572
19573 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19574 # resulting binary.
19575 hardcode_direct=$hardcode_direct_GCJ
19576
19577 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19578 # resulting binary.
19579 hardcode_minus_L=$hardcode_minus_L_GCJ
19580
19581 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19582 # the resulting binary.
19583 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19584
19585 # Set to yes if building a shared library automatically hardcodes DIR into the library
19586 # and all subsequent libraries and executables linked against it.
19587 hardcode_automatic=$hardcode_automatic_GCJ
19588
19589 # Variables whose values should be saved in libtool wrapper scripts and
19590 # restored at relink time.
19591 variables_saved_for_relink="$variables_saved_for_relink"
19592
19593 # Whether libtool must link a program against all its dependency libraries.
19594 link_all_deplibs=$link_all_deplibs_GCJ
19595
19596 # Compile-time system search path for libraries
19597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19598
19599 # Run-time system search path for libraries
19600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19601
19602 # Fix the shell variable \$srcfile for the compiler.
19603 fix_srcfile_path="$fix_srcfile_path_GCJ"
19604
19605 # Set to yes if exported symbols are required.
19606 always_export_symbols=$always_export_symbols_GCJ
19607
19608 # The commands to list exported symbols.
19609 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19610
19611 # The commands to extract the exported symbol list from a shared archive.
19612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19613
19614 # Symbols that should not be listed in the preloaded symbols.
19615 exclude_expsyms=$lt_exclude_expsyms_GCJ
19616
19617 # Symbols that must always be exported.
19618 include_expsyms=$lt_include_expsyms_GCJ
19619
19620 # ### END LIBTOOL TAG CONFIG: $tagname
19621
19622 __EOF__
19623
19624
19625 else
19626 # If there is no Makefile yet, we rely on a make rule to execute
19627 # `config.status --recheck' to rerun these tests and create the
19628 # libtool script then.
19629 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19630 if test -f "$ltmain_in"; then
19631 test -f Makefile && make "$ltmain"
19632 fi
19633 fi
19634
19635
19636 ac_ext=c
19637 ac_cpp='$CPP $CPPFLAGS'
19638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19641
19642 CC="$lt_save_CC"
19643
19644 else
19645 tagname=""
19646 fi
19647 ;;
19648
19649 RC)
19650
19651
19652
19653 # Source file extension for RC test sources.
19654 ac_ext=rc
19655
19656 # Object file extension for compiled RC test sources.
19657 objext=o
19658 objext_RC=$objext
19659
19660 # Code to be used in simple compile tests
19661 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19662
19663 # Code to be used in simple link tests
19664 lt_simple_link_test_code="$lt_simple_compile_test_code"
19665
19666 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19667
19668 # If no C compiler was specified, use CC.
19669 LTCC=${LTCC-"$CC"}
19670
19671 # If no C compiler flags were specified, use CFLAGS.
19672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19673
19674 # Allow CC to be a program name with arguments.
19675 compiler=$CC
19676
19677
19678 # save warnings/boilerplate of simple test code
19679 ac_outfile=conftest.$ac_objext
19680 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19682 _lt_compiler_boilerplate=`cat conftest.err`
19683 $rm conftest*
19684
19685 ac_outfile=conftest.$ac_objext
19686 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19688 _lt_linker_boilerplate=`cat conftest.err`
19689 $rm conftest*
19690
19691
19692 # Allow CC to be a program name with arguments.
19693 lt_save_CC="$CC"
19694 CC=${RC-"windres"}
19695 compiler=$CC
19696 compiler_RC=$CC
19697 for cc_temp in $compiler""; do
19698 case $cc_temp in
19699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19701 \-*) ;;
19702 *) break;;
19703 esac
19704 done
19705 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19706
19707 lt_cv_prog_compiler_c_o_RC=yes
19708
19709 # The else clause should only fire when bootstrapping the
19710 # libtool distribution, otherwise you forgot to ship ltmain.sh
19711 # with your package, and you will get complaints that there are
19712 # no rules to generate ltmain.sh.
19713 if test -f "$ltmain"; then
19714 # See if we are running on zsh, and set the options which allow our commands through
19715 # without removal of \ escapes.
19716 if test -n "${ZSH_VERSION+set}" ; then
19717 setopt NO_GLOB_SUBST
19718 fi
19719 # Now quote all the things that may contain metacharacters while being
19720 # careful not to overquote the AC_SUBSTed values. We take copies of the
19721 # variables and quote the copies for generation of the libtool script.
19722 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19723 SED SHELL STRIP \
19724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19726 deplibs_check_method reload_flag reload_cmds need_locks \
19727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19728 lt_cv_sys_global_symbol_to_c_name_address \
19729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19730 old_postinstall_cmds old_postuninstall_cmds \
19731 compiler_RC \
19732 CC_RC \
19733 LD_RC \
19734 lt_prog_compiler_wl_RC \
19735 lt_prog_compiler_pic_RC \
19736 lt_prog_compiler_static_RC \
19737 lt_prog_compiler_no_builtin_flag_RC \
19738 export_dynamic_flag_spec_RC \
19739 thread_safe_flag_spec_RC \
19740 whole_archive_flag_spec_RC \
19741 enable_shared_with_static_runtimes_RC \
19742 old_archive_cmds_RC \
19743 old_archive_from_new_cmds_RC \
19744 predep_objects_RC \
19745 postdep_objects_RC \
19746 predeps_RC \
19747 postdeps_RC \
19748 compiler_lib_search_path_RC \
19749 archive_cmds_RC \
19750 archive_expsym_cmds_RC \
19751 postinstall_cmds_RC \
19752 postuninstall_cmds_RC \
19753 old_archive_from_expsyms_cmds_RC \
19754 allow_undefined_flag_RC \
19755 no_undefined_flag_RC \
19756 export_symbols_cmds_RC \
19757 hardcode_libdir_flag_spec_RC \
19758 hardcode_libdir_flag_spec_ld_RC \
19759 hardcode_libdir_separator_RC \
19760 hardcode_automatic_RC \
19761 module_cmds_RC \
19762 module_expsym_cmds_RC \
19763 lt_cv_prog_compiler_c_o_RC \
19764 exclude_expsyms_RC \
19765 include_expsyms_RC; do
19766
19767 case $var in
19768 old_archive_cmds_RC | \
19769 old_archive_from_new_cmds_RC | \
19770 archive_cmds_RC | \
19771 archive_expsym_cmds_RC | \
19772 module_cmds_RC | \
19773 module_expsym_cmds_RC | \
19774 old_archive_from_expsyms_cmds_RC | \
19775 export_symbols_cmds_RC | \
19776 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19777 postinstall_cmds | postuninstall_cmds | \
19778 old_postinstall_cmds | old_postuninstall_cmds | \
19779 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19780 # Double-quote double-evaled strings.
19781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19782 ;;
19783 *)
19784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19785 ;;
19786 esac
19787 done
19788
19789 case $lt_echo in
19790 *'\$0 --fallback-echo"')
19791 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19792 ;;
19793 esac
19794
19795 cfgfile="$ofile"
19796
19797 cat <<__EOF__ >> "$cfgfile"
19798 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19799
19800 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19801
19802 # Shell to use when invoking shell scripts.
19803 SHELL=$lt_SHELL
19804
19805 # Whether or not to build shared libraries.
19806 build_libtool_libs=$enable_shared
19807
19808 # Whether or not to build static libraries.
19809 build_old_libs=$enable_static
19810
19811 # Whether or not to add -lc for building shared libraries.
19812 build_libtool_need_lc=$archive_cmds_need_lc_RC
19813
19814 # Whether or not to disallow shared libs when runtime libs are static
19815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19816
19817 # Whether or not to optimize for fast installation.
19818 fast_install=$enable_fast_install
19819
19820 # The host system.
19821 host_alias=$host_alias
19822 host=$host
19823 host_os=$host_os
19824
19825 # The build system.
19826 build_alias=$build_alias
19827 build=$build
19828 build_os=$build_os
19829
19830 # An echo program that does not interpret backslashes.
19831 echo=$lt_echo
19832
19833 # The archiver.
19834 AR=$lt_AR
19835 AR_FLAGS=$lt_AR_FLAGS
19836
19837 # A C compiler.
19838 LTCC=$lt_LTCC
19839
19840 # LTCC compiler flags.
19841 LTCFLAGS=$lt_LTCFLAGS
19842
19843 # A language-specific compiler.
19844 CC=$lt_compiler_RC
19845
19846 # Is the compiler the GNU C compiler?
19847 with_gcc=$GCC_RC
19848
19849 # An ERE matcher.
19850 EGREP=$lt_EGREP
19851
19852 # The linker used to build libraries.
19853 LD=$lt_LD_RC
19854
19855 # Whether we need hard or soft links.
19856 LN_S=$lt_LN_S
19857
19858 # A BSD-compatible nm program.
19859 NM=$lt_NM
19860
19861 # A symbol stripping program
19862 STRIP=$lt_STRIP
19863
19864 # Used to examine libraries when file_magic_cmd begins "file"
19865 MAGIC_CMD=$MAGIC_CMD
19866
19867 # Used on cygwin: DLL creation program.
19868 DLLTOOL="$DLLTOOL"
19869
19870 # Used on cygwin: object dumper.
19871 OBJDUMP="$OBJDUMP"
19872
19873 # Used on cygwin: assembler.
19874 AS="$AS"
19875
19876 # The name of the directory that contains temporary libtool files.
19877 objdir=$objdir
19878
19879 # How to create reloadable object files.
19880 reload_flag=$lt_reload_flag
19881 reload_cmds=$lt_reload_cmds
19882
19883 # How to pass a linker flag through the compiler.
19884 wl=$lt_lt_prog_compiler_wl_RC
19885
19886 # Object file suffix (normally "o").
19887 objext="$ac_objext"
19888
19889 # Old archive suffix (normally "a").
19890 libext="$libext"
19891
19892 # Shared library suffix (normally ".so").
19893 shrext_cmds='$shrext_cmds'
19894
19895 # Executable file suffix (normally "").
19896 exeext="$exeext"
19897
19898 # Additional compiler flags for building library objects.
19899 pic_flag=$lt_lt_prog_compiler_pic_RC
19900 pic_mode=$pic_mode
19901
19902 # What is the maximum length of a command?
19903 max_cmd_len=$lt_cv_sys_max_cmd_len
19904
19905 # Does compiler simultaneously support -c and -o options?
19906 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19907
19908 # Must we lock files when doing compilation?
19909 need_locks=$lt_need_locks
19910
19911 # Do we need the lib prefix for modules?
19912 need_lib_prefix=$need_lib_prefix
19913
19914 # Do we need a version for libraries?
19915 need_version=$need_version
19916
19917 # Whether dlopen is supported.
19918 dlopen_support=$enable_dlopen
19919
19920 # Whether dlopen of programs is supported.
19921 dlopen_self=$enable_dlopen_self
19922
19923 # Whether dlopen of statically linked programs is supported.
19924 dlopen_self_static=$enable_dlopen_self_static
19925
19926 # Compiler flag to prevent dynamic linking.
19927 link_static_flag=$lt_lt_prog_compiler_static_RC
19928
19929 # Compiler flag to turn off builtin functions.
19930 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19931
19932 # Compiler flag to allow reflexive dlopens.
19933 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19934
19935 # Compiler flag to generate shared objects directly from archives.
19936 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19937
19938 # Compiler flag to generate thread-safe objects.
19939 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19940
19941 # Library versioning type.
19942 version_type=$version_type
19943
19944 # Format of library name prefix.
19945 libname_spec=$lt_libname_spec
19946
19947 # List of archive names. First name is the real one, the rest are links.
19948 # The last name is the one that the linker finds with -lNAME.
19949 library_names_spec=$lt_library_names_spec
19950
19951 # The coded name of the library, if different from the real name.
19952 soname_spec=$lt_soname_spec
19953
19954 # Commands used to build and install an old-style archive.
19955 RANLIB=$lt_RANLIB
19956 old_archive_cmds=$lt_old_archive_cmds_RC
19957 old_postinstall_cmds=$lt_old_postinstall_cmds
19958 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19959
19960 # Create an old-style archive from a shared archive.
19961 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19962
19963 # Create a temporary old-style archive to link instead of a shared archive.
19964 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19965
19966 # Commands used to build and install a shared archive.
19967 archive_cmds=$lt_archive_cmds_RC
19968 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19969 postinstall_cmds=$lt_postinstall_cmds
19970 postuninstall_cmds=$lt_postuninstall_cmds
19971
19972 # Commands used to build a loadable module (assumed same as above if empty)
19973 module_cmds=$lt_module_cmds_RC
19974 module_expsym_cmds=$lt_module_expsym_cmds_RC
19975
19976 # Commands to strip libraries.
19977 old_striplib=$lt_old_striplib
19978 striplib=$lt_striplib
19979
19980 # Dependencies to place before the objects being linked to create a
19981 # shared library.
19982 predep_objects=$lt_predep_objects_RC
19983
19984 # Dependencies to place after the objects being linked to create a
19985 # shared library.
19986 postdep_objects=$lt_postdep_objects_RC
19987
19988 # Dependencies to place before the objects being linked to create a
19989 # shared library.
19990 predeps=$lt_predeps_RC
19991
19992 # Dependencies to place after the objects being linked to create a
19993 # shared library.
19994 postdeps=$lt_postdeps_RC
19995
19996 # The library search path used internally by the compiler when linking
19997 # a shared library.
19998 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19999
20000 # Method to check whether dependent libraries are shared objects.
20001 deplibs_check_method=$lt_deplibs_check_method
20002
20003 # Command to use when deplibs_check_method == file_magic.
20004 file_magic_cmd=$lt_file_magic_cmd
20005
20006 # Flag that allows shared libraries with undefined symbols to be built.
20007 allow_undefined_flag=$lt_allow_undefined_flag_RC
20008
20009 # Flag that forces no undefined symbols.
20010 no_undefined_flag=$lt_no_undefined_flag_RC
20011
20012 # Commands used to finish a libtool library installation in a directory.
20013 finish_cmds=$lt_finish_cmds
20014
20015 # Same as above, but a single script fragment to be evaled but not shown.
20016 finish_eval=$lt_finish_eval
20017
20018 # Take the output of nm and produce a listing of raw symbols and C names.
20019 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20020
20021 # Transform the output of nm in a proper C declaration
20022 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20023
20024 # Transform the output of nm in a C name address pair
20025 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20026
20027 # This is the shared library runtime path variable.
20028 runpath_var=$runpath_var
20029
20030 # This is the shared library path variable.
20031 shlibpath_var=$shlibpath_var
20032
20033 # Is shlibpath searched before the hard-coded library search path?
20034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20035
20036 # How to hardcode a shared library path into an executable.
20037 hardcode_action=$hardcode_action_RC
20038
20039 # Whether we should hardcode library paths into libraries.
20040 hardcode_into_libs=$hardcode_into_libs
20041
20042 # Flag to hardcode \$libdir into a binary during linking.
20043 # This must work even if \$libdir does not exist.
20044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20045
20046 # If ld is used when linking, flag to hardcode \$libdir into
20047 # a binary during linking. This must work even if \$libdir does
20048 # not exist.
20049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20050
20051 # Whether we need a single -rpath flag with a separated argument.
20052 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20053
20054 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20055 # resulting binary.
20056 hardcode_direct=$hardcode_direct_RC
20057
20058 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20059 # resulting binary.
20060 hardcode_minus_L=$hardcode_minus_L_RC
20061
20062 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20063 # the resulting binary.
20064 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20065
20066 # Set to yes if building a shared library automatically hardcodes DIR into the library
20067 # and all subsequent libraries and executables linked against it.
20068 hardcode_automatic=$hardcode_automatic_RC
20069
20070 # Variables whose values should be saved in libtool wrapper scripts and
20071 # restored at relink time.
20072 variables_saved_for_relink="$variables_saved_for_relink"
20073
20074 # Whether libtool must link a program against all its dependency libraries.
20075 link_all_deplibs=$link_all_deplibs_RC
20076
20077 # Compile-time system search path for libraries
20078 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20079
20080 # Run-time system search path for libraries
20081 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20082
20083 # Fix the shell variable \$srcfile for the compiler.
20084 fix_srcfile_path="$fix_srcfile_path_RC"
20085
20086 # Set to yes if exported symbols are required.
20087 always_export_symbols=$always_export_symbols_RC
20088
20089 # The commands to list exported symbols.
20090 export_symbols_cmds=$lt_export_symbols_cmds_RC
20091
20092 # The commands to extract the exported symbol list from a shared archive.
20093 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20094
20095 # Symbols that should not be listed in the preloaded symbols.
20096 exclude_expsyms=$lt_exclude_expsyms_RC
20097
20098 # Symbols that must always be exported.
20099 include_expsyms=$lt_include_expsyms_RC
20100
20101 # ### END LIBTOOL TAG CONFIG: $tagname
20102
20103 __EOF__
20104
20105
20106 else
20107 # If there is no Makefile yet, we rely on a make rule to execute
20108 # `config.status --recheck' to rerun these tests and create the
20109 # libtool script then.
20110 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20111 if test -f "$ltmain_in"; then
20112 test -f Makefile && make "$ltmain"
20113 fi
20114 fi
20115
20116
20117 ac_ext=c
20118 ac_cpp='$CPP $CPPFLAGS'
20119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20122
20123 CC="$lt_save_CC"
20124
20125 ;;
20126
20127 *)
20128 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20129 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20130 { (exit 1); exit 1; }; }
20131 ;;
20132 esac
20133
20134 # Append the new tag name to the list of available tags.
20135 if test -n "$tagname" ; then
20136 available_tags="$available_tags $tagname"
20137 fi
20138 fi
20139 done
20140 IFS="$lt_save_ifs"
20141
20142 # Now substitute the updated list of available tags.
20143 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20144 mv "${ofile}T" "$ofile"
20145 chmod +x "$ofile"
20146 else
20147 rm -f "${ofile}T"
20148 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20149 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20150 { (exit 1); exit 1; }; }
20151 fi
20152 fi
20153
20154
20155
20156 # This can be used to rebuild libtool when needed
20157 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20158
20159 # Always use our own libtool.
20160 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20161
20162 # Prevent multiple expansion
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20175 # AC_REQUIRE([AC_COIN_DLFCN_H])
20176
20177 # NEW: If libtool exists in the directory higher up, we use that one
20178 # instead of creating a new one
20179
20180 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20181 # out in front of this macro body. You'll notice that LIBTOOL is already
20182 # defined here. We'll have to count on this macro not being called if libtool
20183 # already exists, or at least move the libtool fixes outside the conditional.
20184 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20185 # This test is therefore removed. -- lh, 061214 --
20186 # if test "x$LIBTOOL" = x; then
20187
20188 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20199
20200
20201
20202 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20203 echo "$as_me: Build is \"$build\"." >&6;}
20204 mydos2unix='| dos2unix'
20205 case $build in
20206 *-mingw*)
20207 CYGPATH_W=echo
20208 ;;
20209 esac
20210
20211 case $build in
20212 # Here we need to check if -m32 is specified. If so, we need to correct
20213 # sys_lib_search_path_spec
20214 *-cygwin* | *-mingw*)
20215 case "$CXX" in
20216 clang* )
20217 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20218 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20219 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20220 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20221 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20222 -e 's|libext="lib"|libext="a"|' \
20223 libtool > conftest.bla
20224 ;;
20225 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20226 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20227 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20228 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20229 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20230 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20231 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20232 -e 's%lib /OUT:%lib -OUT:%' \
20233 -e "s%cygpath -w%$CYGPATH_W%" \
20234 -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%' \
20235 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20236 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20237 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20238 -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"%' \
20239 libtool > conftest.bla
20240 ;;
20241 *)
20242 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20243 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20244 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20245 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20246 -e 's|libext="lib"|libext="a"|' \
20247 libtool > conftest.bla
20248 ;;
20249 esac
20250 mv conftest.bla libtool
20251 chmod 755 libtool
20252
20253 ;;
20254 *x86_64-*)
20255 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20256 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20257 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20258 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20259 mv conftest.bla libtool
20260 chmod 755 libtool
20261 fi
20262 ;;
20263
20264 *-solaris*)
20265 if test "$GCC" = yes && \
20266 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20267 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20268 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20269 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20270 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20271 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20272 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20273 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20274 # AC_MSG_NOTICE(Compensating for broken gcc)
20275 for lib in $fixlibtmp ; do
20276 if test -d "${lib}${hdwisa}" ; then
20277 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20278 fi
20279 done
20280 syslibpath64="${syslibpath64} ${fixlibtmp}"
20281 else
20282 syslibpath64="$fixlibtmp"
20283 fi
20284 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20285 mv conftest.bla libtool
20286 chmod 755 libtool
20287 fi
20288 # AC_MSG_NOTICE(Result is )
20289 # $EGREP 'sys_lib_search_path_spec=' libtool
20290 fi
20291 ;;
20292 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20293 *-darwin*)
20294 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20295 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20296 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"/' \
20297 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20298 libtool > conftest.bla
20299
20300 mv conftest.bla libtool
20301 chmod 755 libtool
20302 ;;
20303 esac
20304 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20305 # the macro. -- lh, 061214 --
20306 # fi
20307
20308 # AC_MSG_NOTICE([End libtool initialisation.])
20309
20310 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20311 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20312 # of the shared objects
20313 RPATH_FLAGS=
20314
20315 if test $enable_shared = yes; then
20316 case $build in
20317 *-linux-*)
20318 if test "$GXX" = "yes"; then
20319 RPATH_FLAGS=
20320 for dir in $abs_lib_dir; do
20321 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20322 done
20323 fi ;;
20324 *-darwin*)
20325 RPATH_FLAGS=nothing ;;
20326 *-ibm-*)
20327 case "$CXX" in
20328 xlC* | */xlC* | mpxlC* | */mpxlC*)
20329 RPATH_FLAGS=nothing ;;
20330 esac ;;
20331 *-hp-*)
20332 RPATH_FLAGS=nothing ;;
20333 *-mingw32)
20334 RPATH_FLAGS=nothing ;;
20335 *-*-solaris*)
20336 RPATH_FLAGS=
20337 for dir in $abs_lib_dir; do
20338 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20339 done
20340 esac
20341
20342 if test "$RPATH_FLAGS" = ""; then
20343 { 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
20344 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;}
20345 fi
20346 if test "$RPATH_FLAGS" = "nothing"; then
20347 RPATH_FLAGS=
20348 fi
20349 fi
20350
20351
20352
20353
20354 else
20355
20356 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20357 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20358 # get all missing information from the config.log file
20359
20360 # output variables and defines
20361 as_save_IFS=$IFS
20362 IFS='
20363 '
20364 for oneline in `cat $coin_config_dir/config.status`; do
20365 case "$oneline" in
20366 # First some automake conditionals
20367 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20368 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20369 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20370 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20371 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20372 # echo "$command"
20373 eval "$command"
20374 ;;
20375 s,@DEFS@* )
20376 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20377 # echo "$command"
20378 eval "$command"
20379 ;;
20380 esac
20381 done
20382 IFS=$as_save_IFS
20383
20384 # And some defines (assuming here that the packages base dir
20385 # doesn't have a config.h file
20386 for word in $defsline; do
20387 # echo word $word
20388 case $word in
20389 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20390 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20391 # echo dd $i
20392 echo $i >>confdefs.h
20393 ;;
20394 esac
20395 done
20396 fi
20397
20398 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20399
20400 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20401 if test "${enable_dependency_linking+set}" = set; then
20402 enableval="$enable_dependency_linking"
20403 dependency_linking="$enableval"
20404 else
20405 dependency_linking=auto
20406 fi;
20407
20408 if test "$dependency_linking" = auto; then
20409 # On Cygwin and AIX, building DLLs doesn't work
20410 dependency_linking=no
20411 if test x"$coin_disable_shared" = xno; then
20412 case $build in
20413 *-cygwin* | *-mingw*)
20414 case "$CC" in
20415 clang* )
20416 dependency_linking=yes
20417 ;;
20418 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20419 dependency_linking=no
20420 ;;
20421 *gcc*)
20422 dependency_linking=yes
20423 ;;
20424 *)
20425 dependency_linking=yes
20426 ;;
20427 esac
20428 ;;
20429 *)
20430 dependency_linking=yes
20431 ;;
20432 esac
20433 fi
20434 fi
20435
20436 if test "$dependency_linking" = yes ;
20437 then
20438 LT_LDFLAGS="-no-undefined"
20439 else
20440 LT_LDFLAGS=
20441 fi
20442
20443
20444
20445 if test "$dependency_linking" = yes; then
20446 DEPENDENCY_LINKING_TRUE=
20447 DEPENDENCY_LINKING_FALSE='#'
20448 else
20449 DEPENDENCY_LINKING_TRUE='#'
20450 DEPENDENCY_LINKING_FALSE=
20451 fi
20452
20453
20454 # Check if we want to set the library version
20455 echo "$as_me:$LINENO: checking if library version is set" >&5
20456 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20457 if test x"$coin_libversion" != x; then
20458 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20459 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20460 echo "${ECHO_T}$coin_libversion" >&6
20461 else
20462 echo "$as_me:$LINENO: result: no" >&5
20463 echo "${ECHO_T}no" >&6
20464 fi
20465
20466
20467
20468 #END
20469 }
20470
20471 #############################################################################
20472 # COIN-OR components #
20473 #############################################################################
20474
20475 # Required packages.
20476 # We need Clp, Cbc, and the OSI interface to CLP to build CoinCbc.cpp.
20477
20478
20479
20480 # Check whether --enable-pkg-config or --disable-pkg-config was given.
20481 if test "${enable_pkg_config+set}" = set; then
20482 enableval="$enable_pkg_config"
20483 use_pkgconfig="$enableval"
20484 else
20485 if test x$coin_cc_is_cl = xtrue; then
20486 use_pkgconfig=no
20487 else
20488 use_pkgconfig=yes
20489 fi
20490 fi;
20491
20492 if test $use_pkgconfig = yes ; then
20493 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20494 if test -n "$ac_tool_prefix"; then
20495 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20496 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20497 echo "$as_me:$LINENO: checking for $ac_word" >&5
20498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20499 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502 if test -n "$PKG_CONFIG"; then
20503 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20504 else
20505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20506 for as_dir in $PATH
20507 do
20508 IFS=$as_save_IFS
20509 test -z "$as_dir" && as_dir=.
20510 for ac_exec_ext in '' $ac_executable_extensions; do
20511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20512 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20514 break 2
20515 fi
20516 done
20517 done
20518
20519 fi
20520 fi
20521 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20522 if test -n "$PKG_CONFIG"; then
20523 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20524 echo "${ECHO_T}$PKG_CONFIG" >&6
20525 else
20526 echo "$as_me:$LINENO: result: no" >&5
20527 echo "${ECHO_T}no" >&6
20528 fi
20529
20530 fi
20531 if test -z "$ac_cv_prog_PKG_CONFIG"; then
20532 ac_ct_PKG_CONFIG=$PKG_CONFIG
20533 # Extract the first word of "pkg-config", so it can be a program name with args.
20534 set dummy pkg-config; ac_word=$2
20535 echo "$as_me:$LINENO: checking for $ac_word" >&5
20536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20537 if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540 if test -n "$ac_ct_PKG_CONFIG"; then
20541 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20542 else
20543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544 for as_dir in $PATH
20545 do
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 for ac_exec_ext in '' $ac_executable_extensions; do
20549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20550 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20552 break 2
20553 fi
20554 done
20555 done
20556
20557 fi
20558 fi
20559 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20560 if test -n "$ac_ct_PKG_CONFIG"; then
20561 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20562 echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20563 else
20564 echo "$as_me:$LINENO: result: no" >&5
20565 echo "${ECHO_T}no" >&6
20566 fi
20567
20568 PKG_CONFIG=$ac_ct_PKG_CONFIG
20569 else
20570 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20571 fi
20572
20573 fi
20574 if test -n "$PKG_CONFIG"; then
20575 _pkg_min_version=0.16.0
20576 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20577 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20578 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20579 echo "$as_me:$LINENO: result: yes" >&5
20580 echo "${ECHO_T}yes" >&6
20581 else
20582 echo "$as_me:$LINENO: result: no" >&5
20583 echo "${ECHO_T}no" >&6
20584 PKG_CONFIG=""
20585 fi
20586 fi
20587
20588 # check if pkg-config supports the short-errors flag
20589 if test -n "$PKG_CONFIG" && \
20590 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20591 pkg_short_errors=" --short-errors "
20592 else
20593 pkg_short_errors=""
20594 fi
20595 fi
20596
20597
20598
20599 if test -n "$PKG_CONFIG"; then
20600 COIN_HAS_PKGCONFIG_TRUE=
20601 COIN_HAS_PKGCONFIG_FALSE='#'
20602 else
20603 COIN_HAS_PKGCONFIG_TRUE='#'
20604 COIN_HAS_PKGCONFIG_FALSE=
20605 fi
20606
20607
20608
20609 # assemble pkg-config search path for installed projects
20610 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20611
20612 # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20613 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20614 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20615 if test "x${prefix}" = xNONE ; then
20616 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20617 else
20618 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20619 fi
20620
20621
20622 # Check whether --with-coin-instdir or --without-coin-instdir was given.
20623 if test "${with_coin_instdir+set}" = set; then
20624 withval="$with_coin_instdir"
20625 if test -d "$withval"; then : ; else
20626 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20627 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20628 { (exit 1); exit 1; }; }
20629 fi
20630 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20631
20632 fi;
20633
20634
20635
20636 # assemble additional pkg-config search paths for uninstalled projects
20637 if test x$coin_projectdir = xyes ; then
20638 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20639 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20640 # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20641 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20642 COIN_PKG_CONFIG_PATH_UNINSTALLED=
20643 if test -f ../coin_subdirs.txt ; then
20644 for i in `cat ../coin_subdirs.txt` ; do
20645 if test -d ../$i ; then
20646 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20647 fi
20648 if test -d ../$i/pkgconfig ; then
20649 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20650 fi
20651 done
20652 fi
20653
20654 if test -f ../../coin_subdirs.txt ; then
20655 for i in `cat ../../coin_subdirs.txt` ; do
20656 if test -d ../../$i ; then
20657 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20658 fi
20659 if test -d ../../$i/pkgconfig ; then
20660 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20661 fi
20662 done
20663 fi
20664
20665 if test -f ../../../coin_subdirs.txt ; then
20666 for i in `cat ../../../coin_subdirs.txt` ; do
20667 if test -d ../../../$i ; then
20668 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20669 fi
20670 if test -d ../../../$i/pkgconfig ; then
20671 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20672 fi
20673 done
20674 fi
20675
20676
20677 fi
20678
20679 if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20680 { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20681 echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20682 fi
20683
20684
20685
20686 echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
20687 echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
20688
20689 coin_has_cbc=notGiven
20690
20691 # check if user wants to skip package in any case
20692 if test x"$COIN_SKIP_PROJECTS" != x; then
20693 for dir in $COIN_SKIP_PROJECTS; do
20694 if test $dir = "Cbc"; then
20695 coin_has_cbc=skipping
20696 fi
20697 done
20698 fi
20699
20700 if test "$coin_has_cbc" != skipping; then
20701
20702 # Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
20703 if test "${with_cbc+set}" = set; then
20704 withval="$with_cbc"
20705 if test "$withval" = no ; then
20706 coin_has_cbc=skipping
20707 fi
20708
20709 fi;
20710 fi
20711
20712 CBC_LIBS=
20713 CBC_CFLAGS=
20714 CBC_DATA=
20715 CBC_DEPENDENCIES=
20716 CBC_PCLIBS=
20717 CBC_PCREQUIRES=
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20736 if test $coin_has_cbc != skipping; then
20737
20738 # Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
20739 if test "${with_cbc_lib+set}" = set; then
20740 withval="$with_cbc_lib"
20741 if test "$withval" = no ; then
20742 coin_has_cbc=skipping
20743 else
20744 coin_has_cbc=yes
20745 CBC_LIBS="$withval"
20746 CBC_PCLIBS="$withval"
20747
20748 COINMP_PCLIBS="$withval $COINMP_PCLIBS"
20749 COINMP_LIBS="$withval $COINMP_LIBS"
20750
20751 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20752 if test -z "$PKG_CONFIG" ; then
20753 CBC_LIBS_INSTALLED="$withval"
20754 COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
20755 fi
20756 fi
20757
20758 fi;
20759 fi
20760
20761 if test $coin_has_cbc != skipping; then
20762
20763 # Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
20764 if test "${with_cbc_incdir+set}" = set; then
20765 withval="$with_cbc_incdir"
20766 if test "$withval" = no ; then
20767 coin_has_cbc=skipping
20768 else
20769 coin_has_cbc=yes
20770 CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
20771 COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
20772 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20773 if test -z "$PKG_CONFIG" ; then
20774 CBC_CFLAGS_INSTALLED="$CBC_CFLAGS"
20775 COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS $COINMP_CFLAGS_INSTALLED"
20776 fi
20777 fi
20778
20779 fi;
20780 fi
20781
20782 if test $coin_has_cbc != skipping; then
20783
20784 # Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
20785 if test "${with_cbc_datadir+set}" = set; then
20786 withval="$with_cbc_datadir"
20787 if test "$withval" = no ; then
20788 coin_has_cbc=skipping
20789 else
20790 coin_has_cbc=yes
20791 CBC_DATA="$withval"
20792 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20793 if test -z "$PKG_CONFIG" ; then
20794 CBC_DATA_INSTALLED="$withval"
20795 fi
20796 fi
20797
20798 fi;
20799 fi
20800
20801 if test $coin_has_cbc = notGiven; then
20802 if test -n "$PKG_CONFIG" ; then
20803 # set search path for pkg-config
20804 # need to export variable to be sure that the following pkg-config gets these values
20805 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20806 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20807 export PKG_CONFIG_PATH
20808
20809 # let pkg-config do it's magic
20810
20811
20812
20813 if test -n "$PKG_CONFIG" ; then
20814 if $PKG_CONFIG --exists "cbc clp osi-clp"; then
20815 CBC_VERSIONS=`$PKG_CONFIG --modversion "cbc clp osi-clp" 2>/dev/null | tr '\n' ' '`
20816 cflags=`$PKG_CONFIG --cflags "cbc clp osi-clp" 2>/dev/null`
20817 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20818 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20819 # but only do this if is not trivial
20820 if test "$CYGPATH_W" != "echo" ; then
20821 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20822 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20823 fi
20824 CBC_CFLAGS="$cflags"
20825 CBC_LIBS=`$PKG_CONFIG --libs "cbc clp osi-clp" 2>/dev/null`
20826 CBC_DATA=`$PKG_CONFIG --variable=datadir "cbc clp osi-clp" 2>/dev/null`
20827 coin_has_cbc=yes
20828 echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
20829 echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
20830
20831 # adjust linker flags for (i)cl compiler
20832 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
20833 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20834 then
20835 CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20836 fi
20837 CBC_PCREQUIRES="cbc clp osi-clp"
20838
20839 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
20840
20841 COINMP_PCREQUIRES="cbc clp osi-clp $COINMP_PCREQUIRES"
20842 COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
20843 COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
20844
20845
20846
20847 else
20848 CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cbc clp osi-clp"`
20849 coin_has_cbc=notGiven
20850 echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
20851 echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
20852
20853 fi
20854 else
20855 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
20856 echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
20857 { (exit 1); exit 1; }; }
20858 fi
20859
20860
20861
20862
20863 # reset PKG_CONFIG_PATH variable
20864 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20865 export PKG_CONFIG_PATH
20866
20867 else
20868 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20869 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20870
20871 echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
20872 echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
20873
20874 coin_has_cbc=notGiven
20875 CBC_LIBS=
20876 CBC_LIBS_INSTALLED=
20877 CBC_CFLAGS=
20878 CBC_CFLAGS_INSTALLED=
20879 CBC_DATA=
20880 CBC_DATA_INSTALLED=
20881 CBC_PCLIBS=
20882 CBC_PCREQUIRES=
20883
20884 # initial list of dependencies is "cbc clp osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20885 projtoprocess="cbc clp osi-clp"
20886
20887 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20888 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20889 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20890 # also, we setup the DATA variable
20891 allproj=""
20892 allpcfiles=""
20893 allpcifiles=""
20894 while test "x$projtoprocess" != x ; do
20895
20896 for proj in $projtoprocess ; do
20897 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20898 pcfile=""
20899 save_IFS="$IFS"
20900 IFS=":"
20901 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20902 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
20903 if test -r "$dir/${proj}-uninstalled.pc" ; then
20904 pcfile="$dir/$proj-uninstalled.pc"
20905 if test -r "$dir/${proj}.pc" ; then
20906 pcifile="$dir/${proj}.pc"
20907 else
20908 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20909 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20910 pcifile=
20911 fi
20912 break
20913 fi
20914 done
20915 IFS="$save_IFS"
20916
20917 if test "x$pcfile" != x ; then
20918 # read dependencies from $pcfile and filter it
20919 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
20920
20921 # add projrequires to the front of the list of projects that have to be processed next
20922 # at the same time, remove $proj from this list
20923 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
20924
20925 # read DATA from $pcfile, if _DATA is still empty
20926 if test "x$CBC_DATA" = x ; then
20927 projdatadir=
20928 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
20929 eval `sh -c "$pcfilemod"`
20930 CBC_DATA="$projdatadir"
20931 fi
20932
20933 allproj="$allproj $proj"
20934 allpcfiles="$pcfile:$allpcfiles"
20935
20936 else
20937 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
20938 echo "${ECHO_T}no, dependency $proj not available" >&6
20939 allproj=fail
20940 break 2
20941 fi
20942
20943 if test "x$pcifile" != x ; then
20944 allpcifiles="$pcifile:$allpcifiles"
20945
20946 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
20947 if test "x$CBC_DATA_INSTALLED" = x ; then
20948 projdatadir=
20949 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
20950 eval `sh -c "$pcifilemod"`
20951 if test "${CYGPATH_W}" != "echo"; then
20952 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
20953 fi
20954 CBC_DATA_INSTALLED="$projdatadir"
20955 fi
20956
20957 fi
20958
20959 break
20960 done
20961
20962 # remove spaces on begin of $projtoprocess
20963 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
20964
20965 done
20966
20967 if test "$allproj" != fail ; then
20968
20969 # now go through the list of .pc files and assemble compiler and linker flags
20970 # important is here to obey the reverse order that has been setup before,
20971 # since then libraries that are required by several others should be after these other libraries
20972 pcfilesprocessed=""
20973
20974 save_IFS="$IFS"
20975 IFS=":"
20976 for pcfile in $allpcfiles ; do
20977
20978 # if $pcfile has been processed already, skip this round
20979 if test "x$pcfilesprocessed" != x ; then
20980 for pcfiledone in $pcfilesprocessed ; do
20981 if test "$pcfiledone" = "$pcfile" ; then
20982 continue 2
20983 fi
20984 done
20985 fi
20986
20987 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
20988 # replace "Libs:" by "echo projlibs="
20989 # replace "Cflags:" by "echo projcflags="
20990 # remove every line starting with <some word>:
20991 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
20992
20993 # set projcflags and projlibs variables by running $pcfilemod
20994 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
20995 projcflags=
20996 projlibs=
20997 IFS="$save_IFS"
20998 eval `sh -c "$pcfilemod"`
20999 IFS=":"
21000
21001 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21002 if test "${CYGPATH_W}" != "echo"; then
21003 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21004 fi
21005 CBC_CFLAGS="$projcflags $CBC_CFLAGS"
21006
21007 # set LIBS variable
21008 CBC_LIBS="$projlibs $CBC_LIBS"
21009
21010 # remember that we have processed $pcfile
21011 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21012
21013 done
21014 IFS="$save_IFS"
21015
21016
21017 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21018 # important is here again to obey the reverse order that has been setup before,
21019 # since then libraries that are required by several others should be after these other libraries
21020 pcfilesprocessed=""
21021
21022 save_IFS="$IFS"
21023 IFS=":"
21024 for pcfile in $allpcifiles ; do
21025
21026 # if $pcfile has been processed already, skip this round
21027 if test "x$pcfilesprocessed" != x ; then
21028 for pcfiledone in $pcfilesprocessed ; do
21029 if test "$pcfiledone" = "$pcfile" ; then
21030 continue 2
21031 fi
21032 done
21033 fi
21034
21035 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21036 # replace "Libs:" by "echo projlibs="
21037 # replace "Cflags:" by "echo projcflags="
21038 # remove every line starting with <some word>:
21039 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21040
21041 # set projcflags and projlibs variables by running $pcfilemod
21042 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21043 projcflags=
21044 projlibs=
21045 IFS="$save_IFS"
21046 eval `sh -c "$pcfilemod"`
21047 IFS=":"
21048
21049 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21050 if test "${CYGPATH_W}" != "echo"; then
21051 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21052 fi
21053 CBC_CFLAGS_INSTALLED="$projcflags $CBC_CFLAGS_INSTALLED"
21054
21055 # set LIBS variable
21056 CBC_LIBS_INSTALLED="$projlibs $CBC_LIBS_INSTALLED"
21057
21058 # remember that we have processed $pcfile
21059 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21060
21061 done
21062 IFS="$save_IFS"
21063
21064
21065 # finish up
21066 coin_has_cbc=yes
21067 echo "$as_me:$LINENO: result: yes" >&5
21068 echo "${ECHO_T}yes" >&6
21069
21070 cat >>confdefs.h <<\_ACEOF
21071 #define COIN_HAS_CBC 1
21072 _ACEOF
21073
21074
21075 # adjust linker flags for (i)cl compiler
21076 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21077 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21078 # everything of the form "-lname" by "libname.lib", and
21079 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21080 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21081 then
21082 CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21083 CBC_LIBS_INSTALLED=`echo " $CBC_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21084 fi
21085
21086 CBC_PCREQUIRES="cbc clp osi-clp"
21087
21088 COINMP_PCREQUIRES="cbc clp osi-clp $COINMP_PCREQUIRES"
21089 COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
21090 COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
21091 COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
21092 COINMP_LIBS_INSTALLED="$CBC_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
21093
21094
21095 fi
21096
21097
21098
21099 if test $coin_has_cbc != notGiven &&
21100 test $coin_has_cbc != skipping; then
21101 COIN_HAS_CBC_TRUE=
21102 COIN_HAS_CBC_FALSE='#'
21103 else
21104 COIN_HAS_CBC_TRUE='#'
21105 COIN_HAS_CBC_FALSE=
21106 fi
21107
21108
21109
21110 fi
21111
21112 else
21113 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
21114 echo "${ECHO_T}$coin_has_cbc" >&6
21115 fi
21116
21117 if test $coin_has_cbc != skipping &&
21118 test $coin_has_cbc != notGiven ; then
21119
21120 cat >>confdefs.h <<\_ACEOF
21121 #define COIN_HAS_CBC 1
21122 _ACEOF
21123
21124
21125 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21126 if test "${enable_interpackage_dependencies+set}" = set; then
21127 enableval="$enable_interpackage_dependencies"
21128
21129 else
21130 enable_interpackage_dependencies=yes
21131 fi;
21132
21133 if test $enable_interpackage_dependencies = yes ; then
21134 # construct dependencies variables from LIBS variables
21135 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21136 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21137 # then remove everything of the form -xxx
21138 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21139 CBC_DEPENDENCIES=`echo " $CBC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21140
21141 COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21142
21143 fi
21144
21145 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21146 if test -n "$CBC_CFLAGS" ; then
21147 { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
21148 echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
21149 fi
21150 if test -n "$CBC_LIBS" ; then
21151 { echo "$as_me:$LINENO: Cbc LIBS are $CBC_LIBS" >&5
21152 echo "$as_me: Cbc LIBS are $CBC_LIBS" >&6;}
21153 fi
21154 if test -n "$CBC_DEPENDENCIES" ; then
21155 { echo "$as_me:$LINENO: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&5
21156 echo "$as_me: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&6;}
21157 fi
21158 if test -n "$CBC_DATA" ; then
21159 { echo "$as_me:$LINENO: Cbc DATA is $CBC_DATA" >&5
21160 echo "$as_me: Cbc DATA is $CBC_DATA" >&6;}
21161 fi
21162 if test -n "$CBC_PCLIBS" ; then
21163 { echo "$as_me:$LINENO: Cbc PCLIBS are $CBC_PCLIBS" >&5
21164 echo "$as_me: Cbc PCLIBS are $CBC_PCLIBS" >&6;}
21165 fi
21166 if test -n "$CBC_PCREQUIRES" ; then
21167 { echo "$as_me:$LINENO: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&5
21168 echo "$as_me: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&6;}
21169 fi
21170
21171 { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
21172 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
21173 { echo "$as_me:$LINENO: CoinMP LIBS are $COINMP_LIBS" >&5
21174 echo "$as_me: CoinMP LIBS are $COINMP_LIBS" >&6;}
21175 { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
21176 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
21177
21178 fi
21179 fi
21180
21181 # Define the Makefile conditional
21182
21183
21184 if test $coin_has_cbc != notGiven &&
21185 test $coin_has_cbc != skipping; then
21186 COIN_HAS_CBC_TRUE=
21187 COIN_HAS_CBC_FALSE='#'
21188 else
21189 COIN_HAS_CBC_TRUE='#'
21190 COIN_HAS_CBC_FALSE=
21191 fi
21192
21193
21194
21195 if test $coin_has_cbc != yes; then
21196 { { echo "$as_me:$LINENO: error: \"Required package Cbc unavailable.\"" >&5
21197 echo "$as_me: error: \"Required package Cbc unavailable.\"" >&2;}
21198 { (exit 1); exit 1; }; }
21199 fi
21200
21201 ##############################################################################
21202 # Finishing up by writing all the output #
21203 ##############################################################################
21204
21205 # Here list all the files that configure should create (except for the
21206 # configuration header file)
21207 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile examples/Makefile coinmp.pc coinmp-uninstalled.pc"
21208
21209
21210 # Here put the location and name of the configuration header file
21211 ac_config_headers="$ac_config_headers src/config.h src/config_coinmp.h"
21212
21213
21214 # Finally, we let configure write all the output...
21215
21216
21217
21218
21219 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
21220 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
21221 coin_link_input_cmd="$LN_S"
21222 case "$CC" in
21223 clang* ) ;;
21224 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21225 coin_link_input_cmd=cp ;;
21226 esac
21227 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
21228 echo "${ECHO_T}$coin_link_input_cmd" >&6
21229
21230
21231
21232 if test x$coin_skip_ac_output != xyes; then
21233
21234 # library extension
21235
21236 case "$CC" in
21237 clang* )
21238 LIBEXT=a ;;
21239 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21240 LIBEXT=lib ;;
21241 *) LIBEXT=a ;;
21242 esac
21243
21244 # Define VPATH_DISTCLEANFILES to be everything that needs to be
21245 # cleaned for distclean in a vpath configuration
21246
21247 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
21248
21249 # Take out subdirectories if their configuration concluded that they
21250 # don't need to be compiled
21251 if test x"$coin_ac_skip_subdirs" != x; then
21252 new_subdirs=
21253 for i in $subdirs; do
21254 skipme=no
21255 for j in $coin_ac_skip_subdirs; do
21256 if test $i = $j; then
21257 skipme=yes;
21258 fi
21259 done
21260 if test $skipme = no; then
21261 new_subdirs="$new_subdirs $i"
21262 fi
21263 done
21264 subdirs="$new_subdirs"
21265 fi
21266
21267 # need to come before AC_OUTPUT
21268 if test x$coin_projectdir != xyes; then
21269 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
21270 echo $coin_subdirs > coin_subdirs.txt
21271 else
21272 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
21273 ABSBUILDDIR="`pwd`"
21274
21275 fi
21276
21277 cat >confcache <<\_ACEOF
21278 # This file is a shell script that caches the results of configure
21279 # tests run on this system so they can be shared between configure
21280 # scripts and configure runs, see configure's option --config-cache.
21281 # It is not useful on other systems. If it contains results you don't
21282 # want to keep, you may remove or edit it.
21283 #
21284 # config.status only pays attention to the cache file if you give it
21285 # the --recheck option to rerun configure.
21286 #
21287 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21288 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21289 # following values.
21290
21291 _ACEOF
21292
21293 # The following way of writing the cache mishandles newlines in values,
21294 # but we know of no workaround that is simple, portable, and efficient.
21295 # So, don't put newlines in cache variables' values.
21296 # Ultrix sh set writes to stderr and can't be redirected directly,
21297 # and sets the high bit in the cache file unless we assign to the vars.
21298 {
21299 (set) 2>&1 |
21300 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21301 *ac_space=\ *)
21302 # `set' does not quote correctly, so add quotes (double-quote
21303 # substitution turns \\\\ into \\, and sed turns \\ into \).
21304 sed -n \
21305 "s/'/'\\\\''/g;
21306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21307 ;;
21308 *)
21309 # `set' quotes correctly as required by POSIX, so do not add quotes.
21310 sed -n \
21311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21312 ;;
21313 esac;
21314 } |
21315 sed '
21316 t clear
21317 : clear
21318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21319 t end
21320 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21321 : end' >>confcache
21322 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21323 if test -w $cache_file; then
21324 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21325 cat confcache >$cache_file
21326 else
21327 echo "not updating unwritable cache $cache_file"
21328 fi
21329 fi
21330 rm -f confcache
21331
21332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21333 # Let make expand exec_prefix.
21334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21335
21336 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21337 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21338 # trailing colons and then remove the whole line if VPATH becomes empty
21339 # (actually we leave an empty line to preserve line numbers).
21340 if test "x$srcdir" = x.; then
21341 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21342 s/:*\$(srcdir):*/:/;
21343 s/:*\${srcdir}:*/:/;
21344 s/:*@srcdir@:*/:/;
21345 s/^\([^=]*=[ ]*\):*/\1/;
21346 s/:*$//;
21347 s/^[^=]*=[ ]*$//;
21348 }'
21349 fi
21350
21351 DEFS=-DHAVE_CONFIG_H
21352
21353 ac_libobjs=
21354 ac_ltlibobjs=
21355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21356 # 1. Remove the extension, and $U if already installed.
21357 ac_i=`echo "$ac_i" |
21358 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21359 # 2. Add them.
21360 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21361 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21362 done
21363 LIBOBJS=$ac_libobjs
21364
21365 LTLIBOBJS=$ac_ltlibobjs
21366
21367
21368 if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
21369 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
21370 Usually this means the macro was only invoked conditionally." >&5
21371 echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
21372 Usually this means the macro was only invoked conditionally." >&2;}
21373 { (exit 1); exit 1; }; }
21374 fi
21375 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
21376 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
21377 Usually this means the macro was only invoked conditionally." >&5
21378 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
21379 Usually this means the macro was only invoked conditionally." >&2;}
21380 { (exit 1); exit 1; }; }
21381 fi
21382 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
21383 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21384 Usually this means the macro was only invoked conditionally." >&5
21385 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21386 Usually this means the macro was only invoked conditionally." >&2;}
21387 { (exit 1); exit 1; }; }
21388 fi
21389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21390 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21391 Usually this means the macro was only invoked conditionally." >&5
21392 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21393 Usually this means the macro was only invoked conditionally." >&2;}
21394 { (exit 1); exit 1; }; }
21395 fi
21396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21397 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21398 Usually this means the macro was only invoked conditionally." >&5
21399 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21400 Usually this means the macro was only invoked conditionally." >&2;}
21401 { (exit 1); exit 1; }; }
21402 fi
21403 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21404 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21405 Usually this means the macro was only invoked conditionally." >&5
21406 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21407 Usually this means the macro was only invoked conditionally." >&2;}
21408 { (exit 1); exit 1; }; }
21409 fi
21410 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21411 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21412 Usually this means the macro was only invoked conditionally." >&5
21413 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21414 Usually this means the macro was only invoked conditionally." >&2;}
21415 { (exit 1); exit 1; }; }
21416 fi
21417 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
21418 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
21419 Usually this means the macro was only invoked conditionally." >&5
21420 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
21421 Usually this means the macro was only invoked conditionally." >&2;}
21422 { (exit 1); exit 1; }; }
21423 fi
21424 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
21425 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21426 Usually this means the macro was only invoked conditionally." >&5
21427 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21428 Usually this means the macro was only invoked conditionally." >&2;}
21429 { (exit 1); exit 1; }; }
21430 fi
21431 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
21432 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
21433 Usually this means the macro was only invoked conditionally." >&5
21434 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
21435 Usually this means the macro was only invoked conditionally." >&2;}
21436 { (exit 1); exit 1; }; }
21437 fi
21438 if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then
21439 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined.
21440 Usually this means the macro was only invoked conditionally." >&5
21441 echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined.
21442 Usually this means the macro was only invoked conditionally." >&2;}
21443 { (exit 1); exit 1; }; }
21444 fi
21445 if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then
21446 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined.
21447 Usually this means the macro was only invoked conditionally." >&5
21448 echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined.
21449 Usually this means the macro was only invoked conditionally." >&2;}
21450 { (exit 1); exit 1; }; }
21451 fi
21452
21453 : ${CONFIG_STATUS=./config.status}
21454 ac_clean_files_save=$ac_clean_files
21455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21456 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21457 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21458 cat >$CONFIG_STATUS <<_ACEOF
21459 #! $SHELL
21460 # Generated by $as_me.
21461 # Run this file to recreate the current configuration.
21462 # Compiler output produced by configure, useful for debugging
21463 # configure, is in config.log if it exists.
21464
21465 debug=false
21466 ac_cs_recheck=false
21467 ac_cs_silent=false
21468 SHELL=\${CONFIG_SHELL-$SHELL}
21469 _ACEOF
21470
21471 cat >>$CONFIG_STATUS <<\_ACEOF
21472 ## --------------------- ##
21473 ## M4sh Initialization. ##
21474 ## --------------------- ##
21475
21476 # Be Bourne compatible
21477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21478 emulate sh
21479 NULLCMD=:
21480 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21481 # is contrary to our usage. Disable this feature.
21482 alias -g '${1+"$@"}'='"$@"'
21483 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21484 set -o posix
21485 fi
21486 DUALCASE=1; export DUALCASE # for MKS sh
21487
21488 # Support unset when possible.
21489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21490 as_unset=unset
21491 else
21492 as_unset=false
21493 fi
21494
21495
21496 # Work around bugs in pre-3.0 UWIN ksh.
21497 $as_unset ENV MAIL MAILPATH
21498 PS1='$ '
21499 PS2='> '
21500 PS4='+ '
21501
21502 # NLS nuisances.
21503 for as_var in \
21504 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21505 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21506 LC_TELEPHONE LC_TIME
21507 do
21508 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21509 eval $as_var=C; export $as_var
21510 else
21511 $as_unset $as_var
21512 fi
21513 done
21514
21515 # Required to use basename.
21516 if expr a : '\(a\)' >/dev/null 2>&1; then
21517 as_expr=expr
21518 else
21519 as_expr=false
21520 fi
21521
21522 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21523 as_basename=basename
21524 else
21525 as_basename=false
21526 fi
21527
21528
21529 # Name of the executable.
21530 as_me=`$as_basename "$0" ||
21531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21532 X"$0" : 'X\(//\)$' \| \
21533 X"$0" : 'X\(/\)$' \| \
21534 . : '\(.\)' 2>/dev/null ||
21535 echo X/"$0" |
21536 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21537 /^X\/\(\/\/\)$/{ s//\1/; q; }
21538 /^X\/\(\/\).*/{ s//\1/; q; }
21539 s/.*/./; q'`
21540
21541
21542 # PATH needs CR, and LINENO needs CR and PATH.
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits='0123456789'
21548 as_cr_alnum=$as_cr_Letters$as_cr_digits
21549
21550 # The user is always right.
21551 if test "${PATH_SEPARATOR+set}" != set; then
21552 echo "#! /bin/sh" >conf$$.sh
21553 echo "exit 0" >>conf$$.sh
21554 chmod +x conf$$.sh
21555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21556 PATH_SEPARATOR=';'
21557 else
21558 PATH_SEPARATOR=:
21559 fi
21560 rm -f conf$$.sh
21561 fi
21562
21563
21564 as_lineno_1=$LINENO
21565 as_lineno_2=$LINENO
21566 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21567 test "x$as_lineno_1" != "x$as_lineno_2" &&
21568 test "x$as_lineno_3" = "x$as_lineno_2" || {
21569 # Find who we are. Look in the path if we contain no path at all
21570 # relative or not.
21571 case $0 in
21572 *[\\/]* ) as_myself=$0 ;;
21573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21574 for as_dir in $PATH
21575 do
21576 IFS=$as_save_IFS
21577 test -z "$as_dir" && as_dir=.
21578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21579 done
21580
21581 ;;
21582 esac
21583 # We did not find ourselves, most probably we were run as `sh COMMAND'
21584 # in which case we are not to be found in the path.
21585 if test "x$as_myself" = x; then
21586 as_myself=$0
21587 fi
21588 if test ! -f "$as_myself"; then
21589 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21590 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21591 { (exit 1); exit 1; }; }
21592 fi
21593 case $CONFIG_SHELL in
21594 '')
21595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21596 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21597 do
21598 IFS=$as_save_IFS
21599 test -z "$as_dir" && as_dir=.
21600 for as_base in sh bash ksh sh5; do
21601 case $as_dir in
21602 /*)
21603 if ("$as_dir/$as_base" -c '
21604 as_lineno_1=$LINENO
21605 as_lineno_2=$LINENO
21606 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21607 test "x$as_lineno_1" != "x$as_lineno_2" &&
21608 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21609 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21610 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21611 CONFIG_SHELL=$as_dir/$as_base
21612 export CONFIG_SHELL
21613 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21614 fi;;
21615 esac
21616 done
21617 done
21618 ;;
21619 esac
21620
21621 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21622 # uniformly replaced by the line number. The first 'sed' inserts a
21623 # line-number line before each line; the second 'sed' does the real
21624 # work. The second script uses 'N' to pair each line-number line
21625 # with the numbered line, and appends trailing '-' during
21626 # substitution so that $LINENO is not a special case at line end.
21627 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21628 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21629 sed '=' <$as_myself |
21630 sed '
21631 N
21632 s,$,-,
21633 : loop
21634 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21635 t loop
21636 s,-$,,
21637 s,^['$as_cr_digits']*\n,,
21638 ' >$as_me.lineno &&
21639 chmod +x $as_me.lineno ||
21640 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21641 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21642 { (exit 1); exit 1; }; }
21643
21644 # Don't try to exec as it changes $[0], causing all sort of problems
21645 # (the dirname of $[0] is not the place where we might find the
21646 # original and so on. Autoconf is especially sensible to this).
21647 . ./$as_me.lineno
21648 # Exit status is that of the last command.
21649 exit
21650 }
21651
21652
21653 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21654 *c*,-n*) ECHO_N= ECHO_C='
21655 ' ECHO_T=' ' ;;
21656 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21657 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21658 esac
21659
21660 if expr a : '\(a\)' >/dev/null 2>&1; then
21661 as_expr=expr
21662 else
21663 as_expr=false
21664 fi
21665
21666 rm -f conf$$ conf$$.exe conf$$.file
21667 echo >conf$$.file
21668 if ln -s conf$$.file conf$$ 2>/dev/null; then
21669 # We could just check for DJGPP; but this test a) works b) is more generic
21670 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21671 if test -f conf$$.exe; then
21672 # Don't use ln at all; we don't have any links
21673 as_ln_s='cp -p'
21674 else
21675 as_ln_s='ln -s'
21676 fi
21677 elif ln conf$$.file conf$$ 2>/dev/null; then
21678 as_ln_s=ln
21679 else
21680 as_ln_s='cp -p'
21681 fi
21682 rm -f conf$$ conf$$.exe conf$$.file
21683
21684 if mkdir -p . 2>/dev/null; then
21685 as_mkdir_p=:
21686 else
21687 test -d ./-p && rmdir ./-p
21688 as_mkdir_p=false
21689 fi
21690
21691 as_executable_p="test -f"
21692
21693 # Sed expression to map a string onto a valid CPP name.
21694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21695
21696 # Sed expression to map a string onto a valid variable name.
21697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21698
21699
21700 # IFS
21701 # We need space, tab and new line, in precisely that order.
21702 as_nl='
21703 '
21704 IFS=" $as_nl"
21705
21706 # CDPATH.
21707 $as_unset CDPATH
21708
21709 exec 6>&1
21710
21711 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21712 # report actual input values of CONFIG_FILES etc. instead of their
21713 # values after options handling. Logging --version etc. is OK.
21714 exec 5>>config.log
21715 {
21716 echo
21717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21718 ## Running $as_me. ##
21719 _ASBOX
21720 } >&5
21721 cat >&5 <<_CSEOF
21722
21723 This file was extended by CoinMP $as_me 1.8, which was
21724 generated by GNU Autoconf 2.59. Invocation command line was
21725
21726 CONFIG_FILES = $CONFIG_FILES
21727 CONFIG_HEADERS = $CONFIG_HEADERS
21728 CONFIG_LINKS = $CONFIG_LINKS
21729 CONFIG_COMMANDS = $CONFIG_COMMANDS
21730 $ $0 $@
21731
21732 _CSEOF
21733 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21734 echo >&5
21735 _ACEOF
21736
21737 # Files that config.status was made for.
21738 if test -n "$ac_config_files"; then
21739 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21740 fi
21741
21742 if test -n "$ac_config_headers"; then
21743 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21744 fi
21745
21746 if test -n "$ac_config_links"; then
21747 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21748 fi
21749
21750 if test -n "$ac_config_commands"; then
21751 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21752 fi
21753
21754 cat >>$CONFIG_STATUS <<\_ACEOF
21755
21756 ac_cs_usage="\
21757 \`$as_me' instantiates files from templates according to the
21758 current configuration.
21759
21760 Usage: $0 [OPTIONS] [FILE]...
21761
21762 -h, --help print this help, then exit
21763 -V, --version print version number, then exit
21764 -q, --quiet do not print progress messages
21765 -d, --debug don't remove temporary files
21766 --recheck update $as_me by reconfiguring in the same conditions
21767 --file=FILE[:TEMPLATE]
21768 instantiate the configuration file FILE
21769 --header=FILE[:TEMPLATE]
21770 instantiate the configuration header FILE
21771
21772 Configuration files:
21773 $config_files
21774
21775 Configuration headers:
21776 $config_headers
21777
21778 Configuration commands:
21779 $config_commands
21780
21781 Report bugs to <[email protected]>."
21782 _ACEOF
21783
21784 cat >>$CONFIG_STATUS <<_ACEOF
21785 ac_cs_version="\\
21786 CoinMP config.status 1.8
21787 configured by $0, generated by GNU Autoconf 2.59,
21788 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21789
21790 Copyright (C) 2003 Free Software Foundation, Inc.
21791 This config.status script is free software; the Free Software Foundation
21792 gives unlimited permission to copy, distribute and modify it."
21793 srcdir=$srcdir
21794 INSTALL="$INSTALL"
21795 _ACEOF
21796
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 # If no file are specified by the user, then we need to provide default
21799 # value. By we need to know if files were specified by the user.
21800 ac_need_defaults=:
21801 while test $# != 0
21802 do
21803 case $1 in
21804 --*=*)
21805 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21806 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21807 ac_shift=:
21808 ;;
21809 -*)
21810 ac_option=$1
21811 ac_optarg=$2
21812 ac_shift=shift
21813 ;;
21814 *) # This is not an option, so the user has probably given explicit
21815 # arguments.
21816 ac_option=$1
21817 ac_need_defaults=false;;
21818 esac
21819
21820 case $ac_option in
21821 # Handling of the options.
21822 _ACEOF
21823 cat >>$CONFIG_STATUS <<\_ACEOF
21824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21825 ac_cs_recheck=: ;;
21826 --version | --vers* | -V )
21827 echo "$ac_cs_version"; exit 0 ;;
21828 --he | --h)
21829 # Conflict between --help and --header
21830 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21831 Try \`$0 --help' for more information." >&5
21832 echo "$as_me: error: ambiguous option: $1
21833 Try \`$0 --help' for more information." >&2;}
21834 { (exit 1); exit 1; }; };;
21835 --help | --hel | -h )
21836 echo "$ac_cs_usage"; exit 0 ;;
21837 --debug | --d* | -d )
21838 debug=: ;;
21839 --file | --fil | --fi | --f )
21840 $ac_shift
21841 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21842 ac_need_defaults=false;;
21843 --header | --heade | --head | --hea )
21844 $ac_shift
21845 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21846 ac_need_defaults=false;;
21847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21848 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21849 ac_cs_silent=: ;;
21850
21851 # This is an error.
21852 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21853 Try \`$0 --help' for more information." >&5
21854 echo "$as_me: error: unrecognized option: $1
21855 Try \`$0 --help' for more information." >&2;}
21856 { (exit 1); exit 1; }; } ;;
21857
21858 *) ac_config_targets="$ac_config_targets $1" ;;
21859
21860 esac
21861 shift
21862 done
21863
21864 ac_configure_extra_args=
21865
21866 if $ac_cs_silent; then
21867 exec 6>/dev/null
21868 ac_configure_extra_args="$ac_configure_extra_args --silent"
21869 fi
21870
21871 _ACEOF
21872 cat >>$CONFIG_STATUS <<_ACEOF
21873 if \$ac_cs_recheck; then
21874 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21875 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21876 fi
21877
21878 _ACEOF
21879
21880 cat >>$CONFIG_STATUS <<_ACEOF
21881 #
21882 # INIT-COMMANDS section.
21883 #
21884
21885 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21886
21887 _ACEOF
21888
21889
21890
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21892 for ac_config_target in $ac_config_targets
21893 do
21894 case "$ac_config_target" in
21895 # Handling of arguments.
21896 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21897 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21898 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21899 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21900 "coinmp.pc" ) CONFIG_FILES="$CONFIG_FILES coinmp.pc" ;;
21901 "coinmp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinmp-uninstalled.pc" ;;
21902 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21903 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21904 "src/config_coinmp.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_coinmp.h" ;;
21905 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21906 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21907 { (exit 1); exit 1; }; };;
21908 esac
21909 done
21910
21911 # If the user did not use the arguments to specify the items to instantiate,
21912 # then the envvar interface is used. Set only those that are not.
21913 # We use the long form for the default assignment because of an extremely
21914 # bizarre bug on SunOS 4.1.3.
21915 if $ac_need_defaults; then
21916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21919 fi
21920
21921 # Have a temporary directory for convenience. Make it in the build tree
21922 # simply because there is no reason to put it here, and in addition,
21923 # creating and moving files from /tmp can sometimes cause problems.
21924 # Create a temporary directory, and hook for its removal unless debugging.
21925 $debug ||
21926 {
21927 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21928 trap '{ (exit 1); exit 1; }' 1 2 13 15
21929 }
21930
21931 # Create a (secure) tmp directory for tmp files.
21932
21933 {
21934 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21935 test -n "$tmp" && test -d "$tmp"
21936 } ||
21937 {
21938 tmp=./confstat$$-$RANDOM
21939 (umask 077 && mkdir $tmp)
21940 } ||
21941 {
21942 echo "$me: cannot create a temporary directory in ." >&2
21943 { (exit 1); exit 1; }
21944 }
21945
21946 _ACEOF
21947
21948 cat >>$CONFIG_STATUS <<_ACEOF
21949
21950 #
21951 # CONFIG_FILES section.
21952 #
21953
21954 # No need to generate the scripts if there are no CONFIG_FILES.
21955 # This happens for instance when ./config.status config.h
21956 if test -n "\$CONFIG_FILES"; then
21957 # Protect against being on the right side of a sed subst in config.status.
21958 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21959 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21960 s,@SHELL@,$SHELL,;t t
21961 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21962 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21963 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21964 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21965 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21966 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21967 s,@exec_prefix@,$exec_prefix,;t t
21968 s,@prefix@,$prefix,;t t
21969 s,@program_transform_name@,$program_transform_name,;t t
21970 s,@bindir@,$bindir,;t t
21971 s,@sbindir@,$sbindir,;t t
21972 s,@libexecdir@,$libexecdir,;t t
21973 s,@datadir@,$datadir,;t t
21974 s,@sysconfdir@,$sysconfdir,;t t
21975 s,@sharedstatedir@,$sharedstatedir,;t t
21976 s,@localstatedir@,$localstatedir,;t t
21977 s,@libdir@,$libdir,;t t
21978 s,@includedir@,$includedir,;t t
21979 s,@oldincludedir@,$oldincludedir,;t t
21980 s,@infodir@,$infodir,;t t
21981 s,@mandir@,$mandir,;t t
21982 s,@build_alias@,$build_alias,;t t
21983 s,@host_alias@,$host_alias,;t t
21984 s,@target_alias@,$target_alias,;t t
21985 s,@DEFS@,$DEFS,;t t
21986 s,@ECHO_C@,$ECHO_C,;t t
21987 s,@ECHO_N@,$ECHO_N,;t t
21988 s,@ECHO_T@,$ECHO_T,;t t
21989 s,@LIBS@,$LIBS,;t t
21990 s,@build@,$build,;t t
21991 s,@build_cpu@,$build_cpu,;t t
21992 s,@build_vendor@,$build_vendor,;t t
21993 s,@build_os@,$build_os,;t t
21994 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
21995 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
21996 s,@have_svnversion@,$have_svnversion,;t t
21997 s,@COINMP_SVN_REV@,$COINMP_SVN_REV,;t t
21998 s,@CDEFS@,$CDEFS,;t t
21999 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22000 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22001 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22002 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22003 s,@CC@,$CC,;t t
22004 s,@CFLAGS@,$CFLAGS,;t t
22005 s,@LDFLAGS@,$LDFLAGS,;t t
22006 s,@CPPFLAGS@,$CPPFLAGS,;t t
22007 s,@ac_ct_CC@,$ac_ct_CC,;t t
22008 s,@EXEEXT@,$EXEEXT,;t t
22009 s,@OBJEXT@,$OBJEXT,;t t
22010 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22011 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22012 s,@MPICC@,$MPICC,;t t
22013 s,@CXXDEFS@,$CXXDEFS,;t t
22014 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22015 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22016 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22017 s,@CXX@,$CXX,;t t
22018 s,@CXXFLAGS@,$CXXFLAGS,;t t
22019 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22020 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22021 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22022 s,@MPICXX@,$MPICXX,;t t
22023 s,@EGREP@,$EGREP,;t t
22024 s,@LN_S@,$LN_S,;t t
22025 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22026 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22027 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22028 s,@CYGPATH_W@,$CYGPATH_W,;t t
22029 s,@PACKAGE@,$PACKAGE,;t t
22030 s,@VERSION@,$VERSION,;t t
22031 s,@ACLOCAL@,$ACLOCAL,;t t
22032 s,@AUTOCONF@,$AUTOCONF,;t t
22033 s,@AUTOMAKE@,$AUTOMAKE,;t t
22034 s,@AUTOHEADER@,$AUTOHEADER,;t t
22035 s,@MAKEINFO@,$MAKEINFO,;t t
22036 s,@install_sh@,$install_sh,;t t
22037 s,@STRIP@,$STRIP,;t t
22038 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22039 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22040 s,@mkdir_p@,$mkdir_p,;t t
22041 s,@AWK@,$AWK,;t t
22042 s,@SET_MAKE@,$SET_MAKE,;t t
22043 s,@am__leading_dot@,$am__leading_dot,;t t
22044 s,@AMTAR@,$AMTAR,;t t
22045 s,@am__tar@,$am__tar,;t t
22046 s,@am__untar@,$am__untar,;t t
22047 s,@DEPDIR@,$DEPDIR,;t t
22048 s,@am__include@,$am__include,;t t
22049 s,@am__quote@,$am__quote,;t t
22050 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22051 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22052 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22053 s,@CCDEPMODE@,$CCDEPMODE,;t t
22054 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22055 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22056 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22057 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22058 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22059 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22060 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22061 s,@MAINT@,$MAINT,;t t
22062 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22063 s,@have_autoconf@,$have_autoconf,;t t
22064 s,@have_automake@,$have_automake,;t t
22065 s,@have_svn@,$have_svn,;t t
22066 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22067 s,@AUX_DIR@,$AUX_DIR,;t t
22068 s,@abs_source_dir@,$abs_source_dir,;t t
22069 s,@abs_lib_dir@,$abs_lib_dir,;t t
22070 s,@abs_include_dir@,$abs_include_dir,;t t
22071 s,@abs_bin_dir@,$abs_bin_dir,;t t
22072 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22073 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22074 s,@host@,$host,;t t
22075 s,@host_cpu@,$host_cpu,;t t
22076 s,@host_vendor@,$host_vendor,;t t
22077 s,@host_os@,$host_os,;t t
22078 s,@ECHO@,$ECHO,;t t
22079 s,@AR@,$AR,;t t
22080 s,@ac_ct_AR@,$ac_ct_AR,;t t
22081 s,@RANLIB@,$RANLIB,;t t
22082 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22083 s,@CPP@,$CPP,;t t
22084 s,@CXXCPP@,$CXXCPP,;t t
22085 s,@F77@,$F77,;t t
22086 s,@FFLAGS@,$FFLAGS,;t t
22087 s,@ac_ct_F77@,$ac_ct_F77,;t t
22088 s,@LIBTOOL@,$LIBTOOL,;t t
22089 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22090 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22091 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22092 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22093 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22094 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22095 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22096 s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
22097 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
22098 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
22099 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
22100 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
22101 s,@CBC_LIBS@,$CBC_LIBS,;t t
22102 s,@CBC_CFLAGS@,$CBC_CFLAGS,;t t
22103 s,@CBC_DATA@,$CBC_DATA,;t t
22104 s,@CBC_DEPENDENCIES@,$CBC_DEPENDENCIES,;t t
22105 s,@CBC_LIBS_INSTALLED@,$CBC_LIBS_INSTALLED,;t t
22106 s,@CBC_CFLAGS_INSTALLED@,$CBC_CFLAGS_INSTALLED,;t t
22107 s,@CBC_DATA_INSTALLED@,$CBC_DATA_INSTALLED,;t t
22108 s,@COINMP_CFLAGS@,$COINMP_CFLAGS,;t t
22109 s,@COINMP_LIBS@,$COINMP_LIBS,;t t
22110 s,@COINMP_PCLIBS@,$COINMP_PCLIBS,;t t
22111 s,@COINMP_PCREQUIRES@,$COINMP_PCREQUIRES,;t t
22112 s,@COINMP_DEPENDENCIES@,$COINMP_DEPENDENCIES,;t t
22113 s,@COINMP_CFLAGS_INSTALLED@,$COINMP_CFLAGS_INSTALLED,;t t
22114 s,@COINMP_LIBS_INSTALLED@,$COINMP_LIBS_INSTALLED,;t t
22115 s,@COIN_HAS_CBC_TRUE@,$COIN_HAS_CBC_TRUE,;t t
22116 s,@COIN_HAS_CBC_FALSE@,$COIN_HAS_CBC_FALSE,;t t
22117 s,@LIBEXT@,$LIBEXT,;t t
22118 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22119 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22120 s,@LIBOBJS@,$LIBOBJS,;t t
22121 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22122 CEOF
22123
22124 _ACEOF
22125
22126 cat >>$CONFIG_STATUS <<\_ACEOF
22127 # Split the substitutions into bite-sized pieces for seds with
22128 # small command number limits, like on Digital OSF/1 and HP-UX.
22129 ac_max_sed_lines=48
22130 ac_sed_frag=1 # Number of current file.
22131 ac_beg=1 # First line for current file.
22132 ac_end=$ac_max_sed_lines # Line after last line for current file.
22133 ac_more_lines=:
22134 ac_sed_cmds=
22135 while $ac_more_lines; do
22136 if test $ac_beg -gt 1; then
22137 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22138 else
22139 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22140 fi
22141 if test ! -s $tmp/subs.frag; then
22142 ac_more_lines=false
22143 else
22144 # The purpose of the label and of the branching condition is to
22145 # speed up the sed processing (if there are no `@' at all, there
22146 # is no need to browse any of the substitutions).
22147 # These are the two extra sed commands mentioned above.
22148 (echo ':t
22149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22150 if test -z "$ac_sed_cmds"; then
22151 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22152 else
22153 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22154 fi
22155 ac_sed_frag=`expr $ac_sed_frag + 1`
22156 ac_beg=$ac_end
22157 ac_end=`expr $ac_end + $ac_max_sed_lines`
22158 fi
22159 done
22160 if test -z "$ac_sed_cmds"; then
22161 ac_sed_cmds=cat
22162 fi
22163 fi # test -n "$CONFIG_FILES"
22164
22165 _ACEOF
22166 cat >>$CONFIG_STATUS <<\_ACEOF
22167 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22169 case $ac_file in
22170 - | *:- | *:-:* ) # input from stdin
22171 cat >$tmp/stdin
22172 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22174 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22176 * ) ac_file_in=$ac_file.in ;;
22177 esac
22178
22179 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22182 X"$ac_file" : 'X\(//\)[^/]' \| \
22183 X"$ac_file" : 'X\(//\)$' \| \
22184 X"$ac_file" : 'X\(/\)' \| \
22185 . : '\(.\)' 2>/dev/null ||
22186 echo X"$ac_file" |
22187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22189 /^X\(\/\/\)$/{ s//\1/; q; }
22190 /^X\(\/\).*/{ s//\1/; q; }
22191 s/.*/./; q'`
22192 { if $as_mkdir_p; then
22193 mkdir -p "$ac_dir"
22194 else
22195 as_dir="$ac_dir"
22196 as_dirs=
22197 while test ! -d "$as_dir"; do
22198 as_dirs="$as_dir $as_dirs"
22199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$as_dir" : 'X\(//\)[^/]' \| \
22202 X"$as_dir" : 'X\(//\)$' \| \
22203 X"$as_dir" : 'X\(/\)' \| \
22204 . : '\(.\)' 2>/dev/null ||
22205 echo X"$as_dir" |
22206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22208 /^X\(\/\/\)$/{ s//\1/; q; }
22209 /^X\(\/\).*/{ s//\1/; q; }
22210 s/.*/./; q'`
22211 done
22212 test ! -n "$as_dirs" || mkdir $as_dirs
22213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22215 { (exit 1); exit 1; }; }; }
22216
22217 ac_builddir=.
22218
22219 if test "$ac_dir" != .; then
22220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22221 # A "../" for each directory in $ac_dir_suffix.
22222 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22223 else
22224 ac_dir_suffix= ac_top_builddir=
22225 fi
22226
22227 case $srcdir in
22228 .) # No --srcdir option. We are building in place.
22229 ac_srcdir=.
22230 if test -z "$ac_top_builddir"; then
22231 ac_top_srcdir=.
22232 else
22233 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22234 fi ;;
22235 [\\/]* | ?:[\\/]* ) # Absolute path.
22236 ac_srcdir=$srcdir$ac_dir_suffix;
22237 ac_top_srcdir=$srcdir ;;
22238 *) # Relative path.
22239 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22240 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22241 esac
22242
22243 # Do not use `cd foo && pwd` to compute absolute paths, because
22244 # the directories may not exist.
22245 case `pwd` in
22246 .) ac_abs_builddir="$ac_dir";;
22247 *)
22248 case "$ac_dir" in
22249 .) ac_abs_builddir=`pwd`;;
22250 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22251 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22252 esac;;
22253 esac
22254 case $ac_abs_builddir in
22255 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22256 *)
22257 case ${ac_top_builddir}. in
22258 .) ac_abs_top_builddir=$ac_abs_builddir;;
22259 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22260 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22261 esac;;
22262 esac
22263 case $ac_abs_builddir in
22264 .) ac_abs_srcdir=$ac_srcdir;;
22265 *)
22266 case $ac_srcdir in
22267 .) ac_abs_srcdir=$ac_abs_builddir;;
22268 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22269 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22270 esac;;
22271 esac
22272 case $ac_abs_builddir in
22273 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22274 *)
22275 case $ac_top_srcdir in
22276 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22277 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22278 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22279 esac;;
22280 esac
22281
22282
22283 case $INSTALL in
22284 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22285 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22286 esac
22287
22288 if test x"$ac_file" != x-; then
22289 { echo "$as_me:$LINENO: creating $ac_file" >&5
22290 echo "$as_me: creating $ac_file" >&6;}
22291 rm -f "$ac_file"
22292 fi
22293 # Let's still pretend it is `configure' which instantiates (i.e., don't
22294 # use $as_me), people would be surprised to read:
22295 # /* config.h. Generated by config.status. */
22296 if test x"$ac_file" = x-; then
22297 configure_input=
22298 else
22299 configure_input="$ac_file. "
22300 fi
22301 configure_input=$configure_input"Generated from `echo $ac_file_in |
22302 sed 's,.*/,,'` by configure."
22303
22304 # First look for the input files in the build tree, otherwise in the
22305 # src tree.
22306 ac_file_inputs=`IFS=:
22307 for f in $ac_file_in; do
22308 case $f in
22309 -) echo $tmp/stdin ;;
22310 [\\/$]*)
22311 # Absolute (can't be DOS-style, as IFS=:)
22312 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22313 echo "$as_me: error: cannot find input file: $f" >&2;}
22314 { (exit 1); exit 1; }; }
22315 echo "$f";;
22316 *) # Relative
22317 if test -f "$f"; then
22318 # Build tree
22319 echo "$f"
22320 elif test -f "$srcdir/$f"; then
22321 # Source tree
22322 echo "$srcdir/$f"
22323 else
22324 # /dev/null tree
22325 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22326 echo "$as_me: error: cannot find input file: $f" >&2;}
22327 { (exit 1); exit 1; }; }
22328 fi;;
22329 esac
22330 done` || { (exit 1); exit 1; }
22331 _ACEOF
22332 cat >>$CONFIG_STATUS <<_ACEOF
22333 sed "$ac_vpsub
22334 $extrasub
22335 _ACEOF
22336 cat >>$CONFIG_STATUS <<\_ACEOF
22337 :t
22338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22339 s,@configure_input@,$configure_input,;t t
22340 s,@srcdir@,$ac_srcdir,;t t
22341 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22342 s,@top_srcdir@,$ac_top_srcdir,;t t
22343 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22344 s,@builddir@,$ac_builddir,;t t
22345 s,@abs_builddir@,$ac_abs_builddir,;t t
22346 s,@top_builddir@,$ac_top_builddir,;t t
22347 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22348 s,@INSTALL@,$ac_INSTALL,;t t
22349 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22350 rm -f $tmp/stdin
22351 if test x"$ac_file" != x-; then
22352 mv $tmp/out $ac_file
22353 else
22354 cat $tmp/out
22355 rm -f $tmp/out
22356 fi
22357
22358 done
22359 _ACEOF
22360 cat >>$CONFIG_STATUS <<\_ACEOF
22361
22362 #
22363 # CONFIG_HEADER section.
22364 #
22365
22366 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22367 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22368 #
22369 # ac_d sets the value in "#define NAME VALUE" lines.
22370 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22371 ac_dB='[ ].*$,\1#\2'
22372 ac_dC=' '
22373 ac_dD=',;t'
22374 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22375 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22376 ac_uB='$,\1#\2define\3'
22377 ac_uC=' '
22378 ac_uD=',;t'
22379
22380 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22382 case $ac_file in
22383 - | *:- | *:-:* ) # input from stdin
22384 cat >$tmp/stdin
22385 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22387 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22389 * ) ac_file_in=$ac_file.in ;;
22390 esac
22391
22392 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22393 echo "$as_me: creating $ac_file" >&6;}
22394
22395 # First look for the input files in the build tree, otherwise in the
22396 # src tree.
22397 ac_file_inputs=`IFS=:
22398 for f in $ac_file_in; do
22399 case $f in
22400 -) echo $tmp/stdin ;;
22401 [\\/$]*)
22402 # Absolute (can't be DOS-style, as IFS=:)
22403 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22404 echo "$as_me: error: cannot find input file: $f" >&2;}
22405 { (exit 1); exit 1; }; }
22406 # Do quote $f, to prevent DOS paths from being IFS'd.
22407 echo "$f";;
22408 *) # Relative
22409 if test -f "$f"; then
22410 # Build tree
22411 echo "$f"
22412 elif test -f "$srcdir/$f"; then
22413 # Source tree
22414 echo "$srcdir/$f"
22415 else
22416 # /dev/null tree
22417 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22418 echo "$as_me: error: cannot find input file: $f" >&2;}
22419 { (exit 1); exit 1; }; }
22420 fi;;
22421 esac
22422 done` || { (exit 1); exit 1; }
22423 # Remove the trailing spaces.
22424 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22425
22426 _ACEOF
22427
22428 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22429 # `conftest.undefs', that substitutes the proper values into
22430 # config.h.in to produce config.h. The first handles `#define'
22431 # templates, and the second `#undef' templates.
22432 # And first: Protect against being on the right side of a sed subst in
22433 # config.status. Protect against being in an unquoted here document
22434 # in config.status.
22435 rm -f conftest.defines conftest.undefs
22436 # Using a here document instead of a string reduces the quoting nightmare.
22437 # Putting comments in sed scripts is not portable.
22438 #
22439 # `end' is used to avoid that the second main sed command (meant for
22440 # 0-ary CPP macros) applies to n-ary macro definitions.
22441 # See the Autoconf documentation for `clear'.
22442 cat >confdef2sed.sed <<\_ACEOF
22443 s/[\\&,]/\\&/g
22444 s,[\\$`],\\&,g
22445 t clear
22446 : clear
22447 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22448 t end
22449 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22450 : end
22451 _ACEOF
22452 # If some macros were called several times there might be several times
22453 # the same #defines, which is useless. Nevertheless, we may not want to
22454 # sort them, since we want the *last* AC-DEFINE to be honored.
22455 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22456 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22457 rm -f confdef2sed.sed
22458
22459 # This sed command replaces #undef with comments. This is necessary, for
22460 # example, in the case of _POSIX_SOURCE, which is predefined and required
22461 # on some systems where configure will not decide to define it.
22462 cat >>conftest.undefs <<\_ACEOF
22463 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22464 _ACEOF
22465
22466 # Break up conftest.defines because some shells have a limit on the size
22467 # of here documents, and old seds have small limits too (100 cmds).
22468 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22469 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22470 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22471 echo ' :' >>$CONFIG_STATUS
22472 rm -f conftest.tail
22473 while grep . conftest.defines >/dev/null
22474 do
22475 # Write a limited-size here document to $tmp/defines.sed.
22476 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22477 # Speed up: don't consider the non `#define' lines.
22478 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22479 # Work around the forget-to-reset-the-flag bug.
22480 echo 't clr' >>$CONFIG_STATUS
22481 echo ': clr' >>$CONFIG_STATUS
22482 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22483 echo 'CEOF
22484 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22485 rm -f $tmp/in
22486 mv $tmp/out $tmp/in
22487 ' >>$CONFIG_STATUS
22488 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22489 rm -f conftest.defines
22490 mv conftest.tail conftest.defines
22491 done
22492 rm -f conftest.defines
22493 echo ' fi # grep' >>$CONFIG_STATUS
22494 echo >>$CONFIG_STATUS
22495
22496 # Break up conftest.undefs because some shells have a limit on the size
22497 # of here documents, and old seds have small limits too (100 cmds).
22498 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22499 rm -f conftest.tail
22500 while grep . conftest.undefs >/dev/null
22501 do
22502 # Write a limited-size here document to $tmp/undefs.sed.
22503 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22504 # Speed up: don't consider the non `#undef'
22505 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22506 # Work around the forget-to-reset-the-flag bug.
22507 echo 't clr' >>$CONFIG_STATUS
22508 echo ': clr' >>$CONFIG_STATUS
22509 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22510 echo 'CEOF
22511 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22512 rm -f $tmp/in
22513 mv $tmp/out $tmp/in
22514 ' >>$CONFIG_STATUS
22515 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22516 rm -f conftest.undefs
22517 mv conftest.tail conftest.undefs
22518 done
22519 rm -f conftest.undefs
22520
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522 # Let's still pretend it is `configure' which instantiates (i.e., don't
22523 # use $as_me), people would be surprised to read:
22524 # /* config.h. Generated by config.status. */
22525 if test x"$ac_file" = x-; then
22526 echo "/* Generated by configure. */" >$tmp/config.h
22527 else
22528 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22529 fi
22530 cat $tmp/in >>$tmp/config.h
22531 rm -f $tmp/in
22532 if test x"$ac_file" != x-; then
22533 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22534 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22535 echo "$as_me: $ac_file is unchanged" >&6;}
22536 else
22537 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$ac_file" : 'X\(//\)[^/]' \| \
22540 X"$ac_file" : 'X\(//\)$' \| \
22541 X"$ac_file" : 'X\(/\)' \| \
22542 . : '\(.\)' 2>/dev/null ||
22543 echo X"$ac_file" |
22544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22546 /^X\(\/\/\)$/{ s//\1/; q; }
22547 /^X\(\/\).*/{ s//\1/; q; }
22548 s/.*/./; q'`
22549 { if $as_mkdir_p; then
22550 mkdir -p "$ac_dir"
22551 else
22552 as_dir="$ac_dir"
22553 as_dirs=
22554 while test ! -d "$as_dir"; do
22555 as_dirs="$as_dir $as_dirs"
22556 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22558 X"$as_dir" : 'X\(//\)[^/]' \| \
22559 X"$as_dir" : 'X\(//\)$' \| \
22560 X"$as_dir" : 'X\(/\)' \| \
22561 . : '\(.\)' 2>/dev/null ||
22562 echo X"$as_dir" |
22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22565 /^X\(\/\/\)$/{ s//\1/; q; }
22566 /^X\(\/\).*/{ s//\1/; q; }
22567 s/.*/./; q'`
22568 done
22569 test ! -n "$as_dirs" || mkdir $as_dirs
22570 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22572 { (exit 1); exit 1; }; }; }
22573
22574 rm -f $ac_file
22575 mv $tmp/config.h $ac_file
22576 fi
22577 else
22578 cat $tmp/config.h
22579 rm -f $tmp/config.h
22580 fi
22581 # Compute $ac_file's index in $config_headers.
22582 _am_stamp_count=1
22583 for _am_header in $config_headers :; do
22584 case $_am_header in
22585 $ac_file | $ac_file:* )
22586 break ;;
22587 * )
22588 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22589 esac
22590 done
22591 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22592 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22593 X$ac_file : 'X\(//\)[^/]' \| \
22594 X$ac_file : 'X\(//\)$' \| \
22595 X$ac_file : 'X\(/\)' \| \
22596 . : '\(.\)' 2>/dev/null ||
22597 echo X$ac_file |
22598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22600 /^X\(\/\/\)$/{ s//\1/; q; }
22601 /^X\(\/\).*/{ s//\1/; q; }
22602 s/.*/./; q'`/stamp-h$_am_stamp_count
22603 done
22604 _ACEOF
22605 cat >>$CONFIG_STATUS <<\_ACEOF
22606
22607 #
22608 # CONFIG_COMMANDS section.
22609 #
22610 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22611 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22612 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22613 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22614 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22615 X"$ac_dest" : 'X\(//\)[^/]' \| \
22616 X"$ac_dest" : 'X\(//\)$' \| \
22617 X"$ac_dest" : 'X\(/\)' \| \
22618 . : '\(.\)' 2>/dev/null ||
22619 echo X"$ac_dest" |
22620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22622 /^X\(\/\/\)$/{ s//\1/; q; }
22623 /^X\(\/\).*/{ s//\1/; q; }
22624 s/.*/./; q'`
22625 { if $as_mkdir_p; then
22626 mkdir -p "$ac_dir"
22627 else
22628 as_dir="$ac_dir"
22629 as_dirs=
22630 while test ! -d "$as_dir"; do
22631 as_dirs="$as_dir $as_dirs"
22632 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22634 X"$as_dir" : 'X\(//\)[^/]' \| \
22635 X"$as_dir" : 'X\(//\)$' \| \
22636 X"$as_dir" : 'X\(/\)' \| \
22637 . : '\(.\)' 2>/dev/null ||
22638 echo X"$as_dir" |
22639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22641 /^X\(\/\/\)$/{ s//\1/; q; }
22642 /^X\(\/\).*/{ s//\1/; q; }
22643 s/.*/./; q'`
22644 done
22645 test ! -n "$as_dirs" || mkdir $as_dirs
22646 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22647 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22648 { (exit 1); exit 1; }; }; }
22649
22650 ac_builddir=.
22651
22652 if test "$ac_dir" != .; then
22653 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22654 # A "../" for each directory in $ac_dir_suffix.
22655 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22656 else
22657 ac_dir_suffix= ac_top_builddir=
22658 fi
22659
22660 case $srcdir in
22661 .) # No --srcdir option. We are building in place.
22662 ac_srcdir=.
22663 if test -z "$ac_top_builddir"; then
22664 ac_top_srcdir=.
22665 else
22666 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22667 fi ;;
22668 [\\/]* | ?:[\\/]* ) # Absolute path.
22669 ac_srcdir=$srcdir$ac_dir_suffix;
22670 ac_top_srcdir=$srcdir ;;
22671 *) # Relative path.
22672 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22673 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22674 esac
22675
22676 # Do not use `cd foo && pwd` to compute absolute paths, because
22677 # the directories may not exist.
22678 case `pwd` in
22679 .) ac_abs_builddir="$ac_dir";;
22680 *)
22681 case "$ac_dir" in
22682 .) ac_abs_builddir=`pwd`;;
22683 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22684 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22685 esac;;
22686 esac
22687 case $ac_abs_builddir in
22688 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22689 *)
22690 case ${ac_top_builddir}. in
22691 .) ac_abs_top_builddir=$ac_abs_builddir;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22693 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22694 esac;;
22695 esac
22696 case $ac_abs_builddir in
22697 .) ac_abs_srcdir=$ac_srcdir;;
22698 *)
22699 case $ac_srcdir in
22700 .) ac_abs_srcdir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22702 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22703 esac;;
22704 esac
22705 case $ac_abs_builddir in
22706 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22707 *)
22708 case $ac_top_srcdir in
22709 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22710 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22711 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22712 esac;;
22713 esac
22714
22715
22716 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22717 echo "$as_me: executing $ac_dest commands" >&6;}
22718 case $ac_dest in
22719 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22720 # Strip MF so we end up with the name of the file.
22721 mf=`echo "$mf" | sed -e 's/:.*$//'`
22722 # Check whether this is an Automake generated Makefile or not.
22723 # We used to match only the files named `Makefile.in', but
22724 # some people rename them; so instead we look at the file content.
22725 # Grep'ing the first line is not enough: some people post-process
22726 # each Makefile.in and add a new line on top of each file to say so.
22727 # So let's grep whole file.
22728 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22729 dirpart=`(dirname "$mf") 2>/dev/null ||
22730 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22731 X"$mf" : 'X\(//\)[^/]' \| \
22732 X"$mf" : 'X\(//\)$' \| \
22733 X"$mf" : 'X\(/\)' \| \
22734 . : '\(.\)' 2>/dev/null ||
22735 echo X"$mf" |
22736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22738 /^X\(\/\/\)$/{ s//\1/; q; }
22739 /^X\(\/\).*/{ s//\1/; q; }
22740 s/.*/./; q'`
22741 else
22742 continue
22743 fi
22744 # Extract the definition of DEPDIR, am__include, and am__quote
22745 # from the Makefile without running `make'.
22746 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22747 test -z "$DEPDIR" && continue
22748 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22749 test -z "am__include" && continue
22750 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22751 # When using ansi2knr, U may be empty or an underscore; expand it
22752 U=`sed -n 's/^U = //p' < "$mf"`
22753 # Find all dependency output files, they are included files with
22754 # $(DEPDIR) in their names. We invoke sed twice because it is the
22755 # simplest approach to changing $(DEPDIR) to its actual value in the
22756 # expansion.
22757 for file in `sed -n "
22758 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22759 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22760 # Make sure the directory exists.
22761 test -f "$dirpart/$file" && continue
22762 fdir=`(dirname "$file") 2>/dev/null ||
22763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22764 X"$file" : 'X\(//\)[^/]' \| \
22765 X"$file" : 'X\(//\)$' \| \
22766 X"$file" : 'X\(/\)' \| \
22767 . : '\(.\)' 2>/dev/null ||
22768 echo X"$file" |
22769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22771 /^X\(\/\/\)$/{ s//\1/; q; }
22772 /^X\(\/\).*/{ s//\1/; q; }
22773 s/.*/./; q'`
22774 { if $as_mkdir_p; then
22775 mkdir -p $dirpart/$fdir
22776 else
22777 as_dir=$dirpart/$fdir
22778 as_dirs=
22779 while test ! -d "$as_dir"; do
22780 as_dirs="$as_dir $as_dirs"
22781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783 X"$as_dir" : 'X\(//\)[^/]' \| \
22784 X"$as_dir" : 'X\(//\)$' \| \
22785 X"$as_dir" : 'X\(/\)' \| \
22786 . : '\(.\)' 2>/dev/null ||
22787 echo X"$as_dir" |
22788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22790 /^X\(\/\/\)$/{ s//\1/; q; }
22791 /^X\(\/\).*/{ s//\1/; q; }
22792 s/.*/./; q'`
22793 done
22794 test ! -n "$as_dirs" || mkdir $as_dirs
22795 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22796 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22797 { (exit 1); exit 1; }; }; }
22798
22799 # echo "creating $dirpart/$file"
22800 echo '# dummy' > "$dirpart/$file"
22801 done
22802 done
22803 ;;
22804 esac
22805 done
22806 _ACEOF
22807
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22809
22810 { (exit 0); exit 0; }
22811 _ACEOF
22812 chmod +x $CONFIG_STATUS
22813 ac_clean_files=$ac_clean_files_save
22814
22815
22816 # configure is writing to config.log, and then calls config.status.
22817 # config.status does its own redirection, appending to config.log.
22818 # Unfortunately, on DOS this fails, as config.log is still kept open
22819 # by configure, so config.status won't be able to write to it; its
22820 # output is simply discarded. So we exec the FD to /dev/null,
22821 # effectively closing config.log, so it can be properly (re)opened and
22822 # appended to by config.status. When coming back to configure, we
22823 # need to make the FD available again.
22824 if test "$no_create" != yes; then
22825 ac_cs_success=:
22826 ac_config_status_args=
22827 test "$silent" = yes &&
22828 ac_config_status_args="$ac_config_status_args --quiet"
22829 exec 5>/dev/null
22830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22831 exec 5>>config.log
22832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22833 # would make configure fail if this is the last instruction.
22834 $ac_cs_success || { (exit 1); exit 1; }
22835 fi
22836
22837
22838 if test x"$coin_vpath_link_files" = x; then : ; else
22839 lnkcmd="$coin_link_input_cmd"
22840 if test "$lnkcmd" = cp; then
22841 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
22842 echo "$as_me: Copying data files for VPATH configuration" >&6;}
22843 else
22844 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
22845 echo "$as_me: Creating VPATH links for data files" >&6;}
22846 fi
22847 for file in $coin_vpath_link_files; do
22848 dir=`(dirname "./$file") 2>/dev/null ||
22849 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22850 X"./$file" : 'X\(//\)[^/]' \| \
22851 X"./$file" : 'X\(//\)$' \| \
22852 X"./$file" : 'X\(/\)' \| \
22853 . : '\(.\)' 2>/dev/null ||
22854 echo X"./$file" |
22855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22857 /^X\(\/\/\)$/{ s//\1/; q; }
22858 /^X\(\/\).*/{ s//\1/; q; }
22859 s/.*/./; q'`
22860 if test -d $dir; then : ; else
22861 { if $as_mkdir_p; then
22862 mkdir -p $dir
22863 else
22864 as_dir=$dir
22865 as_dirs=
22866 while test ! -d "$as_dir"; do
22867 as_dirs="$as_dir $as_dirs"
22868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22870 X"$as_dir" : 'X\(//\)[^/]' \| \
22871 X"$as_dir" : 'X\(//\)$' \| \
22872 X"$as_dir" : 'X\(/\)' \| \
22873 . : '\(.\)' 2>/dev/null ||
22874 echo X"$as_dir" |
22875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22877 /^X\(\/\/\)$/{ s//\1/; q; }
22878 /^X\(\/\).*/{ s//\1/; q; }
22879 s/.*/./; q'`
22880 done
22881 test ! -n "$as_dirs" || mkdir $as_dirs
22882 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
22883 echo "$as_me: error: cannot create directory $dir" >&2;}
22884 { (exit 1); exit 1; }; }; }
22885
22886 fi
22887 rm -f $file
22888 $lnkcmd $abs_source_dir/$file $file
22889 done
22890 fi
22891
22892 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
22893 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
22894 if test x$coin_projectdir = xyes; then
22895 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
22896 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
22897 else
22898 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
22899 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
22900 fi
22901 else
22902 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
22903 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
22904 fi
22905
22906