Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac 0.9.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for SYMPHONY 5.7.2.
5 #
6 # Report bugs to <https://github.com/coin-or/SYMPHONY/issues/new>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 #
13 # /*===========================================================================*/
14 # /* */
15 # /* This file is part of the SYMPHONY MILP Solver Framework. */
16 # /* */
17 # /* SYMPHONY was jointly developed by Ted Ralphs ([email protected]) and */
18 # /* Laci Ladanyi ([email protected]). */
19 # /* */
20 # /* (c) Copyright 2000-2023 Ted Ralphs. All Rights Reserved. */
21 # /* */
22 # /* This software is licensed under the Common Public License. Please see */
23 # /* accompanying file for terms. */
24 # /* */
25 # /*===========================================================================*/
26 #
27 ## --------------------- ##
28 ## M4sh Initialization. ##
29 ## --------------------- ##
30
31 # Be Bourne compatible
32 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 emulate sh
34 NULLCMD=:
35 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36 # is contrary to our usage. Disable this feature.
37 alias -g '${1+"$@"}'='"$@"'
38 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39 set -o posix
40 fi
41 DUALCASE=1; export DUALCASE # for MKS sh
42
43 # Support unset when possible.
44 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45 as_unset=unset
46 else
47 as_unset=false
48 fi
49
50
51 # Work around bugs in pre-3.0 UWIN ksh.
52 $as_unset ENV MAIL MAILPATH
53 PS1='$ '
54 PS2='> '
55 PS4='+ '
56
57 # NLS nuisances.
58 for as_var in \
59 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
60 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
61 LC_TELEPHONE LC_TIME
62 do
63 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
64 eval $as_var=C; export $as_var
65 else
66 $as_unset $as_var
67 fi
68 done
69
70 # Required to use basename.
71 if expr a : '\(a\)' >/dev/null 2>&1; then
72 as_expr=expr
73 else
74 as_expr=false
75 fi
76
77 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
78 as_basename=basename
79 else
80 as_basename=false
81 fi
82
83
84 # Name of the executable.
85 as_me=`$as_basename "$0" ||
86 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
87 X"$0" : 'X\(//\)$' \| \
88 X"$0" : 'X\(/\)$' \| \
89 . : '\(.\)' 2>/dev/null ||
90 echo X/"$0" |
91 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
92 /^X\/\(\/\/\)$/{ s//\1/; q; }
93 /^X\/\(\/\).*/{ s//\1/; q; }
94 s/.*/./; q'`
95
96
97 # PATH needs CR, and LINENO needs CR and PATH.
98 # Avoid depending upon Character Ranges.
99 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
102 as_cr_digits='0123456789'
103 as_cr_alnum=$as_cr_Letters$as_cr_digits
104
105 # The user is always right.
106 if test "${PATH_SEPARATOR+set}" != set; then
107 echo "#! /bin/sh" >conf$$.sh
108 echo "exit 0" >>conf$$.sh
109 chmod +x conf$$.sh
110 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
111 PATH_SEPARATOR=';'
112 else
113 PATH_SEPARATOR=:
114 fi
115 rm -f conf$$.sh
116 fi
117
118
119 as_lineno_1=$LINENO
120 as_lineno_2=$LINENO
121 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
122 test "x$as_lineno_1" != "x$as_lineno_2" &&
123 test "x$as_lineno_3" = "x$as_lineno_2" || {
124 # Find who we are. Look in the path if we contain no path at all
125 # relative or not.
126 case $0 in
127 *[\\/]* ) as_myself=$0 ;;
128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in $PATH
130 do
131 IFS=$as_save_IFS
132 test -z "$as_dir" && as_dir=.
133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
134 done
135
136 ;;
137 esac
138 # We did not find ourselves, most probably we were run as `sh COMMAND'
139 # in which case we are not to be found in the path.
140 if test "x$as_myself" = x; then
141 as_myself=$0
142 fi
143 if test ! -f "$as_myself"; then
144 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
145 { (exit 1); exit 1; }; }
146 fi
147 case $CONFIG_SHELL in
148 '')
149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
150 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
151 do
152 IFS=$as_save_IFS
153 test -z "$as_dir" && as_dir=.
154 for as_base in sh bash ksh sh5; do
155 case $as_dir in
156 /*)
157 if ("$as_dir/$as_base" -c '
158 as_lineno_1=$LINENO
159 as_lineno_2=$LINENO
160 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
161 test "x$as_lineno_1" != "x$as_lineno_2" &&
162 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
163 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
164 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
165 CONFIG_SHELL=$as_dir/$as_base
166 export CONFIG_SHELL
167 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
168 fi;;
169 esac
170 done
171 done
172 ;;
173 esac
174
175 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
176 # uniformly replaced by the line number. The first 'sed' inserts a
177 # line-number line before each line; the second 'sed' does the real
178 # work. The second script uses 'N' to pair each line-number line
179 # with the numbered line, and appends trailing '-' during
180 # substitution so that $LINENO is not a special case at line end.
181 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
182 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
183 sed '=' <$as_myself |
184 sed '
185 N
186 s,$,-,
187 : loop
188 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
189 t loop
190 s,-$,,
191 s,^['$as_cr_digits']*\n,,
192 ' >$as_me.lineno &&
193 chmod +x $as_me.lineno ||
194 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
195 { (exit 1); exit 1; }; }
196
197 # Don't try to exec as it changes $[0], causing all sort of problems
198 # (the dirname of $[0] is not the place where we might find the
199 # original and so on. Autoconf is especially sensible to this).
200 . ./$as_me.lineno
201 # Exit status is that of the last command.
202 exit
203 }
204
205
206 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
207 *c*,-n*) ECHO_N= ECHO_C='
208 ' ECHO_T=' ' ;;
209 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
210 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
211 esac
212
213 if expr a : '\(a\)' >/dev/null 2>&1; then
214 as_expr=expr
215 else
216 as_expr=false
217 fi
218
219 rm -f conf$$ conf$$.exe conf$$.file
220 echo >conf$$.file
221 if ln -s conf$$.file conf$$ 2>/dev/null; then
222 # We could just check for DJGPP; but this test a) works b) is more generic
223 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
224 if test -f conf$$.exe; then
225 # Don't use ln at all; we don't have any links
226 as_ln_s='cp -p'
227 else
228 as_ln_s='ln -s'
229 fi
230 elif ln conf$$.file conf$$ 2>/dev/null; then
231 as_ln_s=ln
232 else
233 as_ln_s='cp -p'
234 fi
235 rm -f conf$$ conf$$.exe conf$$.file
236
237 if mkdir -p . 2>/dev/null; then
238 as_mkdir_p=:
239 else
240 test -d ./-p && rmdir ./-p
241 as_mkdir_p=false
242 fi
243
244 as_executable_p="test -f"
245
246 # Sed expression to map a string onto a valid CPP name.
247 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
248
249 # Sed expression to map a string onto a valid variable name.
250 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
251
252
253 # IFS
254 # We need space, tab and new line, in precisely that order.
255 as_nl='
256 '
257 IFS=" $as_nl"
258
259 # CDPATH.
260 $as_unset CDPATH
261
262
263
264 # Check that we are running under the correct shell.
265 SHELL=${CONFIG_SHELL-/bin/sh}
266
267 case X$ECHO in
268 X*--fallback-echo)
269 # Remove one level of quotation (which was required for Make).
270 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
271 ;;
272 esac
273
274 echo=${ECHO-echo}
275 if test "X$1" = X--no-reexec; then
276 # Discard the --no-reexec flag, and continue.
277 shift
278 elif test "X$1" = X--fallback-echo; then
279 # Avoid inline document here, it may be left over
280 :
281 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
282 # Yippee, $echo works!
283 :
284 else
285 # Restart under the correct shell.
286 exec $SHELL "$0" --no-reexec ${1+"$@"}
287 fi
288
289 if test "X$1" = X--fallback-echo; then
290 # used as fallback echo
291 shift
292 cat <<EOF
293 $*
294 EOF
295 exit 0
296 fi
297
298 # The HP-UX ksh and POSIX shell print the target directory to stdout
299 # if CDPATH is set.
300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
301
302 if test -z "$ECHO"; then
303 if test "X${echo_test_string+set}" != Xset; then
304 # find a string as large as possible, as long as the shell can cope with it
305 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
306 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
307 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
308 echo_test_string=`eval $cmd` &&
309 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
310 then
311 break
312 fi
313 done
314 fi
315
316 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 :
320 else
321 # The Solaris, AIX, and Digital Unix default echo programs unquote
322 # backslashes. This makes it impossible to quote backslashes using
323 # echo "$something" | sed 's/\\/\\\\/g'
324 #
325 # So, first we look for a working echo in the user's PATH.
326
327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
328 for dir in $PATH /usr/ucb; do
329 IFS="$lt_save_ifs"
330 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
331 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 echo="$dir/echo"
335 break
336 fi
337 done
338 IFS="$lt_save_ifs"
339
340 if test "X$echo" = Xecho; then
341 # We didn't find a better echo, so look for alternatives.
342 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
345 # This shell has a builtin print -r that does the trick.
346 echo='print -r'
347 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
348 test "X$CONFIG_SHELL" != X/bin/ksh; then
349 # If we have ksh, try running configure again with it.
350 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
351 export ORIGINAL_CONFIG_SHELL
352 CONFIG_SHELL=/bin/ksh
353 export CONFIG_SHELL
354 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
355 else
356 # Try using printf.
357 echo='printf %s\n'
358 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
359 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 # Cool, printf works
362 :
363 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
368 export CONFIG_SHELL
369 SHELL="$CONFIG_SHELL"
370 export SHELL
371 echo="$CONFIG_SHELL $0 --fallback-echo"
372 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
373 test "X$echo_testing_string" = 'X\t' &&
374 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
375 test "X$echo_testing_string" = "X$echo_test_string"; then
376 echo="$CONFIG_SHELL $0 --fallback-echo"
377 else
378 # maybe with a smaller string...
379 prev=:
380
381 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
382 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
383 then
384 break
385 fi
386 prev="$cmd"
387 done
388
389 if test "$prev" != 'sed 50q "$0"'; then
390 echo_test_string=`eval $prev`
391 export echo_test_string
392 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
393 else
394 # Oops. We lost completely, so just stick with echo.
395 echo=echo
396 fi
397 fi
398 fi
399 fi
400 fi
401 fi
402
403 # Copy echo and quote the copy suitably for passing to libtool from
404 # the Makefile, instead of quoting the original, which is used later.
405 ECHO=$echo
406 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
407 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
408 fi
409
410
411
412
413 tagnames=${tagnames+${tagnames},}CXX
414
415 tagnames=${tagnames+${tagnames},}F77
416
417 # Name of the host.
418 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
419 # so uname gets run too.
420 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
421
422 exec 6>&1
423
424 #
425 # Initializations.
426 #
427 ac_default_prefix=/usr/local
428 ac_config_libobj_dir=.
429 cross_compiling=no
430 subdirs=
431 MFLAGS=
432 MAKEFLAGS=
433 SHELL=${CONFIG_SHELL-/bin/sh}
434
435 # Maximum number of lines to put in a shell here document.
436 # This variable seems obsolete. It should probably be removed, and
437 # only ac_max_sed_lines should be used.
438 : ${ac_max_here_lines=38}
439
440 # Identity of this package.
441 PACKAGE_NAME='SYMPHONY'
442 PACKAGE_TARNAME='symphony'
443 PACKAGE_VERSION='5.7.2'
444 PACKAGE_STRING='SYMPHONY 5.7.2'
445 PACKAGE_BUGREPORT='https://github.com/coin-or/SYMPHONY/issues/new'
446
447 ac_unique_file="configure.ac"
448 ac_default_prefix=`pwd`
449 # Factoring default headers for most tests.
450 ac_includes_default="\
451 #include <stdio.h>
452 #if HAVE_SYS_TYPES_H
453 # include <sys/types.h>
454 #endif
455 #if HAVE_SYS_STAT_H
456 # include <sys/stat.h>
457 #endif
458 #if STDC_HEADERS
459 # include <stdlib.h>
460 # include <stddef.h>
461 #else
462 # if HAVE_STDLIB_H
463 # include <stdlib.h>
464 # endif
465 #endif
466 #if HAVE_STRING_H
467 # if !STDC_HEADERS && HAVE_MEMORY_H
468 # include <memory.h>
469 # endif
470 # include <string.h>
471 #endif
472 #if HAVE_STRINGS_H
473 # include <strings.h>
474 #endif
475 #if HAVE_INTTYPES_H
476 # include <inttypes.h>
477 #else
478 # if HAVE_STDINT_H
479 # include <stdint.h>
480 # endif
481 #endif
482 #if HAVE_UNISTD_H
483 # include <unistd.h>
484 #endif"
485
486 ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
487 ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
488 ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
489 ac_subdirs_all="$ac_subdirs_all Data/Sample"
490 ac_subdirs_all="$ac_subdirs_all Data/miblib3"
491 ac_subdirs_all="$ac_subdirs_all CoinUtils"
492 ac_subdirs_all="$ac_subdirs_all Osi"
493 ac_subdirs_all="$ac_subdirs_all Clp"
494 ac_subdirs_all="$ac_subdirs_all Cgl"
495 ac_subdirs_all="$ac_subdirs_all DyLP"
496 ac_subdirs_all="$ac_subdirs_all Vol"
497 ac_subdirs_all="$ac_subdirs_all SYMPHONY"
498 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE COIN_SKIP_PROJECTS subdirs ADD_CLP_TRUE ADD_CLP_FALSE ADD_GLPK_TRUE ADD_GLPK_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
499 ac_subst_files=''
500
501 # Initialize some variables set by options.
502 ac_init_help=
503 ac_init_version=false
504 # The variables have the same names as the options, with
505 # dashes changed to underlines.
506 cache_file=/dev/null
507 exec_prefix=NONE
508 no_create=
509 no_recursion=
510 prefix=NONE
511 program_prefix=NONE
512 program_suffix=NONE
513 program_transform_name=s,x,x,
514 silent=
515 site=
516 srcdir=
517 verbose=
518 x_includes=NONE
519 x_libraries=NONE
520
521 # Installation directory options.
522 # These are left unexpanded so users can "make install exec_prefix=/foo"
523 # and all the variables that are supposed to be based on exec_prefix
524 # by default will actually change.
525 # Use braces instead of parens because sh, perl, etc. also accept them.
526 bindir='${exec_prefix}/bin'
527 sbindir='${exec_prefix}/sbin'
528 libexecdir='${exec_prefix}/libexec'
529 datadir='${prefix}/share'
530 sysconfdir='${prefix}/etc'
531 sharedstatedir='${prefix}/com'
532 localstatedir='${prefix}/var'
533 libdir='${exec_prefix}/lib'
534 includedir='${prefix}/include'
535 oldincludedir='/usr/include'
536 infodir='${prefix}/info'
537 mandir='${prefix}/man'
538
539 ac_prev=
540 for ac_option
541 do
542 # If the previous option needs an argument, assign it.
543 if test -n "$ac_prev"; then
544 eval "$ac_prev=\$ac_option"
545 ac_prev=
546 continue
547 fi
548
549 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
550
551 # Accept the important Cygnus configure options, so we can diagnose typos.
552
553 case $ac_option in
554
555 -bindir | --bindir | --bindi | --bind | --bin | --bi)
556 ac_prev=bindir ;;
557 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
558 bindir=$ac_optarg ;;
559
560 -build | --build | --buil | --bui | --bu)
561 ac_prev=build_alias ;;
562 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
563 build_alias=$ac_optarg ;;
564
565 -cache-file | --cache-file | --cache-fil | --cache-fi \
566 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
567 ac_prev=cache_file ;;
568 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
569 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
570 cache_file=$ac_optarg ;;
571
572 --config-cache | -C)
573 cache_file=config.cache ;;
574
575 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
576 ac_prev=datadir ;;
577 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
578 | --da=*)
579 datadir=$ac_optarg ;;
580
581 -disable-* | --disable-*)
582 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
583 # Reject names that are not valid shell variable names.
584 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
585 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
586 { (exit 1); exit 1; }; }
587 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
588 eval "enable_$ac_feature=no" ;;
589
590 -enable-* | --enable-*)
591 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
595 { (exit 1); exit 1; }; }
596 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "enable_$ac_feature='$ac_optarg'" ;;
602
603 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
604 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
605 | --exec | --exe | --ex)
606 ac_prev=exec_prefix ;;
607 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
608 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
609 | --exec=* | --exe=* | --ex=*)
610 exec_prefix=$ac_optarg ;;
611
612 -gas | --gas | --ga | --g)
613 # Obsolete; use --with-gas.
614 with_gas=yes ;;
615
616 -help | --help | --hel | --he | -h)
617 ac_init_help=long ;;
618 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
619 ac_init_help=recursive ;;
620 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
621 ac_init_help=short ;;
622
623 -host | --host | --hos | --ho)
624 ac_prev=host_alias ;;
625 -host=* | --host=* | --hos=* | --ho=*)
626 host_alias=$ac_optarg ;;
627
628 -includedir | --includedir | --includedi | --included | --include \
629 | --includ | --inclu | --incl | --inc)
630 ac_prev=includedir ;;
631 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632 | --includ=* | --inclu=* | --incl=* | --inc=*)
633 includedir=$ac_optarg ;;
634
635 -infodir | --infodir | --infodi | --infod | --info | --inf)
636 ac_prev=infodir ;;
637 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
638 infodir=$ac_optarg ;;
639
640 -libdir | --libdir | --libdi | --libd)
641 ac_prev=libdir ;;
642 -libdir=* | --libdir=* | --libdi=* | --libd=*)
643 libdir=$ac_optarg ;;
644
645 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646 | --libexe | --libex | --libe)
647 ac_prev=libexecdir ;;
648 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649 | --libexe=* | --libex=* | --libe=*)
650 libexecdir=$ac_optarg ;;
651
652 -localstatedir | --localstatedir | --localstatedi | --localstated \
653 | --localstate | --localstat | --localsta | --localst \
654 | --locals | --local | --loca | --loc | --lo)
655 ac_prev=localstatedir ;;
656 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
659 localstatedir=$ac_optarg ;;
660
661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662 ac_prev=mandir ;;
663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
664 mandir=$ac_optarg ;;
665
666 -nfp | --nfp | --nf)
667 # Obsolete; use --without-fp.
668 with_fp=no ;;
669
670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671 | --no-cr | --no-c | -n)
672 no_create=yes ;;
673
674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676 no_recursion=yes ;;
677
678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680 | --oldin | --oldi | --old | --ol | --o)
681 ac_prev=oldincludedir ;;
682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
685 oldincludedir=$ac_optarg ;;
686
687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688 ac_prev=prefix ;;
689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
690 prefix=$ac_optarg ;;
691
692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
693 | --program-pre | --program-pr | --program-p)
694 ac_prev=program_prefix ;;
695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
697 program_prefix=$ac_optarg ;;
698
699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
700 | --program-suf | --program-su | --program-s)
701 ac_prev=program_suffix ;;
702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
704 program_suffix=$ac_optarg ;;
705
706 -program-transform-name | --program-transform-name \
707 | --program-transform-nam | --program-transform-na \
708 | --program-transform-n | --program-transform- \
709 | --program-transform | --program-transfor \
710 | --program-transfo | --program-transf \
711 | --program-trans | --program-tran \
712 | --progr-tra | --program-tr | --program-t)
713 ac_prev=program_transform_name ;;
714 -program-transform-name=* | --program-transform-name=* \
715 | --program-transform-nam=* | --program-transform-na=* \
716 | --program-transform-n=* | --program-transform-=* \
717 | --program-transform=* | --program-transfor=* \
718 | --program-transfo=* | --program-transf=* \
719 | --program-trans=* | --program-tran=* \
720 | --progr-tra=* | --program-tr=* | --program-t=*)
721 program_transform_name=$ac_optarg ;;
722
723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724 | -silent | --silent | --silen | --sile | --sil)
725 silent=yes ;;
726
727 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728 ac_prev=sbindir ;;
729 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730 | --sbi=* | --sb=*)
731 sbindir=$ac_optarg ;;
732
733 -sharedstatedir | --sharedstatedir | --sharedstatedi \
734 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735 | --sharedst | --shareds | --shared | --share | --shar \
736 | --sha | --sh)
737 ac_prev=sharedstatedir ;;
738 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741 | --sha=* | --sh=*)
742 sharedstatedir=$ac_optarg ;;
743
744 -site | --site | --sit)
745 ac_prev=site ;;
746 -site=* | --site=* | --sit=*)
747 site=$ac_optarg ;;
748
749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750 ac_prev=srcdir ;;
751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
752 srcdir=$ac_optarg ;;
753
754 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755 | --syscon | --sysco | --sysc | --sys | --sy)
756 ac_prev=sysconfdir ;;
757 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
759 sysconfdir=$ac_optarg ;;
760
761 -target | --target | --targe | --targ | --tar | --ta | --t)
762 ac_prev=target_alias ;;
763 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
764 target_alias=$ac_optarg ;;
765
766 -v | -verbose | --verbose | --verbos | --verbo | --verb)
767 verbose=yes ;;
768
769 -version | --version | --versio | --versi | --vers | -V)
770 ac_init_version=: ;;
771
772 -with-* | --with-*)
773 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
774 # Reject names that are not valid shell variable names.
775 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
776 { echo "$as_me: error: invalid package name: $ac_package" >&2
777 { (exit 1); exit 1; }; }
778 ac_package=`echo $ac_package| sed 's/-/_/g'`
779 case $ac_option in
780 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
781 *) ac_optarg=yes ;;
782 esac
783 eval "with_$ac_package='$ac_optarg'" ;;
784
785 -without-* | --without-*)
786 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid package name: $ac_package" >&2
790 { (exit 1); exit 1; }; }
791 ac_package=`echo $ac_package | sed 's/-/_/g'`
792 eval "with_$ac_package=no" ;;
793
794 --x)
795 # Obsolete; use --with-x.
796 with_x=yes ;;
797
798 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
799 | --x-incl | --x-inc | --x-in | --x-i)
800 ac_prev=x_includes ;;
801 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
802 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
803 x_includes=$ac_optarg ;;
804
805 -x-libraries | --x-libraries | --x-librarie | --x-librari \
806 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
807 ac_prev=x_libraries ;;
808 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
809 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
810 x_libraries=$ac_optarg ;;
811
812 -*) { echo "$as_me: error: unrecognized option: $ac_option
813 Try \`$0 --help' for more information." >&2
814 { (exit 1); exit 1; }; }
815 ;;
816
817 *=*)
818 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
821 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
822 { (exit 1); exit 1; }; }
823 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
824 eval "$ac_envvar='$ac_optarg'"
825 export $ac_envvar ;;
826
827 *)
828 # FIXME: should be removed in autoconf 3.0.
829 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
830 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
832 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
833 ;;
834
835 esac
836 done
837
838 if test -n "$ac_prev"; then
839 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
840 { echo "$as_me: error: missing argument to $ac_option" >&2
841 { (exit 1); exit 1; }; }
842 fi
843
844 # Be sure to have absolute paths.
845 for ac_var in exec_prefix prefix
846 do
847 eval ac_val=$`echo $ac_var`
848 case $ac_val in
849 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
850 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851 { (exit 1); exit 1; }; };;
852 esac
853 done
854
855 # Be sure to have absolute paths.
856 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
857 localstatedir libdir includedir oldincludedir infodir mandir
858 do
859 eval ac_val=$`echo $ac_var`
860 case $ac_val in
861 [\\/$]* | ?:[\\/]* ) ;;
862 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
863 { (exit 1); exit 1; }; };;
864 esac
865 done
866
867 # There might be people who depend on the old broken behavior: `$host'
868 # used to hold the argument of --host etc.
869 # FIXME: To remove some day.
870 build=$build_alias
871 host=$host_alias
872 target=$target_alias
873
874 # FIXME: To remove some day.
875 if test "x$host_alias" != x; then
876 if test "x$build_alias" = x; then
877 cross_compiling=maybe
878 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
879 If a cross compiler is detected then cross compile mode will be used." >&2
880 elif test "x$build_alias" != "x$host_alias"; then
881 cross_compiling=yes
882 fi
883 fi
884
885 ac_tool_prefix=
886 test -n "$host_alias" && ac_tool_prefix=$host_alias-
887
888 test "$silent" = yes && exec 6>/dev/null
889
890
891 # Find the source files, if location was not specified.
892 if test -z "$srcdir"; then
893 ac_srcdir_defaulted=yes
894 # Try the directory containing this script, then its parent.
895 ac_confdir=`(dirname "$0") 2>/dev/null ||
896 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
897 X"$0" : 'X\(//\)[^/]' \| \
898 X"$0" : 'X\(//\)$' \| \
899 X"$0" : 'X\(/\)' \| \
900 . : '\(.\)' 2>/dev/null ||
901 echo X"$0" |
902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
904 /^X\(\/\/\)$/{ s//\1/; q; }
905 /^X\(\/\).*/{ s//\1/; q; }
906 s/.*/./; q'`
907 srcdir=$ac_confdir
908 if test ! -r $srcdir/$ac_unique_file; then
909 srcdir=..
910 fi
911 else
912 ac_srcdir_defaulted=no
913 fi
914 if test ! -r $srcdir/$ac_unique_file; then
915 if test "$ac_srcdir_defaulted" = yes; then
916 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
917 { (exit 1); exit 1; }; }
918 else
919 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
920 { (exit 1); exit 1; }; }
921 fi
922 fi
923 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
924 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
925 { (exit 1); exit 1; }; }
926 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
927 ac_env_build_alias_set=${build_alias+set}
928 ac_env_build_alias_value=$build_alias
929 ac_cv_env_build_alias_set=${build_alias+set}
930 ac_cv_env_build_alias_value=$build_alias
931 ac_env_host_alias_set=${host_alias+set}
932 ac_env_host_alias_value=$host_alias
933 ac_cv_env_host_alias_set=${host_alias+set}
934 ac_cv_env_host_alias_value=$host_alias
935 ac_env_target_alias_set=${target_alias+set}
936 ac_env_target_alias_value=$target_alias
937 ac_cv_env_target_alias_set=${target_alias+set}
938 ac_cv_env_target_alias_value=$target_alias
939 ac_env_CDEFS_set=${CDEFS+set}
940 ac_env_CDEFS_value=$CDEFS
941 ac_cv_env_CDEFS_set=${CDEFS+set}
942 ac_cv_env_CDEFS_value=$CDEFS
943 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
944 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
945 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
946 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
947 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
948 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
949 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
950 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
951 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
952 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
953 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
954 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
955 ac_env_CC_set=${CC+set}
956 ac_env_CC_value=$CC
957 ac_cv_env_CC_set=${CC+set}
958 ac_cv_env_CC_value=$CC
959 ac_env_CFLAGS_set=${CFLAGS+set}
960 ac_env_CFLAGS_value=$CFLAGS
961 ac_cv_env_CFLAGS_set=${CFLAGS+set}
962 ac_cv_env_CFLAGS_value=$CFLAGS
963 ac_env_LDFLAGS_set=${LDFLAGS+set}
964 ac_env_LDFLAGS_value=$LDFLAGS
965 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
966 ac_cv_env_LDFLAGS_value=$LDFLAGS
967 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
968 ac_env_CPPFLAGS_value=$CPPFLAGS
969 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
970 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
971 ac_env_MPICC_set=${MPICC+set}
972 ac_env_MPICC_value=$MPICC
973 ac_cv_env_MPICC_set=${MPICC+set}
974 ac_cv_env_MPICC_value=$MPICC
975 ac_env_CXXDEFS_set=${CXXDEFS+set}
976 ac_env_CXXDEFS_value=$CXXDEFS
977 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
978 ac_cv_env_CXXDEFS_value=$CXXDEFS
979 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
980 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
981 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
982 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
983 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
984 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
985 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
986 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
987 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
988 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
989 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
990 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
991 ac_env_CXX_set=${CXX+set}
992 ac_env_CXX_value=$CXX
993 ac_cv_env_CXX_set=${CXX+set}
994 ac_cv_env_CXX_value=$CXX
995 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
996 ac_env_CXXFLAGS_value=$CXXFLAGS
997 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
998 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
999 ac_env_MPICXX_set=${MPICXX+set}
1000 ac_env_MPICXX_value=$MPICXX
1001 ac_cv_env_MPICXX_set=${MPICXX+set}
1002 ac_cv_env_MPICXX_value=$MPICXX
1003 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1004 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1005 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1006 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1007 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1008 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1009 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1010 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1011 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1012 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1013 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1014 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1015 ac_env_F77_set=${F77+set}
1016 ac_env_F77_value=$F77
1017 ac_cv_env_F77_set=${F77+set}
1018 ac_cv_env_F77_value=$F77
1019 ac_env_FFLAGS_set=${FFLAGS+set}
1020 ac_env_FFLAGS_value=$FFLAGS
1021 ac_cv_env_FFLAGS_set=${FFLAGS+set}
1022 ac_cv_env_FFLAGS_value=$FFLAGS
1023 ac_env_MPIF77_set=${MPIF77+set}
1024 ac_env_MPIF77_value=$MPIF77
1025 ac_cv_env_MPIF77_set=${MPIF77+set}
1026 ac_cv_env_MPIF77_value=$MPIF77
1027 ac_env_CPP_set=${CPP+set}
1028 ac_env_CPP_value=$CPP
1029 ac_cv_env_CPP_set=${CPP+set}
1030 ac_cv_env_CPP_value=$CPP
1031 ac_env_CXXCPP_set=${CXXCPP+set}
1032 ac_env_CXXCPP_value=$CXXCPP
1033 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1034 ac_cv_env_CXXCPP_value=$CXXCPP
1035 ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1036 ac_env_LT_LDFLAGS_value=$LT_LDFLAGS
1037 ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set}
1038 ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS
1039 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1040 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1041 ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1042 ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1043
1044 #
1045 # Report the --help message.
1046 #
1047 if test "$ac_init_help" = "long"; then
1048 # Omit some internal or obsolete options to make the list less imposing.
1049 # This message is too long to be a string in the A/UX 3.1 sh.
1050 cat <<_ACEOF
1051 \`configure' configures SYMPHONY 5.7.2 to adapt to many kinds of systems.
1052
1053 Usage: $0 [OPTION]... [VAR=VALUE]...
1054
1055 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1056 VAR=VALUE. See below for descriptions of some of the useful variables.
1057
1058 Defaults for the options are specified in brackets.
1059
1060 Configuration:
1061 -h, --help display this help and exit
1062 --help=short display options specific to this package
1063 --help=recursive display the short help of all the included packages
1064 -V, --version display version information and exit
1065 -q, --quiet, --silent do not print \`checking...' messages
1066 --cache-file=FILE cache test results in FILE [disabled]
1067 -C, --config-cache alias for \`--cache-file=config.cache'
1068 -n, --no-create do not create output files
1069 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1070
1071 _ACEOF
1072
1073 cat <<_ACEOF
1074 Installation directories:
1075 --prefix=PREFIX install architecture-independent files in PREFIX
1076 [$ac_default_prefix]
1077 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1078 [PREFIX]
1079
1080 By default, \`make install' will install all the files in
1081 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1082 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1083 for instance \`--prefix=\$HOME'.
1084
1085 For better control, use the options below.
1086
1087 Fine tuning of the installation directories:
1088 --bindir=DIR user executables [EPREFIX/bin]
1089 --sbindir=DIR system admin executables [EPREFIX/sbin]
1090 --libexecdir=DIR program executables [EPREFIX/libexec]
1091 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1092 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1093 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1094 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1095 --libdir=DIR object code libraries [EPREFIX/lib]
1096 --includedir=DIR C header files [PREFIX/include]
1097 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1098 --infodir=DIR info documentation [PREFIX/info]
1099 --mandir=DIR man documentation [PREFIX/man]
1100 _ACEOF
1101
1102 cat <<\_ACEOF
1103
1104 Program names:
1105 --program-prefix=PREFIX prepend PREFIX to installed program names
1106 --program-suffix=SUFFIX append SUFFIX to installed program names
1107 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1108
1109 System types:
1110 --build=BUILD configure for building on BUILD [guessed]
1111 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1112 _ACEOF
1113 fi
1114
1115 if test -n "$ac_init_help"; then
1116 case $ac_init_help in
1117 short | recursive ) echo "Configuration of SYMPHONY 5.7.2:";;
1118 esac
1119 cat <<\_ACEOF
1120
1121 Optional Features:
1122 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1123 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1124 --enable-debug compile all projects with debug options tests
1125 (implies --disable-shared)
1126
1127 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1128 --enable-static[=PKGS]
1129 build static libraries [default=no]
1130 --disable-dependency-tracking speeds up one-time build
1131 --enable-dependency-tracking do not reject slow dependency extractors
1132 --enable-maintainer-mode enable make rules and dependencies not useful
1133 (and sometimes confusing) to the casual installer
1134 --enable-shared[=PKGS]
1135 build shared libraries [default=yes]
1136 --enable-fast-install[=PKGS]
1137 optimize for fast installation [default=yes]
1138 --disable-libtool-lock avoid locking (might break parallel builds)
1139 --disable-dependency-linking
1140 disable linking library dependencies into shared
1141 libraries
1142
1143 Optional Packages:
1144 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1145 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1146 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1147 --with-pic try to use only PIC/non-PIC objects [default=use
1148 both]
1149 --with-tags[=TAGS]
1150 include additional configurations [automatic]
1151
1152 --with-blas-lib linker flags for using project Blas
1153 --with-blas-incdir directory with header files for using project Blas
1154 --with-blas-datadir directory with data files for using project Blas
1155 --with-blas specify BLAS library (or BUILD to enforce use of
1156 ThirdParty/Blas)
1157 --with-lapack-lib linker flags for using project Lapack
1158 --with-lapack-incdir directory with header files for using project Lapack
1159 --with-lapack-datadir directory with data files for using project Lapack
1160 --with-lapack specify LAPACK library (or BUILD to enforce use of
1161 ThirdParty/Lapack)
1162 --with-glpk-lib linker flags for using project Glpk
1163 --with-glpk-incdir directory with header files for using project Glpk
1164 --with-glpk-datadir directory with data files for using project Glpk
1165 --with-sample-lib linker flags for using project Sample
1166 --with-sample-incdir directory with header files for using project Sample
1167 --with-sample-datadir directory with data files for using project Sample
1168 --with-miblib3-lib linker flags for using project miblib3
1169 --with-miblib3-incdir directory with header files for using project miblib3
1170 --with-miblib3-datadir directory with data files for using project miblib3
1171 --with-coinutils-lib linker flags for using project CoinUtils
1172 --with-coinutils-incdir directory with header files for using project
1173 CoinUtils
1174 --with-coinutils-datadir
1175 directory with data files for using project
1176 CoinUtils
1177 --with-osi-lib linker flags for using project Osi
1178 --with-osi-incdir directory with header files for using project Osi
1179 --with-osi-datadir directory with data files for using project Osi
1180 --with-clp-lib linker flags for using project Clp
1181 --with-clp-incdir directory with header files for using project Clp
1182 --with-clp-datadir directory with data files for using project Clp
1183 --with-cgl-lib linker flags for using project Cgl
1184 --with-cgl-incdir directory with header files for using project Cgl
1185 --with-cgl-datadir directory with data files for using project Cgl
1186 --with-dylp-lib linker flags for using project DyLP
1187 --with-dylp-incdir directory with header files for using project DyLP
1188 --with-dylp-datadir directory with data files for using project DyLP
1189 --with-vol-lib linker flags for using project Vol
1190 --with-vol-incdir directory with header files for using project Vol
1191 --with-vol-datadir directory with data files for using project Vol
1192 --with-symphony-lib linker flags for using project SYMPHONY
1193 --with-symphony-incdir directory with header files for using project
1194 SYMPHONY
1195 --with-symphony-datadir directory with data files for using project SYMPHONY
1196 --with-lp-solver specify the LP solver you want SYMPHONY to use in
1197 small letters(default=clp)
1198
1199 Some influential environment variables:
1200 CDEFS Additional -D flags to be used when compiling C code.
1201 ADD_CFLAGS Additional C compiler options
1202 DBG_CFLAGS Debug C compiler options
1203 OPT_CFLAGS Optimize C compiler options
1204 CC C compiler command
1205 CFLAGS C compiler flags
1206 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1207 nonstandard directory <lib dir>
1208 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1209 headers in a nonstandard directory <include dir>
1210 MPICC C MPI Compiler
1211 CXXDEFS Additional -D flags to be used when compiling C++ code.
1212 ADD_CXXFLAGS
1213 Additional C++ compiler options
1214 DBG_CXXFLAGS
1215 Debug C++ compiler options
1216 OPT_CXXFLAGS
1217 Optimize C++ compiler options
1218 CXX C++ compiler command
1219 CXXFLAGS C++ compiler flags
1220 MPICXX C++ MPI Compiler
1221 ADD_FFLAGS Additional Fortran compiler options
1222 DBG_FFLAGS Debug Fortran compiler options
1223 OPT_FFLAGS Optimize Fortran compiler options
1224 F77 Fortran 77 compiler command
1225 FFLAGS Fortran 77 compiler flags
1226 MPIF77 Fortran MPI Compiler
1227 CPP C preprocessor
1228 CXXCPP C++ preprocessor
1229 LT_LDFLAGS Flags passed to libtool when building libraries or executables
1230 that are installed
1231 COIN_SKIP_PROJECTS
1232 Set to the subdirectories of projects that should be skipped in
1233 the configuration
1234
1235 Use these variables to override the choices made by `configure' or to help
1236 it to find libraries and programs with nonstandard names/locations.
1237
1238 Report bugs to <https://github.com/coin-or/SYMPHONY/issues/new>.
1239 _ACEOF
1240 fi
1241
1242 if test "$ac_init_help" = "recursive"; then
1243 # If there are subdirs, report their specific --help.
1244 ac_popdir=`pwd`
1245 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1246 test -d $ac_dir || continue
1247 ac_builddir=.
1248
1249 if test "$ac_dir" != .; then
1250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1251 # A "../" for each directory in $ac_dir_suffix.
1252 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1253 else
1254 ac_dir_suffix= ac_top_builddir=
1255 fi
1256
1257 case $srcdir in
1258 .) # No --srcdir option. We are building in place.
1259 ac_srcdir=.
1260 if test -z "$ac_top_builddir"; then
1261 ac_top_srcdir=.
1262 else
1263 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1264 fi ;;
1265 [\\/]* | ?:[\\/]* ) # Absolute path.
1266 ac_srcdir=$srcdir$ac_dir_suffix;
1267 ac_top_srcdir=$srcdir ;;
1268 *) # Relative path.
1269 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1270 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1271 esac
1272
1273 # Do not use `cd foo && pwd` to compute absolute paths, because
1274 # the directories may not exist.
1275 case `pwd` in
1276 .) ac_abs_builddir="$ac_dir";;
1277 *)
1278 case "$ac_dir" in
1279 .) ac_abs_builddir=`pwd`;;
1280 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1281 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1282 esac;;
1283 esac
1284 case $ac_abs_builddir in
1285 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1286 *)
1287 case ${ac_top_builddir}. in
1288 .) ac_abs_top_builddir=$ac_abs_builddir;;
1289 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1290 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1291 esac;;
1292 esac
1293 case $ac_abs_builddir in
1294 .) ac_abs_srcdir=$ac_srcdir;;
1295 *)
1296 case $ac_srcdir in
1297 .) ac_abs_srcdir=$ac_abs_builddir;;
1298 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1299 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1300 esac;;
1301 esac
1302 case $ac_abs_builddir in
1303 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1304 *)
1305 case $ac_top_srcdir in
1306 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1307 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1308 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1309 esac;;
1310 esac
1311
1312 cd $ac_dir
1313 # Check for guested configure; otherwise get Cygnus style configure.
1314 if test -f $ac_srcdir/configure.gnu; then
1315 echo
1316 $SHELL $ac_srcdir/configure.gnu --help=recursive
1317 elif test -f $ac_srcdir/configure; then
1318 echo
1319 $SHELL $ac_srcdir/configure --help=recursive
1320 elif test -f $ac_srcdir/configure.ac ||
1321 test -f $ac_srcdir/configure.in; then
1322 echo
1323 $ac_configure --help
1324 else
1325 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1326 fi
1327 cd $ac_popdir
1328 done
1329 fi
1330
1331 test -n "$ac_init_help" && exit 0
1332 if $ac_init_version; then
1333 cat <<\_ACEOF
1334 SYMPHONY configure 5.7.2
1335 generated by GNU Autoconf 2.59
1336
1337 Copyright (C) 2003 Free Software Foundation, Inc.
1338 This configure script is free software; the Free Software Foundation
1339 gives unlimited permission to copy, distribute and modify it.
1340
1341
1342 /*===========================================================================*/
1343 /* */
1344 /* This file is part of the SYMPHONY MILP Solver Framework. */
1345 /* */
1346 /* SYMPHONY was jointly developed by Ted Ralphs ([email protected]) and */
1347 /* Laci Ladanyi ([email protected]). */
1348 /* */
1349 /* (c) Copyright 2000-2023 Ted Ralphs. All Rights Reserved. */
1350 /* */
1351 /* This software is licensed under the Common Public License. Please see */
1352 /* accompanying file for terms. */
1353 /* */
1354 /*===========================================================================*/
1355
1356 _ACEOF
1357 exit 0
1358 fi
1359 exec 5>config.log
1360 cat >&5 <<_ACEOF
1361 This file contains any messages produced by compilers while
1362 running configure, to aid debugging if configure makes a mistake.
1363
1364 It was created by SYMPHONY $as_me 5.7.2, which was
1365 generated by GNU Autoconf 2.59. Invocation command line was
1366
1367 $ $0 $@
1368
1369 _ACEOF
1370 {
1371 cat <<_ASUNAME
1372 ## --------- ##
1373 ## Platform. ##
1374 ## --------- ##
1375
1376 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1377 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1378 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1379 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1380 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1381
1382 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1383 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1384
1385 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1386 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1387 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1388 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1389 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1390 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1391 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1392
1393 _ASUNAME
1394
1395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396 for as_dir in $PATH
1397 do
1398 IFS=$as_save_IFS
1399 test -z "$as_dir" && as_dir=.
1400 echo "PATH: $as_dir"
1401 done
1402
1403 } >&5
1404
1405 cat >&5 <<_ACEOF
1406
1407
1408 ## ----------- ##
1409 ## Core tests. ##
1410 ## ----------- ##
1411
1412 _ACEOF
1413
1414
1415 # Keep a trace of the command line.
1416 # Strip out --no-create and --no-recursion so they do not pile up.
1417 # Strip out --silent because we don't want to record it for future runs.
1418 # Also quote any args containing shell meta-characters.
1419 # Make two passes to allow for proper duplicate-argument suppression.
1420 ac_configure_args=
1421 ac_configure_args0=
1422 ac_configure_args1=
1423 ac_sep=
1424 ac_must_keep_next=false
1425 for ac_pass in 1 2
1426 do
1427 for ac_arg
1428 do
1429 case $ac_arg in
1430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1432 | -silent | --silent | --silen | --sile | --sil)
1433 continue ;;
1434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1436 esac
1437 case $ac_pass in
1438 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1439 2)
1440 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1441 if test $ac_must_keep_next = true; then
1442 ac_must_keep_next=false # Got value, back to normal.
1443 else
1444 case $ac_arg in
1445 *=* | --config-cache | -C | -disable-* | --disable-* \
1446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1448 | -with-* | --with-* | -without-* | --without-* | --x)
1449 case "$ac_configure_args0 " in
1450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1451 esac
1452 ;;
1453 -* ) ac_must_keep_next=true ;;
1454 esac
1455 fi
1456 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1457 # Get rid of the leading space.
1458 ac_sep=" "
1459 ;;
1460 esac
1461 done
1462 done
1463 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1464 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1465
1466 # When interrupted or exit'd, cleanup temporary files, and complete
1467 # config.log. We remove comments because anyway the quotes in there
1468 # would cause problems or look ugly.
1469 # WARNING: Be sure not to use single quotes in there, as some shells,
1470 # such as our DU 5.0 friend, will then `close' the trap.
1471 trap 'exit_status=$?
1472 # Save into config.log some information that might help in debugging.
1473 {
1474 echo
1475
1476 cat <<\_ASBOX
1477 ## ---------------- ##
1478 ## Cache variables. ##
1479 ## ---------------- ##
1480 _ASBOX
1481 echo
1482 # The following way of writing the cache mishandles newlines in values,
1483 {
1484 (set) 2>&1 |
1485 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1486 *ac_space=\ *)
1487 sed -n \
1488 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1490 ;;
1491 *)
1492 sed -n \
1493 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1494 ;;
1495 esac;
1496 }
1497 echo
1498
1499 cat <<\_ASBOX
1500 ## ----------------- ##
1501 ## Output variables. ##
1502 ## ----------------- ##
1503 _ASBOX
1504 echo
1505 for ac_var in $ac_subst_vars
1506 do
1507 eval ac_val=$`echo $ac_var`
1508 echo "$ac_var='"'"'$ac_val'"'"'"
1509 done | sort
1510 echo
1511
1512 if test -n "$ac_subst_files"; then
1513 cat <<\_ASBOX
1514 ## ------------- ##
1515 ## Output files. ##
1516 ## ------------- ##
1517 _ASBOX
1518 echo
1519 for ac_var in $ac_subst_files
1520 do
1521 eval ac_val=$`echo $ac_var`
1522 echo "$ac_var='"'"'$ac_val'"'"'"
1523 done | sort
1524 echo
1525 fi
1526
1527 if test -s confdefs.h; then
1528 cat <<\_ASBOX
1529 ## ----------- ##
1530 ## confdefs.h. ##
1531 ## ----------- ##
1532 _ASBOX
1533 echo
1534 sed "/^$/d" confdefs.h | sort
1535 echo
1536 fi
1537 test "$ac_signal" != 0 &&
1538 echo "$as_me: caught signal $ac_signal"
1539 echo "$as_me: exit $exit_status"
1540 } >&5
1541 rm -f core *.core &&
1542 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1543 exit $exit_status
1544 ' 0
1545 for ac_signal in 1 2 13 15; do
1546 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1547 done
1548 ac_signal=0
1549
1550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1551 rm -rf conftest* confdefs.h
1552 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1553 echo >confdefs.h
1554
1555 # Predefined preprocessor variables.
1556
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_NAME "$PACKAGE_NAME"
1559 _ACEOF
1560
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1564 _ACEOF
1565
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1569 _ACEOF
1570
1571
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_STRING "$PACKAGE_STRING"
1574 _ACEOF
1575
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1579 _ACEOF
1580
1581
1582 # Let the site file select an alternate cache file if it wants to.
1583 # Prefer explicitly selected file to automatically selected ones.
1584 if test -z "$CONFIG_SITE"; then
1585 if test "x$prefix" != xNONE; then
1586 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1587 else
1588 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1589 fi
1590 fi
1591 for ac_site_file in $CONFIG_SITE; do
1592 if test -r "$ac_site_file"; then
1593 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1594 echo "$as_me: loading site script $ac_site_file" >&6;}
1595 sed 's/^/| /' "$ac_site_file" >&5
1596 . "$ac_site_file"
1597 fi
1598 done
1599
1600 if test -r "$cache_file"; then
1601 # Some versions of bash will fail to source /dev/null (special
1602 # files actually), so we avoid doing that.
1603 if test -f "$cache_file"; then
1604 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1605 echo "$as_me: loading cache $cache_file" >&6;}
1606 case $cache_file in
1607 [\\/]* | ?:[\\/]* ) . $cache_file;;
1608 *) . ./$cache_file;;
1609 esac
1610 fi
1611 else
1612 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1613 echo "$as_me: creating cache $cache_file" >&6;}
1614 >$cache_file
1615 fi
1616
1617 # Check that the precious variables saved in the cache have kept the same
1618 # value.
1619 ac_cache_corrupted=false
1620 for ac_var in `(set) 2>&1 |
1621 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1623 eval ac_new_set=\$ac_env_${ac_var}_set
1624 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1625 eval ac_new_val="\$ac_env_${ac_var}_value"
1626 case $ac_old_set,$ac_new_set in
1627 set,)
1628 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1629 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1630 ac_cache_corrupted=: ;;
1631 ,set)
1632 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1633 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1634 ac_cache_corrupted=: ;;
1635 ,);;
1636 *)
1637 if test "x$ac_old_val" != "x$ac_new_val"; then
1638 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1639 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1640 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1641 echo "$as_me: former value: $ac_old_val" >&2;}
1642 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1643 echo "$as_me: current value: $ac_new_val" >&2;}
1644 ac_cache_corrupted=:
1645 fi;;
1646 esac
1647 # Pass precious variables to config.status.
1648 if test "$ac_new_set" = set; then
1649 case $ac_new_val in
1650 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1651 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1652 *) ac_arg=$ac_var=$ac_new_val ;;
1653 esac
1654 case " $ac_configure_args " in
1655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1656 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1657 esac
1658 fi
1659 done
1660 if $ac_cache_corrupted; then
1661 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1662 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1663 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1664 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1665 { (exit 1); exit 1; }; }
1666 fi
1667
1668 ac_ext=c
1669 ac_cpp='$CPP $CPPFLAGS'
1670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705 # List one file in the package so that the configure script can test
1706 # whether the package is actually there
1707
1708
1709 # Where should everything be installed by default? Here, we want it
1710 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1711 # of the directory where configure is run. The default would be
1712 # /usr/local.
1713
1714
1715 #############################################################################
1716 # We only need automake to generate Makefiles for the distribution #
1717 #############################################################################
1718
1719 # Initialize automake
1720 ac_aux_dir=
1721 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1722 if test -f $ac_dir/install-sh; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 break
1726 elif test -f $ac_dir/install.sh; then
1727 ac_aux_dir=$ac_dir
1728 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 break
1730 elif test -f $ac_dir/shtool; then
1731 ac_aux_dir=$ac_dir
1732 ac_install_sh="$ac_aux_dir/shtool install -c"
1733 break
1734 fi
1735 done
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1742 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1743 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1744
1745 # Make sure we can run config.sub.
1746 $ac_config_sub sun4 >/dev/null 2>&1 ||
1747 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1748 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751 echo "$as_me:$LINENO: checking build system type" >&5
1752 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1753 if test "${ac_cv_build+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 ac_cv_build_alias=$build_alias
1757 test -z "$ac_cv_build_alias" &&
1758 ac_cv_build_alias=`$ac_config_guess`
1759 test -z "$ac_cv_build_alias" &&
1760 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1761 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1762 { (exit 1); exit 1; }; }
1763 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1764 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1765 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1766 { (exit 1); exit 1; }; }
1767
1768 fi
1769 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1770 echo "${ECHO_T}$ac_cv_build" >&6
1771 build=$ac_cv_build
1772 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777
1778 # Check if user wants to produce debugging code
1779
1780 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1781 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1782
1783 # Check whether --enable-debug or --disable-debug was given.
1784 if test "${enable_debug+set}" = set; then
1785 enableval="$enable_debug"
1786 case "${enableval}" in
1787 yes) coin_debug_compile=true
1788 if test "${enable_shared+set}" = set; then :; else
1789 enable_shared=no
1790 fi
1791 ;;
1792 no) coin_debug_compile=false
1793 ;;
1794 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1795 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1796 { (exit 1); exit 1; }; }
1797 ;;
1798 esac
1799 else
1800 coin_debug_compile=false
1801 fi;
1802
1803 # m4_ifvaln([],
1804
1805 if test $coin_debug_compile = true; then
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 fi
1812
1813 # m4_ifvaln([],
1814
1815
1816
1817 # Get the name of the C compiler and appropriate compiler options
1818
1819
1820 # for backward compatibility
1821 # Check whether --enable-doscompile or --disable-doscompile was given.
1822 if test "${enable_doscompile+set}" = set; then
1823 enableval="$enable_doscompile"
1824 enable_doscompile=$enableval
1825 else
1826 enable_doscompile=no
1827 fi;
1828
1829 # Check whether --enable-msvc or --disable-msvc was given.
1830 if test "${enable_msvc+set}" = set; then
1831 enableval="$enable_msvc"
1832 enable_msvc=$enableval
1833 else
1834 enable_msvc=no
1835 if test "$enable_doscompile" = msvc ; then
1836 enable_msvc=yes
1837 elif test "$enable_doscompile" != no ; then
1838 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1839 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1840 { (exit 1); exit 1; }; }
1841 fi
1842
1843 fi;
1844
1845 if test "$enable_msvc" = MD; then
1846 enable_shared=yes
1847 enable_msvc=yes
1848 fi
1849
1850 if test "$enable_msvc" = yes; then
1851 case $build in
1852 *-cygwin* | *-mingw*) ;;
1853 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1854 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1855 { (exit 1); exit 1; }; } ;;
1856 esac
1857 fi
1858
1859
1860
1861 ac_ext=c
1862 ac_cpp='$CPP $CPPFLAGS'
1863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866
1867
1868 # For consistency, we set the C compiler to the same value of the C++
1869 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1870 if test x"$CXX" != x; then
1871 case "$CXX" in
1872 clang* ) ;;
1873 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1874 if test x"$CC" = x; then
1875 CC="$CXX"
1876 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1877 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1878 fi
1879 ;;
1880 esac
1881 fi
1882
1883
1884
1885
1886
1887
1888 coin_has_cc=yes
1889
1890 save_cflags="$CFLAGS"
1891
1892 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1893 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1894 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1895 # compiler. In this case, put cc after gcc.
1896
1897 case $build in
1898 *-cygwin* | *-mingw*)
1899 if test "$enable_msvc" = yes ; then
1900 comps="icl cl gcc"
1901 else
1902 comps="gcc icl cl"
1903 fi ;;
1904 *-*-solaris*)
1905 # Extract the first word of "cc", so it can be a program name with args.
1906 set dummy cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$sol_cc_compiler"; then
1913 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1914 else
1915 ac_prog_rejected=no
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1924 ac_prog_rejected=yes
1925 continue
1926 fi
1927 ac_cv_prog_sol_cc_compiler="cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1930 fi
1931 done
1932 done
1933
1934 if test $ac_prog_rejected = yes; then
1935 # We found a bogon in the path, so make sure we never use it.
1936 set dummy $ac_cv_prog_sol_cc_compiler
1937 shift
1938 if test $# != 0; then
1939 # We chose a different compiler from the bogus one.
1940 # However, it has the same basename, so the bogon will be chosen
1941 # first if we set sol_cc_compiler to just the basename; use the full file name.
1942 shift
1943 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1944 fi
1945 fi
1946 fi
1947 fi
1948 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1949 if test -n "$sol_cc_compiler"; then
1950 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1951 echo "${ECHO_T}$sol_cc_compiler" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957 if test "$sol_cc_compiler" = "cc" ; then
1958 comps="cc xlc gcc pgcc icc"
1959 else
1960 comps="xlc gcc pgcc icc cc"
1961 fi
1962 ;;
1963 *-*-darwin*) comps="clang gcc cc" ;;
1964 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1965 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1966 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
1967 esac
1968
1969 # We delete the cached value, since the test might not have been
1970 # performed with our choice of compilers earlier
1971 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1972 # AC_MSG_NOTICE([C compiler candidates: $comps])
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 if test -n "$ac_tool_prefix"; then
1979 for ac_prog in $comps
1980 do
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002 done
2003 done
2004
2005 fi
2006 fi
2007 CC=$ac_cv_prog_CC
2008 if test -n "$CC"; then
2009 echo "$as_me:$LINENO: result: $CC" >&5
2010 echo "${ECHO_T}$CC" >&6
2011 else
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016 test -n "$CC" && break
2017 done
2018 fi
2019 if test -z "$CC"; then
2020 ac_ct_CC=$CC
2021 for ac_prog in $comps
2022 do
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy $ac_prog; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_ac_ct_CC="$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044 done
2045 done
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2056 fi
2057
2058 test -n "$ac_ct_CC" && break
2059 done
2060
2061 CC=$ac_ct_CC
2062 fi
2063
2064
2065 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2070
2071 # Provide some information about the compiler.
2072 echo "$as_me:$LINENO:" \
2073 "checking for C compiler version" >&5
2074 ac_compiler=`set X $ac_compile; echo $2`
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2076 (eval $ac_compiler --version </dev/null >&5) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2081 (eval $ac_compiler -v </dev/null >&5) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2086 (eval $ac_compiler -V </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090
2091 cat >conftest.$ac_ext <<_ACEOF
2092 /* confdefs.h. */
2093 _ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h. */
2097
2098 int
2099 main ()
2100 {
2101
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 ac_clean_files_save=$ac_clean_files
2107 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108 # Try to create an executable without -o first, disregard a.out.
2109 # It will help us diagnose broken compilers, and finding out an intuition
2110 # of exeext.
2111 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2112 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2113 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115 (eval $ac_link_default) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # Find the output, starting from the most likely. This scheme is
2120 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121 # resort.
2122
2123 # Be careful to initialize this variable, since it used to be cached.
2124 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125 ac_cv_exeext=
2126 # b.out is created by i960 compilers.
2127 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2128 do
2129 test -f "$ac_file" || continue
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2132 ;;
2133 conftest.$ac_ext )
2134 # This is the source file.
2135 ;;
2136 [ab].out )
2137 # We found the default executable, but exeext='' is most
2138 # certainly right.
2139 break;;
2140 *.* )
2141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 # FIXME: I believe we export ac_cv_exeext for Libtool,
2143 # but it would be cool to find out if it's true. Does anybody
2144 # maintain Libtool? --akim.
2145 export ac_cv_exeext
2146 break;;
2147 * )
2148 break;;
2149 esac
2150 done
2151 else
2152 echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159 { (exit 77); exit 77; }; }
2160 fi
2161
2162 ac_exeext=$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_file" >&5
2164 echo "${ECHO_T}$ac_file" >&6
2165
2166 # Check the compiler produces executables we can run. If not, either
2167 # the compiler is broken, or we cross compile.
2168 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171 # If not cross compiling, check that we can run a simple program.
2172 if test "$cross_compiling" != yes; then
2173 if { ac_try='./$ac_file'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 cross_compiling=no
2180 else
2181 if test "$cross_compiling" = maybe; then
2182 cross_compiling=yes
2183 else
2184 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2191 fi
2192 fi
2193 fi
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2196
2197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2205
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209 (eval $ac_link) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2216 # `rm'.
2217 for ac_file in conftest.exe conftest conftest.*; do
2218 test -f "$ac_file" || continue
2219 case $ac_file in
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 export ac_cv_exeext
2223 break;;
2224 * ) break;;
2225 esac
2226 done
2227 else
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2233 fi
2234
2235 rm -f conftest$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237 echo "${ECHO_T}$ac_cv_exeext" >&6
2238
2239 rm -f conftest.$ac_ext
2240 EXEEXT=$ac_cv_exeext
2241 ac_exeext=$EXEEXT
2242 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244 if test "${ac_cv_objext+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2253
2254 int
2255 main ()
2256 {
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.o conftest.obj
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2269 case $ac_file in
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272 break;;
2273 esac
2274 done
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2284 fi
2285
2286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2287 fi
2288 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2289 echo "${ECHO_T}$ac_cv_objext" >&6
2290 OBJEXT=$ac_cv_objext
2291 ac_objext=$OBJEXT
2292 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h. */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2303
2304 int
2305 main ()
2306 {
2307 #ifndef __GNUC__
2308 choke me
2309 #endif
2310
2311 ;
2312 return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_compiler_gnu=yes
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_compiler_gnu=no
2343 fi
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2346
2347 fi
2348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2350 GCC=`test $ac_compiler_gnu = yes && echo yes`
2351 ac_test_CFLAGS=${CFLAGS+set}
2352 ac_save_CFLAGS=$CFLAGS
2353 CFLAGS="-g"
2354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2356 if test "${ac_cv_prog_cc_g+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2365
2366 int
2367 main ()
2368 {
2369
2370 ;
2371 return 0;
2372 }
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_g=yes
2397 else
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_cv_prog_cc_g=no
2402 fi
2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2404 fi
2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2407 if test "$ac_test_CFLAGS" = set; then
2408 CFLAGS=$ac_save_CFLAGS
2409 elif test $ac_cv_prog_cc_g = yes; then
2410 if test "$GCC" = yes; then
2411 CFLAGS="-g -O2"
2412 else
2413 CFLAGS="-g"
2414 fi
2415 else
2416 if test "$GCC" = yes; then
2417 CFLAGS="-O2"
2418 else
2419 CFLAGS=
2420 fi
2421 fi
2422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 ac_cv_prog_cc_stdc=no
2428 ac_save_CC=$CC
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435 #include <stdarg.h>
2436 #include <stdio.h>
2437 #include <sys/types.h>
2438 #include <sys/stat.h>
2439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2440 struct buf { int x; };
2441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2442 static char *e (p, i)
2443 char **p;
2444 int i;
2445 {
2446 return p[i];
2447 }
2448 static char *f (char * (*g) (char **, int), char **p, ...)
2449 {
2450 char *s;
2451 va_list v;
2452 va_start (v,p);
2453 s = g (p, va_arg (v,int));
2454 va_end (v);
2455 return s;
2456 }
2457
2458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2459 function prototypes and stuff, but not '\xHH' hex character constants.
2460 These don't provoke an error unfortunately, instead are silently treated
2461 as 'x'. The following induces an error, until -std1 is added to get
2462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2463 array size at least. It's necessary to write '\x00'==0 to get something
2464 that's true only with -std1. */
2465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2466
2467 int test (int i, double x);
2468 struct s1 {int (*f) (int a);};
2469 struct s2 {int (*f) (double a);};
2470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2471 int argc;
2472 char **argv;
2473 int
2474 main ()
2475 {
2476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2477 ;
2478 return 0;
2479 }
2480 _ACEOF
2481 # Don't try gcc -ansi; that turns off useful extensions and
2482 # breaks some systems' header files.
2483 # AIX -qlanglvl=ansi
2484 # Ultrix and OSF/1 -std1
2485 # HP-UX 10.20 and later -Ae
2486 # HP-UX older versions -Aa -D_HPUX_SOURCE
2487 # SVR4 -Xc -D__EXTENSIONS__
2488 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2489 do
2490 CC="$ac_save_CC $ac_arg"
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 ac_cv_prog_cc_stdc=$ac_arg
2514 break
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 fi
2520 rm -f conftest.err conftest.$ac_objext
2521 done
2522 rm -f conftest.$ac_ext conftest.$ac_objext
2523 CC=$ac_save_CC
2524
2525 fi
2526
2527 case "x$ac_cv_prog_cc_stdc" in
2528 x|xno)
2529 echo "$as_me:$LINENO: result: none needed" >&5
2530 echo "${ECHO_T}none needed" >&6 ;;
2531 *)
2532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2533 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2534 CC="$CC $ac_cv_prog_cc_stdc" ;;
2535 esac
2536
2537 # Some people use a C++ compiler to compile C. Since we use `exit',
2538 # in C++ we need to declare it. In case someone uses the same compiler
2539 # for both compiling C and C++ we need to have the C++ compiler decide
2540 # the declaration of exit, since it's the most demanding environment.
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #ifndef __cplusplus
2543 choke me
2544 #endif
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 for ac_declaration in \
2569 '' \
2570 'extern "C" void std::exit (int) throw (); using std::exit;' \
2571 'extern "C" void std::exit (int); using std::exit;' \
2572 'extern "C" void exit (int) throw ();' \
2573 'extern "C" void exit (int);' \
2574 'void exit (int);'
2575 do
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2582 $ac_declaration
2583 #include <stdlib.h>
2584 int
2585 main ()
2586 {
2587 exit (42);
2588 ;
2589 return 0;
2590 }
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 :
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2618
2619 continue
2620 fi
2621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2628 $ac_declaration
2629 int
2630 main ()
2631 {
2632 exit (42);
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>conftest.er1
2640 ac_status=$?
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try='test -z "$ac_c_werror_flag"
2647 || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 break
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 fi
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 done
2667 rm -f conftest*
2668 if test -n "$ac_declaration"; then
2669 echo '#ifdef __cplusplus' >>confdefs.h
2670 echo $ac_declaration >>confdefs.h
2671 echo '#endif' >>confdefs.h
2672 fi
2673
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686 if test -z "$CC" ; then
2687 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2688 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2689 { (exit 1); exit 1; }; }
2690 fi
2691 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2692 case "$CC" in
2693 clang* ) ;;
2694 cl* | */cl* | CL* | */CL* )
2695 if test "$ac_cv_prog_cc_g" = yes ; then
2696 ac_cv_prog_cc_g=no
2697 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2698 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2699 fi ;;
2700 * )
2701 if test x"$CYGPATH_W" = x ; then
2702 CYGPATH_W=echo
2703 fi
2704 ;;
2705 esac
2706 CFLAGS="$save_cflags"
2707
2708 # add automake conditional so we can recognize cl compiler in makefile
2709 coin_cc_is_cl=false
2710 case "$CC" in
2711 clang* ) ;;
2712 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2713 coin_cc_is_cl=true
2714 ;;
2715 esac
2716
2717
2718 if test $coin_cc_is_cl = true; then
2719 COIN_CC_IS_CL_TRUE=
2720 COIN_CC_IS_CL_FALSE='#'
2721 else
2722 COIN_CC_IS_CL_TRUE='#'
2723 COIN_CC_IS_CL_FALSE=
2724 fi
2725
2726
2727 # Check if a project specific CFLAGS variable has been set
2728 if test x$COIN_PRJCT != x; then
2729 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2730 if test x$coin_tmp = xset; then
2731 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2732 fi
2733 fi
2734
2735 if test x"$CFLAGS" = x; then
2736
2737 coin_add_cflags=
2738 coin_opt_cflags=
2739 coin_dbg_cflags=
2740 coin_warn_cflags=
2741
2742 if test "$GCC" = "yes"; then
2743 case "$CC" in
2744 icc* | */icc*)
2745 ;;
2746 *)
2747 coin_opt_cflags="-O3"
2748 coin_add_cflags="-pipe"
2749 coin_dbg_cflags="-g -O0"
2750 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2751 esac
2752 fi
2753 if test -z "$coin_opt_cflags"; then
2754 case $build in
2755 *-cygwin* | *-mingw*)
2756 case "$CC" in
2757 clang* ) ;;
2758 cl* | */cl* | CL* | */CL*)
2759 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2760 coin_opt_cflags='-MD -O2'
2761 coin_dbg_cflags='-MDd'
2762 else
2763 coin_opt_cflags='-MT -O2'
2764 coin_dbg_cflags='-MTd'
2765 fi
2766 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2767 ;;
2768 icl* | */icl* | ICL* | */ICL*)
2769 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2770 coin_opt_cflags='-MD -Ox'
2771 coin_dbg_cflags='-MDd -debug'
2772 else
2773 coin_opt_cflags='-MT -Ox'
2774 coin_dbg_cflags='-MTd -debug'
2775 fi
2776 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2777 ;;
2778 esac
2779 ;;
2780 *-linux-*)
2781 case "$CC" in
2782 icc* | */icc*)
2783 coin_opt_cflags="-O3 -ip -mp1"
2784 coin_add_cflags=""
2785 coin_dbg_cflags="-g"
2786 # Check if -i_dynamic is necessary (for new glibc library)
2787 CFLAGS=
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794
2795 int
2796 main ()
2797 {
2798 int i=0; i++;
2799 ;
2800 return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext conftest$ac_exeext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2805 (eval $ac_link) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest$ac_exeext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 :
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 coin_add_cflags="-i_dynamic $coin_add_cflags"
2831 fi
2832 rm -f conftest.err conftest.$ac_objext \
2833 conftest$ac_exeext conftest.$ac_ext
2834 ;;
2835 pgcc* | */pgcc*)
2836 coin_opt_cflags="-fast"
2837 coin_add_cflags="-Kieee -pc 64"
2838 coin_dbg_cflags="-g"
2839 ;;
2840 esac
2841 ;;
2842 *-ibm-*)
2843 case "$CC" in
2844 xlc* | */xlc* | mpxlc* | */mpxlc*)
2845 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2846 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2847 coin_dbg_cflags="-g"
2848 ;;
2849 esac
2850 ;;
2851 *-hp-*)
2852 coin_opt_cflags="-O"
2853 coin_add_cflags="-Ae"
2854 coin_dbg_cflags="-g"
2855 ;;
2856 *-*-solaris*)
2857 coin_opt_cflags="-xO4"
2858 coin_dbg_cflags="-g"
2859 ;;
2860 *-sgi-*)
2861 coin_opt_cflags="-O -OPT:Olimit=0"
2862 coin_dbg_cflags="-g"
2863 ;;
2864 esac
2865 fi
2866
2867 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2868 coin_dbg_cflags="-g"
2869 fi
2870
2871 if test -z "$coin_opt_cflags"; then
2872 # Try if -O option works if nothing else is set
2873 CFLAGS="-O"
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880
2881 int
2882 main ()
2883 {
2884 int i=0; i++;
2885 ;
2886 return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext conftest$ac_exeext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891 (eval $ac_link) 2>conftest.er1
2892 ac_status=$?
2893 grep -v '^ *+' conftest.er1 >conftest.err
2894 rm -f conftest.er1
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -z "$ac_c_werror_flag"
2899 || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 (eval $ac_try) 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest$ac_exeext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 (eval $ac_try) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2911 coin_opt_cflags="-O"
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 fi
2917 rm -f conftest.err conftest.$ac_objext \
2918 conftest$ac_exeext conftest.$ac_ext
2919 fi
2920
2921 # if PM doesn't want the warning messages, take them out
2922 if test x"$coin_skip_warn_cflags" = xyes; then
2923 coin_warn_cflags=
2924 fi
2925
2926 if test x${DBG_CFLAGS+set} != xset; then
2927 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2928 fi
2929 if test x${OPT_CFLAGS+set} != xset; then
2930 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2931 fi
2932
2933 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2934 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2935
2936 if test "$coin_debug_compile" = "true"; then
2937 CFLAGS="$DBG_CFLAGS"
2938 else
2939 CFLAGS="$OPT_CFLAGS"
2940 fi
2941 else
2942 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2943 if test x${DBG_CFLAGS+set} != xset; then
2944 DBG_CFLAGS="$CFLAGS"
2945 fi
2946 if test x${OPT_CFLAGS+set} != xset; then
2947 OPT_CFLAGS="$CFLAGS"
2948 fi
2949 fi
2950
2951 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2952 if test x$COIN_PRJCT != x; then
2953 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2954 fi
2955
2956 # Try if CFLAGS works
2957 save_CFLAGS="$CFLAGS"
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964
2965 int
2966 main ()
2967 {
2968 int i=0; i++;
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975 (eval $ac_link) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag"
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest$ac_exeext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 :
2996 else
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 CFLAGS=
3001 fi
3002 rm -f conftest.err conftest.$ac_objext \
3003 conftest$ac_exeext conftest.$ac_ext
3004 if test -z "$CFLAGS"; then
3005 { 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
3006 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;}
3007 CFLAGS='-O'
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014
3015 int
3016 main ()
3017 {
3018 int i=0; i++;
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext conftest$ac_exeext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025 (eval $ac_link) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest$ac_exeext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 :
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 CFLAGS=
3051 fi
3052 rm -f conftest.err conftest.$ac_objext \
3053 conftest$ac_exeext conftest.$ac_ext
3054 if test -z "$CFLAGS"; then
3055 { 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
3056 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;}
3057 fi
3058 fi
3059
3060 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3061 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3062
3063
3064 if test x"$MPICC" = x; then :; else
3065 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3066 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3067 CC="$MPICC"
3068 fi
3069
3070 # Correct the LD variable if we are using the MS or Intel-windows compiler
3071 case "$CC" in
3072 clang* ) ;;
3073 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3074 LD=link
3075 ;;
3076 esac
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083
3084
3085
3086 # Get the name of the C++ compiler and appropriate compiler options
3087
3088 #Let's try if that overcomes configuration problem with VC++ 6.0
3089
3090 ac_ext=cc
3091 ac_cpp='$CXXCPP $CPPFLAGS'
3092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3095
3096
3097
3098
3099
3100
3101
3102 coin_has_cxx=yes
3103
3104 save_cxxflags="$CXXFLAGS"
3105 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3106 case $build in
3107 *-cygwin* | *-mingw*)
3108 if test "$enable_msvc" = yes ; then
3109 comps="icl cl g++"
3110 else
3111 comps="g++ icl cl"
3112 fi ;;
3113 *-*-solaris*)
3114 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3115 *-darwin*) comps="clang++ g++ c++ CC" ;;
3116 *-linux-gnu*)
3117 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3118 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3119 esac
3120
3121 # We delete the cached value, since the test might not have been
3122 # performed with our choice of compilers earlier
3123 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3124 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3125 ac_ext=cc
3126 ac_cpp='$CXXCPP $CPPFLAGS'
3127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in $CCC $comps
3132 do
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_prog_CXX+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 if test -n "$CXX"; then
3141 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156
3157 fi
3158 fi
3159 CXX=$ac_cv_prog_CXX
3160 if test -n "$CXX"; then
3161 echo "$as_me:$LINENO: result: $CXX" >&5
3162 echo "${ECHO_T}$CXX" >&6
3163 else
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3166 fi
3167
3168 test -n "$CXX" && break
3169 done
3170 fi
3171 if test -z "$CXX"; then
3172 ac_ct_CXX=$CXX
3173 for ac_prog in $CCC $comps
3174 do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 if test -n "$ac_ct_CXX"; then
3183 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_ac_ct_CXX="$ac_prog"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198
3199 fi
3200 fi
3201 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3202 if test -n "$ac_ct_CXX"; then
3203 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3204 echo "${ECHO_T}$ac_ct_CXX" >&6
3205 else
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 fi
3209
3210 test -n "$ac_ct_CXX" && break
3211 done
3212 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3213
3214 CXX=$ac_ct_CXX
3215 fi
3216
3217
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO:" \
3220 "checking for C++ compiler version" >&5
3221 ac_compiler=`set X $ac_compile; echo $2`
3222 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3223 (eval $ac_compiler --version </dev/null >&5) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }
3227 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3228 (eval $ac_compiler -v </dev/null >&5) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }
3232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3233 (eval $ac_compiler -V </dev/null >&5) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3237
3238 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253 #ifndef __GNUC__
3254 choke me
3255 #endif
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_cxx_werror_flag"
3271 || test ! -s conftest.err'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_compiler_gnu=yes
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 ac_compiler_gnu=no
3289 fi
3290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3292
3293 fi
3294 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3296 GXX=`test $ac_compiler_gnu = yes && echo yes`
3297 ac_test_CXXFLAGS=${CXXFLAGS+set}
3298 ac_save_CXXFLAGS=$CXXFLAGS
3299 CXXFLAGS="-g"
3300 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3301 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3302 if test "${ac_cv_prog_cxx_g+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311
3312 int
3313 main ()
3314 {
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_cxx_werror_flag"
3330 || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 (eval $ac_try) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 ac_cv_prog_cxx_g=yes
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 ac_cv_prog_cxx_g=no
3348 fi
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 fi
3351 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3352 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3353 if test "$ac_test_CXXFLAGS" = set; then
3354 CXXFLAGS=$ac_save_CXXFLAGS
3355 elif test $ac_cv_prog_cxx_g = yes; then
3356 if test "$GXX" = yes; then
3357 CXXFLAGS="-g -O2"
3358 else
3359 CXXFLAGS="-g"
3360 fi
3361 else
3362 if test "$GXX" = yes; then
3363 CXXFLAGS="-O2"
3364 else
3365 CXXFLAGS=
3366 fi
3367 fi
3368 for ac_declaration in \
3369 '' \
3370 'extern "C" void std::exit (int) throw (); using std::exit;' \
3371 'extern "C" void std::exit (int); using std::exit;' \
3372 'extern "C" void exit (int) throw ();' \
3373 'extern "C" void exit (int);' \
3374 'void exit (int);'
3375 do
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 $ac_declaration
3383 #include <stdlib.h>
3384 int
3385 main ()
3386 {
3387 exit (42);
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -z "$ac_cxx_werror_flag"
3402 || test ! -s conftest.err'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; } &&
3408 { ac_try='test -s conftest.$ac_objext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3414 :
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 continue
3420 fi
3421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_declaration
3429 int
3430 main ()
3431 {
3432 exit (42);
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -z "$ac_cxx_werror_flag"
3447 || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 break
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 fi
3465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466 done
3467 rm -f conftest*
3468 if test -n "$ac_declaration"; then
3469 echo '#ifdef __cplusplus' >>confdefs.h
3470 echo $ac_declaration >>confdefs.h
3471 echo '#endif' >>confdefs.h
3472 fi
3473
3474 ac_ext=cc
3475 ac_cpp='$CXXCPP $CPPFLAGS'
3476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3479
3480
3481 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3482 #thus, we test here whether $CXX is actually working
3483 ac_ext=cc
3484 ac_cpp='$CXXCPP $CPPFLAGS'
3485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3488
3489 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3490 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501 int i=0;
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_cxx_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 echo "$as_me:$LINENO: result: yes" >&5
3529 echo "${ECHO_T}yes" >&6
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3537 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3538 { (exit 1); exit 1; }; }
3539
3540 fi
3541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_ext=cc
3543 ac_cpp='$CXXCPP $CPPFLAGS'
3544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3547
3548
3549 coin_cxx_is_cl=false
3550 # It seems that we need to cleanup something here for the Windows
3551 case "$CXX" in
3552 clang* | */clang*) ;;
3553 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3554 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3555 mv confdefs.hh confdefs.h
3556 coin_cxx_is_cl=true
3557 ;;
3558 esac
3559
3560 # add automake conditional so we can recognize cl compiler in makefile
3561
3562
3563 if test $coin_cxx_is_cl = true; then
3564 COIN_CXX_IS_CL_TRUE=
3565 COIN_CXX_IS_CL_FALSE='#'
3566 else
3567 COIN_CXX_IS_CL_TRUE='#'
3568 COIN_CXX_IS_CL_FALSE=
3569 fi
3570
3571
3572 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3573 case "$CXX" in
3574 clang* ) ;;
3575 cl* | */cl* | CL* | */CL* )
3576 if test "$ac_cv_prog_cxx_g" = yes ; then
3577 ac_cv_prog_cxx_g=no
3578 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3579 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3580 fi ;;
3581 * )
3582 if test x"$CYGPATH_W" = x ; then
3583 CYGPATH_W=echo
3584 fi
3585 ;;
3586 esac
3587 CXXFLAGS="$save_cxxflags"
3588
3589 # Check if a project specific CXXFLAGS variable has been set
3590 if test x$COIN_PRJCT != x; then
3591 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3592 if test x$coin_tmp = xset; then
3593 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3594 fi
3595 fi
3596
3597 if test x"$CXXFLAGS" = x; then
3598
3599 # ToDo decide whether we want -DNDEBUG for optimization
3600 coin_add_cxxflags=
3601 coin_opt_cxxflags=
3602 coin_dbg_cxxflags=
3603 coin_warn_cxxflags=
3604
3605 if test "$GXX" = "yes"; then
3606 case "$CXX" in
3607 icpc* | */icpc*)
3608 ;;
3609 *)
3610 # ToDo decide about unroll-loops
3611 coin_opt_cxxflags="-O3"
3612 coin_add_cxxflags="-pipe"
3613 coin_dbg_cxxflags="-g -O0"
3614 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3615 esac
3616 fi
3617
3618 # Note that we do not need to cover GCC in the following tests.
3619
3620 if test -z "$coin_opt_cxxflags"; then
3621 case $build in
3622 *-cygwin* | *-mingw*)
3623 case "$CXX" in
3624 clang* ) ;;
3625 cl* | */cl* | CL* | */CL*)
3626 # The MT and MTd options are mutually exclusive
3627 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3628 coin_opt_cxxflags='-MD -O2'
3629 coin_dbg_cxxflags='-MDd'
3630 else
3631 coin_opt_cxxflags='-MT -O2'
3632 coin_dbg_cxxflags='-MTd'
3633 fi
3634 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3635 ;;
3636 icl* | */icl* | ICL* | */ICL*)
3637 # The MT and MTd options are mutually exclusive
3638 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3639 coin_opt_cxxflags='-MD -Ox'
3640 coin_dbg_cxxflags='-MDd -debug'
3641 else
3642 coin_opt_cxxflags='-MT -Ox'
3643 coin_dbg_cxxflags='-MTd -debug'
3644 fi
3645 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3646 ;;
3647 esac
3648 ;;
3649 *-linux-*)
3650 case "$CXX" in
3651 icpc* | */icpc*)
3652 coin_opt_cxxflags="-O3 -ip -mp1"
3653 coin_add_cxxflags=""
3654 coin_dbg_cxxflags="-g"
3655 # Check if -i_dynamic is necessary (for new glibc library)
3656 CXXFLAGS=
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663
3664 int
3665 main ()
3666 {
3667 int i=0; i++;
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext conftest$ac_exeext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3674 (eval $ac_link) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_cxx_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 :
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3700 fi
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 ;;
3704 pgCC* | */pgCC*)
3705 coin_opt_cxxflags="-fast"
3706 coin_add_cxxflags="-Kieee -pc 64"
3707 coin_dbg_cxxflags="-g"
3708 ;;
3709 esac
3710 ;;
3711 *-ibm-*)
3712 case "$CXX" in
3713 xlC* | */xlC* | mpxlC* | */mpxlC*)
3714 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3715 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3716 coin_dbg_cxxflags="-g"
3717 ;;
3718 esac
3719 ;;
3720 *-hp-*)
3721 case "$CXX" in
3722 aCC* | */aCC* )
3723 coin_opt_cxxflags="-O"
3724 coin_add_cxxflags="-AA"
3725 coin_dbg_cxxflags="-g"
3726 ;;
3727 esac
3728 ;;
3729 *-*-solaris*)
3730 coin_opt_cxxflags="-O4"
3731 coin_dbg_cxxflags="-g"
3732 ;;
3733 esac
3734 fi
3735
3736 # Generic flag settings. If these don't work, add a case above.
3737
3738 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3739 coin_dbg_cxxflags="-g"
3740 fi
3741
3742 if test -z "$coin_opt_cxxflags"; then
3743 # Try if -O option works if nothing else is set
3744 CXXFLAGS=-O
3745 cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755 int i=0; i++;
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_cxx_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest$ac_exeext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 coin_opt_cxxflags="-O"
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 fi
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3790 fi
3791
3792 # if PM doesn't want the warning messages, take them out
3793 if test x"$coin_skip_warn_cxxflags" = xyes; then
3794 coin_warn_cxxflags=
3795 fi
3796
3797 # Do final setup of flags based on values determined above.
3798
3799 if test x${DBG_CXXFLAGS+set} != xset; then
3800 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3801 fi
3802 if test x${OPT_CXXFLAGS+set} != xset; then
3803 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3804 fi
3805
3806 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3807 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3808
3809 if test "$coin_debug_compile" = "true"; then
3810 CXXFLAGS="$DBG_CXXFLAGS"
3811 else
3812 CXXFLAGS="$OPT_CXXFLAGS"
3813 fi
3814
3815 # Handle the case where CXXFLAGS was set externally.
3816 else
3817 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3818 if test x${DBG_CXXFLAGS+set} != xset; then
3819 DBG_CXXFLAGS="$CXXFLAGS"
3820 fi
3821 if test x${OPT_CXXFLAGS+set} != xset; then
3822 OPT_CXXFLAGS="$CXXFLAGS"
3823 fi
3824 fi
3825
3826 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3827 if test x$COIN_PRJCT != x; then
3828 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3829 fi
3830
3831 # Try if CXXFLAGS works
3832 save_CXXFLAGS="$CXXFLAGS"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843 int i=0; i++;
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.$ac_objext conftest$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_cxx_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try='test -s conftest$ac_exeext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 :
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 CXXFLAGS=
3876 fi
3877 rm -f conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext
3879 if test -z "$CXXFLAGS"; then
3880 { 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
3881 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;}
3882 CXXFLAGS='-O'
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889
3890 int
3891 main ()
3892 {
3893 int i=0; i++;
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_cxx_werror_flag"
3908 || test ! -s conftest.err'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest$ac_exeext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 :
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 CXXFLAGS=
3926 fi
3927 rm -f conftest.err conftest.$ac_objext \
3928 conftest$ac_exeext conftest.$ac_ext
3929 if test -z "$CXXFLAGS"; then
3930 { 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
3931 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;}
3932 fi
3933 fi
3934
3935 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3936 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3937
3938
3939 if test x"$MPICXX" = x; then :; else
3940 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3941 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3942 CXX="$MPICXX"
3943 fi
3944
3945 # correct the LD variable in a build with MS or Intel-windows compiler
3946 case "$CXX" in
3947 clang* ) ;;
3948 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3949 LD=link
3950 ;;
3951 esac
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959
3960
3961 # Get the name of the Fortran compiler and appropriate compiler options
3962 case $build in
3963 *-cygwin* | *-mingw*)
3964 if test "$enable_msvc" = yes ; then
3965 coin_f77_comps="ifort fl32 compile_f2c"
3966 else
3967 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3968 fi ;;
3969 *-*-solaris*)
3970 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3971 *-linux-gnu*)
3972 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3973 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3974 esac
3975
3976
3977
3978
3979
3980 ac_ext=f
3981 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3982 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3984
3985
3986
3987
3988
3989
3990 coin_has_f77=yes
3991
3992 save_fflags="$FFLAGS"
3993
3994 # We delete the cached value, since the test might not have been
3995 # performed with our choice of compilers earlier
3996 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3997
3998 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3999 # coin_f77_comps to see if there's a program that matches one of the names.
4000 # If there's no such program, F77 = unavailable. If we match the name,
4001 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4002 # compiler.
4003 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4004
4005
4006 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4007 echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4008 if test -n "$ac_tool_prefix"; then
4009 for ac_prog in $coin_f77_comps
4010 do
4011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_prog_F77+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 if test -n "$F77"; then
4019 ac_cv_prog_F77="$F77" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032 done
4033 done
4034
4035 fi
4036 fi
4037 F77=$ac_cv_prog_F77
4038 if test -n "$F77"; then
4039 echo "$as_me:$LINENO: result: $F77" >&5
4040 echo "${ECHO_T}$F77" >&6
4041 else
4042 echo "$as_me:$LINENO: result: no" >&5
4043 echo "${ECHO_T}no" >&6
4044 fi
4045
4046 test -n "$F77" && break
4047 done
4048 fi
4049 if test -z "$F77"; then
4050 ac_ct_F77=$F77
4051 for ac_prog in $coin_f77_comps
4052 do
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 if test -n "$ac_ct_F77"; then
4061 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_F77="$ac_prog"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076
4077 fi
4078 fi
4079 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4080 if test -n "$ac_ct_F77"; then
4081 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4082 echo "${ECHO_T}$ac_ct_F77" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4086 fi
4087
4088 test -n "$ac_ct_F77" && break
4089 done
4090 test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4091
4092 F77=$ac_ct_F77
4093 fi
4094
4095
4096 if test "$F77" != "unavailable" ; then
4097 ac_ext=f
4098 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4099 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4101 if test -n "$ac_tool_prefix"; then
4102 for ac_prog in $coin_f77_comps
4103 do
4104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_F77+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$F77"; then
4112 ac_cv_prog_F77="$F77" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4124 fi
4125 done
4126 done
4127
4128 fi
4129 fi
4130 F77=$ac_cv_prog_F77
4131 if test -n "$F77"; then
4132 echo "$as_me:$LINENO: result: $F77" >&5
4133 echo "${ECHO_T}$F77" >&6
4134 else
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137 fi
4138
4139 test -n "$F77" && break
4140 done
4141 fi
4142 if test -z "$F77"; then
4143 ac_ct_F77=$F77
4144 for ac_prog in $coin_f77_comps
4145 do
4146 # Extract the first word of "$ac_prog", so it can be a program name with args.
4147 set dummy $ac_prog; ac_word=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$ac_ct_F77"; then
4154 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_ac_ct_F77="$ac_prog"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169
4170 fi
4171 fi
4172 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4173 if test -n "$ac_ct_F77"; then
4174 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4175 echo "${ECHO_T}$ac_ct_F77" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4179 fi
4180
4181 test -n "$ac_ct_F77" && break
4182 done
4183
4184 F77=$ac_ct_F77
4185 fi
4186
4187
4188 # Provide some information about the compiler.
4189 echo "$as_me:4189:" \
4190 "checking for Fortran 77 compiler version" >&5
4191 ac_compiler=`set X $ac_compile; echo $2`
4192 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4193 (eval $ac_compiler --version </dev/null >&5) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }
4197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4198 (eval $ac_compiler -v </dev/null >&5) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }
4202 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4203 (eval $ac_compiler -V </dev/null >&5) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }
4207 rm -f a.out
4208
4209 # If we don't use `.F' as extension, the preprocessor is not run on the
4210 # input file. (Note that this only needs to work for GNU compilers.)
4211 ac_save_ext=$ac_ext
4212 ac_ext=F
4213 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4214 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4215 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 cat >conftest.$ac_ext <<_ACEOF
4219 program main
4220 #ifndef __GNUC__
4221 choke me
4222 #endif
4223
4224 end
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_f77_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_compiler_gnu=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 ac_compiler_gnu=no
4254 fi
4255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4257
4258 fi
4259 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4260 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4261 ac_ext=$ac_save_ext
4262 ac_test_FFLAGS=${FFLAGS+set}
4263 ac_save_FFLAGS=$FFLAGS
4264 FFLAGS=
4265 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4266 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4267 if test "${ac_cv_prog_f77_g+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 FFLAGS=-g
4271 cat >conftest.$ac_ext <<_ACEOF
4272 program main
4273
4274 end
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_f77_werror_flag"
4286 || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_prog_f77_g=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303 ac_cv_prog_f77_g=no
4304 fi
4305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4306
4307 fi
4308 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4309 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4310 if test "$ac_test_FFLAGS" = set; then
4311 FFLAGS=$ac_save_FFLAGS
4312 elif test $ac_cv_prog_f77_g = yes; then
4313 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4314 FFLAGS="-g -O2"
4315 else
4316 FFLAGS="-g"
4317 fi
4318 else
4319 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4320 FFLAGS="-O2"
4321 else
4322 FFLAGS=
4323 fi
4324 fi
4325
4326 G77=`test $ac_compiler_gnu = yes && echo yes`
4327 ac_ext=f
4328 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4329 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4331
4332 else
4333 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4334 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4335 fi
4336
4337 FFLAGS="$save_fflags"
4338
4339 # Check if a project specific FFLAGS variable has been set
4340 if test x$COIN_PRJCT != x; then
4341 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4342 if test x$coin_tmp = xset; then
4343 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4344 fi
4345 fi
4346
4347 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4348
4349 coin_add_fflags=
4350 coin_opt_fflags=
4351 coin_dbg_fflags=
4352 coin_warn_fflags=
4353
4354 if test "$G77" = "yes"; then
4355 coin_opt_fflags="-O3"
4356 coin_add_fflags="-pipe"
4357 coin_dbg_fflags="-g -O0"
4358 else
4359 case $build in
4360 *-cygwin* | *-mingw*)
4361 case $F77 in
4362 ifort* | */ifort* | IFORT* | */IFORT* )
4363 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4364 coin_opt_fflags='-MD -O3'
4365 coin_dbg_fflags='-MDd -debug'
4366 else
4367 coin_opt_fflags='-MT -O3'
4368 coin_dbg_fflags='-MTd -debug'
4369 fi
4370 coin_add_fflags='-fpp -nologo'
4371 ;;
4372 compile_f2c*)
4373 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4374 coin_opt_fflags='-MD -O2'
4375 coin_dbg_fflags='-MDd'
4376 else
4377 coin_opt_fflags='-MT -O2'
4378 coin_dbg_fflags='-MTd'
4379 fi
4380 coin_add_fflags='-nologo -wd4996'
4381 ;;
4382 esac
4383 ;;
4384 *-linux-*)
4385 case $F77 in
4386 ifc* | */ifc* | ifort* | */ifort*)
4387 coin_opt_fflags="-O3 -ip"
4388 coin_add_fflags="-cm -w90 -w95"
4389 coin_dbg_fflags="-g -CA -CB -CS"
4390 # Check if -i_dynamic is necessary (for new glibc library)
4391 FFLAGS=
4392 cat >conftest.$ac_ext <<_ACEOF
4393 program main
4394 write(*,*) 'Hello world'
4395 end
4396 _ACEOF
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399 (eval $ac_link) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_f77_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest$ac_exeext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 :
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 coin_add_fflags="-i_dynamic $coin_add_fflags"
4425 fi
4426 rm -f conftest.err conftest.$ac_objext \
4427 conftest$ac_exeext conftest.$ac_ext
4428 ;;
4429 pgf77* | */pgf77* | pgf90* | */pgf90*)
4430 coin_opt_fflags="-fast"
4431 coin_add_fflags="-Kieee -pc 64"
4432 coin_dbg_fflags="-g"
4433 ;;
4434 esac
4435 ;;
4436 *-ibm-*)
4437 case "$F77" in
4438 xlf* | */xlf* | mpxlf* | */mpxlf* )
4439 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4440 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4441 coin_dbg_fflags="-g -C"
4442 ;;
4443 esac
4444 ;;
4445 *-hp-*)
4446 coin_opt_fflags="+O3"
4447 coin_add_fflags="+U77"
4448 coin_dbg_fflags="-C -g"
4449 ;;
4450 *-*-solaris*)
4451 coin_opt_fflags="-O4"
4452 coin_dbg_fflags="-g"
4453 ;;
4454 *-sgi-*)
4455 coin_opt_fflags="-O5 -OPT:Olimit=0"
4456 coin_dbg_fflags="-g"
4457 ;;
4458 esac
4459 fi
4460
4461 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4462 coin_dbg_fflags="-g"
4463 fi
4464
4465 if test -z "$coin_opt_fflags"; then
4466 # Try if -O option works if nothing else is set
4467 FFLAGS=-O
4468 cat >conftest.$ac_ext <<_ACEOF
4469 program main
4470 integer i
4471 end
4472 _ACEOF
4473 rm -f conftest.$ac_objext conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_f77_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 coin_opt_fflags="-O"
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 fi
4501 rm -f conftest.err conftest.$ac_objext \
4502 conftest$ac_exeext conftest.$ac_ext
4503 fi
4504
4505 # if PM doesn't want the warning messages, take them out
4506 if test x"$coin_skip_warn_fflags" = xyes; then
4507 coin_warn_fflags=
4508 fi
4509
4510 if test x${DBG_FFLAGS+set} != xset; then
4511 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4512 fi
4513 if test x${OPT_FFLAGS+set} != xset; then
4514 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4515 fi
4516
4517 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4518 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4519
4520 if test "$coin_debug_compile" = "true"; then
4521 FFLAGS="$DBG_FFLAGS"
4522 else
4523 FFLAGS="$OPT_FFLAGS"
4524 fi
4525 else
4526 FFLAGS="$FFLAGS $ADD_FFLAGS"
4527 if test x${DBG_FFLAGS+set} != xset; then
4528 DBG_FFLAGS="$FFLAGS"
4529 fi
4530 if test x${OPT_FFLAGS+set} != xset; then
4531 OPT_FFLAGS="$FFLAGS"
4532 fi
4533 fi
4534
4535 # Try if FFLAGS works
4536 if test "$F77" != "unavailable" ; then
4537 orig_FFLAGS="FFLAGS"
4538 cat >conftest.$ac_ext <<_ACEOF
4539 program main
4540 integer i
4541 end
4542 _ACEOF
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_f77_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 :
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 FFLAGS=
4571 fi
4572 rm -f conftest.err conftest.$ac_objext \
4573 conftest$ac_exeext conftest.$ac_ext
4574 if test -z "$FFLAGS"; then
4575 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5
4576 echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4577 FFLAGS='-O'
4578 cat >conftest.$ac_ext <<_ACEOF
4579 program main
4580 integer i
4581 end
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_f77_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 :
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 FFLAGS=
4611 fi
4612 rm -f conftest.err conftest.$ac_objext \
4613 conftest$ac_exeext conftest.$ac_ext
4614 if test -z "$FFLAGS"; then
4615 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4616 echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4617 fi
4618 fi
4619 fi
4620
4621 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4622 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4623
4624
4625 if test x"$MPIF77" = x; then :; else
4626 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4627 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4628 F77="$MPIF77"
4629 fi
4630
4631 # correct the LD variable if we use the intel fortran compiler in windows
4632 case $build in
4633 *-cygwin* | *-mingw*)
4634 case "$F77" in
4635 ifort* | */ifort* | IFORT* | */IFORT*)
4636 LD=link
4637 ;;
4638 esac
4639 ;;
4640 esac
4641
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647
4648
4649
4650 # Initialize automake and libtool
4651 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4652 {
4653
4654
4655
4656 # START
4657
4658 coin_disable_shared=no
4659 # Test if force_shared has been set
4660 if test "x" = xforce_shared; then
4661 if test x$enable_shared = xno; then
4662 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4663 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4664 { (exit 1); exit 1; }; }
4665 fi
4666 enable_shared=yes;
4667 else
4668 case $build in
4669 *-cygwin* | *-mingw*)
4670 coin_disable_shared=yes
4671 if test x"$enable_shared" = xyes; then
4672 case "$CC" in
4673 clang* )
4674 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4675 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4676 ;;
4677 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4678 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4679 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4680 ;;
4681 *gcc*)
4682 if test x"$enable_dependency_linking" = xyes; then
4683 coin_disable_shared=no
4684 else
4685 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4686 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4687 fi
4688 ;;
4689 *)
4690 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4691 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4692 ;;
4693 esac
4694 fi
4695 ;;
4696 *-aix*)
4697 coin_disable_shared=yes
4698 platform=AIX
4699 if test x"$enable_shared" = xyes; then
4700 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4701 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4702 fi
4703 ;;
4704 esac
4705 fi
4706 if test x"$coin_disable_shared" = xyes; then
4707 if test x"$enable_shared" = xyes; then
4708 :
4709 else
4710 # we don't disable shared, because it was not selected anyway
4711 coin_disable_shared=no
4712 fi
4713 enable_shared=no
4714 fi
4715 # By default, we only want the shared objects to be compiled
4716 # Check whether --enable-static or --disable-static was given.
4717 if test "${enable_static+set}" = set; then
4718 enableval="$enable_static"
4719 p=${PACKAGE-default}
4720 case $enableval in
4721 yes) enable_static=yes ;;
4722 no) enable_static=no ;;
4723 *)
4724 enable_static=no
4725 # Look at the argument we got. We use all the common list separators.
4726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4727 for pkg in $enableval; do
4728 IFS="$lt_save_ifs"
4729 if test "X$pkg" = "X$p"; then
4730 enable_static=yes
4731 fi
4732 done
4733 IFS="$lt_save_ifs"
4734 ;;
4735 esac
4736 else
4737 enable_static=no
4738 fi;
4739
4740
4741
4742
4743 # Initialize automake
4744 echo "$as_me:$LINENO: checking for egrep" >&5
4745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4746 if test "${ac_cv_prog_egrep+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4750 then ac_cv_prog_egrep='grep -E'
4751 else ac_cv_prog_egrep='egrep'
4752 fi
4753 fi
4754 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4755 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4756 EGREP=$ac_cv_prog_egrep
4757
4758
4759 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4760 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4761 LN_S=$as_ln_s
4762 if test "$LN_S" = "ln -s"; then
4763 echo "$as_me:$LINENO: result: yes" >&5
4764 echo "${ECHO_T}yes" >&6
4765 else
4766 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4767 echo "${ECHO_T}no, using $LN_S" >&6
4768 fi
4769
4770 am__api_version="1.9"
4771 # Find a good install program. We prefer a C program (faster),
4772 # so one script is as good as another. But avoid the broken or
4773 # incompatible versions:
4774 # SysV /etc/install, /usr/sbin/install
4775 # SunOS /usr/etc/install
4776 # IRIX /sbin/install
4777 # AIX /bin/install
4778 # AmigaOS /C/install, which installs bootblocks on floppy discs
4779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4782 # OS/2's system install, which has a completely different semantic
4783 # ./install, which can be erroneously created by make from ./install.sh.
4784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4786 if test -z "$INSTALL"; then
4787 if test "${ac_cv_path_install+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 # Account for people who put trailing slashes in PATH elements.
4796 case $as_dir/ in
4797 ./ | .// | /cC/* | \
4798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4799 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4800 /usr/ucb/* ) ;;
4801 *)
4802 # OSF1 and SCO ODT 3.0 have their own names for install.
4803 # Don't use installbsd from OSF since it installs stuff as root
4804 # by default.
4805 for ac_prog in ginstall scoinst install; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4808 if test $ac_prog = install &&
4809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4810 # AIX install. It has an incompatible calling convention.
4811 :
4812 elif test $ac_prog = install &&
4813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4814 # program-specific install script used by HP pwplus--don't use.
4815 :
4816 else
4817 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4818 break 3
4819 fi
4820 fi
4821 done
4822 done
4823 ;;
4824 esac
4825 done
4826
4827
4828 fi
4829 if test "${ac_cv_path_install+set}" = set; then
4830 INSTALL=$ac_cv_path_install
4831 else
4832 # As a last resort, use the slow shell script. We don't cache a
4833 # path for INSTALL within a source directory, because that will
4834 # break other packages using the cache if that directory is
4835 # removed, or if the path is relative.
4836 INSTALL=$ac_install_sh
4837 fi
4838 fi
4839 echo "$as_me:$LINENO: result: $INSTALL" >&5
4840 echo "${ECHO_T}$INSTALL" >&6
4841
4842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4843 # It thinks the first close brace ends the variable substitution.
4844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4845
4846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4847
4848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4849
4850 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4851 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4852 # Just in case
4853 sleep 1
4854 echo timestamp > conftest.file
4855 # Do `set' in a subshell so we don't clobber the current shell's
4856 # arguments. Must try -L first in case configure is actually a
4857 # symlink; some systems play weird games with the mod time of symlinks
4858 # (eg FreeBSD returns the mod time of the symlink's containing
4859 # directory).
4860 if (
4861 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4862 if test "$*" = "X"; then
4863 # -L didn't work.
4864 set X `ls -t $srcdir/configure conftest.file`
4865 fi
4866 rm -f conftest.file
4867 if test "$*" != "X $srcdir/configure conftest.file" \
4868 && test "$*" != "X conftest.file $srcdir/configure"; then
4869
4870 # If neither matched, then we have a broken ls. This can happen
4871 # if, for instance, CONFIG_SHELL is bash and it inherits a
4872 # broken ls alias from the environment. This has actually
4873 # happened. Such a system could not be considered "sane".
4874 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4875 alias in your environment" >&5
4876 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4877 alias in your environment" >&2;}
4878 { (exit 1); exit 1; }; }
4879 fi
4880
4881 test "$2" = conftest.file
4882 )
4883 then
4884 # Ok.
4885 :
4886 else
4887 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4888 Check your system clock" >&5
4889 echo "$as_me: error: newly created file is older than distributed files!
4890 Check your system clock" >&2;}
4891 { (exit 1); exit 1; }; }
4892 fi
4893 echo "$as_me:$LINENO: result: yes" >&5
4894 echo "${ECHO_T}yes" >&6
4895 test "$program_prefix" != NONE &&
4896 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4897 # Use a double $ so make ignores it.
4898 test "$program_suffix" != NONE &&
4899 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4900 # Double any \ or $. echo might interpret backslashes.
4901 # By default was `s,x,x', remove it if useless.
4902 cat <<\_ACEOF >conftest.sed
4903 s/[\\$]/&&/g;s/;s,x,x,$//
4904 _ACEOF
4905 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4906 rm conftest.sed
4907
4908 # expand $ac_aux_dir to an absolute path
4909 am_aux_dir=`cd $ac_aux_dir && pwd`
4910
4911 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4912 # Use eval to expand $SHELL
4913 if eval "$MISSING --run true"; then
4914 am_missing_run="$MISSING --run "
4915 else
4916 am_missing_run=
4917 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4918 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4919 fi
4920
4921 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4922 # We used to keeping the `.' as first argument, in order to
4923 # allow $(mkdir_p) to be used without argument. As in
4924 # $(mkdir_p) $(somedir)
4925 # where $(somedir) is conditionally defined. However this is wrong
4926 # for two reasons:
4927 # 1. if the package is installed by a user who cannot write `.'
4928 # make install will fail,
4929 # 2. the above comment should most certainly read
4930 # $(mkdir_p) $(DESTDIR)$(somedir)
4931 # so it does not work when $(somedir) is undefined and
4932 # $(DESTDIR) is not.
4933 # To support the latter case, we have to write
4934 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4935 # so the `.' trick is pointless.
4936 mkdir_p='mkdir -p --'
4937 else
4938 # On NextStep and OpenStep, the `mkdir' command does not
4939 # recognize any option. It will interpret all options as
4940 # directories to create, and then abort because `.' already
4941 # exists.
4942 for d in ./-p ./--version;
4943 do
4944 test -d $d && rmdir $d
4945 done
4946 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4947 if test -f "$ac_aux_dir/mkinstalldirs"; then
4948 mkdir_p='$(mkinstalldirs)'
4949 else
4950 mkdir_p='$(install_sh) -d'
4951 fi
4952 fi
4953
4954 for ac_prog in gawk mawk nawk awk
4955 do
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_AWK+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$AWK"; then
4964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_AWK="$ac_prog"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977 done
4978 done
4979
4980 fi
4981 fi
4982 AWK=$ac_cv_prog_AWK
4983 if test -n "$AWK"; then
4984 echo "$as_me:$LINENO: result: $AWK" >&5
4985 echo "${ECHO_T}$AWK" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4989 fi
4990
4991 test -n "$AWK" && break
4992 done
4993
4994 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4995 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.make <<\_ACEOF
5001 all:
5002 @echo 'ac_maketemp="$(MAKE)"'
5003 _ACEOF
5004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5005 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5006 if test -n "$ac_maketemp"; then
5007 eval ac_cv_prog_make_${ac_make}_set=yes
5008 else
5009 eval ac_cv_prog_make_${ac_make}_set=no
5010 fi
5011 rm -f conftest.make
5012 fi
5013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5014 echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5016 SET_MAKE=
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5020 SET_MAKE="MAKE=${MAKE-make}"
5021 fi
5022
5023 rm -rf .tst 2>/dev/null
5024 mkdir .tst 2>/dev/null
5025 if test -d .tst; then
5026 am__leading_dot=.
5027 else
5028 am__leading_dot=_
5029 fi
5030 rmdir .tst 2>/dev/null
5031
5032 DEPDIR="${am__leading_dot}deps"
5033
5034 ac_config_commands="$ac_config_commands depfiles"
5035
5036
5037 am_make=${MAKE-make}
5038 cat > confinc << 'END'
5039 am__doit:
5040 @echo done
5041 .PHONY: am__doit
5042 END
5043 # If we don't find an include directive, just comment out the code.
5044 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5045 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5046 am__include="#"
5047 am__quote=
5048 _am_result=none
5049 # First try GNU make style include.
5050 echo "include confinc" > confmf
5051 # We grep out `Entering directory' and `Leaving directory'
5052 # messages which can occur if `w' ends up in MAKEFLAGS.
5053 # In particular we don't look at `^make:' because GNU make might
5054 # be invoked under some other name (usually "gmake"), in which
5055 # case it prints its new name instead of `make'.
5056 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5057 am__include=include
5058 am__quote=
5059 _am_result=GNU
5060 fi
5061 # Now try BSD make style include.
5062 if test "$am__include" = "#"; then
5063 echo '.include "confinc"' > confmf
5064 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5065 am__include=.include
5066 am__quote="\""
5067 _am_result=BSD
5068 fi
5069 fi
5070
5071
5072 echo "$as_me:$LINENO: result: $_am_result" >&5
5073 echo "${ECHO_T}$_am_result" >&6
5074 rm -f confinc confmf
5075
5076 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5077 if test "${enable_dependency_tracking+set}" = set; then
5078 enableval="$enable_dependency_tracking"
5079
5080 fi;
5081 if test "x$enable_dependency_tracking" != xno; then
5082 am_depcomp="$ac_aux_dir/depcomp"
5083 AMDEPBACKSLASH='\'
5084 fi
5085
5086
5087 if test "x$enable_dependency_tracking" != xno; then
5088 AMDEP_TRUE=
5089 AMDEP_FALSE='#'
5090 else
5091 AMDEP_TRUE='#'
5092 AMDEP_FALSE=
5093 fi
5094
5095
5096
5097
5098
5099
5100 # AC_MSG_NOTICE([Beginning automake initialisation.])
5101 # Stuff for automake
5102 # test to see if srcdir already configured
5103 if test "`cd $srcdir && pwd`" != "`pwd`" &&
5104 test -f $srcdir/config.status; then
5105 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5106 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5107 { (exit 1); exit 1; }; }
5108 fi
5109
5110 # test whether we have cygpath
5111 if test -z "$CYGPATH_W"; then
5112 if (cygpath --version) >/dev/null 2>/dev/null; then
5113 CYGPATH_W='cygpath -w'
5114 else
5115 CYGPATH_W=echo
5116 fi
5117 fi
5118
5119
5120 # Define the identity of the package.
5121 PACKAGE='symphony'
5122 VERSION='5.7.2'
5123
5124
5125 cat >>confdefs.h <<_ACEOF
5126 #define PACKAGE "$PACKAGE"
5127 _ACEOF
5128
5129
5130 cat >>confdefs.h <<_ACEOF
5131 #define VERSION "$VERSION"
5132 _ACEOF
5133
5134 # Some tools Automake needs.
5135
5136 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5137
5138
5139 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5140
5141
5142 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5143
5144
5145 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5146
5147
5148 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5149
5150 install_sh=${install_sh-"$am_aux_dir/install-sh"}
5151
5152 # Installed binaries are usually stripped using `strip' when the user
5153 # run `make install-strip'. However `strip' might not be the right
5154 # tool to use in cross-compilation environments, therefore Automake
5155 # will honor the `STRIP' environment variable to overrule this program.
5156 if test "$cross_compiling" != no; then
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}strip; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_STRIP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$STRIP"; then
5166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181
5182 fi
5183 fi
5184 STRIP=$ac_cv_prog_STRIP
5185 if test -n "$STRIP"; then
5186 echo "$as_me:$LINENO: result: $STRIP" >&5
5187 echo "${ECHO_T}$STRIP" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193 fi
5194 if test -z "$ac_cv_prog_STRIP"; then
5195 ac_ct_STRIP=$STRIP
5196 # Extract the first word of "strip", so it can be a program name with args.
5197 set dummy strip; ac_word=$2
5198 echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 if test -n "$ac_ct_STRIP"; then
5204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_ac_ct_STRIP="strip"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219
5220 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5221 fi
5222 fi
5223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5224 if test -n "$ac_ct_STRIP"; then
5225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5226 echo "${ECHO_T}$ac_ct_STRIP" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231
5232 STRIP=$ac_ct_STRIP
5233 else
5234 STRIP="$ac_cv_prog_STRIP"
5235 fi
5236
5237 fi
5238 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5239
5240 # We need awk for the "check" target. The system "awk" is bad on
5241 # some platforms.
5242 # Always define AMTAR for backward compatibility.
5243
5244 AMTAR=${AMTAR-"${am_missing_run}tar"}
5245
5246 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5247
5248
5249
5250
5251 depcc="$CC" am_compiler_list=
5252
5253 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5254 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5255 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
5262 # making a dummy file named `D' -- because `-MD' means `put the output
5263 # in D'.
5264 mkdir conftest.dir
5265 # Copy depcomp to subdir because otherwise we won't find it if we're
5266 # using a relative directory.
5267 cp "$am_depcomp" conftest.dir
5268 cd conftest.dir
5269 # We will build objects and dependencies in a subdirectory because
5270 # it helps to detect inapplicable dependency modes. For instance
5271 # both Tru64's cc and ICC support -MD to output dependencies as a
5272 # side effect of compilation, but ICC will put the dependencies in
5273 # the current directory while Tru64 will put them in the object
5274 # directory.
5275 mkdir sub
5276
5277 am_cv_CC_dependencies_compiler_type=none
5278 if test "$am_compiler_list" = ""; then
5279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5280 fi
5281 for depmode in $am_compiler_list; do
5282 # Setup a source with many dependencies, because some compilers
5283 # like to wrap large dependency lists on column 80 (with \), and
5284 # we should not choose a depcomp mode which is confused by this.
5285 #
5286 # We need to recreate these files for each test, as the compiler may
5287 # overwrite some of them when testing with obscure command lines.
5288 # This happens at least with the AIX C compiler.
5289 : > sub/conftest.c
5290 for i in 1 2 3 4 5 6; do
5291 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5292 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5293 # Solaris 8's {/usr,}/bin/sh.
5294 touch sub/conftst$i.h
5295 done
5296 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5297
5298 case $depmode in
5299 nosideeffect)
5300 # after this tag, mechanisms are not by side-effect, so they'll
5301 # only be used when explicitly requested
5302 if test "x$enable_dependency_tracking" = xyes; then
5303 continue
5304 else
5305 break
5306 fi
5307 ;;
5308 none) break ;;
5309 esac
5310 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5311 # mode. It turns out that the SunPro C++ compiler does not properly
5312 # handle `-M -o', and we need to detect this.
5313 if depmode=$depmode \
5314 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5316 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5317 >/dev/null 2>conftest.err &&
5318 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5319 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5320 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5321 # icc doesn't choke on unknown options, it will just issue warnings
5322 # or remarks (even with -Werror). So we grep stderr for any message
5323 # that says an option was ignored or not supported.
5324 # When given -MP, icc 7.0 and 7.1 complain thusly:
5325 # icc: Command line warning: ignoring option '-M'; no argument required
5326 # The diagnosis changed in icc 8.0:
5327 # icc: Command line remark: option '-MP' not supported
5328 if (grep 'ignoring option' conftest.err ||
5329 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5330 am_cv_CC_dependencies_compiler_type=$depmode
5331 break
5332 fi
5333 fi
5334 done
5335
5336 cd ..
5337 rm -rf conftest.dir
5338 else
5339 am_cv_CC_dependencies_compiler_type=none
5340 fi
5341
5342 fi
5343 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5344 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5345 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5346
5347
5348
5349 if
5350 test "x$enable_dependency_tracking" != xno \
5351 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5352 am__fastdepCC_TRUE=
5353 am__fastdepCC_FALSE='#'
5354 else
5355 am__fastdepCC_TRUE='#'
5356 am__fastdepCC_FALSE=
5357 fi
5358
5359
5360 depcc="$CXX" am_compiler_list=
5361
5362 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5363 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5364 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5368 # We make a subdir and do the tests there. Otherwise we can end up
5369 # making bogus files that we don't know about and never remove. For
5370 # instance it was reported that on HP-UX the gcc test will end up
5371 # making a dummy file named `D' -- because `-MD' means `put the output
5372 # in D'.
5373 mkdir conftest.dir
5374 # Copy depcomp to subdir because otherwise we won't find it if we're
5375 # using a relative directory.
5376 cp "$am_depcomp" conftest.dir
5377 cd conftest.dir
5378 # We will build objects and dependencies in a subdirectory because
5379 # it helps to detect inapplicable dependency modes. For instance
5380 # both Tru64's cc and ICC support -MD to output dependencies as a
5381 # side effect of compilation, but ICC will put the dependencies in
5382 # the current directory while Tru64 will put them in the object
5383 # directory.
5384 mkdir sub
5385
5386 am_cv_CXX_dependencies_compiler_type=none
5387 if test "$am_compiler_list" = ""; then
5388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5389 fi
5390 for depmode in $am_compiler_list; do
5391 # Setup a source with many dependencies, because some compilers
5392 # like to wrap large dependency lists on column 80 (with \), and
5393 # we should not choose a depcomp mode which is confused by this.
5394 #
5395 # We need to recreate these files for each test, as the compiler may
5396 # overwrite some of them when testing with obscure command lines.
5397 # This happens at least with the AIX C compiler.
5398 : > sub/conftest.c
5399 for i in 1 2 3 4 5 6; do
5400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5401 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5402 # Solaris 8's {/usr,}/bin/sh.
5403 touch sub/conftst$i.h
5404 done
5405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5406
5407 case $depmode in
5408 nosideeffect)
5409 # after this tag, mechanisms are not by side-effect, so they'll
5410 # only be used when explicitly requested
5411 if test "x$enable_dependency_tracking" = xyes; then
5412 continue
5413 else
5414 break
5415 fi
5416 ;;
5417 none) break ;;
5418 esac
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this.
5422 if depmode=$depmode \
5423 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5425 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5426 >/dev/null 2>conftest.err &&
5427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5428 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5430 # icc doesn't choke on unknown options, it will just issue warnings
5431 # or remarks (even with -Werror). So we grep stderr for any message
5432 # that says an option was ignored or not supported.
5433 # When given -MP, icc 7.0 and 7.1 complain thusly:
5434 # icc: Command line warning: ignoring option '-M'; no argument required
5435 # The diagnosis changed in icc 8.0:
5436 # icc: Command line remark: option '-MP' not supported
5437 if (grep 'ignoring option' conftest.err ||
5438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5439 am_cv_CXX_dependencies_compiler_type=$depmode
5440 break
5441 fi
5442 fi
5443 done
5444
5445 cd ..
5446 rm -rf conftest.dir
5447 else
5448 am_cv_CXX_dependencies_compiler_type=none
5449 fi
5450
5451 fi
5452 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5453 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5454 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5455
5456
5457
5458 if
5459 test "x$enable_dependency_tracking" != xno \
5460 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5461 am__fastdepCXX_TRUE=
5462 am__fastdepCXX_FALSE='#'
5463 else
5464 am__fastdepCXX_TRUE='#'
5465 am__fastdepCXX_FALSE=
5466 fi
5467
5468
5469
5470 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5471 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5472 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5473 if test "${enable_maintainer_mode+set}" = set; then
5474 enableval="$enable_maintainer_mode"
5475 USE_MAINTAINER_MODE=$enableval
5476 else
5477 USE_MAINTAINER_MODE=no
5478 fi;
5479 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5480 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5481
5482
5483 if test $USE_MAINTAINER_MODE = yes; then
5484 MAINTAINER_MODE_TRUE=
5485 MAINTAINER_MODE_FALSE='#'
5486 else
5487 MAINTAINER_MODE_TRUE='#'
5488 MAINTAINER_MODE_FALSE=
5489 fi
5490
5491 MAINT=$MAINTAINER_MODE_TRUE
5492
5493
5494
5495 coin_have_externals=no
5496 if test "$enable_maintainer_mode" = yes; then
5497
5498 # If maintainer mode is chosen, we make sure that the correct versions
5499 # of the tools are used, and that we know where libtool.m4 is (to
5500 # recreate acinclude.m4)
5501
5502
5503 LIBTOOLM4=
5504 # Normally, $HOME
5505 AUTOTOOLS_DFLT=$HOME
5506
5507 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5508 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5509 if test "${ac_cv_use_correct_autotools+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 ac_cv_use_correct_autotools=check
5513 fi
5514 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5515 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5516
5517 if test $ac_cv_use_correct_autotools = check; then
5518 ac_cv_use_correct_autotools=yes
5519 # Check if we have autoconf
5520 # Extract the first word of "autoconf", so it can be a program name with args.
5521 set dummy autoconf; ac_word=$2
5522 echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524 if test "${ac_cv_prog_have_autoconf+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 if test -n "$have_autoconf"; then
5528 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_have_autoconf="yes"
5538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
5540 fi
5541 done
5542 done
5543
5544 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5545 fi
5546 fi
5547 have_autoconf=$ac_cv_prog_have_autoconf
5548 if test -n "$have_autoconf"; then
5549 echo "$as_me:$LINENO: result: $have_autoconf" >&5
5550 echo "${ECHO_T}$have_autoconf" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6
5554 fi
5555
5556 if test $have_autoconf = no; then
5557 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5558 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5559 { (exit 1); exit 1; }; }
5560 fi
5561
5562 # Check whether autoconf is the correct version
5563 correct_version='2.59'
5564 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5565 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5566 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5567 autoconf --version > confauto.out 2>&1
5568 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5569 echo "$as_me:$LINENO: result: yes" >&5
5570 echo "${ECHO_T}yes" >&6
5571 else
5572 rm -f confauto.out
5573 echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5575 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5576 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5577 { (exit 1); exit 1; }; }
5578 fi
5579 rm -f confauto.out
5580
5581 # Check if the executable autoconf is picked up from the correct location
5582 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5583 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5584 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5585 autoconf_dir=`cd $autoconf_dir; pwd`
5586 if test x$AUTOTOOLS_DIR = x; then
5587 want_dir=$AUTOTOOLS_DFLT/bin
5588 else
5589 want_dir=$AUTOTOOLS_DIR/bin
5590 fi
5591 if test $autoconf_dir = `cd $want_dir; pwd`; then
5592 echo "$as_me:$LINENO: result: yes" >&5
5593 echo "${ECHO_T}yes" >&6
5594 else
5595 rm -f confauto.out
5596 echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5598 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5599 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5600 { (exit 1); exit 1; }; }
5601 fi
5602
5603 # Check if we have automake
5604 # Extract the first word of "automake", so it can be a program name with args.
5605 set dummy automake; ac_word=$2
5606 echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608 if test "${ac_cv_prog_have_automake+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 if test -n "$have_automake"; then
5612 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_have_automake="yes"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627
5628 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5629 fi
5630 fi
5631 have_automake=$ac_cv_prog_have_automake
5632 if test -n "$have_automake"; then
5633 echo "$as_me:$LINENO: result: $have_automake" >&5
5634 echo "${ECHO_T}$have_automake" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5638 fi
5639
5640 if test $have_automake = no; then
5641 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5642 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5643 { (exit 1); exit 1; }; }
5644 fi
5645
5646 # Check whether automake is the correct version
5647 correct_version='1.9.6'
5648 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5649 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5650 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5651 automake --version > confauto.out 2>&1
5652 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5653 echo "$as_me:$LINENO: result: yes" >&5
5654 echo "${ECHO_T}yes" >&6
5655 else
5656 rm -f confauto.out
5657 echo "$as_me:$LINENO: result: no" >&5
5658 echo "${ECHO_T}no" >&6
5659 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5660 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5661 { (exit 1); exit 1; }; }
5662 fi
5663 rm -f confauto.out
5664
5665 # Check if the executable automake is picked up from the correct location
5666 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5667 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5668 automake_dir=`which automake | sed -e 's=/automake=='`
5669 automake_dir=`cd $automake_dir; pwd`
5670 if test x$AUTOTOOLS_DIR = x; then
5671 want_dir=$AUTOTOOLS_DFLT/bin
5672 else
5673 want_dir=$AUTOTOOLS_DIR/bin
5674 fi
5675 if test $automake_dir = `cd $want_dir; pwd`; then
5676 echo "$as_me:$LINENO: result: yes" >&5
5677 echo "${ECHO_T}yes" >&6
5678 else
5679 rm -f confauto.out
5680 echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5682 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5683 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5684 { (exit 1); exit 1; }; }
5685 fi
5686
5687 # Check if this is the correct version of libtool (with escaped dots)
5688 if test x$AUTOTOOLS_DIR = x; then
5689 want_dir=$AUTOTOOLS_DFLT/share
5690 else
5691 want_dir=$AUTOTOOLS_DIR/share
5692 fi
5693 correct_version='1.5.22'
5694 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5695 if test -r $want_dir/libtool/ltmain.sh; then
5696 have_ltmain=yes
5697 :
5698 else
5699 have_ltmain=no
5700 :
5701 fi
5702
5703 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5704 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5705 if test $have_ltmain = yes; then
5706 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708 echo "${ECHO_T}yes" >&6
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6
5712 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5713 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5714 { (exit 1); exit 1; }; }
5715 fi
5716 else
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5719 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5720 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5721 { (exit 1); exit 1; }; }
5722 fi
5723 fi
5724
5725 # Check if we can find the libtool file
5726 if test x$AUTOTOOLS_DIR = x; then
5727 want_dir=$AUTOTOOLS_DFLT/share
5728 else
5729 want_dir=$AUTOTOOLS_DIR/share
5730 fi
5731 if test -r $want_dir/aclocal/libtool.m4; then
5732 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5733 :
5734 else
5735 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5736 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5737 { (exit 1); exit 1; }; }
5738 :
5739 fi
5740
5741
5742 # Check if we have an Dependencies file
5743 if test -r $srcdir/Dependencies; then
5744 coin_have_externals=yes
5745 fi
5746 # Check if subversion is installed and understands https
5747 # Extract the first word of "svn", so it can be a program name with args.
5748 set dummy svn; ac_word=$2
5749 echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751 if test "${ac_cv_prog_have_svn+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 if test -n "$have_svn"; then
5755 ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_have_svn="yes"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770
5771 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5772 fi
5773 fi
5774 have_svn=$ac_cv_prog_have_svn
5775 if test -n "$have_svn"; then
5776 echo "$as_me:$LINENO: result: $have_svn" >&5
5777 echo "${ECHO_T}$have_svn" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5781 fi
5782
5783 if test x$have_svn = xyes; then
5784 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5785 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5786 if test "${ac_cv_svn_understands_https+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 svn --version > confauto.out 2>&1
5790 if $EGREP https confauto.out >/dev/null 2>&1; then
5791 ac_cv_svn_understands_https=yes
5792 else
5793 ac_cv_svn_understands_https=no
5794 have_svn=no
5795 ac_cv_prog_have_svn=no
5796 fi
5797 rm -f confauto.out
5798 fi
5799 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5800 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5801 fi
5802
5803 # Find the location of the BuildTools directory
5804 BUILDTOOLSDIR=
5805 if test -r $srcdir/BuildTools/coin.m4; then
5806 BUILDTOOLSDIR=$srcdir/BuildTools
5807 elif test -r $srcdir/../BuildTools/coin.m4; then
5808 BUILDTOOLSDIR=$srcdir/../BuildTools
5809 elif test -r $srcdir/../../BuildTools/coin.m4; then
5810 BUILDTOOLSDIR=$srcdir/../../BuildTools
5811 elif test -r $srcdir/../../../BuildTools/coin.m4; then
5812 BUILDTOOLSDIR=$srcdir/../../../BuildTools
5813 else
5814 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5815 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5816 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5817 fi
5818
5819
5820 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5821 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5822 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5823 fi
5824
5825 # The following variable is set to the name of the directory where
5826 # the autotool scripts are located
5827
5828 AUX_DIR=$ac_aux_dir
5829 fi
5830
5831 # helpful variable for the base directory of this package
5832 abs_source_dir=`cd $srcdir; pwd`
5833
5834
5835 # Stuff for example Makefiles
5836 if test x$prefix = xNONE; then
5837 full_prefix=$ac_default_prefix
5838 else
5839 full_prefix=$prefix
5840 fi
5841
5842
5843 abs_lib_dir=$full_prefix/lib
5844
5845 abs_include_dir=$full_prefix/include
5846
5847 abs_bin_dir=$full_prefix/bin
5848
5849
5850
5851 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5852 HAVE_EXTERNALS_TRUE=
5853 HAVE_EXTERNALS_FALSE='#'
5854 else
5855 HAVE_EXTERNALS_TRUE='#'
5856 HAVE_EXTERNALS_FALSE=
5857 fi
5858
5859
5860 # AC_MSG_NOTICE([End automake initialisation.])
5861
5862
5863
5864 LIBTOOL=
5865 if test -f ../libtool; then
5866 coin_config_dir=..
5867 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5868 fi
5869 if test "x$LIBTOOL" = x; then
5870 if test -f ../../libtool; then
5871 coin_config_dir=../..
5872 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5873 fi
5874 fi
5875
5876 if test "x$LIBTOOL" = x; then
5877 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5878 # Stuff for libtool
5879 # Check whether --enable-shared or --disable-shared was given.
5880 if test "${enable_shared+set}" = set; then
5881 enableval="$enable_shared"
5882 p=${PACKAGE-default}
5883 case $enableval in
5884 yes) enable_shared=yes ;;
5885 no) enable_shared=no ;;
5886 *)
5887 enable_shared=no
5888 # Look at the argument we got. We use all the common list separators.
5889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5890 for pkg in $enableval; do
5891 IFS="$lt_save_ifs"
5892 if test "X$pkg" = "X$p"; then
5893 enable_shared=yes
5894 fi
5895 done
5896 IFS="$lt_save_ifs"
5897 ;;
5898 esac
5899 else
5900 enable_shared=yes
5901 fi;
5902
5903 # Check whether --enable-fast-install or --disable-fast-install was given.
5904 if test "${enable_fast_install+set}" = set; then
5905 enableval="$enable_fast_install"
5906 p=${PACKAGE-default}
5907 case $enableval in
5908 yes) enable_fast_install=yes ;;
5909 no) enable_fast_install=no ;;
5910 *)
5911 enable_fast_install=no
5912 # Look at the argument we got. We use all the common list separators.
5913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5914 for pkg in $enableval; do
5915 IFS="$lt_save_ifs"
5916 if test "X$pkg" = "X$p"; then
5917 enable_fast_install=yes
5918 fi
5919 done
5920 IFS="$lt_save_ifs"
5921 ;;
5922 esac
5923 else
5924 enable_fast_install=yes
5925 fi;
5926
5927 echo "$as_me:$LINENO: checking host system type" >&5
5928 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5929 if test "${ac_cv_host+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 ac_cv_host_alias=$host_alias
5933 test -z "$ac_cv_host_alias" &&
5934 ac_cv_host_alias=$ac_cv_build_alias
5935 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5936 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5937 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5938 { (exit 1); exit 1; }; }
5939
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5942 echo "${ECHO_T}$ac_cv_host" >&6
5943 host=$ac_cv_host
5944 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5945 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5946 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5947
5948
5949 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5950 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5951 if test "${lt_cv_path_SED+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 # Loop through the user's path and test for sed and gsed.
5955 # Then use that list of sed's as ones to test for truncation.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for lt_ac_prog in sed gsed; do
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5964 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5965 fi
5966 done
5967 done
5968 done
5969 lt_ac_max=0
5970 lt_ac_count=0
5971 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5972 # along with /bin/sed that truncates output.
5973 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5974 test ! -f $lt_ac_sed && continue
5975 cat /dev/null > conftest.in
5976 lt_ac_count=0
5977 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5978 # Check for GNU sed and select it if it is found.
5979 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5980 lt_cv_path_SED=$lt_ac_sed
5981 break
5982 fi
5983 while true; do
5984 cat conftest.in conftest.in >conftest.tmp
5985 mv conftest.tmp conftest.in
5986 cp conftest.in conftest.nl
5987 echo >>conftest.nl
5988 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5989 cmp -s conftest.out conftest.nl || break
5990 # 10000 chars as input seems more than enough
5991 test $lt_ac_count -gt 10 && break
5992 lt_ac_count=`expr $lt_ac_count + 1`
5993 if test $lt_ac_count -gt $lt_ac_max; then
5994 lt_ac_max=$lt_ac_count
5995 lt_cv_path_SED=$lt_ac_sed
5996 fi
5997 done
5998 done
5999
6000 fi
6001
6002 SED=$lt_cv_path_SED
6003 echo "$as_me:$LINENO: result: $SED" >&5
6004 echo "${ECHO_T}$SED" >&6
6005
6006
6007 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6008 if test "${with_gnu_ld+set}" = set; then
6009 withval="$with_gnu_ld"
6010 test "$withval" = no || with_gnu_ld=yes
6011 else
6012 with_gnu_ld=no
6013 fi;
6014 ac_prog=ld
6015 if test "$GCC" = yes; then
6016 # Check if gcc -print-prog-name=ld gives a path.
6017 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6018 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6019 case $host in
6020 *-*-mingw*)
6021 # gcc leaves a trailing carriage return which upsets mingw
6022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6023 *)
6024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6025 esac
6026 case $ac_prog in
6027 # Accept absolute paths.
6028 [\\/]* | ?:[\\/]*)
6029 re_direlt='/[^/][^/]*/\.\./'
6030 # Canonicalize the pathname of ld
6031 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6033 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6034 done
6035 test -z "$LD" && LD="$ac_prog"
6036 ;;
6037 "")
6038 # If it fails, then pretend we aren't using GCC.
6039 ac_prog=ld
6040 ;;
6041 *)
6042 # If it is relative, then search for the first ld in PATH.
6043 with_gnu_ld=unknown
6044 ;;
6045 esac
6046 elif test "$with_gnu_ld" = yes; then
6047 echo "$as_me:$LINENO: checking for GNU ld" >&5
6048 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6049 else
6050 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6051 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6052 fi
6053 if test "${lt_cv_path_LD+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 if test -z "$LD"; then
6057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6058 for ac_dir in $PATH; do
6059 IFS="$lt_save_ifs"
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6062 lt_cv_path_LD="$ac_dir/$ac_prog"
6063 # Check to see if the program is GNU ld. I'd rather use --version,
6064 # but apparently some variants of GNU ld only accept -v.
6065 # Break only if it was the GNU/non-GNU ld that we prefer.
6066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6067 *GNU* | *'with BFD'*)
6068 test "$with_gnu_ld" != no && break
6069 ;;
6070 *)
6071 test "$with_gnu_ld" != yes && break
6072 ;;
6073 esac
6074 fi
6075 done
6076 IFS="$lt_save_ifs"
6077 else
6078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6079 fi
6080 fi
6081
6082 LD="$lt_cv_path_LD"
6083 if test -n "$LD"; then
6084 echo "$as_me:$LINENO: result: $LD" >&5
6085 echo "${ECHO_T}$LD" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6089 fi
6090 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6091 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6092 { (exit 1); exit 1; }; }
6093 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6094 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6095 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6099 case `$LD -v 2>&1 </dev/null` in
6100 *GNU* | *'with BFD'*)
6101 lt_cv_prog_gnu_ld=yes
6102 ;;
6103 *)
6104 lt_cv_prog_gnu_ld=no
6105 ;;
6106 esac
6107 fi
6108 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6109 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6110 with_gnu_ld=$lt_cv_prog_gnu_ld
6111
6112
6113 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6114 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6115 if test "${lt_cv_ld_reload_flag+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 lt_cv_ld_reload_flag='-r'
6119 fi
6120 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6121 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6122 reload_flag=$lt_cv_ld_reload_flag
6123 case $reload_flag in
6124 "" | " "*) ;;
6125 *) reload_flag=" $reload_flag" ;;
6126 esac
6127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6128 case $host_os in
6129 darwin*)
6130 if test "$GCC" = yes; then
6131 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6132 else
6133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6134 fi
6135 ;;
6136 esac
6137
6138 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6139 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6140 if test "${lt_cv_path_NM+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 if test -n "$NM"; then
6144 # Let the user override the test.
6145 lt_cv_path_NM="$NM"
6146 else
6147 lt_nm_to_check="${ac_tool_prefix}nm"
6148 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6149 lt_nm_to_check="$lt_nm_to_check nm"
6150 fi
6151 for lt_tmp_nm in $lt_nm_to_check; do
6152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6153 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6154 IFS="$lt_save_ifs"
6155 test -z "$ac_dir" && ac_dir=.
6156 tmp_nm="$ac_dir/$lt_tmp_nm"
6157 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6158 # Check to see if the nm accepts a BSD-compat flag.
6159 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6160 # nm: unknown option "B" ignored
6161 # Tru64's nm complains that /dev/null is an invalid object file
6162 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6163 */dev/null* | *'Invalid file or object type'*)
6164 lt_cv_path_NM="$tmp_nm -B"
6165 break
6166 ;;
6167 *)
6168 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6169 */dev/null*)
6170 lt_cv_path_NM="$tmp_nm -p"
6171 break
6172 ;;
6173 *)
6174 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6175 continue # so that we can try to find one that supports BSD flags
6176 ;;
6177 esac
6178 ;;
6179 esac
6180 fi
6181 done
6182 IFS="$lt_save_ifs"
6183 done
6184 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6185 fi
6186 fi
6187 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6188 echo "${ECHO_T}$lt_cv_path_NM" >&6
6189 NM="$lt_cv_path_NM"
6190
6191 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6192 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6193 if test "${lt_cv_deplibs_check_method+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 lt_cv_file_magic_cmd='$MAGIC_CMD'
6197 lt_cv_file_magic_test_file=
6198 lt_cv_deplibs_check_method='unknown'
6199 # Need to set the preceding variable on all platforms that support
6200 # interlibrary dependencies.
6201 # 'none' -- dependencies not supported.
6202 # `unknown' -- same as none, but documents that we really don't know.
6203 # 'pass_all' -- all dependencies passed with no checks.
6204 # 'test_compile' -- check by making test program.
6205 # 'file_magic [[regex]]' -- check by looking for files in library path
6206 # which responds to the $file_magic_cmd with a given extended regex.
6207 # If you have `file' or equivalent on your system and you're not sure
6208 # whether `pass_all' will *always* work, you probably want this one.
6209
6210 case $host_os in
6211 aix4* | aix5*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214
6215 beos*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 bsdi[45]*)
6220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6221 lt_cv_file_magic_cmd='/usr/bin/file -L'
6222 lt_cv_file_magic_test_file=/shlib/libc.so
6223 ;;
6224
6225 cygwin*)
6226 # func_win32_libid is a shell function defined in ltmain.sh
6227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6228 lt_cv_file_magic_cmd='func_win32_libid'
6229 ;;
6230
6231 mingw* | pw32*)
6232 # Base MSYS/MinGW do not provide the 'file' command needed by
6233 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6234 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6235 lt_cv_file_magic_cmd='$OBJDUMP -f'
6236 ;;
6237
6238 darwin* | rhapsody*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241
6242 freebsd* | kfreebsd*-gnu | dragonfly*)
6243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6244 case $host_cpu in
6245 i*86 )
6246 # Not sure whether the presence of OpenBSD here was a mistake.
6247 # Let's accept both of them until this is cleared up.
6248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6249 lt_cv_file_magic_cmd=/usr/bin/file
6250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6251 ;;
6252 esac
6253 else
6254 lt_cv_deplibs_check_method=pass_all
6255 fi
6256 ;;
6257
6258 gnu*)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 hpux10.20* | hpux11*)
6263 lt_cv_file_magic_cmd=/usr/bin/file
6264 case $host_cpu in
6265 ia64*)
6266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6268 ;;
6269 hppa*64*)
6270 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]'
6271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6272 ;;
6273 *)
6274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6276 ;;
6277 esac
6278 ;;
6279
6280 interix3*)
6281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6283 ;;
6284
6285 irix5* | irix6* | nonstopux*)
6286 case $LD in
6287 *-32|*"-32 ") libmagic=32-bit;;
6288 *-n32|*"-n32 ") libmagic=N32;;
6289 *-64|*"-64 ") libmagic=64-bit;;
6290 *) libmagic=never-match;;
6291 esac
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295 # This must be Linux ELF.
6296 linux*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300 netbsd*)
6301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6303 else
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6305 fi
6306 ;;
6307
6308 newos6*)
6309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6310 lt_cv_file_magic_cmd=/usr/bin/file
6311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6312 ;;
6313
6314 nto-qnx*)
6315 lt_cv_deplibs_check_method=unknown
6316 ;;
6317
6318 openbsd*)
6319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6321 else
6322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323 fi
6324 ;;
6325
6326 osf3* | osf4* | osf5*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330 solaris*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 sysv4 | sysv4.3*)
6335 case $host_vendor in
6336 motorola)
6337 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]'
6338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6339 ;;
6340 ncr)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
6343 sequent)
6344 lt_cv_file_magic_cmd='/bin/file'
6345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6346 ;;
6347 sni)
6348 lt_cv_file_magic_cmd='/bin/file'
6349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6350 lt_cv_file_magic_test_file=/lib/libc.so
6351 ;;
6352 siemens)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355 pc)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358 esac
6359 ;;
6360
6361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364 esac
6365
6366 fi
6367 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6368 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6369 file_magic_cmd=$lt_cv_file_magic_cmd
6370 deplibs_check_method=$lt_cv_deplibs_check_method
6371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6372
6373
6374
6375
6376 # If no C compiler was specified, use CC.
6377 LTCC=${LTCC-"$CC"}
6378
6379 # If no C compiler flags were specified, use CFLAGS.
6380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6381
6382 # Allow CC to be a program name with arguments.
6383 compiler=$CC
6384
6385 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6386 if test "${enable_libtool_lock+set}" = set; then
6387 enableval="$enable_libtool_lock"
6388
6389 fi;
6390 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6391
6392 # Some flags need to be propagated to the compiler or linker for good
6393 # libtool support.
6394 case $host in
6395 ia64-*-hpux*)
6396 # Find out which ABI we are using.
6397 echo 'int i;' > conftest.$ac_ext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; then
6403 case `/usr/bin/file conftest.$ac_objext` in
6404 *ELF-32*)
6405 HPUX_IA64_MODE="32"
6406 ;;
6407 *ELF-64*)
6408 HPUX_IA64_MODE="64"
6409 ;;
6410 esac
6411 fi
6412 rm -rf conftest*
6413 ;;
6414 *-*-irix6*)
6415 # Find out which ABI we are using.
6416 echo '#line 6416 "configure"' > conftest.$ac_ext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; then
6422 if test "$lt_cv_prog_gnu_ld" = yes; then
6423 case `/usr/bin/file conftest.$ac_objext` in
6424 *32-bit*)
6425 LD="${LD-ld} -melf32bsmip"
6426 ;;
6427 *N32*)
6428 LD="${LD-ld} -melf32bmipn32"
6429 ;;
6430 *64-bit*)
6431 LD="${LD-ld} -melf64bmip"
6432 ;;
6433 esac
6434 else
6435 case `/usr/bin/file conftest.$ac_objext` in
6436 *32-bit*)
6437 LD="${LD-ld} -32"
6438 ;;
6439 *N32*)
6440 LD="${LD-ld} -n32"
6441 ;;
6442 *64-bit*)
6443 LD="${LD-ld} -64"
6444 ;;
6445 esac
6446 fi
6447 fi
6448 rm -rf conftest*
6449 ;;
6450
6451 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6452 # Find out which ABI we are using.
6453 echo 'int i;' > conftest.$ac_ext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 case `/usr/bin/file conftest.o` in
6460 *32-bit*)
6461 case $host in
6462 x86_64-*linux*)
6463 LD="${LD-ld} -m elf_i386"
6464 ;;
6465 ppc64-*linux*|powerpc64-*linux*)
6466 LD="${LD-ld} -m elf32ppclinux"
6467 ;;
6468 s390x-*linux*)
6469 LD="${LD-ld} -m elf_s390"
6470 ;;
6471 sparc64-*linux*)
6472 LD="${LD-ld} -m elf32_sparc"
6473 ;;
6474 esac
6475 ;;
6476 *64-bit*)
6477 case $host in
6478 x86_64-*linux*)
6479 LD="${LD-ld} -m elf_x86_64"
6480 ;;
6481 ppc*-*linux*|powerpc*-*linux*)
6482 LD="${LD-ld} -m elf64ppc"
6483 ;;
6484 s390*-*linux*)
6485 LD="${LD-ld} -m elf64_s390"
6486 ;;
6487 sparc*-*linux*)
6488 LD="${LD-ld} -m elf64_sparc"
6489 ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496
6497 *-*-sco3.2v5*)
6498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499 SAVE_CFLAGS="$CFLAGS"
6500 CFLAGS="$CFLAGS -belf"
6501 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6502 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6503 if test "${lt_cv_cc_needs_belf+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 ac_ext=c
6507 ac_cpp='$CPP $CPPFLAGS'
6508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h. */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518
6519 int
6520 main ()
6521 {
6522
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 rm -f conftest.$ac_objext conftest$ac_exeext
6528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6529 (eval $ac_link) 2>conftest.er1
6530 ac_status=$?
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -z "$ac_c_werror_flag"
6537 || test ! -s conftest.err'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; } &&
6543 { ac_try='test -s conftest$ac_exeext'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6549 lt_cv_cc_needs_belf=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 lt_cv_cc_needs_belf=no
6555 fi
6556 rm -f conftest.err conftest.$ac_objext \
6557 conftest$ac_exeext conftest.$ac_ext
6558 ac_ext=c
6559 ac_cpp='$CPP $CPPFLAGS'
6560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563
6564 fi
6565 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6566 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6567 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6568 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6569 CFLAGS="$SAVE_CFLAGS"
6570 fi
6571 ;;
6572 sparc*-*solaris*)
6573 # Find out which ABI we are using.
6574 echo 'int i;' > conftest.$ac_ext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; then
6580 case `/usr/bin/file conftest.o` in
6581 *64-bit*)
6582 case $lt_cv_prog_gnu_ld in
6583 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6584 *) LD="${LD-ld} -64" ;;
6585 esac
6586 ;;
6587 esac
6588 fi
6589 rm -rf conftest*
6590 ;;
6591
6592
6593 esac
6594
6595 need_locks="$enable_libtool_lock"
6596
6597
6598 ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6604 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6605 # On Suns, sometimes $CPP names a directory.
6606 if test -n "$CPP" && test -d "$CPP"; then
6607 CPP=
6608 fi
6609 if test -z "$CPP"; then
6610 if test "${ac_cv_prog_CPP+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 # Double quotes because CPP needs to be expanded
6614 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6615 do
6616 ac_preproc_ok=false
6617 for ac_c_preproc_warn_flag in '' yes
6618 do
6619 # Use a header file that comes with gcc, so configuring glibc
6620 # with a fresh cross-compiler works.
6621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622 # <limits.h> exists even on freestanding compilers.
6623 # On the NeXT, cc -E runs the code through the compiler's parser,
6624 # not just through cpp. "Syntax error" is here to catch this case.
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #ifdef __STDC__
6632 # include <limits.h>
6633 #else
6634 # include <assert.h>
6635 #endif
6636 Syntax error
6637 _ACEOF
6638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } >/dev/null; then
6646 if test -s conftest.err; then
6647 ac_cpp_err=$ac_c_preproc_warn_flag
6648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6649 else
6650 ac_cpp_err=
6651 fi
6652 else
6653 ac_cpp_err=yes
6654 fi
6655 if test -z "$ac_cpp_err"; then
6656 :
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 # Broken: fails on valid input.
6662 continue
6663 fi
6664 rm -f conftest.err conftest.$ac_ext
6665
6666 # OK, works on sane cases. Now check whether non-existent headers
6667 # can be detected and how.
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 #include <ac_nonexistent.h>
6675 _ACEOF
6676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } >/dev/null; then
6684 if test -s conftest.err; then
6685 ac_cpp_err=$ac_c_preproc_warn_flag
6686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6687 else
6688 ac_cpp_err=
6689 fi
6690 else
6691 ac_cpp_err=yes
6692 fi
6693 if test -z "$ac_cpp_err"; then
6694 # Broken: success on invalid input.
6695 continue
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700 # Passes both tests.
6701 ac_preproc_ok=:
6702 break
6703 fi
6704 rm -f conftest.err conftest.$ac_ext
6705
6706 done
6707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6708 rm -f conftest.err conftest.$ac_ext
6709 if $ac_preproc_ok; then
6710 break
6711 fi
6712
6713 done
6714 ac_cv_prog_CPP=$CPP
6715
6716 fi
6717 CPP=$ac_cv_prog_CPP
6718 else
6719 ac_cv_prog_CPP=$CPP
6720 fi
6721 echo "$as_me:$LINENO: result: $CPP" >&5
6722 echo "${ECHO_T}$CPP" >&6
6723 ac_preproc_ok=false
6724 for ac_c_preproc_warn_flag in '' yes
6725 do
6726 # Use a header file that comes with gcc, so configuring glibc
6727 # with a fresh cross-compiler works.
6728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6729 # <limits.h> exists even on freestanding compilers.
6730 # On the NeXT, cc -E runs the code through the compiler's parser,
6731 # not just through cpp. "Syntax error" is here to catch this case.
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #ifdef __STDC__
6739 # include <limits.h>
6740 #else
6741 # include <assert.h>
6742 #endif
6743 Syntax error
6744 _ACEOF
6745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null; then
6753 if test -s conftest.err; then
6754 ac_cpp_err=$ac_c_preproc_warn_flag
6755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6756 else
6757 ac_cpp_err=
6758 fi
6759 else
6760 ac_cpp_err=yes
6761 fi
6762 if test -z "$ac_cpp_err"; then
6763 :
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 # Broken: fails on valid input.
6769 continue
6770 fi
6771 rm -f conftest.err conftest.$ac_ext
6772
6773 # OK, works on sane cases. Now check whether non-existent headers
6774 # can be detected and how.
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <ac_nonexistent.h>
6782 _ACEOF
6783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } >/dev/null; then
6791 if test -s conftest.err; then
6792 ac_cpp_err=$ac_c_preproc_warn_flag
6793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6794 else
6795 ac_cpp_err=
6796 fi
6797 else
6798 ac_cpp_err=yes
6799 fi
6800 if test -z "$ac_cpp_err"; then
6801 # Broken: success on invalid input.
6802 continue
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 # Passes both tests.
6808 ac_preproc_ok=:
6809 break
6810 fi
6811 rm -f conftest.err conftest.$ac_ext
6812
6813 done
6814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6815 rm -f conftest.err conftest.$ac_ext
6816 if $ac_preproc_ok; then
6817 :
6818 else
6819 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6820 See \`config.log' for more details." >&5
6821 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6822 See \`config.log' for more details." >&2;}
6823 { (exit 1); exit 1; }; }
6824 fi
6825
6826 ac_ext=c
6827 ac_cpp='$CPP $CPPFLAGS'
6828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831
6832
6833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6835 if test "${ac_cv_header_stdc+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 #include <stdlib.h>
6845 #include <stdarg.h>
6846 #include <string.h>
6847 #include <float.h>
6848
6849 int
6850 main ()
6851 {
6852
6853 ;
6854 return 0;
6855 }
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>conftest.er1
6860 ac_status=$?
6861 grep -v '^ *+' conftest.er1 >conftest.err
6862 rm -f conftest.er1
6863 cat conftest.err >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -z "$ac_c_werror_flag"
6867 || test ! -s conftest.err'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try='test -s conftest.$ac_objext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_cv_header_stdc=yes
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 ac_cv_header_stdc=no
6885 fi
6886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6887
6888 if test $ac_cv_header_stdc = yes; then
6889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 #include <string.h>
6897
6898 _ACEOF
6899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6900 $EGREP "memchr" >/dev/null 2>&1; then
6901 :
6902 else
6903 ac_cv_header_stdc=no
6904 fi
6905 rm -f conftest*
6906
6907 fi
6908
6909 if test $ac_cv_header_stdc = yes; then
6910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <stdlib.h>
6918
6919 _ACEOF
6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "free" >/dev/null 2>&1; then
6922 :
6923 else
6924 ac_cv_header_stdc=no
6925 fi
6926 rm -f conftest*
6927
6928 fi
6929
6930 if test $ac_cv_header_stdc = yes; then
6931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6932 if test "$cross_compiling" = yes; then
6933 :
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 #include <ctype.h>
6942 #if ((' ' & 0x0FF) == 0x020)
6943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6945 #else
6946 # define ISLOWER(c) \
6947 (('a' <= (c) && (c) <= 'i') \
6948 || ('j' <= (c) && (c) <= 'r') \
6949 || ('s' <= (c) && (c) <= 'z'))
6950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6951 #endif
6952
6953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6954 int
6955 main ()
6956 {
6957 int i;
6958 for (i = 0; i < 256; i++)
6959 if (XOR (islower (i), ISLOWER (i))
6960 || toupper (i) != TOUPPER (i))
6961 exit(2);
6962 exit (0);
6963 }
6964 _ACEOF
6965 rm -f conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 :
6977 else
6978 echo "$as_me: program exited with status $ac_status" >&5
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 ( exit $ac_status )
6983 ac_cv_header_stdc=no
6984 fi
6985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6986 fi
6987 fi
6988 fi
6989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6991 if test $ac_cv_header_stdc = yes; then
6992
6993 cat >>confdefs.h <<\_ACEOF
6994 #define STDC_HEADERS 1
6995 _ACEOF
6996
6997 fi
6998
6999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7010 inttypes.h stdint.h unistd.h
7011 do
7012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7013 echo "$as_me:$LINENO: checking for $ac_header" >&5
7014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7025
7026 #include <$ac_header>
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -z "$ac_c_werror_flag"
7038 || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 eval "$as_ac_Header=yes"
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 eval "$as_ac_Header=no"
7056 fi
7057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058 fi
7059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7062 cat >>confdefs.h <<_ACEOF
7063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7064 _ACEOF
7065
7066 fi
7067
7068 done
7069
7070
7071
7072 for ac_header in dlfcn.h
7073 do
7074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7076 echo "$as_me:$LINENO: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 fi
7081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7083 else
7084 # Is the header compilable?
7085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 $ac_includes_default
7094 #include <$ac_header>
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>conftest.er1
7099 ac_status=$?
7100 grep -v '^ *+' conftest.er1 >conftest.err
7101 rm -f conftest.er1
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -z "$ac_c_werror_flag"
7106 || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest.$ac_objext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_header_compiler=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_header_compiler=no
7124 fi
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7127 echo "${ECHO_T}$ac_header_compiler" >&6
7128
7129 # Is the header present?
7130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <$ac_header>
7139 _ACEOF
7140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } >/dev/null; then
7148 if test -s conftest.err; then
7149 ac_cpp_err=$ac_c_preproc_warn_flag
7150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7151 else
7152 ac_cpp_err=
7153 fi
7154 else
7155 ac_cpp_err=yes
7156 fi
7157 if test -z "$ac_cpp_err"; then
7158 ac_header_preproc=yes
7159 else
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163 ac_header_preproc=no
7164 fi
7165 rm -f conftest.err conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7167 echo "${ECHO_T}$ac_header_preproc" >&6
7168
7169 # So? What about this header?
7170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7171 yes:no: )
7172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7176 ac_header_preproc=yes
7177 ;;
7178 no:yes:* )
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7191 (
7192 cat <<\_ASBOX
7193 ## ------------------------------------------------------------- ##
7194 ## Report this to https://github.com/coin-or/SYMPHONY/issues/new ##
7195 ## ------------------------------------------------------------- ##
7196 _ASBOX
7197 ) |
7198 sed "s/^/$as_me: WARNING: /" >&2
7199 ;;
7200 esac
7201 echo "$as_me:$LINENO: checking for $ac_header" >&5
7202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 eval "$as_ac_Header=\$ac_header_preproc"
7207 fi
7208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7210
7211 fi
7212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7213 cat >>confdefs.h <<_ACEOF
7214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7215 _ACEOF
7216
7217 fi
7218
7219 done
7220
7221
7222
7223 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7224 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7225 (test "X$CXX" != "Xg++"))) ; then
7226 ac_ext=cc
7227 ac_cpp='$CXXCPP $CPPFLAGS'
7228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7231 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7232 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7233 if test -z "$CXXCPP"; then
7234 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 # Double quotes because CXXCPP needs to be expanded
7238 for CXXCPP in "$CXX -E" "/lib/cpp"
7239 do
7240 ac_preproc_ok=false
7241 for ac_cxx_preproc_warn_flag in '' yes
7242 do
7243 # Use a header file that comes with gcc, so configuring glibc
7244 # with a fresh cross-compiler works.
7245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 # <limits.h> exists even on freestanding compilers.
7247 # On the NeXT, cc -E runs the code through the compiler's parser,
7248 # not just through cpp. "Syntax error" is here to catch this case.
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 #ifdef __STDC__
7256 # include <limits.h>
7257 #else
7258 # include <assert.h>
7259 #endif
7260 Syntax error
7261 _ACEOF
7262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } >/dev/null; then
7270 if test -s conftest.err; then
7271 ac_cpp_err=$ac_cxx_preproc_warn_flag
7272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7273 else
7274 ac_cpp_err=
7275 fi
7276 else
7277 ac_cpp_err=yes
7278 fi
7279 if test -z "$ac_cpp_err"; then
7280 :
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 # Broken: fails on valid input.
7286 continue
7287 fi
7288 rm -f conftest.err conftest.$ac_ext
7289
7290 # OK, works on sane cases. Now check whether non-existent headers
7291 # can be detected and how.
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 #include <ac_nonexistent.h>
7299 _ACEOF
7300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } >/dev/null; then
7308 if test -s conftest.err; then
7309 ac_cpp_err=$ac_cxx_preproc_warn_flag
7310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7311 else
7312 ac_cpp_err=
7313 fi
7314 else
7315 ac_cpp_err=yes
7316 fi
7317 if test -z "$ac_cpp_err"; then
7318 # Broken: success on invalid input.
7319 continue
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 # Passes both tests.
7325 ac_preproc_ok=:
7326 break
7327 fi
7328 rm -f conftest.err conftest.$ac_ext
7329
7330 done
7331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7332 rm -f conftest.err conftest.$ac_ext
7333 if $ac_preproc_ok; then
7334 break
7335 fi
7336
7337 done
7338 ac_cv_prog_CXXCPP=$CXXCPP
7339
7340 fi
7341 CXXCPP=$ac_cv_prog_CXXCPP
7342 else
7343 ac_cv_prog_CXXCPP=$CXXCPP
7344 fi
7345 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7346 echo "${ECHO_T}$CXXCPP" >&6
7347 ac_preproc_ok=false
7348 for ac_cxx_preproc_warn_flag in '' yes
7349 do
7350 # Use a header file that comes with gcc, so configuring glibc
7351 # with a fresh cross-compiler works.
7352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7353 # <limits.h> exists even on freestanding compilers.
7354 # On the NeXT, cc -E runs the code through the compiler's parser,
7355 # not just through cpp. "Syntax error" is here to catch this case.
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #ifdef __STDC__
7363 # include <limits.h>
7364 #else
7365 # include <assert.h>
7366 #endif
7367 Syntax error
7368 _ACEOF
7369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } >/dev/null; then
7377 if test -s conftest.err; then
7378 ac_cpp_err=$ac_cxx_preproc_warn_flag
7379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7380 else
7381 ac_cpp_err=
7382 fi
7383 else
7384 ac_cpp_err=yes
7385 fi
7386 if test -z "$ac_cpp_err"; then
7387 :
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 # Broken: fails on valid input.
7393 continue
7394 fi
7395 rm -f conftest.err conftest.$ac_ext
7396
7397 # OK, works on sane cases. Now check whether non-existent headers
7398 # can be detected and how.
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 #include <ac_nonexistent.h>
7406 _ACEOF
7407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } >/dev/null; then
7415 if test -s conftest.err; then
7416 ac_cpp_err=$ac_cxx_preproc_warn_flag
7417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7418 else
7419 ac_cpp_err=
7420 fi
7421 else
7422 ac_cpp_err=yes
7423 fi
7424 if test -z "$ac_cpp_err"; then
7425 # Broken: success on invalid input.
7426 continue
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 # Passes both tests.
7432 ac_preproc_ok=:
7433 break
7434 fi
7435 rm -f conftest.err conftest.$ac_ext
7436
7437 done
7438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7439 rm -f conftest.err conftest.$ac_ext
7440 if $ac_preproc_ok; then
7441 :
7442 else
7443 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7444 See \`config.log' for more details." >&5
7445 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7446 See \`config.log' for more details." >&2;}
7447 { (exit 1); exit 1; }; }
7448 fi
7449
7450 ac_ext=cc
7451 ac_cpp='$CXXCPP $CPPFLAGS'
7452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7455
7456 fi
7457
7458
7459 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7460
7461 # find the maximum length of command line arguments
7462 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7463 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7464 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467 i=0
7468 teststring="ABCD"
7469
7470 case $build_os in
7471 msdosdjgpp*)
7472 # On DJGPP, this test can blow up pretty badly due to problems in libc
7473 # (any single argument exceeding 2000 bytes causes a buffer overrun
7474 # during glob expansion). Even if it were fixed, the result of this
7475 # check would be larger than it should be.
7476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7477 ;;
7478
7479 gnu*)
7480 # Under GNU Hurd, this test is not required because there is
7481 # no limit to the length of command line arguments.
7482 # Libtool will interpret -1 as no limit whatsoever
7483 lt_cv_sys_max_cmd_len=-1;
7484 ;;
7485
7486 cygwin* | mingw*)
7487 # On Win9x/ME, this test blows up -- it succeeds, but takes
7488 # about 5 minutes as the teststring grows exponentially.
7489 # Worse, since 9x/ME are not pre-emptively multitasking,
7490 # you end up with a "frozen" computer, even though with patience
7491 # the test eventually succeeds (with a max line length of 256k).
7492 # Instead, let's just punt: use the minimum linelength reported by
7493 # all of the supported platforms: 8192 (on NT/2K/XP).
7494 lt_cv_sys_max_cmd_len=8192;
7495 ;;
7496
7497 amigaos*)
7498 # On AmigaOS with pdksh, this test takes hours, literally.
7499 # So we just punt and use a minimum line length of 8192.
7500 lt_cv_sys_max_cmd_len=8192;
7501 ;;
7502
7503 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7504 # This has been around since 386BSD, at least. Likely further.
7505 if test -x /sbin/sysctl; then
7506 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7507 elif test -x /usr/sbin/sysctl; then
7508 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7509 else
7510 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7511 fi
7512 # And add a safety zone
7513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7515 ;;
7516
7517 interix*)
7518 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7519 lt_cv_sys_max_cmd_len=196608
7520 ;;
7521
7522 osf*)
7523 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7524 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7525 # nice to cause kernel panics so lets avoid the loop below.
7526 # First set a reasonable default.
7527 lt_cv_sys_max_cmd_len=16384
7528 #
7529 if test -x /sbin/sysconfig; then
7530 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7531 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7532 esac
7533 fi
7534 ;;
7535 sco3.2v5*)
7536 lt_cv_sys_max_cmd_len=102400
7537 ;;
7538 sysv5* | sco5v6* | sysv4.2uw2*)
7539 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7540 if test -n "$kargmax"; then
7541 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7542 else
7543 lt_cv_sys_max_cmd_len=32768
7544 fi
7545 ;;
7546 *)
7547 # If test is not a shell built-in, we'll probably end up computing a
7548 # maximum length that is only half of the actual maximum length, but
7549 # we can't tell.
7550 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7551 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7552 = "XX$teststring") >/dev/null 2>&1 &&
7553 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7554 lt_cv_sys_max_cmd_len=$new_result &&
7555 test $i != 17 # 1/2 MB should be enough
7556 do
7557 i=`expr $i + 1`
7558 teststring=$teststring$teststring
7559 done
7560 teststring=
7561 # Add a significant safety factor because C++ compilers can tack on massive
7562 # amounts of additional arguments before passing them to the linker.
7563 # It appears as though 1/2 is a usable value.
7564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7565 ;;
7566 esac
7567
7568 fi
7569
7570 if test -n $lt_cv_sys_max_cmd_len ; then
7571 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7572 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7573 else
7574 echo "$as_me:$LINENO: result: none" >&5
7575 echo "${ECHO_T}none" >&6
7576 fi
7577
7578
7579
7580
7581 # Check for command to grab the raw symbol name followed by C symbol from nm.
7582 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7583 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7584 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587
7588 # These are sane defaults that work on at least a few old systems.
7589 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7590
7591 # Character class describing NM global symbol codes.
7592 symcode='[BCDEGRST]'
7593
7594 # Regexp to match symbols that can be accessed directly from C.
7595 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7596
7597 # Transform an extracted symbol line into a proper C declaration
7598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7599
7600 # Transform an extracted symbol line into symbol name and symbol address
7601 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'"
7602
7603 # Define system-specific variables.
7604 case $host_os in
7605 aix*)
7606 symcode='[BCDT]'
7607 ;;
7608 cygwin* | mingw* | pw32*)
7609 symcode='[ABCDGISTW]'
7610 ;;
7611 hpux*) # Its linker distinguishes data from code symbols
7612 if test "$host_cpu" = ia64; then
7613 symcode='[ABCDEGRST]'
7614 fi
7615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7616 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'"
7617 ;;
7618 linux*)
7619 if test "$host_cpu" = ia64; then
7620 symcode='[ABCDGIRSTW]'
7621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7622 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'"
7623 fi
7624 ;;
7625 irix* | nonstopux*)
7626 symcode='[BCDEGRST]'
7627 ;;
7628 osf*)
7629 symcode='[BCDEGQRST]'
7630 ;;
7631 solaris*)
7632 symcode='[BDRT]'
7633 ;;
7634 sco3.2v5*)
7635 symcode='[DT]'
7636 ;;
7637 sysv4.2uw2*)
7638 symcode='[DT]'
7639 ;;
7640 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7641 symcode='[ABDT]'
7642 ;;
7643 sysv4)
7644 symcode='[DFNSTU]'
7645 ;;
7646 esac
7647
7648 # Handle CRLF in mingw tool chain
7649 opt_cr=
7650 case $build_os in
7651 mingw*)
7652 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7653 ;;
7654 esac
7655
7656 # If we're using GNU nm, then use its standard symbol codes.
7657 case `$NM -V 2>&1` in
7658 *GNU* | *'with BFD'*)
7659 symcode='[ABCDGIRSTW]' ;;
7660 esac
7661
7662 # Try without a prefix undercore, then with it.
7663 for ac_symprfx in "" "_"; do
7664
7665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7666 symxfrm="\\1 $ac_symprfx\\2 \\2"
7667
7668 # Write the raw and C identifiers.
7669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7670
7671 # Check to see that the pipe works correctly.
7672 pipe_works=no
7673
7674 rm -f conftest*
7675 cat > conftest.$ac_ext <<EOF
7676 #ifdef __cplusplus
7677 extern "C" {
7678 #endif
7679 char nm_test_var;
7680 void nm_test_func(){}
7681 #ifdef __cplusplus
7682 }
7683 #endif
7684 int main(){nm_test_var='a';nm_test_func();return(0);}
7685 EOF
7686
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; then
7692 # Now try to grab the symbols.
7693 nlist=conftest.nm
7694 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7695 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && test -s "$nlist"; then
7699 # Try sorting and uniquifying the output.
7700 if sort "$nlist" | uniq > "$nlist"T; then
7701 mv -f "$nlist"T "$nlist"
7702 else
7703 rm -f "$nlist"T
7704 fi
7705
7706 # Make sure that we snagged all the symbols we need.
7707 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7708 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7709 cat <<EOF > conftest.$ac_ext
7710 #ifdef __cplusplus
7711 extern "C" {
7712 #endif
7713
7714 EOF
7715 # Now generate the symbol file.
7716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7717
7718 cat <<EOF >> conftest.$ac_ext
7719 #if defined (__STDC__) && __STDC__
7720 # define lt_ptr_t void *
7721 #else
7722 # define lt_ptr_t char *
7723 # define const
7724 #endif
7725
7726 /* The mapping between symbol names and symbols. */
7727 const struct {
7728 const char *name;
7729 lt_ptr_t address;
7730 }
7731 lt_preloaded_symbols[] =
7732 {
7733 EOF
7734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7735 cat <<\EOF >> conftest.$ac_ext
7736 {0, (lt_ptr_t) 0}
7737 };
7738
7739 #ifdef __cplusplus
7740 }
7741 #endif
7742 EOF
7743 # Now try linking the two files.
7744 mv conftest.$ac_objext conftstm.$ac_objext
7745 lt_save_LIBS="$LIBS"
7746 lt_save_CFLAGS="$CFLAGS"
7747 LIBS="conftstm.$ac_objext"
7748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7754 pipe_works=yes
7755 fi
7756 LIBS="$lt_save_LIBS"
7757 CFLAGS="$lt_save_CFLAGS"
7758 else
7759 echo "cannot find nm_test_func in $nlist" >&5
7760 fi
7761 else
7762 echo "cannot find nm_test_var in $nlist" >&5
7763 fi
7764 else
7765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7766 fi
7767 else
7768 echo "$progname: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7770 fi
7771 rm -f conftest* conftst*
7772
7773 # Do not use the global_symbol_pipe unless it works.
7774 if test "$pipe_works" = yes; then
7775 break
7776 else
7777 lt_cv_sys_global_symbol_pipe=
7778 fi
7779 done
7780
7781 fi
7782
7783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7784 lt_cv_sys_global_symbol_to_cdecl=
7785 fi
7786 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7787 echo "$as_me:$LINENO: result: failed" >&5
7788 echo "${ECHO_T}failed" >&6
7789 else
7790 echo "$as_me:$LINENO: result: ok" >&5
7791 echo "${ECHO_T}ok" >&6
7792 fi
7793
7794 echo "$as_me:$LINENO: checking for objdir" >&5
7795 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7796 if test "${lt_cv_objdir+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799 rm -f .libs 2>/dev/null
7800 mkdir .libs 2>/dev/null
7801 if test -d .libs; then
7802 lt_cv_objdir=.libs
7803 else
7804 # MS-DOS does not allow filenames that begin with a dot.
7805 lt_cv_objdir=_libs
7806 fi
7807 rmdir .libs 2>/dev/null
7808 fi
7809 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7810 echo "${ECHO_T}$lt_cv_objdir" >&6
7811 objdir=$lt_cv_objdir
7812
7813
7814
7815
7816
7817 case $host_os in
7818 aix3*)
7819 # AIX sometimes has problems with the GCC collect2 program. For some
7820 # reason, if we set the COLLECT_NAMES environment variable, the problems
7821 # vanish in a puff of smoke.
7822 if test "X${COLLECT_NAMES+set}" != Xset; then
7823 COLLECT_NAMES=
7824 export COLLECT_NAMES
7825 fi
7826 ;;
7827 esac
7828
7829 # Sed substitution that helps us do robust quoting. It backslashifies
7830 # metacharacters that are still active within double-quoted strings.
7831 Xsed='sed -e 1s/^X//'
7832 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7833
7834 # Same as above, but do not quote variable references.
7835 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7836
7837 # Sed substitution to delay expansion of an escaped shell variable in a
7838 # double_quote_subst'ed string.
7839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7840
7841 # Sed substitution to avoid accidental globbing in evaled expressions
7842 no_glob_subst='s/\*/\\\*/g'
7843
7844 # Constants:
7845 rm="rm -f"
7846
7847 # Global variables:
7848 default_ofile=libtool
7849 can_build_shared=yes
7850
7851 # All known linkers require a `.a' archive for static linking (except MSVC,
7852 # which needs '.lib').
7853 libext=a
7854 ltmain="$ac_aux_dir/ltmain.sh"
7855 ofile="$default_ofile"
7856 with_gnu_ld="$lt_cv_prog_gnu_ld"
7857
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}ar; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_AR+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 if test -n "$AR"; then
7867 ac_cv_prog_AR="$AR" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_AR="${ac_tool_prefix}ar"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882
7883 fi
7884 fi
7885 AR=$ac_cv_prog_AR
7886 if test -n "$AR"; then
7887 echo "$as_me:$LINENO: result: $AR" >&5
7888 echo "${ECHO_T}$AR" >&6
7889 else
7890 echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7892 fi
7893
7894 fi
7895 if test -z "$ac_cv_prog_AR"; then
7896 ac_ct_AR=$AR
7897 # Extract the first word of "ar", so it can be a program name with args.
7898 set dummy ar; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 if test -n "$ac_ct_AR"; then
7905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_ac_ct_AR="ar"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920
7921 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7922 fi
7923 fi
7924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7925 if test -n "$ac_ct_AR"; then
7926 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7927 echo "${ECHO_T}$ac_ct_AR" >&6
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7931 fi
7932
7933 AR=$ac_ct_AR
7934 else
7935 AR="$ac_cv_prog_AR"
7936 fi
7937
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7941 echo "$as_me:$LINENO: checking for $ac_word" >&5
7942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7943 if test "${ac_cv_prog_RANLIB+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 if test -n "$RANLIB"; then
7947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962
7963 fi
7964 fi
7965 RANLIB=$ac_cv_prog_RANLIB
7966 if test -n "$RANLIB"; then
7967 echo "$as_me:$LINENO: result: $RANLIB" >&5
7968 echo "${ECHO_T}$RANLIB" >&6
7969 else
7970 echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6
7972 fi
7973
7974 fi
7975 if test -z "$ac_cv_prog_RANLIB"; then
7976 ac_ct_RANLIB=$RANLIB
7977 # Extract the first word of "ranlib", so it can be a program name with args.
7978 set dummy ranlib; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 if test -n "$ac_ct_RANLIB"; then
7985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_ac_ct_RANLIB="ranlib"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998 done
7999 done
8000
8001 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8002 fi
8003 fi
8004 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8005 if test -n "$ac_ct_RANLIB"; then
8006 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8007 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8008 else
8009 echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6
8011 fi
8012
8013 RANLIB=$ac_ct_RANLIB
8014 else
8015 RANLIB="$ac_cv_prog_RANLIB"
8016 fi
8017
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}strip; ac_word=$2
8021 echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8023 if test "${ac_cv_prog_STRIP+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026 if test -n "$STRIP"; then
8027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042
8043 fi
8044 fi
8045 STRIP=$ac_cv_prog_STRIP
8046 if test -n "$STRIP"; then
8047 echo "$as_me:$LINENO: result: $STRIP" >&5
8048 echo "${ECHO_T}$STRIP" >&6
8049 else
8050 echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6
8052 fi
8053
8054 fi
8055 if test -z "$ac_cv_prog_STRIP"; then
8056 ac_ct_STRIP=$STRIP
8057 # Extract the first word of "strip", so it can be a program name with args.
8058 set dummy strip; ac_word=$2
8059 echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8061 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 if test -n "$ac_ct_STRIP"; then
8065 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_ac_ct_STRIP="strip"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080
8081 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8082 fi
8083 fi
8084 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8085 if test -n "$ac_ct_STRIP"; then
8086 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8087 echo "${ECHO_T}$ac_ct_STRIP" >&6
8088 else
8089 echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6
8091 fi
8092
8093 STRIP=$ac_ct_STRIP
8094 else
8095 STRIP="$ac_cv_prog_STRIP"
8096 fi
8097
8098
8099 old_CC="$CC"
8100 old_CFLAGS="$CFLAGS"
8101
8102 # Set sane defaults for various variables
8103 test -z "$AR" && AR=ar
8104 test -z "$AR_FLAGS" && AR_FLAGS=cru
8105 test -z "$AS" && AS=as
8106 test -z "$CC" && CC=cc
8107 test -z "$LTCC" && LTCC=$CC
8108 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8109 test -z "$DLLTOOL" && DLLTOOL=dlltool
8110 test -z "$LD" && LD=ld
8111 test -z "$LN_S" && LN_S="ln -s"
8112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8113 test -z "$NM" && NM=nm
8114 test -z "$SED" && SED=sed
8115 test -z "$OBJDUMP" && OBJDUMP=objdump
8116 test -z "$RANLIB" && RANLIB=:
8117 test -z "$STRIP" && STRIP=:
8118 test -z "$ac_objext" && ac_objext=o
8119
8120 # Determine commands to create old-style static archives.
8121 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8122 old_postinstall_cmds='chmod 644 $oldlib'
8123 old_postuninstall_cmds=
8124
8125 if test -n "$RANLIB"; then
8126 case $host_os in
8127 openbsd*)
8128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8129 ;;
8130 *)
8131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8132 ;;
8133 esac
8134 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8135 fi
8136
8137 for cc_temp in $compiler""; do
8138 case $cc_temp in
8139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8141 \-*) ;;
8142 *) break;;
8143 esac
8144 done
8145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8146
8147
8148 # Only perform the check for file, if the check method requires it
8149 case $deplibs_check_method in
8150 file_magic*)
8151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8152 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8153 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 case $MAGIC_CMD in
8158 [\\/*] | ?:[\\/]*)
8159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8160 ;;
8161 *)
8162 lt_save_MAGIC_CMD="$MAGIC_CMD"
8163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8165 for ac_dir in $ac_dummy; do
8166 IFS="$lt_save_ifs"
8167 test -z "$ac_dir" && ac_dir=.
8168 if test -f $ac_dir/${ac_tool_prefix}file; then
8169 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8170 if test -n "$file_magic_test_file"; then
8171 case $deplibs_check_method in
8172 "file_magic "*)
8173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8176 $EGREP "$file_magic_regex" > /dev/null; then
8177 :
8178 else
8179 cat <<EOF 1>&2
8180
8181 *** Warning: the command libtool uses to detect shared libraries,
8182 *** $file_magic_cmd, produces output that libtool cannot recognize.
8183 *** The result is that libtool may fail to recognize shared libraries
8184 *** as such. This will affect the creation of libtool libraries that
8185 *** depend on shared libraries, but programs linked with such libtool
8186 *** libraries will work regardless of this problem. Nevertheless, you
8187 *** may want to report the problem to your system manager and/or to
8188 *** [email protected]
8189
8190 EOF
8191 fi ;;
8192 esac
8193 fi
8194 break
8195 fi
8196 done
8197 IFS="$lt_save_ifs"
8198 MAGIC_CMD="$lt_save_MAGIC_CMD"
8199 ;;
8200 esac
8201 fi
8202
8203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8204 if test -n "$MAGIC_CMD"; then
8205 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8206 echo "${ECHO_T}$MAGIC_CMD" >&6
8207 else
8208 echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8210 fi
8211
8212 if test -z "$lt_cv_path_MAGIC_CMD"; then
8213 if test -n "$ac_tool_prefix"; then
8214 echo "$as_me:$LINENO: checking for file" >&5
8215 echo $ECHO_N "checking for file... $ECHO_C" >&6
8216 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 case $MAGIC_CMD in
8220 [\\/*] | ?:[\\/]*)
8221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8222 ;;
8223 *)
8224 lt_save_MAGIC_CMD="$MAGIC_CMD"
8225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227 for ac_dir in $ac_dummy; do
8228 IFS="$lt_save_ifs"
8229 test -z "$ac_dir" && ac_dir=.
8230 if test -f $ac_dir/file; then
8231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8232 if test -n "$file_magic_test_file"; then
8233 case $deplibs_check_method in
8234 "file_magic "*)
8235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238 $EGREP "$file_magic_regex" > /dev/null; then
8239 :
8240 else
8241 cat <<EOF 1>&2
8242
8243 *** Warning: the command libtool uses to detect shared libraries,
8244 *** $file_magic_cmd, produces output that libtool cannot recognize.
8245 *** The result is that libtool may fail to recognize shared libraries
8246 *** as such. This will affect the creation of libtool libraries that
8247 *** depend on shared libraries, but programs linked with such libtool
8248 *** libraries will work regardless of this problem. Nevertheless, you
8249 *** may want to report the problem to your system manager and/or to
8250 *** [email protected]
8251
8252 EOF
8253 fi ;;
8254 esac
8255 fi
8256 break
8257 fi
8258 done
8259 IFS="$lt_save_ifs"
8260 MAGIC_CMD="$lt_save_MAGIC_CMD"
8261 ;;
8262 esac
8263 fi
8264
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if test -n "$MAGIC_CMD"; then
8267 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8268 echo "${ECHO_T}$MAGIC_CMD" >&6
8269 else
8270 echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6
8272 fi
8273
8274 else
8275 MAGIC_CMD=:
8276 fi
8277 fi
8278
8279 fi
8280 ;;
8281 esac
8282
8283 enable_dlopen=no
8284 enable_win32_dll=no
8285
8286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8287 if test "${enable_libtool_lock+set}" = set; then
8288 enableval="$enable_libtool_lock"
8289
8290 fi;
8291 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8292
8293
8294 # Check whether --with-pic or --without-pic was given.
8295 if test "${with_pic+set}" = set; then
8296 withval="$with_pic"
8297 pic_mode="$withval"
8298 else
8299 pic_mode=default
8300 fi;
8301 test -z "$pic_mode" && pic_mode=default
8302
8303 # Use C for the default configuration in the libtool script
8304 tagname=
8305 lt_save_CC="$CC"
8306 ac_ext=c
8307 ac_cpp='$CPP $CPPFLAGS'
8308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8311
8312
8313 # Source file extension for C test sources.
8314 ac_ext=c
8315
8316 # Object file extension for compiled C test sources.
8317 objext=o
8318 objext=$objext
8319
8320 # Code to be used in simple compile tests
8321 lt_simple_compile_test_code="int some_variable = 0;\n"
8322
8323 # Code to be used in simple link tests
8324 lt_simple_link_test_code='int main(){return(0);}\n'
8325
8326
8327 # If no C compiler was specified, use CC.
8328 LTCC=${LTCC-"$CC"}
8329
8330 # If no C compiler flags were specified, use CFLAGS.
8331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8332
8333 # Allow CC to be a program name with arguments.
8334 compiler=$CC
8335
8336
8337 # save warnings/boilerplate of simple test code
8338 ac_outfile=conftest.$ac_objext
8339 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8341 _lt_compiler_boilerplate=`cat conftest.err`
8342 $rm conftest*
8343
8344 ac_outfile=conftest.$ac_objext
8345 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8347 _lt_linker_boilerplate=`cat conftest.err`
8348 $rm conftest*
8349
8350
8351 ## CAVEAT EMPTOR:
8352 ## There is no encapsulation within the following macros, do not change
8353 ## the running order or otherwise move them around unless you know exactly
8354 ## what you are doing...
8355
8356 lt_prog_compiler_no_builtin_flag=
8357
8358 if test "$GCC" = yes; then
8359 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8360
8361
8362 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 lt_cv_prog_compiler_rtti_exceptions=no
8368 ac_outfile=conftest.$ac_objext
8369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8370 lt_compiler_flag="-fno-rtti -fno-exceptions"
8371 # Insert the option either (1) after the last *FLAGS variable, or
8372 # (2) before a word containing "conftest.", or (3) at the end.
8373 # Note that $ac_compile itself does not contain backslashes and begins
8374 # with a dollar sign (not a hyphen), so the echo should work correctly.
8375 # The option is referenced via a variable to avoid confusing sed.
8376 lt_compile=`echo "$ac_compile" | $SED \
8377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8379 -e 's:$: $lt_compiler_flag:'`
8380 (eval echo "\"\$as_me:8380: $lt_compile\"" >&5)
8381 (eval "$lt_compile" 2>conftest.err)
8382 ac_status=$?
8383 cat conftest.err >&5
8384 echo "$as_me:8384: \$? = $ac_status" >&5
8385 if (exit $ac_status) && test -s "$ac_outfile"; then
8386 # The compiler can only warn and ignore the option if not recognized
8387 # So say no if there are warnings other than the usual output.
8388 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8391 lt_cv_prog_compiler_rtti_exceptions=yes
8392 fi
8393 fi
8394 $rm conftest*
8395
8396 fi
8397 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8399
8400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8401 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8402 else
8403 :
8404 fi
8405
8406 fi
8407
8408 lt_prog_compiler_wl=
8409 lt_prog_compiler_pic=
8410 lt_prog_compiler_static=
8411
8412 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8413 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8414
8415 if test "$GCC" = yes; then
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_static='-static'
8418
8419 case $host_os in
8420 aix*)
8421 # All AIX code is PIC.
8422 if test "$host_cpu" = ia64; then
8423 # AIX 5 now supports IA64 processor
8424 lt_prog_compiler_static='-Bstatic'
8425 fi
8426 ;;
8427
8428 amigaos*)
8429 # FIXME: we need at least 68020 code to build shared libraries, but
8430 # adding the `-m68020' flag to GCC prevents building anything better,
8431 # like `-m68040'.
8432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8433 ;;
8434
8435 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8436 # PIC is the default for these OSes.
8437 ;;
8438
8439 mingw* | pw32* | os2*)
8440 # This hack is so that the source file can tell whether it is being
8441 # built for inclusion in a dll (and should export symbols for example).
8442 lt_prog_compiler_pic='-DDLL_EXPORT'
8443 ;;
8444
8445 darwin* | rhapsody*)
8446 # PIC is the default on this platform
8447 # Common symbols not allowed in MH_DYLIB files
8448 lt_prog_compiler_pic='-fno-common'
8449 ;;
8450
8451 interix3*)
8452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8453 # Instead, we relocate shared libraries at runtime.
8454 ;;
8455
8456 msdosdjgpp*)
8457 # Just because we use GCC doesn't mean we suddenly get shared libraries
8458 # on systems that don't support them.
8459 lt_prog_compiler_can_build_shared=no
8460 enable_shared=no
8461 ;;
8462
8463 sysv4*MP*)
8464 if test -d /usr/nec; then
8465 lt_prog_compiler_pic=-Kconform_pic
8466 fi
8467 ;;
8468
8469 hpux*)
8470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8471 # not for PA HP-UX.
8472 case $host_cpu in
8473 hppa*64*|ia64*)
8474 # +Z the default
8475 ;;
8476 *)
8477 lt_prog_compiler_pic='-fPIC'
8478 ;;
8479 esac
8480 ;;
8481
8482 *)
8483 lt_prog_compiler_pic='-fPIC'
8484 ;;
8485 esac
8486 else
8487 # PORTME Check for flag to pass linker flags through the system compiler.
8488 case $host_os in
8489 aix*)
8490 lt_prog_compiler_wl='-Wl,'
8491 if test "$host_cpu" = ia64; then
8492 # AIX 5 now supports IA64 processor
8493 lt_prog_compiler_static='-Bstatic'
8494 else
8495 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8496 fi
8497 ;;
8498 darwin*)
8499 # PIC is the default on this platform
8500 # Common symbols not allowed in MH_DYLIB files
8501 case $cc_basename in
8502 xlc*)
8503 lt_prog_compiler_pic='-qnocommon'
8504 lt_prog_compiler_wl='-Wl,'
8505 ;;
8506 esac
8507 ;;
8508
8509 mingw* | pw32* | os2*)
8510 # This hack is so that the source file can tell whether it is being
8511 # built for inclusion in a dll (and should export symbols for example).
8512 lt_prog_compiler_pic='-DDLL_EXPORT'
8513 ;;
8514
8515 hpux9* | hpux10* | hpux11*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8518 # not for PA HP-UX.
8519 case $host_cpu in
8520 hppa*64*|ia64*)
8521 # +Z the default
8522 ;;
8523 *)
8524 lt_prog_compiler_pic='+Z'
8525 ;;
8526 esac
8527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8528 lt_prog_compiler_static='${wl}-a ${wl}archive'
8529 ;;
8530
8531 irix5* | irix6* | nonstopux*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # PIC (with -KPIC) is the default.
8534 lt_prog_compiler_static='-non_shared'
8535 ;;
8536
8537 newsos6)
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 ;;
8541
8542 linux*)
8543 case $cc_basename in
8544 icc* | ecc*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-static'
8548 ;;
8549 pgcc* | pgf77* | pgf90* | pgf95*)
8550 # Portland Group compilers (*not* the Pentium gcc compiler,
8551 # which looks to be a dead project)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
8556 ccc*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All Alpha code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8560 ;;
8561 esac
8562 ;;
8563
8564 osf3* | osf4* | osf5*)
8565 lt_prog_compiler_wl='-Wl,'
8566 # All OSF/1 code is PIC.
8567 lt_prog_compiler_static='-non_shared'
8568 ;;
8569
8570 solaris*)
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 case $cc_basename in
8574 f77* | f90* | f95*)
8575 lt_prog_compiler_wl='-Qoption ld ';;
8576 *)
8577 lt_prog_compiler_wl='-Wl,';;
8578 esac
8579 ;;
8580
8581 sunos4*)
8582 lt_prog_compiler_wl='-Qoption ld '
8583 lt_prog_compiler_pic='-PIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 sysv4 | sysv4.2uw2* | sysv4.3*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8591 ;;
8592
8593 sysv4*MP*)
8594 if test -d /usr/nec ;then
8595 lt_prog_compiler_pic='-Kconform_pic'
8596 lt_prog_compiler_static='-Bstatic'
8597 fi
8598 ;;
8599
8600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 ;;
8605
8606 unicos*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_can_build_shared=no
8609 ;;
8610
8611 uts4*)
8612 lt_prog_compiler_pic='-pic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 *)
8617 lt_prog_compiler_can_build_shared=no
8618 ;;
8619 esac
8620 fi
8621
8622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8623 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8624
8625 #
8626 # Check to make sure the PIC flag actually works.
8627 #
8628 if test -n "$lt_prog_compiler_pic"; then
8629
8630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8632 if test "${lt_prog_compiler_pic_works+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635 lt_prog_compiler_pic_works=no
8636 ac_outfile=conftest.$ac_objext
8637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8638 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8639 # Insert the option either (1) after the last *FLAGS variable, or
8640 # (2) before a word containing "conftest.", or (3) at the end.
8641 # Note that $ac_compile itself does not contain backslashes and begins
8642 # with a dollar sign (not a hyphen), so the echo should work correctly.
8643 # The option is referenced via a variable to avoid confusing sed.
8644 lt_compile=`echo "$ac_compile" | $SED \
8645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8647 -e 's:$: $lt_compiler_flag:'`
8648 (eval echo "\"\$as_me:8648: $lt_compile\"" >&5)
8649 (eval "$lt_compile" 2>conftest.err)
8650 ac_status=$?
8651 cat conftest.err >&5
8652 echo "$as_me:8652: \$? = $ac_status" >&5
8653 if (exit $ac_status) && test -s "$ac_outfile"; then
8654 # The compiler can only warn and ignore the option if not recognized
8655 # So say no if there are warnings other than the usual output.
8656 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8658 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8659 lt_prog_compiler_pic_works=yes
8660 fi
8661 fi
8662 $rm conftest*
8663
8664 fi
8665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8666 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8667
8668 if test x"$lt_prog_compiler_pic_works" = xyes; then
8669 case $lt_prog_compiler_pic in
8670 "" | " "*) ;;
8671 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8672 esac
8673 else
8674 lt_prog_compiler_pic=
8675 lt_prog_compiler_can_build_shared=no
8676 fi
8677
8678 fi
8679 case $host_os in
8680 # For platforms which do not support PIC, -DPIC is meaningless:
8681 *djgpp*)
8682 lt_prog_compiler_pic=
8683 ;;
8684 *)
8685 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8686 ;;
8687 esac
8688
8689 #
8690 # Check to make sure the static flag actually works.
8691 #
8692 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8693 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8694 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8695 if test "${lt_prog_compiler_static_works+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698 lt_prog_compiler_static_works=no
8699 save_LDFLAGS="$LDFLAGS"
8700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8701 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8703 # The linker can only warn and ignore the option if not recognized
8704 # So say no if there are warnings
8705 if test -s conftest.err; then
8706 # Append any errors to the config.log.
8707 cat conftest.err 1>&5
8708 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8710 if diff conftest.exp conftest.er2 >/dev/null; then
8711 lt_prog_compiler_static_works=yes
8712 fi
8713 else
8714 lt_prog_compiler_static_works=yes
8715 fi
8716 fi
8717 $rm conftest*
8718 LDFLAGS="$save_LDFLAGS"
8719
8720 fi
8721 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8722 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8723
8724 if test x"$lt_prog_compiler_static_works" = xyes; then
8725 :
8726 else
8727 lt_prog_compiler_static=
8728 fi
8729
8730
8731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8732 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8733 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 lt_cv_prog_compiler_c_o=no
8737 $rm -r conftest 2>/dev/null
8738 mkdir conftest
8739 cd conftest
8740 mkdir out
8741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8742
8743 lt_compiler_flag="-o out/conftest2.$ac_objext"
8744 # Insert the option either (1) after the last *FLAGS variable, or
8745 # (2) before a word containing "conftest.", or (3) at the end.
8746 # Note that $ac_compile itself does not contain backslashes and begins
8747 # with a dollar sign (not a hyphen), so the echo should work correctly.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:8752: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>out/conftest.err)
8754 ac_status=$?
8755 cat out/conftest.err >&5
8756 echo "$as_me:8756: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8758 then
8759 # The compiler can only warn and ignore the option if not recognized
8760 # So say no if there are warnings
8761 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_c_o=yes
8765 fi
8766 fi
8767 chmod u+w . 2>&5
8768 $rm conftest*
8769 # SGI C++ compiler will create directory out/ii_files/ for
8770 # template instantiation
8771 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8772 $rm out/* && rmdir out
8773 cd ..
8774 rmdir conftest
8775 $rm conftest*
8776
8777 fi
8778 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8779 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8780
8781
8782 hard_links="nottested"
8783 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8784 # do not overwrite the value of need_locks provided by the user
8785 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8786 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8787 hard_links=yes
8788 $rm conftest*
8789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8790 touch conftest.a
8791 ln conftest.a conftest.b 2>&5 || hard_links=no
8792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8793 echo "$as_me:$LINENO: result: $hard_links" >&5
8794 echo "${ECHO_T}$hard_links" >&6
8795 if test "$hard_links" = no; then
8796 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8797 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8798 need_locks=warn
8799 fi
8800 else
8801 need_locks=no
8802 fi
8803
8804 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8805 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8806
8807 runpath_var=
8808 allow_undefined_flag=
8809 enable_shared_with_static_runtimes=no
8810 archive_cmds=
8811 archive_expsym_cmds=
8812 old_archive_From_new_cmds=
8813 old_archive_from_expsyms_cmds=
8814 export_dynamic_flag_spec=
8815 whole_archive_flag_spec=
8816 thread_safe_flag_spec=
8817 hardcode_libdir_flag_spec=
8818 hardcode_libdir_flag_spec_ld=
8819 hardcode_libdir_separator=
8820 hardcode_direct=no
8821 hardcode_minus_L=no
8822 hardcode_shlibpath_var=unsupported
8823 link_all_deplibs=unknown
8824 hardcode_automatic=no
8825 module_cmds=
8826 module_expsym_cmds=
8827 always_export_symbols=no
8828 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8829 # include_expsyms should be a list of space-separated symbols to be *always*
8830 # included in the symbol list
8831 include_expsyms=
8832 # exclude_expsyms can be an extended regexp of symbols to exclude
8833 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8834 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8835 # as well as any symbol that contains `d'.
8836 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8837 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8838 # platforms (ab)use it in PIC code, but their linkers get confused if
8839 # the symbol is explicitly referenced. Since portable code cannot
8840 # rely on this symbol name, it's probably fine to never include it in
8841 # preloaded symbol tables.
8842 extract_expsyms_cmds=
8843 # Just being paranoid about ensuring that cc_basename is set.
8844 for cc_temp in $compiler""; do
8845 case $cc_temp in
8846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8848 \-*) ;;
8849 *) break;;
8850 esac
8851 done
8852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8853
8854 case $host_os in
8855 cygwin* | mingw* | pw32*)
8856 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8857 # When not using gcc, we currently assume that we are using
8858 # Microsoft Visual C++.
8859 if test "$GCC" != yes; then
8860 with_gnu_ld=no
8861 fi
8862 ;;
8863 interix*)
8864 # we just hope/assume this is gcc and not c89 (= MSVC++)
8865 with_gnu_ld=yes
8866 ;;
8867 openbsd*)
8868 with_gnu_ld=no
8869 ;;
8870 esac
8871
8872 ld_shlibs=yes
8873 if test "$with_gnu_ld" = yes; then
8874 # If archive_cmds runs LD, not CC, wlarc should be empty
8875 wlarc='${wl}'
8876
8877 # Set some defaults for GNU ld with shared library support. These
8878 # are reset later if shared libraries are not supported. Putting them
8879 # here allows them to be overridden if necessary.
8880 runpath_var=LD_RUN_PATH
8881 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8882 export_dynamic_flag_spec='${wl}--export-dynamic'
8883 # ancient GNU ld didn't support --whole-archive et. al.
8884 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8885 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8886 else
8887 whole_archive_flag_spec=
8888 fi
8889 supports_anon_versioning=no
8890 case `$LD -v 2>/dev/null` in
8891 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8892 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8893 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8894 *\ 2.11.*) ;; # other 2.11 versions
8895 *) supports_anon_versioning=yes ;;
8896 esac
8897
8898 # See if GNU ld supports shared libraries.
8899 case $host_os in
8900 aix3* | aix4* | aix5*)
8901 # On AIX/PPC, the GNU linker is very broken
8902 if test "$host_cpu" != ia64; then
8903 ld_shlibs=no
8904 cat <<EOF 1>&2
8905
8906 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8907 *** to be unable to reliably create shared libraries on AIX.
8908 *** Therefore, libtool is disabling shared libraries support. If you
8909 *** really care for shared libraries, you may want to modify your PATH
8910 *** so that a non-GNU linker is found, and then restart.
8911
8912 EOF
8913 fi
8914 ;;
8915
8916 amigaos*)
8917 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)'
8918 hardcode_libdir_flag_spec='-L$libdir'
8919 hardcode_minus_L=yes
8920
8921 # Samuel A. Falvo II <[email protected]> reports
8922 # that the semantics of dynamic libraries on AmigaOS, at least up
8923 # to version 4, is to share data among multiple programs linked
8924 # with the same dynamic library. Since this doesn't match the
8925 # behavior of shared libraries on other platforms, we can't use
8926 # them.
8927 ld_shlibs=no
8928 ;;
8929
8930 beos*)
8931 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8932 allow_undefined_flag=unsupported
8933 # Joseph Beckenbach <[email protected]> says some releases of gcc
8934 # support --undefined. This deserves some investigation. FIXME
8935 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 else
8937 ld_shlibs=no
8938 fi
8939 ;;
8940
8941 cygwin* | mingw* | pw32*)
8942 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8943 # as there is no search path for DLLs.
8944 hardcode_libdir_flag_spec='-L$libdir'
8945 allow_undefined_flag=unsupported
8946 always_export_symbols=no
8947 enable_shared_with_static_runtimes=yes
8948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8949
8950 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8952 # If the export-symbols file already is a .def file (1st line
8953 # is EXPORTS), use it as is; otherwise, prepend...
8954 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8955 cp $export_symbols $output_objdir/$soname.def;
8956 else
8957 echo EXPORTS > $output_objdir/$soname.def;
8958 cat $export_symbols >> $output_objdir/$soname.def;
8959 fi~
8960 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8961 else
8962 ld_shlibs=no
8963 fi
8964 ;;
8965
8966 interix3*)
8967 hardcode_direct=no
8968 hardcode_shlibpath_var=no
8969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8970 export_dynamic_flag_spec='${wl}-E'
8971 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8972 # Instead, shared libraries are loaded at an image base (0x10000000 by
8973 # default) and relocated if they conflict, which is a slow very memory
8974 # consuming and fragmenting process. To avoid this, we pick a random,
8975 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8976 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8977 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8978 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'
8979 ;;
8980
8981 linux*)
8982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8983 tmp_addflag=
8984 case $cc_basename,$host_cpu in
8985 pgcc*) # Portland Group C compiler
8986 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'
8987 tmp_addflag=' $pic_flag'
8988 ;;
8989 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8990 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'
8991 tmp_addflag=' $pic_flag -Mnomain' ;;
8992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8993 tmp_addflag=' -i_dynamic' ;;
8994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8995 tmp_addflag=' -i_dynamic -nofor_main' ;;
8996 ifc* | ifort*) # Intel Fortran compiler
8997 tmp_addflag=' -nofor_main' ;;
8998 esac
8999 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000
9001 if test $supports_anon_versioning = yes; then
9002 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9004 $echo "local: *; };" >> $output_objdir/$libname.ver~
9005 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9006 fi
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011
9012 netbsd*)
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9015 wlarc=
9016 else
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019 fi
9020 ;;
9021
9022 solaris*)
9023 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9024 ld_shlibs=no
9025 cat <<EOF 1>&2
9026
9027 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9028 *** create shared libraries on Solaris systems. Therefore, libtool
9029 *** is disabling shared libraries support. We urge you to upgrade GNU
9030 *** binutils to release 2.9.1 or newer. Another option is to modify
9031 *** your PATH or compiler configuration so that the native linker is
9032 *** used, and then restart.
9033
9034 EOF
9035 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9038 else
9039 ld_shlibs=no
9040 fi
9041 ;;
9042
9043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9044 case `$LD -v 2>&1` in
9045 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9046 ld_shlibs=no
9047 cat <<_LT_EOF 1>&2
9048
9049 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9050 *** reliably create shared libraries on SCO systems. Therefore, libtool
9051 *** is disabling shared libraries support. We urge you to upgrade GNU
9052 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9053 *** your PATH or compiler configuration so that the native linker is
9054 *** used, and then restart.
9055
9056 _LT_EOF
9057 ;;
9058 *)
9059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9060 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9063 else
9064 ld_shlibs=no
9065 fi
9066 ;;
9067 esac
9068 ;;
9069
9070 sunos4*)
9071 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9072 wlarc=
9073 hardcode_direct=yes
9074 hardcode_shlibpath_var=no
9075 ;;
9076
9077 *)
9078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081 else
9082 ld_shlibs=no
9083 fi
9084 ;;
9085 esac
9086
9087 if test "$ld_shlibs" = no; then
9088 runpath_var=
9089 hardcode_libdir_flag_spec=
9090 export_dynamic_flag_spec=
9091 whole_archive_flag_spec=
9092 fi
9093 else
9094 # PORTME fill in a description of your system's linker (not GNU ld)
9095 case $host_os in
9096 aix3*)
9097 allow_undefined_flag=unsupported
9098 always_export_symbols=yes
9099 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'
9100 # Note: this linker hardcodes the directories in LIBPATH if there
9101 # are no directories specified by -L.
9102 hardcode_minus_L=yes
9103 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9104 # Neither direct hardcoding nor static linking is supported with a
9105 # broken collect2.
9106 hardcode_direct=unsupported
9107 fi
9108 ;;
9109
9110 aix4* | aix5*)
9111 if test "$host_cpu" = ia64; then
9112 # On IA64, the linker does run time linking by default, so we don't
9113 # have to do anything special.
9114 aix_use_runtimelinking=no
9115 exp_sym_flag='-Bexport'
9116 no_entry_flag=""
9117 else
9118 # If we're using GNU nm, then we don't want the "-C" option.
9119 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9120 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9121 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'
9122 else
9123 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'
9124 fi
9125 aix_use_runtimelinking=no
9126
9127 # Test if we are trying to use run time linking or normal
9128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129 # need to do runtime linking.
9130 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9131 for ld_flag in $LDFLAGS; do
9132 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133 aix_use_runtimelinking=yes
9134 break
9135 fi
9136 done
9137 ;;
9138 esac
9139
9140 exp_sym_flag='-bexport'
9141 no_entry_flag='-bnoentry'
9142 fi
9143
9144 # When large executables or shared objects are built, AIX ld can
9145 # have problems creating the table of contents. If linking a library
9146 # or program results in "error TOC overflow" add -mminimal-toc to
9147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9149
9150 archive_cmds=''
9151 hardcode_direct=yes
9152 hardcode_libdir_separator=':'
9153 link_all_deplibs=yes
9154
9155 if test "$GCC" = yes; then
9156 case $host_os in aix4.[012]|aix4.[012].*)
9157 # We only want to do this on AIX 4.2 and lower, the check
9158 # below for broken collect2 doesn't work under 4.3+
9159 collect2name=`${CC} -print-prog-name=collect2`
9160 if test -f "$collect2name" && \
9161 strings "$collect2name" | grep resolve_lib_name >/dev/null
9162 then
9163 # We have reworked collect2
9164 hardcode_direct=yes
9165 else
9166 # We have old collect2
9167 hardcode_direct=unsupported
9168 # It fails to find uninstalled libraries when the uninstalled
9169 # path is not listed in the libpath. Setting hardcode_minus_L
9170 # to unsupported forces relinking
9171 hardcode_minus_L=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_libdir_separator=
9174 fi
9175 ;;
9176 esac
9177 shared_flag='-shared'
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag="$shared_flag "'${wl}-G'
9180 fi
9181 else
9182 # not using gcc
9183 if test "$host_cpu" = ia64; then
9184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9185 # chokes on -Wl,-G. The following line is correct:
9186 shared_flag='-G'
9187 else
9188 if test "$aix_use_runtimelinking" = yes; then
9189 shared_flag='${wl}-G'
9190 else
9191 shared_flag='${wl}-bM:SRE'
9192 fi
9193 fi
9194 fi
9195
9196 # It seems that -bexpall does not export symbols beginning with
9197 # underscore (_), so it is better to generate a list of symbols to export.
9198 always_export_symbols=yes
9199 if test "$aix_use_runtimelinking" = yes; then
9200 # Warning - without using the other runtime loading flags (-brtl),
9201 # -berok will link without error, but may produce a broken library.
9202 allow_undefined_flag='-berok'
9203 # Determine the default libpath from the value encoded in an empty executable.
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210
9211 int
9212 main ()
9213 {
9214
9215 ;
9216 return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag"
9229 || test ! -s conftest.err'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 (eval $ac_try) 2>&5
9232 ac_status=$?
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; } &&
9235 { ac_try='test -s conftest$ac_exeext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 (eval $ac_try) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241
9242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9243 }'`
9244 # Check for a 64-bit object if we didn't find anything.
9245 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; }
9246 }'`; fi
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 fi
9252 rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9255
9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 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"
9258 else
9259 if test "$host_cpu" = ia64; then
9260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9261 allow_undefined_flag="-z nodefs"
9262 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"
9263 else
9264 # Determine the default libpath from the value encoded in an empty executable.
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h. */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271
9272 int
9273 main ()
9274 {
9275
9276 ;
9277 return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302
9303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9304 }'`
9305 # Check for a 64-bit object if we didn't find anything.
9306 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; }
9307 }'`; fi
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316
9317 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9318 # Warning - without using the other run time loading flags,
9319 # -berok will link without error, but may produce a broken library.
9320 no_undefined_flag=' ${wl}-bernotok'
9321 allow_undefined_flag=' ${wl}-berok'
9322 # Exported symbols can be pulled into shared objects from archives
9323 whole_archive_flag_spec='$convenience'
9324 archive_cmds_need_lc=yes
9325 # This is similar to how AIX traditionally builds its shared libraries.
9326 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'
9327 fi
9328 fi
9329 ;;
9330
9331 amigaos*)
9332 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)'
9333 hardcode_libdir_flag_spec='-L$libdir'
9334 hardcode_minus_L=yes
9335 # see comment about different semantics on the GNU ld section
9336 ld_shlibs=no
9337 ;;
9338
9339 bsdi[45]*)
9340 export_dynamic_flag_spec=-rdynamic
9341 ;;
9342
9343 cygwin* | mingw* | pw32*)
9344 # When not using gcc, we currently assume that we are using
9345 # Microsoft Visual C++.
9346 # hardcode_libdir_flag_spec is actually meaningless, as there is
9347 # no search path for DLLs.
9348 hardcode_libdir_flag_spec=' '
9349 allow_undefined_flag=unsupported
9350 # Tell ltmain to make .lib files, not .a files.
9351 libext=lib
9352 # Tell ltmain to make .dll files, not .so files.
9353 shrext_cmds=".dll"
9354 # FIXME: Setting linknames here is a bad hack.
9355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9356 # The linker will automatically build a .lib file if we build a DLL.
9357 old_archive_From_new_cmds='true'
9358 # FIXME: Should let the user specify the lib program.
9359 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9360 fix_srcfile_path='`cygpath -w "$srcfile"`'
9361 enable_shared_with_static_runtimes=yes
9362 ;;
9363
9364 darwin* | rhapsody*)
9365 case $host_os in
9366 rhapsody* | darwin1.[012])
9367 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9368 ;;
9369 *) # Darwin 1.3 on
9370 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9371 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9372 else
9373 case ${MACOSX_DEPLOYMENT_TARGET} in
9374 10.[012])
9375 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9376 ;;
9377 10.*)
9378 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9379 ;;
9380 esac
9381 fi
9382 ;;
9383 esac
9384 archive_cmds_need_lc=no
9385 hardcode_direct=no
9386 hardcode_automatic=yes
9387 hardcode_shlibpath_var=unsupported
9388 whole_archive_flag_spec=''
9389 link_all_deplibs=yes
9390 if test "$GCC" = yes ; then
9391 output_verbose_link_cmd='echo'
9392 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9393 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9395 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}'
9396 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}'
9397 else
9398 case $cc_basename in
9399 xlc*)
9400 output_verbose_link_cmd='echo'
9401 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9402 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9404 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}'
9405 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}'
9406 ;;
9407 *)
9408 ld_shlibs=no
9409 ;;
9410 esac
9411 fi
9412 ;;
9413
9414 dgux*)
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 freebsd1*)
9421 ld_shlibs=no
9422 ;;
9423
9424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9425 # support. Future versions do this automatically, but an explicit c++rt0.o
9426 # does not break anything, and helps significantly (at the cost of a little
9427 # extra space).
9428 freebsd2.2*)
9429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9430 hardcode_libdir_flag_spec='-R$libdir'
9431 hardcode_direct=yes
9432 hardcode_shlibpath_var=no
9433 ;;
9434
9435 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9436 freebsd2*)
9437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_direct=yes
9439 hardcode_minus_L=yes
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9444 freebsd* | kfreebsd*-gnu | dragonfly*)
9445 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9446 hardcode_libdir_flag_spec='-R$libdir'
9447 hardcode_direct=yes
9448 hardcode_shlibpath_var=no
9449 ;;
9450
9451 hpux9*)
9452 if test "$GCC" = yes; then
9453 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'
9454 else
9455 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'
9456 fi
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9459 hardcode_direct=yes
9460
9461 # hardcode_minus_L: Not really in the search PATH,
9462 # but as the default location of the library.
9463 hardcode_minus_L=yes
9464 export_dynamic_flag_spec='${wl}-E'
9465 ;;
9466
9467 hpux10*)
9468 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9469 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9470 else
9471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9472 fi
9473 if test "$with_gnu_ld" = no; then
9474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9475 hardcode_libdir_separator=:
9476
9477 hardcode_direct=yes
9478 export_dynamic_flag_spec='${wl}-E'
9479
9480 # hardcode_minus_L: Not really in the search PATH,
9481 # but as the default location of the library.
9482 hardcode_minus_L=yes
9483 fi
9484 ;;
9485
9486 hpux11*)
9487 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9488 case $host_cpu in
9489 hppa*64*)
9490 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 ;;
9492 ia64*)
9493 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9494 ;;
9495 *)
9496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497 ;;
9498 esac
9499 else
9500 case $host_cpu in
9501 hppa*64*)
9502 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 ;;
9504 ia64*)
9505 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9506 ;;
9507 *)
9508 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509 ;;
9510 esac
9511 fi
9512 if test "$with_gnu_ld" = no; then
9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514 hardcode_libdir_separator=:
9515
9516 case $host_cpu in
9517 hppa*64*|ia64*)
9518 hardcode_libdir_flag_spec_ld='+b $libdir'
9519 hardcode_direct=no
9520 hardcode_shlibpath_var=no
9521 ;;
9522 *)
9523 hardcode_direct=yes
9524 export_dynamic_flag_spec='${wl}-E'
9525
9526 # hardcode_minus_L: Not really in the search PATH,
9527 # but as the default location of the library.
9528 hardcode_minus_L=yes
9529 ;;
9530 esac
9531 fi
9532 ;;
9533
9534 irix5* | irix6* | nonstopux*)
9535 if test "$GCC" = yes; then
9536 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'
9537 else
9538 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'
9539 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9540 fi
9541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9542 hardcode_libdir_separator=:
9543 link_all_deplibs=yes
9544 ;;
9545
9546 netbsd*)
9547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9549 else
9550 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9551 fi
9552 hardcode_libdir_flag_spec='-R$libdir'
9553 hardcode_direct=yes
9554 hardcode_shlibpath_var=no
9555 ;;
9556
9557 newsos6)
9558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_direct=yes
9560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561 hardcode_libdir_separator=:
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 openbsd*)
9566 hardcode_direct=yes
9567 hardcode_shlibpath_var=no
9568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572 export_dynamic_flag_spec='${wl}-E'
9573 else
9574 case $host_os in
9575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_libdir_flag_spec='-R$libdir'
9578 ;;
9579 *)
9580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9582 ;;
9583 esac
9584 fi
9585 ;;
9586
9587 os2*)
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9590 allow_undefined_flag=unsupported
9591 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'
9592 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9593 ;;
9594
9595 osf3*)
9596 if test "$GCC" = yes; then
9597 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9598 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'
9599 else
9600 allow_undefined_flag=' -expect_unresolved \*'
9601 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'
9602 fi
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 ;;
9606
9607 osf4* | osf5*) # as osf3* with the addition of -msym flag
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
9614 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'
9615 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9616 $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'
9617
9618 # Both c and cxx compiler support -rpath directly
9619 hardcode_libdir_flag_spec='-rpath $libdir'
9620 fi
9621 hardcode_libdir_separator=:
9622 ;;
9623
9624 solaris*)
9625 no_undefined_flag=' -z text'
9626 if test "$GCC" = yes; then
9627 wlarc='${wl}'
9628 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9630 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9631 else
9632 wlarc=''
9633 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9636 fi
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_shlibpath_var=no
9639 case $host_os in
9640 solaris2.[0-5] | solaris2.[0-5].*) ;;
9641 *)
9642 # The compiler driver will combine linker options so we
9643 # cannot just pass the convience library names through
9644 # without $wl, iff we do not link with $LD.
9645 # Luckily, gcc supports the same syntax we need for Sun Studio.
9646 # Supported since Solaris 2.6 (maybe 2.5.1?)
9647 case $wlarc in
9648 '')
9649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9650 *)
9651 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' ;;
9652 esac ;;
9653 esac
9654 link_all_deplibs=yes
9655 ;;
9656
9657 sunos4*)
9658 if test "x$host_vendor" = xsequent; then
9659 # Use $CC to link under sequent, because it throws in some extra .o
9660 # files that make .init and .fini sections work.
9661 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662 else
9663 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9664 fi
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_direct=yes
9667 hardcode_minus_L=yes
9668 hardcode_shlibpath_var=no
9669 ;;
9670
9671 sysv4)
9672 case $host_vendor in
9673 sni)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_direct=yes # is this really true???
9676 ;;
9677 siemens)
9678 ## LD is ld it makes a PLAMLIB
9679 ## CC just makes a GrossModule.
9680 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9681 reload_cmds='$CC -r -o $output$reload_objs'
9682 hardcode_direct=no
9683 ;;
9684 motorola)
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9687 ;;
9688 esac
9689 runpath_var='LD_RUN_PATH'
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 sysv4.3*)
9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_shlibpath_var=no
9696 export_dynamic_flag_spec='-Bexport'
9697 ;;
9698
9699 sysv4*MP*)
9700 if test -d /usr/nec; then
9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_shlibpath_var=no
9703 runpath_var=LD_RUN_PATH
9704 hardcode_runpath_var=yes
9705 ld_shlibs=yes
9706 fi
9707 ;;
9708
9709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9710 no_undefined_flag='${wl}-z,text'
9711 archive_cmds_need_lc=no
9712 hardcode_shlibpath_var=no
9713 runpath_var='LD_RUN_PATH'
9714
9715 if test "$GCC" = yes; then
9716 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 else
9719 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 fi
9722 ;;
9723
9724 sysv5* | sco3.2v5* | sco5v6*)
9725 # Note: We can NOT use -z defs as we might desire, because we do not
9726 # link with -lc, and that would cause any symbols used from libc to
9727 # always be unresolved, which means just about no library would
9728 # ever link correctly. If we're not using GNU ld we use -z text
9729 # though, which does catch some bad symbols but isn't as heavy-handed
9730 # as -z defs.
9731 no_undefined_flag='${wl}-z,text'
9732 allow_undefined_flag='${wl}-z,nodefs'
9733 archive_cmds_need_lc=no
9734 hardcode_shlibpath_var=no
9735 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9736 hardcode_libdir_separator=':'
9737 link_all_deplibs=yes
9738 export_dynamic_flag_spec='${wl}-Bexport'
9739 runpath_var='LD_RUN_PATH'
9740
9741 if test "$GCC" = yes; then
9742 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 fi
9748 ;;
9749
9750 uts4*)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_shlibpath_var=no
9754 ;;
9755
9756 *)
9757 ld_shlibs=no
9758 ;;
9759 esac
9760 fi
9761
9762 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9763 echo "${ECHO_T}$ld_shlibs" >&6
9764 test "$ld_shlibs" = no && can_build_shared=no
9765
9766 #
9767 # Do we need to explicitly link libc?
9768 #
9769 case "x$archive_cmds_need_lc" in
9770 x|xyes)
9771 # Assume -lc should be added
9772 archive_cmds_need_lc=yes
9773
9774 if test "$enable_shared" = yes && test "$GCC" = yes; then
9775 case $archive_cmds in
9776 *'~'*)
9777 # FIXME: we may have to deal with multi-command sequences.
9778 ;;
9779 '$CC '*)
9780 # Test whether the compiler implicitly links with -lc since on some
9781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9782 # to ld, don't add -lc before -lgcc.
9783 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9784 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9785 $rm conftest*
9786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9787
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } 2>conftest.err; then
9793 soname=conftest
9794 lib=conftest
9795 libobjs=conftest.$ac_objext
9796 deplibs=
9797 wl=$lt_prog_compiler_wl
9798 pic_flag=$lt_prog_compiler_pic
9799 compiler_flags=-v
9800 linker_flags=-v
9801 verstring=
9802 output_objdir=.
9803 libname=conftest
9804 lt_save_allow_undefined_flag=$allow_undefined_flag
9805 allow_undefined_flag=
9806 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9807 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }
9811 then
9812 archive_cmds_need_lc=no
9813 else
9814 archive_cmds_need_lc=yes
9815 fi
9816 allow_undefined_flag=$lt_save_allow_undefined_flag
9817 else
9818 cat conftest.err 1>&5
9819 fi
9820 $rm conftest*
9821 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9822 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9823 ;;
9824 esac
9825 fi
9826 ;;
9827 esac
9828
9829 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9830 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9831 library_names_spec=
9832 libname_spec='lib$name'
9833 soname_spec=
9834 shrext_cmds=".so"
9835 postinstall_cmds=
9836 postuninstall_cmds=
9837 finish_cmds=
9838 finish_eval=
9839 shlibpath_var=
9840 shlibpath_overrides_runpath=unknown
9841 version_type=none
9842 dynamic_linker="$host_os ld.so"
9843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9844 if test "$GCC" = yes; then
9845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9846 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9847 # if the path contains ";" then we assume it to be the separator
9848 # otherwise default to the standard path separator (i.e. ":") - it is
9849 # assumed that no part of a normal pathname contains ";" but that should
9850 # okay in the real world where ";" in dirpaths is itself problematic.
9851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9852 else
9853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9854 fi
9855 else
9856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9857 fi
9858 need_lib_prefix=unknown
9859 hardcode_into_libs=no
9860
9861 # when you set need_version to no, make sure it does not cause -set_version
9862 # flags to be left without arguments
9863 need_version=unknown
9864
9865 case $host_os in
9866 aix3*)
9867 version_type=linux
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9869 shlibpath_var=LIBPATH
9870
9871 # AIX 3 has no versioning support, so we append a major version to the name.
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 ;;
9874
9875 aix4* | aix5*)
9876 version_type=linux
9877 need_lib_prefix=no
9878 need_version=no
9879 hardcode_into_libs=yes
9880 if test "$host_cpu" = ia64; then
9881 # AIX 5 supports IA64
9882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 else
9885 # With GCC up to 2.95.x, collect2 would create an import file
9886 # for dependence libraries. The import file would start with
9887 # the line `#! .'. This would cause the generated library to
9888 # depend on `.', always an invalid library. This was fixed in
9889 # development snapshots of GCC prior to 3.0.
9890 case $host_os in
9891 aix4 | aix4.[01] | aix4.[01].*)
9892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9893 echo ' yes '
9894 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9895 :
9896 else
9897 can_build_shared=no
9898 fi
9899 ;;
9900 esac
9901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9902 # soname into executable. Probably we can add versioning support to
9903 # collect2, so additional links can be useful in future.
9904 if test "$aix_use_runtimelinking" = yes; then
9905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9906 # instead of lib<name>.a to let people know that these are not
9907 # typical AIX shared libraries.
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 else
9910 # We preserve .a as extension for shared libraries through AIX4.2
9911 # and later when we are not doing run time linking.
9912 library_names_spec='${libname}${release}.a $libname.a'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 fi
9915 shlibpath_var=LIBPATH
9916 fi
9917 ;;
9918
9919 amigaos*)
9920 library_names_spec='$libname.ixlibrary $libname.a'
9921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9922 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'
9923 ;;
9924
9925 beos*)
9926 library_names_spec='${libname}${shared_ext}'
9927 dynamic_linker="$host_os ld.so"
9928 shlibpath_var=LIBRARY_PATH
9929 ;;
9930
9931 bsdi[45]*)
9932 version_type=linux
9933 need_version=no
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9937 shlibpath_var=LD_LIBRARY_PATH
9938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9940 # the default ld.so.conf also contains /usr/contrib/lib and
9941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9942 # libtool to hard-code these into programs
9943 ;;
9944
9945 cygwin* | mingw* | pw32*)
9946 version_type=windows
9947 shrext_cmds=".dll"
9948 need_version=no
9949 need_lib_prefix=no
9950
9951 case $GCC,$host_os in
9952 yes,cygwin* | yes,mingw* | yes,pw32*)
9953 library_names_spec='$libname.dll.a'
9954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9955 postinstall_cmds='base_file=`basename \${file}`~
9956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9957 dldir=$destdir/`dirname \$dlpath`~
9958 test -d \$dldir || mkdir -p \$dldir~
9959 $install_prog $dir/$dlname \$dldir/$dlname~
9960 chmod a+x \$dldir/$dlname'
9961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9962 dlpath=$dir/\$dldll~
9963 $rm \$dlpath'
9964 shlibpath_overrides_runpath=yes
9965
9966 case $host_os in
9967 cygwin*)
9968 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9969 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9971 ;;
9972 mingw*)
9973 # MinGW DLLs use traditional 'lib' prefix
9974 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9976 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9977 # It is most probably a Windows format PATH printed by
9978 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9979 # path with ; separators, and with drive letters. We can handle the
9980 # drive letters (cygwin fileutils understands them), so leave them,
9981 # especially as we might pass files found there to a mingw objdump,
9982 # which wouldn't understand a cygwinified path. Ahh.
9983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9984 else
9985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9986 fi
9987 ;;
9988 pw32*)
9989 # pw32 DLLs use 'pw' prefix rather than 'lib'
9990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9991 ;;
9992 esac
9993 ;;
9994
9995 *)
9996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9997 ;;
9998 esac
9999 dynamic_linker='Win32 ld.exe'
10000 # FIXME: first we should search . and the directory the executable is in
10001 shlibpath_var=PATH
10002 ;;
10003
10004 darwin* | rhapsody*)
10005 dynamic_linker="$host_os dyld"
10006 version_type=darwin
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10010 soname_spec='${libname}${release}${major}$shared_ext'
10011 shlibpath_overrides_runpath=yes
10012 shlibpath_var=DYLD_LIBRARY_PATH
10013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10014 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10015 if test "$GCC" = yes; then
10016 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"`
10017 else
10018 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10019 fi
10020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10021 ;;
10022
10023 dgux*)
10024 version_type=linux
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 ;;
10031
10032 freebsd1*)
10033 dynamic_linker=no
10034 ;;
10035
10036 kfreebsd*-gnu)
10037 version_type=linux
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
10044 hardcode_into_libs=yes
10045 dynamic_linker='GNU ld.so'
10046 ;;
10047
10048 freebsd* | dragonfly*)
10049 # DragonFly does not have aout. When/if they implement a new
10050 # versioning mechanism, adjust this.
10051 if test -x /usr/bin/objformat; then
10052 objformat=`/usr/bin/objformat`
10053 else
10054 case $host_os in
10055 freebsd[123]*) objformat=aout ;;
10056 *) objformat=elf ;;
10057 esac
10058 fi
10059 version_type=freebsd-$objformat
10060 case $version_type in
10061 freebsd-elf*)
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 need_version=no
10064 need_lib_prefix=no
10065 ;;
10066 freebsd-*)
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10068 need_version=yes
10069 ;;
10070 esac
10071 shlibpath_var=LD_LIBRARY_PATH
10072 case $host_os in
10073 freebsd2*)
10074 shlibpath_overrides_runpath=yes
10075 ;;
10076 freebsd3.[01]* | freebsdelf3.[01]*)
10077 shlibpath_overrides_runpath=yes
10078 hardcode_into_libs=yes
10079 ;;
10080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10082 shlibpath_overrides_runpath=no
10083 hardcode_into_libs=yes
10084 ;;
10085 freebsd*) # from 4.6 on
10086 shlibpath_overrides_runpath=yes
10087 hardcode_into_libs=yes
10088 ;;
10089 esac
10090 ;;
10091
10092 gnu*)
10093 version_type=linux
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10099 hardcode_into_libs=yes
10100 ;;
10101
10102 hpux9* | hpux10* | hpux11*)
10103 # Give a soname corresponding to the major version so that dld.sl refuses to
10104 # link against other versions.
10105 version_type=sunos
10106 need_lib_prefix=no
10107 need_version=no
10108 case $host_cpu in
10109 ia64*)
10110 shrext_cmds='.so'
10111 hardcode_into_libs=yes
10112 dynamic_linker="$host_os dld.so"
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 if test "X$HPUX_IA64_MODE" = X32; then
10118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10119 else
10120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10121 fi
10122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10123 ;;
10124 hppa*64*)
10125 shrext_cmds='.sl'
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.sl"
10128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10134 ;;
10135 *)
10136 shrext_cmds='.sl'
10137 dynamic_linker="$host_os dld.sl"
10138 shlibpath_var=SHLIB_PATH
10139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 ;;
10143 esac
10144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10145 postinstall_cmds='chmod 555 $lib'
10146 ;;
10147
10148 interix3*)
10149 version_type=linux
10150 need_lib_prefix=no
10151 need_version=no
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 ;;
10159
10160 irix5* | irix6* | nonstopux*)
10161 case $host_os in
10162 nonstopux*) version_type=nonstopux ;;
10163 *)
10164 if test "$lt_cv_prog_gnu_ld" = yes; then
10165 version_type=linux
10166 else
10167 version_type=irix
10168 fi ;;
10169 esac
10170 need_lib_prefix=no
10171 need_version=no
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10174 case $host_os in
10175 irix5* | nonstopux*)
10176 libsuff= shlibsuff=
10177 ;;
10178 *)
10179 case $LD in # libtool.m4 will add one of these switches to LD
10180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10181 libsuff= shlibsuff= libmagic=32-bit;;
10182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10183 libsuff=32 shlibsuff=N32 libmagic=N32;;
10184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10186 *) libsuff= shlibsuff= libmagic=never-match;;
10187 esac
10188 ;;
10189 esac
10190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10191 shlibpath_overrides_runpath=no
10192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10194 hardcode_into_libs=yes
10195 ;;
10196
10197 # No shared lib support for Linux oldld, aout, or coff.
10198 linux*oldld* | linux*aout* | linux*coff*)
10199 dynamic_linker=no
10200 ;;
10201
10202 # This must be Linux ELF.
10203 linux*)
10204 version_type=linux
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=no
10212 # This implies no fast_install, which is unacceptable.
10213 # Some rework will be needed to allow for fast_install
10214 # before this can be enabled.
10215 hardcode_into_libs=yes
10216
10217 # Append ld.so.conf contents to the search path
10218 if test -f /etc/ld.so.conf; then
10219 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' ' '`
10220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10221 fi
10222
10223 # We used to test for /lib/ld.so.1 and disable shared libraries on
10224 # powerpc, because MkLinux only supported shared libraries with the
10225 # GNU dynamic linker. Since this was broken with cross compilers,
10226 # most powerpc-linux boxes support dynamic linking these days and
10227 # people can always --disable-shared, the test was removed, and we
10228 # assume the GNU/Linux dynamic linker is in use.
10229 dynamic_linker='GNU/Linux ld.so'
10230 ;;
10231
10232 knetbsd*-gnu)
10233 version_type=linux
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=no
10240 hardcode_into_libs=yes
10241 dynamic_linker='GNU ld.so'
10242 ;;
10243
10244 netbsd*)
10245 version_type=sunos
10246 need_lib_prefix=no
10247 need_version=no
10248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10251 dynamic_linker='NetBSD (a.out) ld.so'
10252 else
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 dynamic_linker='NetBSD ld.elf_so'
10256 fi
10257 shlibpath_var=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath=yes
10259 hardcode_into_libs=yes
10260 ;;
10261
10262 newsos6)
10263 version_type=linux
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=yes
10267 ;;
10268
10269 nto-qnx*)
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 ;;
10278
10279 openbsd*)
10280 version_type=sunos
10281 sys_lib_dlsearch_path_spec="/usr/lib"
10282 need_lib_prefix=no
10283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10284 case $host_os in
10285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10286 *) need_version=no ;;
10287 esac
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10292 case $host_os in
10293 openbsd2.[89] | openbsd2.[89].*)
10294 shlibpath_overrides_runpath=no
10295 ;;
10296 *)
10297 shlibpath_overrides_runpath=yes
10298 ;;
10299 esac
10300 else
10301 shlibpath_overrides_runpath=yes
10302 fi
10303 ;;
10304
10305 os2*)
10306 libname_spec='$name'
10307 shrext_cmds=".dll"
10308 need_lib_prefix=no
10309 library_names_spec='$libname${shared_ext} $libname.a'
10310 dynamic_linker='OS/2 ld.exe'
10311 shlibpath_var=LIBPATH
10312 ;;
10313
10314 osf3* | osf4* | osf5*)
10315 version_type=osf
10316 need_lib_prefix=no
10317 need_version=no
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10323 ;;
10324
10325 solaris*)
10326 version_type=linux
10327 need_lib_prefix=no
10328 need_version=no
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=yes
10333 hardcode_into_libs=yes
10334 # ldd complains unless libraries are executable
10335 postinstall_cmds='chmod +x $lib'
10336 ;;
10337
10338 sunos4*)
10339 version_type=sunos
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 if test "$with_gnu_ld" = yes; then
10345 need_lib_prefix=no
10346 fi
10347 need_version=yes
10348 ;;
10349
10350 sysv4 | sysv4.3*)
10351 version_type=linux
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 case $host_vendor in
10356 sni)
10357 shlibpath_overrides_runpath=no
10358 need_lib_prefix=no
10359 export_dynamic_flag_spec='${wl}-Blargedynsym'
10360 runpath_var=LD_RUN_PATH
10361 ;;
10362 siemens)
10363 need_lib_prefix=no
10364 ;;
10365 motorola)
10366 need_lib_prefix=no
10367 need_version=no
10368 shlibpath_overrides_runpath=no
10369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10370 ;;
10371 esac
10372 ;;
10373
10374 sysv4*MP*)
10375 if test -d /usr/nec ;then
10376 version_type=linux
10377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10378 soname_spec='$libname${shared_ext}.$major'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 fi
10381 ;;
10382
10383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10384 version_type=freebsd-elf
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 hardcode_into_libs=yes
10391 if test "$with_gnu_ld" = yes; then
10392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10393 shlibpath_overrides_runpath=no
10394 else
10395 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10396 shlibpath_overrides_runpath=yes
10397 case $host_os in
10398 sco3.2v5*)
10399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10400 ;;
10401 esac
10402 fi
10403 sys_lib_dlsearch_path_spec='/usr/lib'
10404 ;;
10405
10406 uts4*)
10407 version_type=linux
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 ;;
10412
10413 *)
10414 dynamic_linker=no
10415 ;;
10416 esac
10417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10418 echo "${ECHO_T}$dynamic_linker" >&6
10419 test "$dynamic_linker" = no && can_build_shared=no
10420
10421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10422 if test "$GCC" = yes; then
10423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10424 fi
10425
10426 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10428 hardcode_action=
10429 if test -n "$hardcode_libdir_flag_spec" || \
10430 test -n "$runpath_var" || \
10431 test "X$hardcode_automatic" = "Xyes" ; then
10432
10433 # We can hardcode non-existant directories.
10434 if test "$hardcode_direct" != no &&
10435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10436 # have to relink, otherwise we might link with an installed library
10437 # when we should be linking with a yet-to-be-installed one
10438 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10439 test "$hardcode_minus_L" != no; then
10440 # Linking always hardcodes the temporary library directory.
10441 hardcode_action=relink
10442 else
10443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10444 hardcode_action=immediate
10445 fi
10446 else
10447 # We cannot hardcode anything, or else we can only hardcode existing
10448 # directories.
10449 hardcode_action=unsupported
10450 fi
10451 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10452 echo "${ECHO_T}$hardcode_action" >&6
10453
10454 if test "$hardcode_action" = relink; then
10455 # Fast installation is not supported
10456 enable_fast_install=no
10457 elif test "$shlibpath_overrides_runpath" = yes ||
10458 test "$enable_shared" = no; then
10459 # Fast installation is not necessary
10460 enable_fast_install=needless
10461 fi
10462
10463 striplib=
10464 old_striplib=
10465 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10466 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10467 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10468 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10469 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10470 echo "$as_me:$LINENO: result: yes" >&5
10471 echo "${ECHO_T}yes" >&6
10472 else
10473 # FIXME - insert some real tests, host_os isn't really good enough
10474 case $host_os in
10475 darwin*)
10476 if test -n "$STRIP" ; then
10477 striplib="$STRIP -x"
10478 echo "$as_me:$LINENO: result: yes" >&5
10479 echo "${ECHO_T}yes" >&6
10480 else
10481 echo "$as_me:$LINENO: result: no" >&5
10482 echo "${ECHO_T}no" >&6
10483 fi
10484 ;;
10485 *)
10486 echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6
10488 ;;
10489 esac
10490 fi
10491
10492 if test "x$enable_dlopen" != xyes; then
10493 enable_dlopen=unknown
10494 enable_dlopen_self=unknown
10495 enable_dlopen_self_static=unknown
10496 else
10497 lt_cv_dlopen=no
10498 lt_cv_dlopen_libs=
10499
10500 case $host_os in
10501 beos*)
10502 lt_cv_dlopen="load_add_on"
10503 lt_cv_dlopen_libs=
10504 lt_cv_dlopen_self=yes
10505 ;;
10506
10507 mingw* | pw32*)
10508 lt_cv_dlopen="LoadLibrary"
10509 lt_cv_dlopen_libs=
10510 ;;
10511
10512 cygwin*)
10513 lt_cv_dlopen="dlopen"
10514 lt_cv_dlopen_libs=
10515 ;;
10516
10517 darwin*)
10518 # if libdl is installed we need to link against it
10519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-ldl $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532
10533 /* Override any gcc2 internal prototype to avoid an error. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10539 char dlopen ();
10540 int
10541 main ()
10542 {
10543 dlopen ();
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag"
10558 || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest$ac_exeext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_cv_lib_dl_dlopen=yes
10571 else
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_cv_lib_dl_dlopen=no
10576 fi
10577 rm -f conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10580 fi
10581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10583 if test $ac_cv_lib_dl_dlopen = yes; then
10584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10585 else
10586
10587 lt_cv_dlopen="dyld"
10588 lt_cv_dlopen_libs=
10589 lt_cv_dlopen_self=yes
10590
10591 fi
10592
10593 ;;
10594
10595 *)
10596 echo "$as_me:$LINENO: checking for shl_load" >&5
10597 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10598 if test "${ac_cv_func_shl_load+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10609 #define shl_load innocuous_shl_load
10610
10611 /* System header to define __stub macros and hopefully few prototypes,
10612 which can conflict with char shl_load (); below.
10613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10614 <limits.h> exists even on freestanding compilers. */
10615
10616 #ifdef __STDC__
10617 # include <limits.h>
10618 #else
10619 # include <assert.h>
10620 #endif
10621
10622 #undef shl_load
10623
10624 /* Override any gcc2 internal prototype to avoid an error. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 {
10628 #endif
10629 /* We use char because int might match the return type of a gcc2
10630 builtin and then its argument prototype would still apply. */
10631 char shl_load ();
10632 /* The GNU C library defines this for functions which it implements
10633 to always fail with ENOSYS. Some functions are actually named
10634 something starting with __ and the normal name is an alias. */
10635 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10636 choke me
10637 #else
10638 char (*f) () = shl_load;
10639 #endif
10640 #ifdef __cplusplus
10641 }
10642 #endif
10643
10644 int
10645 main ()
10646 {
10647 return f != shl_load;
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654 (eval $ac_link) 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_func_shl_load=yes
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_cv_func_shl_load=no
10680 fi
10681 rm -f conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683 fi
10684 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10685 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10686 if test $ac_cv_func_shl_load = yes; then
10687 lt_cv_dlopen="shl_load"
10688 else
10689 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10690 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10691 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ldld $LIBS"
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h. */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702
10703 /* Override any gcc2 internal prototype to avoid an error. */
10704 #ifdef __cplusplus
10705 extern "C"
10706 #endif
10707 /* We use char because int might match the return type of a gcc2
10708 builtin and then its argument prototype would still apply. */
10709 char shl_load ();
10710 int
10711 main ()
10712 {
10713 shl_load ();
10714 ;
10715 return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720 (eval $ac_link) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag"
10728 || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest$ac_exeext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_cv_lib_dld_shl_load=yes
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_cv_lib_dld_shl_load=no
10746 fi
10747 rm -f conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10752 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10753 if test $ac_cv_lib_dld_shl_load = yes; then
10754 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10755 else
10756 echo "$as_me:$LINENO: checking for dlopen" >&5
10757 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10758 if test "${ac_cv_func_dlopen+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769 #define dlopen innocuous_dlopen
10770
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char dlopen (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10775
10776 #ifdef __STDC__
10777 # include <limits.h>
10778 #else
10779 # include <assert.h>
10780 #endif
10781
10782 #undef dlopen
10783
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 {
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char dlopen ();
10792 /* The GNU C library defines this for functions which it implements
10793 to always fail with ENOSYS. Some functions are actually named
10794 something starting with __ and the normal name is an alias. */
10795 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10796 choke me
10797 #else
10798 char (*f) () = dlopen;
10799 #endif
10800 #ifdef __cplusplus
10801 }
10802 #endif
10803
10804 int
10805 main ()
10806 {
10807 return f != dlopen;
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest$ac_exeext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_cv_func_dlopen=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_func_dlopen=no
10840 fi
10841 rm -f conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 fi
10844 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10845 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10846 if test $ac_cv_func_dlopen = yes; then
10847 lt_cv_dlopen="dlopen"
10848 else
10849 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10850 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldl $LIBS"
10856 cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h. */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862
10863 /* Override any gcc2 internal prototype to avoid an error. */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 /* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10869 char dlopen ();
10870 int
10871 main ()
10872 {
10873 dlopen ();
10874 ;
10875 return 0;
10876 }
10877 _ACEOF
10878 rm -f conftest.$ac_objext conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880 (eval $ac_link) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag"
10888 || test ! -s conftest.err'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest$ac_exeext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_lib_dl_dlopen=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 ac_cv_lib_dl_dlopen=no
10906 fi
10907 rm -f conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 LIBS=$ac_check_lib_save_LIBS
10910 fi
10911 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10912 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10913 if test $ac_cv_lib_dl_dlopen = yes; then
10914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10915 else
10916 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10917 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10918 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 ac_check_lib_save_LIBS=$LIBS
10922 LIBS="-lsvld $LIBS"
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929
10930 /* Override any gcc2 internal prototype to avoid an error. */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 /* We use char because int might match the return type of a gcc2
10935 builtin and then its argument prototype would still apply. */
10936 char dlopen ();
10937 int
10938 main ()
10939 {
10940 dlopen ();
10941 ;
10942 return 0;
10943 }
10944 _ACEOF
10945 rm -f conftest.$ac_objext conftest$ac_exeext
10946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947 (eval $ac_link) 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_c_werror_flag"
10955 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_lib_svld_dlopen=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_cv_lib_svld_dlopen=no
10973 fi
10974 rm -f conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10977 fi
10978 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10980 if test $ac_cv_lib_svld_dlopen = yes; then
10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10982 else
10983 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-ldld $LIBS"
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996
10997 /* Override any gcc2 internal prototype to avoid an error. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 /* We use char because int might match the return type of a gcc2
11002 builtin and then its argument prototype would still apply. */
11003 char dld_link ();
11004 int
11005 main ()
11006 {
11007 dld_link ();
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_dld_dld_link=yes
11035 else
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_cv_lib_dld_dld_link=no
11040 fi
11041 rm -f conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11044 fi
11045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11046 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11047 if test $ac_cv_lib_dld_dld_link = yes; then
11048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11049 fi
11050
11051
11052 fi
11053
11054
11055 fi
11056
11057
11058 fi
11059
11060
11061 fi
11062
11063
11064 fi
11065
11066 ;;
11067 esac
11068
11069 if test "x$lt_cv_dlopen" != xno; then
11070 enable_dlopen=yes
11071 else
11072 enable_dlopen=no
11073 fi
11074
11075 case $lt_cv_dlopen in
11076 dlopen)
11077 save_CPPFLAGS="$CPPFLAGS"
11078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11079
11080 save_LDFLAGS="$LDFLAGS"
11081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11082
11083 save_LIBS="$LIBS"
11084 LIBS="$lt_cv_dlopen_libs $LIBS"
11085
11086 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11087 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11088 if test "${lt_cv_dlopen_self+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091 if test "$cross_compiling" = yes; then :
11092 lt_cv_dlopen_self=cross
11093 else
11094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11095 lt_status=$lt_dlunknown
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11097 "configure"
11098 #include "confdefs.h"
11099
11100 #if HAVE_DLFCN_H
11101 #include <dlfcn.h>
11102 #endif
11103
11104 #include <stdio.h>
11105
11106 #ifdef RTLD_GLOBAL
11107 # define LT_DLGLOBAL RTLD_GLOBAL
11108 #else
11109 # ifdef DL_GLOBAL
11110 # define LT_DLGLOBAL DL_GLOBAL
11111 # else
11112 # define LT_DLGLOBAL 0
11113 # endif
11114 #endif
11115
11116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11117 find out it does not work in some platform. */
11118 #ifndef LT_DLLAZY_OR_NOW
11119 # ifdef RTLD_LAZY
11120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11121 # else
11122 # ifdef DL_LAZY
11123 # define LT_DLLAZY_OR_NOW DL_LAZY
11124 # else
11125 # ifdef RTLD_NOW
11126 # define LT_DLLAZY_OR_NOW RTLD_NOW
11127 # else
11128 # ifdef DL_NOW
11129 # define LT_DLLAZY_OR_NOW DL_NOW
11130 # else
11131 # define LT_DLLAZY_OR_NOW 0
11132 # endif
11133 # endif
11134 # endif
11135 # endif
11136 #endif
11137
11138 #ifdef __cplusplus
11139 extern "C" void exit (int);
11140 #endif
11141
11142 void fnord() { int i=42;}
11143 int main ()
11144 {
11145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11146 int status = $lt_dlunknown;
11147
11148 if (self)
11149 {
11150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11151 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11152 /* dlclose (self); */
11153 }
11154 else
11155 puts (dlerror ());
11156
11157 exit (status);
11158 }
11159 EOF
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11165 (./conftest; exit; ) >&5 2>/dev/null
11166 lt_status=$?
11167 case x$lt_status in
11168 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11169 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11170 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11171 esac
11172 else :
11173 # compilation failed
11174 lt_cv_dlopen_self=no
11175 fi
11176 fi
11177 rm -fr conftest*
11178
11179
11180 fi
11181 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11182 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11183
11184 if test "x$lt_cv_dlopen_self" = xyes; then
11185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11186 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11187 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11188 if test "${lt_cv_dlopen_self_static+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191 if test "$cross_compiling" = yes; then :
11192 lt_cv_dlopen_self_static=cross
11193 else
11194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11195 lt_status=$lt_dlunknown
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11197 "configure"
11198 #include "confdefs.h"
11199
11200 #if HAVE_DLFCN_H
11201 #include <dlfcn.h>
11202 #endif
11203
11204 #include <stdio.h>
11205
11206 #ifdef RTLD_GLOBAL
11207 # define LT_DLGLOBAL RTLD_GLOBAL
11208 #else
11209 # ifdef DL_GLOBAL
11210 # define LT_DLGLOBAL DL_GLOBAL
11211 # else
11212 # define LT_DLGLOBAL 0
11213 # endif
11214 #endif
11215
11216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11217 find out it does not work in some platform. */
11218 #ifndef LT_DLLAZY_OR_NOW
11219 # ifdef RTLD_LAZY
11220 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11221 # else
11222 # ifdef DL_LAZY
11223 # define LT_DLLAZY_OR_NOW DL_LAZY
11224 # else
11225 # ifdef RTLD_NOW
11226 # define LT_DLLAZY_OR_NOW RTLD_NOW
11227 # else
11228 # ifdef DL_NOW
11229 # define LT_DLLAZY_OR_NOW DL_NOW
11230 # else
11231 # define LT_DLLAZY_OR_NOW 0
11232 # endif
11233 # endif
11234 # endif
11235 # endif
11236 #endif
11237
11238 #ifdef __cplusplus
11239 extern "C" void exit (int);
11240 #endif
11241
11242 void fnord() { int i=42;}
11243 int main ()
11244 {
11245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11246 int status = $lt_dlunknown;
11247
11248 if (self)
11249 {
11250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11252 /* dlclose (self); */
11253 }
11254 else
11255 puts (dlerror ());
11256
11257 exit (status);
11258 }
11259 EOF
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261 (eval $ac_link) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11265 (./conftest; exit; ) >&5 2>/dev/null
11266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11275 fi
11276 fi
11277 rm -fr conftest*
11278
11279
11280 fi
11281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11282 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11283 fi
11284
11285 CPPFLAGS="$save_CPPFLAGS"
11286 LDFLAGS="$save_LDFLAGS"
11287 LIBS="$save_LIBS"
11288 ;;
11289 esac
11290
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11294 esac
11295
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11299 esac
11300 fi
11301
11302
11303 # Report which library types will actually be built
11304 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11305 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11306 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11307 echo "${ECHO_T}$can_build_shared" >&6
11308
11309 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11310 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11311 test "$can_build_shared" = "no" && enable_shared=no
11312
11313 # On AIX, shared libraries and static libraries use the same namespace, and
11314 # are all built from PIC.
11315 case $host_os in
11316 aix3*)
11317 test "$enable_shared" = yes && enable_static=no
11318 if test -n "$RANLIB"; then
11319 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11320 postinstall_cmds='$RANLIB $lib'
11321 fi
11322 ;;
11323
11324 aix4* | aix5*)
11325 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11326 test "$enable_shared" = yes && enable_static=no
11327 fi
11328 ;;
11329 esac
11330 echo "$as_me:$LINENO: result: $enable_shared" >&5
11331 echo "${ECHO_T}$enable_shared" >&6
11332
11333 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11334 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11335 # Make sure either enable_shared or enable_static is yes.
11336 test "$enable_shared" = yes || enable_static=yes
11337 echo "$as_me:$LINENO: result: $enable_static" >&5
11338 echo "${ECHO_T}$enable_static" >&6
11339
11340 # The else clause should only fire when bootstrapping the
11341 # libtool distribution, otherwise you forgot to ship ltmain.sh
11342 # with your package, and you will get complaints that there are
11343 # no rules to generate ltmain.sh.
11344 if test -f "$ltmain"; then
11345 # See if we are running on zsh, and set the options which allow our commands through
11346 # without removal of \ escapes.
11347 if test -n "${ZSH_VERSION+set}" ; then
11348 setopt NO_GLOB_SUBST
11349 fi
11350 # Now quote all the things that may contain metacharacters while being
11351 # careful not to overquote the AC_SUBSTed values. We take copies of the
11352 # variables and quote the copies for generation of the libtool script.
11353 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11354 SED SHELL STRIP \
11355 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11356 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11357 deplibs_check_method reload_flag reload_cmds need_locks \
11358 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11359 lt_cv_sys_global_symbol_to_c_name_address \
11360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11361 old_postinstall_cmds old_postuninstall_cmds \
11362 compiler \
11363 CC \
11364 LD \
11365 lt_prog_compiler_wl \
11366 lt_prog_compiler_pic \
11367 lt_prog_compiler_static \
11368 lt_prog_compiler_no_builtin_flag \
11369 export_dynamic_flag_spec \
11370 thread_safe_flag_spec \
11371 whole_archive_flag_spec \
11372 enable_shared_with_static_runtimes \
11373 old_archive_cmds \
11374 old_archive_from_new_cmds \
11375 predep_objects \
11376 postdep_objects \
11377 predeps \
11378 postdeps \
11379 compiler_lib_search_path \
11380 archive_cmds \
11381 archive_expsym_cmds \
11382 postinstall_cmds \
11383 postuninstall_cmds \
11384 old_archive_from_expsyms_cmds \
11385 allow_undefined_flag \
11386 no_undefined_flag \
11387 export_symbols_cmds \
11388 hardcode_libdir_flag_spec \
11389 hardcode_libdir_flag_spec_ld \
11390 hardcode_libdir_separator \
11391 hardcode_automatic \
11392 module_cmds \
11393 module_expsym_cmds \
11394 lt_cv_prog_compiler_c_o \
11395 exclude_expsyms \
11396 include_expsyms; do
11397
11398 case $var in
11399 old_archive_cmds | \
11400 old_archive_from_new_cmds | \
11401 archive_cmds | \
11402 archive_expsym_cmds | \
11403 module_cmds | \
11404 module_expsym_cmds | \
11405 old_archive_from_expsyms_cmds | \
11406 export_symbols_cmds | \
11407 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11408 postinstall_cmds | postuninstall_cmds | \
11409 old_postinstall_cmds | old_postuninstall_cmds | \
11410 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11411 # Double-quote double-evaled strings.
11412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11413 ;;
11414 *)
11415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11416 ;;
11417 esac
11418 done
11419
11420 case $lt_echo in
11421 *'\$0 --fallback-echo"')
11422 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11423 ;;
11424 esac
11425
11426 cfgfile="${ofile}T"
11427 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11428 $rm -f "$cfgfile"
11429 { echo "$as_me:$LINENO: creating $ofile" >&5
11430 echo "$as_me: creating $ofile" >&6;}
11431
11432 cat <<__EOF__ >> "$cfgfile"
11433 #! $SHELL
11434
11435 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11436 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11437 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11438 #
11439 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11440 # Free Software Foundation, Inc.
11441 #
11442 # This file is part of GNU Libtool:
11443 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11444 #
11445 # This program is free software; you can redistribute it and/or modify
11446 # it under the terms of the GNU General Public License as published by
11447 # the Free Software Foundation; either version 2 of the License, or
11448 # (at your option) any later version.
11449 #
11450 # This program is distributed in the hope that it will be useful, but
11451 # WITHOUT ANY WARRANTY; without even the implied warranty of
11452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11453 # General Public License for more details.
11454 #
11455 # You should have received a copy of the GNU General Public License
11456 # along with this program; if not, write to the Free Software
11457 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11458 #
11459 # As a special exception to the GNU General Public License, if you
11460 # distribute this file as part of a program that contains a
11461 # configuration script generated by Autoconf, you may include it under
11462 # the same distribution terms that you use for the rest of that program.
11463
11464 # A sed program that does not truncate output.
11465 SED=$lt_SED
11466
11467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11468 Xsed="$SED -e 1s/^X//"
11469
11470 # The HP-UX ksh and POSIX shell print the target directory to stdout
11471 # if CDPATH is set.
11472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11473
11474 # The names of the tagged configurations supported by this script.
11475 available_tags=
11476
11477 # ### BEGIN LIBTOOL CONFIG
11478
11479 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11480
11481 # Shell to use when invoking shell scripts.
11482 SHELL=$lt_SHELL
11483
11484 # Whether or not to build shared libraries.
11485 build_libtool_libs=$enable_shared
11486
11487 # Whether or not to build static libraries.
11488 build_old_libs=$enable_static
11489
11490 # Whether or not to add -lc for building shared libraries.
11491 build_libtool_need_lc=$archive_cmds_need_lc
11492
11493 # Whether or not to disallow shared libs when runtime libs are static
11494 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11495
11496 # Whether or not to optimize for fast installation.
11497 fast_install=$enable_fast_install
11498
11499 # The host system.
11500 host_alias=$host_alias
11501 host=$host
11502 host_os=$host_os
11503
11504 # The build system.
11505 build_alias=$build_alias
11506 build=$build
11507 build_os=$build_os
11508
11509 # An echo program that does not interpret backslashes.
11510 echo=$lt_echo
11511
11512 # The archiver.
11513 AR=$lt_AR
11514 AR_FLAGS=$lt_AR_FLAGS
11515
11516 # A C compiler.
11517 LTCC=$lt_LTCC
11518
11519 # LTCC compiler flags.
11520 LTCFLAGS=$lt_LTCFLAGS
11521
11522 # A language-specific compiler.
11523 CC=$lt_compiler
11524
11525 # Is the compiler the GNU C compiler?
11526 with_gcc=$GCC
11527
11528 # An ERE matcher.
11529 EGREP=$lt_EGREP
11530
11531 # The linker used to build libraries.
11532 LD=$lt_LD
11533
11534 # Whether we need hard or soft links.
11535 LN_S=$lt_LN_S
11536
11537 # A BSD-compatible nm program.
11538 NM=$lt_NM
11539
11540 # A symbol stripping program
11541 STRIP=$lt_STRIP
11542
11543 # Used to examine libraries when file_magic_cmd begins "file"
11544 MAGIC_CMD=$MAGIC_CMD
11545
11546 # Used on cygwin: DLL creation program.
11547 DLLTOOL="$DLLTOOL"
11548
11549 # Used on cygwin: object dumper.
11550 OBJDUMP="$OBJDUMP"
11551
11552 # Used on cygwin: assembler.
11553 AS="$AS"
11554
11555 # The name of the directory that contains temporary libtool files.
11556 objdir=$objdir
11557
11558 # How to create reloadable object files.
11559 reload_flag=$lt_reload_flag
11560 reload_cmds=$lt_reload_cmds
11561
11562 # How to pass a linker flag through the compiler.
11563 wl=$lt_lt_prog_compiler_wl
11564
11565 # Object file suffix (normally "o").
11566 objext="$ac_objext"
11567
11568 # Old archive suffix (normally "a").
11569 libext="$libext"
11570
11571 # Shared library suffix (normally ".so").
11572 shrext_cmds='$shrext_cmds'
11573
11574 # Executable file suffix (normally "").
11575 exeext="$exeext"
11576
11577 # Additional compiler flags for building library objects.
11578 pic_flag=$lt_lt_prog_compiler_pic
11579 pic_mode=$pic_mode
11580
11581 # What is the maximum length of a command?
11582 max_cmd_len=$lt_cv_sys_max_cmd_len
11583
11584 # Does compiler simultaneously support -c and -o options?
11585 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11586
11587 # Must we lock files when doing compilation?
11588 need_locks=$lt_need_locks
11589
11590 # Do we need the lib prefix for modules?
11591 need_lib_prefix=$need_lib_prefix
11592
11593 # Do we need a version for libraries?
11594 need_version=$need_version
11595
11596 # Whether dlopen is supported.
11597 dlopen_support=$enable_dlopen
11598
11599 # Whether dlopen of programs is supported.
11600 dlopen_self=$enable_dlopen_self
11601
11602 # Whether dlopen of statically linked programs is supported.
11603 dlopen_self_static=$enable_dlopen_self_static
11604
11605 # Compiler flag to prevent dynamic linking.
11606 link_static_flag=$lt_lt_prog_compiler_static
11607
11608 # Compiler flag to turn off builtin functions.
11609 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11610
11611 # Compiler flag to allow reflexive dlopens.
11612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11613
11614 # Compiler flag to generate shared objects directly from archives.
11615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11616
11617 # Compiler flag to generate thread-safe objects.
11618 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11619
11620 # Library versioning type.
11621 version_type=$version_type
11622
11623 # Format of library name prefix.
11624 libname_spec=$lt_libname_spec
11625
11626 # List of archive names. First name is the real one, the rest are links.
11627 # The last name is the one that the linker finds with -lNAME.
11628 library_names_spec=$lt_library_names_spec
11629
11630 # The coded name of the library, if different from the real name.
11631 soname_spec=$lt_soname_spec
11632
11633 # Commands used to build and install an old-style archive.
11634 RANLIB=$lt_RANLIB
11635 old_archive_cmds=$lt_old_archive_cmds
11636 old_postinstall_cmds=$lt_old_postinstall_cmds
11637 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11638
11639 # Create an old-style archive from a shared archive.
11640 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11641
11642 # Create a temporary old-style archive to link instead of a shared archive.
11643 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11644
11645 # Commands used to build and install a shared archive.
11646 archive_cmds=$lt_archive_cmds
11647 archive_expsym_cmds=$lt_archive_expsym_cmds
11648 postinstall_cmds=$lt_postinstall_cmds
11649 postuninstall_cmds=$lt_postuninstall_cmds
11650
11651 # Commands used to build a loadable module (assumed same as above if empty)
11652 module_cmds=$lt_module_cmds
11653 module_expsym_cmds=$lt_module_expsym_cmds
11654
11655 # Commands to strip libraries.
11656 old_striplib=$lt_old_striplib
11657 striplib=$lt_striplib
11658
11659 # Dependencies to place before the objects being linked to create a
11660 # shared library.
11661 predep_objects=$lt_predep_objects
11662
11663 # Dependencies to place after the objects being linked to create a
11664 # shared library.
11665 postdep_objects=$lt_postdep_objects
11666
11667 # Dependencies to place before the objects being linked to create a
11668 # shared library.
11669 predeps=$lt_predeps
11670
11671 # Dependencies to place after the objects being linked to create a
11672 # shared library.
11673 postdeps=$lt_postdeps
11674
11675 # The library search path used internally by the compiler when linking
11676 # a shared library.
11677 compiler_lib_search_path=$lt_compiler_lib_search_path
11678
11679 # Method to check whether dependent libraries are shared objects.
11680 deplibs_check_method=$lt_deplibs_check_method
11681
11682 # Command to use when deplibs_check_method == file_magic.
11683 file_magic_cmd=$lt_file_magic_cmd
11684
11685 # Flag that allows shared libraries with undefined symbols to be built.
11686 allow_undefined_flag=$lt_allow_undefined_flag
11687
11688 # Flag that forces no undefined symbols.
11689 no_undefined_flag=$lt_no_undefined_flag
11690
11691 # Commands used to finish a libtool library installation in a directory.
11692 finish_cmds=$lt_finish_cmds
11693
11694 # Same as above, but a single script fragment to be evaled but not shown.
11695 finish_eval=$lt_finish_eval
11696
11697 # Take the output of nm and produce a listing of raw symbols and C names.
11698 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11699
11700 # Transform the output of nm in a proper C declaration
11701 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11702
11703 # Transform the output of nm in a C name address pair
11704 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11705
11706 # This is the shared library runtime path variable.
11707 runpath_var=$runpath_var
11708
11709 # This is the shared library path variable.
11710 shlibpath_var=$shlibpath_var
11711
11712 # Is shlibpath searched before the hard-coded library search path?
11713 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11714
11715 # How to hardcode a shared library path into an executable.
11716 hardcode_action=$hardcode_action
11717
11718 # Whether we should hardcode library paths into libraries.
11719 hardcode_into_libs=$hardcode_into_libs
11720
11721 # Flag to hardcode \$libdir into a binary during linking.
11722 # This must work even if \$libdir does not exist.
11723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11724
11725 # If ld is used when linking, flag to hardcode \$libdir into
11726 # a binary during linking. This must work even if \$libdir does
11727 # not exist.
11728 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11729
11730 # Whether we need a single -rpath flag with a separated argument.
11731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11732
11733 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11734 # resulting binary.
11735 hardcode_direct=$hardcode_direct
11736
11737 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11738 # resulting binary.
11739 hardcode_minus_L=$hardcode_minus_L
11740
11741 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11742 # the resulting binary.
11743 hardcode_shlibpath_var=$hardcode_shlibpath_var
11744
11745 # Set to yes if building a shared library automatically hardcodes DIR into the library
11746 # and all subsequent libraries and executables linked against it.
11747 hardcode_automatic=$hardcode_automatic
11748
11749 # Variables whose values should be saved in libtool wrapper scripts and
11750 # restored at relink time.
11751 variables_saved_for_relink="$variables_saved_for_relink"
11752
11753 # Whether libtool must link a program against all its dependency libraries.
11754 link_all_deplibs=$link_all_deplibs
11755
11756 # Compile-time system search path for libraries
11757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11758
11759 # Run-time system search path for libraries
11760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11761
11762 # Fix the shell variable \$srcfile for the compiler.
11763 fix_srcfile_path="$fix_srcfile_path"
11764
11765 # Set to yes if exported symbols are required.
11766 always_export_symbols=$always_export_symbols
11767
11768 # The commands to list exported symbols.
11769 export_symbols_cmds=$lt_export_symbols_cmds
11770
11771 # The commands to extract the exported symbol list from a shared archive.
11772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11773
11774 # Symbols that should not be listed in the preloaded symbols.
11775 exclude_expsyms=$lt_exclude_expsyms
11776
11777 # Symbols that must always be exported.
11778 include_expsyms=$lt_include_expsyms
11779
11780 # ### END LIBTOOL CONFIG
11781
11782 __EOF__
11783
11784
11785 case $host_os in
11786 aix3*)
11787 cat <<\EOF >> "$cfgfile"
11788
11789 # AIX sometimes has problems with the GCC collect2 program. For some
11790 # reason, if we set the COLLECT_NAMES environment variable, the problems
11791 # vanish in a puff of smoke.
11792 if test "X${COLLECT_NAMES+set}" != Xset; then
11793 COLLECT_NAMES=
11794 export COLLECT_NAMES
11795 fi
11796 EOF
11797 ;;
11798 esac
11799
11800 # We use sed instead of cat because bash on DJGPP gets confused if
11801 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11802 # text mode, it properly converts lines to CR/LF. This bash problem
11803 # is reportedly fixed, but why not run on old versions too?
11804 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11805
11806 mv -f "$cfgfile" "$ofile" || \
11807 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11808 chmod +x "$ofile"
11809
11810 else
11811 # If there is no Makefile yet, we rely on a make rule to execute
11812 # `config.status --recheck' to rerun these tests and create the
11813 # libtool script then.
11814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11815 if test -f "$ltmain_in"; then
11816 test -f Makefile && make "$ltmain"
11817 fi
11818 fi
11819
11820
11821 ac_ext=c
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11826
11827 CC="$lt_save_CC"
11828
11829
11830 # Check whether --with-tags or --without-tags was given.
11831 if test "${with_tags+set}" = set; then
11832 withval="$with_tags"
11833 tagnames="$withval"
11834 fi;
11835
11836 if test -f "$ltmain" && test -n "$tagnames"; then
11837 if test ! -f "${ofile}"; then
11838 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11839 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11840 fi
11841
11842 if test -z "$LTCC"; then
11843 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11844 if test -z "$LTCC"; then
11845 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11846 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11847 else
11848 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11849 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11850 fi
11851 fi
11852 if test -z "$LTCFLAGS"; then
11853 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11854 fi
11855
11856 # Extract list of available tagged configurations in $ofile.
11857 # Note that this assumes the entire list is on one line.
11858 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11859
11860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11861 for tagname in $tagnames; do
11862 IFS="$lt_save_ifs"
11863 # Check whether tagname contains only valid characters
11864 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11865 "") ;;
11866 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11867 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11868 { (exit 1); exit 1; }; }
11869 ;;
11870 esac
11871
11872 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11873 then
11874 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11875 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11876 { (exit 1); exit 1; }; }
11877 fi
11878
11879 # Update the list of available tags.
11880 if test -n "$tagname"; then
11881 echo appending configuration tag \"$tagname\" to $ofile
11882
11883 case $tagname in
11884 CXX)
11885 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11886 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11887 (test "X$CXX" != "Xg++"))) ; then
11888 ac_ext=cc
11889 ac_cpp='$CXXCPP $CPPFLAGS'
11890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11893
11894
11895
11896
11897 archive_cmds_need_lc_CXX=no
11898 allow_undefined_flag_CXX=
11899 always_export_symbols_CXX=no
11900 archive_expsym_cmds_CXX=
11901 export_dynamic_flag_spec_CXX=
11902 hardcode_direct_CXX=no
11903 hardcode_libdir_flag_spec_CXX=
11904 hardcode_libdir_flag_spec_ld_CXX=
11905 hardcode_libdir_separator_CXX=
11906 hardcode_minus_L_CXX=no
11907 hardcode_shlibpath_var_CXX=unsupported
11908 hardcode_automatic_CXX=no
11909 module_cmds_CXX=
11910 module_expsym_cmds_CXX=
11911 link_all_deplibs_CXX=unknown
11912 old_archive_cmds_CXX=$old_archive_cmds
11913 no_undefined_flag_CXX=
11914 whole_archive_flag_spec_CXX=
11915 enable_shared_with_static_runtimes_CXX=no
11916
11917 # Dependencies to place before and after the object being linked:
11918 predep_objects_CXX=
11919 postdep_objects_CXX=
11920 predeps_CXX=
11921 postdeps_CXX=
11922 compiler_lib_search_path_CXX=
11923
11924 # Source file extension for C++ test sources.
11925 ac_ext=cpp
11926
11927 # Object file extension for compiled C++ test sources.
11928 objext=o
11929 objext_CXX=$objext
11930
11931 # Code to be used in simple compile tests
11932 lt_simple_compile_test_code="int some_variable = 0;\n"
11933
11934 # Code to be used in simple link tests
11935 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11936
11937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11938
11939 # If no C compiler was specified, use CC.
11940 LTCC=${LTCC-"$CC"}
11941
11942 # If no C compiler flags were specified, use CFLAGS.
11943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11944
11945 # Allow CC to be a program name with arguments.
11946 compiler=$CC
11947
11948
11949 # save warnings/boilerplate of simple test code
11950 ac_outfile=conftest.$ac_objext
11951 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11953 _lt_compiler_boilerplate=`cat conftest.err`
11954 $rm conftest*
11955
11956 ac_outfile=conftest.$ac_objext
11957 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11959 _lt_linker_boilerplate=`cat conftest.err`
11960 $rm conftest*
11961
11962
11963 # Allow CC to be a program name with arguments.
11964 lt_save_CC=$CC
11965 lt_save_LD=$LD
11966 lt_save_GCC=$GCC
11967 GCC=$GXX
11968 lt_save_with_gnu_ld=$with_gnu_ld
11969 lt_save_path_LD=$lt_cv_path_LD
11970 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11971 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11972 else
11973 $as_unset lt_cv_prog_gnu_ld
11974 fi
11975 if test -n "${lt_cv_path_LDCXX+set}"; then
11976 lt_cv_path_LD=$lt_cv_path_LDCXX
11977 else
11978 $as_unset lt_cv_path_LD
11979 fi
11980 test -z "${LDCXX+set}" || LD=$LDCXX
11981 CC=${CXX-"c++"}
11982 compiler=$CC
11983 compiler_CXX=$CC
11984 for cc_temp in $compiler""; do
11985 case $cc_temp in
11986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11988 \-*) ;;
11989 *) break;;
11990 esac
11991 done
11992 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11993
11994
11995 # We don't want -fno-exception wen compiling C++ code, so set the
11996 # no_builtin_flag separately
11997 if test "$GXX" = yes; then
11998 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11999 else
12000 lt_prog_compiler_no_builtin_flag_CXX=
12001 fi
12002
12003 if test "$GXX" = yes; then
12004 # Set up default GNU C++ configuration
12005
12006
12007 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12008 if test "${with_gnu_ld+set}" = set; then
12009 withval="$with_gnu_ld"
12010 test "$withval" = no || with_gnu_ld=yes
12011 else
12012 with_gnu_ld=no
12013 fi;
12014 ac_prog=ld
12015 if test "$GCC" = yes; then
12016 # Check if gcc -print-prog-name=ld gives a path.
12017 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12018 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12019 case $host in
12020 *-*-mingw*)
12021 # gcc leaves a trailing carriage return which upsets mingw
12022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12023 *)
12024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12025 esac
12026 case $ac_prog in
12027 # Accept absolute paths.
12028 [\\/]* | ?:[\\/]*)
12029 re_direlt='/[^/][^/]*/\.\./'
12030 # Canonicalize the pathname of ld
12031 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12033 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12034 done
12035 test -z "$LD" && LD="$ac_prog"
12036 ;;
12037 "")
12038 # If it fails, then pretend we aren't using GCC.
12039 ac_prog=ld
12040 ;;
12041 *)
12042 # If it is relative, then search for the first ld in PATH.
12043 with_gnu_ld=unknown
12044 ;;
12045 esac
12046 elif test "$with_gnu_ld" = yes; then
12047 echo "$as_me:$LINENO: checking for GNU ld" >&5
12048 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12049 else
12050 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12051 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12052 fi
12053 if test "${lt_cv_path_LD+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 if test -z "$LD"; then
12057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12058 for ac_dir in $PATH; do
12059 IFS="$lt_save_ifs"
12060 test -z "$ac_dir" && ac_dir=.
12061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12062 lt_cv_path_LD="$ac_dir/$ac_prog"
12063 # Check to see if the program is GNU ld. I'd rather use --version,
12064 # but apparently some variants of GNU ld only accept -v.
12065 # Break only if it was the GNU/non-GNU ld that we prefer.
12066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12067 *GNU* | *'with BFD'*)
12068 test "$with_gnu_ld" != no && break
12069 ;;
12070 *)
12071 test "$with_gnu_ld" != yes && break
12072 ;;
12073 esac
12074 fi
12075 done
12076 IFS="$lt_save_ifs"
12077 else
12078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12079 fi
12080 fi
12081
12082 LD="$lt_cv_path_LD"
12083 if test -n "$LD"; then
12084 echo "$as_me:$LINENO: result: $LD" >&5
12085 echo "${ECHO_T}$LD" >&6
12086 else
12087 echo "$as_me:$LINENO: result: no" >&5
12088 echo "${ECHO_T}no" >&6
12089 fi
12090 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12091 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12092 { (exit 1); exit 1; }; }
12093 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12094 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12095 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12099 case `$LD -v 2>&1 </dev/null` in
12100 *GNU* | *'with BFD'*)
12101 lt_cv_prog_gnu_ld=yes
12102 ;;
12103 *)
12104 lt_cv_prog_gnu_ld=no
12105 ;;
12106 esac
12107 fi
12108 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12109 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12110 with_gnu_ld=$lt_cv_prog_gnu_ld
12111
12112
12113
12114 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12115 # archiving commands below assume that GNU ld is being used.
12116 if test "$with_gnu_ld" = yes; then
12117 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12118 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'
12119
12120 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12121 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12122
12123 # If archive_cmds runs LD, not CC, wlarc should be empty
12124 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12125 # investigate it a little bit more. (MM)
12126 wlarc='${wl}'
12127
12128 # ancient GNU ld didn't support --whole-archive et. al.
12129 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12130 grep 'no-whole-archive' > /dev/null; then
12131 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12132 else
12133 whole_archive_flag_spec_CXX=
12134 fi
12135 else
12136 with_gnu_ld=no
12137 wlarc=
12138
12139 # A generic and very simple default shared library creation
12140 # command for GNU C++ for the case where it uses the native
12141 # linker, instead of GNU ld. If possible, this setting should
12142 # overridden to take advantage of the native linker features on
12143 # the platform it is being used on.
12144 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12145 fi
12146
12147 # Commands to make compiler produce verbose output that lists
12148 # what "hidden" libraries, object files and flags are used when
12149 # linking a shared library.
12150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12151
12152 else
12153 GXX=no
12154 with_gnu_ld=no
12155 wlarc=
12156 fi
12157
12158 # PORTME: fill in a description of your system's C++ link characteristics
12159 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12160 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12161 ld_shlibs_CXX=yes
12162 case $host_os in
12163 aix3*)
12164 # FIXME: insert proper C++ library support
12165 ld_shlibs_CXX=no
12166 ;;
12167 aix4* | aix5*)
12168 if test "$host_cpu" = ia64; then
12169 # On IA64, the linker does run time linking by default, so we don't
12170 # have to do anything special.
12171 aix_use_runtimelinking=no
12172 exp_sym_flag='-Bexport'
12173 no_entry_flag=""
12174 else
12175 aix_use_runtimelinking=no
12176
12177 # Test if we are trying to use run time linking or normal
12178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12179 # need to do runtime linking.
12180 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12181 for ld_flag in $LDFLAGS; do
12182 case $ld_flag in
12183 *-brtl*)
12184 aix_use_runtimelinking=yes
12185 break
12186 ;;
12187 esac
12188 done
12189 ;;
12190 esac
12191
12192 exp_sym_flag='-bexport'
12193 no_entry_flag='-bnoentry'
12194 fi
12195
12196 # When large executables or shared objects are built, AIX ld can
12197 # have problems creating the table of contents. If linking a library
12198 # or program results in "error TOC overflow" add -mminimal-toc to
12199 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12200 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12201
12202 archive_cmds_CXX=''
12203 hardcode_direct_CXX=yes
12204 hardcode_libdir_separator_CXX=':'
12205 link_all_deplibs_CXX=yes
12206
12207 if test "$GXX" = yes; then
12208 case $host_os in aix4.[012]|aix4.[012].*)
12209 # We only want to do this on AIX 4.2 and lower, the check
12210 # below for broken collect2 doesn't work under 4.3+
12211 collect2name=`${CC} -print-prog-name=collect2`
12212 if test -f "$collect2name" && \
12213 strings "$collect2name" | grep resolve_lib_name >/dev/null
12214 then
12215 # We have reworked collect2
12216 hardcode_direct_CXX=yes
12217 else
12218 # We have old collect2
12219 hardcode_direct_CXX=unsupported
12220 # It fails to find uninstalled libraries when the uninstalled
12221 # path is not listed in the libpath. Setting hardcode_minus_L
12222 # to unsupported forces relinking
12223 hardcode_minus_L_CXX=yes
12224 hardcode_libdir_flag_spec_CXX='-L$libdir'
12225 hardcode_libdir_separator_CXX=
12226 fi
12227 ;;
12228 esac
12229 shared_flag='-shared'
12230 if test "$aix_use_runtimelinking" = yes; then
12231 shared_flag="$shared_flag "'${wl}-G'
12232 fi
12233 else
12234 # not using gcc
12235 if test "$host_cpu" = ia64; then
12236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12237 # chokes on -Wl,-G. The following line is correct:
12238 shared_flag='-G'
12239 else
12240 if test "$aix_use_runtimelinking" = yes; then
12241 shared_flag='${wl}-G'
12242 else
12243 shared_flag='${wl}-bM:SRE'
12244 fi
12245 fi
12246 fi
12247
12248 # It seems that -bexpall does not export symbols beginning with
12249 # underscore (_), so it is better to generate a list of symbols to export.
12250 always_export_symbols_CXX=yes
12251 if test "$aix_use_runtimelinking" = yes; then
12252 # Warning - without using the other runtime loading flags (-brtl),
12253 # -berok will link without error, but may produce a broken library.
12254 allow_undefined_flag_CXX='-berok'
12255 # Determine the default libpath from the value encoded in an empty executable.
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262
12263 int
12264 main ()
12265 {
12266
12267 ;
12268 return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273 (eval $ac_link) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_cxx_werror_flag"
12281 || test ! -s conftest.err'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest$ac_exeext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293
12294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12295 }'`
12296 # Check for a 64-bit object if we didn't find anything.
12297 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; }
12298 }'`; fi
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 fi
12304 rm -f conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12307
12308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12309
12310 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"
12311 else
12312 if test "$host_cpu" = ia64; then
12313 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12314 allow_undefined_flag_CXX="-z nodefs"
12315 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"
12316 else
12317 # Determine the default libpath from the value encoded in an empty executable.
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324
12325 int
12326 main ()
12327 {
12328
12329 ;
12330 return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -z "$ac_cxx_werror_flag"
12343 || test ! -s conftest.err'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355
12356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12357 }'`
12358 # Check for a 64-bit object if we didn't find anything.
12359 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; }
12360 }'`; fi
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 fi
12366 rm -f conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12369
12370 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12371 # Warning - without using the other run time loading flags,
12372 # -berok will link without error, but may produce a broken library.
12373 no_undefined_flag_CXX=' ${wl}-bernotok'
12374 allow_undefined_flag_CXX=' ${wl}-berok'
12375 # Exported symbols can be pulled into shared objects from archives
12376 whole_archive_flag_spec_CXX='$convenience'
12377 archive_cmds_need_lc_CXX=yes
12378 # This is similar to how AIX traditionally builds its shared libraries.
12379 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'
12380 fi
12381 fi
12382 ;;
12383
12384 beos*)
12385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12386 allow_undefined_flag_CXX=unsupported
12387 # Joseph Beckenbach <[email protected]> says some releases of gcc
12388 # support --undefined. This deserves some investigation. FIXME
12389 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12390 else
12391 ld_shlibs_CXX=no
12392 fi
12393 ;;
12394
12395 chorus*)
12396 case $cc_basename in
12397 *)
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12400 ;;
12401 esac
12402 ;;
12403
12404 cygwin* | mingw* | pw32*)
12405 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12406 # as there is no search path for DLLs.
12407 hardcode_libdir_flag_spec_CXX='-L$libdir'
12408 allow_undefined_flag_CXX=unsupported
12409 always_export_symbols_CXX=no
12410 enable_shared_with_static_runtimes_CXX=yes
12411
12412 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12413 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'
12414 # If the export-symbols file already is a .def file (1st line
12415 # is EXPORTS), use it as is; otherwise, prepend...
12416 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12417 cp $export_symbols $output_objdir/$soname.def;
12418 else
12419 echo EXPORTS > $output_objdir/$soname.def;
12420 cat $export_symbols >> $output_objdir/$soname.def;
12421 fi~
12422 $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'
12423 else
12424 ld_shlibs_CXX=no
12425 fi
12426 ;;
12427 darwin* | rhapsody*)
12428 case $host_os in
12429 rhapsody* | darwin1.[012])
12430 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12431 ;;
12432 *) # Darwin 1.3 on
12433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12434 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12435 else
12436 case ${MACOSX_DEPLOYMENT_TARGET} in
12437 10.[012])
12438 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12439 ;;
12440 10.*)
12441 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12442 ;;
12443 esac
12444 fi
12445 ;;
12446 esac
12447 archive_cmds_need_lc_CXX=no
12448 hardcode_direct_CXX=no
12449 hardcode_automatic_CXX=yes
12450 hardcode_shlibpath_var_CXX=unsupported
12451 whole_archive_flag_spec_CXX=''
12452 link_all_deplibs_CXX=yes
12453
12454 if test "$GXX" = yes ; then
12455 lt_int_apple_cc_single_mod=no
12456 output_verbose_link_cmd='echo'
12457 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12458 lt_int_apple_cc_single_mod=yes
12459 fi
12460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12461 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12462 else
12463 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'
12464 fi
12465 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12467 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12468 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}'
12469 else
12470 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}'
12471 fi
12472 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}'
12473 else
12474 case $cc_basename in
12475 xlc*)
12476 output_verbose_link_cmd='echo'
12477 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'
12478 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12480 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}'
12481 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}'
12482 ;;
12483 *)
12484 ld_shlibs_CXX=no
12485 ;;
12486 esac
12487 fi
12488 ;;
12489
12490 dgux*)
12491 case $cc_basename in
12492 ec++*)
12493 # FIXME: insert proper C++ library support
12494 ld_shlibs_CXX=no
12495 ;;
12496 ghcx*)
12497 # Green Hills C++ Compiler
12498 # FIXME: insert proper C++ library support
12499 ld_shlibs_CXX=no
12500 ;;
12501 *)
12502 # FIXME: insert proper C++ library support
12503 ld_shlibs_CXX=no
12504 ;;
12505 esac
12506 ;;
12507 freebsd[12]*)
12508 # C++ shared libraries reported to be fairly broken before switch to ELF
12509 ld_shlibs_CXX=no
12510 ;;
12511 freebsd-elf*)
12512 archive_cmds_need_lc_CXX=no
12513 ;;
12514 freebsd* | kfreebsd*-gnu | dragonfly*)
12515 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12516 # conventions
12517 ld_shlibs_CXX=yes
12518 ;;
12519 gnu*)
12520 ;;
12521 hpux9*)
12522 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12523 hardcode_libdir_separator_CXX=:
12524 export_dynamic_flag_spec_CXX='${wl}-E'
12525 hardcode_direct_CXX=yes
12526 hardcode_minus_L_CXX=yes # Not in the search PATH,
12527 # but as the default
12528 # location of the library.
12529
12530 case $cc_basename in
12531 CC*)
12532 # FIXME: insert proper C++ library support
12533 ld_shlibs_CXX=no
12534 ;;
12535 aCC*)
12536 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'
12537 # Commands to make compiler produce verbose output that lists
12538 # what "hidden" libraries, object files and flags are used when
12539 # linking a shared library.
12540 #
12541 # There doesn't appear to be a way to prevent this compiler from
12542 # explicitly linking system object files so we need to strip them
12543 # from the output so that they don't get included in the library
12544 # dependencies.
12545 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'
12546 ;;
12547 *)
12548 if test "$GXX" = yes; then
12549 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'
12550 else
12551 # FIXME: insert proper C++ library support
12552 ld_shlibs_CXX=no
12553 fi
12554 ;;
12555 esac
12556 ;;
12557 hpux10*|hpux11*)
12558 if test $with_gnu_ld = no; then
12559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12560 hardcode_libdir_separator_CXX=:
12561
12562 case $host_cpu in
12563 hppa*64*|ia64*)
12564 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12565 ;;
12566 *)
12567 export_dynamic_flag_spec_CXX='${wl}-E'
12568 ;;
12569 esac
12570 fi
12571 case $host_cpu in
12572 hppa*64*|ia64*)
12573 hardcode_direct_CXX=no
12574 hardcode_shlibpath_var_CXX=no
12575 ;;
12576 *)
12577 hardcode_direct_CXX=yes
12578 hardcode_minus_L_CXX=yes # Not in the search PATH,
12579 # but as the default
12580 # location of the library.
12581 ;;
12582 esac
12583
12584 case $cc_basename in
12585 CC*)
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12588 ;;
12589 aCC*)
12590 case $host_cpu in
12591 hppa*64*)
12592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12593 ;;
12594 ia64*)
12595 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12596 ;;
12597 *)
12598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12599 ;;
12600 esac
12601 # Commands to make compiler produce verbose output that lists
12602 # what "hidden" libraries, object files and flags are used when
12603 # linking a shared library.
12604 #
12605 # There doesn't appear to be a way to prevent this compiler from
12606 # explicitly linking system object files so we need to strip them
12607 # from the output so that they don't get included in the library
12608 # dependencies.
12609 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'
12610 ;;
12611 *)
12612 if test "$GXX" = yes; then
12613 if test $with_gnu_ld = no; then
12614 case $host_cpu in
12615 hppa*64*)
12616 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12617 ;;
12618 ia64*)
12619 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12620 ;;
12621 *)
12622 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'
12623 ;;
12624 esac
12625 fi
12626 else
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 fi
12630 ;;
12631 esac
12632 ;;
12633 interix3*)
12634 hardcode_direct_CXX=no
12635 hardcode_shlibpath_var_CXX=no
12636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12637 export_dynamic_flag_spec_CXX='${wl}-E'
12638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12639 # Instead, shared libraries are loaded at an image base (0x10000000 by
12640 # default) and relocated if they conflict, which is a slow very memory
12641 # consuming and fragmenting process. To avoid this, we pick a random,
12642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12644 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'
12645 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'
12646 ;;
12647 irix5* | irix6*)
12648 case $cc_basename in
12649 CC*)
12650 # SGI C++
12651 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'
12652
12653 # Archives containing C++ object files must be created using
12654 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12655 # necessary to make sure instantiated templates are included
12656 # in the archive.
12657 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12658 ;;
12659 *)
12660 if test "$GXX" = yes; then
12661 if test "$with_gnu_ld" = no; then
12662 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'
12663 else
12664 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'
12665 fi
12666 fi
12667 link_all_deplibs_CXX=yes
12668 ;;
12669 esac
12670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12671 hardcode_libdir_separator_CXX=:
12672 ;;
12673 linux*)
12674 case $cc_basename in
12675 KCC*)
12676 # Kuck and Associates, Inc. (KAI) C++ Compiler
12677
12678 # KCC will only create a shared library if the output file
12679 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12680 # to its proper name (with version) after linking.
12681 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'
12682 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'
12683 # Commands to make compiler produce verbose output that lists
12684 # what "hidden" libraries, object files and flags are used when
12685 # linking a shared library.
12686 #
12687 # There doesn't appear to be a way to prevent this compiler from
12688 # explicitly linking system object files so we need to strip them
12689 # from the output so that they don't get included in the library
12690 # dependencies.
12691 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'
12692
12693 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12695
12696 # Archives containing C++ object files must be created using
12697 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12698 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12699 ;;
12700 icpc*)
12701 # Intel C++
12702 with_gnu_ld=yes
12703 # version 8.0 and above of icpc choke on multiply defined symbols
12704 # if we add $predep_objects and $postdep_objects, however 7.1 and
12705 # earlier do not add the objects themselves.
12706 case `$CC -V 2>&1` in
12707 *"Version 7."*)
12708 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709 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'
12710 ;;
12711 *) # Version 8.0 or newer
12712 tmp_idyn=
12713 case $host_cpu in
12714 ia64*) tmp_idyn=' -i_dynamic';;
12715 esac
12716 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12717 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'
12718 ;;
12719 esac
12720 archive_cmds_need_lc_CXX=no
12721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12723 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12724 ;;
12725 pgCC*)
12726 # Portland Group C++ compiler
12727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12728 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'
12729
12730 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12732 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'
12733 ;;
12734 cxx*)
12735 # Compaq C++
12736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 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'
12738
12739 runpath_var=LD_RUN_PATH
12740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12741 hardcode_libdir_separator_CXX=:
12742
12743 # Commands to make compiler produce verbose output that lists
12744 # what "hidden" libraries, object files and flags are used when
12745 # linking a shared library.
12746 #
12747 # There doesn't appear to be a way to prevent this compiler from
12748 # explicitly linking system object files so we need to strip them
12749 # from the output so that they don't get included in the library
12750 # dependencies.
12751 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'
12752 ;;
12753 esac
12754 ;;
12755 lynxos*)
12756 # FIXME: insert proper C++ library support
12757 ld_shlibs_CXX=no
12758 ;;
12759 m88k*)
12760 # FIXME: insert proper C++ library support
12761 ld_shlibs_CXX=no
12762 ;;
12763 mvs*)
12764 case $cc_basename in
12765 cxx*)
12766 # FIXME: insert proper C++ library support
12767 ld_shlibs_CXX=no
12768 ;;
12769 *)
12770 # FIXME: insert proper C++ library support
12771 ld_shlibs_CXX=no
12772 ;;
12773 esac
12774 ;;
12775 netbsd*)
12776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12777 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12778 wlarc=
12779 hardcode_libdir_flag_spec_CXX='-R$libdir'
12780 hardcode_direct_CXX=yes
12781 hardcode_shlibpath_var_CXX=no
12782 fi
12783 # Workaround some broken pre-1.5 toolchains
12784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12785 ;;
12786 openbsd2*)
12787 # C++ shared libraries are fairly broken
12788 ld_shlibs_CXX=no
12789 ;;
12790 openbsd*)
12791 hardcode_direct_CXX=yes
12792 hardcode_shlibpath_var_CXX=no
12793 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12796 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12797 export_dynamic_flag_spec_CXX='${wl}-E'
12798 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12799 fi
12800 output_verbose_link_cmd='echo'
12801 ;;
12802 osf3*)
12803 case $cc_basename in
12804 KCC*)
12805 # Kuck and Associates, Inc. (KAI) C++ Compiler
12806
12807 # KCC will only create a shared library if the output file
12808 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12809 # to its proper name (with version) after linking.
12810 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'
12811
12812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12813 hardcode_libdir_separator_CXX=:
12814
12815 # Archives containing C++ object files must be created using
12816 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12817 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12818
12819 ;;
12820 RCC*)
12821 # Rational C++ 2.4.1
12822 # FIXME: insert proper C++ library support
12823 ld_shlibs_CXX=no
12824 ;;
12825 cxx*)
12826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12827 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'
12828
12829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12830 hardcode_libdir_separator_CXX=:
12831
12832 # Commands to make compiler produce verbose output that lists
12833 # what "hidden" libraries, object files and flags are used when
12834 # linking a shared library.
12835 #
12836 # There doesn't appear to be a way to prevent this compiler from
12837 # explicitly linking system object files so we need to strip them
12838 # from the output so that they don't get included in the library
12839 # dependencies.
12840 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12841 ;;
12842 *)
12843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12845 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12846
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848 hardcode_libdir_separator_CXX=:
12849
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12854
12855 else
12856 # FIXME: insert proper C++ library support
12857 ld_shlibs_CXX=no
12858 fi
12859 ;;
12860 esac
12861 ;;
12862 osf4* | osf5*)
12863 case $cc_basename in
12864 KCC*)
12865 # Kuck and Associates, Inc. (KAI) C++ Compiler
12866
12867 # KCC will only create a shared library if the output file
12868 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12869 # to its proper name (with version) after linking.
12870 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'
12871
12872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12873 hardcode_libdir_separator_CXX=:
12874
12875 # Archives containing C++ object files must be created using
12876 # the KAI C++ compiler.
12877 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12878 ;;
12879 RCC*)
12880 # Rational C++ 2.4.1
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 ;;
12884 cxx*)
12885 allow_undefined_flag_CXX=' -expect_unresolved \*'
12886 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'
12887 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12888 echo "-hidden">> $lib.exp~
12889 $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~
12890 $rm $lib.exp'
12891
12892 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12893 hardcode_libdir_separator_CXX=:
12894
12895 # Commands to make compiler produce verbose output that lists
12896 # what "hidden" libraries, object files and flags are used when
12897 # linking a shared library.
12898 #
12899 # There doesn't appear to be a way to prevent this compiler from
12900 # explicitly linking system object files so we need to strip them
12901 # from the output so that they don't get included in the library
12902 # dependencies.
12903 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'
12904 ;;
12905 *)
12906 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12908 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'
12909
12910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12911 hardcode_libdir_separator_CXX=:
12912
12913 # Commands to make compiler produce verbose output that lists
12914 # what "hidden" libraries, object files and flags are used when
12915 # linking a shared library.
12916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12917
12918 else
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 fi
12922 ;;
12923 esac
12924 ;;
12925 psos*)
12926 # FIXME: insert proper C++ library support
12927 ld_shlibs_CXX=no
12928 ;;
12929 sunos4*)
12930 case $cc_basename in
12931 CC*)
12932 # Sun C++ 4.x
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12935 ;;
12936 lcc*)
12937 # Lucid
12938 # FIXME: insert proper C++ library support
12939 ld_shlibs_CXX=no
12940 ;;
12941 *)
12942 # FIXME: insert proper C++ library support
12943 ld_shlibs_CXX=no
12944 ;;
12945 esac
12946 ;;
12947 solaris*)
12948 case $cc_basename in
12949 CC*)
12950 # Sun C++ 4.2, 5.x and Centerline C++
12951 archive_cmds_need_lc_CXX=yes
12952 no_undefined_flag_CXX=' -zdefs'
12953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12954 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12955 $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'
12956
12957 hardcode_libdir_flag_spec_CXX='-R$libdir'
12958 hardcode_shlibpath_var_CXX=no
12959 case $host_os in
12960 solaris2.[0-5] | solaris2.[0-5].*) ;;
12961 *)
12962 # The C++ compiler is used as linker so we must use $wl
12963 # flag to pass the commands to the underlying system
12964 # linker. We must also pass each convience library through
12965 # to the system linker between allextract/defaultextract.
12966 # The C++ compiler will combine linker options so we
12967 # cannot just pass the convience library names through
12968 # without $wl.
12969 # Supported since Solaris 2.6 (maybe 2.5.1?)
12970 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'
12971 ;;
12972 esac
12973 link_all_deplibs_CXX=yes
12974
12975 output_verbose_link_cmd='echo'
12976
12977 # Archives containing C++ object files must be created using
12978 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12979 # necessary to make sure instantiated templates are included
12980 # in the archive.
12981 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12982 ;;
12983 gcx*)
12984 # Green Hills C++ Compiler
12985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12986
12987 # The C++ compiler must be used to create the archive.
12988 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12989 ;;
12990 *)
12991 # GNU C++ compiler with Solaris linker
12992 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12993 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12994 if $CC --version | grep -v '^2\.7' > /dev/null; then
12995 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12996 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12997 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12998
12999 # Commands to make compiler produce verbose output that lists
13000 # what "hidden" libraries, object files and flags are used when
13001 # linking a shared library.
13002 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13003 else
13004 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13005 # platform.
13006 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13007 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13008 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13009
13010 # Commands to make compiler produce verbose output that lists
13011 # what "hidden" libraries, object files and flags are used when
13012 # linking a shared library.
13013 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13014 fi
13015
13016 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13017 fi
13018 ;;
13019 esac
13020 ;;
13021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13022 no_undefined_flag_CXX='${wl}-z,text'
13023 archive_cmds_need_lc_CXX=no
13024 hardcode_shlibpath_var_CXX=no
13025 runpath_var='LD_RUN_PATH'
13026
13027 case $cc_basename in
13028 CC*)
13029 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13030 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13031 ;;
13032 *)
13033 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13035 ;;
13036 esac
13037 ;;
13038 sysv5* | sco3.2v5* | sco5v6*)
13039 # Note: We can NOT use -z defs as we might desire, because we do not
13040 # link with -lc, and that would cause any symbols used from libc to
13041 # always be unresolved, which means just about no library would
13042 # ever link correctly. If we're not using GNU ld we use -z text
13043 # though, which does catch some bad symbols but isn't as heavy-handed
13044 # as -z defs.
13045 # For security reasons, it is highly recommended that you always
13046 # use absolute paths for naming shared libraries, and exclude the
13047 # DT_RUNPATH tag from executables and libraries. But doing so
13048 # requires that you compile everything twice, which is a pain.
13049 # So that behaviour is only enabled if SCOABSPATH is set to a
13050 # non-empty value in the environment. Most likely only useful for
13051 # creating official distributions of packages.
13052 # This is a hack until libtool officially supports absolute path
13053 # names for shared libraries.
13054 no_undefined_flag_CXX='${wl}-z,text'
13055 allow_undefined_flag_CXX='${wl}-z,nodefs'
13056 archive_cmds_need_lc_CXX=no
13057 hardcode_shlibpath_var_CXX=no
13058 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13059 hardcode_libdir_separator_CXX=':'
13060 link_all_deplibs_CXX=yes
13061 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13062 runpath_var='LD_RUN_PATH'
13063
13064 case $cc_basename in
13065 CC*)
13066 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13067 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13068 ;;
13069 *)
13070 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13072 ;;
13073 esac
13074 ;;
13075 tandem*)
13076 case $cc_basename in
13077 NCC*)
13078 # NonStop-UX NCC 3.20
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13081 ;;
13082 *)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 esac
13087 ;;
13088 vxworks*)
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13091 ;;
13092 *)
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 esac
13097 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13098 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13099 test "$ld_shlibs_CXX" = no && can_build_shared=no
13100
13101 GCC_CXX="$GXX"
13102 LD_CXX="$LD"
13103
13104 ## CAVEAT EMPTOR:
13105 ## There is no encapsulation within the following macros, do not change
13106 ## the running order or otherwise move them around unless you know exactly
13107 ## what you are doing...
13108
13109 cat > conftest.$ac_ext <<EOF
13110 class Foo
13111 {
13112 public:
13113 Foo (void) { a = 0; }
13114 private:
13115 int a;
13116 };
13117 EOF
13118
13119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120 (eval $ac_compile) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; then
13124 # Parse the compiler output and extract the necessary
13125 # objects, libraries and library flags.
13126
13127 # Sentinel used to keep track of whether or not we are before
13128 # the conftest object file.
13129 pre_test_object_deps_done=no
13130
13131 # The `*' in the case matches for architectures that use `case' in
13132 # $output_verbose_cmd can trigger glob expansion during the loop
13133 # eval without this substitution.
13134 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13135
13136 for p in `eval $output_verbose_link_cmd`; do
13137 case $p in
13138
13139 -L* | -R* | -l*)
13140 # Some compilers place space between "-{L,R}" and the path.
13141 # Remove the space.
13142 if test $p = "-L" \
13143 || test $p = "-R"; then
13144 prev=$p
13145 continue
13146 else
13147 prev=
13148 fi
13149
13150 if test "$pre_test_object_deps_done" = no; then
13151 case $p in
13152 -L* | -R*)
13153 # Internal compiler library paths should come after those
13154 # provided the user. The postdeps already come after the
13155 # user supplied libs so there is no need to process them.
13156 if test -z "$compiler_lib_search_path_CXX"; then
13157 compiler_lib_search_path_CXX="${prev}${p}"
13158 else
13159 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13160 fi
13161 ;;
13162 # The "-l" case would never come before the object being
13163 # linked, so don't bother handling this case.
13164 esac
13165 else
13166 if test -z "$postdeps_CXX"; then
13167 postdeps_CXX="${prev}${p}"
13168 else
13169 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13170 fi
13171 fi
13172 ;;
13173
13174 *.$objext)
13175 # This assumes that the test object file only shows up
13176 # once in the compiler output.
13177 if test "$p" = "conftest.$objext"; then
13178 pre_test_object_deps_done=yes
13179 continue
13180 fi
13181
13182 if test "$pre_test_object_deps_done" = no; then
13183 if test -z "$predep_objects_CXX"; then
13184 predep_objects_CXX="$p"
13185 else
13186 predep_objects_CXX="$predep_objects_CXX $p"
13187 fi
13188 else
13189 if test -z "$postdep_objects_CXX"; then
13190 postdep_objects_CXX="$p"
13191 else
13192 postdep_objects_CXX="$postdep_objects_CXX $p"
13193 fi
13194 fi
13195 ;;
13196
13197 *) ;; # Ignore the rest.
13198
13199 esac
13200 done
13201
13202 # Clean up.
13203 rm -f a.out a.exe
13204 else
13205 echo "libtool.m4: error: problem compiling CXX test program"
13206 fi
13207
13208 $rm -f confest.$objext
13209
13210 # PORTME: override above test on systems where it is broken
13211 case $host_os in
13212 interix3*)
13213 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13214 # hack all around it, let's just trust "g++" to DTRT.
13215 predep_objects_CXX=
13216 postdep_objects_CXX=
13217 postdeps_CXX=
13218 ;;
13219
13220 solaris*)
13221 case $cc_basename in
13222 CC*)
13223 # Adding this requires a known-good setup of shared libraries for
13224 # Sun compiler versions before 5.6, else PIC objects from an old
13225 # archive will be linked into the output, leading to subtle bugs.
13226 postdeps_CXX='-lCstd -lCrun'
13227 ;;
13228 esac
13229 ;;
13230 esac
13231
13232
13233 case " $postdeps_CXX " in
13234 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13235 esac
13236
13237 lt_prog_compiler_wl_CXX=
13238 lt_prog_compiler_pic_CXX=
13239 lt_prog_compiler_static_CXX=
13240
13241 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13242 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13243
13244 # C++ specific cases for pic, static, wl, etc.
13245 if test "$GXX" = yes; then
13246 lt_prog_compiler_wl_CXX='-Wl,'
13247 lt_prog_compiler_static_CXX='-static'
13248
13249 case $host_os in
13250 aix*)
13251 # All AIX code is PIC.
13252 if test "$host_cpu" = ia64; then
13253 # AIX 5 now supports IA64 processor
13254 lt_prog_compiler_static_CXX='-Bstatic'
13255 fi
13256 ;;
13257 amigaos*)
13258 # FIXME: we need at least 68020 code to build shared libraries, but
13259 # adding the `-m68020' flag to GCC prevents building anything better,
13260 # like `-m68040'.
13261 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13262 ;;
13263 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13264 # PIC is the default for these OSes.
13265 ;;
13266 mingw* | os2* | pw32*)
13267 # This hack is so that the source file can tell whether it is being
13268 # built for inclusion in a dll (and should export symbols for example).
13269 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13270 ;;
13271 darwin* | rhapsody*)
13272 # PIC is the default on this platform
13273 # Common symbols not allowed in MH_DYLIB files
13274 lt_prog_compiler_pic_CXX='-fno-common'
13275 ;;
13276 *djgpp*)
13277 # DJGPP does not support shared libraries at all
13278 lt_prog_compiler_pic_CXX=
13279 ;;
13280 interix3*)
13281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13282 # Instead, we relocate shared libraries at runtime.
13283 ;;
13284 sysv4*MP*)
13285 if test -d /usr/nec; then
13286 lt_prog_compiler_pic_CXX=-Kconform_pic
13287 fi
13288 ;;
13289 hpux*)
13290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13291 # not for PA HP-UX.
13292 case $host_cpu in
13293 hppa*64*|ia64*)
13294 ;;
13295 *)
13296 lt_prog_compiler_pic_CXX='-fPIC'
13297 ;;
13298 esac
13299 ;;
13300 *)
13301 lt_prog_compiler_pic_CXX='-fPIC'
13302 ;;
13303 esac
13304 else
13305 case $host_os in
13306 aix4* | aix5*)
13307 # All AIX code is PIC.
13308 if test "$host_cpu" = ia64; then
13309 # AIX 5 now supports IA64 processor
13310 lt_prog_compiler_static_CXX='-Bstatic'
13311 else
13312 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13313 fi
13314 ;;
13315 chorus*)
13316 case $cc_basename in
13317 cxch68*)
13318 # Green Hills C++ Compiler
13319 # _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"
13320 ;;
13321 esac
13322 ;;
13323 darwin*)
13324 # PIC is the default on this platform
13325 # Common symbols not allowed in MH_DYLIB files
13326 case $cc_basename in
13327 xlc*)
13328 lt_prog_compiler_pic_CXX='-qnocommon'
13329 lt_prog_compiler_wl_CXX='-Wl,'
13330 ;;
13331 esac
13332 ;;
13333 dgux*)
13334 case $cc_basename in
13335 ec++*)
13336 lt_prog_compiler_pic_CXX='-KPIC'
13337 ;;
13338 ghcx*)
13339 # Green Hills C++ Compiler
13340 lt_prog_compiler_pic_CXX='-pic'
13341 ;;
13342 *)
13343 ;;
13344 esac
13345 ;;
13346 freebsd* | kfreebsd*-gnu | dragonfly*)
13347 # FreeBSD uses GNU C++
13348 ;;
13349 hpux9* | hpux10* | hpux11*)
13350 case $cc_basename in
13351 CC*)
13352 lt_prog_compiler_wl_CXX='-Wl,'
13353 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13354 if test "$host_cpu" != ia64; then
13355 lt_prog_compiler_pic_CXX='+Z'
13356 fi
13357 ;;
13358 aCC*)
13359 lt_prog_compiler_wl_CXX='-Wl,'
13360 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13361 case $host_cpu in
13362 hppa*64*|ia64*)
13363 # +Z the default
13364 ;;
13365 *)
13366 lt_prog_compiler_pic_CXX='+Z'
13367 ;;
13368 esac
13369 ;;
13370 *)
13371 ;;
13372 esac
13373 ;;
13374 interix*)
13375 # This is c89, which is MS Visual C++ (no shared libs)
13376 # Anyone wants to do a port?
13377 ;;
13378 irix5* | irix6* | nonstopux*)
13379 case $cc_basename in
13380 CC*)
13381 lt_prog_compiler_wl_CXX='-Wl,'
13382 lt_prog_compiler_static_CXX='-non_shared'
13383 # CC pic flag -KPIC is the default.
13384 ;;
13385 *)
13386 ;;
13387 esac
13388 ;;
13389 linux*)
13390 case $cc_basename in
13391 KCC*)
13392 # KAI C++ Compiler
13393 lt_prog_compiler_wl_CXX='--backend -Wl,'
13394 lt_prog_compiler_pic_CXX='-fPIC'
13395 ;;
13396 icpc* | ecpc*)
13397 # Intel C++
13398 lt_prog_compiler_wl_CXX='-Wl,'
13399 lt_prog_compiler_pic_CXX='-KPIC'
13400 lt_prog_compiler_static_CXX='-static'
13401 ;;
13402 pgCC*)
13403 # Portland Group C++ compiler.
13404 lt_prog_compiler_wl_CXX='-Wl,'
13405 lt_prog_compiler_pic_CXX='-fpic'
13406 lt_prog_compiler_static_CXX='-Bstatic'
13407 ;;
13408 cxx*)
13409 # Compaq C++
13410 # Make sure the PIC flag is empty. It appears that all Alpha
13411 # Linux and Compaq Tru64 Unix objects are PIC.
13412 lt_prog_compiler_pic_CXX=
13413 lt_prog_compiler_static_CXX='-non_shared'
13414 ;;
13415 *)
13416 ;;
13417 esac
13418 ;;
13419 lynxos*)
13420 ;;
13421 m88k*)
13422 ;;
13423 mvs*)
13424 case $cc_basename in
13425 cxx*)
13426 lt_prog_compiler_pic_CXX='-W c,exportall'
13427 ;;
13428 *)
13429 ;;
13430 esac
13431 ;;
13432 netbsd*)
13433 ;;
13434 osf3* | osf4* | osf5*)
13435 case $cc_basename in
13436 KCC*)
13437 lt_prog_compiler_wl_CXX='--backend -Wl,'
13438 ;;
13439 RCC*)
13440 # Rational C++ 2.4.1
13441 lt_prog_compiler_pic_CXX='-pic'
13442 ;;
13443 cxx*)
13444 # Digital/Compaq C++
13445 lt_prog_compiler_wl_CXX='-Wl,'
13446 # Make sure the PIC flag is empty. It appears that all Alpha
13447 # Linux and Compaq Tru64 Unix objects are PIC.
13448 lt_prog_compiler_pic_CXX=
13449 lt_prog_compiler_static_CXX='-non_shared'
13450 ;;
13451 *)
13452 ;;
13453 esac
13454 ;;
13455 psos*)
13456 ;;
13457 solaris*)
13458 case $cc_basename in
13459 CC*)
13460 # Sun C++ 4.2, 5.x and Centerline C++
13461 lt_prog_compiler_pic_CXX='-KPIC'
13462 lt_prog_compiler_static_CXX='-Bstatic'
13463 lt_prog_compiler_wl_CXX='-Qoption ld '
13464 ;;
13465 gcx*)
13466 # Green Hills C++ Compiler
13467 lt_prog_compiler_pic_CXX='-PIC'
13468 ;;
13469 *)
13470 ;;
13471 esac
13472 ;;
13473 sunos4*)
13474 case $cc_basename in
13475 CC*)
13476 # Sun C++ 4.x
13477 lt_prog_compiler_pic_CXX='-pic'
13478 lt_prog_compiler_static_CXX='-Bstatic'
13479 ;;
13480 lcc*)
13481 # Lucid
13482 lt_prog_compiler_pic_CXX='-pic'
13483 ;;
13484 *)
13485 ;;
13486 esac
13487 ;;
13488 tandem*)
13489 case $cc_basename in
13490 NCC*)
13491 # NonStop-UX NCC 3.20
13492 lt_prog_compiler_pic_CXX='-KPIC'
13493 ;;
13494 *)
13495 ;;
13496 esac
13497 ;;
13498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13499 case $cc_basename in
13500 CC*)
13501 lt_prog_compiler_wl_CXX='-Wl,'
13502 lt_prog_compiler_pic_CXX='-KPIC'
13503 lt_prog_compiler_static_CXX='-Bstatic'
13504 ;;
13505 esac
13506 ;;
13507 vxworks*)
13508 ;;
13509 *)
13510 lt_prog_compiler_can_build_shared_CXX=no
13511 ;;
13512 esac
13513 fi
13514
13515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13516 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13517
13518 #
13519 # Check to make sure the PIC flag actually works.
13520 #
13521 if test -n "$lt_prog_compiler_pic_CXX"; then
13522
13523 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13525 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528 lt_prog_compiler_pic_works_CXX=no
13529 ac_outfile=conftest.$ac_objext
13530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13531 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13532 # Insert the option either (1) after the last *FLAGS variable, or
13533 # (2) before a word containing "conftest.", or (3) at the end.
13534 # Note that $ac_compile itself does not contain backslashes and begins
13535 # with a dollar sign (not a hyphen), so the echo should work correctly.
13536 # The option is referenced via a variable to avoid confusing sed.
13537 lt_compile=`echo "$ac_compile" | $SED \
13538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13540 -e 's:$: $lt_compiler_flag:'`
13541 (eval echo "\"\$as_me:13541: $lt_compile\"" >&5)
13542 (eval "$lt_compile" 2>conftest.err)
13543 ac_status=$?
13544 cat conftest.err >&5
13545 echo "$as_me:13545: \$? = $ac_status" >&5
13546 if (exit $ac_status) && test -s "$ac_outfile"; then
13547 # The compiler can only warn and ignore the option if not recognized
13548 # So say no if there are warnings other than the usual output.
13549 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13552 lt_prog_compiler_pic_works_CXX=yes
13553 fi
13554 fi
13555 $rm conftest*
13556
13557 fi
13558 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13559 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13560
13561 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13562 case $lt_prog_compiler_pic_CXX in
13563 "" | " "*) ;;
13564 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13565 esac
13566 else
13567 lt_prog_compiler_pic_CXX=
13568 lt_prog_compiler_can_build_shared_CXX=no
13569 fi
13570
13571 fi
13572 case $host_os in
13573 # For platforms which do not support PIC, -DPIC is meaningless:
13574 *djgpp*)
13575 lt_prog_compiler_pic_CXX=
13576 ;;
13577 *)
13578 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13579 ;;
13580 esac
13581
13582 #
13583 # Check to make sure the static flag actually works.
13584 #
13585 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13586 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13587 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13588 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 lt_prog_compiler_static_works_CXX=no
13592 save_LDFLAGS="$LDFLAGS"
13593 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13594 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13596 # The linker can only warn and ignore the option if not recognized
13597 # So say no if there are warnings
13598 if test -s conftest.err; then
13599 # Append any errors to the config.log.
13600 cat conftest.err 1>&5
13601 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13603 if diff conftest.exp conftest.er2 >/dev/null; then
13604 lt_prog_compiler_static_works_CXX=yes
13605 fi
13606 else
13607 lt_prog_compiler_static_works_CXX=yes
13608 fi
13609 fi
13610 $rm conftest*
13611 LDFLAGS="$save_LDFLAGS"
13612
13613 fi
13614 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13615 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13616
13617 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13618 :
13619 else
13620 lt_prog_compiler_static_CXX=
13621 fi
13622
13623
13624 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13625 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13626 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629 lt_cv_prog_compiler_c_o_CXX=no
13630 $rm -r conftest 2>/dev/null
13631 mkdir conftest
13632 cd conftest
13633 mkdir out
13634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13635
13636 lt_compiler_flag="-o out/conftest2.$ac_objext"
13637 # Insert the option either (1) after the last *FLAGS variable, or
13638 # (2) before a word containing "conftest.", or (3) at the end.
13639 # Note that $ac_compile itself does not contain backslashes and begins
13640 # with a dollar sign (not a hyphen), so the echo should work correctly.
13641 lt_compile=`echo "$ac_compile" | $SED \
13642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13644 -e 's:$: $lt_compiler_flag:'`
13645 (eval echo "\"\$as_me:13645: $lt_compile\"" >&5)
13646 (eval "$lt_compile" 2>out/conftest.err)
13647 ac_status=$?
13648 cat out/conftest.err >&5
13649 echo "$as_me:13649: \$? = $ac_status" >&5
13650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13651 then
13652 # The compiler can only warn and ignore the option if not recognized
13653 # So say no if there are warnings
13654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13657 lt_cv_prog_compiler_c_o_CXX=yes
13658 fi
13659 fi
13660 chmod u+w . 2>&5
13661 $rm conftest*
13662 # SGI C++ compiler will create directory out/ii_files/ for
13663 # template instantiation
13664 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13665 $rm out/* && rmdir out
13666 cd ..
13667 rmdir conftest
13668 $rm conftest*
13669
13670 fi
13671 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13672 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13673
13674
13675 hard_links="nottested"
13676 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13677 # do not overwrite the value of need_locks provided by the user
13678 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13679 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13680 hard_links=yes
13681 $rm conftest*
13682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13683 touch conftest.a
13684 ln conftest.a conftest.b 2>&5 || hard_links=no
13685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13686 echo "$as_me:$LINENO: result: $hard_links" >&5
13687 echo "${ECHO_T}$hard_links" >&6
13688 if test "$hard_links" = no; then
13689 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13690 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13691 need_locks=warn
13692 fi
13693 else
13694 need_locks=no
13695 fi
13696
13697 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13698 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13699
13700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13701 case $host_os in
13702 aix4* | aix5*)
13703 # If we're using GNU nm, then we don't want the "-C" option.
13704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13705 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13706 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'
13707 else
13708 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'
13709 fi
13710 ;;
13711 pw32*)
13712 export_symbols_cmds_CXX="$ltdll_cmds"
13713 ;;
13714 cygwin* | mingw*)
13715 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'
13716 ;;
13717 *)
13718 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13719 ;;
13720 esac
13721
13722 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13723 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13724 test "$ld_shlibs_CXX" = no && can_build_shared=no
13725
13726 #
13727 # Do we need to explicitly link libc?
13728 #
13729 case "x$archive_cmds_need_lc_CXX" in
13730 x|xyes)
13731 # Assume -lc should be added
13732 archive_cmds_need_lc_CXX=yes
13733
13734 if test "$enable_shared" = yes && test "$GCC" = yes; then
13735 case $archive_cmds_CXX in
13736 *'~'*)
13737 # FIXME: we may have to deal with multi-command sequences.
13738 ;;
13739 '$CC '*)
13740 # Test whether the compiler implicitly links with -lc since on some
13741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13742 # to ld, don't add -lc before -lgcc.
13743 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13744 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13745 $rm conftest*
13746 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13747
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } 2>conftest.err; then
13753 soname=conftest
13754 lib=conftest
13755 libobjs=conftest.$ac_objext
13756 deplibs=
13757 wl=$lt_prog_compiler_wl_CXX
13758 pic_flag=$lt_prog_compiler_pic_CXX
13759 compiler_flags=-v
13760 linker_flags=-v
13761 verstring=
13762 output_objdir=.
13763 libname=conftest
13764 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13765 allow_undefined_flag_CXX=
13766 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13767 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }
13771 then
13772 archive_cmds_need_lc_CXX=no
13773 else
13774 archive_cmds_need_lc_CXX=yes
13775 fi
13776 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13777 else
13778 cat conftest.err 1>&5
13779 fi
13780 $rm conftest*
13781 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13782 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13783 ;;
13784 esac
13785 fi
13786 ;;
13787 esac
13788
13789 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13790 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13791 library_names_spec=
13792 libname_spec='lib$name'
13793 soname_spec=
13794 shrext_cmds=".so"
13795 postinstall_cmds=
13796 postuninstall_cmds=
13797 finish_cmds=
13798 finish_eval=
13799 shlibpath_var=
13800 shlibpath_overrides_runpath=unknown
13801 version_type=none
13802 dynamic_linker="$host_os ld.so"
13803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13804 if test "$GCC" = yes; then
13805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13806 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13807 # if the path contains ";" then we assume it to be the separator
13808 # otherwise default to the standard path separator (i.e. ":") - it is
13809 # assumed that no part of a normal pathname contains ";" but that should
13810 # okay in the real world where ";" in dirpaths is itself problematic.
13811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13812 else
13813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13814 fi
13815 else
13816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13817 fi
13818 need_lib_prefix=unknown
13819 hardcode_into_libs=no
13820
13821 # when you set need_version to no, make sure it does not cause -set_version
13822 # flags to be left without arguments
13823 need_version=unknown
13824
13825 case $host_os in
13826 aix3*)
13827 version_type=linux
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13829 shlibpath_var=LIBPATH
13830
13831 # AIX 3 has no versioning support, so we append a major version to the name.
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 ;;
13834
13835 aix4* | aix5*)
13836 version_type=linux
13837 need_lib_prefix=no
13838 need_version=no
13839 hardcode_into_libs=yes
13840 if test "$host_cpu" = ia64; then
13841 # AIX 5 supports IA64
13842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13843 shlibpath_var=LD_LIBRARY_PATH
13844 else
13845 # With GCC up to 2.95.x, collect2 would create an import file
13846 # for dependence libraries. The import file would start with
13847 # the line `#! .'. This would cause the generated library to
13848 # depend on `.', always an invalid library. This was fixed in
13849 # development snapshots of GCC prior to 3.0.
13850 case $host_os in
13851 aix4 | aix4.[01] | aix4.[01].*)
13852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13853 echo ' yes '
13854 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13855 :
13856 else
13857 can_build_shared=no
13858 fi
13859 ;;
13860 esac
13861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13862 # soname into executable. Probably we can add versioning support to
13863 # collect2, so additional links can be useful in future.
13864 if test "$aix_use_runtimelinking" = yes; then
13865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13866 # instead of lib<name>.a to let people know that these are not
13867 # typical AIX shared libraries.
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 else
13870 # We preserve .a as extension for shared libraries through AIX4.2
13871 # and later when we are not doing run time linking.
13872 library_names_spec='${libname}${release}.a $libname.a'
13873 soname_spec='${libname}${release}${shared_ext}$major'
13874 fi
13875 shlibpath_var=LIBPATH
13876 fi
13877 ;;
13878
13879 amigaos*)
13880 library_names_spec='$libname.ixlibrary $libname.a'
13881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13882 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'
13883 ;;
13884
13885 beos*)
13886 library_names_spec='${libname}${shared_ext}'
13887 dynamic_linker="$host_os ld.so"
13888 shlibpath_var=LIBRARY_PATH
13889 ;;
13890
13891 bsdi[45]*)
13892 version_type=linux
13893 need_version=no
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895 soname_spec='${libname}${release}${shared_ext}$major'
13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13897 shlibpath_var=LD_LIBRARY_PATH
13898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13900 # the default ld.so.conf also contains /usr/contrib/lib and
13901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13902 # libtool to hard-code these into programs
13903 ;;
13904
13905 cygwin* | mingw* | pw32*)
13906 version_type=windows
13907 shrext_cmds=".dll"
13908 need_version=no
13909 need_lib_prefix=no
13910
13911 case $GCC,$host_os in
13912 yes,cygwin* | yes,mingw* | yes,pw32*)
13913 library_names_spec='$libname.dll.a'
13914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13915 postinstall_cmds='base_file=`basename \${file}`~
13916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13917 dldir=$destdir/`dirname \$dlpath`~
13918 test -d \$dldir || mkdir -p \$dldir~
13919 $install_prog $dir/$dlname \$dldir/$dlname~
13920 chmod a+x \$dldir/$dlname'
13921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13922 dlpath=$dir/\$dldll~
13923 $rm \$dlpath'
13924 shlibpath_overrides_runpath=yes
13925
13926 case $host_os in
13927 cygwin*)
13928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13931 ;;
13932 mingw*)
13933 # MinGW DLLs use traditional 'lib' prefix
13934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13937 # It is most probably a Windows format PATH printed by
13938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13939 # path with ; separators, and with drive letters. We can handle the
13940 # drive letters (cygwin fileutils understands them), so leave them,
13941 # especially as we might pass files found there to a mingw objdump,
13942 # which wouldn't understand a cygwinified path. Ahh.
13943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13944 else
13945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13946 fi
13947 ;;
13948 pw32*)
13949 # pw32 DLLs use 'pw' prefix rather than 'lib'
13950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13951 ;;
13952 esac
13953 ;;
13954
13955 *)
13956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13957 ;;
13958 esac
13959 dynamic_linker='Win32 ld.exe'
13960 # FIXME: first we should search . and the directory the executable is in
13961 shlibpath_var=PATH
13962 ;;
13963
13964 darwin* | rhapsody*)
13965 dynamic_linker="$host_os dyld"
13966 version_type=darwin
13967 need_lib_prefix=no
13968 need_version=no
13969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13970 soname_spec='${libname}${release}${major}$shared_ext'
13971 shlibpath_overrides_runpath=yes
13972 shlibpath_var=DYLD_LIBRARY_PATH
13973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13975 if test "$GCC" = yes; then
13976 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"`
13977 else
13978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13979 fi
13980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13981 ;;
13982
13983 dgux*)
13984 version_type=linux
13985 need_lib_prefix=no
13986 need_version=no
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 ;;
13991
13992 freebsd1*)
13993 dynamic_linker=no
13994 ;;
13995
13996 kfreebsd*-gnu)
13997 version_type=linux
13998 need_lib_prefix=no
13999 need_version=no
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 shlibpath_overrides_runpath=no
14004 hardcode_into_libs=yes
14005 dynamic_linker='GNU ld.so'
14006 ;;
14007
14008 freebsd* | dragonfly*)
14009 # DragonFly does not have aout. When/if they implement a new
14010 # versioning mechanism, adjust this.
14011 if test -x /usr/bin/objformat; then
14012 objformat=`/usr/bin/objformat`
14013 else
14014 case $host_os in
14015 freebsd[123]*) objformat=aout ;;
14016 *) objformat=elf ;;
14017 esac
14018 fi
14019 version_type=freebsd-$objformat
14020 case $version_type in
14021 freebsd-elf*)
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14023 need_version=no
14024 need_lib_prefix=no
14025 ;;
14026 freebsd-*)
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14028 need_version=yes
14029 ;;
14030 esac
14031 shlibpath_var=LD_LIBRARY_PATH
14032 case $host_os in
14033 freebsd2*)
14034 shlibpath_overrides_runpath=yes
14035 ;;
14036 freebsd3.[01]* | freebsdelf3.[01]*)
14037 shlibpath_overrides_runpath=yes
14038 hardcode_into_libs=yes
14039 ;;
14040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14042 shlibpath_overrides_runpath=no
14043 hardcode_into_libs=yes
14044 ;;
14045 freebsd*) # from 4.6 on
14046 shlibpath_overrides_runpath=yes
14047 hardcode_into_libs=yes
14048 ;;
14049 esac
14050 ;;
14051
14052 gnu*)
14053 version_type=linux
14054 need_lib_prefix=no
14055 need_version=no
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 hardcode_into_libs=yes
14060 ;;
14061
14062 hpux9* | hpux10* | hpux11*)
14063 # Give a soname corresponding to the major version so that dld.sl refuses to
14064 # link against other versions.
14065 version_type=sunos
14066 need_lib_prefix=no
14067 need_version=no
14068 case $host_cpu in
14069 ia64*)
14070 shrext_cmds='.so'
14071 hardcode_into_libs=yes
14072 dynamic_linker="$host_os dld.so"
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 if test "X$HPUX_IA64_MODE" = X32; then
14078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14079 else
14080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14081 fi
14082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14083 ;;
14084 hppa*64*)
14085 shrext_cmds='.sl'
14086 hardcode_into_libs=yes
14087 dynamic_linker="$host_os dld.sl"
14088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14094 ;;
14095 *)
14096 shrext_cmds='.sl'
14097 dynamic_linker="$host_os dld.sl"
14098 shlibpath_var=SHLIB_PATH
14099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 ;;
14103 esac
14104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14105 postinstall_cmds='chmod 555 $lib'
14106 ;;
14107
14108 interix3*)
14109 version_type=linux
14110 need_lib_prefix=no
14111 need_version=no
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 shlibpath_overrides_runpath=no
14117 hardcode_into_libs=yes
14118 ;;
14119
14120 irix5* | irix6* | nonstopux*)
14121 case $host_os in
14122 nonstopux*) version_type=nonstopux ;;
14123 *)
14124 if test "$lt_cv_prog_gnu_ld" = yes; then
14125 version_type=linux
14126 else
14127 version_type=irix
14128 fi ;;
14129 esac
14130 need_lib_prefix=no
14131 need_version=no
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14134 case $host_os in
14135 irix5* | nonstopux*)
14136 libsuff= shlibsuff=
14137 ;;
14138 *)
14139 case $LD in # libtool.m4 will add one of these switches to LD
14140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14141 libsuff= shlibsuff= libmagic=32-bit;;
14142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14143 libsuff=32 shlibsuff=N32 libmagic=N32;;
14144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14146 *) libsuff= shlibsuff= libmagic=never-match;;
14147 esac
14148 ;;
14149 esac
14150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14151 shlibpath_overrides_runpath=no
14152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14154 hardcode_into_libs=yes
14155 ;;
14156
14157 # No shared lib support for Linux oldld, aout, or coff.
14158 linux*oldld* | linux*aout* | linux*coff*)
14159 dynamic_linker=no
14160 ;;
14161
14162 # This must be Linux ELF.
14163 linux*)
14164 version_type=linux
14165 need_lib_prefix=no
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 shlibpath_overrides_runpath=no
14172 # This implies no fast_install, which is unacceptable.
14173 # Some rework will be needed to allow for fast_install
14174 # before this can be enabled.
14175 hardcode_into_libs=yes
14176
14177 # Append ld.so.conf contents to the search path
14178 if test -f /etc/ld.so.conf; then
14179 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' ' '`
14180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14181 fi
14182
14183 # We used to test for /lib/ld.so.1 and disable shared libraries on
14184 # powerpc, because MkLinux only supported shared libraries with the
14185 # GNU dynamic linker. Since this was broken with cross compilers,
14186 # most powerpc-linux boxes support dynamic linking these days and
14187 # people can always --disable-shared, the test was removed, and we
14188 # assume the GNU/Linux dynamic linker is in use.
14189 dynamic_linker='GNU/Linux ld.so'
14190 ;;
14191
14192 knetbsd*-gnu)
14193 version_type=linux
14194 need_lib_prefix=no
14195 need_version=no
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=no
14200 hardcode_into_libs=yes
14201 dynamic_linker='GNU ld.so'
14202 ;;
14203
14204 netbsd*)
14205 version_type=sunos
14206 need_lib_prefix=no
14207 need_version=no
14208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14211 dynamic_linker='NetBSD (a.out) ld.so'
14212 else
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 dynamic_linker='NetBSD ld.elf_so'
14216 fi
14217 shlibpath_var=LD_LIBRARY_PATH
14218 shlibpath_overrides_runpath=yes
14219 hardcode_into_libs=yes
14220 ;;
14221
14222 newsos6)
14223 version_type=linux
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 shlibpath_overrides_runpath=yes
14227 ;;
14228
14229 nto-qnx*)
14230 version_type=linux
14231 need_lib_prefix=no
14232 need_version=no
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 shlibpath_overrides_runpath=yes
14237 ;;
14238
14239 openbsd*)
14240 version_type=sunos
14241 sys_lib_dlsearch_path_spec="/usr/lib"
14242 need_lib_prefix=no
14243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14244 case $host_os in
14245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14246 *) need_version=no ;;
14247 esac
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14252 case $host_os in
14253 openbsd2.[89] | openbsd2.[89].*)
14254 shlibpath_overrides_runpath=no
14255 ;;
14256 *)
14257 shlibpath_overrides_runpath=yes
14258 ;;
14259 esac
14260 else
14261 shlibpath_overrides_runpath=yes
14262 fi
14263 ;;
14264
14265 os2*)
14266 libname_spec='$name'
14267 shrext_cmds=".dll"
14268 need_lib_prefix=no
14269 library_names_spec='$libname${shared_ext} $libname.a'
14270 dynamic_linker='OS/2 ld.exe'
14271 shlibpath_var=LIBPATH
14272 ;;
14273
14274 osf3* | osf4* | osf5*)
14275 version_type=osf
14276 need_lib_prefix=no
14277 need_version=no
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14283 ;;
14284
14285 solaris*)
14286 version_type=linux
14287 need_lib_prefix=no
14288 need_version=no
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 shlibpath_var=LD_LIBRARY_PATH
14292 shlibpath_overrides_runpath=yes
14293 hardcode_into_libs=yes
14294 # ldd complains unless libraries are executable
14295 postinstall_cmds='chmod +x $lib'
14296 ;;
14297
14298 sunos4*)
14299 version_type=sunos
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 shlibpath_overrides_runpath=yes
14304 if test "$with_gnu_ld" = yes; then
14305 need_lib_prefix=no
14306 fi
14307 need_version=yes
14308 ;;
14309
14310 sysv4 | sysv4.3*)
14311 version_type=linux
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 case $host_vendor in
14316 sni)
14317 shlibpath_overrides_runpath=no
14318 need_lib_prefix=no
14319 export_dynamic_flag_spec='${wl}-Blargedynsym'
14320 runpath_var=LD_RUN_PATH
14321 ;;
14322 siemens)
14323 need_lib_prefix=no
14324 ;;
14325 motorola)
14326 need_lib_prefix=no
14327 need_version=no
14328 shlibpath_overrides_runpath=no
14329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14330 ;;
14331 esac
14332 ;;
14333
14334 sysv4*MP*)
14335 if test -d /usr/nec ;then
14336 version_type=linux
14337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14338 soname_spec='$libname${shared_ext}.$major'
14339 shlibpath_var=LD_LIBRARY_PATH
14340 fi
14341 ;;
14342
14343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14344 version_type=freebsd-elf
14345 need_lib_prefix=no
14346 need_version=no
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14348 soname_spec='${libname}${release}${shared_ext}$major'
14349 shlibpath_var=LD_LIBRARY_PATH
14350 hardcode_into_libs=yes
14351 if test "$with_gnu_ld" = yes; then
14352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14353 shlibpath_overrides_runpath=no
14354 else
14355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14356 shlibpath_overrides_runpath=yes
14357 case $host_os in
14358 sco3.2v5*)
14359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14360 ;;
14361 esac
14362 fi
14363 sys_lib_dlsearch_path_spec='/usr/lib'
14364 ;;
14365
14366 uts4*)
14367 version_type=linux
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 ;;
14372
14373 *)
14374 dynamic_linker=no
14375 ;;
14376 esac
14377 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14378 echo "${ECHO_T}$dynamic_linker" >&6
14379 test "$dynamic_linker" = no && can_build_shared=no
14380
14381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14382 if test "$GCC" = yes; then
14383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14384 fi
14385
14386 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14388 hardcode_action_CXX=
14389 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14390 test -n "$runpath_var_CXX" || \
14391 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14392
14393 # We can hardcode non-existant directories.
14394 if test "$hardcode_direct_CXX" != no &&
14395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14396 # have to relink, otherwise we might link with an installed library
14397 # when we should be linking with a yet-to-be-installed one
14398 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14399 test "$hardcode_minus_L_CXX" != no; then
14400 # Linking always hardcodes the temporary library directory.
14401 hardcode_action_CXX=relink
14402 else
14403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14404 hardcode_action_CXX=immediate
14405 fi
14406 else
14407 # We cannot hardcode anything, or else we can only hardcode existing
14408 # directories.
14409 hardcode_action_CXX=unsupported
14410 fi
14411 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14412 echo "${ECHO_T}$hardcode_action_CXX" >&6
14413
14414 if test "$hardcode_action_CXX" = relink; then
14415 # Fast installation is not supported
14416 enable_fast_install=no
14417 elif test "$shlibpath_overrides_runpath" = yes ||
14418 test "$enable_shared" = no; then
14419 # Fast installation is not necessary
14420 enable_fast_install=needless
14421 fi
14422
14423
14424 # The else clause should only fire when bootstrapping the
14425 # libtool distribution, otherwise you forgot to ship ltmain.sh
14426 # with your package, and you will get complaints that there are
14427 # no rules to generate ltmain.sh.
14428 if test -f "$ltmain"; then
14429 # See if we are running on zsh, and set the options which allow our commands through
14430 # without removal of \ escapes.
14431 if test -n "${ZSH_VERSION+set}" ; then
14432 setopt NO_GLOB_SUBST
14433 fi
14434 # Now quote all the things that may contain metacharacters while being
14435 # careful not to overquote the AC_SUBSTed values. We take copies of the
14436 # variables and quote the copies for generation of the libtool script.
14437 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14438 SED SHELL STRIP \
14439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14441 deplibs_check_method reload_flag reload_cmds need_locks \
14442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14443 lt_cv_sys_global_symbol_to_c_name_address \
14444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14445 old_postinstall_cmds old_postuninstall_cmds \
14446 compiler_CXX \
14447 CC_CXX \
14448 LD_CXX \
14449 lt_prog_compiler_wl_CXX \
14450 lt_prog_compiler_pic_CXX \
14451 lt_prog_compiler_static_CXX \
14452 lt_prog_compiler_no_builtin_flag_CXX \
14453 export_dynamic_flag_spec_CXX \
14454 thread_safe_flag_spec_CXX \
14455 whole_archive_flag_spec_CXX \
14456 enable_shared_with_static_runtimes_CXX \
14457 old_archive_cmds_CXX \
14458 old_archive_from_new_cmds_CXX \
14459 predep_objects_CXX \
14460 postdep_objects_CXX \
14461 predeps_CXX \
14462 postdeps_CXX \
14463 compiler_lib_search_path_CXX \
14464 archive_cmds_CXX \
14465 archive_expsym_cmds_CXX \
14466 postinstall_cmds_CXX \
14467 postuninstall_cmds_CXX \
14468 old_archive_from_expsyms_cmds_CXX \
14469 allow_undefined_flag_CXX \
14470 no_undefined_flag_CXX \
14471 export_symbols_cmds_CXX \
14472 hardcode_libdir_flag_spec_CXX \
14473 hardcode_libdir_flag_spec_ld_CXX \
14474 hardcode_libdir_separator_CXX \
14475 hardcode_automatic_CXX \
14476 module_cmds_CXX \
14477 module_expsym_cmds_CXX \
14478 lt_cv_prog_compiler_c_o_CXX \
14479 exclude_expsyms_CXX \
14480 include_expsyms_CXX; do
14481
14482 case $var in
14483 old_archive_cmds_CXX | \
14484 old_archive_from_new_cmds_CXX | \
14485 archive_cmds_CXX | \
14486 archive_expsym_cmds_CXX | \
14487 module_cmds_CXX | \
14488 module_expsym_cmds_CXX | \
14489 old_archive_from_expsyms_cmds_CXX | \
14490 export_symbols_cmds_CXX | \
14491 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14492 postinstall_cmds | postuninstall_cmds | \
14493 old_postinstall_cmds | old_postuninstall_cmds | \
14494 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14495 # Double-quote double-evaled strings.
14496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14497 ;;
14498 *)
14499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14500 ;;
14501 esac
14502 done
14503
14504 case $lt_echo in
14505 *'\$0 --fallback-echo"')
14506 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14507 ;;
14508 esac
14509
14510 cfgfile="$ofile"
14511
14512 cat <<__EOF__ >> "$cfgfile"
14513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14514
14515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14516
14517 # Shell to use when invoking shell scripts.
14518 SHELL=$lt_SHELL
14519
14520 # Whether or not to build shared libraries.
14521 build_libtool_libs=$enable_shared
14522
14523 # Whether or not to build static libraries.
14524 build_old_libs=$enable_static
14525
14526 # Whether or not to add -lc for building shared libraries.
14527 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14528
14529 # Whether or not to disallow shared libs when runtime libs are static
14530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14531
14532 # Whether or not to optimize for fast installation.
14533 fast_install=$enable_fast_install
14534
14535 # The host system.
14536 host_alias=$host_alias
14537 host=$host
14538 host_os=$host_os
14539
14540 # The build system.
14541 build_alias=$build_alias
14542 build=$build
14543 build_os=$build_os
14544
14545 # An echo program that does not interpret backslashes.
14546 echo=$lt_echo
14547
14548 # The archiver.
14549 AR=$lt_AR
14550 AR_FLAGS=$lt_AR_FLAGS
14551
14552 # A C compiler.
14553 LTCC=$lt_LTCC
14554
14555 # LTCC compiler flags.
14556 LTCFLAGS=$lt_LTCFLAGS
14557
14558 # A language-specific compiler.
14559 CC=$lt_compiler_CXX
14560
14561 # Is the compiler the GNU C compiler?
14562 with_gcc=$GCC_CXX
14563
14564 # An ERE matcher.
14565 EGREP=$lt_EGREP
14566
14567 # The linker used to build libraries.
14568 LD=$lt_LD_CXX
14569
14570 # Whether we need hard or soft links.
14571 LN_S=$lt_LN_S
14572
14573 # A BSD-compatible nm program.
14574 NM=$lt_NM
14575
14576 # A symbol stripping program
14577 STRIP=$lt_STRIP
14578
14579 # Used to examine libraries when file_magic_cmd begins "file"
14580 MAGIC_CMD=$MAGIC_CMD
14581
14582 # Used on cygwin: DLL creation program.
14583 DLLTOOL="$DLLTOOL"
14584
14585 # Used on cygwin: object dumper.
14586 OBJDUMP="$OBJDUMP"
14587
14588 # Used on cygwin: assembler.
14589 AS="$AS"
14590
14591 # The name of the directory that contains temporary libtool files.
14592 objdir=$objdir
14593
14594 # How to create reloadable object files.
14595 reload_flag=$lt_reload_flag
14596 reload_cmds=$lt_reload_cmds
14597
14598 # How to pass a linker flag through the compiler.
14599 wl=$lt_lt_prog_compiler_wl_CXX
14600
14601 # Object file suffix (normally "o").
14602 objext="$ac_objext"
14603
14604 # Old archive suffix (normally "a").
14605 libext="$libext"
14606
14607 # Shared library suffix (normally ".so").
14608 shrext_cmds='$shrext_cmds'
14609
14610 # Executable file suffix (normally "").
14611 exeext="$exeext"
14612
14613 # Additional compiler flags for building library objects.
14614 pic_flag=$lt_lt_prog_compiler_pic_CXX
14615 pic_mode=$pic_mode
14616
14617 # What is the maximum length of a command?
14618 max_cmd_len=$lt_cv_sys_max_cmd_len
14619
14620 # Does compiler simultaneously support -c and -o options?
14621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14622
14623 # Must we lock files when doing compilation?
14624 need_locks=$lt_need_locks
14625
14626 # Do we need the lib prefix for modules?
14627 need_lib_prefix=$need_lib_prefix
14628
14629 # Do we need a version for libraries?
14630 need_version=$need_version
14631
14632 # Whether dlopen is supported.
14633 dlopen_support=$enable_dlopen
14634
14635 # Whether dlopen of programs is supported.
14636 dlopen_self=$enable_dlopen_self
14637
14638 # Whether dlopen of statically linked programs is supported.
14639 dlopen_self_static=$enable_dlopen_self_static
14640
14641 # Compiler flag to prevent dynamic linking.
14642 link_static_flag=$lt_lt_prog_compiler_static_CXX
14643
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14646
14647 # Compiler flag to allow reflexive dlopens.
14648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14649
14650 # Compiler flag to generate shared objects directly from archives.
14651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14652
14653 # Compiler flag to generate thread-safe objects.
14654 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14655
14656 # Library versioning type.
14657 version_type=$version_type
14658
14659 # Format of library name prefix.
14660 libname_spec=$lt_libname_spec
14661
14662 # List of archive names. First name is the real one, the rest are links.
14663 # The last name is the one that the linker finds with -lNAME.
14664 library_names_spec=$lt_library_names_spec
14665
14666 # The coded name of the library, if different from the real name.
14667 soname_spec=$lt_soname_spec
14668
14669 # Commands used to build and install an old-style archive.
14670 RANLIB=$lt_RANLIB
14671 old_archive_cmds=$lt_old_archive_cmds_CXX
14672 old_postinstall_cmds=$lt_old_postinstall_cmds
14673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14674
14675 # Create an old-style archive from a shared archive.
14676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14677
14678 # Create a temporary old-style archive to link instead of a shared archive.
14679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14680
14681 # Commands used to build and install a shared archive.
14682 archive_cmds=$lt_archive_cmds_CXX
14683 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14684 postinstall_cmds=$lt_postinstall_cmds
14685 postuninstall_cmds=$lt_postuninstall_cmds
14686
14687 # Commands used to build a loadable module (assumed same as above if empty)
14688 module_cmds=$lt_module_cmds_CXX
14689 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14690
14691 # Commands to strip libraries.
14692 old_striplib=$lt_old_striplib
14693 striplib=$lt_striplib
14694
14695 # Dependencies to place before the objects being linked to create a
14696 # shared library.
14697 predep_objects=$lt_predep_objects_CXX
14698
14699 # Dependencies to place after the objects being linked to create a
14700 # shared library.
14701 postdep_objects=$lt_postdep_objects_CXX
14702
14703 # Dependencies to place before the objects being linked to create a
14704 # shared library.
14705 predeps=$lt_predeps_CXX
14706
14707 # Dependencies to place after the objects being linked to create a
14708 # shared library.
14709 postdeps=$lt_postdeps_CXX
14710
14711 # The library search path used internally by the compiler when linking
14712 # a shared library.
14713 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14714
14715 # Method to check whether dependent libraries are shared objects.
14716 deplibs_check_method=$lt_deplibs_check_method
14717
14718 # Command to use when deplibs_check_method == file_magic.
14719 file_magic_cmd=$lt_file_magic_cmd
14720
14721 # Flag that allows shared libraries with undefined symbols to be built.
14722 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14723
14724 # Flag that forces no undefined symbols.
14725 no_undefined_flag=$lt_no_undefined_flag_CXX
14726
14727 # Commands used to finish a libtool library installation in a directory.
14728 finish_cmds=$lt_finish_cmds
14729
14730 # Same as above, but a single script fragment to be evaled but not shown.
14731 finish_eval=$lt_finish_eval
14732
14733 # Take the output of nm and produce a listing of raw symbols and C names.
14734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14735
14736 # Transform the output of nm in a proper C declaration
14737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14738
14739 # Transform the output of nm in a C name address pair
14740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14741
14742 # This is the shared library runtime path variable.
14743 runpath_var=$runpath_var
14744
14745 # This is the shared library path variable.
14746 shlibpath_var=$shlibpath_var
14747
14748 # Is shlibpath searched before the hard-coded library search path?
14749 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14750
14751 # How to hardcode a shared library path into an executable.
14752 hardcode_action=$hardcode_action_CXX
14753
14754 # Whether we should hardcode library paths into libraries.
14755 hardcode_into_libs=$hardcode_into_libs
14756
14757 # Flag to hardcode \$libdir into a binary during linking.
14758 # This must work even if \$libdir does not exist.
14759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14760
14761 # If ld is used when linking, flag to hardcode \$libdir into
14762 # a binary during linking. This must work even if \$libdir does
14763 # not exist.
14764 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14765
14766 # Whether we need a single -rpath flag with a separated argument.
14767 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14768
14769 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14770 # resulting binary.
14771 hardcode_direct=$hardcode_direct_CXX
14772
14773 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14774 # resulting binary.
14775 hardcode_minus_L=$hardcode_minus_L_CXX
14776
14777 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14778 # the resulting binary.
14779 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14780
14781 # Set to yes if building a shared library automatically hardcodes DIR into the library
14782 # and all subsequent libraries and executables linked against it.
14783 hardcode_automatic=$hardcode_automatic_CXX
14784
14785 # Variables whose values should be saved in libtool wrapper scripts and
14786 # restored at relink time.
14787 variables_saved_for_relink="$variables_saved_for_relink"
14788
14789 # Whether libtool must link a program against all its dependency libraries.
14790 link_all_deplibs=$link_all_deplibs_CXX
14791
14792 # Compile-time system search path for libraries
14793 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14794
14795 # Run-time system search path for libraries
14796 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14797
14798 # Fix the shell variable \$srcfile for the compiler.
14799 fix_srcfile_path="$fix_srcfile_path_CXX"
14800
14801 # Set to yes if exported symbols are required.
14802 always_export_symbols=$always_export_symbols_CXX
14803
14804 # The commands to list exported symbols.
14805 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14806
14807 # The commands to extract the exported symbol list from a shared archive.
14808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14809
14810 # Symbols that should not be listed in the preloaded symbols.
14811 exclude_expsyms=$lt_exclude_expsyms_CXX
14812
14813 # Symbols that must always be exported.
14814 include_expsyms=$lt_include_expsyms_CXX
14815
14816 # ### END LIBTOOL TAG CONFIG: $tagname
14817
14818 __EOF__
14819
14820
14821 else
14822 # If there is no Makefile yet, we rely on a make rule to execute
14823 # `config.status --recheck' to rerun these tests and create the
14824 # libtool script then.
14825 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14826 if test -f "$ltmain_in"; then
14827 test -f Makefile && make "$ltmain"
14828 fi
14829 fi
14830
14831
14832 ac_ext=c
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837
14838 CC=$lt_save_CC
14839 LDCXX=$LD
14840 LD=$lt_save_LD
14841 GCC=$lt_save_GCC
14842 with_gnu_ldcxx=$with_gnu_ld
14843 with_gnu_ld=$lt_save_with_gnu_ld
14844 lt_cv_path_LDCXX=$lt_cv_path_LD
14845 lt_cv_path_LD=$lt_save_path_LD
14846 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14847 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14848
14849 else
14850 tagname=""
14851 fi
14852 ;;
14853
14854 F77)
14855 if test -n "$F77" && test "X$F77" != "Xno"; then
14856
14857 ac_ext=f
14858 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14859 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14861
14862
14863 archive_cmds_need_lc_F77=no
14864 allow_undefined_flag_F77=
14865 always_export_symbols_F77=no
14866 archive_expsym_cmds_F77=
14867 export_dynamic_flag_spec_F77=
14868 hardcode_direct_F77=no
14869 hardcode_libdir_flag_spec_F77=
14870 hardcode_libdir_flag_spec_ld_F77=
14871 hardcode_libdir_separator_F77=
14872 hardcode_minus_L_F77=no
14873 hardcode_automatic_F77=no
14874 module_cmds_F77=
14875 module_expsym_cmds_F77=
14876 link_all_deplibs_F77=unknown
14877 old_archive_cmds_F77=$old_archive_cmds
14878 no_undefined_flag_F77=
14879 whole_archive_flag_spec_F77=
14880 enable_shared_with_static_runtimes_F77=no
14881
14882 # Source file extension for f77 test sources.
14883 ac_ext=f
14884
14885 # Object file extension for compiled f77 test sources.
14886 objext=o
14887 objext_F77=$objext
14888
14889 # Code to be used in simple compile tests
14890 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14891
14892 # Code to be used in simple link tests
14893 lt_simple_link_test_code=" program t\n end\n"
14894
14895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14896
14897 # If no C compiler was specified, use CC.
14898 LTCC=${LTCC-"$CC"}
14899
14900 # If no C compiler flags were specified, use CFLAGS.
14901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14902
14903 # Allow CC to be a program name with arguments.
14904 compiler=$CC
14905
14906
14907 # save warnings/boilerplate of simple test code
14908 ac_outfile=conftest.$ac_objext
14909 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14911 _lt_compiler_boilerplate=`cat conftest.err`
14912 $rm conftest*
14913
14914 ac_outfile=conftest.$ac_objext
14915 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14917 _lt_linker_boilerplate=`cat conftest.err`
14918 $rm conftest*
14919
14920
14921 # Allow CC to be a program name with arguments.
14922 lt_save_CC="$CC"
14923 CC=${F77-"f77"}
14924 compiler=$CC
14925 compiler_F77=$CC
14926 for cc_temp in $compiler""; do
14927 case $cc_temp in
14928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14930 \-*) ;;
14931 *) break;;
14932 esac
14933 done
14934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14935
14936
14937 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14938 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14939 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14940 echo "${ECHO_T}$can_build_shared" >&6
14941
14942 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14943 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14944 test "$can_build_shared" = "no" && enable_shared=no
14945
14946 # On AIX, shared libraries and static libraries use the same namespace, and
14947 # are all built from PIC.
14948 case $host_os in
14949 aix3*)
14950 test "$enable_shared" = yes && enable_static=no
14951 if test -n "$RANLIB"; then
14952 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14953 postinstall_cmds='$RANLIB $lib'
14954 fi
14955 ;;
14956 aix4* | aix5*)
14957 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14958 test "$enable_shared" = yes && enable_static=no
14959 fi
14960 ;;
14961 esac
14962 echo "$as_me:$LINENO: result: $enable_shared" >&5
14963 echo "${ECHO_T}$enable_shared" >&6
14964
14965 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14966 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14967 # Make sure either enable_shared or enable_static is yes.
14968 test "$enable_shared" = yes || enable_static=yes
14969 echo "$as_me:$LINENO: result: $enable_static" >&5
14970 echo "${ECHO_T}$enable_static" >&6
14971
14972 GCC_F77="$G77"
14973 LD_F77="$LD"
14974
14975 lt_prog_compiler_wl_F77=
14976 lt_prog_compiler_pic_F77=
14977 lt_prog_compiler_static_F77=
14978
14979 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14981
14982 if test "$GCC" = yes; then
14983 lt_prog_compiler_wl_F77='-Wl,'
14984 lt_prog_compiler_static_F77='-static'
14985
14986 case $host_os in
14987 aix*)
14988 # All AIX code is PIC.
14989 if test "$host_cpu" = ia64; then
14990 # AIX 5 now supports IA64 processor
14991 lt_prog_compiler_static_F77='-Bstatic'
14992 fi
14993 ;;
14994
14995 amigaos*)
14996 # FIXME: we need at least 68020 code to build shared libraries, but
14997 # adding the `-m68020' flag to GCC prevents building anything better,
14998 # like `-m68040'.
14999 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15000 ;;
15001
15002 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15003 # PIC is the default for these OSes.
15004 ;;
15005
15006 mingw* | pw32* | os2*)
15007 # This hack is so that the source file can tell whether it is being
15008 # built for inclusion in a dll (and should export symbols for example).
15009 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15010 ;;
15011
15012 darwin* | rhapsody*)
15013 # PIC is the default on this platform
15014 # Common symbols not allowed in MH_DYLIB files
15015 lt_prog_compiler_pic_F77='-fno-common'
15016 ;;
15017
15018 interix3*)
15019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15020 # Instead, we relocate shared libraries at runtime.
15021 ;;
15022
15023 msdosdjgpp*)
15024 # Just because we use GCC doesn't mean we suddenly get shared libraries
15025 # on systems that don't support them.
15026 lt_prog_compiler_can_build_shared_F77=no
15027 enable_shared=no
15028 ;;
15029
15030 sysv4*MP*)
15031 if test -d /usr/nec; then
15032 lt_prog_compiler_pic_F77=-Kconform_pic
15033 fi
15034 ;;
15035
15036 hpux*)
15037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15038 # not for PA HP-UX.
15039 case $host_cpu in
15040 hppa*64*|ia64*)
15041 # +Z the default
15042 ;;
15043 *)
15044 lt_prog_compiler_pic_F77='-fPIC'
15045 ;;
15046 esac
15047 ;;
15048
15049 *)
15050 lt_prog_compiler_pic_F77='-fPIC'
15051 ;;
15052 esac
15053 else
15054 # PORTME Check for flag to pass linker flags through the system compiler.
15055 case $host_os in
15056 aix*)
15057 lt_prog_compiler_wl_F77='-Wl,'
15058 if test "$host_cpu" = ia64; then
15059 # AIX 5 now supports IA64 processor
15060 lt_prog_compiler_static_F77='-Bstatic'
15061 else
15062 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15063 fi
15064 ;;
15065 darwin*)
15066 # PIC is the default on this platform
15067 # Common symbols not allowed in MH_DYLIB files
15068 case $cc_basename in
15069 xlc*)
15070 lt_prog_compiler_pic_F77='-qnocommon'
15071 lt_prog_compiler_wl_F77='-Wl,'
15072 ;;
15073 esac
15074 ;;
15075
15076 mingw* | pw32* | os2*)
15077 # This hack is so that the source file can tell whether it is being
15078 # built for inclusion in a dll (and should export symbols for example).
15079 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15080 ;;
15081
15082 hpux9* | hpux10* | hpux11*)
15083 lt_prog_compiler_wl_F77='-Wl,'
15084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15085 # not for PA HP-UX.
15086 case $host_cpu in
15087 hppa*64*|ia64*)
15088 # +Z the default
15089 ;;
15090 *)
15091 lt_prog_compiler_pic_F77='+Z'
15092 ;;
15093 esac
15094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15095 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15096 ;;
15097
15098 irix5* | irix6* | nonstopux*)
15099 lt_prog_compiler_wl_F77='-Wl,'
15100 # PIC (with -KPIC) is the default.
15101 lt_prog_compiler_static_F77='-non_shared'
15102 ;;
15103
15104 newsos6)
15105 lt_prog_compiler_pic_F77='-KPIC'
15106 lt_prog_compiler_static_F77='-Bstatic'
15107 ;;
15108
15109 linux*)
15110 case $cc_basename in
15111 icc* | ecc*)
15112 lt_prog_compiler_wl_F77='-Wl,'
15113 lt_prog_compiler_pic_F77='-KPIC'
15114 lt_prog_compiler_static_F77='-static'
15115 ;;
15116 pgcc* | pgf77* | pgf90* | pgf95*)
15117 # Portland Group compilers (*not* the Pentium gcc compiler,
15118 # which looks to be a dead project)
15119 lt_prog_compiler_wl_F77='-Wl,'
15120 lt_prog_compiler_pic_F77='-fpic'
15121 lt_prog_compiler_static_F77='-Bstatic'
15122 ;;
15123 ccc*)
15124 lt_prog_compiler_wl_F77='-Wl,'
15125 # All Alpha code is PIC.
15126 lt_prog_compiler_static_F77='-non_shared'
15127 ;;
15128 esac
15129 ;;
15130
15131 osf3* | osf4* | osf5*)
15132 lt_prog_compiler_wl_F77='-Wl,'
15133 # All OSF/1 code is PIC.
15134 lt_prog_compiler_static_F77='-non_shared'
15135 ;;
15136
15137 solaris*)
15138 lt_prog_compiler_pic_F77='-KPIC'
15139 lt_prog_compiler_static_F77='-Bstatic'
15140 case $cc_basename in
15141 f77* | f90* | f95*)
15142 lt_prog_compiler_wl_F77='-Qoption ld ';;
15143 *)
15144 lt_prog_compiler_wl_F77='-Wl,';;
15145 esac
15146 ;;
15147
15148 sunos4*)
15149 lt_prog_compiler_wl_F77='-Qoption ld '
15150 lt_prog_compiler_pic_F77='-PIC'
15151 lt_prog_compiler_static_F77='-Bstatic'
15152 ;;
15153
15154 sysv4 | sysv4.2uw2* | sysv4.3*)
15155 lt_prog_compiler_wl_F77='-Wl,'
15156 lt_prog_compiler_pic_F77='-KPIC'
15157 lt_prog_compiler_static_F77='-Bstatic'
15158 ;;
15159
15160 sysv4*MP*)
15161 if test -d /usr/nec ;then
15162 lt_prog_compiler_pic_F77='-Kconform_pic'
15163 lt_prog_compiler_static_F77='-Bstatic'
15164 fi
15165 ;;
15166
15167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15168 lt_prog_compiler_wl_F77='-Wl,'
15169 lt_prog_compiler_pic_F77='-KPIC'
15170 lt_prog_compiler_static_F77='-Bstatic'
15171 ;;
15172
15173 unicos*)
15174 lt_prog_compiler_wl_F77='-Wl,'
15175 lt_prog_compiler_can_build_shared_F77=no
15176 ;;
15177
15178 uts4*)
15179 lt_prog_compiler_pic_F77='-pic'
15180 lt_prog_compiler_static_F77='-Bstatic'
15181 ;;
15182
15183 *)
15184 lt_prog_compiler_can_build_shared_F77=no
15185 ;;
15186 esac
15187 fi
15188
15189 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15190 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15191
15192 #
15193 # Check to make sure the PIC flag actually works.
15194 #
15195 if test -n "$lt_prog_compiler_pic_F77"; then
15196
15197 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15198 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15199 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 lt_prog_compiler_pic_works_F77=no
15203 ac_outfile=conftest.$ac_objext
15204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15205 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15206 # Insert the option either (1) after the last *FLAGS variable, or
15207 # (2) before a word containing "conftest.", or (3) at the end.
15208 # Note that $ac_compile itself does not contain backslashes and begins
15209 # with a dollar sign (not a hyphen), so the echo should work correctly.
15210 # The option is referenced via a variable to avoid confusing sed.
15211 lt_compile=`echo "$ac_compile" | $SED \
15212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214 -e 's:$: $lt_compiler_flag:'`
15215 (eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
15216 (eval "$lt_compile" 2>conftest.err)
15217 ac_status=$?
15218 cat conftest.err >&5
15219 echo "$as_me:15219: \$? = $ac_status" >&5
15220 if (exit $ac_status) && test -s "$ac_outfile"; then
15221 # The compiler can only warn and ignore the option if not recognized
15222 # So say no if there are warnings other than the usual output.
15223 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15226 lt_prog_compiler_pic_works_F77=yes
15227 fi
15228 fi
15229 $rm conftest*
15230
15231 fi
15232 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15233 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15234
15235 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15236 case $lt_prog_compiler_pic_F77 in
15237 "" | " "*) ;;
15238 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15239 esac
15240 else
15241 lt_prog_compiler_pic_F77=
15242 lt_prog_compiler_can_build_shared_F77=no
15243 fi
15244
15245 fi
15246 case $host_os in
15247 # For platforms which do not support PIC, -DPIC is meaningless:
15248 *djgpp*)
15249 lt_prog_compiler_pic_F77=
15250 ;;
15251 *)
15252 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15253 ;;
15254 esac
15255
15256 #
15257 # Check to make sure the static flag actually works.
15258 #
15259 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15260 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15261 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15262 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 lt_prog_compiler_static_works_F77=no
15266 save_LDFLAGS="$LDFLAGS"
15267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15268 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15270 # The linker can only warn and ignore the option if not recognized
15271 # So say no if there are warnings
15272 if test -s conftest.err; then
15273 # Append any errors to the config.log.
15274 cat conftest.err 1>&5
15275 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15277 if diff conftest.exp conftest.er2 >/dev/null; then
15278 lt_prog_compiler_static_works_F77=yes
15279 fi
15280 else
15281 lt_prog_compiler_static_works_F77=yes
15282 fi
15283 fi
15284 $rm conftest*
15285 LDFLAGS="$save_LDFLAGS"
15286
15287 fi
15288 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15289 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15290
15291 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15292 :
15293 else
15294 lt_prog_compiler_static_F77=
15295 fi
15296
15297
15298 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15299 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15300 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303 lt_cv_prog_compiler_c_o_F77=no
15304 $rm -r conftest 2>/dev/null
15305 mkdir conftest
15306 cd conftest
15307 mkdir out
15308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15309
15310 lt_compiler_flag="-o out/conftest2.$ac_objext"
15311 # Insert the option either (1) after the last *FLAGS variable, or
15312 # (2) before a word containing "conftest.", or (3) at the end.
15313 # Note that $ac_compile itself does not contain backslashes and begins
15314 # with a dollar sign (not a hyphen), so the echo should work correctly.
15315 lt_compile=`echo "$ac_compile" | $SED \
15316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15318 -e 's:$: $lt_compiler_flag:'`
15319 (eval echo "\"\$as_me:15319: $lt_compile\"" >&5)
15320 (eval "$lt_compile" 2>out/conftest.err)
15321 ac_status=$?
15322 cat out/conftest.err >&5
15323 echo "$as_me:15323: \$? = $ac_status" >&5
15324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15325 then
15326 # The compiler can only warn and ignore the option if not recognized
15327 # So say no if there are warnings
15328 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15331 lt_cv_prog_compiler_c_o_F77=yes
15332 fi
15333 fi
15334 chmod u+w . 2>&5
15335 $rm conftest*
15336 # SGI C++ compiler will create directory out/ii_files/ for
15337 # template instantiation
15338 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15339 $rm out/* && rmdir out
15340 cd ..
15341 rmdir conftest
15342 $rm conftest*
15343
15344 fi
15345 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15346 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15347
15348
15349 hard_links="nottested"
15350 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15351 # do not overwrite the value of need_locks provided by the user
15352 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15353 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15354 hard_links=yes
15355 $rm conftest*
15356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15357 touch conftest.a
15358 ln conftest.a conftest.b 2>&5 || hard_links=no
15359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15360 echo "$as_me:$LINENO: result: $hard_links" >&5
15361 echo "${ECHO_T}$hard_links" >&6
15362 if test "$hard_links" = no; then
15363 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15364 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15365 need_locks=warn
15366 fi
15367 else
15368 need_locks=no
15369 fi
15370
15371 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15373
15374 runpath_var=
15375 allow_undefined_flag_F77=
15376 enable_shared_with_static_runtimes_F77=no
15377 archive_cmds_F77=
15378 archive_expsym_cmds_F77=
15379 old_archive_From_new_cmds_F77=
15380 old_archive_from_expsyms_cmds_F77=
15381 export_dynamic_flag_spec_F77=
15382 whole_archive_flag_spec_F77=
15383 thread_safe_flag_spec_F77=
15384 hardcode_libdir_flag_spec_F77=
15385 hardcode_libdir_flag_spec_ld_F77=
15386 hardcode_libdir_separator_F77=
15387 hardcode_direct_F77=no
15388 hardcode_minus_L_F77=no
15389 hardcode_shlibpath_var_F77=unsupported
15390 link_all_deplibs_F77=unknown
15391 hardcode_automatic_F77=no
15392 module_cmds_F77=
15393 module_expsym_cmds_F77=
15394 always_export_symbols_F77=no
15395 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396 # include_expsyms should be a list of space-separated symbols to be *always*
15397 # included in the symbol list
15398 include_expsyms_F77=
15399 # exclude_expsyms can be an extended regexp of symbols to exclude
15400 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15402 # as well as any symbol that contains `d'.
15403 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15405 # platforms (ab)use it in PIC code, but their linkers get confused if
15406 # the symbol is explicitly referenced. Since portable code cannot
15407 # rely on this symbol name, it's probably fine to never include it in
15408 # preloaded symbol tables.
15409 extract_expsyms_cmds=
15410 # Just being paranoid about ensuring that cc_basename is set.
15411 for cc_temp in $compiler""; do
15412 case $cc_temp in
15413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15415 \-*) ;;
15416 *) break;;
15417 esac
15418 done
15419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15420
15421 case $host_os in
15422 cygwin* | mingw* | pw32*)
15423 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15424 # When not using gcc, we currently assume that we are using
15425 # Microsoft Visual C++.
15426 if test "$GCC" != yes; then
15427 with_gnu_ld=no
15428 fi
15429 ;;
15430 interix*)
15431 # we just hope/assume this is gcc and not c89 (= MSVC++)
15432 with_gnu_ld=yes
15433 ;;
15434 openbsd*)
15435 with_gnu_ld=no
15436 ;;
15437 esac
15438
15439 ld_shlibs_F77=yes
15440 if test "$with_gnu_ld" = yes; then
15441 # If archive_cmds runs LD, not CC, wlarc should be empty
15442 wlarc='${wl}'
15443
15444 # Set some defaults for GNU ld with shared library support. These
15445 # are reset later if shared libraries are not supported. Putting them
15446 # here allows them to be overridden if necessary.
15447 runpath_var=LD_RUN_PATH
15448 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15449 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15450 # ancient GNU ld didn't support --whole-archive et. al.
15451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15452 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15453 else
15454 whole_archive_flag_spec_F77=
15455 fi
15456 supports_anon_versioning=no
15457 case `$LD -v 2>/dev/null` in
15458 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15459 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15460 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15461 *\ 2.11.*) ;; # other 2.11 versions
15462 *) supports_anon_versioning=yes ;;
15463 esac
15464
15465 # See if GNU ld supports shared libraries.
15466 case $host_os in
15467 aix3* | aix4* | aix5*)
15468 # On AIX/PPC, the GNU linker is very broken
15469 if test "$host_cpu" != ia64; then
15470 ld_shlibs_F77=no
15471 cat <<EOF 1>&2
15472
15473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15474 *** to be unable to reliably create shared libraries on AIX.
15475 *** Therefore, libtool is disabling shared libraries support. If you
15476 *** really care for shared libraries, you may want to modify your PATH
15477 *** so that a non-GNU linker is found, and then restart.
15478
15479 EOF
15480 fi
15481 ;;
15482
15483 amigaos*)
15484 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)'
15485 hardcode_libdir_flag_spec_F77='-L$libdir'
15486 hardcode_minus_L_F77=yes
15487
15488 # Samuel A. Falvo II <[email protected]> reports
15489 # that the semantics of dynamic libraries on AmigaOS, at least up
15490 # to version 4, is to share data among multiple programs linked
15491 # with the same dynamic library. Since this doesn't match the
15492 # behavior of shared libraries on other platforms, we can't use
15493 # them.
15494 ld_shlibs_F77=no
15495 ;;
15496
15497 beos*)
15498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15499 allow_undefined_flag_F77=unsupported
15500 # Joseph Beckenbach <[email protected]> says some releases of gcc
15501 # support --undefined. This deserves some investigation. FIXME
15502 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15503 else
15504 ld_shlibs_F77=no
15505 fi
15506 ;;
15507
15508 cygwin* | mingw* | pw32*)
15509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15510 # as there is no search path for DLLs.
15511 hardcode_libdir_flag_spec_F77='-L$libdir'
15512 allow_undefined_flag_F77=unsupported
15513 always_export_symbols_F77=no
15514 enable_shared_with_static_runtimes_F77=yes
15515 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15516
15517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15519 # If the export-symbols file already is a .def file (1st line
15520 # is EXPORTS), use it as is; otherwise, prepend...
15521 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15522 cp $export_symbols $output_objdir/$soname.def;
15523 else
15524 echo EXPORTS > $output_objdir/$soname.def;
15525 cat $export_symbols >> $output_objdir/$soname.def;
15526 fi~
15527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15528 else
15529 ld_shlibs_F77=no
15530 fi
15531 ;;
15532
15533 interix3*)
15534 hardcode_direct_F77=no
15535 hardcode_shlibpath_var_F77=no
15536 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15537 export_dynamic_flag_spec_F77='${wl}-E'
15538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15539 # Instead, shared libraries are loaded at an image base (0x10000000 by
15540 # default) and relocated if they conflict, which is a slow very memory
15541 # consuming and fragmenting process. To avoid this, we pick a random,
15542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15544 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'
15545 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'
15546 ;;
15547
15548 linux*)
15549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15550 tmp_addflag=
15551 case $cc_basename,$host_cpu in
15552 pgcc*) # Portland Group C compiler
15553 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'
15554 tmp_addflag=' $pic_flag'
15555 ;;
15556 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15557 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'
15558 tmp_addflag=' $pic_flag -Mnomain' ;;
15559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15560 tmp_addflag=' -i_dynamic' ;;
15561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15562 tmp_addflag=' -i_dynamic -nofor_main' ;;
15563 ifc* | ifort*) # Intel Fortran compiler
15564 tmp_addflag=' -nofor_main' ;;
15565 esac
15566 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15567
15568 if test $supports_anon_versioning = yes; then
15569 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15571 $echo "local: *; };" >> $output_objdir/$libname.ver~
15572 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15573 fi
15574 else
15575 ld_shlibs_F77=no
15576 fi
15577 ;;
15578
15579 netbsd*)
15580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15581 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15582 wlarc=
15583 else
15584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15586 fi
15587 ;;
15588
15589 solaris*)
15590 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15591 ld_shlibs_F77=no
15592 cat <<EOF 1>&2
15593
15594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15595 *** create shared libraries on Solaris systems. Therefore, libtool
15596 *** is disabling shared libraries support. We urge you to upgrade GNU
15597 *** binutils to release 2.9.1 or newer. Another option is to modify
15598 *** your PATH or compiler configuration so that the native linker is
15599 *** used, and then restart.
15600
15601 EOF
15602 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15603 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15605 else
15606 ld_shlibs_F77=no
15607 fi
15608 ;;
15609
15610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15611 case `$LD -v 2>&1` in
15612 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15613 ld_shlibs_F77=no
15614 cat <<_LT_EOF 1>&2
15615
15616 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15617 *** reliably create shared libraries on SCO systems. Therefore, libtool
15618 *** is disabling shared libraries support. We urge you to upgrade GNU
15619 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15620 *** your PATH or compiler configuration so that the native linker is
15621 *** used, and then restart.
15622
15623 _LT_EOF
15624 ;;
15625 *)
15626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15627 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15630 else
15631 ld_shlibs_F77=no
15632 fi
15633 ;;
15634 esac
15635 ;;
15636
15637 sunos4*)
15638 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15639 wlarc=
15640 hardcode_direct_F77=yes
15641 hardcode_shlibpath_var_F77=no
15642 ;;
15643
15644 *)
15645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15648 else
15649 ld_shlibs_F77=no
15650 fi
15651 ;;
15652 esac
15653
15654 if test "$ld_shlibs_F77" = no; then
15655 runpath_var=
15656 hardcode_libdir_flag_spec_F77=
15657 export_dynamic_flag_spec_F77=
15658 whole_archive_flag_spec_F77=
15659 fi
15660 else
15661 # PORTME fill in a description of your system's linker (not GNU ld)
15662 case $host_os in
15663 aix3*)
15664 allow_undefined_flag_F77=unsupported
15665 always_export_symbols_F77=yes
15666 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'
15667 # Note: this linker hardcodes the directories in LIBPATH if there
15668 # are no directories specified by -L.
15669 hardcode_minus_L_F77=yes
15670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15671 # Neither direct hardcoding nor static linking is supported with a
15672 # broken collect2.
15673 hardcode_direct_F77=unsupported
15674 fi
15675 ;;
15676
15677 aix4* | aix5*)
15678 if test "$host_cpu" = ia64; then
15679 # On IA64, the linker does run time linking by default, so we don't
15680 # have to do anything special.
15681 aix_use_runtimelinking=no
15682 exp_sym_flag='-Bexport'
15683 no_entry_flag=""
15684 else
15685 # If we're using GNU nm, then we don't want the "-C" option.
15686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15688 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'
15689 else
15690 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'
15691 fi
15692 aix_use_runtimelinking=no
15693
15694 # Test if we are trying to use run time linking or normal
15695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15696 # need to do runtime linking.
15697 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15698 for ld_flag in $LDFLAGS; do
15699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15700 aix_use_runtimelinking=yes
15701 break
15702 fi
15703 done
15704 ;;
15705 esac
15706
15707 exp_sym_flag='-bexport'
15708 no_entry_flag='-bnoentry'
15709 fi
15710
15711 # When large executables or shared objects are built, AIX ld can
15712 # have problems creating the table of contents. If linking a library
15713 # or program results in "error TOC overflow" add -mminimal-toc to
15714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15716
15717 archive_cmds_F77=''
15718 hardcode_direct_F77=yes
15719 hardcode_libdir_separator_F77=':'
15720 link_all_deplibs_F77=yes
15721
15722 if test "$GCC" = yes; then
15723 case $host_os in aix4.[012]|aix4.[012].*)
15724 # We only want to do this on AIX 4.2 and lower, the check
15725 # below for broken collect2 doesn't work under 4.3+
15726 collect2name=`${CC} -print-prog-name=collect2`
15727 if test -f "$collect2name" && \
15728 strings "$collect2name" | grep resolve_lib_name >/dev/null
15729 then
15730 # We have reworked collect2
15731 hardcode_direct_F77=yes
15732 else
15733 # We have old collect2
15734 hardcode_direct_F77=unsupported
15735 # It fails to find uninstalled libraries when the uninstalled
15736 # path is not listed in the libpath. Setting hardcode_minus_L
15737 # to unsupported forces relinking
15738 hardcode_minus_L_F77=yes
15739 hardcode_libdir_flag_spec_F77='-L$libdir'
15740 hardcode_libdir_separator_F77=
15741 fi
15742 ;;
15743 esac
15744 shared_flag='-shared'
15745 if test "$aix_use_runtimelinking" = yes; then
15746 shared_flag="$shared_flag "'${wl}-G'
15747 fi
15748 else
15749 # not using gcc
15750 if test "$host_cpu" = ia64; then
15751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15752 # chokes on -Wl,-G. The following line is correct:
15753 shared_flag='-G'
15754 else
15755 if test "$aix_use_runtimelinking" = yes; then
15756 shared_flag='${wl}-G'
15757 else
15758 shared_flag='${wl}-bM:SRE'
15759 fi
15760 fi
15761 fi
15762
15763 # It seems that -bexpall does not export symbols beginning with
15764 # underscore (_), so it is better to generate a list of symbols to export.
15765 always_export_symbols_F77=yes
15766 if test "$aix_use_runtimelinking" = yes; then
15767 # Warning - without using the other runtime loading flags (-brtl),
15768 # -berok will link without error, but may produce a broken library.
15769 allow_undefined_flag_F77='-berok'
15770 # Determine the default libpath from the value encoded in an empty executable.
15771 cat >conftest.$ac_ext <<_ACEOF
15772 program main
15773
15774 end
15775 _ACEOF
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778 (eval $ac_link) 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_f77_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest$ac_exeext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798
15799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15800 }'`
15801 # Check for a 64-bit object if we didn't find anything.
15802 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; }
15803 }'`; fi
15804 else
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 fi
15809 rm -f conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15812
15813 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15814 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"
15815 else
15816 if test "$host_cpu" = ia64; then
15817 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15818 allow_undefined_flag_F77="-z nodefs"
15819 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"
15820 else
15821 # Determine the default libpath from the value encoded in an empty executable.
15822 cat >conftest.$ac_ext <<_ACEOF
15823 program main
15824
15825 end
15826 _ACEOF
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829 (eval $ac_link) 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_f77_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849
15850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15851 }'`
15852 # Check for a 64-bit object if we didn't find anything.
15853 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; }
15854 }'`; fi
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 fi
15860 rm -f conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15863
15864 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15865 # Warning - without using the other run time loading flags,
15866 # -berok will link without error, but may produce a broken library.
15867 no_undefined_flag_F77=' ${wl}-bernotok'
15868 allow_undefined_flag_F77=' ${wl}-berok'
15869 # Exported symbols can be pulled into shared objects from archives
15870 whole_archive_flag_spec_F77='$convenience'
15871 archive_cmds_need_lc_F77=yes
15872 # This is similar to how AIX traditionally builds its shared libraries.
15873 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'
15874 fi
15875 fi
15876 ;;
15877
15878 amigaos*)
15879 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)'
15880 hardcode_libdir_flag_spec_F77='-L$libdir'
15881 hardcode_minus_L_F77=yes
15882 # see comment about different semantics on the GNU ld section
15883 ld_shlibs_F77=no
15884 ;;
15885
15886 bsdi[45]*)
15887 export_dynamic_flag_spec_F77=-rdynamic
15888 ;;
15889
15890 cygwin* | mingw* | pw32*)
15891 # When not using gcc, we currently assume that we are using
15892 # Microsoft Visual C++.
15893 # hardcode_libdir_flag_spec is actually meaningless, as there is
15894 # no search path for DLLs.
15895 hardcode_libdir_flag_spec_F77=' '
15896 allow_undefined_flag_F77=unsupported
15897 # Tell ltmain to make .lib files, not .a files.
15898 libext=lib
15899 # Tell ltmain to make .dll files, not .so files.
15900 shrext_cmds=".dll"
15901 # FIXME: Setting linknames here is a bad hack.
15902 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15903 # The linker will automatically build a .lib file if we build a DLL.
15904 old_archive_From_new_cmds_F77='true'
15905 # FIXME: Should let the user specify the lib program.
15906 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15907 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15908 enable_shared_with_static_runtimes_F77=yes
15909 ;;
15910
15911 darwin* | rhapsody*)
15912 case $host_os in
15913 rhapsody* | darwin1.[012])
15914 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15915 ;;
15916 *) # Darwin 1.3 on
15917 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15918 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15919 else
15920 case ${MACOSX_DEPLOYMENT_TARGET} in
15921 10.[012])
15922 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15923 ;;
15924 10.*)
15925 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15926 ;;
15927 esac
15928 fi
15929 ;;
15930 esac
15931 archive_cmds_need_lc_F77=no
15932 hardcode_direct_F77=no
15933 hardcode_automatic_F77=yes
15934 hardcode_shlibpath_var_F77=unsupported
15935 whole_archive_flag_spec_F77=''
15936 link_all_deplibs_F77=yes
15937 if test "$GCC" = yes ; then
15938 output_verbose_link_cmd='echo'
15939 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15940 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15942 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}'
15943 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}'
15944 else
15945 case $cc_basename in
15946 xlc*)
15947 output_verbose_link_cmd='echo'
15948 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15949 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15950 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15951 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}'
15952 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}'
15953 ;;
15954 *)
15955 ld_shlibs_F77=no
15956 ;;
15957 esac
15958 fi
15959 ;;
15960
15961 dgux*)
15962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963 hardcode_libdir_flag_spec_F77='-L$libdir'
15964 hardcode_shlibpath_var_F77=no
15965 ;;
15966
15967 freebsd1*)
15968 ld_shlibs_F77=no
15969 ;;
15970
15971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15972 # support. Future versions do this automatically, but an explicit c++rt0.o
15973 # does not break anything, and helps significantly (at the cost of a little
15974 # extra space).
15975 freebsd2.2*)
15976 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15977 hardcode_libdir_flag_spec_F77='-R$libdir'
15978 hardcode_direct_F77=yes
15979 hardcode_shlibpath_var_F77=no
15980 ;;
15981
15982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15983 freebsd2*)
15984 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_direct_F77=yes
15986 hardcode_minus_L_F77=yes
15987 hardcode_shlibpath_var_F77=no
15988 ;;
15989
15990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15991 freebsd* | kfreebsd*-gnu | dragonfly*)
15992 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15993 hardcode_libdir_flag_spec_F77='-R$libdir'
15994 hardcode_direct_F77=yes
15995 hardcode_shlibpath_var_F77=no
15996 ;;
15997
15998 hpux9*)
15999 if test "$GCC" = yes; then
16000 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'
16001 else
16002 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'
16003 fi
16004 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16005 hardcode_libdir_separator_F77=:
16006 hardcode_direct_F77=yes
16007
16008 # hardcode_minus_L: Not really in the search PATH,
16009 # but as the default location of the library.
16010 hardcode_minus_L_F77=yes
16011 export_dynamic_flag_spec_F77='${wl}-E'
16012 ;;
16013
16014 hpux10*)
16015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16016 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16017 else
16018 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16019 fi
16020 if test "$with_gnu_ld" = no; then
16021 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16022 hardcode_libdir_separator_F77=:
16023
16024 hardcode_direct_F77=yes
16025 export_dynamic_flag_spec_F77='${wl}-E'
16026
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L_F77=yes
16030 fi
16031 ;;
16032
16033 hpux11*)
16034 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16035 case $host_cpu in
16036 hppa*64*)
16037 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16038 ;;
16039 ia64*)
16040 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16041 ;;
16042 *)
16043 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16044 ;;
16045 esac
16046 else
16047 case $host_cpu in
16048 hppa*64*)
16049 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16050 ;;
16051 ia64*)
16052 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16053 ;;
16054 *)
16055 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16056 ;;
16057 esac
16058 fi
16059 if test "$with_gnu_ld" = no; then
16060 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16061 hardcode_libdir_separator_F77=:
16062
16063 case $host_cpu in
16064 hppa*64*|ia64*)
16065 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16066 hardcode_direct_F77=no
16067 hardcode_shlibpath_var_F77=no
16068 ;;
16069 *)
16070 hardcode_direct_F77=yes
16071 export_dynamic_flag_spec_F77='${wl}-E'
16072
16073 # hardcode_minus_L: Not really in the search PATH,
16074 # but as the default location of the library.
16075 hardcode_minus_L_F77=yes
16076 ;;
16077 esac
16078 fi
16079 ;;
16080
16081 irix5* | irix6* | nonstopux*)
16082 if test "$GCC" = yes; then
16083 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'
16084 else
16085 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'
16086 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16087 fi
16088 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16089 hardcode_libdir_separator_F77=:
16090 link_all_deplibs_F77=yes
16091 ;;
16092
16093 netbsd*)
16094 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16095 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16096 else
16097 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16098 fi
16099 hardcode_libdir_flag_spec_F77='-R$libdir'
16100 hardcode_direct_F77=yes
16101 hardcode_shlibpath_var_F77=no
16102 ;;
16103
16104 newsos6)
16105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_direct_F77=yes
16107 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16108 hardcode_libdir_separator_F77=:
16109 hardcode_shlibpath_var_F77=no
16110 ;;
16111
16112 openbsd*)
16113 hardcode_direct_F77=yes
16114 hardcode_shlibpath_var_F77=no
16115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16116 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16118 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16119 export_dynamic_flag_spec_F77='${wl}-E'
16120 else
16121 case $host_os in
16122 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16123 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_libdir_flag_spec_F77='-R$libdir'
16125 ;;
16126 *)
16127 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16128 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16129 ;;
16130 esac
16131 fi
16132 ;;
16133
16134 os2*)
16135 hardcode_libdir_flag_spec_F77='-L$libdir'
16136 hardcode_minus_L_F77=yes
16137 allow_undefined_flag_F77=unsupported
16138 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'
16139 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16140 ;;
16141
16142 osf3*)
16143 if test "$GCC" = yes; then
16144 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16145 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'
16146 else
16147 allow_undefined_flag_F77=' -expect_unresolved \*'
16148 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'
16149 fi
16150 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16151 hardcode_libdir_separator_F77=:
16152 ;;
16153
16154 osf4* | osf5*) # as osf3* with the addition of -msym flag
16155 if test "$GCC" = yes; then
16156 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16157 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'
16158 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16159 else
16160 allow_undefined_flag_F77=' -expect_unresolved \*'
16161 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'
16162 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~
16163 $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'
16164
16165 # Both c and cxx compiler support -rpath directly
16166 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16167 fi
16168 hardcode_libdir_separator_F77=:
16169 ;;
16170
16171 solaris*)
16172 no_undefined_flag_F77=' -z text'
16173 if test "$GCC" = yes; then
16174 wlarc='${wl}'
16175 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16176 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16177 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16178 else
16179 wlarc=''
16180 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16181 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16182 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16183 fi
16184 hardcode_libdir_flag_spec_F77='-R$libdir'
16185 hardcode_shlibpath_var_F77=no
16186 case $host_os in
16187 solaris2.[0-5] | solaris2.[0-5].*) ;;
16188 *)
16189 # The compiler driver will combine linker options so we
16190 # cannot just pass the convience library names through
16191 # without $wl, iff we do not link with $LD.
16192 # Luckily, gcc supports the same syntax we need for Sun Studio.
16193 # Supported since Solaris 2.6 (maybe 2.5.1?)
16194 case $wlarc in
16195 '')
16196 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16197 *)
16198 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' ;;
16199 esac ;;
16200 esac
16201 link_all_deplibs_F77=yes
16202 ;;
16203
16204 sunos4*)
16205 if test "x$host_vendor" = xsequent; then
16206 # Use $CC to link under sequent, because it throws in some extra .o
16207 # files that make .init and .fini sections work.
16208 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16209 else
16210 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16211 fi
16212 hardcode_libdir_flag_spec_F77='-L$libdir'
16213 hardcode_direct_F77=yes
16214 hardcode_minus_L_F77=yes
16215 hardcode_shlibpath_var_F77=no
16216 ;;
16217
16218 sysv4)
16219 case $host_vendor in
16220 sni)
16221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16222 hardcode_direct_F77=yes # is this really true???
16223 ;;
16224 siemens)
16225 ## LD is ld it makes a PLAMLIB
16226 ## CC just makes a GrossModule.
16227 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16228 reload_cmds_F77='$CC -r -o $output$reload_objs'
16229 hardcode_direct_F77=no
16230 ;;
16231 motorola)
16232 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16233 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16234 ;;
16235 esac
16236 runpath_var='LD_RUN_PATH'
16237 hardcode_shlibpath_var_F77=no
16238 ;;
16239
16240 sysv4.3*)
16241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242 hardcode_shlibpath_var_F77=no
16243 export_dynamic_flag_spec_F77='-Bexport'
16244 ;;
16245
16246 sysv4*MP*)
16247 if test -d /usr/nec; then
16248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249 hardcode_shlibpath_var_F77=no
16250 runpath_var=LD_RUN_PATH
16251 hardcode_runpath_var=yes
16252 ld_shlibs_F77=yes
16253 fi
16254 ;;
16255
16256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16257 no_undefined_flag_F77='${wl}-z,text'
16258 archive_cmds_need_lc_F77=no
16259 hardcode_shlibpath_var_F77=no
16260 runpath_var='LD_RUN_PATH'
16261
16262 if test "$GCC" = yes; then
16263 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 else
16266 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16268 fi
16269 ;;
16270
16271 sysv5* | sco3.2v5* | sco5v6*)
16272 # Note: We can NOT use -z defs as we might desire, because we do not
16273 # link with -lc, and that would cause any symbols used from libc to
16274 # always be unresolved, which means just about no library would
16275 # ever link correctly. If we're not using GNU ld we use -z text
16276 # though, which does catch some bad symbols but isn't as heavy-handed
16277 # as -z defs.
16278 no_undefined_flag_F77='${wl}-z,text'
16279 allow_undefined_flag_F77='${wl}-z,nodefs'
16280 archive_cmds_need_lc_F77=no
16281 hardcode_shlibpath_var_F77=no
16282 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16283 hardcode_libdir_separator_F77=':'
16284 link_all_deplibs_F77=yes
16285 export_dynamic_flag_spec_F77='${wl}-Bexport'
16286 runpath_var='LD_RUN_PATH'
16287
16288 if test "$GCC" = yes; then
16289 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16291 else
16292 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16293 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294 fi
16295 ;;
16296
16297 uts4*)
16298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16299 hardcode_libdir_flag_spec_F77='-L$libdir'
16300 hardcode_shlibpath_var_F77=no
16301 ;;
16302
16303 *)
16304 ld_shlibs_F77=no
16305 ;;
16306 esac
16307 fi
16308
16309 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16310 echo "${ECHO_T}$ld_shlibs_F77" >&6
16311 test "$ld_shlibs_F77" = no && can_build_shared=no
16312
16313 #
16314 # Do we need to explicitly link libc?
16315 #
16316 case "x$archive_cmds_need_lc_F77" in
16317 x|xyes)
16318 # Assume -lc should be added
16319 archive_cmds_need_lc_F77=yes
16320
16321 if test "$enable_shared" = yes && test "$GCC" = yes; then
16322 case $archive_cmds_F77 in
16323 *'~'*)
16324 # FIXME: we may have to deal with multi-command sequences.
16325 ;;
16326 '$CC '*)
16327 # Test whether the compiler implicitly links with -lc since on some
16328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16329 # to ld, don't add -lc before -lgcc.
16330 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16331 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16332 $rm conftest*
16333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16334
16335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16336 (eval $ac_compile) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } 2>conftest.err; then
16340 soname=conftest
16341 lib=conftest
16342 libobjs=conftest.$ac_objext
16343 deplibs=
16344 wl=$lt_prog_compiler_wl_F77
16345 pic_flag=$lt_prog_compiler_pic_F77
16346 compiler_flags=-v
16347 linker_flags=-v
16348 verstring=
16349 output_objdir=.
16350 libname=conftest
16351 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16352 allow_undefined_flag_F77=
16353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16354 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }
16358 then
16359 archive_cmds_need_lc_F77=no
16360 else
16361 archive_cmds_need_lc_F77=yes
16362 fi
16363 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16364 else
16365 cat conftest.err 1>&5
16366 fi
16367 $rm conftest*
16368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16369 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16370 ;;
16371 esac
16372 fi
16373 ;;
16374 esac
16375
16376 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16377 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16378 library_names_spec=
16379 libname_spec='lib$name'
16380 soname_spec=
16381 shrext_cmds=".so"
16382 postinstall_cmds=
16383 postuninstall_cmds=
16384 finish_cmds=
16385 finish_eval=
16386 shlibpath_var=
16387 shlibpath_overrides_runpath=unknown
16388 version_type=none
16389 dynamic_linker="$host_os ld.so"
16390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16391 if test "$GCC" = yes; then
16392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16393 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16394 # if the path contains ";" then we assume it to be the separator
16395 # otherwise default to the standard path separator (i.e. ":") - it is
16396 # assumed that no part of a normal pathname contains ";" but that should
16397 # okay in the real world where ";" in dirpaths is itself problematic.
16398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16399 else
16400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16401 fi
16402 else
16403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16404 fi
16405 need_lib_prefix=unknown
16406 hardcode_into_libs=no
16407
16408 # when you set need_version to no, make sure it does not cause -set_version
16409 # flags to be left without arguments
16410 need_version=unknown
16411
16412 case $host_os in
16413 aix3*)
16414 version_type=linux
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16416 shlibpath_var=LIBPATH
16417
16418 # AIX 3 has no versioning support, so we append a major version to the name.
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 ;;
16421
16422 aix4* | aix5*)
16423 version_type=linux
16424 need_lib_prefix=no
16425 need_version=no
16426 hardcode_into_libs=yes
16427 if test "$host_cpu" = ia64; then
16428 # AIX 5 supports IA64
16429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 else
16432 # With GCC up to 2.95.x, collect2 would create an import file
16433 # for dependence libraries. The import file would start with
16434 # the line `#! .'. This would cause the generated library to
16435 # depend on `.', always an invalid library. This was fixed in
16436 # development snapshots of GCC prior to 3.0.
16437 case $host_os in
16438 aix4 | aix4.[01] | aix4.[01].*)
16439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16440 echo ' yes '
16441 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16442 :
16443 else
16444 can_build_shared=no
16445 fi
16446 ;;
16447 esac
16448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16449 # soname into executable. Probably we can add versioning support to
16450 # collect2, so additional links can be useful in future.
16451 if test "$aix_use_runtimelinking" = yes; then
16452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16453 # instead of lib<name>.a to let people know that these are not
16454 # typical AIX shared libraries.
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 else
16457 # We preserve .a as extension for shared libraries through AIX4.2
16458 # and later when we are not doing run time linking.
16459 library_names_spec='${libname}${release}.a $libname.a'
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 fi
16462 shlibpath_var=LIBPATH
16463 fi
16464 ;;
16465
16466 amigaos*)
16467 library_names_spec='$libname.ixlibrary $libname.a'
16468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16469 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'
16470 ;;
16471
16472 beos*)
16473 library_names_spec='${libname}${shared_ext}'
16474 dynamic_linker="$host_os ld.so"
16475 shlibpath_var=LIBRARY_PATH
16476 ;;
16477
16478 bsdi[45]*)
16479 version_type=linux
16480 need_version=no
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16487 # the default ld.so.conf also contains /usr/contrib/lib and
16488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16489 # libtool to hard-code these into programs
16490 ;;
16491
16492 cygwin* | mingw* | pw32*)
16493 version_type=windows
16494 shrext_cmds=".dll"
16495 need_version=no
16496 need_lib_prefix=no
16497
16498 case $GCC,$host_os in
16499 yes,cygwin* | yes,mingw* | yes,pw32*)
16500 library_names_spec='$libname.dll.a'
16501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16502 postinstall_cmds='base_file=`basename \${file}`~
16503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16504 dldir=$destdir/`dirname \$dlpath`~
16505 test -d \$dldir || mkdir -p \$dldir~
16506 $install_prog $dir/$dlname \$dldir/$dlname~
16507 chmod a+x \$dldir/$dlname'
16508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16509 dlpath=$dir/\$dldll~
16510 $rm \$dlpath'
16511 shlibpath_overrides_runpath=yes
16512
16513 case $host_os in
16514 cygwin*)
16515 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16516 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16517 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16518 ;;
16519 mingw*)
16520 # MinGW DLLs use traditional 'lib' prefix
16521 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16522 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16523 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16524 # It is most probably a Windows format PATH printed by
16525 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16526 # path with ; separators, and with drive letters. We can handle the
16527 # drive letters (cygwin fileutils understands them), so leave them,
16528 # especially as we might pass files found there to a mingw objdump,
16529 # which wouldn't understand a cygwinified path. Ahh.
16530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16531 else
16532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16533 fi
16534 ;;
16535 pw32*)
16536 # pw32 DLLs use 'pw' prefix rather than 'lib'
16537 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16538 ;;
16539 esac
16540 ;;
16541
16542 *)
16543 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16544 ;;
16545 esac
16546 dynamic_linker='Win32 ld.exe'
16547 # FIXME: first we should search . and the directory the executable is in
16548 shlibpath_var=PATH
16549 ;;
16550
16551 darwin* | rhapsody*)
16552 dynamic_linker="$host_os dyld"
16553 version_type=darwin
16554 need_lib_prefix=no
16555 need_version=no
16556 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16557 soname_spec='${libname}${release}${major}$shared_ext'
16558 shlibpath_overrides_runpath=yes
16559 shlibpath_var=DYLD_LIBRARY_PATH
16560 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16561 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16562 if test "$GCC" = yes; then
16563 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"`
16564 else
16565 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16566 fi
16567 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16568 ;;
16569
16570 dgux*)
16571 version_type=linux
16572 need_lib_prefix=no
16573 need_version=no
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 ;;
16578
16579 freebsd1*)
16580 dynamic_linker=no
16581 ;;
16582
16583 kfreebsd*-gnu)
16584 version_type=linux
16585 need_lib_prefix=no
16586 need_version=no
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=no
16591 hardcode_into_libs=yes
16592 dynamic_linker='GNU ld.so'
16593 ;;
16594
16595 freebsd* | dragonfly*)
16596 # DragonFly does not have aout. When/if they implement a new
16597 # versioning mechanism, adjust this.
16598 if test -x /usr/bin/objformat; then
16599 objformat=`/usr/bin/objformat`
16600 else
16601 case $host_os in
16602 freebsd[123]*) objformat=aout ;;
16603 *) objformat=elf ;;
16604 esac
16605 fi
16606 version_type=freebsd-$objformat
16607 case $version_type in
16608 freebsd-elf*)
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16610 need_version=no
16611 need_lib_prefix=no
16612 ;;
16613 freebsd-*)
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16615 need_version=yes
16616 ;;
16617 esac
16618 shlibpath_var=LD_LIBRARY_PATH
16619 case $host_os in
16620 freebsd2*)
16621 shlibpath_overrides_runpath=yes
16622 ;;
16623 freebsd3.[01]* | freebsdelf3.[01]*)
16624 shlibpath_overrides_runpath=yes
16625 hardcode_into_libs=yes
16626 ;;
16627 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16628 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16629 shlibpath_overrides_runpath=no
16630 hardcode_into_libs=yes
16631 ;;
16632 freebsd*) # from 4.6 on
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16635 ;;
16636 esac
16637 ;;
16638
16639 gnu*)
16640 version_type=linux
16641 need_lib_prefix=no
16642 need_version=no
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16644 soname_spec='${libname}${release}${shared_ext}$major'
16645 shlibpath_var=LD_LIBRARY_PATH
16646 hardcode_into_libs=yes
16647 ;;
16648
16649 hpux9* | hpux10* | hpux11*)
16650 # Give a soname corresponding to the major version so that dld.sl refuses to
16651 # link against other versions.
16652 version_type=sunos
16653 need_lib_prefix=no
16654 need_version=no
16655 case $host_cpu in
16656 ia64*)
16657 shrext_cmds='.so'
16658 hardcode_into_libs=yes
16659 dynamic_linker="$host_os dld.so"
16660 shlibpath_var=LD_LIBRARY_PATH
16661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 if test "X$HPUX_IA64_MODE" = X32; then
16665 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16666 else
16667 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16668 fi
16669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16670 ;;
16671 hppa*64*)
16672 shrext_cmds='.sl'
16673 hardcode_into_libs=yes
16674 dynamic_linker="$host_os dld.sl"
16675 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16681 ;;
16682 *)
16683 shrext_cmds='.sl'
16684 dynamic_linker="$host_os dld.sl"
16685 shlibpath_var=SHLIB_PATH
16686 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 ;;
16690 esac
16691 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16692 postinstall_cmds='chmod 555 $lib'
16693 ;;
16694
16695 interix3*)
16696 version_type=linux
16697 need_lib_prefix=no
16698 need_version=no
16699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16700 soname_spec='${libname}${release}${shared_ext}$major'
16701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=no
16704 hardcode_into_libs=yes
16705 ;;
16706
16707 irix5* | irix6* | nonstopux*)
16708 case $host_os in
16709 nonstopux*) version_type=nonstopux ;;
16710 *)
16711 if test "$lt_cv_prog_gnu_ld" = yes; then
16712 version_type=linux
16713 else
16714 version_type=irix
16715 fi ;;
16716 esac
16717 need_lib_prefix=no
16718 need_version=no
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16721 case $host_os in
16722 irix5* | nonstopux*)
16723 libsuff= shlibsuff=
16724 ;;
16725 *)
16726 case $LD in # libtool.m4 will add one of these switches to LD
16727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16728 libsuff= shlibsuff= libmagic=32-bit;;
16729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16730 libsuff=32 shlibsuff=N32 libmagic=N32;;
16731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16733 *) libsuff= shlibsuff= libmagic=never-match;;
16734 esac
16735 ;;
16736 esac
16737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16738 shlibpath_overrides_runpath=no
16739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16741 hardcode_into_libs=yes
16742 ;;
16743
16744 # No shared lib support for Linux oldld, aout, or coff.
16745 linux*oldld* | linux*aout* | linux*coff*)
16746 dynamic_linker=no
16747 ;;
16748
16749 # This must be Linux ELF.
16750 linux*)
16751 version_type=linux
16752 need_lib_prefix=no
16753 need_version=no
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=no
16759 # This implies no fast_install, which is unacceptable.
16760 # Some rework will be needed to allow for fast_install
16761 # before this can be enabled.
16762 hardcode_into_libs=yes
16763
16764 # Append ld.so.conf contents to the search path
16765 if test -f /etc/ld.so.conf; then
16766 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' ' '`
16767 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16768 fi
16769
16770 # We used to test for /lib/ld.so.1 and disable shared libraries on
16771 # powerpc, because MkLinux only supported shared libraries with the
16772 # GNU dynamic linker. Since this was broken with cross compilers,
16773 # most powerpc-linux boxes support dynamic linking these days and
16774 # people can always --disable-shared, the test was removed, and we
16775 # assume the GNU/Linux dynamic linker is in use.
16776 dynamic_linker='GNU/Linux ld.so'
16777 ;;
16778
16779 knetbsd*-gnu)
16780 version_type=linux
16781 need_lib_prefix=no
16782 need_version=no
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 shlibpath_overrides_runpath=no
16787 hardcode_into_libs=yes
16788 dynamic_linker='GNU ld.so'
16789 ;;
16790
16791 netbsd*)
16792 version_type=sunos
16793 need_lib_prefix=no
16794 need_version=no
16795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16798 dynamic_linker='NetBSD (a.out) ld.so'
16799 else
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 dynamic_linker='NetBSD ld.elf_so'
16803 fi
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 hardcode_into_libs=yes
16807 ;;
16808
16809 newsos6)
16810 version_type=linux
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 shlibpath_overrides_runpath=yes
16814 ;;
16815
16816 nto-qnx*)
16817 version_type=linux
16818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=yes
16824 ;;
16825
16826 openbsd*)
16827 version_type=sunos
16828 sys_lib_dlsearch_path_spec="/usr/lib"
16829 need_lib_prefix=no
16830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16831 case $host_os in
16832 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16833 *) need_version=no ;;
16834 esac
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16839 case $host_os in
16840 openbsd2.[89] | openbsd2.[89].*)
16841 shlibpath_overrides_runpath=no
16842 ;;
16843 *)
16844 shlibpath_overrides_runpath=yes
16845 ;;
16846 esac
16847 else
16848 shlibpath_overrides_runpath=yes
16849 fi
16850 ;;
16851
16852 os2*)
16853 libname_spec='$name'
16854 shrext_cmds=".dll"
16855 need_lib_prefix=no
16856 library_names_spec='$libname${shared_ext} $libname.a'
16857 dynamic_linker='OS/2 ld.exe'
16858 shlibpath_var=LIBPATH
16859 ;;
16860
16861 osf3* | osf4* | osf5*)
16862 version_type=osf
16863 need_lib_prefix=no
16864 need_version=no
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 shlibpath_var=LD_LIBRARY_PATH
16868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16870 ;;
16871
16872 solaris*)
16873 version_type=linux
16874 need_lib_prefix=no
16875 need_version=no
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 shlibpath_overrides_runpath=yes
16880 hardcode_into_libs=yes
16881 # ldd complains unless libraries are executable
16882 postinstall_cmds='chmod +x $lib'
16883 ;;
16884
16885 sunos4*)
16886 version_type=sunos
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16888 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 shlibpath_overrides_runpath=yes
16891 if test "$with_gnu_ld" = yes; then
16892 need_lib_prefix=no
16893 fi
16894 need_version=yes
16895 ;;
16896
16897 sysv4 | sysv4.3*)
16898 version_type=linux
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16900 soname_spec='${libname}${release}${shared_ext}$major'
16901 shlibpath_var=LD_LIBRARY_PATH
16902 case $host_vendor in
16903 sni)
16904 shlibpath_overrides_runpath=no
16905 need_lib_prefix=no
16906 export_dynamic_flag_spec='${wl}-Blargedynsym'
16907 runpath_var=LD_RUN_PATH
16908 ;;
16909 siemens)
16910 need_lib_prefix=no
16911 ;;
16912 motorola)
16913 need_lib_prefix=no
16914 need_version=no
16915 shlibpath_overrides_runpath=no
16916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16917 ;;
16918 esac
16919 ;;
16920
16921 sysv4*MP*)
16922 if test -d /usr/nec ;then
16923 version_type=linux
16924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16925 soname_spec='$libname${shared_ext}.$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 fi
16928 ;;
16929
16930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16931 version_type=freebsd-elf
16932 need_lib_prefix=no
16933 need_version=no
16934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16935 soname_spec='${libname}${release}${shared_ext}$major'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 hardcode_into_libs=yes
16938 if test "$with_gnu_ld" = yes; then
16939 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16940 shlibpath_overrides_runpath=no
16941 else
16942 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16943 shlibpath_overrides_runpath=yes
16944 case $host_os in
16945 sco3.2v5*)
16946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16947 ;;
16948 esac
16949 fi
16950 sys_lib_dlsearch_path_spec='/usr/lib'
16951 ;;
16952
16953 uts4*)
16954 version_type=linux
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 shlibpath_var=LD_LIBRARY_PATH
16958 ;;
16959
16960 *)
16961 dynamic_linker=no
16962 ;;
16963 esac
16964 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16965 echo "${ECHO_T}$dynamic_linker" >&6
16966 test "$dynamic_linker" = no && can_build_shared=no
16967
16968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16969 if test "$GCC" = yes; then
16970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16971 fi
16972
16973 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16974 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16975 hardcode_action_F77=
16976 if test -n "$hardcode_libdir_flag_spec_F77" || \
16977 test -n "$runpath_var_F77" || \
16978 test "X$hardcode_automatic_F77" = "Xyes" ; then
16979
16980 # We can hardcode non-existant directories.
16981 if test "$hardcode_direct_F77" != no &&
16982 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16983 # have to relink, otherwise we might link with an installed library
16984 # when we should be linking with a yet-to-be-installed one
16985 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16986 test "$hardcode_minus_L_F77" != no; then
16987 # Linking always hardcodes the temporary library directory.
16988 hardcode_action_F77=relink
16989 else
16990 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16991 hardcode_action_F77=immediate
16992 fi
16993 else
16994 # We cannot hardcode anything, or else we can only hardcode existing
16995 # directories.
16996 hardcode_action_F77=unsupported
16997 fi
16998 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16999 echo "${ECHO_T}$hardcode_action_F77" >&6
17000
17001 if test "$hardcode_action_F77" = relink; then
17002 # Fast installation is not supported
17003 enable_fast_install=no
17004 elif test "$shlibpath_overrides_runpath" = yes ||
17005 test "$enable_shared" = no; then
17006 # Fast installation is not necessary
17007 enable_fast_install=needless
17008 fi
17009
17010
17011 # The else clause should only fire when bootstrapping the
17012 # libtool distribution, otherwise you forgot to ship ltmain.sh
17013 # with your package, and you will get complaints that there are
17014 # no rules to generate ltmain.sh.
17015 if test -f "$ltmain"; then
17016 # See if we are running on zsh, and set the options which allow our commands through
17017 # without removal of \ escapes.
17018 if test -n "${ZSH_VERSION+set}" ; then
17019 setopt NO_GLOB_SUBST
17020 fi
17021 # Now quote all the things that may contain metacharacters while being
17022 # careful not to overquote the AC_SUBSTed values. We take copies of the
17023 # variables and quote the copies for generation of the libtool script.
17024 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17025 SED SHELL STRIP \
17026 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17027 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17028 deplibs_check_method reload_flag reload_cmds need_locks \
17029 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17030 lt_cv_sys_global_symbol_to_c_name_address \
17031 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17032 old_postinstall_cmds old_postuninstall_cmds \
17033 compiler_F77 \
17034 CC_F77 \
17035 LD_F77 \
17036 lt_prog_compiler_wl_F77 \
17037 lt_prog_compiler_pic_F77 \
17038 lt_prog_compiler_static_F77 \
17039 lt_prog_compiler_no_builtin_flag_F77 \
17040 export_dynamic_flag_spec_F77 \
17041 thread_safe_flag_spec_F77 \
17042 whole_archive_flag_spec_F77 \
17043 enable_shared_with_static_runtimes_F77 \
17044 old_archive_cmds_F77 \
17045 old_archive_from_new_cmds_F77 \
17046 predep_objects_F77 \
17047 postdep_objects_F77 \
17048 predeps_F77 \
17049 postdeps_F77 \
17050 compiler_lib_search_path_F77 \
17051 archive_cmds_F77 \
17052 archive_expsym_cmds_F77 \
17053 postinstall_cmds_F77 \
17054 postuninstall_cmds_F77 \
17055 old_archive_from_expsyms_cmds_F77 \
17056 allow_undefined_flag_F77 \
17057 no_undefined_flag_F77 \
17058 export_symbols_cmds_F77 \
17059 hardcode_libdir_flag_spec_F77 \
17060 hardcode_libdir_flag_spec_ld_F77 \
17061 hardcode_libdir_separator_F77 \
17062 hardcode_automatic_F77 \
17063 module_cmds_F77 \
17064 module_expsym_cmds_F77 \
17065 lt_cv_prog_compiler_c_o_F77 \
17066 exclude_expsyms_F77 \
17067 include_expsyms_F77; do
17068
17069 case $var in
17070 old_archive_cmds_F77 | \
17071 old_archive_from_new_cmds_F77 | \
17072 archive_cmds_F77 | \
17073 archive_expsym_cmds_F77 | \
17074 module_cmds_F77 | \
17075 module_expsym_cmds_F77 | \
17076 old_archive_from_expsyms_cmds_F77 | \
17077 export_symbols_cmds_F77 | \
17078 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17079 postinstall_cmds | postuninstall_cmds | \
17080 old_postinstall_cmds | old_postuninstall_cmds | \
17081 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17082 # Double-quote double-evaled strings.
17083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17084 ;;
17085 *)
17086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17087 ;;
17088 esac
17089 done
17090
17091 case $lt_echo in
17092 *'\$0 --fallback-echo"')
17093 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17094 ;;
17095 esac
17096
17097 cfgfile="$ofile"
17098
17099 cat <<__EOF__ >> "$cfgfile"
17100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17101
17102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17103
17104 # Shell to use when invoking shell scripts.
17105 SHELL=$lt_SHELL
17106
17107 # Whether or not to build shared libraries.
17108 build_libtool_libs=$enable_shared
17109
17110 # Whether or not to build static libraries.
17111 build_old_libs=$enable_static
17112
17113 # Whether or not to add -lc for building shared libraries.
17114 build_libtool_need_lc=$archive_cmds_need_lc_F77
17115
17116 # Whether or not to disallow shared libs when runtime libs are static
17117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17118
17119 # Whether or not to optimize for fast installation.
17120 fast_install=$enable_fast_install
17121
17122 # The host system.
17123 host_alias=$host_alias
17124 host=$host
17125 host_os=$host_os
17126
17127 # The build system.
17128 build_alias=$build_alias
17129 build=$build
17130 build_os=$build_os
17131
17132 # An echo program that does not interpret backslashes.
17133 echo=$lt_echo
17134
17135 # The archiver.
17136 AR=$lt_AR
17137 AR_FLAGS=$lt_AR_FLAGS
17138
17139 # A C compiler.
17140 LTCC=$lt_LTCC
17141
17142 # LTCC compiler flags.
17143 LTCFLAGS=$lt_LTCFLAGS
17144
17145 # A language-specific compiler.
17146 CC=$lt_compiler_F77
17147
17148 # Is the compiler the GNU C compiler?
17149 with_gcc=$GCC_F77
17150
17151 # An ERE matcher.
17152 EGREP=$lt_EGREP
17153
17154 # The linker used to build libraries.
17155 LD=$lt_LD_F77
17156
17157 # Whether we need hard or soft links.
17158 LN_S=$lt_LN_S
17159
17160 # A BSD-compatible nm program.
17161 NM=$lt_NM
17162
17163 # A symbol stripping program
17164 STRIP=$lt_STRIP
17165
17166 # Used to examine libraries when file_magic_cmd begins "file"
17167 MAGIC_CMD=$MAGIC_CMD
17168
17169 # Used on cygwin: DLL creation program.
17170 DLLTOOL="$DLLTOOL"
17171
17172 # Used on cygwin: object dumper.
17173 OBJDUMP="$OBJDUMP"
17174
17175 # Used on cygwin: assembler.
17176 AS="$AS"
17177
17178 # The name of the directory that contains temporary libtool files.
17179 objdir=$objdir
17180
17181 # How to create reloadable object files.
17182 reload_flag=$lt_reload_flag
17183 reload_cmds=$lt_reload_cmds
17184
17185 # How to pass a linker flag through the compiler.
17186 wl=$lt_lt_prog_compiler_wl_F77
17187
17188 # Object file suffix (normally "o").
17189 objext="$ac_objext"
17190
17191 # Old archive suffix (normally "a").
17192 libext="$libext"
17193
17194 # Shared library suffix (normally ".so").
17195 shrext_cmds='$shrext_cmds'
17196
17197 # Executable file suffix (normally "").
17198 exeext="$exeext"
17199
17200 # Additional compiler flags for building library objects.
17201 pic_flag=$lt_lt_prog_compiler_pic_F77
17202 pic_mode=$pic_mode
17203
17204 # What is the maximum length of a command?
17205 max_cmd_len=$lt_cv_sys_max_cmd_len
17206
17207 # Does compiler simultaneously support -c and -o options?
17208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17209
17210 # Must we lock files when doing compilation?
17211 need_locks=$lt_need_locks
17212
17213 # Do we need the lib prefix for modules?
17214 need_lib_prefix=$need_lib_prefix
17215
17216 # Do we need a version for libraries?
17217 need_version=$need_version
17218
17219 # Whether dlopen is supported.
17220 dlopen_support=$enable_dlopen
17221
17222 # Whether dlopen of programs is supported.
17223 dlopen_self=$enable_dlopen_self
17224
17225 # Whether dlopen of statically linked programs is supported.
17226 dlopen_self_static=$enable_dlopen_self_static
17227
17228 # Compiler flag to prevent dynamic linking.
17229 link_static_flag=$lt_lt_prog_compiler_static_F77
17230
17231 # Compiler flag to turn off builtin functions.
17232 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17233
17234 # Compiler flag to allow reflexive dlopens.
17235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17236
17237 # Compiler flag to generate shared objects directly from archives.
17238 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17239
17240 # Compiler flag to generate thread-safe objects.
17241 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17242
17243 # Library versioning type.
17244 version_type=$version_type
17245
17246 # Format of library name prefix.
17247 libname_spec=$lt_libname_spec
17248
17249 # List of archive names. First name is the real one, the rest are links.
17250 # The last name is the one that the linker finds with -lNAME.
17251 library_names_spec=$lt_library_names_spec
17252
17253 # The coded name of the library, if different from the real name.
17254 soname_spec=$lt_soname_spec
17255
17256 # Commands used to build and install an old-style archive.
17257 RANLIB=$lt_RANLIB
17258 old_archive_cmds=$lt_old_archive_cmds_F77
17259 old_postinstall_cmds=$lt_old_postinstall_cmds
17260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17261
17262 # Create an old-style archive from a shared archive.
17263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17264
17265 # Create a temporary old-style archive to link instead of a shared archive.
17266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17267
17268 # Commands used to build and install a shared archive.
17269 archive_cmds=$lt_archive_cmds_F77
17270 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17271 postinstall_cmds=$lt_postinstall_cmds
17272 postuninstall_cmds=$lt_postuninstall_cmds
17273
17274 # Commands used to build a loadable module (assumed same as above if empty)
17275 module_cmds=$lt_module_cmds_F77
17276 module_expsym_cmds=$lt_module_expsym_cmds_F77
17277
17278 # Commands to strip libraries.
17279 old_striplib=$lt_old_striplib
17280 striplib=$lt_striplib
17281
17282 # Dependencies to place before the objects being linked to create a
17283 # shared library.
17284 predep_objects=$lt_predep_objects_F77
17285
17286 # Dependencies to place after the objects being linked to create a
17287 # shared library.
17288 postdep_objects=$lt_postdep_objects_F77
17289
17290 # Dependencies to place before the objects being linked to create a
17291 # shared library.
17292 predeps=$lt_predeps_F77
17293
17294 # Dependencies to place after the objects being linked to create a
17295 # shared library.
17296 postdeps=$lt_postdeps_F77
17297
17298 # The library search path used internally by the compiler when linking
17299 # a shared library.
17300 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17301
17302 # Method to check whether dependent libraries are shared objects.
17303 deplibs_check_method=$lt_deplibs_check_method
17304
17305 # Command to use when deplibs_check_method == file_magic.
17306 file_magic_cmd=$lt_file_magic_cmd
17307
17308 # Flag that allows shared libraries with undefined symbols to be built.
17309 allow_undefined_flag=$lt_allow_undefined_flag_F77
17310
17311 # Flag that forces no undefined symbols.
17312 no_undefined_flag=$lt_no_undefined_flag_F77
17313
17314 # Commands used to finish a libtool library installation in a directory.
17315 finish_cmds=$lt_finish_cmds
17316
17317 # Same as above, but a single script fragment to be evaled but not shown.
17318 finish_eval=$lt_finish_eval
17319
17320 # Take the output of nm and produce a listing of raw symbols and C names.
17321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17322
17323 # Transform the output of nm in a proper C declaration
17324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17325
17326 # Transform the output of nm in a C name address pair
17327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17328
17329 # This is the shared library runtime path variable.
17330 runpath_var=$runpath_var
17331
17332 # This is the shared library path variable.
17333 shlibpath_var=$shlibpath_var
17334
17335 # Is shlibpath searched before the hard-coded library search path?
17336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17337
17338 # How to hardcode a shared library path into an executable.
17339 hardcode_action=$hardcode_action_F77
17340
17341 # Whether we should hardcode library paths into libraries.
17342 hardcode_into_libs=$hardcode_into_libs
17343
17344 # Flag to hardcode \$libdir into a binary during linking.
17345 # This must work even if \$libdir does not exist.
17346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17347
17348 # If ld is used when linking, flag to hardcode \$libdir into
17349 # a binary during linking. This must work even if \$libdir does
17350 # not exist.
17351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17352
17353 # Whether we need a single -rpath flag with a separated argument.
17354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17355
17356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17357 # resulting binary.
17358 hardcode_direct=$hardcode_direct_F77
17359
17360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17361 # resulting binary.
17362 hardcode_minus_L=$hardcode_minus_L_F77
17363
17364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17365 # the resulting binary.
17366 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17367
17368 # Set to yes if building a shared library automatically hardcodes DIR into the library
17369 # and all subsequent libraries and executables linked against it.
17370 hardcode_automatic=$hardcode_automatic_F77
17371
17372 # Variables whose values should be saved in libtool wrapper scripts and
17373 # restored at relink time.
17374 variables_saved_for_relink="$variables_saved_for_relink"
17375
17376 # Whether libtool must link a program against all its dependency libraries.
17377 link_all_deplibs=$link_all_deplibs_F77
17378
17379 # Compile-time system search path for libraries
17380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17381
17382 # Run-time system search path for libraries
17383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17384
17385 # Fix the shell variable \$srcfile for the compiler.
17386 fix_srcfile_path="$fix_srcfile_path_F77"
17387
17388 # Set to yes if exported symbols are required.
17389 always_export_symbols=$always_export_symbols_F77
17390
17391 # The commands to list exported symbols.
17392 export_symbols_cmds=$lt_export_symbols_cmds_F77
17393
17394 # The commands to extract the exported symbol list from a shared archive.
17395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17396
17397 # Symbols that should not be listed in the preloaded symbols.
17398 exclude_expsyms=$lt_exclude_expsyms_F77
17399
17400 # Symbols that must always be exported.
17401 include_expsyms=$lt_include_expsyms_F77
17402
17403 # ### END LIBTOOL TAG CONFIG: $tagname
17404
17405 __EOF__
17406
17407
17408 else
17409 # If there is no Makefile yet, we rely on a make rule to execute
17410 # `config.status --recheck' to rerun these tests and create the
17411 # libtool script then.
17412 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17413 if test -f "$ltmain_in"; then
17414 test -f Makefile && make "$ltmain"
17415 fi
17416 fi
17417
17418
17419 ac_ext=c
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424
17425 CC="$lt_save_CC"
17426
17427 else
17428 tagname=""
17429 fi
17430 ;;
17431
17432 GCJ)
17433 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17434
17435
17436
17437 # Source file extension for Java test sources.
17438 ac_ext=java
17439
17440 # Object file extension for compiled Java test sources.
17441 objext=o
17442 objext_GCJ=$objext
17443
17444 # Code to be used in simple compile tests
17445 lt_simple_compile_test_code="class foo {}\n"
17446
17447 # Code to be used in simple link tests
17448 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17449
17450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17451
17452 # If no C compiler was specified, use CC.
17453 LTCC=${LTCC-"$CC"}
17454
17455 # If no C compiler flags were specified, use CFLAGS.
17456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17457
17458 # Allow CC to be a program name with arguments.
17459 compiler=$CC
17460
17461
17462 # save warnings/boilerplate of simple test code
17463 ac_outfile=conftest.$ac_objext
17464 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17465 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17466 _lt_compiler_boilerplate=`cat conftest.err`
17467 $rm conftest*
17468
17469 ac_outfile=conftest.$ac_objext
17470 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17471 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17472 _lt_linker_boilerplate=`cat conftest.err`
17473 $rm conftest*
17474
17475
17476 # Allow CC to be a program name with arguments.
17477 lt_save_CC="$CC"
17478 CC=${GCJ-"gcj"}
17479 compiler=$CC
17480 compiler_GCJ=$CC
17481 for cc_temp in $compiler""; do
17482 case $cc_temp in
17483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17485 \-*) ;;
17486 *) break;;
17487 esac
17488 done
17489 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17490
17491
17492 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17493 archive_cmds_need_lc_GCJ=no
17494
17495 old_archive_cmds_GCJ=$old_archive_cmds
17496
17497 ## CAVEAT EMPTOR:
17498 ## There is no encapsulation within the following macros, do not change
17499 ## the running order or otherwise move them around unless you know exactly
17500 ## what you are doing...
17501
17502 lt_prog_compiler_no_builtin_flag_GCJ=
17503
17504 if test "$GCC" = yes; then
17505 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17506
17507
17508 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17509 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17510 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 lt_cv_prog_compiler_rtti_exceptions=no
17514 ac_outfile=conftest.$ac_objext
17515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17516 lt_compiler_flag="-fno-rtti -fno-exceptions"
17517 # Insert the option either (1) after the last *FLAGS variable, or
17518 # (2) before a word containing "conftest.", or (3) at the end.
17519 # Note that $ac_compile itself does not contain backslashes and begins
17520 # with a dollar sign (not a hyphen), so the echo should work correctly.
17521 # The option is referenced via a variable to avoid confusing sed.
17522 lt_compile=`echo "$ac_compile" | $SED \
17523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17525 -e 's:$: $lt_compiler_flag:'`
17526 (eval echo "\"\$as_me:17526: $lt_compile\"" >&5)
17527 (eval "$lt_compile" 2>conftest.err)
17528 ac_status=$?
17529 cat conftest.err >&5
17530 echo "$as_me:17530: \$? = $ac_status" >&5
17531 if (exit $ac_status) && test -s "$ac_outfile"; then
17532 # The compiler can only warn and ignore the option if not recognized
17533 # So say no if there are warnings other than the usual output.
17534 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17537 lt_cv_prog_compiler_rtti_exceptions=yes
17538 fi
17539 fi
17540 $rm conftest*
17541
17542 fi
17543 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17544 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17545
17546 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17547 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17548 else
17549 :
17550 fi
17551
17552 fi
17553
17554 lt_prog_compiler_wl_GCJ=
17555 lt_prog_compiler_pic_GCJ=
17556 lt_prog_compiler_static_GCJ=
17557
17558 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17559 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17560
17561 if test "$GCC" = yes; then
17562 lt_prog_compiler_wl_GCJ='-Wl,'
17563 lt_prog_compiler_static_GCJ='-static'
17564
17565 case $host_os in
17566 aix*)
17567 # All AIX code is PIC.
17568 if test "$host_cpu" = ia64; then
17569 # AIX 5 now supports IA64 processor
17570 lt_prog_compiler_static_GCJ='-Bstatic'
17571 fi
17572 ;;
17573
17574 amigaos*)
17575 # FIXME: we need at least 68020 code to build shared libraries, but
17576 # adding the `-m68020' flag to GCC prevents building anything better,
17577 # like `-m68040'.
17578 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17579 ;;
17580
17581 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17582 # PIC is the default for these OSes.
17583 ;;
17584
17585 mingw* | pw32* | os2*)
17586 # This hack is so that the source file can tell whether it is being
17587 # built for inclusion in a dll (and should export symbols for example).
17588 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17589 ;;
17590
17591 darwin* | rhapsody*)
17592 # PIC is the default on this platform
17593 # Common symbols not allowed in MH_DYLIB files
17594 lt_prog_compiler_pic_GCJ='-fno-common'
17595 ;;
17596
17597 interix3*)
17598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17599 # Instead, we relocate shared libraries at runtime.
17600 ;;
17601
17602 msdosdjgpp*)
17603 # Just because we use GCC doesn't mean we suddenly get shared libraries
17604 # on systems that don't support them.
17605 lt_prog_compiler_can_build_shared_GCJ=no
17606 enable_shared=no
17607 ;;
17608
17609 sysv4*MP*)
17610 if test -d /usr/nec; then
17611 lt_prog_compiler_pic_GCJ=-Kconform_pic
17612 fi
17613 ;;
17614
17615 hpux*)
17616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17617 # not for PA HP-UX.
17618 case $host_cpu in
17619 hppa*64*|ia64*)
17620 # +Z the default
17621 ;;
17622 *)
17623 lt_prog_compiler_pic_GCJ='-fPIC'
17624 ;;
17625 esac
17626 ;;
17627
17628 *)
17629 lt_prog_compiler_pic_GCJ='-fPIC'
17630 ;;
17631 esac
17632 else
17633 # PORTME Check for flag to pass linker flags through the system compiler.
17634 case $host_os in
17635 aix*)
17636 lt_prog_compiler_wl_GCJ='-Wl,'
17637 if test "$host_cpu" = ia64; then
17638 # AIX 5 now supports IA64 processor
17639 lt_prog_compiler_static_GCJ='-Bstatic'
17640 else
17641 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17642 fi
17643 ;;
17644 darwin*)
17645 # PIC is the default on this platform
17646 # Common symbols not allowed in MH_DYLIB files
17647 case $cc_basename in
17648 xlc*)
17649 lt_prog_compiler_pic_GCJ='-qnocommon'
17650 lt_prog_compiler_wl_GCJ='-Wl,'
17651 ;;
17652 esac
17653 ;;
17654
17655 mingw* | pw32* | os2*)
17656 # This hack is so that the source file can tell whether it is being
17657 # built for inclusion in a dll (and should export symbols for example).
17658 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17659 ;;
17660
17661 hpux9* | hpux10* | hpux11*)
17662 lt_prog_compiler_wl_GCJ='-Wl,'
17663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17664 # not for PA HP-UX.
17665 case $host_cpu in
17666 hppa*64*|ia64*)
17667 # +Z the default
17668 ;;
17669 *)
17670 lt_prog_compiler_pic_GCJ='+Z'
17671 ;;
17672 esac
17673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17674 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17675 ;;
17676
17677 irix5* | irix6* | nonstopux*)
17678 lt_prog_compiler_wl_GCJ='-Wl,'
17679 # PIC (with -KPIC) is the default.
17680 lt_prog_compiler_static_GCJ='-non_shared'
17681 ;;
17682
17683 newsos6)
17684 lt_prog_compiler_pic_GCJ='-KPIC'
17685 lt_prog_compiler_static_GCJ='-Bstatic'
17686 ;;
17687
17688 linux*)
17689 case $cc_basename in
17690 icc* | ecc*)
17691 lt_prog_compiler_wl_GCJ='-Wl,'
17692 lt_prog_compiler_pic_GCJ='-KPIC'
17693 lt_prog_compiler_static_GCJ='-static'
17694 ;;
17695 pgcc* | pgf77* | pgf90* | pgf95*)
17696 # Portland Group compilers (*not* the Pentium gcc compiler,
17697 # which looks to be a dead project)
17698 lt_prog_compiler_wl_GCJ='-Wl,'
17699 lt_prog_compiler_pic_GCJ='-fpic'
17700 lt_prog_compiler_static_GCJ='-Bstatic'
17701 ;;
17702 ccc*)
17703 lt_prog_compiler_wl_GCJ='-Wl,'
17704 # All Alpha code is PIC.
17705 lt_prog_compiler_static_GCJ='-non_shared'
17706 ;;
17707 esac
17708 ;;
17709
17710 osf3* | osf4* | osf5*)
17711 lt_prog_compiler_wl_GCJ='-Wl,'
17712 # All OSF/1 code is PIC.
17713 lt_prog_compiler_static_GCJ='-non_shared'
17714 ;;
17715
17716 solaris*)
17717 lt_prog_compiler_pic_GCJ='-KPIC'
17718 lt_prog_compiler_static_GCJ='-Bstatic'
17719 case $cc_basename in
17720 f77* | f90* | f95*)
17721 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17722 *)
17723 lt_prog_compiler_wl_GCJ='-Wl,';;
17724 esac
17725 ;;
17726
17727 sunos4*)
17728 lt_prog_compiler_wl_GCJ='-Qoption ld '
17729 lt_prog_compiler_pic_GCJ='-PIC'
17730 lt_prog_compiler_static_GCJ='-Bstatic'
17731 ;;
17732
17733 sysv4 | sysv4.2uw2* | sysv4.3*)
17734 lt_prog_compiler_wl_GCJ='-Wl,'
17735 lt_prog_compiler_pic_GCJ='-KPIC'
17736 lt_prog_compiler_static_GCJ='-Bstatic'
17737 ;;
17738
17739 sysv4*MP*)
17740 if test -d /usr/nec ;then
17741 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17742 lt_prog_compiler_static_GCJ='-Bstatic'
17743 fi
17744 ;;
17745
17746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17747 lt_prog_compiler_wl_GCJ='-Wl,'
17748 lt_prog_compiler_pic_GCJ='-KPIC'
17749 lt_prog_compiler_static_GCJ='-Bstatic'
17750 ;;
17751
17752 unicos*)
17753 lt_prog_compiler_wl_GCJ='-Wl,'
17754 lt_prog_compiler_can_build_shared_GCJ=no
17755 ;;
17756
17757 uts4*)
17758 lt_prog_compiler_pic_GCJ='-pic'
17759 lt_prog_compiler_static_GCJ='-Bstatic'
17760 ;;
17761
17762 *)
17763 lt_prog_compiler_can_build_shared_GCJ=no
17764 ;;
17765 esac
17766 fi
17767
17768 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17769 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17770
17771 #
17772 # Check to make sure the PIC flag actually works.
17773 #
17774 if test -n "$lt_prog_compiler_pic_GCJ"; then
17775
17776 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17777 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17778 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781 lt_prog_compiler_pic_works_GCJ=no
17782 ac_outfile=conftest.$ac_objext
17783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17784 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17785 # Insert the option either (1) after the last *FLAGS variable, or
17786 # (2) before a word containing "conftest.", or (3) at the end.
17787 # Note that $ac_compile itself does not contain backslashes and begins
17788 # with a dollar sign (not a hyphen), so the echo should work correctly.
17789 # The option is referenced via a variable to avoid confusing sed.
17790 lt_compile=`echo "$ac_compile" | $SED \
17791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17793 -e 's:$: $lt_compiler_flag:'`
17794 (eval echo "\"\$as_me:17794: $lt_compile\"" >&5)
17795 (eval "$lt_compile" 2>conftest.err)
17796 ac_status=$?
17797 cat conftest.err >&5
17798 echo "$as_me:17798: \$? = $ac_status" >&5
17799 if (exit $ac_status) && test -s "$ac_outfile"; then
17800 # The compiler can only warn and ignore the option if not recognized
17801 # So say no if there are warnings other than the usual output.
17802 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17805 lt_prog_compiler_pic_works_GCJ=yes
17806 fi
17807 fi
17808 $rm conftest*
17809
17810 fi
17811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17812 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17813
17814 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17815 case $lt_prog_compiler_pic_GCJ in
17816 "" | " "*) ;;
17817 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17818 esac
17819 else
17820 lt_prog_compiler_pic_GCJ=
17821 lt_prog_compiler_can_build_shared_GCJ=no
17822 fi
17823
17824 fi
17825 case $host_os in
17826 # For platforms which do not support PIC, -DPIC is meaningless:
17827 *djgpp*)
17828 lt_prog_compiler_pic_GCJ=
17829 ;;
17830 *)
17831 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17832 ;;
17833 esac
17834
17835 #
17836 # Check to make sure the static flag actually works.
17837 #
17838 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17839 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17840 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17841 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844 lt_prog_compiler_static_works_GCJ=no
17845 save_LDFLAGS="$LDFLAGS"
17846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17847 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17849 # The linker can only warn and ignore the option if not recognized
17850 # So say no if there are warnings
17851 if test -s conftest.err; then
17852 # Append any errors to the config.log.
17853 cat conftest.err 1>&5
17854 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17856 if diff conftest.exp conftest.er2 >/dev/null; then
17857 lt_prog_compiler_static_works_GCJ=yes
17858 fi
17859 else
17860 lt_prog_compiler_static_works_GCJ=yes
17861 fi
17862 fi
17863 $rm conftest*
17864 LDFLAGS="$save_LDFLAGS"
17865
17866 fi
17867 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17868 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17869
17870 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17871 :
17872 else
17873 lt_prog_compiler_static_GCJ=
17874 fi
17875
17876
17877 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17878 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17879 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882 lt_cv_prog_compiler_c_o_GCJ=no
17883 $rm -r conftest 2>/dev/null
17884 mkdir conftest
17885 cd conftest
17886 mkdir out
17887 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17888
17889 lt_compiler_flag="-o out/conftest2.$ac_objext"
17890 # Insert the option either (1) after the last *FLAGS variable, or
17891 # (2) before a word containing "conftest.", or (3) at the end.
17892 # Note that $ac_compile itself does not contain backslashes and begins
17893 # with a dollar sign (not a hyphen), so the echo should work correctly.
17894 lt_compile=`echo "$ac_compile" | $SED \
17895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17897 -e 's:$: $lt_compiler_flag:'`
17898 (eval echo "\"\$as_me:17898: $lt_compile\"" >&5)
17899 (eval "$lt_compile" 2>out/conftest.err)
17900 ac_status=$?
17901 cat out/conftest.err >&5
17902 echo "$as_me:17902: \$? = $ac_status" >&5
17903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17904 then
17905 # The compiler can only warn and ignore the option if not recognized
17906 # So say no if there are warnings
17907 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17910 lt_cv_prog_compiler_c_o_GCJ=yes
17911 fi
17912 fi
17913 chmod u+w . 2>&5
17914 $rm conftest*
17915 # SGI C++ compiler will create directory out/ii_files/ for
17916 # template instantiation
17917 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17918 $rm out/* && rmdir out
17919 cd ..
17920 rmdir conftest
17921 $rm conftest*
17922
17923 fi
17924 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17925 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17926
17927
17928 hard_links="nottested"
17929 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17930 # do not overwrite the value of need_locks provided by the user
17931 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17932 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17933 hard_links=yes
17934 $rm conftest*
17935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17936 touch conftest.a
17937 ln conftest.a conftest.b 2>&5 || hard_links=no
17938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17939 echo "$as_me:$LINENO: result: $hard_links" >&5
17940 echo "${ECHO_T}$hard_links" >&6
17941 if test "$hard_links" = no; then
17942 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17943 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17944 need_locks=warn
17945 fi
17946 else
17947 need_locks=no
17948 fi
17949
17950 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17952
17953 runpath_var=
17954 allow_undefined_flag_GCJ=
17955 enable_shared_with_static_runtimes_GCJ=no
17956 archive_cmds_GCJ=
17957 archive_expsym_cmds_GCJ=
17958 old_archive_From_new_cmds_GCJ=
17959 old_archive_from_expsyms_cmds_GCJ=
17960 export_dynamic_flag_spec_GCJ=
17961 whole_archive_flag_spec_GCJ=
17962 thread_safe_flag_spec_GCJ=
17963 hardcode_libdir_flag_spec_GCJ=
17964 hardcode_libdir_flag_spec_ld_GCJ=
17965 hardcode_libdir_separator_GCJ=
17966 hardcode_direct_GCJ=no
17967 hardcode_minus_L_GCJ=no
17968 hardcode_shlibpath_var_GCJ=unsupported
17969 link_all_deplibs_GCJ=unknown
17970 hardcode_automatic_GCJ=no
17971 module_cmds_GCJ=
17972 module_expsym_cmds_GCJ=
17973 always_export_symbols_GCJ=no
17974 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17975 # include_expsyms should be a list of space-separated symbols to be *always*
17976 # included in the symbol list
17977 include_expsyms_GCJ=
17978 # exclude_expsyms can be an extended regexp of symbols to exclude
17979 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17980 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17981 # as well as any symbol that contains `d'.
17982 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17983 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17984 # platforms (ab)use it in PIC code, but their linkers get confused if
17985 # the symbol is explicitly referenced. Since portable code cannot
17986 # rely on this symbol name, it's probably fine to never include it in
17987 # preloaded symbol tables.
17988 extract_expsyms_cmds=
17989 # Just being paranoid about ensuring that cc_basename is set.
17990 for cc_temp in $compiler""; do
17991 case $cc_temp in
17992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17994 \-*) ;;
17995 *) break;;
17996 esac
17997 done
17998 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17999
18000 case $host_os in
18001 cygwin* | mingw* | pw32*)
18002 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18003 # When not using gcc, we currently assume that we are using
18004 # Microsoft Visual C++.
18005 if test "$GCC" != yes; then
18006 with_gnu_ld=no
18007 fi
18008 ;;
18009 interix*)
18010 # we just hope/assume this is gcc and not c89 (= MSVC++)
18011 with_gnu_ld=yes
18012 ;;
18013 openbsd*)
18014 with_gnu_ld=no
18015 ;;
18016 esac
18017
18018 ld_shlibs_GCJ=yes
18019 if test "$with_gnu_ld" = yes; then
18020 # If archive_cmds runs LD, not CC, wlarc should be empty
18021 wlarc='${wl}'
18022
18023 # Set some defaults for GNU ld with shared library support. These
18024 # are reset later if shared libraries are not supported. Putting them
18025 # here allows them to be overridden if necessary.
18026 runpath_var=LD_RUN_PATH
18027 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18028 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18029 # ancient GNU ld didn't support --whole-archive et. al.
18030 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18031 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18032 else
18033 whole_archive_flag_spec_GCJ=
18034 fi
18035 supports_anon_versioning=no
18036 case `$LD -v 2>/dev/null` in
18037 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18038 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18039 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18040 *\ 2.11.*) ;; # other 2.11 versions
18041 *) supports_anon_versioning=yes ;;
18042 esac
18043
18044 # See if GNU ld supports shared libraries.
18045 case $host_os in
18046 aix3* | aix4* | aix5*)
18047 # On AIX/PPC, the GNU linker is very broken
18048 if test "$host_cpu" != ia64; then
18049 ld_shlibs_GCJ=no
18050 cat <<EOF 1>&2
18051
18052 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18053 *** to be unable to reliably create shared libraries on AIX.
18054 *** Therefore, libtool is disabling shared libraries support. If you
18055 *** really care for shared libraries, you may want to modify your PATH
18056 *** so that a non-GNU linker is found, and then restart.
18057
18058 EOF
18059 fi
18060 ;;
18061
18062 amigaos*)
18063 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)'
18064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065 hardcode_minus_L_GCJ=yes
18066
18067 # Samuel A. Falvo II <[email protected]> reports
18068 # that the semantics of dynamic libraries on AmigaOS, at least up
18069 # to version 4, is to share data among multiple programs linked
18070 # with the same dynamic library. Since this doesn't match the
18071 # behavior of shared libraries on other platforms, we can't use
18072 # them.
18073 ld_shlibs_GCJ=no
18074 ;;
18075
18076 beos*)
18077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18078 allow_undefined_flag_GCJ=unsupported
18079 # Joseph Beckenbach <[email protected]> says some releases of gcc
18080 # support --undefined. This deserves some investigation. FIXME
18081 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18082 else
18083 ld_shlibs_GCJ=no
18084 fi
18085 ;;
18086
18087 cygwin* | mingw* | pw32*)
18088 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18089 # as there is no search path for DLLs.
18090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18091 allow_undefined_flag_GCJ=unsupported
18092 always_export_symbols_GCJ=no
18093 enable_shared_with_static_runtimes_GCJ=yes
18094 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18095
18096 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18097 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18098 # If the export-symbols file already is a .def file (1st line
18099 # is EXPORTS), use it as is; otherwise, prepend...
18100 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18101 cp $export_symbols $output_objdir/$soname.def;
18102 else
18103 echo EXPORTS > $output_objdir/$soname.def;
18104 cat $export_symbols >> $output_objdir/$soname.def;
18105 fi~
18106 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18107 else
18108 ld_shlibs_GCJ=no
18109 fi
18110 ;;
18111
18112 interix3*)
18113 hardcode_direct_GCJ=no
18114 hardcode_shlibpath_var_GCJ=no
18115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18116 export_dynamic_flag_spec_GCJ='${wl}-E'
18117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18118 # Instead, shared libraries are loaded at an image base (0x10000000 by
18119 # default) and relocated if they conflict, which is a slow very memory
18120 # consuming and fragmenting process. To avoid this, we pick a random,
18121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18123 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'
18124 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'
18125 ;;
18126
18127 linux*)
18128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18129 tmp_addflag=
18130 case $cc_basename,$host_cpu in
18131 pgcc*) # Portland Group C compiler
18132 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'
18133 tmp_addflag=' $pic_flag'
18134 ;;
18135 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18136 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'
18137 tmp_addflag=' $pic_flag -Mnomain' ;;
18138 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18139 tmp_addflag=' -i_dynamic' ;;
18140 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18141 tmp_addflag=' -i_dynamic -nofor_main' ;;
18142 ifc* | ifort*) # Intel Fortran compiler
18143 tmp_addflag=' -nofor_main' ;;
18144 esac
18145 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18146
18147 if test $supports_anon_versioning = yes; then
18148 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18150 $echo "local: *; };" >> $output_objdir/$libname.ver~
18151 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18152 fi
18153 else
18154 ld_shlibs_GCJ=no
18155 fi
18156 ;;
18157
18158 netbsd*)
18159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18160 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18161 wlarc=
18162 else
18163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18164 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18165 fi
18166 ;;
18167
18168 solaris*)
18169 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18170 ld_shlibs_GCJ=no
18171 cat <<EOF 1>&2
18172
18173 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18174 *** create shared libraries on Solaris systems. Therefore, libtool
18175 *** is disabling shared libraries support. We urge you to upgrade GNU
18176 *** binutils to release 2.9.1 or newer. Another option is to modify
18177 *** your PATH or compiler configuration so that the native linker is
18178 *** used, and then restart.
18179
18180 EOF
18181 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18182 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18183 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18184 else
18185 ld_shlibs_GCJ=no
18186 fi
18187 ;;
18188
18189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18190 case `$LD -v 2>&1` in
18191 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18192 ld_shlibs_GCJ=no
18193 cat <<_LT_EOF 1>&2
18194
18195 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18196 *** reliably create shared libraries on SCO systems. Therefore, libtool
18197 *** is disabling shared libraries support. We urge you to upgrade GNU
18198 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18199 *** your PATH or compiler configuration so that the native linker is
18200 *** used, and then restart.
18201
18202 _LT_EOF
18203 ;;
18204 *)
18205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18206 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18207 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18208 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18209 else
18210 ld_shlibs_GCJ=no
18211 fi
18212 ;;
18213 esac
18214 ;;
18215
18216 sunos4*)
18217 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18218 wlarc=
18219 hardcode_direct_GCJ=yes
18220 hardcode_shlibpath_var_GCJ=no
18221 ;;
18222
18223 *)
18224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18226 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18227 else
18228 ld_shlibs_GCJ=no
18229 fi
18230 ;;
18231 esac
18232
18233 if test "$ld_shlibs_GCJ" = no; then
18234 runpath_var=
18235 hardcode_libdir_flag_spec_GCJ=
18236 export_dynamic_flag_spec_GCJ=
18237 whole_archive_flag_spec_GCJ=
18238 fi
18239 else
18240 # PORTME fill in a description of your system's linker (not GNU ld)
18241 case $host_os in
18242 aix3*)
18243 allow_undefined_flag_GCJ=unsupported
18244 always_export_symbols_GCJ=yes
18245 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'
18246 # Note: this linker hardcodes the directories in LIBPATH if there
18247 # are no directories specified by -L.
18248 hardcode_minus_L_GCJ=yes
18249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18250 # Neither direct hardcoding nor static linking is supported with a
18251 # broken collect2.
18252 hardcode_direct_GCJ=unsupported
18253 fi
18254 ;;
18255
18256 aix4* | aix5*)
18257 if test "$host_cpu" = ia64; then
18258 # On IA64, the linker does run time linking by default, so we don't
18259 # have to do anything special.
18260 aix_use_runtimelinking=no
18261 exp_sym_flag='-Bexport'
18262 no_entry_flag=""
18263 else
18264 # If we're using GNU nm, then we don't want the "-C" option.
18265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18266 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18267 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'
18268 else
18269 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'
18270 fi
18271 aix_use_runtimelinking=no
18272
18273 # Test if we are trying to use run time linking or normal
18274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18275 # need to do runtime linking.
18276 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18277 for ld_flag in $LDFLAGS; do
18278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18279 aix_use_runtimelinking=yes
18280 break
18281 fi
18282 done
18283 ;;
18284 esac
18285
18286 exp_sym_flag='-bexport'
18287 no_entry_flag='-bnoentry'
18288 fi
18289
18290 # When large executables or shared objects are built, AIX ld can
18291 # have problems creating the table of contents. If linking a library
18292 # or program results in "error TOC overflow" add -mminimal-toc to
18293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18295
18296 archive_cmds_GCJ=''
18297 hardcode_direct_GCJ=yes
18298 hardcode_libdir_separator_GCJ=':'
18299 link_all_deplibs_GCJ=yes
18300
18301 if test "$GCC" = yes; then
18302 case $host_os in aix4.[012]|aix4.[012].*)
18303 # We only want to do this on AIX 4.2 and lower, the check
18304 # below for broken collect2 doesn't work under 4.3+
18305 collect2name=`${CC} -print-prog-name=collect2`
18306 if test -f "$collect2name" && \
18307 strings "$collect2name" | grep resolve_lib_name >/dev/null
18308 then
18309 # We have reworked collect2
18310 hardcode_direct_GCJ=yes
18311 else
18312 # We have old collect2
18313 hardcode_direct_GCJ=unsupported
18314 # It fails to find uninstalled libraries when the uninstalled
18315 # path is not listed in the libpath. Setting hardcode_minus_L
18316 # to unsupported forces relinking
18317 hardcode_minus_L_GCJ=yes
18318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18319 hardcode_libdir_separator_GCJ=
18320 fi
18321 ;;
18322 esac
18323 shared_flag='-shared'
18324 if test "$aix_use_runtimelinking" = yes; then
18325 shared_flag="$shared_flag "'${wl}-G'
18326 fi
18327 else
18328 # not using gcc
18329 if test "$host_cpu" = ia64; then
18330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18331 # chokes on -Wl,-G. The following line is correct:
18332 shared_flag='-G'
18333 else
18334 if test "$aix_use_runtimelinking" = yes; then
18335 shared_flag='${wl}-G'
18336 else
18337 shared_flag='${wl}-bM:SRE'
18338 fi
18339 fi
18340 fi
18341
18342 # It seems that -bexpall does not export symbols beginning with
18343 # underscore (_), so it is better to generate a list of symbols to export.
18344 always_export_symbols_GCJ=yes
18345 if test "$aix_use_runtimelinking" = yes; then
18346 # Warning - without using the other runtime loading flags (-brtl),
18347 # -berok will link without error, but may produce a broken library.
18348 allow_undefined_flag_GCJ='-berok'
18349 # Determine the default libpath from the value encoded in an empty executable.
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h. */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356
18357 int
18358 main ()
18359 {
18360
18361 ;
18362 return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag"
18375 || test ! -s conftest.err'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387
18388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18389 }'`
18390 # Check for a 64-bit object if we didn't find anything.
18391 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; }
18392 }'`; fi
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 fi
18398 rm -f conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18401
18402 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18403 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"
18404 else
18405 if test "$host_cpu" = ia64; then
18406 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18407 allow_undefined_flag_GCJ="-z nodefs"
18408 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"
18409 else
18410 # Determine the default libpath from the value encoded in an empty executable.
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h. */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417
18418 int
18419 main ()
18420 {
18421
18422 ;
18423 return 0;
18424 }
18425 _ACEOF
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18428 (eval $ac_link) 2>conftest.er1
18429 ac_status=$?
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag"
18436 || test ! -s conftest.err'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest$ac_exeext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448
18449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18450 }'`
18451 # Check for a 64-bit object if we didn't find anything.
18452 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; }
18453 }'`; fi
18454 else
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 fi
18459 rm -f conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18462
18463 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18464 # Warning - without using the other run time loading flags,
18465 # -berok will link without error, but may produce a broken library.
18466 no_undefined_flag_GCJ=' ${wl}-bernotok'
18467 allow_undefined_flag_GCJ=' ${wl}-berok'
18468 # Exported symbols can be pulled into shared objects from archives
18469 whole_archive_flag_spec_GCJ='$convenience'
18470 archive_cmds_need_lc_GCJ=yes
18471 # This is similar to how AIX traditionally builds its shared libraries.
18472 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'
18473 fi
18474 fi
18475 ;;
18476
18477 amigaos*)
18478 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)'
18479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18480 hardcode_minus_L_GCJ=yes
18481 # see comment about different semantics on the GNU ld section
18482 ld_shlibs_GCJ=no
18483 ;;
18484
18485 bsdi[45]*)
18486 export_dynamic_flag_spec_GCJ=-rdynamic
18487 ;;
18488
18489 cygwin* | mingw* | pw32*)
18490 # When not using gcc, we currently assume that we are using
18491 # Microsoft Visual C++.
18492 # hardcode_libdir_flag_spec is actually meaningless, as there is
18493 # no search path for DLLs.
18494 hardcode_libdir_flag_spec_GCJ=' '
18495 allow_undefined_flag_GCJ=unsupported
18496 # Tell ltmain to make .lib files, not .a files.
18497 libext=lib
18498 # Tell ltmain to make .dll files, not .so files.
18499 shrext_cmds=".dll"
18500 # FIXME: Setting linknames here is a bad hack.
18501 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18502 # The linker will automatically build a .lib file if we build a DLL.
18503 old_archive_From_new_cmds_GCJ='true'
18504 # FIXME: Should let the user specify the lib program.
18505 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18506 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18507 enable_shared_with_static_runtimes_GCJ=yes
18508 ;;
18509
18510 darwin* | rhapsody*)
18511 case $host_os in
18512 rhapsody* | darwin1.[012])
18513 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18514 ;;
18515 *) # Darwin 1.3 on
18516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18517 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18518 else
18519 case ${MACOSX_DEPLOYMENT_TARGET} in
18520 10.[012])
18521 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18522 ;;
18523 10.*)
18524 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18525 ;;
18526 esac
18527 fi
18528 ;;
18529 esac
18530 archive_cmds_need_lc_GCJ=no
18531 hardcode_direct_GCJ=no
18532 hardcode_automatic_GCJ=yes
18533 hardcode_shlibpath_var_GCJ=unsupported
18534 whole_archive_flag_spec_GCJ=''
18535 link_all_deplibs_GCJ=yes
18536 if test "$GCC" = yes ; then
18537 output_verbose_link_cmd='echo'
18538 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18539 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18540 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18541 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}'
18542 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}'
18543 else
18544 case $cc_basename in
18545 xlc*)
18546 output_verbose_link_cmd='echo'
18547 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18548 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18550 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}'
18551 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}'
18552 ;;
18553 *)
18554 ld_shlibs_GCJ=no
18555 ;;
18556 esac
18557 fi
18558 ;;
18559
18560 dgux*)
18561 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18563 hardcode_shlibpath_var_GCJ=no
18564 ;;
18565
18566 freebsd1*)
18567 ld_shlibs_GCJ=no
18568 ;;
18569
18570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18571 # support. Future versions do this automatically, but an explicit c++rt0.o
18572 # does not break anything, and helps significantly (at the cost of a little
18573 # extra space).
18574 freebsd2.2*)
18575 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18576 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18577 hardcode_direct_GCJ=yes
18578 hardcode_shlibpath_var_GCJ=no
18579 ;;
18580
18581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18582 freebsd2*)
18583 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18584 hardcode_direct_GCJ=yes
18585 hardcode_minus_L_GCJ=yes
18586 hardcode_shlibpath_var_GCJ=no
18587 ;;
18588
18589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18590 freebsd* | kfreebsd*-gnu | dragonfly*)
18591 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18593 hardcode_direct_GCJ=yes
18594 hardcode_shlibpath_var_GCJ=no
18595 ;;
18596
18597 hpux9*)
18598 if test "$GCC" = yes; then
18599 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'
18600 else
18601 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'
18602 fi
18603 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18604 hardcode_libdir_separator_GCJ=:
18605 hardcode_direct_GCJ=yes
18606
18607 # hardcode_minus_L: Not really in the search PATH,
18608 # but as the default location of the library.
18609 hardcode_minus_L_GCJ=yes
18610 export_dynamic_flag_spec_GCJ='${wl}-E'
18611 ;;
18612
18613 hpux10*)
18614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18615 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18616 else
18617 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18618 fi
18619 if test "$with_gnu_ld" = no; then
18620 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18621 hardcode_libdir_separator_GCJ=:
18622
18623 hardcode_direct_GCJ=yes
18624 export_dynamic_flag_spec_GCJ='${wl}-E'
18625
18626 # hardcode_minus_L: Not really in the search PATH,
18627 # but as the default location of the library.
18628 hardcode_minus_L_GCJ=yes
18629 fi
18630 ;;
18631
18632 hpux11*)
18633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18634 case $host_cpu in
18635 hppa*64*)
18636 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18637 ;;
18638 ia64*)
18639 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18640 ;;
18641 *)
18642 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18643 ;;
18644 esac
18645 else
18646 case $host_cpu in
18647 hppa*64*)
18648 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18649 ;;
18650 ia64*)
18651 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18652 ;;
18653 *)
18654 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18655 ;;
18656 esac
18657 fi
18658 if test "$with_gnu_ld" = no; then
18659 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18660 hardcode_libdir_separator_GCJ=:
18661
18662 case $host_cpu in
18663 hppa*64*|ia64*)
18664 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18665 hardcode_direct_GCJ=no
18666 hardcode_shlibpath_var_GCJ=no
18667 ;;
18668 *)
18669 hardcode_direct_GCJ=yes
18670 export_dynamic_flag_spec_GCJ='${wl}-E'
18671
18672 # hardcode_minus_L: Not really in the search PATH,
18673 # but as the default location of the library.
18674 hardcode_minus_L_GCJ=yes
18675 ;;
18676 esac
18677 fi
18678 ;;
18679
18680 irix5* | irix6* | nonstopux*)
18681 if test "$GCC" = yes; then
18682 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'
18683 else
18684 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'
18685 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18686 fi
18687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18688 hardcode_libdir_separator_GCJ=:
18689 link_all_deplibs_GCJ=yes
18690 ;;
18691
18692 netbsd*)
18693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18694 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18695 else
18696 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18697 fi
18698 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18699 hardcode_direct_GCJ=yes
18700 hardcode_shlibpath_var_GCJ=no
18701 ;;
18702
18703 newsos6)
18704 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18705 hardcode_direct_GCJ=yes
18706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18707 hardcode_libdir_separator_GCJ=:
18708 hardcode_shlibpath_var_GCJ=no
18709 ;;
18710
18711 openbsd*)
18712 hardcode_direct_GCJ=yes
18713 hardcode_shlibpath_var_GCJ=no
18714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18715 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18716 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18718 export_dynamic_flag_spec_GCJ='${wl}-E'
18719 else
18720 case $host_os in
18721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18722 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18723 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18724 ;;
18725 *)
18726 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18728 ;;
18729 esac
18730 fi
18731 ;;
18732
18733 os2*)
18734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18735 hardcode_minus_L_GCJ=yes
18736 allow_undefined_flag_GCJ=unsupported
18737 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'
18738 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18739 ;;
18740
18741 osf3*)
18742 if test "$GCC" = yes; then
18743 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18744 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'
18745 else
18746 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18747 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'
18748 fi
18749 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18750 hardcode_libdir_separator_GCJ=:
18751 ;;
18752
18753 osf4* | osf5*) # as osf3* with the addition of -msym flag
18754 if test "$GCC" = yes; then
18755 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18756 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'
18757 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18758 else
18759 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18760 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'
18761 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~
18762 $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'
18763
18764 # Both c and cxx compiler support -rpath directly
18765 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18766 fi
18767 hardcode_libdir_separator_GCJ=:
18768 ;;
18769
18770 solaris*)
18771 no_undefined_flag_GCJ=' -z text'
18772 if test "$GCC" = yes; then
18773 wlarc='${wl}'
18774 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18775 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18776 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18777 else
18778 wlarc=''
18779 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18780 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18782 fi
18783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18784 hardcode_shlibpath_var_GCJ=no
18785 case $host_os in
18786 solaris2.[0-5] | solaris2.[0-5].*) ;;
18787 *)
18788 # The compiler driver will combine linker options so we
18789 # cannot just pass the convience library names through
18790 # without $wl, iff we do not link with $LD.
18791 # Luckily, gcc supports the same syntax we need for Sun Studio.
18792 # Supported since Solaris 2.6 (maybe 2.5.1?)
18793 case $wlarc in
18794 '')
18795 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18796 *)
18797 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' ;;
18798 esac ;;
18799 esac
18800 link_all_deplibs_GCJ=yes
18801 ;;
18802
18803 sunos4*)
18804 if test "x$host_vendor" = xsequent; then
18805 # Use $CC to link under sequent, because it throws in some extra .o
18806 # files that make .init and .fini sections work.
18807 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18808 else
18809 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18810 fi
18811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18812 hardcode_direct_GCJ=yes
18813 hardcode_minus_L_GCJ=yes
18814 hardcode_shlibpath_var_GCJ=no
18815 ;;
18816
18817 sysv4)
18818 case $host_vendor in
18819 sni)
18820 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18821 hardcode_direct_GCJ=yes # is this really true???
18822 ;;
18823 siemens)
18824 ## LD is ld it makes a PLAMLIB
18825 ## CC just makes a GrossModule.
18826 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18827 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18828 hardcode_direct_GCJ=no
18829 ;;
18830 motorola)
18831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18832 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18833 ;;
18834 esac
18835 runpath_var='LD_RUN_PATH'
18836 hardcode_shlibpath_var_GCJ=no
18837 ;;
18838
18839 sysv4.3*)
18840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18841 hardcode_shlibpath_var_GCJ=no
18842 export_dynamic_flag_spec_GCJ='-Bexport'
18843 ;;
18844
18845 sysv4*MP*)
18846 if test -d /usr/nec; then
18847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848 hardcode_shlibpath_var_GCJ=no
18849 runpath_var=LD_RUN_PATH
18850 hardcode_runpath_var=yes
18851 ld_shlibs_GCJ=yes
18852 fi
18853 ;;
18854
18855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18856 no_undefined_flag_GCJ='${wl}-z,text'
18857 archive_cmds_need_lc_GCJ=no
18858 hardcode_shlibpath_var_GCJ=no
18859 runpath_var='LD_RUN_PATH'
18860
18861 if test "$GCC" = yes; then
18862 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18863 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18864 else
18865 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18867 fi
18868 ;;
18869
18870 sysv5* | sco3.2v5* | sco5v6*)
18871 # Note: We can NOT use -z defs as we might desire, because we do not
18872 # link with -lc, and that would cause any symbols used from libc to
18873 # always be unresolved, which means just about no library would
18874 # ever link correctly. If we're not using GNU ld we use -z text
18875 # though, which does catch some bad symbols but isn't as heavy-handed
18876 # as -z defs.
18877 no_undefined_flag_GCJ='${wl}-z,text'
18878 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18879 archive_cmds_need_lc_GCJ=no
18880 hardcode_shlibpath_var_GCJ=no
18881 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18882 hardcode_libdir_separator_GCJ=':'
18883 link_all_deplibs_GCJ=yes
18884 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18885 runpath_var='LD_RUN_PATH'
18886
18887 if test "$GCC" = yes; then
18888 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18889 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18890 else
18891 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18892 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18893 fi
18894 ;;
18895
18896 uts4*)
18897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18899 hardcode_shlibpath_var_GCJ=no
18900 ;;
18901
18902 *)
18903 ld_shlibs_GCJ=no
18904 ;;
18905 esac
18906 fi
18907
18908 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18909 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18910 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18911
18912 #
18913 # Do we need to explicitly link libc?
18914 #
18915 case "x$archive_cmds_need_lc_GCJ" in
18916 x|xyes)
18917 # Assume -lc should be added
18918 archive_cmds_need_lc_GCJ=yes
18919
18920 if test "$enable_shared" = yes && test "$GCC" = yes; then
18921 case $archive_cmds_GCJ in
18922 *'~'*)
18923 # FIXME: we may have to deal with multi-command sequences.
18924 ;;
18925 '$CC '*)
18926 # Test whether the compiler implicitly links with -lc since on some
18927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18928 # to ld, don't add -lc before -lgcc.
18929 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18930 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18931 $rm conftest*
18932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18933
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935 (eval $ac_compile) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } 2>conftest.err; then
18939 soname=conftest
18940 lib=conftest
18941 libobjs=conftest.$ac_objext
18942 deplibs=
18943 wl=$lt_prog_compiler_wl_GCJ
18944 pic_flag=$lt_prog_compiler_pic_GCJ
18945 compiler_flags=-v
18946 linker_flags=-v
18947 verstring=
18948 output_objdir=.
18949 libname=conftest
18950 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18951 allow_undefined_flag_GCJ=
18952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18953 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }
18957 then
18958 archive_cmds_need_lc_GCJ=no
18959 else
18960 archive_cmds_need_lc_GCJ=yes
18961 fi
18962 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18963 else
18964 cat conftest.err 1>&5
18965 fi
18966 $rm conftest*
18967 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18968 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18969 ;;
18970 esac
18971 fi
18972 ;;
18973 esac
18974
18975 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18977 library_names_spec=
18978 libname_spec='lib$name'
18979 soname_spec=
18980 shrext_cmds=".so"
18981 postinstall_cmds=
18982 postuninstall_cmds=
18983 finish_cmds=
18984 finish_eval=
18985 shlibpath_var=
18986 shlibpath_overrides_runpath=unknown
18987 version_type=none
18988 dynamic_linker="$host_os ld.so"
18989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18990 if test "$GCC" = yes; then
18991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18993 # if the path contains ";" then we assume it to be the separator
18994 # otherwise default to the standard path separator (i.e. ":") - it is
18995 # assumed that no part of a normal pathname contains ";" but that should
18996 # okay in the real world where ";" in dirpaths is itself problematic.
18997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18998 else
18999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19000 fi
19001 else
19002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19003 fi
19004 need_lib_prefix=unknown
19005 hardcode_into_libs=no
19006
19007 # when you set need_version to no, make sure it does not cause -set_version
19008 # flags to be left without arguments
19009 need_version=unknown
19010
19011 case $host_os in
19012 aix3*)
19013 version_type=linux
19014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19015 shlibpath_var=LIBPATH
19016
19017 # AIX 3 has no versioning support, so we append a major version to the name.
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 ;;
19020
19021 aix4* | aix5*)
19022 version_type=linux
19023 need_lib_prefix=no
19024 need_version=no
19025 hardcode_into_libs=yes
19026 if test "$host_cpu" = ia64; then
19027 # AIX 5 supports IA64
19028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19029 shlibpath_var=LD_LIBRARY_PATH
19030 else
19031 # With GCC up to 2.95.x, collect2 would create an import file
19032 # for dependence libraries. The import file would start with
19033 # the line `#! .'. This would cause the generated library to
19034 # depend on `.', always an invalid library. This was fixed in
19035 # development snapshots of GCC prior to 3.0.
19036 case $host_os in
19037 aix4 | aix4.[01] | aix4.[01].*)
19038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19039 echo ' yes '
19040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19041 :
19042 else
19043 can_build_shared=no
19044 fi
19045 ;;
19046 esac
19047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19048 # soname into executable. Probably we can add versioning support to
19049 # collect2, so additional links can be useful in future.
19050 if test "$aix_use_runtimelinking" = yes; then
19051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19052 # instead of lib<name>.a to let people know that these are not
19053 # typical AIX shared libraries.
19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055 else
19056 # We preserve .a as extension for shared libraries through AIX4.2
19057 # and later when we are not doing run time linking.
19058 library_names_spec='${libname}${release}.a $libname.a'
19059 soname_spec='${libname}${release}${shared_ext}$major'
19060 fi
19061 shlibpath_var=LIBPATH
19062 fi
19063 ;;
19064
19065 amigaos*)
19066 library_names_spec='$libname.ixlibrary $libname.a'
19067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19068 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'
19069 ;;
19070
19071 beos*)
19072 library_names_spec='${libname}${shared_ext}'
19073 dynamic_linker="$host_os ld.so"
19074 shlibpath_var=LIBRARY_PATH
19075 ;;
19076
19077 bsdi[45]*)
19078 version_type=linux
19079 need_version=no
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19081 soname_spec='${libname}${release}${shared_ext}$major'
19082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19086 # the default ld.so.conf also contains /usr/contrib/lib and
19087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19088 # libtool to hard-code these into programs
19089 ;;
19090
19091 cygwin* | mingw* | pw32*)
19092 version_type=windows
19093 shrext_cmds=".dll"
19094 need_version=no
19095 need_lib_prefix=no
19096
19097 case $GCC,$host_os in
19098 yes,cygwin* | yes,mingw* | yes,pw32*)
19099 library_names_spec='$libname.dll.a'
19100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19101 postinstall_cmds='base_file=`basename \${file}`~
19102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19103 dldir=$destdir/`dirname \$dlpath`~
19104 test -d \$dldir || mkdir -p \$dldir~
19105 $install_prog $dir/$dlname \$dldir/$dlname~
19106 chmod a+x \$dldir/$dlname'
19107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19108 dlpath=$dir/\$dldll~
19109 $rm \$dlpath'
19110 shlibpath_overrides_runpath=yes
19111
19112 case $host_os in
19113 cygwin*)
19114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19117 ;;
19118 mingw*)
19119 # MinGW DLLs use traditional 'lib' prefix
19120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19123 # It is most probably a Windows format PATH printed by
19124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19125 # path with ; separators, and with drive letters. We can handle the
19126 # drive letters (cygwin fileutils understands them), so leave them,
19127 # especially as we might pass files found there to a mingw objdump,
19128 # which wouldn't understand a cygwinified path. Ahh.
19129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19130 else
19131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19132 fi
19133 ;;
19134 pw32*)
19135 # pw32 DLLs use 'pw' prefix rather than 'lib'
19136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19137 ;;
19138 esac
19139 ;;
19140
19141 *)
19142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19143 ;;
19144 esac
19145 dynamic_linker='Win32 ld.exe'
19146 # FIXME: first we should search . and the directory the executable is in
19147 shlibpath_var=PATH
19148 ;;
19149
19150 darwin* | rhapsody*)
19151 dynamic_linker="$host_os dyld"
19152 version_type=darwin
19153 need_lib_prefix=no
19154 need_version=no
19155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19156 soname_spec='${libname}${release}${major}$shared_ext'
19157 shlibpath_overrides_runpath=yes
19158 shlibpath_var=DYLD_LIBRARY_PATH
19159 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19161 if test "$GCC" = yes; then
19162 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"`
19163 else
19164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19165 fi
19166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19167 ;;
19168
19169 dgux*)
19170 version_type=linux
19171 need_lib_prefix=no
19172 need_version=no
19173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19174 soname_spec='${libname}${release}${shared_ext}$major'
19175 shlibpath_var=LD_LIBRARY_PATH
19176 ;;
19177
19178 freebsd1*)
19179 dynamic_linker=no
19180 ;;
19181
19182 kfreebsd*-gnu)
19183 version_type=linux
19184 need_lib_prefix=no
19185 need_version=no
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 shlibpath_overrides_runpath=no
19190 hardcode_into_libs=yes
19191 dynamic_linker='GNU ld.so'
19192 ;;
19193
19194 freebsd* | dragonfly*)
19195 # DragonFly does not have aout. When/if they implement a new
19196 # versioning mechanism, adjust this.
19197 if test -x /usr/bin/objformat; then
19198 objformat=`/usr/bin/objformat`
19199 else
19200 case $host_os in
19201 freebsd[123]*) objformat=aout ;;
19202 *) objformat=elf ;;
19203 esac
19204 fi
19205 version_type=freebsd-$objformat
19206 case $version_type in
19207 freebsd-elf*)
19208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19209 need_version=no
19210 need_lib_prefix=no
19211 ;;
19212 freebsd-*)
19213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19214 need_version=yes
19215 ;;
19216 esac
19217 shlibpath_var=LD_LIBRARY_PATH
19218 case $host_os in
19219 freebsd2*)
19220 shlibpath_overrides_runpath=yes
19221 ;;
19222 freebsd3.[01]* | freebsdelf3.[01]*)
19223 shlibpath_overrides_runpath=yes
19224 hardcode_into_libs=yes
19225 ;;
19226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19228 shlibpath_overrides_runpath=no
19229 hardcode_into_libs=yes
19230 ;;
19231 freebsd*) # from 4.6 on
19232 shlibpath_overrides_runpath=yes
19233 hardcode_into_libs=yes
19234 ;;
19235 esac
19236 ;;
19237
19238 gnu*)
19239 version_type=linux
19240 need_lib_prefix=no
19241 need_version=no
19242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19243 soname_spec='${libname}${release}${shared_ext}$major'
19244 shlibpath_var=LD_LIBRARY_PATH
19245 hardcode_into_libs=yes
19246 ;;
19247
19248 hpux9* | hpux10* | hpux11*)
19249 # Give a soname corresponding to the major version so that dld.sl refuses to
19250 # link against other versions.
19251 version_type=sunos
19252 need_lib_prefix=no
19253 need_version=no
19254 case $host_cpu in
19255 ia64*)
19256 shrext_cmds='.so'
19257 hardcode_into_libs=yes
19258 dynamic_linker="$host_os dld.so"
19259 shlibpath_var=LD_LIBRARY_PATH
19260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19262 soname_spec='${libname}${release}${shared_ext}$major'
19263 if test "X$HPUX_IA64_MODE" = X32; then
19264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19265 else
19266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19267 fi
19268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19269 ;;
19270 hppa*64*)
19271 shrext_cmds='.sl'
19272 hardcode_into_libs=yes
19273 dynamic_linker="$host_os dld.sl"
19274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19277 soname_spec='${libname}${release}${shared_ext}$major'
19278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19280 ;;
19281 *)
19282 shrext_cmds='.sl'
19283 dynamic_linker="$host_os dld.sl"
19284 shlibpath_var=SHLIB_PATH
19285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19287 soname_spec='${libname}${release}${shared_ext}$major'
19288 ;;
19289 esac
19290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19291 postinstall_cmds='chmod 555 $lib'
19292 ;;
19293
19294 interix3*)
19295 version_type=linux
19296 need_lib_prefix=no
19297 need_version=no
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath=no
19303 hardcode_into_libs=yes
19304 ;;
19305
19306 irix5* | irix6* | nonstopux*)
19307 case $host_os in
19308 nonstopux*) version_type=nonstopux ;;
19309 *)
19310 if test "$lt_cv_prog_gnu_ld" = yes; then
19311 version_type=linux
19312 else
19313 version_type=irix
19314 fi ;;
19315 esac
19316 need_lib_prefix=no
19317 need_version=no
19318 soname_spec='${libname}${release}${shared_ext}$major'
19319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19320 case $host_os in
19321 irix5* | nonstopux*)
19322 libsuff= shlibsuff=
19323 ;;
19324 *)
19325 case $LD in # libtool.m4 will add one of these switches to LD
19326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19327 libsuff= shlibsuff= libmagic=32-bit;;
19328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19329 libsuff=32 shlibsuff=N32 libmagic=N32;;
19330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19332 *) libsuff= shlibsuff= libmagic=never-match;;
19333 esac
19334 ;;
19335 esac
19336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19337 shlibpath_overrides_runpath=no
19338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19340 hardcode_into_libs=yes
19341 ;;
19342
19343 # No shared lib support for Linux oldld, aout, or coff.
19344 linux*oldld* | linux*aout* | linux*coff*)
19345 dynamic_linker=no
19346 ;;
19347
19348 # This must be Linux ELF.
19349 linux*)
19350 version_type=linux
19351 need_lib_prefix=no
19352 need_version=no
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19356 shlibpath_var=LD_LIBRARY_PATH
19357 shlibpath_overrides_runpath=no
19358 # This implies no fast_install, which is unacceptable.
19359 # Some rework will be needed to allow for fast_install
19360 # before this can be enabled.
19361 hardcode_into_libs=yes
19362
19363 # Append ld.so.conf contents to the search path
19364 if test -f /etc/ld.so.conf; then
19365 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' ' '`
19366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19367 fi
19368
19369 # We used to test for /lib/ld.so.1 and disable shared libraries on
19370 # powerpc, because MkLinux only supported shared libraries with the
19371 # GNU dynamic linker. Since this was broken with cross compilers,
19372 # most powerpc-linux boxes support dynamic linking these days and
19373 # people can always --disable-shared, the test was removed, and we
19374 # assume the GNU/Linux dynamic linker is in use.
19375 dynamic_linker='GNU/Linux ld.so'
19376 ;;
19377
19378 knetbsd*-gnu)
19379 version_type=linux
19380 need_lib_prefix=no
19381 need_version=no
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19383 soname_spec='${libname}${release}${shared_ext}$major'
19384 shlibpath_var=LD_LIBRARY_PATH
19385 shlibpath_overrides_runpath=no
19386 hardcode_into_libs=yes
19387 dynamic_linker='GNU ld.so'
19388 ;;
19389
19390 netbsd*)
19391 version_type=sunos
19392 need_lib_prefix=no
19393 need_version=no
19394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19397 dynamic_linker='NetBSD (a.out) ld.so'
19398 else
19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19400 soname_spec='${libname}${release}${shared_ext}$major'
19401 dynamic_linker='NetBSD ld.elf_so'
19402 fi
19403 shlibpath_var=LD_LIBRARY_PATH
19404 shlibpath_overrides_runpath=yes
19405 hardcode_into_libs=yes
19406 ;;
19407
19408 newsos6)
19409 version_type=linux
19410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19411 shlibpath_var=LD_LIBRARY_PATH
19412 shlibpath_overrides_runpath=yes
19413 ;;
19414
19415 nto-qnx*)
19416 version_type=linux
19417 need_lib_prefix=no
19418 need_version=no
19419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19420 soname_spec='${libname}${release}${shared_ext}$major'
19421 shlibpath_var=LD_LIBRARY_PATH
19422 shlibpath_overrides_runpath=yes
19423 ;;
19424
19425 openbsd*)
19426 version_type=sunos
19427 sys_lib_dlsearch_path_spec="/usr/lib"
19428 need_lib_prefix=no
19429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19430 case $host_os in
19431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19432 *) need_version=no ;;
19433 esac
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19436 shlibpath_var=LD_LIBRARY_PATH
19437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19438 case $host_os in
19439 openbsd2.[89] | openbsd2.[89].*)
19440 shlibpath_overrides_runpath=no
19441 ;;
19442 *)
19443 shlibpath_overrides_runpath=yes
19444 ;;
19445 esac
19446 else
19447 shlibpath_overrides_runpath=yes
19448 fi
19449 ;;
19450
19451 os2*)
19452 libname_spec='$name'
19453 shrext_cmds=".dll"
19454 need_lib_prefix=no
19455 library_names_spec='$libname${shared_ext} $libname.a'
19456 dynamic_linker='OS/2 ld.exe'
19457 shlibpath_var=LIBPATH
19458 ;;
19459
19460 osf3* | osf4* | osf5*)
19461 version_type=osf
19462 need_lib_prefix=no
19463 need_version=no
19464 soname_spec='${libname}${release}${shared_ext}$major'
19465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19466 shlibpath_var=LD_LIBRARY_PATH
19467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19469 ;;
19470
19471 solaris*)
19472 version_type=linux
19473 need_lib_prefix=no
19474 need_version=no
19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19476 soname_spec='${libname}${release}${shared_ext}$major'
19477 shlibpath_var=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath=yes
19479 hardcode_into_libs=yes
19480 # ldd complains unless libraries are executable
19481 postinstall_cmds='chmod +x $lib'
19482 ;;
19483
19484 sunos4*)
19485 version_type=sunos
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19488 shlibpath_var=LD_LIBRARY_PATH
19489 shlibpath_overrides_runpath=yes
19490 if test "$with_gnu_ld" = yes; then
19491 need_lib_prefix=no
19492 fi
19493 need_version=yes
19494 ;;
19495
19496 sysv4 | sysv4.3*)
19497 version_type=linux
19498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19499 soname_spec='${libname}${release}${shared_ext}$major'
19500 shlibpath_var=LD_LIBRARY_PATH
19501 case $host_vendor in
19502 sni)
19503 shlibpath_overrides_runpath=no
19504 need_lib_prefix=no
19505 export_dynamic_flag_spec='${wl}-Blargedynsym'
19506 runpath_var=LD_RUN_PATH
19507 ;;
19508 siemens)
19509 need_lib_prefix=no
19510 ;;
19511 motorola)
19512 need_lib_prefix=no
19513 need_version=no
19514 shlibpath_overrides_runpath=no
19515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19516 ;;
19517 esac
19518 ;;
19519
19520 sysv4*MP*)
19521 if test -d /usr/nec ;then
19522 version_type=linux
19523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19524 soname_spec='$libname${shared_ext}.$major'
19525 shlibpath_var=LD_LIBRARY_PATH
19526 fi
19527 ;;
19528
19529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19530 version_type=freebsd-elf
19531 need_lib_prefix=no
19532 need_version=no
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19534 soname_spec='${libname}${release}${shared_ext}$major'
19535 shlibpath_var=LD_LIBRARY_PATH
19536 hardcode_into_libs=yes
19537 if test "$with_gnu_ld" = yes; then
19538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19539 shlibpath_overrides_runpath=no
19540 else
19541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19542 shlibpath_overrides_runpath=yes
19543 case $host_os in
19544 sco3.2v5*)
19545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19546 ;;
19547 esac
19548 fi
19549 sys_lib_dlsearch_path_spec='/usr/lib'
19550 ;;
19551
19552 uts4*)
19553 version_type=linux
19554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19555 soname_spec='${libname}${release}${shared_ext}$major'
19556 shlibpath_var=LD_LIBRARY_PATH
19557 ;;
19558
19559 *)
19560 dynamic_linker=no
19561 ;;
19562 esac
19563 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19564 echo "${ECHO_T}$dynamic_linker" >&6
19565 test "$dynamic_linker" = no && can_build_shared=no
19566
19567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19568 if test "$GCC" = yes; then
19569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19570 fi
19571
19572 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19574 hardcode_action_GCJ=
19575 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19576 test -n "$runpath_var_GCJ" || \
19577 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19578
19579 # We can hardcode non-existant directories.
19580 if test "$hardcode_direct_GCJ" != no &&
19581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19582 # have to relink, otherwise we might link with an installed library
19583 # when we should be linking with a yet-to-be-installed one
19584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19585 test "$hardcode_minus_L_GCJ" != no; then
19586 # Linking always hardcodes the temporary library directory.
19587 hardcode_action_GCJ=relink
19588 else
19589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19590 hardcode_action_GCJ=immediate
19591 fi
19592 else
19593 # We cannot hardcode anything, or else we can only hardcode existing
19594 # directories.
19595 hardcode_action_GCJ=unsupported
19596 fi
19597 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19598 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19599
19600 if test "$hardcode_action_GCJ" = relink; then
19601 # Fast installation is not supported
19602 enable_fast_install=no
19603 elif test "$shlibpath_overrides_runpath" = yes ||
19604 test "$enable_shared" = no; then
19605 # Fast installation is not necessary
19606 enable_fast_install=needless
19607 fi
19608
19609
19610 # The else clause should only fire when bootstrapping the
19611 # libtool distribution, otherwise you forgot to ship ltmain.sh
19612 # with your package, and you will get complaints that there are
19613 # no rules to generate ltmain.sh.
19614 if test -f "$ltmain"; then
19615 # See if we are running on zsh, and set the options which allow our commands through
19616 # without removal of \ escapes.
19617 if test -n "${ZSH_VERSION+set}" ; then
19618 setopt NO_GLOB_SUBST
19619 fi
19620 # Now quote all the things that may contain metacharacters while being
19621 # careful not to overquote the AC_SUBSTed values. We take copies of the
19622 # variables and quote the copies for generation of the libtool script.
19623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19624 SED SHELL STRIP \
19625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19627 deplibs_check_method reload_flag reload_cmds need_locks \
19628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19629 lt_cv_sys_global_symbol_to_c_name_address \
19630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19631 old_postinstall_cmds old_postuninstall_cmds \
19632 compiler_GCJ \
19633 CC_GCJ \
19634 LD_GCJ \
19635 lt_prog_compiler_wl_GCJ \
19636 lt_prog_compiler_pic_GCJ \
19637 lt_prog_compiler_static_GCJ \
19638 lt_prog_compiler_no_builtin_flag_GCJ \
19639 export_dynamic_flag_spec_GCJ \
19640 thread_safe_flag_spec_GCJ \
19641 whole_archive_flag_spec_GCJ \
19642 enable_shared_with_static_runtimes_GCJ \
19643 old_archive_cmds_GCJ \
19644 old_archive_from_new_cmds_GCJ \
19645 predep_objects_GCJ \
19646 postdep_objects_GCJ \
19647 predeps_GCJ \
19648 postdeps_GCJ \
19649 compiler_lib_search_path_GCJ \
19650 archive_cmds_GCJ \
19651 archive_expsym_cmds_GCJ \
19652 postinstall_cmds_GCJ \
19653 postuninstall_cmds_GCJ \
19654 old_archive_from_expsyms_cmds_GCJ \
19655 allow_undefined_flag_GCJ \
19656 no_undefined_flag_GCJ \
19657 export_symbols_cmds_GCJ \
19658 hardcode_libdir_flag_spec_GCJ \
19659 hardcode_libdir_flag_spec_ld_GCJ \
19660 hardcode_libdir_separator_GCJ \
19661 hardcode_automatic_GCJ \
19662 module_cmds_GCJ \
19663 module_expsym_cmds_GCJ \
19664 lt_cv_prog_compiler_c_o_GCJ \
19665 exclude_expsyms_GCJ \
19666 include_expsyms_GCJ; do
19667
19668 case $var in
19669 old_archive_cmds_GCJ | \
19670 old_archive_from_new_cmds_GCJ | \
19671 archive_cmds_GCJ | \
19672 archive_expsym_cmds_GCJ | \
19673 module_cmds_GCJ | \
19674 module_expsym_cmds_GCJ | \
19675 old_archive_from_expsyms_cmds_GCJ | \
19676 export_symbols_cmds_GCJ | \
19677 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19678 postinstall_cmds | postuninstall_cmds | \
19679 old_postinstall_cmds | old_postuninstall_cmds | \
19680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19681 # Double-quote double-evaled strings.
19682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19683 ;;
19684 *)
19685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19686 ;;
19687 esac
19688 done
19689
19690 case $lt_echo in
19691 *'\$0 --fallback-echo"')
19692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19693 ;;
19694 esac
19695
19696 cfgfile="$ofile"
19697
19698 cat <<__EOF__ >> "$cfgfile"
19699 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19700
19701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19702
19703 # Shell to use when invoking shell scripts.
19704 SHELL=$lt_SHELL
19705
19706 # Whether or not to build shared libraries.
19707 build_libtool_libs=$enable_shared
19708
19709 # Whether or not to build static libraries.
19710 build_old_libs=$enable_static
19711
19712 # Whether or not to add -lc for building shared libraries.
19713 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19714
19715 # Whether or not to disallow shared libs when runtime libs are static
19716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19717
19718 # Whether or not to optimize for fast installation.
19719 fast_install=$enable_fast_install
19720
19721 # The host system.
19722 host_alias=$host_alias
19723 host=$host
19724 host_os=$host_os
19725
19726 # The build system.
19727 build_alias=$build_alias
19728 build=$build
19729 build_os=$build_os
19730
19731 # An echo program that does not interpret backslashes.
19732 echo=$lt_echo
19733
19734 # The archiver.
19735 AR=$lt_AR
19736 AR_FLAGS=$lt_AR_FLAGS
19737
19738 # A C compiler.
19739 LTCC=$lt_LTCC
19740
19741 # LTCC compiler flags.
19742 LTCFLAGS=$lt_LTCFLAGS
19743
19744 # A language-specific compiler.
19745 CC=$lt_compiler_GCJ
19746
19747 # Is the compiler the GNU C compiler?
19748 with_gcc=$GCC_GCJ
19749
19750 # An ERE matcher.
19751 EGREP=$lt_EGREP
19752
19753 # The linker used to build libraries.
19754 LD=$lt_LD_GCJ
19755
19756 # Whether we need hard or soft links.
19757 LN_S=$lt_LN_S
19758
19759 # A BSD-compatible nm program.
19760 NM=$lt_NM
19761
19762 # A symbol stripping program
19763 STRIP=$lt_STRIP
19764
19765 # Used to examine libraries when file_magic_cmd begins "file"
19766 MAGIC_CMD=$MAGIC_CMD
19767
19768 # Used on cygwin: DLL creation program.
19769 DLLTOOL="$DLLTOOL"
19770
19771 # Used on cygwin: object dumper.
19772 OBJDUMP="$OBJDUMP"
19773
19774 # Used on cygwin: assembler.
19775 AS="$AS"
19776
19777 # The name of the directory that contains temporary libtool files.
19778 objdir=$objdir
19779
19780 # How to create reloadable object files.
19781 reload_flag=$lt_reload_flag
19782 reload_cmds=$lt_reload_cmds
19783
19784 # How to pass a linker flag through the compiler.
19785 wl=$lt_lt_prog_compiler_wl_GCJ
19786
19787 # Object file suffix (normally "o").
19788 objext="$ac_objext"
19789
19790 # Old archive suffix (normally "a").
19791 libext="$libext"
19792
19793 # Shared library suffix (normally ".so").
19794 shrext_cmds='$shrext_cmds'
19795
19796 # Executable file suffix (normally "").
19797 exeext="$exeext"
19798
19799 # Additional compiler flags for building library objects.
19800 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19801 pic_mode=$pic_mode
19802
19803 # What is the maximum length of a command?
19804 max_cmd_len=$lt_cv_sys_max_cmd_len
19805
19806 # Does compiler simultaneously support -c and -o options?
19807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19808
19809 # Must we lock files when doing compilation?
19810 need_locks=$lt_need_locks
19811
19812 # Do we need the lib prefix for modules?
19813 need_lib_prefix=$need_lib_prefix
19814
19815 # Do we need a version for libraries?
19816 need_version=$need_version
19817
19818 # Whether dlopen is supported.
19819 dlopen_support=$enable_dlopen
19820
19821 # Whether dlopen of programs is supported.
19822 dlopen_self=$enable_dlopen_self
19823
19824 # Whether dlopen of statically linked programs is supported.
19825 dlopen_self_static=$enable_dlopen_self_static
19826
19827 # Compiler flag to prevent dynamic linking.
19828 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19829
19830 # Compiler flag to turn off builtin functions.
19831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19832
19833 # Compiler flag to allow reflexive dlopens.
19834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19835
19836 # Compiler flag to generate shared objects directly from archives.
19837 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19838
19839 # Compiler flag to generate thread-safe objects.
19840 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19841
19842 # Library versioning type.
19843 version_type=$version_type
19844
19845 # Format of library name prefix.
19846 libname_spec=$lt_libname_spec
19847
19848 # List of archive names. First name is the real one, the rest are links.
19849 # The last name is the one that the linker finds with -lNAME.
19850 library_names_spec=$lt_library_names_spec
19851
19852 # The coded name of the library, if different from the real name.
19853 soname_spec=$lt_soname_spec
19854
19855 # Commands used to build and install an old-style archive.
19856 RANLIB=$lt_RANLIB
19857 old_archive_cmds=$lt_old_archive_cmds_GCJ
19858 old_postinstall_cmds=$lt_old_postinstall_cmds
19859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19860
19861 # Create an old-style archive from a shared archive.
19862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19863
19864 # Create a temporary old-style archive to link instead of a shared archive.
19865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19866
19867 # Commands used to build and install a shared archive.
19868 archive_cmds=$lt_archive_cmds_GCJ
19869 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19870 postinstall_cmds=$lt_postinstall_cmds
19871 postuninstall_cmds=$lt_postuninstall_cmds
19872
19873 # Commands used to build a loadable module (assumed same as above if empty)
19874 module_cmds=$lt_module_cmds_GCJ
19875 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19876
19877 # Commands to strip libraries.
19878 old_striplib=$lt_old_striplib
19879 striplib=$lt_striplib
19880
19881 # Dependencies to place before the objects being linked to create a
19882 # shared library.
19883 predep_objects=$lt_predep_objects_GCJ
19884
19885 # Dependencies to place after the objects being linked to create a
19886 # shared library.
19887 postdep_objects=$lt_postdep_objects_GCJ
19888
19889 # Dependencies to place before the objects being linked to create a
19890 # shared library.
19891 predeps=$lt_predeps_GCJ
19892
19893 # Dependencies to place after the objects being linked to create a
19894 # shared library.
19895 postdeps=$lt_postdeps_GCJ
19896
19897 # The library search path used internally by the compiler when linking
19898 # a shared library.
19899 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19900
19901 # Method to check whether dependent libraries are shared objects.
19902 deplibs_check_method=$lt_deplibs_check_method
19903
19904 # Command to use when deplibs_check_method == file_magic.
19905 file_magic_cmd=$lt_file_magic_cmd
19906
19907 # Flag that allows shared libraries with undefined symbols to be built.
19908 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19909
19910 # Flag that forces no undefined symbols.
19911 no_undefined_flag=$lt_no_undefined_flag_GCJ
19912
19913 # Commands used to finish a libtool library installation in a directory.
19914 finish_cmds=$lt_finish_cmds
19915
19916 # Same as above, but a single script fragment to be evaled but not shown.
19917 finish_eval=$lt_finish_eval
19918
19919 # Take the output of nm and produce a listing of raw symbols and C names.
19920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19921
19922 # Transform the output of nm in a proper C declaration
19923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19924
19925 # Transform the output of nm in a C name address pair
19926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19927
19928 # This is the shared library runtime path variable.
19929 runpath_var=$runpath_var
19930
19931 # This is the shared library path variable.
19932 shlibpath_var=$shlibpath_var
19933
19934 # Is shlibpath searched before the hard-coded library search path?
19935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19936
19937 # How to hardcode a shared library path into an executable.
19938 hardcode_action=$hardcode_action_GCJ
19939
19940 # Whether we should hardcode library paths into libraries.
19941 hardcode_into_libs=$hardcode_into_libs
19942
19943 # Flag to hardcode \$libdir into a binary during linking.
19944 # This must work even if \$libdir does not exist.
19945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19946
19947 # If ld is used when linking, flag to hardcode \$libdir into
19948 # a binary during linking. This must work even if \$libdir does
19949 # not exist.
19950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19951
19952 # Whether we need a single -rpath flag with a separated argument.
19953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19954
19955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19956 # resulting binary.
19957 hardcode_direct=$hardcode_direct_GCJ
19958
19959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19960 # resulting binary.
19961 hardcode_minus_L=$hardcode_minus_L_GCJ
19962
19963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19964 # the resulting binary.
19965 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19966
19967 # Set to yes if building a shared library automatically hardcodes DIR into the library
19968 # and all subsequent libraries and executables linked against it.
19969 hardcode_automatic=$hardcode_automatic_GCJ
19970
19971 # Variables whose values should be saved in libtool wrapper scripts and
19972 # restored at relink time.
19973 variables_saved_for_relink="$variables_saved_for_relink"
19974
19975 # Whether libtool must link a program against all its dependency libraries.
19976 link_all_deplibs=$link_all_deplibs_GCJ
19977
19978 # Compile-time system search path for libraries
19979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19980
19981 # Run-time system search path for libraries
19982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19983
19984 # Fix the shell variable \$srcfile for the compiler.
19985 fix_srcfile_path="$fix_srcfile_path_GCJ"
19986
19987 # Set to yes if exported symbols are required.
19988 always_export_symbols=$always_export_symbols_GCJ
19989
19990 # The commands to list exported symbols.
19991 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19992
19993 # The commands to extract the exported symbol list from a shared archive.
19994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19995
19996 # Symbols that should not be listed in the preloaded symbols.
19997 exclude_expsyms=$lt_exclude_expsyms_GCJ
19998
19999 # Symbols that must always be exported.
20000 include_expsyms=$lt_include_expsyms_GCJ
20001
20002 # ### END LIBTOOL TAG CONFIG: $tagname
20003
20004 __EOF__
20005
20006
20007 else
20008 # If there is no Makefile yet, we rely on a make rule to execute
20009 # `config.status --recheck' to rerun these tests and create the
20010 # libtool script then.
20011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20012 if test -f "$ltmain_in"; then
20013 test -f Makefile && make "$ltmain"
20014 fi
20015 fi
20016
20017
20018 ac_ext=c
20019 ac_cpp='$CPP $CPPFLAGS'
20020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20023
20024 CC="$lt_save_CC"
20025
20026 else
20027 tagname=""
20028 fi
20029 ;;
20030
20031 RC)
20032
20033
20034
20035 # Source file extension for RC test sources.
20036 ac_ext=rc
20037
20038 # Object file extension for compiled RC test sources.
20039 objext=o
20040 objext_RC=$objext
20041
20042 # Code to be used in simple compile tests
20043 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20044
20045 # Code to be used in simple link tests
20046 lt_simple_link_test_code="$lt_simple_compile_test_code"
20047
20048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20049
20050 # If no C compiler was specified, use CC.
20051 LTCC=${LTCC-"$CC"}
20052
20053 # If no C compiler flags were specified, use CFLAGS.
20054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20055
20056 # Allow CC to be a program name with arguments.
20057 compiler=$CC
20058
20059
20060 # save warnings/boilerplate of simple test code
20061 ac_outfile=conftest.$ac_objext
20062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20064 _lt_compiler_boilerplate=`cat conftest.err`
20065 $rm conftest*
20066
20067 ac_outfile=conftest.$ac_objext
20068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20070 _lt_linker_boilerplate=`cat conftest.err`
20071 $rm conftest*
20072
20073
20074 # Allow CC to be a program name with arguments.
20075 lt_save_CC="$CC"
20076 CC=${RC-"windres"}
20077 compiler=$CC
20078 compiler_RC=$CC
20079 for cc_temp in $compiler""; do
20080 case $cc_temp in
20081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20083 \-*) ;;
20084 *) break;;
20085 esac
20086 done
20087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20088
20089 lt_cv_prog_compiler_c_o_RC=yes
20090
20091 # The else clause should only fire when bootstrapping the
20092 # libtool distribution, otherwise you forgot to ship ltmain.sh
20093 # with your package, and you will get complaints that there are
20094 # no rules to generate ltmain.sh.
20095 if test -f "$ltmain"; then
20096 # See if we are running on zsh, and set the options which allow our commands through
20097 # without removal of \ escapes.
20098 if test -n "${ZSH_VERSION+set}" ; then
20099 setopt NO_GLOB_SUBST
20100 fi
20101 # Now quote all the things that may contain metacharacters while being
20102 # careful not to overquote the AC_SUBSTed values. We take copies of the
20103 # variables and quote the copies for generation of the libtool script.
20104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20105 SED SHELL STRIP \
20106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20108 deplibs_check_method reload_flag reload_cmds need_locks \
20109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20110 lt_cv_sys_global_symbol_to_c_name_address \
20111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20112 old_postinstall_cmds old_postuninstall_cmds \
20113 compiler_RC \
20114 CC_RC \
20115 LD_RC \
20116 lt_prog_compiler_wl_RC \
20117 lt_prog_compiler_pic_RC \
20118 lt_prog_compiler_static_RC \
20119 lt_prog_compiler_no_builtin_flag_RC \
20120 export_dynamic_flag_spec_RC \
20121 thread_safe_flag_spec_RC \
20122 whole_archive_flag_spec_RC \
20123 enable_shared_with_static_runtimes_RC \
20124 old_archive_cmds_RC \
20125 old_archive_from_new_cmds_RC \
20126 predep_objects_RC \
20127 postdep_objects_RC \
20128 predeps_RC \
20129 postdeps_RC \
20130 compiler_lib_search_path_RC \
20131 archive_cmds_RC \
20132 archive_expsym_cmds_RC \
20133 postinstall_cmds_RC \
20134 postuninstall_cmds_RC \
20135 old_archive_from_expsyms_cmds_RC \
20136 allow_undefined_flag_RC \
20137 no_undefined_flag_RC \
20138 export_symbols_cmds_RC \
20139 hardcode_libdir_flag_spec_RC \
20140 hardcode_libdir_flag_spec_ld_RC \
20141 hardcode_libdir_separator_RC \
20142 hardcode_automatic_RC \
20143 module_cmds_RC \
20144 module_expsym_cmds_RC \
20145 lt_cv_prog_compiler_c_o_RC \
20146 exclude_expsyms_RC \
20147 include_expsyms_RC; do
20148
20149 case $var in
20150 old_archive_cmds_RC | \
20151 old_archive_from_new_cmds_RC | \
20152 archive_cmds_RC | \
20153 archive_expsym_cmds_RC | \
20154 module_cmds_RC | \
20155 module_expsym_cmds_RC | \
20156 old_archive_from_expsyms_cmds_RC | \
20157 export_symbols_cmds_RC | \
20158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20159 postinstall_cmds | postuninstall_cmds | \
20160 old_postinstall_cmds | old_postuninstall_cmds | \
20161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20162 # Double-quote double-evaled strings.
20163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20164 ;;
20165 *)
20166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20167 ;;
20168 esac
20169 done
20170
20171 case $lt_echo in
20172 *'\$0 --fallback-echo"')
20173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20174 ;;
20175 esac
20176
20177 cfgfile="$ofile"
20178
20179 cat <<__EOF__ >> "$cfgfile"
20180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20181
20182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20183
20184 # Shell to use when invoking shell scripts.
20185 SHELL=$lt_SHELL
20186
20187 # Whether or not to build shared libraries.
20188 build_libtool_libs=$enable_shared
20189
20190 # Whether or not to build static libraries.
20191 build_old_libs=$enable_static
20192
20193 # Whether or not to add -lc for building shared libraries.
20194 build_libtool_need_lc=$archive_cmds_need_lc_RC
20195
20196 # Whether or not to disallow shared libs when runtime libs are static
20197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20198
20199 # Whether or not to optimize for fast installation.
20200 fast_install=$enable_fast_install
20201
20202 # The host system.
20203 host_alias=$host_alias
20204 host=$host
20205 host_os=$host_os
20206
20207 # The build system.
20208 build_alias=$build_alias
20209 build=$build
20210 build_os=$build_os
20211
20212 # An echo program that does not interpret backslashes.
20213 echo=$lt_echo
20214
20215 # The archiver.
20216 AR=$lt_AR
20217 AR_FLAGS=$lt_AR_FLAGS
20218
20219 # A C compiler.
20220 LTCC=$lt_LTCC
20221
20222 # LTCC compiler flags.
20223 LTCFLAGS=$lt_LTCFLAGS
20224
20225 # A language-specific compiler.
20226 CC=$lt_compiler_RC
20227
20228 # Is the compiler the GNU C compiler?
20229 with_gcc=$GCC_RC
20230
20231 # An ERE matcher.
20232 EGREP=$lt_EGREP
20233
20234 # The linker used to build libraries.
20235 LD=$lt_LD_RC
20236
20237 # Whether we need hard or soft links.
20238 LN_S=$lt_LN_S
20239
20240 # A BSD-compatible nm program.
20241 NM=$lt_NM
20242
20243 # A symbol stripping program
20244 STRIP=$lt_STRIP
20245
20246 # Used to examine libraries when file_magic_cmd begins "file"
20247 MAGIC_CMD=$MAGIC_CMD
20248
20249 # Used on cygwin: DLL creation program.
20250 DLLTOOL="$DLLTOOL"
20251
20252 # Used on cygwin: object dumper.
20253 OBJDUMP="$OBJDUMP"
20254
20255 # Used on cygwin: assembler.
20256 AS="$AS"
20257
20258 # The name of the directory that contains temporary libtool files.
20259 objdir=$objdir
20260
20261 # How to create reloadable object files.
20262 reload_flag=$lt_reload_flag
20263 reload_cmds=$lt_reload_cmds
20264
20265 # How to pass a linker flag through the compiler.
20266 wl=$lt_lt_prog_compiler_wl_RC
20267
20268 # Object file suffix (normally "o").
20269 objext="$ac_objext"
20270
20271 # Old archive suffix (normally "a").
20272 libext="$libext"
20273
20274 # Shared library suffix (normally ".so").
20275 shrext_cmds='$shrext_cmds'
20276
20277 # Executable file suffix (normally "").
20278 exeext="$exeext"
20279
20280 # Additional compiler flags for building library objects.
20281 pic_flag=$lt_lt_prog_compiler_pic_RC
20282 pic_mode=$pic_mode
20283
20284 # What is the maximum length of a command?
20285 max_cmd_len=$lt_cv_sys_max_cmd_len
20286
20287 # Does compiler simultaneously support -c and -o options?
20288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20289
20290 # Must we lock files when doing compilation?
20291 need_locks=$lt_need_locks
20292
20293 # Do we need the lib prefix for modules?
20294 need_lib_prefix=$need_lib_prefix
20295
20296 # Do we need a version for libraries?
20297 need_version=$need_version
20298
20299 # Whether dlopen is supported.
20300 dlopen_support=$enable_dlopen
20301
20302 # Whether dlopen of programs is supported.
20303 dlopen_self=$enable_dlopen_self
20304
20305 # Whether dlopen of statically linked programs is supported.
20306 dlopen_self_static=$enable_dlopen_self_static
20307
20308 # Compiler flag to prevent dynamic linking.
20309 link_static_flag=$lt_lt_prog_compiler_static_RC
20310
20311 # Compiler flag to turn off builtin functions.
20312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20313
20314 # Compiler flag to allow reflexive dlopens.
20315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20316
20317 # Compiler flag to generate shared objects directly from archives.
20318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20319
20320 # Compiler flag to generate thread-safe objects.
20321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20322
20323 # Library versioning type.
20324 version_type=$version_type
20325
20326 # Format of library name prefix.
20327 libname_spec=$lt_libname_spec
20328
20329 # List of archive names. First name is the real one, the rest are links.
20330 # The last name is the one that the linker finds with -lNAME.
20331 library_names_spec=$lt_library_names_spec
20332
20333 # The coded name of the library, if different from the real name.
20334 soname_spec=$lt_soname_spec
20335
20336 # Commands used to build and install an old-style archive.
20337 RANLIB=$lt_RANLIB
20338 old_archive_cmds=$lt_old_archive_cmds_RC
20339 old_postinstall_cmds=$lt_old_postinstall_cmds
20340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20341
20342 # Create an old-style archive from a shared archive.
20343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20344
20345 # Create a temporary old-style archive to link instead of a shared archive.
20346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20347
20348 # Commands used to build and install a shared archive.
20349 archive_cmds=$lt_archive_cmds_RC
20350 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20351 postinstall_cmds=$lt_postinstall_cmds
20352 postuninstall_cmds=$lt_postuninstall_cmds
20353
20354 # Commands used to build a loadable module (assumed same as above if empty)
20355 module_cmds=$lt_module_cmds_RC
20356 module_expsym_cmds=$lt_module_expsym_cmds_RC
20357
20358 # Commands to strip libraries.
20359 old_striplib=$lt_old_striplib
20360 striplib=$lt_striplib
20361
20362 # Dependencies to place before the objects being linked to create a
20363 # shared library.
20364 predep_objects=$lt_predep_objects_RC
20365
20366 # Dependencies to place after the objects being linked to create a
20367 # shared library.
20368 postdep_objects=$lt_postdep_objects_RC
20369
20370 # Dependencies to place before the objects being linked to create a
20371 # shared library.
20372 predeps=$lt_predeps_RC
20373
20374 # Dependencies to place after the objects being linked to create a
20375 # shared library.
20376 postdeps=$lt_postdeps_RC
20377
20378 # The library search path used internally by the compiler when linking
20379 # a shared library.
20380 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20381
20382 # Method to check whether dependent libraries are shared objects.
20383 deplibs_check_method=$lt_deplibs_check_method
20384
20385 # Command to use when deplibs_check_method == file_magic.
20386 file_magic_cmd=$lt_file_magic_cmd
20387
20388 # Flag that allows shared libraries with undefined symbols to be built.
20389 allow_undefined_flag=$lt_allow_undefined_flag_RC
20390
20391 # Flag that forces no undefined symbols.
20392 no_undefined_flag=$lt_no_undefined_flag_RC
20393
20394 # Commands used to finish a libtool library installation in a directory.
20395 finish_cmds=$lt_finish_cmds
20396
20397 # Same as above, but a single script fragment to be evaled but not shown.
20398 finish_eval=$lt_finish_eval
20399
20400 # Take the output of nm and produce a listing of raw symbols and C names.
20401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20402
20403 # Transform the output of nm in a proper C declaration
20404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20405
20406 # Transform the output of nm in a C name address pair
20407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20408
20409 # This is the shared library runtime path variable.
20410 runpath_var=$runpath_var
20411
20412 # This is the shared library path variable.
20413 shlibpath_var=$shlibpath_var
20414
20415 # Is shlibpath searched before the hard-coded library search path?
20416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20417
20418 # How to hardcode a shared library path into an executable.
20419 hardcode_action=$hardcode_action_RC
20420
20421 # Whether we should hardcode library paths into libraries.
20422 hardcode_into_libs=$hardcode_into_libs
20423
20424 # Flag to hardcode \$libdir into a binary during linking.
20425 # This must work even if \$libdir does not exist.
20426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20427
20428 # If ld is used when linking, flag to hardcode \$libdir into
20429 # a binary during linking. This must work even if \$libdir does
20430 # not exist.
20431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20432
20433 # Whether we need a single -rpath flag with a separated argument.
20434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20435
20436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20437 # resulting binary.
20438 hardcode_direct=$hardcode_direct_RC
20439
20440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20441 # resulting binary.
20442 hardcode_minus_L=$hardcode_minus_L_RC
20443
20444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20445 # the resulting binary.
20446 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20447
20448 # Set to yes if building a shared library automatically hardcodes DIR into the library
20449 # and all subsequent libraries and executables linked against it.
20450 hardcode_automatic=$hardcode_automatic_RC
20451
20452 # Variables whose values should be saved in libtool wrapper scripts and
20453 # restored at relink time.
20454 variables_saved_for_relink="$variables_saved_for_relink"
20455
20456 # Whether libtool must link a program against all its dependency libraries.
20457 link_all_deplibs=$link_all_deplibs_RC
20458
20459 # Compile-time system search path for libraries
20460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20461
20462 # Run-time system search path for libraries
20463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20464
20465 # Fix the shell variable \$srcfile for the compiler.
20466 fix_srcfile_path="$fix_srcfile_path_RC"
20467
20468 # Set to yes if exported symbols are required.
20469 always_export_symbols=$always_export_symbols_RC
20470
20471 # The commands to list exported symbols.
20472 export_symbols_cmds=$lt_export_symbols_cmds_RC
20473
20474 # The commands to extract the exported symbol list from a shared archive.
20475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20476
20477 # Symbols that should not be listed in the preloaded symbols.
20478 exclude_expsyms=$lt_exclude_expsyms_RC
20479
20480 # Symbols that must always be exported.
20481 include_expsyms=$lt_include_expsyms_RC
20482
20483 # ### END LIBTOOL TAG CONFIG: $tagname
20484
20485 __EOF__
20486
20487
20488 else
20489 # If there is no Makefile yet, we rely on a make rule to execute
20490 # `config.status --recheck' to rerun these tests and create the
20491 # libtool script then.
20492 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20493 if test -f "$ltmain_in"; then
20494 test -f Makefile && make "$ltmain"
20495 fi
20496 fi
20497
20498
20499 ac_ext=c
20500 ac_cpp='$CPP $CPPFLAGS'
20501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504
20505 CC="$lt_save_CC"
20506
20507 ;;
20508
20509 *)
20510 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20511 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20512 { (exit 1); exit 1; }; }
20513 ;;
20514 esac
20515
20516 # Append the new tag name to the list of available tags.
20517 if test -n "$tagname" ; then
20518 available_tags="$available_tags $tagname"
20519 fi
20520 fi
20521 done
20522 IFS="$lt_save_ifs"
20523
20524 # Now substitute the updated list of available tags.
20525 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20526 mv "${ofile}T" "$ofile"
20527 chmod +x "$ofile"
20528 else
20529 rm -f "${ofile}T"
20530 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20531 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20532 { (exit 1); exit 1; }; }
20533 fi
20534 fi
20535
20536
20537
20538 # This can be used to rebuild libtool when needed
20539 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20540
20541 # Always use our own libtool.
20542 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20543
20544 # Prevent multiple expansion
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20557 # AC_REQUIRE([AC_COIN_DLFCN_H])
20558
20559 # NEW: If libtool exists in the directory higher up, we use that one
20560 # instead of creating a new one
20561
20562 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20563 # out in front of this macro body. You'll notice that LIBTOOL is already
20564 # defined here. We'll have to count on this macro not being called if libtool
20565 # already exists, or at least move the libtool fixes outside the conditional.
20566 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20567 # This test is therefore removed. -- lh, 061214 --
20568 # if test "x$LIBTOOL" = x; then
20569
20570 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20581
20582
20583
20584 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20585 echo "$as_me: Build is \"$build\"." >&6;}
20586 # Extract the first word of "dos2unix", so it can be a program name with args.
20587 set dummy dos2unix; ac_word=$2
20588 echo "$as_me:$LINENO: checking for $ac_word" >&5
20589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20590 if test "${ac_cv_prog_dos2unix+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593 if test -n "$dos2unix"; then
20594 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20595 else
20596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20597 for as_dir in $PATH
20598 do
20599 IFS=$as_save_IFS
20600 test -z "$as_dir" && as_dir=.
20601 for ac_exec_ext in '' $ac_executable_extensions; do
20602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20603 ac_cv_prog_dos2unix="dos2unix"
20604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20605 break 2
20606 fi
20607 done
20608 done
20609
20610 fi
20611 fi
20612 dos2unix=$ac_cv_prog_dos2unix
20613 if test -n "$dos2unix"; then
20614 echo "$as_me:$LINENO: result: $dos2unix" >&5
20615 echo "${ECHO_T}$dos2unix" >&6
20616 else
20617 echo "$as_me:$LINENO: result: no" >&5
20618 echo "${ECHO_T}no" >&6
20619 fi
20620
20621 if test "$dos2unix" = dos2unix ; then
20622 mydos2unix="| dos2unix"
20623 fi
20624 case $build in
20625 *-mingw*)
20626 CYGPATH_W=echo
20627 ;;
20628 esac
20629
20630 case $build in
20631 # Here we need to check if -m32 is specified. If so, we need to correct
20632 # sys_lib_search_path_spec
20633 *-cygwin* | *-mingw*)
20634 case "$CXX" in
20635 clang* )
20636 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20637 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20638 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20639 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20640 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20641 -e 's|libext="lib"|libext="a"|' \
20642 libtool > conftest.bla
20643 ;;
20644 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20645 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20646 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20647 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20648 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20649 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20650 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20651 -e 's%lib /OUT:%lib -OUT:%' \
20652 -e "s%cygpath -w%$CYGPATH_W%" \
20653 -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%' \
20654 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20655 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20656 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20657 -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"%' \
20658 libtool > conftest.bla
20659 ;;
20660 *)
20661 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20662 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20663 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20664 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20665 -e 's|libext="lib"|libext="a"|' \
20666 libtool > conftest.bla
20667 ;;
20668 esac
20669 mv conftest.bla libtool
20670 chmod 755 libtool
20671
20672 ;;
20673 *x86_64-*)
20674 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20675 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20676 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20677 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20678 mv conftest.bla libtool
20679 chmod 755 libtool
20680 fi
20681 ;;
20682
20683 *-solaris*)
20684 if test "$GCC" = yes && \
20685 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20686 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20687 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20688 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20689 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20690 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20691 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20692 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20693 # AC_MSG_NOTICE(Compensating for broken gcc)
20694 for lib in $fixlibtmp ; do
20695 if test -d "${lib}${hdwisa}" ; then
20696 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20697 fi
20698 done
20699 syslibpath64="${syslibpath64} ${fixlibtmp}"
20700 else
20701 syslibpath64="$fixlibtmp"
20702 fi
20703 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20704 mv conftest.bla libtool
20705 chmod 755 libtool
20706 fi
20707 # AC_MSG_NOTICE(Result is )
20708 # $EGREP 'sys_lib_search_path_spec=' libtool
20709 fi
20710 ;;
20711 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20712 *-darwin*)
20713 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20714 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20715 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"/' \
20716 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20717 libtool > conftest.bla
20718
20719 mv conftest.bla libtool
20720 chmod 755 libtool
20721 ;;
20722 esac
20723 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20724 # the macro. -- lh, 061214 --
20725 # fi
20726
20727 # AC_MSG_NOTICE([End libtool initialisation.])
20728
20729 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20730 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20731 # of the shared objects
20732 RPATH_FLAGS=
20733
20734 if test $enable_shared = yes; then
20735 case $build in
20736 *-linux-*)
20737 if test "$GXX" = "yes"; then
20738 RPATH_FLAGS=
20739 for dir in $abs_lib_dir; do
20740 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20741 done
20742 fi ;;
20743 *-darwin*)
20744 RPATH_FLAGS=nothing ;;
20745 *-ibm-*)
20746 case "$CXX" in
20747 xlC* | */xlC* | mpxlC* | */mpxlC*)
20748 RPATH_FLAGS=nothing ;;
20749 esac ;;
20750 *-hp-*)
20751 RPATH_FLAGS=nothing ;;
20752 *-mingw32)
20753 RPATH_FLAGS=nothing ;;
20754 *-*-solaris*)
20755 RPATH_FLAGS=
20756 for dir in $abs_lib_dir; do
20757 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20758 done
20759 esac
20760
20761 if test "$RPATH_FLAGS" = ""; then
20762 { 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
20763 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;}
20764 fi
20765 if test "$RPATH_FLAGS" = "nothing"; then
20766 RPATH_FLAGS=
20767 fi
20768 fi
20769
20770
20771
20772
20773 else
20774
20775 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20776 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20777 # get all missing information from the config.log file
20778
20779 # output variables and defines
20780 as_save_IFS=$IFS
20781 IFS='
20782 '
20783 for oneline in `cat $coin_config_dir/config.status`; do
20784 case "$oneline" in
20785 # First some automake conditionals
20786 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20787 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20788 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20789 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20790 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20791 # echo "$command"
20792 eval "$command"
20793 ;;
20794 s,@DEFS@* )
20795 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20796 # echo "$command"
20797 eval "$command"
20798 ;;
20799 esac
20800 done
20801 IFS=$as_save_IFS
20802
20803 # And some defines (assuming here that the packages base dir
20804 # doesn't have a config.h file
20805 for word in $defsline; do
20806 # echo word $word
20807 case $word in
20808 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20809 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20810 # echo dd $i
20811 echo $i >>confdefs.h
20812 ;;
20813 esac
20814 done
20815 fi
20816
20817 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20818
20819 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20820 if test "${enable_dependency_linking+set}" = set; then
20821 enableval="$enable_dependency_linking"
20822 dependency_linking="$enableval"
20823 else
20824 dependency_linking=auto
20825 fi;
20826
20827 if test "$dependency_linking" = auto; then
20828 # On Cygwin and AIX, building DLLs doesn't work
20829 dependency_linking=no
20830 if test x"$coin_disable_shared" = xno; then
20831 case $build in
20832 *-cygwin* | *-mingw*)
20833 case "$CC" in
20834 clang* )
20835 dependency_linking=yes
20836 ;;
20837 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20838 dependency_linking=no
20839 ;;
20840 *gcc*)
20841 dependency_linking=yes
20842 ;;
20843 *)
20844 dependency_linking=yes
20845 ;;
20846 esac
20847 ;;
20848 *)
20849 dependency_linking=yes
20850 ;;
20851 esac
20852 fi
20853 fi
20854
20855 # Set up LT_LDFLAGS, user can initialize and we augment below
20856
20857
20858 if test "$dependency_linking" = yes ;
20859 then
20860 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
20861 else
20862 LT_LDFLAGS="$LT_LDFLAGS"
20863 fi
20864
20865
20866
20867 if test "$dependency_linking" = yes; then
20868 DEPENDENCY_LINKING_TRUE=
20869 DEPENDENCY_LINKING_FALSE='#'
20870 else
20871 DEPENDENCY_LINKING_TRUE='#'
20872 DEPENDENCY_LINKING_FALSE=
20873 fi
20874
20875
20876 # Check if we want to set the library version
20877 echo "$as_me:$LINENO: checking if library version is set" >&5
20878 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20879 if test x"$coin_libversion" != x; then
20880 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20881 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20882 echo "${ECHO_T}$coin_libversion" >&6
20883 else
20884 echo "$as_me:$LINENO: result: no" >&5
20885 echo "${ECHO_T}no" >&6
20886 fi
20887
20888
20889
20890 #END
20891 }
20892 # AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20893
20894
20895 #############################################################################
20896 # Check which subprojects are there #
20897 #############################################################################
20898
20899
20900 echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
20901 echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
20902
20903 coin_has_blas=notGiven
20904 coin_reason=
20905
20906 # check if user wants to skip project in any case
20907
20908 if test x"$COIN_SKIP_PROJECTS" != x; then
20909 for dir in $COIN_SKIP_PROJECTS; do
20910 if test $dir = "Blas"; then
20911 coin_has_blas="no"
20912 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
20913 fi
20914
20915 if test $dir = "ThirdParty/Blas"; then
20916 coin_has_blas="no"
20917 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
20918 fi
20919 done
20920 fi
20921
20922 if test "$coin_has_blas" != no; then
20923
20924 # Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
20925 if test "${with_blas+set}" = set; then
20926 withval="$with_blas"
20927 if test "$withval" = no ; then
20928 coin_has_blas="no"
20929 coin_reason="--without-blas has been specified"
20930 fi
20931
20932 fi;
20933 fi
20934
20935 if test "$coin_has_blas" != no; then
20936
20937 # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
20938 if test "${with_blas_lib+set}" = set; then
20939 withval="$with_blas_lib"
20940 if test "$withval" = no ; then
20941 coin_has_blas="no"
20942 coin_reason="--without-blas-lib has been specified"
20943 else
20944 coin_has_blas="no"
20945 coin_reason="--with-blas-lib has been specified"
20946 fi
20947 fi;
20948 fi
20949
20950 if test "$coin_has_blas" != no; then
20951
20952 # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
20953 if test "${with_blas_incdir+set}" = set; then
20954 withval="$with_blas_incdir"
20955 if test "$withval" = no ; then
20956 coin_has_blas="no"
20957 coin_reason="--without-blas-incdir has been specified"
20958 else
20959 coin_has_blas="no"
20960 coin_reason="--with-blas-incdir has been specified"
20961 fi
20962 fi;
20963 fi
20964
20965 if test "$coin_has_blas" != no; then
20966
20967 # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
20968 if test "${with_blas_datadir+set}" = set; then
20969 withval="$with_blas_datadir"
20970 if test "$withval" = no ; then
20971 coin_has_blas="no"
20972 coin_reason="--without-blas-datadir has been specified"
20973 else
20974 coin_has_blas="no"
20975 coin_reason="--with-blas-datadir has been specified"
20976 fi
20977 fi;
20978 fi
20979
20980
20981 if test $coin_has_blas != no; then
20982 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
20983
20984 # Check whether --with-blas or --without-blas was given.
20985 if test "${with_blas+set}" = set; then
20986 withval="$with_blas"
20987 if test x"$withval" = "xno" ; then
20988 coin_has_blas="no"
20989 coin_reason="--without-blas has been specified"
20990 elif test x"$withval" != "xBUILD" ; then
20991 coin_has_blas="no"
20992 coin_reason="--with-blas has been specified"
20993 fi
20994 fi;
20995 fi
20996
20997
20998
20999
21000 # check if project is available in present directory
21001 if test "$coin_has_blas" = notGiven; then
21002 coin_has_blas=no
21003 if test -d $srcdir/ThirdParty/Blas; then
21004 coin_reason="source in ThirdParty/Blas"
21005 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21006 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21007 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21008 for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21009 if test -r $i; then
21010 coin_has_blas="yes"
21011 else
21012 coin_has_blas="no"
21013 coin_reason="source file $i not available"
21014 break
21015 fi
21016 done
21017
21018 fi
21019 fi
21020
21021 if test -z "$coin_reason" ; then
21022 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21023 echo "${ECHO_T}$coin_has_blas" >&6
21024 else
21025 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21026 echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21027 fi
21028
21029 if test "$coin_has_blas" = yes ; then
21030 if test -r $srcdir/ThirdParty/Blas/configure; then
21031 coin_subdirs="$coin_subdirs ThirdParty/Blas"
21032
21033
21034 subdirs="$subdirs ThirdParty/Blas"
21035
21036 fi
21037 fi
21038
21039
21040 echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21041 echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21042
21043 coin_has_lapack=notGiven
21044 coin_reason=
21045
21046 # check if user wants to skip project in any case
21047
21048 if test x"$COIN_SKIP_PROJECTS" != x; then
21049 for dir in $COIN_SKIP_PROJECTS; do
21050 if test $dir = "Lapack"; then
21051 coin_has_lapack="no"
21052 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21053 fi
21054
21055 if test $dir = "ThirdParty/Lapack"; then
21056 coin_has_lapack="no"
21057 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21058 fi
21059 done
21060 fi
21061
21062 if test "$coin_has_lapack" != no; then
21063
21064 # Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21065 if test "${with_lapack+set}" = set; then
21066 withval="$with_lapack"
21067 if test "$withval" = no ; then
21068 coin_has_lapack="no"
21069 coin_reason="--without-lapack has been specified"
21070 fi
21071
21072 fi;
21073 fi
21074
21075 if test "$coin_has_lapack" != no; then
21076
21077 # Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21078 if test "${with_lapack_lib+set}" = set; then
21079 withval="$with_lapack_lib"
21080 if test "$withval" = no ; then
21081 coin_has_lapack="no"
21082 coin_reason="--without-lapack-lib has been specified"
21083 else
21084 coin_has_lapack="no"
21085 coin_reason="--with-lapack-lib has been specified"
21086 fi
21087 fi;
21088 fi
21089
21090 if test "$coin_has_lapack" != no; then
21091
21092 # Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21093 if test "${with_lapack_incdir+set}" = set; then
21094 withval="$with_lapack_incdir"
21095 if test "$withval" = no ; then
21096 coin_has_lapack="no"
21097 coin_reason="--without-lapack-incdir has been specified"
21098 else
21099 coin_has_lapack="no"
21100 coin_reason="--with-lapack-incdir has been specified"
21101 fi
21102 fi;
21103 fi
21104
21105 if test "$coin_has_lapack" != no; then
21106
21107 # Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21108 if test "${with_lapack_datadir+set}" = set; then
21109 withval="$with_lapack_datadir"
21110 if test "$withval" = no ; then
21111 coin_has_lapack="no"
21112 coin_reason="--without-lapack-datadir has been specified"
21113 else
21114 coin_has_lapack="no"
21115 coin_reason="--with-lapack-datadir has been specified"
21116 fi
21117 fi;
21118 fi
21119
21120
21121
21122
21123 if test $coin_has_lapack != no; then
21124 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21125
21126 # Check whether --with-lapack or --without-lapack was given.
21127 if test "${with_lapack+set}" = set; then
21128 withval="$with_lapack"
21129 if test x"$withval" = "xno" ; then
21130 coin_has_lapack="no"
21131 coin_reason="--without-lapack has been specified"
21132 elif test x"$withval" != "xBUILD" ; then
21133 coin_has_lapack="no"
21134 coin_reason="--with-lapack has been specified"
21135 fi
21136 fi;
21137 fi
21138
21139
21140 # check if project is available in present directory
21141 if test "$coin_has_lapack" = notGiven; then
21142 coin_has_lapack=no
21143 if test -d $srcdir/ThirdParty/Lapack; then
21144 coin_reason="source in ThirdParty/Lapack"
21145 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21146 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21147 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21148 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21149 if test -r $i; then
21150 coin_has_lapack="yes"
21151 else
21152 coin_has_lapack="no"
21153 coin_reason="source file $i not available"
21154 break
21155 fi
21156 done
21157
21158 fi
21159 fi
21160
21161 if test -z "$coin_reason" ; then
21162 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21163 echo "${ECHO_T}$coin_has_lapack" >&6
21164 else
21165 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21166 echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21167 fi
21168
21169 if test "$coin_has_lapack" = yes ; then
21170 if test -r $srcdir/ThirdParty/Lapack/configure; then
21171 coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21172
21173
21174 subdirs="$subdirs ThirdParty/Lapack"
21175
21176 fi
21177 fi
21178
21179
21180 echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
21181 echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
21182
21183 coin_has_glpk=notGiven
21184 coin_reason=
21185
21186 # check if user wants to skip project in any case
21187
21188 if test x"$COIN_SKIP_PROJECTS" != x; then
21189 for dir in $COIN_SKIP_PROJECTS; do
21190 if test $dir = "Glpk"; then
21191 coin_has_glpk="no"
21192 coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
21193 fi
21194
21195 if test $dir = "ThirdParty/Glpk"; then
21196 coin_has_glpk="no"
21197 coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
21198 fi
21199 done
21200 fi
21201
21202 if test "$coin_has_glpk" != no; then
21203
21204 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
21205 if test "${with_glpk+set}" = set; then
21206 withval="$with_glpk"
21207 if test "$withval" = no ; then
21208 coin_has_glpk="no"
21209 coin_reason="--without-glpk has been specified"
21210 fi
21211
21212 fi;
21213 fi
21214
21215 if test "$coin_has_glpk" != no; then
21216
21217 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
21218 if test "${with_glpk_lib+set}" = set; then
21219 withval="$with_glpk_lib"
21220 if test "$withval" = no ; then
21221 coin_has_glpk="no"
21222 coin_reason="--without-glpk-lib has been specified"
21223 else
21224 coin_has_glpk="no"
21225 coin_reason="--with-glpk-lib has been specified"
21226 fi
21227 fi;
21228 fi
21229
21230 if test "$coin_has_glpk" != no; then
21231
21232 # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
21233 if test "${with_glpk_incdir+set}" = set; then
21234 withval="$with_glpk_incdir"
21235 if test "$withval" = no ; then
21236 coin_has_glpk="no"
21237 coin_reason="--without-glpk-incdir has been specified"
21238 else
21239 coin_has_glpk="no"
21240 coin_reason="--with-glpk-incdir has been specified"
21241 fi
21242 fi;
21243 fi
21244
21245 if test "$coin_has_glpk" != no; then
21246
21247 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
21248 if test "${with_glpk_datadir+set}" = set; then
21249 withval="$with_glpk_datadir"
21250 if test "$withval" = no ; then
21251 coin_has_glpk="no"
21252 coin_reason="--without-glpk-datadir has been specified"
21253 else
21254 coin_has_glpk="no"
21255 coin_reason="--with-glpk-datadir has been specified"
21256 fi
21257 fi;
21258 fi
21259
21260
21261
21262
21263
21264 # check if project is available in present directory
21265 if test "$coin_has_glpk" = notGiven; then
21266 coin_has_glpk=no
21267 if test -d $srcdir/ThirdParty/Glpk; then
21268 coin_reason="source in ThirdParty/Glpk"
21269 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21270 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21271 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21272 for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do
21273 if test -r $i; then
21274 coin_has_glpk="yes"
21275 else
21276 coin_has_glpk="no"
21277 coin_reason="source file $i not available"
21278 break
21279 fi
21280 done
21281
21282 fi
21283 fi
21284
21285 if test -z "$coin_reason" ; then
21286 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
21287 echo "${ECHO_T}$coin_has_glpk" >&6
21288 else
21289 echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
21290 echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
21291 fi
21292
21293 if test "$coin_has_glpk" = yes ; then
21294 if test -r $srcdir/ThirdParty/Glpk/configure; then
21295 coin_subdirs="$coin_subdirs ThirdParty/Glpk"
21296
21297
21298 subdirs="$subdirs ThirdParty/Glpk"
21299
21300 fi
21301 fi
21302
21303
21304 echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21305 echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21306
21307 coin_has_sample=notGiven
21308 coin_reason=
21309
21310 # check if user wants to skip project in any case
21311
21312 if test x"$COIN_SKIP_PROJECTS" != x; then
21313 for dir in $COIN_SKIP_PROJECTS; do
21314 if test $dir = "Sample"; then
21315 coin_has_sample="no"
21316 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21317 fi
21318
21319 if test $dir = "Data/Sample"; then
21320 coin_has_sample="no"
21321 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21322 fi
21323 done
21324 fi
21325
21326 if test "$coin_has_sample" != no; then
21327
21328 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21329 if test "${with_sample+set}" = set; then
21330 withval="$with_sample"
21331 if test "$withval" = no ; then
21332 coin_has_sample="no"
21333 coin_reason="--without-sample has been specified"
21334 fi
21335
21336 fi;
21337 fi
21338
21339 if test "$coin_has_sample" != no; then
21340
21341 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21342 if test "${with_sample_lib+set}" = set; then
21343 withval="$with_sample_lib"
21344 if test "$withval" = no ; then
21345 coin_has_sample="no"
21346 coin_reason="--without-sample-lib has been specified"
21347 else
21348 coin_has_sample="no"
21349 coin_reason="--with-sample-lib has been specified"
21350 fi
21351 fi;
21352 fi
21353
21354 if test "$coin_has_sample" != no; then
21355
21356 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21357 if test "${with_sample_incdir+set}" = set; then
21358 withval="$with_sample_incdir"
21359 if test "$withval" = no ; then
21360 coin_has_sample="no"
21361 coin_reason="--without-sample-incdir has been specified"
21362 else
21363 coin_has_sample="no"
21364 coin_reason="--with-sample-incdir has been specified"
21365 fi
21366 fi;
21367 fi
21368
21369 if test "$coin_has_sample" != no; then
21370
21371 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21372 if test "${with_sample_datadir+set}" = set; then
21373 withval="$with_sample_datadir"
21374 if test "$withval" = no ; then
21375 coin_has_sample="no"
21376 coin_reason="--without-sample-datadir has been specified"
21377 else
21378 coin_has_sample="no"
21379 coin_reason="--with-sample-datadir has been specified"
21380 fi
21381 fi;
21382 fi
21383
21384
21385
21386
21387
21388 # check if project is available in present directory
21389 if test "$coin_has_sample" = notGiven; then
21390 coin_has_sample=no
21391 if test -d $srcdir/Data/Sample; then
21392 coin_reason="source in Data/Sample"
21393 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21394 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21395 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21396 coin_has_sample="yes"
21397
21398 fi
21399 fi
21400
21401 if test -z "$coin_reason" ; then
21402 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21403 echo "${ECHO_T}$coin_has_sample" >&6
21404 else
21405 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21406 echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21407 fi
21408
21409 if test "$coin_has_sample" = yes ; then
21410 if test -r $srcdir/Data/Sample/configure; then
21411 coin_subdirs="$coin_subdirs Data/Sample"
21412
21413
21414 subdirs="$subdirs Data/Sample"
21415
21416 fi
21417 fi
21418
21419
21420 echo "$as_me:$LINENO: checking whether source of project miblib3 is available and should be compiled" >&5
21421 echo $ECHO_N "checking whether source of project miblib3 is available and should be compiled... $ECHO_C" >&6
21422
21423 coin_has_miblib3=notGiven
21424 coin_reason=
21425
21426 # check if user wants to skip project in any case
21427
21428 if test x"$COIN_SKIP_PROJECTS" != x; then
21429 for dir in $COIN_SKIP_PROJECTS; do
21430 if test $dir = "miblib3"; then
21431 coin_has_miblib3="no"
21432 coin_reason="miblib3 has been specified in COIN_SKIP_PROJECTS"
21433 fi
21434
21435 if test $dir = "Data/miblib3"; then
21436 coin_has_miblib3="no"
21437 coin_reason="Data/miblib3 has been specified in COIN_SKIP_PROJECTS"
21438 fi
21439 done
21440 fi
21441
21442 if test "$coin_has_miblib3" != no; then
21443
21444 # Check whether --with-m4_tolower(miblib3) or --without-m4_tolower(miblib3) was given.
21445 if test "${with_miblib3+set}" = set; then
21446 withval="$with_miblib3"
21447 if test "$withval" = no ; then
21448 coin_has_miblib3="no"
21449 coin_reason="--without-miblib3 has been specified"
21450 fi
21451
21452 fi;
21453 fi
21454
21455 if test "$coin_has_miblib3" != no; then
21456
21457 # Check whether --with-m4_tolower(miblib3)-lib or --without-m4_tolower(miblib3)-lib was given.
21458 if test "${with_miblib3_lib+set}" = set; then
21459 withval="$with_miblib3_lib"
21460 if test "$withval" = no ; then
21461 coin_has_miblib3="no"
21462 coin_reason="--without-miblib3-lib has been specified"
21463 else
21464 coin_has_miblib3="no"
21465 coin_reason="--with-miblib3-lib has been specified"
21466 fi
21467 fi;
21468 fi
21469
21470 if test "$coin_has_miblib3" != no; then
21471
21472 # Check whether --with-m4_tolower(miblib3)-incdir or --without-m4_tolower(miblib3)-incdir was given.
21473 if test "${with_miblib3_incdir+set}" = set; then
21474 withval="$with_miblib3_incdir"
21475 if test "$withval" = no ; then
21476 coin_has_miblib3="no"
21477 coin_reason="--without-miblib3-incdir has been specified"
21478 else
21479 coin_has_miblib3="no"
21480 coin_reason="--with-miblib3-incdir has been specified"
21481 fi
21482 fi;
21483 fi
21484
21485 if test "$coin_has_miblib3" != no; then
21486
21487 # Check whether --with-m4_tolower(miblib3)-datadir or --without-m4_tolower(miblib3)-datadir was given.
21488 if test "${with_miblib3_datadir+set}" = set; then
21489 withval="$with_miblib3_datadir"
21490 if test "$withval" = no ; then
21491 coin_has_miblib3="no"
21492 coin_reason="--without-miblib3-datadir has been specified"
21493 else
21494 coin_has_miblib3="no"
21495 coin_reason="--with-miblib3-datadir has been specified"
21496 fi
21497 fi;
21498 fi
21499
21500
21501
21502
21503
21504 # check if project is available in present directory
21505 if test "$coin_has_miblib3" = notGiven; then
21506 coin_has_miblib3=no
21507 if test -d $srcdir/Data/miblib3; then
21508 coin_reason="source in Data/miblib3"
21509 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21510 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21511 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21512 coin_has_miblib3="yes"
21513
21514 fi
21515 fi
21516
21517 if test -z "$coin_reason" ; then
21518 echo "$as_me:$LINENO: result: $coin_has_miblib3" >&5
21519 echo "${ECHO_T}$coin_has_miblib3" >&6
21520 else
21521 echo "$as_me:$LINENO: result: $coin_has_miblib3, $coin_reason" >&5
21522 echo "${ECHO_T}$coin_has_miblib3, $coin_reason" >&6
21523 fi
21524
21525 if test "$coin_has_miblib3" = yes ; then
21526 if test -r $srcdir/Data/miblib3/configure; then
21527 coin_subdirs="$coin_subdirs Data/miblib3"
21528
21529
21530 subdirs="$subdirs Data/miblib3"
21531
21532 fi
21533 fi
21534
21535
21536 echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
21537 echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
21538
21539 coin_has_coinutils=notGiven
21540 coin_reason=
21541
21542 # check if user wants to skip project in any case
21543
21544 if test x"$COIN_SKIP_PROJECTS" != x; then
21545 for dir in $COIN_SKIP_PROJECTS; do
21546 if test $dir = "CoinUtils"; then
21547 coin_has_coinutils="no"
21548 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
21549 fi
21550
21551 done
21552 fi
21553
21554 if test "$coin_has_coinutils" != no; then
21555
21556 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
21557 if test "${with_coinutils+set}" = set; then
21558 withval="$with_coinutils"
21559 if test "$withval" = no ; then
21560 coin_has_coinutils="no"
21561 coin_reason="--without-coinutils has been specified"
21562 fi
21563
21564 fi;
21565 fi
21566
21567 if test "$coin_has_coinutils" != no; then
21568
21569 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
21570 if test "${with_coinutils_lib+set}" = set; then
21571 withval="$with_coinutils_lib"
21572 if test "$withval" = no ; then
21573 coin_has_coinutils="no"
21574 coin_reason="--without-coinutils-lib has been specified"
21575 else
21576 coin_has_coinutils="no"
21577 coin_reason="--with-coinutils-lib has been specified"
21578 fi
21579 fi;
21580 fi
21581
21582 if test "$coin_has_coinutils" != no; then
21583
21584 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
21585 if test "${with_coinutils_incdir+set}" = set; then
21586 withval="$with_coinutils_incdir"
21587 if test "$withval" = no ; then
21588 coin_has_coinutils="no"
21589 coin_reason="--without-coinutils-incdir has been specified"
21590 else
21591 coin_has_coinutils="no"
21592 coin_reason="--with-coinutils-incdir has been specified"
21593 fi
21594 fi;
21595 fi
21596
21597 if test "$coin_has_coinutils" != no; then
21598
21599 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
21600 if test "${with_coinutils_datadir+set}" = set; then
21601 withval="$with_coinutils_datadir"
21602 if test "$withval" = no ; then
21603 coin_has_coinutils="no"
21604 coin_reason="--without-coinutils-datadir has been specified"
21605 else
21606 coin_has_coinutils="no"
21607 coin_reason="--with-coinutils-datadir has been specified"
21608 fi
21609 fi;
21610 fi
21611
21612
21613
21614
21615
21616 # check if project is available in present directory
21617 if test "$coin_has_coinutils" = notGiven; then
21618 coin_has_coinutils=no
21619 if test -d $srcdir/CoinUtils; then
21620 coin_reason="source in CoinUtils"
21621 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21622 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21623 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21624 coin_has_coinutils="yes"
21625
21626 fi
21627 fi
21628
21629 if test -z "$coin_reason" ; then
21630 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21631 echo "${ECHO_T}$coin_has_coinutils" >&6
21632 else
21633 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
21634 echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
21635 fi
21636
21637 if test "$coin_has_coinutils" = yes ; then
21638 if test -r $srcdir/CoinUtils/configure; then
21639 coin_subdirs="$coin_subdirs CoinUtils"
21640
21641
21642 subdirs="$subdirs CoinUtils"
21643
21644 fi
21645 fi
21646
21647
21648 echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21649 echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21650
21651 coin_has_osi=notGiven
21652 coin_reason=
21653
21654 # check if user wants to skip project in any case
21655
21656 if test x"$COIN_SKIP_PROJECTS" != x; then
21657 for dir in $COIN_SKIP_PROJECTS; do
21658 if test $dir = "Osi"; then
21659 coin_has_osi="no"
21660 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21661 fi
21662
21663 done
21664 fi
21665
21666 if test "$coin_has_osi" != no; then
21667
21668 # Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21669 if test "${with_osi+set}" = set; then
21670 withval="$with_osi"
21671 if test "$withval" = no ; then
21672 coin_has_osi="no"
21673 coin_reason="--without-osi has been specified"
21674 fi
21675
21676 fi;
21677 fi
21678
21679 if test "$coin_has_osi" != no; then
21680
21681 # Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21682 if test "${with_osi_lib+set}" = set; then
21683 withval="$with_osi_lib"
21684 if test "$withval" = no ; then
21685 coin_has_osi="no"
21686 coin_reason="--without-osi-lib has been specified"
21687 else
21688 coin_has_osi="no"
21689 coin_reason="--with-osi-lib has been specified"
21690 fi
21691 fi;
21692 fi
21693
21694 if test "$coin_has_osi" != no; then
21695
21696 # Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21697 if test "${with_osi_incdir+set}" = set; then
21698 withval="$with_osi_incdir"
21699 if test "$withval" = no ; then
21700 coin_has_osi="no"
21701 coin_reason="--without-osi-incdir has been specified"
21702 else
21703 coin_has_osi="no"
21704 coin_reason="--with-osi-incdir has been specified"
21705 fi
21706 fi;
21707 fi
21708
21709 if test "$coin_has_osi" != no; then
21710
21711 # Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21712 if test "${with_osi_datadir+set}" = set; then
21713 withval="$with_osi_datadir"
21714 if test "$withval" = no ; then
21715 coin_has_osi="no"
21716 coin_reason="--without-osi-datadir has been specified"
21717 else
21718 coin_has_osi="no"
21719 coin_reason="--with-osi-datadir has been specified"
21720 fi
21721 fi;
21722 fi
21723
21724
21725
21726
21727
21728 # check if project is available in present directory
21729 if test "$coin_has_osi" = notGiven; then
21730 coin_has_osi=no
21731 if test -d $srcdir/Osi; then
21732 coin_reason="source in Osi"
21733 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21734 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21735 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21736 coin_has_osi="yes"
21737
21738 fi
21739 fi
21740
21741 if test -z "$coin_reason" ; then
21742 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21743 echo "${ECHO_T}$coin_has_osi" >&6
21744 else
21745 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21746 echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21747 fi
21748
21749 if test "$coin_has_osi" = yes ; then
21750 if test -r $srcdir/Osi/configure; then
21751 coin_subdirs="$coin_subdirs Osi"
21752
21753
21754 subdirs="$subdirs Osi"
21755
21756 fi
21757 fi
21758
21759
21760 echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
21761 echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
21762
21763 coin_has_clp=notGiven
21764 coin_reason=
21765
21766 # check if user wants to skip project in any case
21767
21768 if test x"$COIN_SKIP_PROJECTS" != x; then
21769 for dir in $COIN_SKIP_PROJECTS; do
21770 if test $dir = "Clp"; then
21771 coin_has_clp="no"
21772 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
21773 fi
21774
21775 done
21776 fi
21777
21778 if test "$coin_has_clp" != no; then
21779
21780 # Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
21781 if test "${with_clp+set}" = set; then
21782 withval="$with_clp"
21783 if test "$withval" = no ; then
21784 coin_has_clp="no"
21785 coin_reason="--without-clp has been specified"
21786 fi
21787
21788 fi;
21789 fi
21790
21791 if test "$coin_has_clp" != no; then
21792
21793 # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
21794 if test "${with_clp_lib+set}" = set; then
21795 withval="$with_clp_lib"
21796 if test "$withval" = no ; then
21797 coin_has_clp="no"
21798 coin_reason="--without-clp-lib has been specified"
21799 else
21800 coin_has_clp="no"
21801 coin_reason="--with-clp-lib has been specified"
21802 fi
21803 fi;
21804 fi
21805
21806 if test "$coin_has_clp" != no; then
21807
21808 # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
21809 if test "${with_clp_incdir+set}" = set; then
21810 withval="$with_clp_incdir"
21811 if test "$withval" = no ; then
21812 coin_has_clp="no"
21813 coin_reason="--without-clp-incdir has been specified"
21814 else
21815 coin_has_clp="no"
21816 coin_reason="--with-clp-incdir has been specified"
21817 fi
21818 fi;
21819 fi
21820
21821 if test "$coin_has_clp" != no; then
21822
21823 # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
21824 if test "${with_clp_datadir+set}" = set; then
21825 withval="$with_clp_datadir"
21826 if test "$withval" = no ; then
21827 coin_has_clp="no"
21828 coin_reason="--without-clp-datadir has been specified"
21829 else
21830 coin_has_clp="no"
21831 coin_reason="--with-clp-datadir has been specified"
21832 fi
21833 fi;
21834 fi
21835
21836
21837
21838
21839
21840 # check if project is available in present directory
21841 if test "$coin_has_clp" = notGiven; then
21842 coin_has_clp=no
21843 if test -d $srcdir/Clp; then
21844 coin_reason="source in Clp"
21845 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21846 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21847 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21848 coin_has_clp="yes"
21849
21850 fi
21851 fi
21852
21853 if test -z "$coin_reason" ; then
21854 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
21855 echo "${ECHO_T}$coin_has_clp" >&6
21856 else
21857 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
21858 echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
21859 fi
21860
21861 if test "$coin_has_clp" = yes ; then
21862 if test -r $srcdir/Clp/configure; then
21863 coin_subdirs="$coin_subdirs Clp"
21864
21865
21866 subdirs="$subdirs Clp"
21867
21868 fi
21869 fi
21870
21871
21872 echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5
21873 echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6
21874
21875 coin_has_cgl=notGiven
21876 coin_reason=
21877
21878 # check if user wants to skip project in any case
21879
21880 if test x"$COIN_SKIP_PROJECTS" != x; then
21881 for dir in $COIN_SKIP_PROJECTS; do
21882 if test $dir = "Cgl"; then
21883 coin_has_cgl="no"
21884 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS"
21885 fi
21886
21887 done
21888 fi
21889
21890 if test "$coin_has_cgl" != no; then
21891
21892 # Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
21893 if test "${with_cgl+set}" = set; then
21894 withval="$with_cgl"
21895 if test "$withval" = no ; then
21896 coin_has_cgl="no"
21897 coin_reason="--without-cgl has been specified"
21898 fi
21899
21900 fi;
21901 fi
21902
21903 if test "$coin_has_cgl" != no; then
21904
21905 # Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
21906 if test "${with_cgl_lib+set}" = set; then
21907 withval="$with_cgl_lib"
21908 if test "$withval" = no ; then
21909 coin_has_cgl="no"
21910 coin_reason="--without-cgl-lib has been specified"
21911 else
21912 coin_has_cgl="no"
21913 coin_reason="--with-cgl-lib has been specified"
21914 fi
21915 fi;
21916 fi
21917
21918 if test "$coin_has_cgl" != no; then
21919
21920 # Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
21921 if test "${with_cgl_incdir+set}" = set; then
21922 withval="$with_cgl_incdir"
21923 if test "$withval" = no ; then
21924 coin_has_cgl="no"
21925 coin_reason="--without-cgl-incdir has been specified"
21926 else
21927 coin_has_cgl="no"
21928 coin_reason="--with-cgl-incdir has been specified"
21929 fi
21930 fi;
21931 fi
21932
21933 if test "$coin_has_cgl" != no; then
21934
21935 # Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
21936 if test "${with_cgl_datadir+set}" = set; then
21937 withval="$with_cgl_datadir"
21938 if test "$withval" = no ; then
21939 coin_has_cgl="no"
21940 coin_reason="--without-cgl-datadir has been specified"
21941 else
21942 coin_has_cgl="no"
21943 coin_reason="--with-cgl-datadir has been specified"
21944 fi
21945 fi;
21946 fi
21947
21948
21949
21950
21951
21952 # check if project is available in present directory
21953 if test "$coin_has_cgl" = notGiven; then
21954 coin_has_cgl=no
21955 if test -d $srcdir/Cgl; then
21956 coin_reason="source in Cgl"
21957 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21958 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21959 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21960 coin_has_cgl="yes"
21961
21962 fi
21963 fi
21964
21965 if test -z "$coin_reason" ; then
21966 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
21967 echo "${ECHO_T}$coin_has_cgl" >&6
21968 else
21969 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5
21970 echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6
21971 fi
21972
21973 if test "$coin_has_cgl" = yes ; then
21974 if test -r $srcdir/Cgl/configure; then
21975 coin_subdirs="$coin_subdirs Cgl"
21976
21977
21978 subdirs="$subdirs Cgl"
21979
21980 fi
21981 fi
21982
21983
21984 echo "$as_me:$LINENO: checking whether source of project DyLP is available and should be compiled" >&5
21985 echo $ECHO_N "checking whether source of project DyLP is available and should be compiled... $ECHO_C" >&6
21986
21987 coin_has_dylp=notGiven
21988 coin_reason=
21989
21990 # check if user wants to skip project in any case
21991
21992 if test x"$COIN_SKIP_PROJECTS" != x; then
21993 for dir in $COIN_SKIP_PROJECTS; do
21994 if test $dir = "DyLP"; then
21995 coin_has_dylp="no"
21996 coin_reason="DyLP has been specified in COIN_SKIP_PROJECTS"
21997 fi
21998
21999 done
22000 fi
22001
22002 if test "$coin_has_dylp" != no; then
22003
22004 # Check whether --with-m4_tolower(DyLP) or --without-m4_tolower(DyLP) was given.
22005 if test "${with_dylp+set}" = set; then
22006 withval="$with_dylp"
22007 if test "$withval" = no ; then
22008 coin_has_dylp="no"
22009 coin_reason="--without-dylp has been specified"
22010 fi
22011
22012 fi;
22013 fi
22014
22015 if test "$coin_has_dylp" != no; then
22016
22017 # Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given.
22018 if test "${with_dylp_lib+set}" = set; then
22019 withval="$with_dylp_lib"
22020 if test "$withval" = no ; then
22021 coin_has_dylp="no"
22022 coin_reason="--without-dylp-lib has been specified"
22023 else
22024 coin_has_dylp="no"
22025 coin_reason="--with-dylp-lib has been specified"
22026 fi
22027 fi;
22028 fi
22029
22030 if test "$coin_has_dylp" != no; then
22031
22032 # Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given.
22033 if test "${with_dylp_incdir+set}" = set; then
22034 withval="$with_dylp_incdir"
22035 if test "$withval" = no ; then
22036 coin_has_dylp="no"
22037 coin_reason="--without-dylp-incdir has been specified"
22038 else
22039 coin_has_dylp="no"
22040 coin_reason="--with-dylp-incdir has been specified"
22041 fi
22042 fi;
22043 fi
22044
22045 if test "$coin_has_dylp" != no; then
22046
22047 # Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given.
22048 if test "${with_dylp_datadir+set}" = set; then
22049 withval="$with_dylp_datadir"
22050 if test "$withval" = no ; then
22051 coin_has_dylp="no"
22052 coin_reason="--without-dylp-datadir has been specified"
22053 else
22054 coin_has_dylp="no"
22055 coin_reason="--with-dylp-datadir has been specified"
22056 fi
22057 fi;
22058 fi
22059
22060
22061
22062
22063
22064 # check if project is available in present directory
22065 if test "$coin_has_dylp" = notGiven; then
22066 coin_has_dylp=no
22067 if test -d $srcdir/DyLP; then
22068 coin_reason="source in DyLP"
22069 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22070 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22071 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22072 coin_has_dylp="yes"
22073
22074 fi
22075 fi
22076
22077 if test -z "$coin_reason" ; then
22078 echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
22079 echo "${ECHO_T}$coin_has_dylp" >&6
22080 else
22081 echo "$as_me:$LINENO: result: $coin_has_dylp, $coin_reason" >&5
22082 echo "${ECHO_T}$coin_has_dylp, $coin_reason" >&6
22083 fi
22084
22085 if test "$coin_has_dylp" = yes ; then
22086 if test -r $srcdir/DyLP/configure; then
22087 coin_subdirs="$coin_subdirs DyLP"
22088
22089
22090 subdirs="$subdirs DyLP"
22091
22092 fi
22093 fi
22094
22095
22096 echo "$as_me:$LINENO: checking whether source of project Vol is available and should be compiled" >&5
22097 echo $ECHO_N "checking whether source of project Vol is available and should be compiled... $ECHO_C" >&6
22098
22099 coin_has_vol=notGiven
22100 coin_reason=
22101
22102 # check if user wants to skip project in any case
22103
22104 if test x"$COIN_SKIP_PROJECTS" != x; then
22105 for dir in $COIN_SKIP_PROJECTS; do
22106 if test $dir = "Vol"; then
22107 coin_has_vol="no"
22108 coin_reason="Vol has been specified in COIN_SKIP_PROJECTS"
22109 fi
22110
22111 done
22112 fi
22113
22114 if test "$coin_has_vol" != no; then
22115
22116 # Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
22117 if test "${with_vol+set}" = set; then
22118 withval="$with_vol"
22119 if test "$withval" = no ; then
22120 coin_has_vol="no"
22121 coin_reason="--without-vol has been specified"
22122 fi
22123
22124 fi;
22125 fi
22126
22127 if test "$coin_has_vol" != no; then
22128
22129 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
22130 if test "${with_vol_lib+set}" = set; then
22131 withval="$with_vol_lib"
22132 if test "$withval" = no ; then
22133 coin_has_vol="no"
22134 coin_reason="--without-vol-lib has been specified"
22135 else
22136 coin_has_vol="no"
22137 coin_reason="--with-vol-lib has been specified"
22138 fi
22139 fi;
22140 fi
22141
22142 if test "$coin_has_vol" != no; then
22143
22144 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
22145 if test "${with_vol_incdir+set}" = set; then
22146 withval="$with_vol_incdir"
22147 if test "$withval" = no ; then
22148 coin_has_vol="no"
22149 coin_reason="--without-vol-incdir has been specified"
22150 else
22151 coin_has_vol="no"
22152 coin_reason="--with-vol-incdir has been specified"
22153 fi
22154 fi;
22155 fi
22156
22157 if test "$coin_has_vol" != no; then
22158
22159 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
22160 if test "${with_vol_datadir+set}" = set; then
22161 withval="$with_vol_datadir"
22162 if test "$withval" = no ; then
22163 coin_has_vol="no"
22164 coin_reason="--without-vol-datadir has been specified"
22165 else
22166 coin_has_vol="no"
22167 coin_reason="--with-vol-datadir has been specified"
22168 fi
22169 fi;
22170 fi
22171
22172
22173
22174
22175
22176 # check if project is available in present directory
22177 if test "$coin_has_vol" = notGiven; then
22178 coin_has_vol=no
22179 if test -d $srcdir/Vol; then
22180 coin_reason="source in Vol"
22181 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22182 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22183 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22184 coin_has_vol="yes"
22185
22186 fi
22187 fi
22188
22189 if test -z "$coin_reason" ; then
22190 echo "$as_me:$LINENO: result: $coin_has_vol" >&5
22191 echo "${ECHO_T}$coin_has_vol" >&6
22192 else
22193 echo "$as_me:$LINENO: result: $coin_has_vol, $coin_reason" >&5
22194 echo "${ECHO_T}$coin_has_vol, $coin_reason" >&6
22195 fi
22196
22197 if test "$coin_has_vol" = yes ; then
22198 if test -r $srcdir/Vol/configure; then
22199 coin_subdirs="$coin_subdirs Vol"
22200
22201
22202 subdirs="$subdirs Vol"
22203
22204 fi
22205 fi
22206
22207
22208 echo "$as_me:$LINENO: checking whether source of project SYMPHONY is available and should be compiled" >&5
22209 echo $ECHO_N "checking whether source of project SYMPHONY is available and should be compiled... $ECHO_C" >&6
22210
22211 coin_has_symphony=notGiven
22212 coin_reason=
22213
22214 # check if user wants to skip project in any case
22215
22216 if test x"$COIN_SKIP_PROJECTS" != x; then
22217 for dir in $COIN_SKIP_PROJECTS; do
22218 if test $dir = "SYMPHONY"; then
22219 coin_has_symphony="no"
22220 coin_reason="SYMPHONY has been specified in COIN_SKIP_PROJECTS"
22221 fi
22222
22223 done
22224 fi
22225
22226 if test "$coin_has_symphony" != no; then
22227
22228 # Check whether --with-m4_tolower(SYMPHONY) or --without-m4_tolower(SYMPHONY) was given.
22229 if test "${with_symphony+set}" = set; then
22230 withval="$with_symphony"
22231 if test "$withval" = no ; then
22232 coin_has_symphony="no"
22233 coin_reason="--without-symphony has been specified"
22234 fi
22235
22236 fi;
22237 fi
22238
22239 if test "$coin_has_symphony" != no; then
22240
22241 # Check whether --with-m4_tolower(SYMPHONY)-lib or --without-m4_tolower(SYMPHONY)-lib was given.
22242 if test "${with_symphony_lib+set}" = set; then
22243 withval="$with_symphony_lib"
22244 if test "$withval" = no ; then
22245 coin_has_symphony="no"
22246 coin_reason="--without-symphony-lib has been specified"
22247 else
22248 coin_has_symphony="no"
22249 coin_reason="--with-symphony-lib has been specified"
22250 fi
22251 fi;
22252 fi
22253
22254 if test "$coin_has_symphony" != no; then
22255
22256 # Check whether --with-m4_tolower(SYMPHONY)-incdir or --without-m4_tolower(SYMPHONY)-incdir was given.
22257 if test "${with_symphony_incdir+set}" = set; then
22258 withval="$with_symphony_incdir"
22259 if test "$withval" = no ; then
22260 coin_has_symphony="no"
22261 coin_reason="--without-symphony-incdir has been specified"
22262 else
22263 coin_has_symphony="no"
22264 coin_reason="--with-symphony-incdir has been specified"
22265 fi
22266 fi;
22267 fi
22268
22269 if test "$coin_has_symphony" != no; then
22270
22271 # Check whether --with-m4_tolower(SYMPHONY)-datadir or --without-m4_tolower(SYMPHONY)-datadir was given.
22272 if test "${with_symphony_datadir+set}" = set; then
22273 withval="$with_symphony_datadir"
22274 if test "$withval" = no ; then
22275 coin_has_symphony="no"
22276 coin_reason="--without-symphony-datadir has been specified"
22277 else
22278 coin_has_symphony="no"
22279 coin_reason="--with-symphony-datadir has been specified"
22280 fi
22281 fi;
22282 fi
22283
22284
22285
22286
22287
22288 # check if project is available in present directory
22289 if test "$coin_has_symphony" = notGiven; then
22290 coin_has_symphony=no
22291 if test -d $srcdir/SYMPHONY; then
22292 coin_reason="source in SYMPHONY"
22293 # If a third argument is given, then we have to check if one one the files given in that third argument is present.
22294 # If none of the files in the third argument is available, then we consider the project directory as non-existing.
22295 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
22296 coin_has_symphony="yes"
22297
22298 fi
22299 fi
22300
22301 if test -z "$coin_reason" ; then
22302 echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
22303 echo "${ECHO_T}$coin_has_symphony" >&6
22304 else
22305 echo "$as_me:$LINENO: result: $coin_has_symphony, $coin_reason" >&5
22306 echo "${ECHO_T}$coin_has_symphony, $coin_reason" >&6
22307 fi
22308
22309 if test "$coin_has_symphony" = yes ; then
22310 if test -r $srcdir/SYMPHONY/configure; then
22311 coin_subdirs="$coin_subdirs SYMPHONY"
22312
22313
22314 subdirs="$subdirs SYMPHONY"
22315
22316 fi
22317 fi
22318
22319
22320 #############################################################################
22321 # Check for the LP solver #
22322 #############################################################################
22323 echo "$as_me:$LINENO: checking whether Clp is required" >&5
22324 echo $ECHO_N "checking whether Clp is required... $ECHO_C" >&6
22325
22326 # Check whether --with-lp-solver or --without-lp-solver was given.
22327 if test "${with_lp_solver+set}" = set; then
22328 withval="$with_lp_solver"
22329 sym_lp_solver=$withval
22330 else
22331 sym_lp_solver=clp
22332 fi;
22333
22334 if test $sym_lp_solver = clp; then
22335 echo "$as_me:$LINENO: result: yes" >&5
22336 echo "${ECHO_T}yes" >&6
22337 else
22338 echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6
22340 fi
22341
22342
22343
22344 if test $sym_lp_solver = clp; then
22345 ADD_CLP_TRUE=
22346 ADD_CLP_FALSE='#'
22347 else
22348 ADD_CLP_TRUE='#'
22349 ADD_CLP_FALSE=
22350 fi
22351
22352
22353 use_tp_glpk=false
22354 for dir in $subdirs; do
22355 if test "$dir" = "ThirdParty/Glpk"; then
22356 use_tp_glpk=true
22357 fi
22358 done
22359
22360
22361
22362
22363 if test $use_tp_glpk = true; then
22364 ADD_GLPK_TRUE=
22365 ADD_GLPK_FALSE='#'
22366 else
22367 ADD_GLPK_TRUE='#'
22368 ADD_GLPK_FALSE=
22369 fi
22370
22371
22372 ##############################################################################
22373 # Finishing up by writing all the output #
22374 ##############################################################################
22375
22376 # Here list all the files that configure should create (except for the
22377 # configuration header file)
22378 ac_config_files="$ac_config_files Makefile"
22379
22380
22381 # Finally, we let configure write all the output...
22382
22383
22384
22385
22386 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22387 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22388 coin_link_input_cmd="$LN_S"
22389 case "$CC" in
22390 clang* ) ;;
22391 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22392 coin_link_input_cmd=cp ;;
22393 esac
22394 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22395 echo "${ECHO_T}$coin_link_input_cmd" >&6
22396
22397
22398
22399 if test x$coin_skip_ac_output != xyes; then
22400
22401 # library extension
22402
22403 case "$CC" in
22404 clang* )
22405 LIBEXT=a ;;
22406 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22407 LIBEXT=lib ;;
22408 *) LIBEXT=a ;;
22409 esac
22410
22411 # Define VPATH_DISTCLEANFILES to be everything that needs to be
22412 # cleaned for distclean in a vpath configuration
22413
22414 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22415
22416 # Take out subdirectories if their configuration concluded that they
22417 # don't need to be compiled
22418 if test x"$coin_ac_skip_subdirs" != x; then
22419 new_subdirs=
22420 for i in $subdirs; do
22421 skipme=no
22422 for j in $coin_ac_skip_subdirs; do
22423 if test $i = $j; then
22424 skipme=yes;
22425 fi
22426 done
22427 if test $skipme = no; then
22428 new_subdirs="$new_subdirs $i"
22429 fi
22430 done
22431 subdirs="$new_subdirs"
22432 fi
22433
22434 # need to come before AC_OUTPUT
22435 if test x$coin_projectdir != xyes; then
22436 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22437 echo $coin_subdirs > coin_subdirs.txt
22438 else
22439 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22440 ABSBUILDDIR="`pwd`"
22441
22442 fi
22443
22444 cat >confcache <<\_ACEOF
22445 # This file is a shell script that caches the results of configure
22446 # tests run on this system so they can be shared between configure
22447 # scripts and configure runs, see configure's option --config-cache.
22448 # It is not useful on other systems. If it contains results you don't
22449 # want to keep, you may remove or edit it.
22450 #
22451 # config.status only pays attention to the cache file if you give it
22452 # the --recheck option to rerun configure.
22453 #
22454 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22455 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22456 # following values.
22457
22458 _ACEOF
22459
22460 # The following way of writing the cache mishandles newlines in values,
22461 # but we know of no workaround that is simple, portable, and efficient.
22462 # So, don't put newlines in cache variables' values.
22463 # Ultrix sh set writes to stderr and can't be redirected directly,
22464 # and sets the high bit in the cache file unless we assign to the vars.
22465 {
22466 (set) 2>&1 |
22467 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22468 *ac_space=\ *)
22469 # `set' does not quote correctly, so add quotes (double-quote
22470 # substitution turns \\\\ into \\, and sed turns \\ into \).
22471 sed -n \
22472 "s/'/'\\\\''/g;
22473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22474 ;;
22475 *)
22476 # `set' quotes correctly as required by POSIX, so do not add quotes.
22477 sed -n \
22478 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22479 ;;
22480 esac;
22481 } |
22482 sed '
22483 t clear
22484 : clear
22485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22486 t end
22487 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22488 : end' >>confcache
22489 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22490 if test -w $cache_file; then
22491 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22492 cat confcache >$cache_file
22493 else
22494 echo "not updating unwritable cache $cache_file"
22495 fi
22496 fi
22497 rm -f confcache
22498
22499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22500 # Let make expand exec_prefix.
22501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22502
22503 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22504 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22505 # trailing colons and then remove the whole line if VPATH becomes empty
22506 # (actually we leave an empty line to preserve line numbers).
22507 if test "x$srcdir" = x.; then
22508 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22509 s/:*\$(srcdir):*/:/;
22510 s/:*\${srcdir}:*/:/;
22511 s/:*@srcdir@:*/:/;
22512 s/^\([^=]*=[ ]*\):*/\1/;
22513 s/:*$//;
22514 s/^[^=]*=[ ]*$//;
22515 }'
22516 fi
22517
22518 # Transform confdefs.h into DEFS.
22519 # Protect against shell expansion while executing Makefile rules.
22520 # Protect against Makefile macro expansion.
22521 #
22522 # If the first sed substitution is executed (which looks for macros that
22523 # take arguments), then we branch to the quote section. Otherwise,
22524 # look for a macro that doesn't take arguments.
22525 cat >confdef2opt.sed <<\_ACEOF
22526 t clear
22527 : clear
22528 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
22529 t quote
22530 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
22531 t quote
22532 d
22533 : quote
22534 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
22535 s,\[,\\&,g
22536 s,\],\\&,g
22537 s,\$,$$,g
22538 p
22539 _ACEOF
22540 # We use echo to avoid assuming a particular line-breaking character.
22541 # The extra dot is to prevent the shell from consuming trailing
22542 # line-breaks from the sub-command output. A line-break within
22543 # single-quotes doesn't work because, if this script is created in a
22544 # platform that uses two characters for line-breaks (e.g., DOS), tr
22545 # would break.
22546 ac_LF_and_DOT=`echo; echo .`
22547 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22548 rm -f confdef2opt.sed
22549
22550
22551 ac_libobjs=
22552 ac_ltlibobjs=
22553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22554 # 1. Remove the extension, and $U if already installed.
22555 ac_i=`echo "$ac_i" |
22556 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22557 # 2. Add them.
22558 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22559 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22560 done
22561 LIBOBJS=$ac_libobjs
22562
22563 LTLIBOBJS=$ac_ltlibobjs
22564
22565
22566 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22567 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22568 Usually this means the macro was only invoked conditionally." >&5
22569 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22570 Usually this means the macro was only invoked conditionally." >&2;}
22571 { (exit 1); exit 1; }; }
22572 fi
22573 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22574 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22575 Usually this means the macro was only invoked conditionally." >&5
22576 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22577 Usually this means the macro was only invoked conditionally." >&2;}
22578 { (exit 1); exit 1; }; }
22579 fi
22580 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22581 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22582 Usually this means the macro was only invoked conditionally." >&5
22583 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22584 Usually this means the macro was only invoked conditionally." >&2;}
22585 { (exit 1); exit 1; }; }
22586 fi
22587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22588 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22589 Usually this means the macro was only invoked conditionally." >&5
22590 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22591 Usually this means the macro was only invoked conditionally." >&2;}
22592 { (exit 1); exit 1; }; }
22593 fi
22594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22595 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22596 Usually this means the macro was only invoked conditionally." >&5
22597 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22598 Usually this means the macro was only invoked conditionally." >&2;}
22599 { (exit 1); exit 1; }; }
22600 fi
22601 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22602 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22603 Usually this means the macro was only invoked conditionally." >&5
22604 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22605 Usually this means the macro was only invoked conditionally." >&2;}
22606 { (exit 1); exit 1; }; }
22607 fi
22608 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22609 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22610 Usually this means the macro was only invoked conditionally." >&5
22611 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22612 Usually this means the macro was only invoked conditionally." >&2;}
22613 { (exit 1); exit 1; }; }
22614 fi
22615 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22616 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22617 Usually this means the macro was only invoked conditionally." >&5
22618 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22619 Usually this means the macro was only invoked conditionally." >&2;}
22620 { (exit 1); exit 1; }; }
22621 fi
22622 if test -z "${ADD_CLP_TRUE}" && test -z "${ADD_CLP_FALSE}"; then
22623 { { echo "$as_me:$LINENO: error: conditional \"ADD_CLP\" was never defined.
22624 Usually this means the macro was only invoked conditionally." >&5
22625 echo "$as_me: error: conditional \"ADD_CLP\" was never defined.
22626 Usually this means the macro was only invoked conditionally." >&2;}
22627 { (exit 1); exit 1; }; }
22628 fi
22629 if test -z "${ADD_GLPK_TRUE}" && test -z "${ADD_GLPK_FALSE}"; then
22630 { { echo "$as_me:$LINENO: error: conditional \"ADD_GLPK\" was never defined.
22631 Usually this means the macro was only invoked conditionally." >&5
22632 echo "$as_me: error: conditional \"ADD_GLPK\" was never defined.
22633 Usually this means the macro was only invoked conditionally." >&2;}
22634 { (exit 1); exit 1; }; }
22635 fi
22636
22637 : ${CONFIG_STATUS=./config.status}
22638 ac_clean_files_save=$ac_clean_files
22639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22640 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22641 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22642 cat >$CONFIG_STATUS <<_ACEOF
22643 #! $SHELL
22644 # Generated by $as_me.
22645 # Run this file to recreate the current configuration.
22646 # Compiler output produced by configure, useful for debugging
22647 # configure, is in config.log if it exists.
22648
22649 debug=false
22650 ac_cs_recheck=false
22651 ac_cs_silent=false
22652 SHELL=\${CONFIG_SHELL-$SHELL}
22653 _ACEOF
22654
22655 cat >>$CONFIG_STATUS <<\_ACEOF
22656 ## --------------------- ##
22657 ## M4sh Initialization. ##
22658 ## --------------------- ##
22659
22660 # Be Bourne compatible
22661 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22662 emulate sh
22663 NULLCMD=:
22664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22665 # is contrary to our usage. Disable this feature.
22666 alias -g '${1+"$@"}'='"$@"'
22667 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22668 set -o posix
22669 fi
22670 DUALCASE=1; export DUALCASE # for MKS sh
22671
22672 # Support unset when possible.
22673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22674 as_unset=unset
22675 else
22676 as_unset=false
22677 fi
22678
22679
22680 # Work around bugs in pre-3.0 UWIN ksh.
22681 $as_unset ENV MAIL MAILPATH
22682 PS1='$ '
22683 PS2='> '
22684 PS4='+ '
22685
22686 # NLS nuisances.
22687 for as_var in \
22688 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22689 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22690 LC_TELEPHONE LC_TIME
22691 do
22692 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22693 eval $as_var=C; export $as_var
22694 else
22695 $as_unset $as_var
22696 fi
22697 done
22698
22699 # Required to use basename.
22700 if expr a : '\(a\)' >/dev/null 2>&1; then
22701 as_expr=expr
22702 else
22703 as_expr=false
22704 fi
22705
22706 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22707 as_basename=basename
22708 else
22709 as_basename=false
22710 fi
22711
22712
22713 # Name of the executable.
22714 as_me=`$as_basename "$0" ||
22715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22716 X"$0" : 'X\(//\)$' \| \
22717 X"$0" : 'X\(/\)$' \| \
22718 . : '\(.\)' 2>/dev/null ||
22719 echo X/"$0" |
22720 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22721 /^X\/\(\/\/\)$/{ s//\1/; q; }
22722 /^X\/\(\/\).*/{ s//\1/; q; }
22723 s/.*/./; q'`
22724
22725
22726 # PATH needs CR, and LINENO needs CR and PATH.
22727 # Avoid depending upon Character Ranges.
22728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22731 as_cr_digits='0123456789'
22732 as_cr_alnum=$as_cr_Letters$as_cr_digits
22733
22734 # The user is always right.
22735 if test "${PATH_SEPARATOR+set}" != set; then
22736 echo "#! /bin/sh" >conf$$.sh
22737 echo "exit 0" >>conf$$.sh
22738 chmod +x conf$$.sh
22739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22740 PATH_SEPARATOR=';'
22741 else
22742 PATH_SEPARATOR=:
22743 fi
22744 rm -f conf$$.sh
22745 fi
22746
22747
22748 as_lineno_1=$LINENO
22749 as_lineno_2=$LINENO
22750 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22751 test "x$as_lineno_1" != "x$as_lineno_2" &&
22752 test "x$as_lineno_3" = "x$as_lineno_2" || {
22753 # Find who we are. Look in the path if we contain no path at all
22754 # relative or not.
22755 case $0 in
22756 *[\\/]* ) as_myself=$0 ;;
22757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22758 for as_dir in $PATH
22759 do
22760 IFS=$as_save_IFS
22761 test -z "$as_dir" && as_dir=.
22762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22763 done
22764
22765 ;;
22766 esac
22767 # We did not find ourselves, most probably we were run as `sh COMMAND'
22768 # in which case we are not to be found in the path.
22769 if test "x$as_myself" = x; then
22770 as_myself=$0
22771 fi
22772 if test ! -f "$as_myself"; then
22773 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22774 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22775 { (exit 1); exit 1; }; }
22776 fi
22777 case $CONFIG_SHELL in
22778 '')
22779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22780 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22781 do
22782 IFS=$as_save_IFS
22783 test -z "$as_dir" && as_dir=.
22784 for as_base in sh bash ksh sh5; do
22785 case $as_dir in
22786 /*)
22787 if ("$as_dir/$as_base" -c '
22788 as_lineno_1=$LINENO
22789 as_lineno_2=$LINENO
22790 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22791 test "x$as_lineno_1" != "x$as_lineno_2" &&
22792 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22793 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22794 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22795 CONFIG_SHELL=$as_dir/$as_base
22796 export CONFIG_SHELL
22797 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22798 fi;;
22799 esac
22800 done
22801 done
22802 ;;
22803 esac
22804
22805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22806 # uniformly replaced by the line number. The first 'sed' inserts a
22807 # line-number line before each line; the second 'sed' does the real
22808 # work. The second script uses 'N' to pair each line-number line
22809 # with the numbered line, and appends trailing '-' during
22810 # substitution so that $LINENO is not a special case at line end.
22811 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22812 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22813 sed '=' <$as_myself |
22814 sed '
22815 N
22816 s,$,-,
22817 : loop
22818 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22819 t loop
22820 s,-$,,
22821 s,^['$as_cr_digits']*\n,,
22822 ' >$as_me.lineno &&
22823 chmod +x $as_me.lineno ||
22824 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22825 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22826 { (exit 1); exit 1; }; }
22827
22828 # Don't try to exec as it changes $[0], causing all sort of problems
22829 # (the dirname of $[0] is not the place where we might find the
22830 # original and so on. Autoconf is especially sensible to this).
22831 . ./$as_me.lineno
22832 # Exit status is that of the last command.
22833 exit
22834 }
22835
22836
22837 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22838 *c*,-n*) ECHO_N= ECHO_C='
22839 ' ECHO_T=' ' ;;
22840 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22841 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22842 esac
22843
22844 if expr a : '\(a\)' >/dev/null 2>&1; then
22845 as_expr=expr
22846 else
22847 as_expr=false
22848 fi
22849
22850 rm -f conf$$ conf$$.exe conf$$.file
22851 echo >conf$$.file
22852 if ln -s conf$$.file conf$$ 2>/dev/null; then
22853 # We could just check for DJGPP; but this test a) works b) is more generic
22854 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22855 if test -f conf$$.exe; then
22856 # Don't use ln at all; we don't have any links
22857 as_ln_s='cp -p'
22858 else
22859 as_ln_s='ln -s'
22860 fi
22861 elif ln conf$$.file conf$$ 2>/dev/null; then
22862 as_ln_s=ln
22863 else
22864 as_ln_s='cp -p'
22865 fi
22866 rm -f conf$$ conf$$.exe conf$$.file
22867
22868 if mkdir -p . 2>/dev/null; then
22869 as_mkdir_p=:
22870 else
22871 test -d ./-p && rmdir ./-p
22872 as_mkdir_p=false
22873 fi
22874
22875 as_executable_p="test -f"
22876
22877 # Sed expression to map a string onto a valid CPP name.
22878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22879
22880 # Sed expression to map a string onto a valid variable name.
22881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22882
22883
22884 # IFS
22885 # We need space, tab and new line, in precisely that order.
22886 as_nl='
22887 '
22888 IFS=" $as_nl"
22889
22890 # CDPATH.
22891 $as_unset CDPATH
22892
22893 exec 6>&1
22894
22895 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22896 # report actual input values of CONFIG_FILES etc. instead of their
22897 # values after options handling. Logging --version etc. is OK.
22898 exec 5>>config.log
22899 {
22900 echo
22901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22902 ## Running $as_me. ##
22903 _ASBOX
22904 } >&5
22905 cat >&5 <<_CSEOF
22906
22907 This file was extended by SYMPHONY $as_me 5.7.2, which was
22908 generated by GNU Autoconf 2.59. Invocation command line was
22909
22910 CONFIG_FILES = $CONFIG_FILES
22911 CONFIG_HEADERS = $CONFIG_HEADERS
22912 CONFIG_LINKS = $CONFIG_LINKS
22913 CONFIG_COMMANDS = $CONFIG_COMMANDS
22914 $ $0 $@
22915
22916 _CSEOF
22917 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22918 echo >&5
22919 _ACEOF
22920
22921 # Files that config.status was made for.
22922 if test -n "$ac_config_files"; then
22923 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22924 fi
22925
22926 if test -n "$ac_config_headers"; then
22927 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22928 fi
22929
22930 if test -n "$ac_config_links"; then
22931 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22932 fi
22933
22934 if test -n "$ac_config_commands"; then
22935 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22936 fi
22937
22938 cat >>$CONFIG_STATUS <<\_ACEOF
22939
22940 ac_cs_usage="\
22941 \`$as_me' instantiates files from templates according to the
22942 current configuration.
22943
22944 Usage: $0 [OPTIONS] [FILE]...
22945
22946 -h, --help print this help, then exit
22947 -V, --version print version number, then exit
22948 -q, --quiet do not print progress messages
22949 -d, --debug don't remove temporary files
22950 --recheck update $as_me by reconfiguring in the same conditions
22951 --file=FILE[:TEMPLATE]
22952 instantiate the configuration file FILE
22953
22954 Configuration files:
22955 $config_files
22956
22957 Configuration commands:
22958 $config_commands
22959
22960 Report bugs to <[email protected]>."
22961 _ACEOF
22962
22963 cat >>$CONFIG_STATUS <<_ACEOF
22964 ac_cs_version="\\
22965 SYMPHONY config.status 5.7.2
22966 configured by $0, generated by GNU Autoconf 2.59,
22967 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22968
22969 Copyright (C) 2003 Free Software Foundation, Inc.
22970 This config.status script is free software; the Free Software Foundation
22971 gives unlimited permission to copy, distribute and modify it."
22972 srcdir=$srcdir
22973 INSTALL="$INSTALL"
22974 _ACEOF
22975
22976 cat >>$CONFIG_STATUS <<\_ACEOF
22977 # If no file are specified by the user, then we need to provide default
22978 # value. By we need to know if files were specified by the user.
22979 ac_need_defaults=:
22980 while test $# != 0
22981 do
22982 case $1 in
22983 --*=*)
22984 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22985 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22986 ac_shift=:
22987 ;;
22988 -*)
22989 ac_option=$1
22990 ac_optarg=$2
22991 ac_shift=shift
22992 ;;
22993 *) # This is not an option, so the user has probably given explicit
22994 # arguments.
22995 ac_option=$1
22996 ac_need_defaults=false;;
22997 esac
22998
22999 case $ac_option in
23000 # Handling of the options.
23001 _ACEOF
23002 cat >>$CONFIG_STATUS <<\_ACEOF
23003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23004 ac_cs_recheck=: ;;
23005 --version | --vers* | -V )
23006 echo "$ac_cs_version"; exit 0 ;;
23007 --he | --h)
23008 # Conflict between --help and --header
23009 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23010 Try \`$0 --help' for more information." >&5
23011 echo "$as_me: error: ambiguous option: $1
23012 Try \`$0 --help' for more information." >&2;}
23013 { (exit 1); exit 1; }; };;
23014 --help | --hel | -h )
23015 echo "$ac_cs_usage"; exit 0 ;;
23016 --debug | --d* | -d )
23017 debug=: ;;
23018 --file | --fil | --fi | --f )
23019 $ac_shift
23020 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23021 ac_need_defaults=false;;
23022 --header | --heade | --head | --hea )
23023 $ac_shift
23024 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23025 ac_need_defaults=false;;
23026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23028 ac_cs_silent=: ;;
23029
23030 # This is an error.
23031 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23032 Try \`$0 --help' for more information." >&5
23033 echo "$as_me: error: unrecognized option: $1
23034 Try \`$0 --help' for more information." >&2;}
23035 { (exit 1); exit 1; }; } ;;
23036
23037 *) ac_config_targets="$ac_config_targets $1" ;;
23038
23039 esac
23040 shift
23041 done
23042
23043 ac_configure_extra_args=
23044
23045 if $ac_cs_silent; then
23046 exec 6>/dev/null
23047 ac_configure_extra_args="$ac_configure_extra_args --silent"
23048 fi
23049
23050 _ACEOF
23051 cat >>$CONFIG_STATUS <<_ACEOF
23052 if \$ac_cs_recheck; then
23053 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23054 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23055 fi
23056
23057 _ACEOF
23058
23059 cat >>$CONFIG_STATUS <<_ACEOF
23060 #
23061 # INIT-COMMANDS section.
23062 #
23063
23064 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23065
23066 _ACEOF
23067
23068
23069
23070 cat >>$CONFIG_STATUS <<\_ACEOF
23071 for ac_config_target in $ac_config_targets
23072 do
23073 case "$ac_config_target" in
23074 # Handling of arguments.
23075 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23076 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23079 { (exit 1); exit 1; }; };;
23080 esac
23081 done
23082
23083 # If the user did not use the arguments to specify the items to instantiate,
23084 # then the envvar interface is used. Set only those that are not.
23085 # We use the long form for the default assignment because of an extremely
23086 # bizarre bug on SunOS 4.1.3.
23087 if $ac_need_defaults; then
23088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23090 fi
23091
23092 # Have a temporary directory for convenience. Make it in the build tree
23093 # simply because there is no reason to put it here, and in addition,
23094 # creating and moving files from /tmp can sometimes cause problems.
23095 # Create a temporary directory, and hook for its removal unless debugging.
23096 $debug ||
23097 {
23098 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23099 trap '{ (exit 1); exit 1; }' 1 2 13 15
23100 }
23101
23102 # Create a (secure) tmp directory for tmp files.
23103
23104 {
23105 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23106 test -n "$tmp" && test -d "$tmp"
23107 } ||
23108 {
23109 tmp=./confstat$$-$RANDOM
23110 (umask 077 && mkdir $tmp)
23111 } ||
23112 {
23113 echo "$me: cannot create a temporary directory in ." >&2
23114 { (exit 1); exit 1; }
23115 }
23116
23117 _ACEOF
23118
23119 cat >>$CONFIG_STATUS <<_ACEOF
23120
23121 #
23122 # CONFIG_FILES section.
23123 #
23124
23125 # No need to generate the scripts if there are no CONFIG_FILES.
23126 # This happens for instance when ./config.status config.h
23127 if test -n "\$CONFIG_FILES"; then
23128 # Protect against being on the right side of a sed subst in config.status.
23129 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23130 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23131 s,@SHELL@,$SHELL,;t t
23132 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23133 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23134 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23135 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23136 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23137 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23138 s,@exec_prefix@,$exec_prefix,;t t
23139 s,@prefix@,$prefix,;t t
23140 s,@program_transform_name@,$program_transform_name,;t t
23141 s,@bindir@,$bindir,;t t
23142 s,@sbindir@,$sbindir,;t t
23143 s,@libexecdir@,$libexecdir,;t t
23144 s,@datadir@,$datadir,;t t
23145 s,@sysconfdir@,$sysconfdir,;t t
23146 s,@sharedstatedir@,$sharedstatedir,;t t
23147 s,@localstatedir@,$localstatedir,;t t
23148 s,@libdir@,$libdir,;t t
23149 s,@includedir@,$includedir,;t t
23150 s,@oldincludedir@,$oldincludedir,;t t
23151 s,@infodir@,$infodir,;t t
23152 s,@mandir@,$mandir,;t t
23153 s,@build_alias@,$build_alias,;t t
23154 s,@host_alias@,$host_alias,;t t
23155 s,@target_alias@,$target_alias,;t t
23156 s,@DEFS@,$DEFS,;t t
23157 s,@ECHO_C@,$ECHO_C,;t t
23158 s,@ECHO_N@,$ECHO_N,;t t
23159 s,@ECHO_T@,$ECHO_T,;t t
23160 s,@LIBS@,$LIBS,;t t
23161 s,@build@,$build,;t t
23162 s,@build_cpu@,$build_cpu,;t t
23163 s,@build_vendor@,$build_vendor,;t t
23164 s,@build_os@,$build_os,;t t
23165 s,@CDEFS@,$CDEFS,;t t
23166 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23167 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23168 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23169 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23170 s,@CC@,$CC,;t t
23171 s,@CFLAGS@,$CFLAGS,;t t
23172 s,@LDFLAGS@,$LDFLAGS,;t t
23173 s,@CPPFLAGS@,$CPPFLAGS,;t t
23174 s,@ac_ct_CC@,$ac_ct_CC,;t t
23175 s,@EXEEXT@,$EXEEXT,;t t
23176 s,@OBJEXT@,$OBJEXT,;t t
23177 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23178 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23179 s,@MPICC@,$MPICC,;t t
23180 s,@CXXDEFS@,$CXXDEFS,;t t
23181 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23182 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23183 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23184 s,@CXX@,$CXX,;t t
23185 s,@CXXFLAGS@,$CXXFLAGS,;t t
23186 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23187 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23188 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23189 s,@MPICXX@,$MPICXX,;t t
23190 s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
23191 s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
23192 s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
23193 s,@F77@,$F77,;t t
23194 s,@ac_ct_F77@,$ac_ct_F77,;t t
23195 s,@FFLAGS@,$FFLAGS,;t t
23196 s,@MPIF77@,$MPIF77,;t t
23197 s,@EGREP@,$EGREP,;t t
23198 s,@LN_S@,$LN_S,;t t
23199 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23200 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23201 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23202 s,@CYGPATH_W@,$CYGPATH_W,;t t
23203 s,@PACKAGE@,$PACKAGE,;t t
23204 s,@VERSION@,$VERSION,;t t
23205 s,@ACLOCAL@,$ACLOCAL,;t t
23206 s,@AUTOCONF@,$AUTOCONF,;t t
23207 s,@AUTOMAKE@,$AUTOMAKE,;t t
23208 s,@AUTOHEADER@,$AUTOHEADER,;t t
23209 s,@MAKEINFO@,$MAKEINFO,;t t
23210 s,@install_sh@,$install_sh,;t t
23211 s,@STRIP@,$STRIP,;t t
23212 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23213 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23214 s,@mkdir_p@,$mkdir_p,;t t
23215 s,@AWK@,$AWK,;t t
23216 s,@SET_MAKE@,$SET_MAKE,;t t
23217 s,@am__leading_dot@,$am__leading_dot,;t t
23218 s,@AMTAR@,$AMTAR,;t t
23219 s,@am__tar@,$am__tar,;t t
23220 s,@am__untar@,$am__untar,;t t
23221 s,@DEPDIR@,$DEPDIR,;t t
23222 s,@am__include@,$am__include,;t t
23223 s,@am__quote@,$am__quote,;t t
23224 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23225 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23226 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23227 s,@CCDEPMODE@,$CCDEPMODE,;t t
23228 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23229 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23230 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23231 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23232 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23233 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23234 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23235 s,@MAINT@,$MAINT,;t t
23236 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23237 s,@have_autoconf@,$have_autoconf,;t t
23238 s,@have_automake@,$have_automake,;t t
23239 s,@have_svn@,$have_svn,;t t
23240 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23241 s,@AUX_DIR@,$AUX_DIR,;t t
23242 s,@abs_source_dir@,$abs_source_dir,;t t
23243 s,@abs_lib_dir@,$abs_lib_dir,;t t
23244 s,@abs_include_dir@,$abs_include_dir,;t t
23245 s,@abs_bin_dir@,$abs_bin_dir,;t t
23246 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23247 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23248 s,@host@,$host,;t t
23249 s,@host_cpu@,$host_cpu,;t t
23250 s,@host_vendor@,$host_vendor,;t t
23251 s,@host_os@,$host_os,;t t
23252 s,@ECHO@,$ECHO,;t t
23253 s,@AR@,$AR,;t t
23254 s,@ac_ct_AR@,$ac_ct_AR,;t t
23255 s,@RANLIB@,$RANLIB,;t t
23256 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23257 s,@CPP@,$CPP,;t t
23258 s,@CXXCPP@,$CXXCPP,;t t
23259 s,@LIBTOOL@,$LIBTOOL,;t t
23260 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23261 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23262 s,@dos2unix@,$dos2unix,;t t
23263 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23264 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23265 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
23266 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
23267 s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
23268 s,@subdirs@,$subdirs,;t t
23269 s,@ADD_CLP_TRUE@,$ADD_CLP_TRUE,;t t
23270 s,@ADD_CLP_FALSE@,$ADD_CLP_FALSE,;t t
23271 s,@ADD_GLPK_TRUE@,$ADD_GLPK_TRUE,;t t
23272 s,@ADD_GLPK_FALSE@,$ADD_GLPK_FALSE,;t t
23273 s,@LIBEXT@,$LIBEXT,;t t
23274 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23275 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23276 s,@LIBOBJS@,$LIBOBJS,;t t
23277 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23278 CEOF
23279
23280 _ACEOF
23281
23282 cat >>$CONFIG_STATUS <<\_ACEOF
23283 # Split the substitutions into bite-sized pieces for seds with
23284 # small command number limits, like on Digital OSF/1 and HP-UX.
23285 ac_max_sed_lines=48
23286 ac_sed_frag=1 # Number of current file.
23287 ac_beg=1 # First line for current file.
23288 ac_end=$ac_max_sed_lines # Line after last line for current file.
23289 ac_more_lines=:
23290 ac_sed_cmds=
23291 while $ac_more_lines; do
23292 if test $ac_beg -gt 1; then
23293 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23294 else
23295 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23296 fi
23297 if test ! -s $tmp/subs.frag; then
23298 ac_more_lines=false
23299 else
23300 # The purpose of the label and of the branching condition is to
23301 # speed up the sed processing (if there are no `@' at all, there
23302 # is no need to browse any of the substitutions).
23303 # These are the two extra sed commands mentioned above.
23304 (echo ':t
23305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23306 if test -z "$ac_sed_cmds"; then
23307 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23308 else
23309 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23310 fi
23311 ac_sed_frag=`expr $ac_sed_frag + 1`
23312 ac_beg=$ac_end
23313 ac_end=`expr $ac_end + $ac_max_sed_lines`
23314 fi
23315 done
23316 if test -z "$ac_sed_cmds"; then
23317 ac_sed_cmds=cat
23318 fi
23319 fi # test -n "$CONFIG_FILES"
23320
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<\_ACEOF
23323 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23325 case $ac_file in
23326 - | *:- | *:-:* ) # input from stdin
23327 cat >$tmp/stdin
23328 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23330 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23332 * ) ac_file_in=$ac_file.in ;;
23333 esac
23334
23335 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23336 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23338 X"$ac_file" : 'X\(//\)[^/]' \| \
23339 X"$ac_file" : 'X\(//\)$' \| \
23340 X"$ac_file" : 'X\(/\)' \| \
23341 . : '\(.\)' 2>/dev/null ||
23342 echo X"$ac_file" |
23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23345 /^X\(\/\/\)$/{ s//\1/; q; }
23346 /^X\(\/\).*/{ s//\1/; q; }
23347 s/.*/./; q'`
23348 { if $as_mkdir_p; then
23349 mkdir -p "$ac_dir"
23350 else
23351 as_dir="$ac_dir"
23352 as_dirs=
23353 while test ! -d "$as_dir"; do
23354 as_dirs="$as_dir $as_dirs"
23355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23357 X"$as_dir" : 'X\(//\)[^/]' \| \
23358 X"$as_dir" : 'X\(//\)$' \| \
23359 X"$as_dir" : 'X\(/\)' \| \
23360 . : '\(.\)' 2>/dev/null ||
23361 echo X"$as_dir" |
23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23364 /^X\(\/\/\)$/{ s//\1/; q; }
23365 /^X\(\/\).*/{ s//\1/; q; }
23366 s/.*/./; q'`
23367 done
23368 test ! -n "$as_dirs" || mkdir $as_dirs
23369 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23370 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23371 { (exit 1); exit 1; }; }; }
23372
23373 ac_builddir=.
23374
23375 if test "$ac_dir" != .; then
23376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23377 # A "../" for each directory in $ac_dir_suffix.
23378 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23379 else
23380 ac_dir_suffix= ac_top_builddir=
23381 fi
23382
23383 case $srcdir in
23384 .) # No --srcdir option. We are building in place.
23385 ac_srcdir=.
23386 if test -z "$ac_top_builddir"; then
23387 ac_top_srcdir=.
23388 else
23389 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23390 fi ;;
23391 [\\/]* | ?:[\\/]* ) # Absolute path.
23392 ac_srcdir=$srcdir$ac_dir_suffix;
23393 ac_top_srcdir=$srcdir ;;
23394 *) # Relative path.
23395 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23396 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23397 esac
23398
23399 # Do not use `cd foo && pwd` to compute absolute paths, because
23400 # the directories may not exist.
23401 case `pwd` in
23402 .) ac_abs_builddir="$ac_dir";;
23403 *)
23404 case "$ac_dir" in
23405 .) ac_abs_builddir=`pwd`;;
23406 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23407 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23408 esac;;
23409 esac
23410 case $ac_abs_builddir in
23411 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23412 *)
23413 case ${ac_top_builddir}. in
23414 .) ac_abs_top_builddir=$ac_abs_builddir;;
23415 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23416 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23417 esac;;
23418 esac
23419 case $ac_abs_builddir in
23420 .) ac_abs_srcdir=$ac_srcdir;;
23421 *)
23422 case $ac_srcdir in
23423 .) ac_abs_srcdir=$ac_abs_builddir;;
23424 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23425 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23426 esac;;
23427 esac
23428 case $ac_abs_builddir in
23429 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23430 *)
23431 case $ac_top_srcdir in
23432 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23433 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23434 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23435 esac;;
23436 esac
23437
23438
23439 case $INSTALL in
23440 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23441 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23442 esac
23443
23444 if test x"$ac_file" != x-; then
23445 { echo "$as_me:$LINENO: creating $ac_file" >&5
23446 echo "$as_me: creating $ac_file" >&6;}
23447 rm -f "$ac_file"
23448 fi
23449 # Let's still pretend it is `configure' which instantiates (i.e., don't
23450 # use $as_me), people would be surprised to read:
23451 # /* config.h. Generated by config.status. */
23452 if test x"$ac_file" = x-; then
23453 configure_input=
23454 else
23455 configure_input="$ac_file. "
23456 fi
23457 configure_input=$configure_input"Generated from `echo $ac_file_in |
23458 sed 's,.*/,,'` by configure."
23459
23460 # First look for the input files in the build tree, otherwise in the
23461 # src tree.
23462 ac_file_inputs=`IFS=:
23463 for f in $ac_file_in; do
23464 case $f in
23465 -) echo $tmp/stdin ;;
23466 [\\/$]*)
23467 # Absolute (can't be DOS-style, as IFS=:)
23468 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23469 echo "$as_me: error: cannot find input file: $f" >&2;}
23470 { (exit 1); exit 1; }; }
23471 echo "$f";;
23472 *) # Relative
23473 if test -f "$f"; then
23474 # Build tree
23475 echo "$f"
23476 elif test -f "$srcdir/$f"; then
23477 # Source tree
23478 echo "$srcdir/$f"
23479 else
23480 # /dev/null tree
23481 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23482 echo "$as_me: error: cannot find input file: $f" >&2;}
23483 { (exit 1); exit 1; }; }
23484 fi;;
23485 esac
23486 done` || { (exit 1); exit 1; }
23487 _ACEOF
23488 cat >>$CONFIG_STATUS <<_ACEOF
23489 sed "$ac_vpsub
23490 $extrasub
23491 _ACEOF
23492 cat >>$CONFIG_STATUS <<\_ACEOF
23493 :t
23494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23495 s,@configure_input@,$configure_input,;t t
23496 s,@srcdir@,$ac_srcdir,;t t
23497 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23498 s,@top_srcdir@,$ac_top_srcdir,;t t
23499 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23500 s,@builddir@,$ac_builddir,;t t
23501 s,@abs_builddir@,$ac_abs_builddir,;t t
23502 s,@top_builddir@,$ac_top_builddir,;t t
23503 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23504 s,@INSTALL@,$ac_INSTALL,;t t
23505 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23506 rm -f $tmp/stdin
23507 if test x"$ac_file" != x-; then
23508 mv $tmp/out $ac_file
23509 else
23510 cat $tmp/out
23511 rm -f $tmp/out
23512 fi
23513
23514 done
23515 _ACEOF
23516 cat >>$CONFIG_STATUS <<\_ACEOF
23517
23518 #
23519 # CONFIG_COMMANDS section.
23520 #
23521 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23522 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23523 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23524 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23525 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23526 X"$ac_dest" : 'X\(//\)[^/]' \| \
23527 X"$ac_dest" : 'X\(//\)$' \| \
23528 X"$ac_dest" : 'X\(/\)' \| \
23529 . : '\(.\)' 2>/dev/null ||
23530 echo X"$ac_dest" |
23531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23533 /^X\(\/\/\)$/{ s//\1/; q; }
23534 /^X\(\/\).*/{ s//\1/; q; }
23535 s/.*/./; q'`
23536 { if $as_mkdir_p; then
23537 mkdir -p "$ac_dir"
23538 else
23539 as_dir="$ac_dir"
23540 as_dirs=
23541 while test ! -d "$as_dir"; do
23542 as_dirs="$as_dir $as_dirs"
23543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23545 X"$as_dir" : 'X\(//\)[^/]' \| \
23546 X"$as_dir" : 'X\(//\)$' \| \
23547 X"$as_dir" : 'X\(/\)' \| \
23548 . : '\(.\)' 2>/dev/null ||
23549 echo X"$as_dir" |
23550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23552 /^X\(\/\/\)$/{ s//\1/; q; }
23553 /^X\(\/\).*/{ s//\1/; q; }
23554 s/.*/./; q'`
23555 done
23556 test ! -n "$as_dirs" || mkdir $as_dirs
23557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23558 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23559 { (exit 1); exit 1; }; }; }
23560
23561 ac_builddir=.
23562
23563 if test "$ac_dir" != .; then
23564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23565 # A "../" for each directory in $ac_dir_suffix.
23566 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23567 else
23568 ac_dir_suffix= ac_top_builddir=
23569 fi
23570
23571 case $srcdir in
23572 .) # No --srcdir option. We are building in place.
23573 ac_srcdir=.
23574 if test -z "$ac_top_builddir"; then
23575 ac_top_srcdir=.
23576 else
23577 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23578 fi ;;
23579 [\\/]* | ?:[\\/]* ) # Absolute path.
23580 ac_srcdir=$srcdir$ac_dir_suffix;
23581 ac_top_srcdir=$srcdir ;;
23582 *) # Relative path.
23583 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23584 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23585 esac
23586
23587 # Do not use `cd foo && pwd` to compute absolute paths, because
23588 # the directories may not exist.
23589 case `pwd` in
23590 .) ac_abs_builddir="$ac_dir";;
23591 *)
23592 case "$ac_dir" in
23593 .) ac_abs_builddir=`pwd`;;
23594 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23595 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23596 esac;;
23597 esac
23598 case $ac_abs_builddir in
23599 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23600 *)
23601 case ${ac_top_builddir}. in
23602 .) ac_abs_top_builddir=$ac_abs_builddir;;
23603 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23604 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23605 esac;;
23606 esac
23607 case $ac_abs_builddir in
23608 .) ac_abs_srcdir=$ac_srcdir;;
23609 *)
23610 case $ac_srcdir in
23611 .) ac_abs_srcdir=$ac_abs_builddir;;
23612 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23613 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23614 esac;;
23615 esac
23616 case $ac_abs_builddir in
23617 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23618 *)
23619 case $ac_top_srcdir in
23620 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23621 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23622 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23623 esac;;
23624 esac
23625
23626
23627 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23628 echo "$as_me: executing $ac_dest commands" >&6;}
23629 case $ac_dest in
23630 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23631 # Strip MF so we end up with the name of the file.
23632 mf=`echo "$mf" | sed -e 's/:.*$//'`
23633 # Check whether this is an Automake generated Makefile or not.
23634 # We used to match only the files named `Makefile.in', but
23635 # some people rename them; so instead we look at the file content.
23636 # Grep'ing the first line is not enough: some people post-process
23637 # each Makefile.in and add a new line on top of each file to say so.
23638 # So let's grep whole file.
23639 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23640 dirpart=`(dirname "$mf") 2>/dev/null ||
23641 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23642 X"$mf" : 'X\(//\)[^/]' \| \
23643 X"$mf" : 'X\(//\)$' \| \
23644 X"$mf" : 'X\(/\)' \| \
23645 . : '\(.\)' 2>/dev/null ||
23646 echo X"$mf" |
23647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23649 /^X\(\/\/\)$/{ s//\1/; q; }
23650 /^X\(\/\).*/{ s//\1/; q; }
23651 s/.*/./; q'`
23652 else
23653 continue
23654 fi
23655 # Extract the definition of DEPDIR, am__include, and am__quote
23656 # from the Makefile without running `make'.
23657 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23658 test -z "$DEPDIR" && continue
23659 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23660 test -z "am__include" && continue
23661 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23662 # When using ansi2knr, U may be empty or an underscore; expand it
23663 U=`sed -n 's/^U = //p' < "$mf"`
23664 # Find all dependency output files, they are included files with
23665 # $(DEPDIR) in their names. We invoke sed twice because it is the
23666 # simplest approach to changing $(DEPDIR) to its actual value in the
23667 # expansion.
23668 for file in `sed -n "
23669 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23670 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23671 # Make sure the directory exists.
23672 test -f "$dirpart/$file" && continue
23673 fdir=`(dirname "$file") 2>/dev/null ||
23674 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23675 X"$file" : 'X\(//\)[^/]' \| \
23676 X"$file" : 'X\(//\)$' \| \
23677 X"$file" : 'X\(/\)' \| \
23678 . : '\(.\)' 2>/dev/null ||
23679 echo X"$file" |
23680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23682 /^X\(\/\/\)$/{ s//\1/; q; }
23683 /^X\(\/\).*/{ s//\1/; q; }
23684 s/.*/./; q'`
23685 { if $as_mkdir_p; then
23686 mkdir -p $dirpart/$fdir
23687 else
23688 as_dir=$dirpart/$fdir
23689 as_dirs=
23690 while test ! -d "$as_dir"; do
23691 as_dirs="$as_dir $as_dirs"
23692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23694 X"$as_dir" : 'X\(//\)[^/]' \| \
23695 X"$as_dir" : 'X\(//\)$' \| \
23696 X"$as_dir" : 'X\(/\)' \| \
23697 . : '\(.\)' 2>/dev/null ||
23698 echo X"$as_dir" |
23699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23701 /^X\(\/\/\)$/{ s//\1/; q; }
23702 /^X\(\/\).*/{ s//\1/; q; }
23703 s/.*/./; q'`
23704 done
23705 test ! -n "$as_dirs" || mkdir $as_dirs
23706 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23707 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23708 { (exit 1); exit 1; }; }; }
23709
23710 # echo "creating $dirpart/$file"
23711 echo '# dummy' > "$dirpart/$file"
23712 done
23713 done
23714 ;;
23715 esac
23716 done
23717 _ACEOF
23718
23719 cat >>$CONFIG_STATUS <<\_ACEOF
23720
23721 { (exit 0); exit 0; }
23722 _ACEOF
23723 chmod +x $CONFIG_STATUS
23724 ac_clean_files=$ac_clean_files_save
23725
23726
23727 # configure is writing to config.log, and then calls config.status.
23728 # config.status does its own redirection, appending to config.log.
23729 # Unfortunately, on DOS this fails, as config.log is still kept open
23730 # by configure, so config.status won't be able to write to it; its
23731 # output is simply discarded. So we exec the FD to /dev/null,
23732 # effectively closing config.log, so it can be properly (re)opened and
23733 # appended to by config.status. When coming back to configure, we
23734 # need to make the FD available again.
23735 if test "$no_create" != yes; then
23736 ac_cs_success=:
23737 ac_config_status_args=
23738 test "$silent" = yes &&
23739 ac_config_status_args="$ac_config_status_args --quiet"
23740 exec 5>/dev/null
23741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23742 exec 5>>config.log
23743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23744 # would make configure fail if this is the last instruction.
23745 $ac_cs_success || { (exit 1); exit 1; }
23746 fi
23747
23748 #
23749 # CONFIG_SUBDIRS section.
23750 #
23751 if test "$no_recursion" != yes; then
23752
23753 # Remove --cache-file and --srcdir arguments so they do not pile up.
23754 ac_sub_configure_args=
23755 ac_prev=
23756 for ac_arg in $ac_configure_args; do
23757 if test -n "$ac_prev"; then
23758 ac_prev=
23759 continue
23760 fi
23761 case $ac_arg in
23762 -cache-file | --cache-file | --cache-fil | --cache-fi \
23763 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23764 ac_prev=cache_file ;;
23765 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23766 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23767 | --c=*)
23768 ;;
23769 --config-cache | -C)
23770 ;;
23771 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23772 ac_prev=srcdir ;;
23773 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23774 ;;
23775 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23776 ac_prev=prefix ;;
23777 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23778 ;;
23779 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23780 esac
23781 done
23782
23783 # Always prepend --prefix to ensure using the same prefix
23784 # in subdir configurations.
23785 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23786
23787 ac_popdir=`pwd`
23788 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23789
23790 # Do not complain, so a configure script can configure whichever
23791 # parts of a large source tree are present.
23792 test -d $srcdir/$ac_dir || continue
23793
23794 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23795 echo "$as_me: configuring in $ac_dir" >&6;}
23796 { if $as_mkdir_p; then
23797 mkdir -p "$ac_dir"
23798 else
23799 as_dir="$ac_dir"
23800 as_dirs=
23801 while test ! -d "$as_dir"; do
23802 as_dirs="$as_dir $as_dirs"
23803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23805 X"$as_dir" : 'X\(//\)[^/]' \| \
23806 X"$as_dir" : 'X\(//\)$' \| \
23807 X"$as_dir" : 'X\(/\)' \| \
23808 . : '\(.\)' 2>/dev/null ||
23809 echo X"$as_dir" |
23810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23812 /^X\(\/\/\)$/{ s//\1/; q; }
23813 /^X\(\/\).*/{ s//\1/; q; }
23814 s/.*/./; q'`
23815 done
23816 test ! -n "$as_dirs" || mkdir $as_dirs
23817 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23818 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23819 { (exit 1); exit 1; }; }; }
23820
23821 ac_builddir=.
23822
23823 if test "$ac_dir" != .; then
23824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23825 # A "../" for each directory in $ac_dir_suffix.
23826 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23827 else
23828 ac_dir_suffix= ac_top_builddir=
23829 fi
23830
23831 case $srcdir in
23832 .) # No --srcdir option. We are building in place.
23833 ac_srcdir=.
23834 if test -z "$ac_top_builddir"; then
23835 ac_top_srcdir=.
23836 else
23837 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23838 fi ;;
23839 [\\/]* | ?:[\\/]* ) # Absolute path.
23840 ac_srcdir=$srcdir$ac_dir_suffix;
23841 ac_top_srcdir=$srcdir ;;
23842 *) # Relative path.
23843 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23844 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23845 esac
23846
23847 # Do not use `cd foo && pwd` to compute absolute paths, because
23848 # the directories may not exist.
23849 case `pwd` in
23850 .) ac_abs_builddir="$ac_dir";;
23851 *)
23852 case "$ac_dir" in
23853 .) ac_abs_builddir=`pwd`;;
23854 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23855 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23856 esac;;
23857 esac
23858 case $ac_abs_builddir in
23859 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23860 *)
23861 case ${ac_top_builddir}. in
23862 .) ac_abs_top_builddir=$ac_abs_builddir;;
23863 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23864 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23865 esac;;
23866 esac
23867 case $ac_abs_builddir in
23868 .) ac_abs_srcdir=$ac_srcdir;;
23869 *)
23870 case $ac_srcdir in
23871 .) ac_abs_srcdir=$ac_abs_builddir;;
23872 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23873 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23874 esac;;
23875 esac
23876 case $ac_abs_builddir in
23877 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23878 *)
23879 case $ac_top_srcdir in
23880 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23881 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23882 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23883 esac;;
23884 esac
23885
23886
23887 cd $ac_dir
23888
23889 # Check for guested configure; otherwise get Cygnus style configure.
23890 if test -f $ac_srcdir/configure.gnu; then
23891 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23892 elif test -f $ac_srcdir/configure; then
23893 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23894 elif test -f $ac_srcdir/configure.in; then
23895 ac_sub_configure=$ac_configure
23896 else
23897 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23898 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23899 ac_sub_configure=
23900 fi
23901
23902 # The recursion is here.
23903 if test -n "$ac_sub_configure"; then
23904 # Make the cache file name correct relative to the subdirectory.
23905 case $cache_file in
23906 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23907 *) # Relative path.
23908 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23909 esac
23910
23911 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23912 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23913 # The eval makes quoting arguments work.
23914 eval $ac_sub_configure $ac_sub_configure_args \
23915 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23916 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23917 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23918 { (exit 1); exit 1; }; }
23919 fi
23920
23921 cd $ac_popdir
23922 done
23923 fi
23924
23925
23926 if test x"$coin_vpath_link_files" = x; then : ; else
23927 lnkcmd="$coin_link_input_cmd"
23928 if test "$lnkcmd" = cp; then
23929 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23930 echo "$as_me: Copying data files for VPATH configuration" >&6;}
23931 else
23932 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23933 echo "$as_me: Creating VPATH links for data files" >&6;}
23934 fi
23935 for file in $coin_vpath_link_files; do
23936 dir=`(dirname "./$file") 2>/dev/null ||
23937 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23938 X"./$file" : 'X\(//\)[^/]' \| \
23939 X"./$file" : 'X\(//\)$' \| \
23940 X"./$file" : 'X\(/\)' \| \
23941 . : '\(.\)' 2>/dev/null ||
23942 echo X"./$file" |
23943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23945 /^X\(\/\/\)$/{ s//\1/; q; }
23946 /^X\(\/\).*/{ s//\1/; q; }
23947 s/.*/./; q'`
23948 if test -d $dir; then : ; else
23949 { if $as_mkdir_p; then
23950 mkdir -p $dir
23951 else
23952 as_dir=$dir
23953 as_dirs=
23954 while test ! -d "$as_dir"; do
23955 as_dirs="$as_dir $as_dirs"
23956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23958 X"$as_dir" : 'X\(//\)[^/]' \| \
23959 X"$as_dir" : 'X\(//\)$' \| \
23960 X"$as_dir" : 'X\(/\)' \| \
23961 . : '\(.\)' 2>/dev/null ||
23962 echo X"$as_dir" |
23963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23965 /^X\(\/\/\)$/{ s//\1/; q; }
23966 /^X\(\/\).*/{ s//\1/; q; }
23967 s/.*/./; q'`
23968 done
23969 test ! -n "$as_dirs" || mkdir $as_dirs
23970 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23971 echo "$as_me: error: cannot create directory $dir" >&2;}
23972 { (exit 1); exit 1; }; }; }
23973
23974 fi
23975 rm -f $file
23976 $lnkcmd $abs_source_dir/$file $file
23977 done
23978 fi
23979
23980 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&5
23981 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;}
23982 if test x$coin_projectdir = xyes; then
23983 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23984 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23985 else
23986 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23987 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23988 fi
23989 else
23990 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23991 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23992 fi
23993
23994