Debian Codegraph @

Osi/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Osi 0.108.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 #
12 # Copyright 2006 International Business Machines and others.
13 # All Rights Reserved.
14 # This file is part of the open source package Coin which is distributed
15 # under the Eclipse Public License.
16 ## --------------------- ##
17 ## M4sh Initialization. ##
18 ## --------------------- ##
19
20 # Be Bourne compatible
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 emulate sh
23 NULLCMD=:
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30 DUALCASE=1; export DUALCASE # for MKS sh
31
32 # Support unset when possible.
33 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 as_unset=unset
35 else
36 as_unset=false
37 fi
38
39
40 # Work around bugs in pre-3.0 UWIN ksh.
41 $as_unset ENV MAIL MAILPATH
42 PS1='$ '
43 PS2='> '
44 PS4='+ '
45
46 # NLS nuisances.
47 for as_var in \
48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50 LC_TELEPHONE LC_TIME
51 do
52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53 eval $as_var=C; export $as_var
54 else
55 $as_unset $as_var
56 fi
57 done
58
59 # Required to use basename.
60 if expr a : '\(a\)' >/dev/null 2>&1; then
61 as_expr=expr
62 else
63 as_expr=false
64 fi
65
66 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 as_basename=basename
68 else
69 as_basename=false
70 fi
71
72
73 # Name of the executable.
74 as_me=`$as_basename "$0" ||
75 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76 X"$0" : 'X\(//\)$' \| \
77 X"$0" : 'X\(/\)$' \| \
78 . : '\(.\)' 2>/dev/null ||
79 echo X/"$0" |
80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81 /^X\/\(\/\/\)$/{ s//\1/; q; }
82 /^X\/\(\/\).*/{ s//\1/; q; }
83 s/.*/./; q'`
84
85
86 # PATH needs CR, and LINENO needs CR and PATH.
87 # Avoid depending upon Character Ranges.
88 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91 as_cr_digits='0123456789'
92 as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 echo "#! /bin/sh" >conf$$.sh
97 echo "exit 0" >>conf$$.sh
98 chmod +x conf$$.sh
99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100 PATH_SEPARATOR=';'
101 else
102 PATH_SEPARATOR=:
103 fi
104 rm -f conf$$.sh
105 fi
106
107
108 as_lineno_1=$LINENO
109 as_lineno_2=$LINENO
110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111 test "x$as_lineno_1" != "x$as_lineno_2" &&
112 test "x$as_lineno_3" = "x$as_lineno_2" || {
113 # Find who we are. Look in the path if we contain no path at all
114 # relative or not.
115 case $0 in
116 *[\\/]* ) as_myself=$0 ;;
117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH
119 do
120 IFS=$as_save_IFS
121 test -z "$as_dir" && as_dir=.
122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 done
124
125 ;;
126 esac
127 # We did not find ourselves, most probably we were run as `sh COMMAND'
128 # in which case we are not to be found in the path.
129 if test "x$as_myself" = x; then
130 as_myself=$0
131 fi
132 if test ! -f "$as_myself"; then
133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134 { (exit 1); exit 1; }; }
135 fi
136 case $CONFIG_SHELL in
137 '')
138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 do
141 IFS=$as_save_IFS
142 test -z "$as_dir" && as_dir=.
143 for as_base in sh bash ksh sh5; do
144 case $as_dir in
145 /*)
146 if ("$as_dir/$as_base" -c '
147 as_lineno_1=$LINENO
148 as_lineno_2=$LINENO
149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150 test "x$as_lineno_1" != "x$as_lineno_2" &&
151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154 CONFIG_SHELL=$as_dir/$as_base
155 export CONFIG_SHELL
156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 fi;;
158 esac
159 done
160 done
161 ;;
162 esac
163
164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165 # uniformly replaced by the line number. The first 'sed' inserts a
166 # line-number line before each line; the second 'sed' does the real
167 # work. The second script uses 'N' to pair each line-number line
168 # with the numbered line, and appends trailing '-' during
169 # substitution so that $LINENO is not a special case at line end.
170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
172 sed '=' <$as_myself |
173 sed '
174 N
175 s,$,-,
176 : loop
177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 t loop
179 s,-$,,
180 s,^['$as_cr_digits']*\n,,
181 ' >$as_me.lineno &&
182 chmod +x $as_me.lineno ||
183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184 { (exit 1); exit 1; }; }
185
186 # Don't try to exec as it changes $[0], causing all sort of problems
187 # (the dirname of $[0] is not the place where we might find the
188 # original and so on. Autoconf is especially sensible to this).
189 . ./$as_me.lineno
190 # Exit status is that of the last command.
191 exit
192 }
193
194
195 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196 *c*,-n*) ECHO_N= ECHO_C='
197 ' ECHO_T=' ' ;;
198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200 esac
201
202 if expr a : '\(a\)' >/dev/null 2>&1; then
203 as_expr=expr
204 else
205 as_expr=false
206 fi
207
208 rm -f conf$$ conf$$.exe conf$$.file
209 echo >conf$$.file
210 if ln -s conf$$.file conf$$ 2>/dev/null; then
211 # We could just check for DJGPP; but this test a) works b) is more generic
212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213 if test -f conf$$.exe; then
214 # Don't use ln at all; we don't have any links
215 as_ln_s='cp -p'
216 else
217 as_ln_s='ln -s'
218 fi
219 elif ln conf$$.file conf$$ 2>/dev/null; then
220 as_ln_s=ln
221 else
222 as_ln_s='cp -p'
223 fi
224 rm -f conf$$ conf$$.exe conf$$.file
225
226 if mkdir -p . 2>/dev/null; then
227 as_mkdir_p=:
228 else
229 test -d ./-p && rmdir ./-p
230 as_mkdir_p=false
231 fi
232
233 as_executable_p="test -f"
234
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242 # IFS
243 # We need space, tab and new line, in precisely that order.
244 as_nl='
245 '
246 IFS=" $as_nl"
247
248 # CDPATH.
249 $as_unset CDPATH
250
251
252
253 # Check that we are running under the correct shell.
254 SHELL=${CONFIG_SHELL-/bin/sh}
255
256 case X$ECHO in
257 X*--fallback-echo)
258 # Remove one level of quotation (which was required for Make).
259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 ;;
261 esac
262
263 echo=${ECHO-echo}
264 if test "X$1" = X--no-reexec; then
265 # Discard the --no-reexec flag, and continue.
266 shift
267 elif test "X$1" = X--fallback-echo; then
268 # Avoid inline document here, it may be left over
269 :
270 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271 # Yippee, $echo works!
272 :
273 else
274 # Restart under the correct shell.
275 exec $SHELL "$0" --no-reexec ${1+"$@"}
276 fi
277
278 if test "X$1" = X--fallback-echo; then
279 # used as fallback echo
280 shift
281 cat <<EOF
282 $*
283 EOF
284 exit 0
285 fi
286
287 # The HP-UX ksh and POSIX shell print the target directory to stdout
288 # if CDPATH is set.
289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291 if test -z "$ECHO"; then
292 if test "X${echo_test_string+set}" != Xset; then
293 # find a string as large as possible, as long as the shell can cope with it
294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297 echo_test_string=`eval $cmd` &&
298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 then
300 break
301 fi
302 done
303 fi
304
305 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307 test "X$echo_testing_string" = "X$echo_test_string"; then
308 :
309 else
310 # The Solaris, AIX, and Digital Unix default echo programs unquote
311 # backslashes. This makes it impossible to quote backslashes using
312 # echo "$something" | sed 's/\\/\\\\/g'
313 #
314 # So, first we look for a working echo in the user's PATH.
315
316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317 for dir in $PATH /usr/ucb; do
318 IFS="$lt_save_ifs"
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
323 echo="$dir/echo"
324 break
325 fi
326 done
327 IFS="$lt_save_ifs"
328
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
335 echo='print -r'
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
342 export CONFIG_SHELL
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344 else
345 # Try using printf.
346 echo='printf %s\n'
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # Cool, printf works
351 :
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357 export CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
359 export SHELL
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
366 else
367 # maybe with a smaller string...
368 prev=:
369
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 then
373 break
374 fi
375 prev="$cmd"
376 done
377
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382 else
383 # Oops. We lost completely, so just stick with echo.
384 echo=echo
385 fi
386 fi
387 fi
388 fi
389 fi
390 fi
391
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
394 ECHO=$echo
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 fi
398
399
400
401
402 tagnames=${tagnames+${tagnames},}CXX
403
404 tagnames=${tagnames+${tagnames},}F77
405
406 # Name of the host.
407 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408 # so uname gets run too.
409 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411 exec 6>&1
412
413 #
414 # Initializations.
415 #
416 ac_default_prefix=/usr/local
417 ac_config_libobj_dir=.
418 cross_compiling=no
419 subdirs=
420 MFLAGS=
421 MAKEFLAGS=
422 SHELL=${CONFIG_SHELL-/bin/sh}
423
424 # Maximum number of lines to put in a shell here document.
425 # This variable seems obsolete. It should probably be removed, and
426 # only ac_max_sed_lines should be used.
427 : ${ac_max_here_lines=38}
428
429 # Identity of this package.
430 PACKAGE_NAME='Osi'
431 PACKAGE_TARNAME='osi'
432 PACKAGE_VERSION='0.108.0'
433 PACKAGE_STRING='Osi 0.108.0'
434 PACKAGE_BUGREPORT='[email protected]'
435
436 ac_unique_file="src/Osi/OsiAuxInfo.cpp"
437 ac_default_prefix=`pwd`
438 # Factoring default headers for most tests.
439 ac_includes_default="\
440 #include <stdio.h>
441 #if HAVE_SYS_TYPES_H
442 # include <sys/types.h>
443 #endif
444 #if HAVE_SYS_STAT_H
445 # include <sys/stat.h>
446 #endif
447 #if STDC_HEADERS
448 # include <stdlib.h>
449 # include <stddef.h>
450 #else
451 # if HAVE_STDLIB_H
452 # include <stdlib.h>
453 # endif
454 #endif
455 #if HAVE_STRING_H
456 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <memory.h>
458 # endif
459 # include <string.h>
460 #endif
461 #if HAVE_STRINGS_H
462 # include <strings.h>
463 #endif
464 #if HAVE_INTTYPES_H
465 # include <inttypes.h>
466 #else
467 # if HAVE_STDINT_H
468 # include <stdint.h>
469 # endif
470 #endif
471 #if HAVE_UNISTD_H
472 # include <unistd.h>
473 #endif"
474
475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion OSI_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED OSILIB_CFLAGS OSILIB_LIBS OSILIB_PCLIBS OSILIB_PCREQUIRES OSILIB_DEPENDENCIES OSILIB_CFLAGS_INSTALLED OSILIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED OSIGLPKLIB_CFLAGS OSIGLPKLIB_LIBS OSIGLPKLIB_PCLIBS OSIGLPKLIB_PCREQUIRES OSIGLPKLIB_DEPENDENCIES OSIGLPKLIB_CFLAGS_INSTALLED OSIGLPKLIB_LIBS_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED OSISPXLIB_CFLAGS OSISPXLIB_LIBS OSISPXLIB_PCLIBS OSISPXLIB_PCREQUIRES OSISPXLIB_DEPENDENCIES OSISPXLIB_CFLAGS_INSTALLED OSISPXLIB_LIBS_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE OSI_EXAMPLES_SOLVER_NAME OSI_EXAMPLES_SOLVER_CFLAGS OSI_EXAMPLES_SOLVER_LIBS OSI_EXAMPLES_SOLVER_PCNAME coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476 ac_subst_files=''
477
478 # Initialize some variables set by options.
479 ac_init_help=
480 ac_init_version=false
481 # The variables have the same names as the options, with
482 # dashes changed to underlines.
483 cache_file=/dev/null
484 exec_prefix=NONE
485 no_create=
486 no_recursion=
487 prefix=NONE
488 program_prefix=NONE
489 program_suffix=NONE
490 program_transform_name=s,x,x,
491 silent=
492 site=
493 srcdir=
494 verbose=
495 x_includes=NONE
496 x_libraries=NONE
497
498 # Installation directory options.
499 # These are left unexpanded so users can "make install exec_prefix=/foo"
500 # and all the variables that are supposed to be based on exec_prefix
501 # by default will actually change.
502 # Use braces instead of parens because sh, perl, etc. also accept them.
503 bindir='${exec_prefix}/bin'
504 sbindir='${exec_prefix}/sbin'
505 libexecdir='${exec_prefix}/libexec'
506 datadir='${prefix}/share'
507 sysconfdir='${prefix}/etc'
508 sharedstatedir='${prefix}/com'
509 localstatedir='${prefix}/var'
510 libdir='${exec_prefix}/lib'
511 includedir='${prefix}/include'
512 oldincludedir='/usr/include'
513 infodir='${prefix}/info'
514 mandir='${prefix}/man'
515
516 ac_prev=
517 for ac_option
518 do
519 # If the previous option needs an argument, assign it.
520 if test -n "$ac_prev"; then
521 eval "$ac_prev=\$ac_option"
522 ac_prev=
523 continue
524 fi
525
526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528 # Accept the important Cygnus configure options, so we can diagnose typos.
529
530 case $ac_option in
531
532 -bindir | --bindir | --bindi | --bind | --bin | --bi)
533 ac_prev=bindir ;;
534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 bindir=$ac_optarg ;;
536
537 -build | --build | --buil | --bui | --bu)
538 ac_prev=build_alias ;;
539 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540 build_alias=$ac_optarg ;;
541
542 -cache-file | --cache-file | --cache-fil | --cache-fi \
543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544 ac_prev=cache_file ;;
545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547 cache_file=$ac_optarg ;;
548
549 --config-cache | -C)
550 cache_file=config.cache ;;
551
552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553 ac_prev=datadir ;;
554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555 | --da=*)
556 datadir=$ac_optarg ;;
557
558 -disable-* | --disable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 eval "enable_$ac_feature=no" ;;
566
567 -enable-* | --enable-*)
568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569 # Reject names that are not valid shell variable names.
570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572 { (exit 1); exit 1; }; }
573 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574 case $ac_option in
575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 *) ac_optarg=yes ;;
577 esac
578 eval "enable_$ac_feature='$ac_optarg'" ;;
579
580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582 | --exec | --exe | --ex)
583 ac_prev=exec_prefix ;;
584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586 | --exec=* | --exe=* | --ex=*)
587 exec_prefix=$ac_optarg ;;
588
589 -gas | --gas | --ga | --g)
590 # Obsolete; use --with-gas.
591 with_gas=yes ;;
592
593 -help | --help | --hel | --he | -h)
594 ac_init_help=long ;;
595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596 ac_init_help=recursive ;;
597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598 ac_init_help=short ;;
599
600 -host | --host | --hos | --ho)
601 ac_prev=host_alias ;;
602 -host=* | --host=* | --hos=* | --ho=*)
603 host_alias=$ac_optarg ;;
604
605 -includedir | --includedir | --includedi | --included | --include \
606 | --includ | --inclu | --incl | --inc)
607 ac_prev=includedir ;;
608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609 | --includ=* | --inclu=* | --incl=* | --inc=*)
610 includedir=$ac_optarg ;;
611
612 -infodir | --infodir | --infodi | --infod | --info | --inf)
613 ac_prev=infodir ;;
614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615 infodir=$ac_optarg ;;
616
617 -libdir | --libdir | --libdi | --libd)
618 ac_prev=libdir ;;
619 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 libdir=$ac_optarg ;;
621
622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623 | --libexe | --libex | --libe)
624 ac_prev=libexecdir ;;
625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626 | --libexe=* | --libex=* | --libe=*)
627 libexecdir=$ac_optarg ;;
628
629 -localstatedir | --localstatedir | --localstatedi | --localstated \
630 | --localstate | --localstat | --localsta | --localst \
631 | --locals | --local | --loca | --loc | --lo)
632 ac_prev=localstatedir ;;
633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636 localstatedir=$ac_optarg ;;
637
638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639 ac_prev=mandir ;;
640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 mandir=$ac_optarg ;;
642
643 -nfp | --nfp | --nf)
644 # Obsolete; use --without-fp.
645 with_fp=no ;;
646
647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648 | --no-cr | --no-c | -n)
649 no_create=yes ;;
650
651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 no_recursion=yes ;;
654
655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657 | --oldin | --oldi | --old | --ol | --o)
658 ac_prev=oldincludedir ;;
659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662 oldincludedir=$ac_optarg ;;
663
664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665 ac_prev=prefix ;;
666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 prefix=$ac_optarg ;;
668
669 -program-prefix | --program-prefix | --program-prefi | --program-pref \
670 | --program-pre | --program-pr | --program-p)
671 ac_prev=program_prefix ;;
672 -program-prefix=* | --program-prefix=* | --program-prefi=* \
673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674 program_prefix=$ac_optarg ;;
675
676 -program-suffix | --program-suffix | --program-suffi | --program-suff \
677 | --program-suf | --program-su | --program-s)
678 ac_prev=program_suffix ;;
679 -program-suffix=* | --program-suffix=* | --program-suffi=* \
680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681 program_suffix=$ac_optarg ;;
682
683 -program-transform-name | --program-transform-name \
684 | --program-transform-nam | --program-transform-na \
685 | --program-transform-n | --program-transform- \
686 | --program-transform | --program-transfor \
687 | --program-transfo | --program-transf \
688 | --program-trans | --program-tran \
689 | --progr-tra | --program-tr | --program-t)
690 ac_prev=program_transform_name ;;
691 -program-transform-name=* | --program-transform-name=* \
692 | --program-transform-nam=* | --program-transform-na=* \
693 | --program-transform-n=* | --program-transform-=* \
694 | --program-transform=* | --program-transfor=* \
695 | --program-transfo=* | --program-transf=* \
696 | --program-trans=* | --program-tran=* \
697 | --progr-tra=* | --program-tr=* | --program-t=*)
698 program_transform_name=$ac_optarg ;;
699
700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701 | -silent | --silent | --silen | --sile | --sil)
702 silent=yes ;;
703
704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705 ac_prev=sbindir ;;
706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707 | --sbi=* | --sb=*)
708 sbindir=$ac_optarg ;;
709
710 -sharedstatedir | --sharedstatedir | --sharedstatedi \
711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712 | --sharedst | --shareds | --shared | --share | --shar \
713 | --sha | --sh)
714 ac_prev=sharedstatedir ;;
715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718 | --sha=* | --sh=*)
719 sharedstatedir=$ac_optarg ;;
720
721 -site | --site | --sit)
722 ac_prev=site ;;
723 -site=* | --site=* | --sit=*)
724 site=$ac_optarg ;;
725
726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727 ac_prev=srcdir ;;
728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 srcdir=$ac_optarg ;;
730
731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732 | --syscon | --sysco | --sysc | --sys | --sy)
733 ac_prev=sysconfdir ;;
734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736 sysconfdir=$ac_optarg ;;
737
738 -target | --target | --targe | --targ | --tar | --ta | --t)
739 ac_prev=target_alias ;;
740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741 target_alias=$ac_optarg ;;
742
743 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 verbose=yes ;;
745
746 -version | --version | --versio | --versi | --vers | -V)
747 ac_init_version=: ;;
748
749 -with-* | --with-*)
750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 case $ac_option in
757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 *) ac_optarg=yes ;;
759 esac
760 eval "with_$ac_package='$ac_optarg'" ;;
761
762 -without-* | --without-*)
763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766 { echo "$as_me: error: invalid package name: $ac_package" >&2
767 { (exit 1); exit 1; }; }
768 ac_package=`echo $ac_package | sed 's/-/_/g'`
769 eval "with_$ac_package=no" ;;
770
771 --x)
772 # Obsolete; use --with-x.
773 with_x=yes ;;
774
775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776 | --x-incl | --x-inc | --x-in | --x-i)
777 ac_prev=x_includes ;;
778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780 x_includes=$ac_optarg ;;
781
782 -x-libraries | --x-libraries | --x-librarie | --x-librari \
783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784 ac_prev=x_libraries ;;
785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787 x_libraries=$ac_optarg ;;
788
789 -*) { echo "$as_me: error: unrecognized option: $ac_option
790 Try \`$0 --help' for more information." >&2
791 { (exit 1); exit 1; }; }
792 ;;
793
794 *=*)
795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799 { (exit 1); exit 1; }; }
800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801 eval "$ac_envvar='$ac_optarg'"
802 export $ac_envvar ;;
803
804 *)
805 # FIXME: should be removed in autoconf 3.0.
806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 ;;
811
812 esac
813 done
814
815 if test -n "$ac_prev"; then
816 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817 { echo "$as_me: error: missing argument to $ac_option" >&2
818 { (exit 1); exit 1; }; }
819 fi
820
821 # Be sure to have absolute paths.
822 for ac_var in exec_prefix prefix
823 do
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
831
832 # Be sure to have absolute paths.
833 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834 localstatedir libdir includedir oldincludedir infodir mandir
835 do
836 eval ac_val=$`echo $ac_var`
837 case $ac_val in
838 [\\/$]* | ?:[\\/]* ) ;;
839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840 { (exit 1); exit 1; }; };;
841 esac
842 done
843
844 # There might be people who depend on the old broken behavior: `$host'
845 # used to hold the argument of --host etc.
846 # FIXME: To remove some day.
847 build=$build_alias
848 host=$host_alias
849 target=$target_alias
850
851 # FIXME: To remove some day.
852 if test "x$host_alias" != x; then
853 if test "x$build_alias" = x; then
854 cross_compiling=maybe
855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856 If a cross compiler is detected then cross compile mode will be used." >&2
857 elif test "x$build_alias" != "x$host_alias"; then
858 cross_compiling=yes
859 fi
860 fi
861
862 ac_tool_prefix=
863 test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865 test "$silent" = yes && exec 6>/dev/null
866
867
868 # Find the source files, if location was not specified.
869 if test -z "$srcdir"; then
870 ac_srcdir_defaulted=yes
871 # Try the directory containing this script, then its parent.
872 ac_confdir=`(dirname "$0") 2>/dev/null ||
873 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874 X"$0" : 'X\(//\)[^/]' \| \
875 X"$0" : 'X\(//\)$' \| \
876 X"$0" : 'X\(/\)' \| \
877 . : '\(.\)' 2>/dev/null ||
878 echo X"$0" |
879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881 /^X\(\/\/\)$/{ s//\1/; q; }
882 /^X\(\/\).*/{ s//\1/; q; }
883 s/.*/./; q'`
884 srcdir=$ac_confdir
885 if test ! -r $srcdir/$ac_unique_file; then
886 srcdir=..
887 fi
888 else
889 ac_srcdir_defaulted=no
890 fi
891 if test ! -r $srcdir/$ac_unique_file; then
892 if test "$ac_srcdir_defaulted" = yes; then
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894 { (exit 1); exit 1; }; }
895 else
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897 { (exit 1); exit 1; }; }
898 fi
899 fi
900 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902 { (exit 1); exit 1; }; }
903 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904 ac_env_build_alias_set=${build_alias+set}
905 ac_env_build_alias_value=$build_alias
906 ac_cv_env_build_alias_set=${build_alias+set}
907 ac_cv_env_build_alias_value=$build_alias
908 ac_env_host_alias_set=${host_alias+set}
909 ac_env_host_alias_value=$host_alias
910 ac_cv_env_host_alias_set=${host_alias+set}
911 ac_cv_env_host_alias_value=$host_alias
912 ac_env_target_alias_set=${target_alias+set}
913 ac_env_target_alias_value=$target_alias
914 ac_cv_env_target_alias_set=${target_alias+set}
915 ac_cv_env_target_alias_value=$target_alias
916 ac_env_CDEFS_set=${CDEFS+set}
917 ac_env_CDEFS_value=$CDEFS
918 ac_cv_env_CDEFS_set=${CDEFS+set}
919 ac_cv_env_CDEFS_value=$CDEFS
920 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932 ac_env_CC_set=${CC+set}
933 ac_env_CC_value=$CC
934 ac_cv_env_CC_set=${CC+set}
935 ac_cv_env_CC_value=$CC
936 ac_env_CFLAGS_set=${CFLAGS+set}
937 ac_env_CFLAGS_value=$CFLAGS
938 ac_cv_env_CFLAGS_set=${CFLAGS+set}
939 ac_cv_env_CFLAGS_value=$CFLAGS
940 ac_env_LDFLAGS_set=${LDFLAGS+set}
941 ac_env_LDFLAGS_value=$LDFLAGS
942 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943 ac_cv_env_LDFLAGS_value=$LDFLAGS
944 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945 ac_env_CPPFLAGS_value=$CPPFLAGS
946 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948 ac_env_MPICC_set=${MPICC+set}
949 ac_env_MPICC_value=$MPICC
950 ac_cv_env_MPICC_set=${MPICC+set}
951 ac_cv_env_MPICC_value=$MPICC
952 ac_env_CXXDEFS_set=${CXXDEFS+set}
953 ac_env_CXXDEFS_value=$CXXDEFS
954 ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955 ac_cv_env_CXXDEFS_value=$CXXDEFS
956 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968 ac_env_CXX_set=${CXX+set}
969 ac_env_CXX_value=$CXX
970 ac_cv_env_CXX_set=${CXX+set}
971 ac_cv_env_CXX_value=$CXX
972 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973 ac_env_CXXFLAGS_value=$CXXFLAGS
974 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976 ac_env_MPICXX_set=${MPICXX+set}
977 ac_env_MPICXX_value=$MPICXX
978 ac_cv_env_MPICXX_set=${MPICXX+set}
979 ac_cv_env_MPICXX_value=$MPICXX
980 ac_env_CPP_set=${CPP+set}
981 ac_env_CPP_value=$CPP
982 ac_cv_env_CPP_set=${CPP+set}
983 ac_cv_env_CPP_value=$CPP
984 ac_env_CXXCPP_set=${CXXCPP+set}
985 ac_env_CXXCPP_value=$CXXCPP
986 ac_cv_env_CXXCPP_set=${CXXCPP+set}
987 ac_cv_env_CXXCPP_value=$CXXCPP
988 ac_env_F77_set=${F77+set}
989 ac_env_F77_value=$F77
990 ac_cv_env_F77_set=${F77+set}
991 ac_cv_env_F77_value=$F77
992 ac_env_FFLAGS_set=${FFLAGS+set}
993 ac_env_FFLAGS_value=$FFLAGS
994 ac_cv_env_FFLAGS_set=${FFLAGS+set}
995 ac_cv_env_FFLAGS_value=$FFLAGS
996 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997 ac_env_PKG_CONFIG_value=$PKG_CONFIG
998 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001 #
1002 # Report the --help message.
1003 #
1004 if test "$ac_init_help" = "long"; then
1005 # Omit some internal or obsolete options to make the list less imposing.
1006 # This message is too long to be a string in the A/UX 3.1 sh.
1007 cat <<_ACEOF
1008 \`configure' configures Osi 0.108.0 to adapt to many kinds of systems.
1009
1010 Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013 VAR=VALUE. See below for descriptions of some of the useful variables.
1014
1015 Defaults for the options are specified in brackets.
1016
1017 Configuration:
1018 -h, --help display this help and exit
1019 --help=short display options specific to this package
1020 --help=recursive display the short help of all the included packages
1021 -V, --version display version information and exit
1022 -q, --quiet, --silent do not print \`checking...' messages
1023 --cache-file=FILE cache test results in FILE [disabled]
1024 -C, --config-cache alias for \`--cache-file=config.cache'
1025 -n, --no-create do not create output files
1026 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1027
1028 _ACEOF
1029
1030 cat <<_ACEOF
1031 Installation directories:
1032 --prefix=PREFIX install architecture-independent files in PREFIX
1033 [$ac_default_prefix]
1034 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1035 [PREFIX]
1036
1037 By default, \`make install' will install all the files in
1038 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1039 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040 for instance \`--prefix=\$HOME'.
1041
1042 For better control, use the options below.
1043
1044 Fine tuning of the installation directories:
1045 --bindir=DIR user executables [EPREFIX/bin]
1046 --sbindir=DIR system admin executables [EPREFIX/sbin]
1047 --libexecdir=DIR program executables [EPREFIX/libexec]
1048 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1049 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1050 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1051 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1052 --libdir=DIR object code libraries [EPREFIX/lib]
1053 --includedir=DIR C header files [PREFIX/include]
1054 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1055 --infodir=DIR info documentation [PREFIX/info]
1056 --mandir=DIR man documentation [PREFIX/man]
1057 _ACEOF
1058
1059 cat <<\_ACEOF
1060
1061 Program names:
1062 --program-prefix=PREFIX prepend PREFIX to installed program names
1063 --program-suffix=SUFFIX append SUFFIX to installed program names
1064 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1065
1066 System types:
1067 --build=BUILD configure for building on BUILD [guessed]
1068 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1069 _ACEOF
1070 fi
1071
1072 if test -n "$ac_init_help"; then
1073 case $ac_init_help in
1074 short | recursive ) echo "Configuration of Osi 0.108.0:";;
1075 esac
1076 cat <<\_ACEOF
1077
1078 Optional Features:
1079 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1080 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1081 --enable-debug compile all projects with debug options tests
1082 (implies --disable-shared)
1083 --enable-debug-osi compile project Osi with debug compiler flags
1084
1085 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086 --enable-static[=PKGS]
1087 build static libraries [default=no]
1088 --disable-dependency-tracking speeds up one-time build
1089 --enable-dependency-tracking do not reject slow dependency extractors
1090 --enable-maintainer-mode enable make rules and dependencies not useful
1091 (and sometimes confusing) to the casual installer
1092 --enable-shared[=PKGS]
1093 build shared libraries [default=yes]
1094 --enable-fast-install[=PKGS]
1095 optimize for fast installation [default=yes]
1096 --disable-libtool-lock avoid locking (might break parallel builds)
1097 --disable-dependency-linking
1098 disable linking library dependencies into shared
1099 libraries
1100 --disable-pkg-config disable use of pkg-config (if available)
1101 --disable-interpackage-dependencies
1102 disables deduction of Makefile dependencies from
1103 package linker flags
1104 --disable-cplex-libcheck
1105 skip the link check at configuration time
1106 --disable-mosek-libcheck
1107 skip the link check at configuration time
1108 --disable-xpress-libcheck
1109 skip the link check at configuration time
1110 --disable-gurobi-libcheck
1111 skip the link check at configuration time
1112
1113 Optional Packages:
1114 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1115 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1116 --with-osi-verbosity specify the debug verbosity level for project Osi
1117 --with-osi-checklevel specify the sanity check level for project Osi
1118 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1119 --with-pic try to use only PIC/non-PIC objects [default=use
1120 both]
1121 --with-tags[=TAGS]
1122 include additional configurations [automatic]
1123 --with-coin-instdir prefix of installation directory for precompiled
1124 COIN packages
1125
1126 --with-coinutils-lib linker flags for using package CoinUtils
1127 --with-coinutils-incdir directory with header files for using package
1128 CoinUtils
1129 --with-coinutils-datadir
1130 directory with data files for using package
1131 CoinUtils
1132 --with-glpk-lib linker flags for using package Glpk
1133 --with-glpk-incdir directory with header files for using package Glpk
1134 --with-glpk-datadir directory with data files for using package Glpk
1135 --with-soplex-lib linker flags for using package SoPlex
1136 --with-soplex-incdir directory with header files for using package SoPlex
1137 --with-soplex-datadir directory with data files for using package SoPlex
1138 --with-sample-lib linker flags for using package Sample
1139 --with-sample-incdir directory with header files for using package Sample
1140 --with-sample-datadir directory with data files for using package Sample
1141 --with-netlib-lib linker flags for using package Netlib
1142 --with-netlib-incdir directory with header files for using package Netlib
1143 --with-netlib-datadir directory with data files for using package Netlib
1144 --with-cplex-incdir specify the header file directory for library Cplex
1145 --with-cplex-lib specify the flags used to link with the library Cplex
1146 --with-mosek-incdir specify the header file directory for library Mosek
1147 --with-mosek-lib specify the flags used to link with the library Mosek
1148 --with-xpress-incdir specify the header file directory for library Xpress
1149 --with-xpress-lib specify the flags used to link with the library Xpress
1150 --with-gurobi-incdir specify the header file directory for library Gurobi
1151 --with-gurobi-lib specify the flags used to link with the library Gurobi
1152 --with-dot use dot (from graphviz) when creating documentation
1153 with doxygen if available; --without-dot to disable
1154
1155 Some influential environment variables:
1156 CDEFS Additional -D flags to be used when compiling C code.
1157 ADD_CFLAGS Additional C compiler options
1158 DBG_CFLAGS Debug C compiler options
1159 OPT_CFLAGS Optimize C compiler options
1160 CC C compiler command
1161 CFLAGS C compiler flags
1162 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1163 nonstandard directory <lib dir>
1164 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1165 headers in a nonstandard directory <include dir>
1166 MPICC C MPI Compiler
1167 CXXDEFS Additional -D flags to be used when compiling C++ code.
1168 ADD_CXXFLAGS
1169 Additional C++ compiler options
1170 DBG_CXXFLAGS
1171 Debug C++ compiler options
1172 OPT_CXXFLAGS
1173 Optimize C++ compiler options
1174 CXX C++ compiler command
1175 CXXFLAGS C++ compiler flags
1176 MPICXX C++ MPI Compiler
1177 CPP C preprocessor
1178 CXXCPP C++ preprocessor
1179 F77 Fortran 77 compiler command
1180 FFLAGS Fortran 77 compiler flags
1181 PKG_CONFIG path to pkg-config utility
1182
1183 Use these variables to override the choices made by `configure' or to help
1184 it to find libraries and programs with nonstandard names/locations.
1185
1186 Report bugs to <[email protected]>.
1187 _ACEOF
1188 fi
1189
1190 if test "$ac_init_help" = "recursive"; then
1191 # If there are subdirs, report their specific --help.
1192 ac_popdir=`pwd`
1193 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1194 test -d $ac_dir || continue
1195 ac_builddir=.
1196
1197 if test "$ac_dir" != .; then
1198 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1199 # A "../" for each directory in $ac_dir_suffix.
1200 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1201 else
1202 ac_dir_suffix= ac_top_builddir=
1203 fi
1204
1205 case $srcdir in
1206 .) # No --srcdir option. We are building in place.
1207 ac_srcdir=.
1208 if test -z "$ac_top_builddir"; then
1209 ac_top_srcdir=.
1210 else
1211 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1212 fi ;;
1213 [\\/]* | ?:[\\/]* ) # Absolute path.
1214 ac_srcdir=$srcdir$ac_dir_suffix;
1215 ac_top_srcdir=$srcdir ;;
1216 *) # Relative path.
1217 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1218 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1219 esac
1220
1221 # Do not use `cd foo && pwd` to compute absolute paths, because
1222 # the directories may not exist.
1223 case `pwd` in
1224 .) ac_abs_builddir="$ac_dir";;
1225 *)
1226 case "$ac_dir" in
1227 .) ac_abs_builddir=`pwd`;;
1228 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1229 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1230 esac;;
1231 esac
1232 case $ac_abs_builddir in
1233 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1234 *)
1235 case ${ac_top_builddir}. in
1236 .) ac_abs_top_builddir=$ac_abs_builddir;;
1237 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1238 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1239 esac;;
1240 esac
1241 case $ac_abs_builddir in
1242 .) ac_abs_srcdir=$ac_srcdir;;
1243 *)
1244 case $ac_srcdir in
1245 .) ac_abs_srcdir=$ac_abs_builddir;;
1246 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1247 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1248 esac;;
1249 esac
1250 case $ac_abs_builddir in
1251 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1252 *)
1253 case $ac_top_srcdir in
1254 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1255 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1256 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1257 esac;;
1258 esac
1259
1260 cd $ac_dir
1261 # Check for guested configure; otherwise get Cygnus style configure.
1262 if test -f $ac_srcdir/configure.gnu; then
1263 echo
1264 $SHELL $ac_srcdir/configure.gnu --help=recursive
1265 elif test -f $ac_srcdir/configure; then
1266 echo
1267 $SHELL $ac_srcdir/configure --help=recursive
1268 elif test -f $ac_srcdir/configure.ac ||
1269 test -f $ac_srcdir/configure.in; then
1270 echo
1271 $ac_configure --help
1272 else
1273 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1274 fi
1275 cd $ac_popdir
1276 done
1277 fi
1278
1279 test -n "$ac_init_help" && exit 0
1280 if $ac_init_version; then
1281 cat <<\_ACEOF
1282 Osi configure 0.108.0
1283 generated by GNU Autoconf 2.59
1284
1285 Copyright (C) 2003 Free Software Foundation, Inc.
1286 This configure script is free software; the Free Software Foundation
1287 gives unlimited permission to copy, distribute and modify it.
1288
1289
1290 Copyright 2006 International Business Machines and others.
1291 All Rights Reserved.
1292 This file is part of the open source package Coin which is distributed
1293 under the Eclipse Public License.
1294 _ACEOF
1295 exit 0
1296 fi
1297 exec 5>config.log
1298 cat >&5 <<_ACEOF
1299 This file contains any messages produced by compilers while
1300 running configure, to aid debugging if configure makes a mistake.
1301
1302 It was created by Osi $as_me 0.108.0, which was
1303 generated by GNU Autoconf 2.59. Invocation command line was
1304
1305 $ $0 $@
1306
1307 _ACEOF
1308 {
1309 cat <<_ASUNAME
1310 ## --------- ##
1311 ## Platform. ##
1312 ## --------- ##
1313
1314 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1315 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1316 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1317 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1318 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1319
1320 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1321 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1322
1323 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1324 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1325 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1326 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1327 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1328 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1329 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1330
1331 _ASUNAME
1332
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 for as_dir in $PATH
1335 do
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 echo "PATH: $as_dir"
1339 done
1340
1341 } >&5
1342
1343 cat >&5 <<_ACEOF
1344
1345
1346 ## ----------- ##
1347 ## Core tests. ##
1348 ## ----------- ##
1349
1350 _ACEOF
1351
1352
1353 # Keep a trace of the command line.
1354 # Strip out --no-create and --no-recursion so they do not pile up.
1355 # Strip out --silent because we don't want to record it for future runs.
1356 # Also quote any args containing shell meta-characters.
1357 # Make two passes to allow for proper duplicate-argument suppression.
1358 ac_configure_args=
1359 ac_configure_args0=
1360 ac_configure_args1=
1361 ac_sep=
1362 ac_must_keep_next=false
1363 for ac_pass in 1 2
1364 do
1365 for ac_arg
1366 do
1367 case $ac_arg in
1368 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370 | -silent | --silent | --silen | --sile | --sil)
1371 continue ;;
1372 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1373 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1374 esac
1375 case $ac_pass in
1376 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1377 2)
1378 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1379 if test $ac_must_keep_next = true; then
1380 ac_must_keep_next=false # Got value, back to normal.
1381 else
1382 case $ac_arg in
1383 *=* | --config-cache | -C | -disable-* | --disable-* \
1384 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1385 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1386 | -with-* | --with-* | -without-* | --without-* | --x)
1387 case "$ac_configure_args0 " in
1388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1389 esac
1390 ;;
1391 -* ) ac_must_keep_next=true ;;
1392 esac
1393 fi
1394 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1395 # Get rid of the leading space.
1396 ac_sep=" "
1397 ;;
1398 esac
1399 done
1400 done
1401 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1402 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1403
1404 # When interrupted or exit'd, cleanup temporary files, and complete
1405 # config.log. We remove comments because anyway the quotes in there
1406 # would cause problems or look ugly.
1407 # WARNING: Be sure not to use single quotes in there, as some shells,
1408 # such as our DU 5.0 friend, will then `close' the trap.
1409 trap 'exit_status=$?
1410 # Save into config.log some information that might help in debugging.
1411 {
1412 echo
1413
1414 cat <<\_ASBOX
1415 ## ---------------- ##
1416 ## Cache variables. ##
1417 ## ---------------- ##
1418 _ASBOX
1419 echo
1420 # The following way of writing the cache mishandles newlines in values,
1421 {
1422 (set) 2>&1 |
1423 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1424 *ac_space=\ *)
1425 sed -n \
1426 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1428 ;;
1429 *)
1430 sed -n \
1431 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1432 ;;
1433 esac;
1434 }
1435 echo
1436
1437 cat <<\_ASBOX
1438 ## ----------------- ##
1439 ## Output variables. ##
1440 ## ----------------- ##
1441 _ASBOX
1442 echo
1443 for ac_var in $ac_subst_vars
1444 do
1445 eval ac_val=$`echo $ac_var`
1446 echo "$ac_var='"'"'$ac_val'"'"'"
1447 done | sort
1448 echo
1449
1450 if test -n "$ac_subst_files"; then
1451 cat <<\_ASBOX
1452 ## ------------- ##
1453 ## Output files. ##
1454 ## ------------- ##
1455 _ASBOX
1456 echo
1457 for ac_var in $ac_subst_files
1458 do
1459 eval ac_val=$`echo $ac_var`
1460 echo "$ac_var='"'"'$ac_val'"'"'"
1461 done | sort
1462 echo
1463 fi
1464
1465 if test -s confdefs.h; then
1466 cat <<\_ASBOX
1467 ## ----------- ##
1468 ## confdefs.h. ##
1469 ## ----------- ##
1470 _ASBOX
1471 echo
1472 sed "/^$/d" confdefs.h | sort
1473 echo
1474 fi
1475 test "$ac_signal" != 0 &&
1476 echo "$as_me: caught signal $ac_signal"
1477 echo "$as_me: exit $exit_status"
1478 } >&5
1479 rm -f core *.core &&
1480 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1481 exit $exit_status
1482 ' 0
1483 for ac_signal in 1 2 13 15; do
1484 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1485 done
1486 ac_signal=0
1487
1488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1489 rm -rf conftest* confdefs.h
1490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1491 echo >confdefs.h
1492
1493 # Predefined preprocessor variables.
1494
1495 cat >>confdefs.h <<_ACEOF
1496 #define PACKAGE_NAME "$PACKAGE_NAME"
1497 _ACEOF
1498
1499
1500 cat >>confdefs.h <<_ACEOF
1501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1502 _ACEOF
1503
1504
1505 cat >>confdefs.h <<_ACEOF
1506 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1507 _ACEOF
1508
1509
1510 cat >>confdefs.h <<_ACEOF
1511 #define PACKAGE_STRING "$PACKAGE_STRING"
1512 _ACEOF
1513
1514
1515 cat >>confdefs.h <<_ACEOF
1516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1517 _ACEOF
1518
1519
1520 # Let the site file select an alternate cache file if it wants to.
1521 # Prefer explicitly selected file to automatically selected ones.
1522 if test -z "$CONFIG_SITE"; then
1523 if test "x$prefix" != xNONE; then
1524 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1525 else
1526 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1527 fi
1528 fi
1529 for ac_site_file in $CONFIG_SITE; do
1530 if test -r "$ac_site_file"; then
1531 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1532 echo "$as_me: loading site script $ac_site_file" >&6;}
1533 sed 's/^/| /' "$ac_site_file" >&5
1534 . "$ac_site_file"
1535 fi
1536 done
1537
1538 if test -r "$cache_file"; then
1539 # Some versions of bash will fail to source /dev/null (special
1540 # files actually), so we avoid doing that.
1541 if test -f "$cache_file"; then
1542 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1543 echo "$as_me: loading cache $cache_file" >&6;}
1544 case $cache_file in
1545 [\\/]* | ?:[\\/]* ) . $cache_file;;
1546 *) . ./$cache_file;;
1547 esac
1548 fi
1549 else
1550 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1551 echo "$as_me: creating cache $cache_file" >&6;}
1552 >$cache_file
1553 fi
1554
1555 # Check that the precious variables saved in the cache have kept the same
1556 # value.
1557 ac_cache_corrupted=false
1558 for ac_var in `(set) 2>&1 |
1559 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1561 eval ac_new_set=\$ac_env_${ac_var}_set
1562 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1563 eval ac_new_val="\$ac_env_${ac_var}_value"
1564 case $ac_old_set,$ac_new_set in
1565 set,)
1566 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1567 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1568 ac_cache_corrupted=: ;;
1569 ,set)
1570 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1571 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1572 ac_cache_corrupted=: ;;
1573 ,);;
1574 *)
1575 if test "x$ac_old_val" != "x$ac_new_val"; then
1576 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1577 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1578 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1579 echo "$as_me: former value: $ac_old_val" >&2;}
1580 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1581 echo "$as_me: current value: $ac_new_val" >&2;}
1582 ac_cache_corrupted=:
1583 fi;;
1584 esac
1585 # Pass precious variables to config.status.
1586 if test "$ac_new_set" = set; then
1587 case $ac_new_val in
1588 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1589 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1590 *) ac_arg=$ac_var=$ac_new_val ;;
1591 esac
1592 case " $ac_configure_args " in
1593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1594 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1595 esac
1596 fi
1597 done
1598 if $ac_cache_corrupted; then
1599 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1600 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1601 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1602 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1603 { (exit 1); exit 1; }; }
1604 fi
1605
1606 ac_ext=c
1607 ac_cpp='$CPP $CPPFLAGS'
1608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641 # List one file in the package so that the configure script can test
1642 # whether the package is actually there
1643
1644
1645 # Where should everything be installed by default? Here, we want it
1646 # to be installed directly in 'bin', 'lib', 'include' subdirectories
1647 # of the directory where configure is run. The default would be
1648 # /usr/local.
1649
1650
1651 #############################################################################
1652 # Standard build tool stuff #
1653 #############################################################################
1654
1655 # Get the system type
1656 ac_aux_dir=
1657 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1658 if test -f $ac_dir/install-sh; then
1659 ac_aux_dir=$ac_dir
1660 ac_install_sh="$ac_aux_dir/install-sh -c"
1661 break
1662 elif test -f $ac_dir/install.sh; then
1663 ac_aux_dir=$ac_dir
1664 ac_install_sh="$ac_aux_dir/install.sh -c"
1665 break
1666 elif test -f $ac_dir/shtool; then
1667 ac_aux_dir=$ac_dir
1668 ac_install_sh="$ac_aux_dir/shtool install -c"
1669 break
1670 fi
1671 done
1672 if test -z "$ac_aux_dir"; then
1673 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1674 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1675 { (exit 1); exit 1; }; }
1676 fi
1677 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1678 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1679 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1680
1681 # Make sure we can run config.sub.
1682 $ac_config_sub sun4 >/dev/null 2>&1 ||
1683 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1684 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687 echo "$as_me:$LINENO: checking build system type" >&5
1688 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1689 if test "${ac_cv_build+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 ac_cv_build_alias=$build_alias
1693 test -z "$ac_cv_build_alias" &&
1694 ac_cv_build_alias=`$ac_config_guess`
1695 test -z "$ac_cv_build_alias" &&
1696 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1697 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1698 { (exit 1); exit 1; }; }
1699 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1702 { (exit 1); exit 1; }; }
1703
1704 fi
1705 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1706 echo "${ECHO_T}$ac_cv_build" >&6
1707 build=$ac_cv_build
1708 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
1713
1714 # A bit of initial setup
1715
1716 # As backup, we make sure we don't loose an FLIBS if it has been set
1717 # by the user
1718 save_FLIBS="$FLIBS"
1719
1720 # A useful makefile conditional that is always false
1721
1722
1723 if false; then
1724 ALWAYS_FALSE_TRUE=
1725 ALWAYS_FALSE_FALSE='#'
1726 else
1727 ALWAYS_FALSE_TRUE='#'
1728 ALWAYS_FALSE_FALSE=
1729 fi
1730
1731
1732 # We set the following variable so that we know later in AC_COIN_FINALIZE
1733 # that we are in a project main directory
1734 coin_projectdir=yes
1735
1736 # Set the project's version numbers
1737
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define OSI_VERSION "$PACKAGE_VERSION"
1741 _ACEOF
1742
1743
1744 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1745 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1746 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1747 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1748 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1749 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1750
1751 cat >>confdefs.h <<_ACEOF
1752 #define OSI_VERSION_MAJOR $coin_majorver
1753 _ACEOF
1754
1755
1756 cat >>confdefs.h <<_ACEOF
1757 #define OSI_VERSION_MINOR $coin_minorver
1758 _ACEOF
1759
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define OSI_VERSION_RELEASE $coin_releasever
1763 _ACEOF
1764
1765
1766 # We use the following variable to have a string with the upper case
1767 # version of the project name
1768 COIN_PRJCT=OSI
1769
1770 # Set the project's SVN revision number. The complicated sed expression
1771 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1772 # as a single number.
1773 # Extract the first word of "svnversion", so it can be a program name with args.
1774 set dummy svnversion; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_have_svnversion+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 if test -n "$have_svnversion"; then
1781 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_have_svnversion="yes"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794 done
1795 done
1796
1797 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1798 fi
1799 fi
1800 have_svnversion=$ac_cv_prog_have_svnversion
1801 if test -n "$have_svnversion"; then
1802 echo "$as_me:$LINENO: result: $have_svnversion" >&5
1803 echo "${ECHO_T}$have_svnversion" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809 if test "x$have_svnversion" = xyes; then
1810
1811 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1812 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1813 OSI_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define OSI_SVN_REV $OSI_SVN_REV
1817 _ACEOF
1818
1819 fi
1820 fi
1821
1822
1823
1824 # Capture libtool library version, if given.
1825 coin_libversion=14:0:13
1826
1827
1828
1829
1830 # Check if user wants to produce debugging code
1831
1832 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1833 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1834
1835 # Check whether --enable-debug or --disable-debug was given.
1836 if test "${enable_debug+set}" = set; then
1837 enableval="$enable_debug"
1838 case "${enableval}" in
1839 yes) coin_debug_compile=true
1840 if test "${enable_shared+set}" = set; then :; else
1841 enable_shared=no
1842 fi
1843 ;;
1844 no) coin_debug_compile=false
1845 ;;
1846 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1847 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1848 { (exit 1); exit 1; }; }
1849 ;;
1850 esac
1851 else
1852 coin_debug_compile=false
1853 fi;
1854
1855 # Check whether --enable-debug-osi or --disable-debug-osi was given.
1856 if test "${enable_debug_osi+set}" = set; then
1857 enableval="$enable_debug_osi"
1858 case "${enableval}" in
1859 yes) coin_debug_compile=true
1860 ;;
1861 no) coin_debug_compile=false
1862 ;;
1863 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-osi" >&5
1864 echo "$as_me: error: bad value ${enableval} for --enable-debug-osi" >&2;}
1865 { (exit 1); exit 1; }; }
1866 ;;
1867 esac
1868 else
1869 :
1870 fi;
1871
1872 # m4_ifvaln([Osi],
1873
1874 if test $coin_debug_compile = true; then
1875 echo "$as_me:$LINENO: result: yes" >&5
1876 echo "${ECHO_T}yes" >&6
1877 else
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882
1883 # Check whether --with-osi-verbosity or --without-osi-verbosity was given.
1884 if test "${with_osi_verbosity+set}" = set; then
1885 withval="$with_osi_verbosity"
1886 if test "$withval" = yes; then
1887 withval=1
1888 fi
1889 coin_osi_verbosity=$withval
1890 else
1891 coin_osi_verbosity=0
1892 fi;
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define COIN_OSI_VERBOSITY $coin_osi_verbosity
1896 _ACEOF
1897
1898
1899
1900 # Check whether --with-osi-checklevel or --without-osi-checklevel was given.
1901 if test "${with_osi_checklevel+set}" = set; then
1902 withval="$with_osi_checklevel"
1903 if test "$withval" = yes; then
1904 withval=1
1905 fi
1906 coin_osi_checklevel=$withval
1907 else
1908 coin_osi_checklevel=0
1909 fi;
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define COIN_OSI_CHECKLEVEL $coin_osi_checklevel
1913 _ACEOF
1914
1915
1916 # m4_ifvaln([Osi],
1917
1918
1919
1920 # Get the name of the C++ compiler and appropriate compiler options
1921
1922
1923 # for backward compatibility
1924 # Check whether --enable-doscompile or --disable-doscompile was given.
1925 if test "${enable_doscompile+set}" = set; then
1926 enableval="$enable_doscompile"
1927 enable_doscompile=$enableval
1928 else
1929 enable_doscompile=no
1930 fi;
1931
1932 # Check whether --enable-msvc or --disable-msvc was given.
1933 if test "${enable_msvc+set}" = set; then
1934 enableval="$enable_msvc"
1935 enable_msvc=$enableval
1936 else
1937 enable_msvc=no
1938 if test "$enable_doscompile" = msvc ; then
1939 enable_msvc=yes
1940 elif test "$enable_doscompile" != no ; then
1941 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1942 echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1943 { (exit 1); exit 1; }; }
1944 fi
1945
1946 fi;
1947
1948 if test "$enable_msvc" = MD; then
1949 enable_shared=yes
1950 enable_msvc=yes
1951 fi
1952
1953 if test "$enable_msvc" = yes; then
1954 case $build in
1955 *-cygwin* | *-mingw*) ;;
1956 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1957 echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1958 { (exit 1); exit 1; }; } ;;
1959 esac
1960 fi
1961
1962
1963
1964 ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969
1970
1971 # For consistency, we set the C compiler to the same value of the C++
1972 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1973 if test x"$CXX" != x; then
1974 case "$CXX" in
1975 clang* ) ;;
1976 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1977 if test x"$CC" = x; then
1978 CC="$CXX"
1979 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1980 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1981 fi
1982 ;;
1983 esac
1984 fi
1985
1986
1987
1988
1989
1990
1991 coin_has_cc=yes
1992
1993 save_cflags="$CFLAGS"
1994
1995 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1996 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
1997 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
1998 # compiler. In this case, put cc after gcc.
1999
2000 case $build in
2001 *-cygwin* | *-mingw*)
2002 if test "$enable_msvc" = yes ; then
2003 comps="icl cl gcc"
2004 else
2005 comps="gcc icl cl"
2006 fi ;;
2007 *-*-solaris*)
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$sol_cc_compiler"; then
2016 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2017 else
2018 ac_prog_rejected=no
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027 ac_prog_rejected=yes
2028 continue
2029 fi
2030 ac_cv_prog_sol_cc_compiler="cc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034 done
2035 done
2036
2037 if test $ac_prog_rejected = yes; then
2038 # We found a bogon in the path, so make sure we never use it.
2039 set dummy $ac_cv_prog_sol_cc_compiler
2040 shift
2041 if test $# != 0; then
2042 # We chose a different compiler from the bogus one.
2043 # However, it has the same basename, so the bogon will be chosen
2044 # first if we set sol_cc_compiler to just the basename; use the full file name.
2045 shift
2046 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2047 fi
2048 fi
2049 fi
2050 fi
2051 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2052 if test -n "$sol_cc_compiler"; then
2053 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2054 echo "${ECHO_T}$sol_cc_compiler" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060 if test "$sol_cc_compiler" = "cc" ; then
2061 comps="cc xlc gcc pgcc icc"
2062 else
2063 comps="xlc gcc pgcc icc cc"
2064 fi
2065 ;;
2066 *-*-darwin*) comps="clang gcc cc" ;;
2067 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2068 *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2069 *) comps="xlc_r xlc cc gcc pgcc icc" ;;
2070 esac
2071
2072 # We delete the cached value, since the test might not have been
2073 # performed with our choice of compilers earlier
2074 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2075 # AC_MSG_NOTICE([C compiler candidates: $comps])
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082 for ac_prog in $comps
2083 do
2084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 CC=$ac_cv_prog_CC
2111 if test -n "$CC"; then
2112 echo "$as_me:$LINENO: result: $CC" >&5
2113 echo "${ECHO_T}$CC" >&6
2114 else
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119 test -n "$CC" && break
2120 done
2121 fi
2122 if test -z "$CC"; then
2123 ac_ct_CC=$CC
2124 for ac_prog in $comps
2125 do
2126 # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test -n "$ac_ct_CC"; then
2134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_CC="$ac_prog"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153 if test -n "$ac_ct_CC"; then
2154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2155 echo "${ECHO_T}$ac_ct_CC" >&6
2156 else
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161 test -n "$ac_ct_CC" && break
2162 done
2163
2164 CC=$ac_ct_CC
2165 fi
2166
2167
2168 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2173
2174 # Provide some information about the compiler.
2175 echo "$as_me:$LINENO:" \
2176 "checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2179 (eval $ac_compiler --version </dev/null >&5) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2184 (eval $ac_compiler -v </dev/null >&5) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2189 (eval $ac_compiler -V </dev/null >&5) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }
2193
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200
2201 int
2202 main ()
2203 {
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 ac_clean_files_save=$ac_clean_files
2210 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2211 # Try to create an executable without -o first, disregard a.out.
2212 # It will help us diagnose broken compilers, and finding out an intuition
2213 # of exeext.
2214 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2215 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2216 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2217 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2218 (eval $ac_link_default) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # Find the output, starting from the most likely. This scheme is
2223 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2224 # resort.
2225
2226 # Be careful to initialize this variable, since it used to be cached.
2227 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2228 ac_cv_exeext=
2229 # b.out is created by i960 compilers.
2230 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2231 do
2232 test -f "$ac_file" || continue
2233 case $ac_file in
2234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2235 ;;
2236 conftest.$ac_ext )
2237 # This is the source file.
2238 ;;
2239 [ab].out )
2240 # We found the default executable, but exeext='' is most
2241 # certainly right.
2242 break;;
2243 *.* )
2244 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2245 # FIXME: I believe we export ac_cv_exeext for Libtool,
2246 # but it would be cool to find out if it's true. Does anybody
2247 # maintain Libtool? --akim.
2248 export ac_cv_exeext
2249 break;;
2250 * )
2251 break;;
2252 esac
2253 done
2254 else
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: C compiler cannot create executables
2261 See \`config.log' for more details." >&2;}
2262 { (exit 77); exit 77; }; }
2263 fi
2264
2265 ac_exeext=$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_file" >&5
2267 echo "${ECHO_T}$ac_file" >&6
2268
2269 # Check the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2272 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2273 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2274 # If not cross compiling, check that we can run a simple program.
2275 if test "$cross_compiling" != yes; then
2276 if { ac_try='./$ac_file'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 cross_compiling=no
2283 else
2284 if test "$cross_compiling" = maybe; then
2285 cross_compiling=yes
2286 else
2287 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295 fi
2296 fi
2297 echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6
2299
2300 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2301 ac_clean_files=$ac_clean_files_save
2302 # Check the compiler produces executables we can run. If not, either
2303 # the compiler is broken, or we cross compile.
2304 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2305 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2306 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2307 echo "${ECHO_T}$cross_compiling" >&6
2308
2309 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2310 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2312 (eval $ac_link) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2318 # work properly (i.e., refer to `conftest.exe'), while it won't with
2319 # `rm'.
2320 for ac_file in conftest.exe conftest conftest.*; do
2321 test -f "$ac_file" || continue
2322 case $ac_file in
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 export ac_cv_exeext
2326 break;;
2327 * ) break;;
2328 esac
2329 done
2330 else
2331 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2334 See \`config.log' for more details." >&2;}
2335 { (exit 1); exit 1; }; }
2336 fi
2337
2338 rm -f conftest$ac_cv_exeext
2339 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2340 echo "${ECHO_T}$ac_cv_exeext" >&6
2341
2342 rm -f conftest.$ac_ext
2343 EXEEXT=$ac_cv_exeext
2344 ac_exeext=$EXEEXT
2345 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2347 if test "${ac_cv_objext+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2356
2357 int
2358 main ()
2359 {
2360
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.o conftest.obj
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; then
2371 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2372 case $ac_file in
2373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2375 break;;
2376 esac
2377 done
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2385 See \`config.log' for more details." >&2;}
2386 { (exit 1); exit 1; }; }
2387 fi
2388
2389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390 fi
2391 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2392 echo "${ECHO_T}$ac_cv_objext" >&6
2393 OBJEXT=$ac_cv_objext
2394 ac_objext=$OBJEXT
2395 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2396 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2397 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h. */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2406
2407 int
2408 main ()
2409 {
2410 #ifndef __GNUC__
2411 choke me
2412 #endif
2413
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 ac_compiler_gnu=yes
2441 else
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 ac_compiler_gnu=no
2446 fi
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 CFLAGS="-g"
2457 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h. */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2468
2469 int
2470 main ()
2471 {
2472
2473 ;
2474 return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_cv_prog_cc_g=yes
2500 else
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 ac_cv_prog_cc_g=no
2505 fi
2506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507 fi
2508 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2509 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2510 if test "$ac_test_CFLAGS" = set; then
2511 CFLAGS=$ac_save_CFLAGS
2512 elif test $ac_cv_prog_cc_g = yes; then
2513 if test "$GCC" = yes; then
2514 CFLAGS="-g -O2"
2515 else
2516 CFLAGS="-g"
2517 fi
2518 else
2519 if test "$GCC" = yes; then
2520 CFLAGS="-O2"
2521 else
2522 CFLAGS=
2523 fi
2524 fi
2525 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2526 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2527 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 ac_cv_prog_cc_stdc=no
2531 ac_save_CC=$CC
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2538 #include <stdarg.h>
2539 #include <stdio.h>
2540 #include <sys/types.h>
2541 #include <sys/stat.h>
2542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2543 struct buf { int x; };
2544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2545 static char *e (p, i)
2546 char **p;
2547 int i;
2548 {
2549 return p[i];
2550 }
2551 static char *f (char * (*g) (char **, int), char **p, ...)
2552 {
2553 char *s;
2554 va_list v;
2555 va_start (v,p);
2556 s = g (p, va_arg (v,int));
2557 va_end (v);
2558 return s;
2559 }
2560
2561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2562 function prototypes and stuff, but not '\xHH' hex character constants.
2563 These don't provoke an error unfortunately, instead are silently treated
2564 as 'x'. The following induces an error, until -std1 is added to get
2565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2566 array size at least. It's necessary to write '\x00'==0 to get something
2567 that's true only with -std1. */
2568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2569
2570 int test (int i, double x);
2571 struct s1 {int (*f) (int a);};
2572 struct s2 {int (*f) (double a);};
2573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2574 int argc;
2575 char **argv;
2576 int
2577 main ()
2578 {
2579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 # Don't try gcc -ansi; that turns off useful extensions and
2585 # breaks some systems' header files.
2586 # AIX -qlanglvl=ansi
2587 # Ultrix and OSF/1 -std1
2588 # HP-UX 10.20 and later -Ae
2589 # HP-UX older versions -Aa -D_HPUX_SOURCE
2590 # SVR4 -Xc -D__EXTENSIONS__
2591 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2592 do
2593 CC="$ac_save_CC $ac_arg"
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_cv_prog_cc_stdc=$ac_arg
2617 break
2618 else
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622 fi
2623 rm -f conftest.err conftest.$ac_objext
2624 done
2625 rm -f conftest.$ac_ext conftest.$ac_objext
2626 CC=$ac_save_CC
2627
2628 fi
2629
2630 case "x$ac_cv_prog_cc_stdc" in
2631 x|xno)
2632 echo "$as_me:$LINENO: result: none needed" >&5
2633 echo "${ECHO_T}none needed" >&6 ;;
2634 *)
2635 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2637 CC="$CC $ac_cv_prog_cc_stdc" ;;
2638 esac
2639
2640 # Some people use a C++ compiler to compile C. Since we use `exit',
2641 # in C++ we need to declare it. In case someone uses the same compiler
2642 # for both compiling C and C++ we need to have the C++ compiler decide
2643 # the declaration of exit, since it's the most demanding environment.
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #ifndef __cplusplus
2646 choke me
2647 #endif
2648 _ACEOF
2649 rm -f conftest.$ac_objext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651 (eval $ac_compile) 2>conftest.er1
2652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -z "$ac_c_werror_flag"
2659 || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 for ac_declaration in \
2672 '' \
2673 'extern "C" void std::exit (int) throw (); using std::exit;' \
2674 'extern "C" void std::exit (int); using std::exit;' \
2675 'extern "C" void exit (int) throw ();' \
2676 'extern "C" void exit (int);' \
2677 'void exit (int);'
2678 do
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 $ac_declaration
2686 #include <stdlib.h>
2687 int
2688 main ()
2689 {
2690 exit (42);
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 :
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 continue
2723 fi
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2731 $ac_declaration
2732 int
2733 main ()
2734 {
2735 exit (42);
2736 ;
2737 return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 break
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 fi
2768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769 done
2770 rm -f conftest*
2771 if test -n "$ac_declaration"; then
2772 echo '#ifdef __cplusplus' >>confdefs.h
2773 echo $ac_declaration >>confdefs.h
2774 echo '#endif' >>confdefs.h
2775 fi
2776
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 fi
2782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788
2789 if test -z "$CC" ; then
2790 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2791 echo "$as_me: error: Failed to find a C compiler!" >&2;}
2792 { (exit 1); exit 1; }; }
2793 fi
2794 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2795 case "$CC" in
2796 clang* ) ;;
2797 cl* | */cl* | CL* | */CL* )
2798 if test "$ac_cv_prog_cc_g" = yes ; then
2799 ac_cv_prog_cc_g=no
2800 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2801 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2802 fi ;;
2803 * )
2804 if test x"$CYGPATH_W" = x ; then
2805 CYGPATH_W=echo
2806 fi
2807 ;;
2808 esac
2809 CFLAGS="$save_cflags"
2810
2811 # add automake conditional so we can recognize cl compiler in makefile
2812 coin_cc_is_cl=false
2813 case "$CC" in
2814 clang* ) ;;
2815 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2816 coin_cc_is_cl=true
2817 ;;
2818 esac
2819
2820
2821 if test $coin_cc_is_cl = true; then
2822 COIN_CC_IS_CL_TRUE=
2823 COIN_CC_IS_CL_FALSE='#'
2824 else
2825 COIN_CC_IS_CL_TRUE='#'
2826 COIN_CC_IS_CL_FALSE=
2827 fi
2828
2829
2830 # Check if a project specific CFLAGS variable has been set
2831 if test x$COIN_PRJCT != x; then
2832 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2833 if test x$coin_tmp = xset; then
2834 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2835 fi
2836 fi
2837
2838 if test x"$CFLAGS" = x; then
2839
2840 coin_add_cflags=
2841 coin_opt_cflags=
2842 coin_dbg_cflags=
2843 coin_warn_cflags=
2844
2845 if test "$GCC" = "yes"; then
2846 case "$CC" in
2847 icc* | */icc*)
2848 ;;
2849 *)
2850 coin_opt_cflags="-O3"
2851 coin_add_cflags="-pipe"
2852 coin_dbg_cflags="-g -O0"
2853 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2854 esac
2855 fi
2856 if test -z "$coin_opt_cflags"; then
2857 case $build in
2858 *-cygwin* | *-mingw*)
2859 case "$CC" in
2860 clang* ) ;;
2861 cl* | */cl* | CL* | */CL*)
2862 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2863 coin_opt_cflags='-MD -O2'
2864 coin_dbg_cflags='-MDd'
2865 else
2866 coin_opt_cflags='-MT -O2'
2867 coin_dbg_cflags='-MTd'
2868 fi
2869 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2870 ;;
2871 icl* | */icl* | ICL* | */ICL*)
2872 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2873 coin_opt_cflags='-MD -Ox'
2874 coin_dbg_cflags='-MDd -debug'
2875 else
2876 coin_opt_cflags='-MT -Ox'
2877 coin_dbg_cflags='-MTd -debug'
2878 fi
2879 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2880 ;;
2881 esac
2882 ;;
2883 *-linux-*)
2884 case "$CC" in
2885 icc* | */icc*)
2886 coin_opt_cflags="-O3 -ip -mp1"
2887 coin_add_cflags=""
2888 coin_dbg_cflags="-g"
2889 # Check if -i_dynamic is necessary (for new glibc library)
2890 CFLAGS=
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897
2898 int
2899 main ()
2900 {
2901 int i=0; i++;
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 :
2929 else
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 coin_add_cflags="-i_dynamic $coin_add_cflags"
2934 fi
2935 rm -f conftest.err conftest.$ac_objext \
2936 conftest$ac_exeext conftest.$ac_ext
2937 ;;
2938 pgcc* | */pgcc*)
2939 coin_opt_cflags="-fast"
2940 coin_add_cflags="-Kieee -pc 64"
2941 coin_dbg_cflags="-g"
2942 ;;
2943 esac
2944 ;;
2945 *-ibm-*)
2946 case "$CC" in
2947 xlc* | */xlc* | mpxlc* | */mpxlc*)
2948 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2949 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2950 coin_dbg_cflags="-g"
2951 ;;
2952 esac
2953 ;;
2954 *-hp-*)
2955 coin_opt_cflags="-O"
2956 coin_add_cflags="-Ae"
2957 coin_dbg_cflags="-g"
2958 ;;
2959 *-*-solaris*)
2960 coin_opt_cflags="-xO4"
2961 coin_dbg_cflags="-g"
2962 ;;
2963 *-sgi-*)
2964 coin_opt_cflags="-O -OPT:Olimit=0"
2965 coin_dbg_cflags="-g"
2966 ;;
2967 esac
2968 fi
2969
2970 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2971 coin_dbg_cflags="-g"
2972 fi
2973
2974 if test -z "$coin_opt_cflags"; then
2975 # Try if -O option works if nothing else is set
2976 CFLAGS="-O"
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983
2984 int
2985 main ()
2986 {
2987 int i=0; i++;
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.$ac_objext conftest$ac_exeext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2994 (eval $ac_link) 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag"
3002 || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest$ac_exeext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 coin_opt_cflags="-O"
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 fi
3020 rm -f conftest.err conftest.$ac_objext \
3021 conftest$ac_exeext conftest.$ac_ext
3022 fi
3023
3024 # if PM doesn't want the warning messages, take them out
3025 if test x"$coin_skip_warn_cflags" = xyes; then
3026 coin_warn_cflags=
3027 fi
3028
3029 if test x${DBG_CFLAGS+set} != xset; then
3030 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3031 fi
3032 if test x${OPT_CFLAGS+set} != xset; then
3033 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3034 fi
3035
3036 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3037 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3038
3039 if test "$coin_debug_compile" = "true"; then
3040 CFLAGS="$DBG_CFLAGS"
3041 else
3042 CFLAGS="$OPT_CFLAGS"
3043 fi
3044 else
3045 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3046 if test x${DBG_CFLAGS+set} != xset; then
3047 DBG_CFLAGS="$CFLAGS"
3048 fi
3049 if test x${OPT_CFLAGS+set} != xset; then
3050 OPT_CFLAGS="$CFLAGS"
3051 fi
3052 fi
3053
3054 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3055 if test x$COIN_PRJCT != x; then
3056 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3057 fi
3058
3059 # Try if CFLAGS works
3060 save_CFLAGS="$CFLAGS"
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067
3068 int
3069 main ()
3070 {
3071 int i=0; i++;
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext conftest$ac_exeext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest$ac_exeext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 :
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 CFLAGS=
3104 fi
3105 rm -f conftest.err conftest.$ac_objext \
3106 conftest$ac_exeext conftest.$ac_ext
3107 if test -z "$CFLAGS"; then
3108 { 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
3109 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;}
3110 CFLAGS='-O'
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121 int i=0; i++;
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext conftest$ac_exeext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3128 (eval $ac_link) 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest$ac_exeext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 :
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 CFLAGS=
3154 fi
3155 rm -f conftest.err conftest.$ac_objext \
3156 conftest$ac_exeext conftest.$ac_ext
3157 if test -z "$CFLAGS"; then
3158 { 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
3159 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;}
3160 fi
3161 fi
3162
3163 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3164 echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3165
3166
3167 if test x"$MPICC" = x; then :; else
3168 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3169 echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3170 CC="$MPICC"
3171 fi
3172
3173 # Correct the LD variable if we are using the MS or Intel-windows compiler
3174 case "$CC" in
3175 clang* ) ;;
3176 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3177 LD=link
3178 ;;
3179 esac
3180
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187
3188
3189 #Let's try if that overcomes configuration problem with VC++ 6.0
3190
3191 ac_ext=cc
3192 ac_cpp='$CXXCPP $CPPFLAGS'
3193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3196
3197
3198
3199
3200
3201
3202
3203 coin_has_cxx=yes
3204
3205 save_cxxflags="$CXXFLAGS"
3206 # For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3207 case $build in
3208 *-cygwin* | *-mingw*)
3209 if test "$enable_msvc" = yes ; then
3210 comps="icl cl g++"
3211 else
3212 comps="g++ icl cl"
3213 fi ;;
3214 *-*-solaris*)
3215 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3216 *-darwin*) comps="clang++ g++ c++ CC" ;;
3217 *-linux-gnu*)
3218 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3219 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3220 esac
3221
3222 # We delete the cached value, since the test might not have been
3223 # performed with our choice of compilers earlier
3224 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3225 # AC_MSG_NOTICE([C++ compiler candidates: $comps])
3226 ac_ext=cc
3227 ac_cpp='$CXXCPP $CPPFLAGS'
3228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3231 if test -n "$ac_tool_prefix"; then
3232 for ac_prog in $CCC $comps
3233 do
3234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_prog_CXX+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 if test -n "$CXX"; then
3242 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257
3258 fi
3259 fi
3260 CXX=$ac_cv_prog_CXX
3261 if test -n "$CXX"; then
3262 echo "$as_me:$LINENO: result: $CXX" >&5
3263 echo "${ECHO_T}$CXX" >&6
3264 else
3265 echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3267 fi
3268
3269 test -n "$CXX" && break
3270 done
3271 fi
3272 if test -z "$CXX"; then
3273 ac_ct_CXX=$CXX
3274 for ac_prog in $CCC $comps
3275 do
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$ac_ct_CXX"; then
3284 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CXX="$ac_prog"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299
3300 fi
3301 fi
3302 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3303 if test -n "$ac_ct_CXX"; then
3304 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3305 echo "${ECHO_T}$ac_ct_CXX" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3309 fi
3310
3311 test -n "$ac_ct_CXX" && break
3312 done
3313 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3314
3315 CXX=$ac_ct_CXX
3316 fi
3317
3318
3319 # Provide some information about the compiler.
3320 echo "$as_me:$LINENO:" \
3321 "checking for C++ compiler version" >&5
3322 ac_compiler=`set X $ac_compile; echo $2`
3323 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3324 (eval $ac_compiler --version </dev/null >&5) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }
3328 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3329 (eval $ac_compiler -v </dev/null >&5) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }
3333 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3334 (eval $ac_compiler -V </dev/null >&5) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }
3338
3339 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3340 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3341 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354 #ifndef __GNUC__
3355 choke me
3356 #endif
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_cxx_werror_flag"
3372 || test ! -s conftest.err'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; } &&
3378 { ac_try='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_compiler_gnu=yes
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 ac_compiler_gnu=no
3390 fi
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3393
3394 fi
3395 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3396 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3397 GXX=`test $ac_compiler_gnu = yes && echo yes`
3398 ac_test_CXXFLAGS=${CXXFLAGS+set}
3399 ac_save_CXXFLAGS=$CXXFLAGS
3400 CXXFLAGS="-g"
3401 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3402 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3403 if test "${ac_cv_prog_cxx_g+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_cxx_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_prog_cxx_g=yes
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_cv_prog_cxx_g=no
3449 fi
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 fi
3452 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3453 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3454 if test "$ac_test_CXXFLAGS" = set; then
3455 CXXFLAGS=$ac_save_CXXFLAGS
3456 elif test $ac_cv_prog_cxx_g = yes; then
3457 if test "$GXX" = yes; then
3458 CXXFLAGS="-g -O2"
3459 else
3460 CXXFLAGS="-g"
3461 fi
3462 else
3463 if test "$GXX" = yes; then
3464 CXXFLAGS="-O2"
3465 else
3466 CXXFLAGS=
3467 fi
3468 fi
3469 for ac_declaration in \
3470 '' \
3471 'extern "C" void std::exit (int) throw (); using std::exit;' \
3472 'extern "C" void std::exit (int); using std::exit;' \
3473 'extern "C" void exit (int) throw ();' \
3474 'extern "C" void exit (int);' \
3475 'void exit (int);'
3476 do
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 $ac_declaration
3484 #include <stdlib.h>
3485 int
3486 main ()
3487 {
3488 exit (42);
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_cxx_werror_flag"
3503 || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 :
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 continue
3521 fi
3522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 $ac_declaration
3530 int
3531 main ()
3532 {
3533 exit (42);
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_cxx_werror_flag"
3548 || test ! -s conftest.err'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 break
3561 else
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 fi
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567 done
3568 rm -f conftest*
3569 if test -n "$ac_declaration"; then
3570 echo '#ifdef __cplusplus' >>confdefs.h
3571 echo $ac_declaration >>confdefs.h
3572 echo '#endif' >>confdefs.h
3573 fi
3574
3575 ac_ext=cc
3576 ac_cpp='$CXXCPP $CPPFLAGS'
3577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3580
3581
3582 #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3583 #thus, we test here whether $CXX is actually working
3584 ac_ext=cc
3585 ac_cpp='$CXXCPP $CPPFLAGS'
3586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3589
3590 echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3591 echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602 int i=0;
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_cxx_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 echo "$as_me:$LINENO: result: yes" >&5
3630 echo "${ECHO_T}yes" >&6
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3637 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3638 echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3639 { (exit 1); exit 1; }; }
3640
3641 fi
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_ext=cc
3644 ac_cpp='$CXXCPP $CPPFLAGS'
3645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3648
3649
3650 coin_cxx_is_cl=false
3651 # It seems that we need to cleanup something here for the Windows
3652 case "$CXX" in
3653 clang* | */clang*) ;;
3654 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3655 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3656 mv confdefs.hh confdefs.h
3657 coin_cxx_is_cl=true
3658 ;;
3659 esac
3660
3661 # add automake conditional so we can recognize cl compiler in makefile
3662
3663
3664 if test $coin_cxx_is_cl = true; then
3665 COIN_CXX_IS_CL_TRUE=
3666 COIN_CXX_IS_CL_FALSE='#'
3667 else
3668 COIN_CXX_IS_CL_TRUE='#'
3669 COIN_CXX_IS_CL_FALSE=
3670 fi
3671
3672
3673 # Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3674 case "$CXX" in
3675 clang* ) ;;
3676 cl* | */cl* | CL* | */CL* )
3677 if test "$ac_cv_prog_cxx_g" = yes ; then
3678 ac_cv_prog_cxx_g=no
3679 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3680 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3681 fi ;;
3682 * )
3683 if test x"$CYGPATH_W" = x ; then
3684 CYGPATH_W=echo
3685 fi
3686 ;;
3687 esac
3688 CXXFLAGS="$save_cxxflags"
3689
3690 # Check if a project specific CXXFLAGS variable has been set
3691 if test x$COIN_PRJCT != x; then
3692 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3693 if test x$coin_tmp = xset; then
3694 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3695 fi
3696 fi
3697
3698 if test x"$CXXFLAGS" = x; then
3699
3700 # ToDo decide whether we want -DNDEBUG for optimization
3701 coin_add_cxxflags=
3702 coin_opt_cxxflags=
3703 coin_dbg_cxxflags=
3704 coin_warn_cxxflags=
3705
3706 if test "$GXX" = "yes"; then
3707 case "$CXX" in
3708 icpc* | */icpc*)
3709 ;;
3710 *)
3711 # ToDo decide about unroll-loops
3712 coin_opt_cxxflags="-O3"
3713 coin_add_cxxflags="-pipe"
3714 coin_dbg_cxxflags="-g -O0"
3715 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3716 esac
3717 fi
3718
3719 # Note that we do not need to cover GCC in the following tests.
3720
3721 if test -z "$coin_opt_cxxflags"; then
3722 case $build in
3723 *-cygwin* | *-mingw*)
3724 case "$CXX" in
3725 clang* ) ;;
3726 cl* | */cl* | CL* | */CL*)
3727 # The MT and MTd options are mutually exclusive
3728 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3729 coin_opt_cxxflags='-MD -O2'
3730 coin_dbg_cxxflags='-MDd'
3731 else
3732 coin_opt_cxxflags='-MT -O2'
3733 coin_dbg_cxxflags='-MTd'
3734 fi
3735 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3736 ;;
3737 icl* | */icl* | ICL* | */ICL*)
3738 # The MT and MTd options are mutually exclusive
3739 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3740 coin_opt_cxxflags='-MD -Ox'
3741 coin_dbg_cxxflags='-MDd -debug'
3742 else
3743 coin_opt_cxxflags='-MT -Ox'
3744 coin_dbg_cxxflags='-MTd -debug'
3745 fi
3746 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3747 ;;
3748 esac
3749 ;;
3750 *-linux-*)
3751 case "$CXX" in
3752 icpc* | */icpc*)
3753 coin_opt_cxxflags="-O3 -ip -mp1"
3754 coin_add_cxxflags=""
3755 coin_dbg_cxxflags="-g"
3756 # Check if -i_dynamic is necessary (for new glibc library)
3757 CXXFLAGS=
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768 int i=0; i++;
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 rm -f conftest.$ac_objext conftest$ac_exeext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775 (eval $ac_link) 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -z "$ac_cxx_werror_flag"
3783 || test ! -s conftest.err'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; } &&
3789 { ac_try='test -s conftest$ac_exeext'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 (eval $ac_try) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 :
3796 else
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3801 fi
3802 rm -f conftest.err conftest.$ac_objext \
3803 conftest$ac_exeext conftest.$ac_ext
3804 ;;
3805 pgCC* | */pgCC*)
3806 coin_opt_cxxflags="-fast"
3807 coin_add_cxxflags="-Kieee -pc 64"
3808 coin_dbg_cxxflags="-g"
3809 ;;
3810 esac
3811 ;;
3812 *-ibm-*)
3813 case "$CXX" in
3814 xlC* | */xlC* | mpxlC* | */mpxlC*)
3815 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3816 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3817 coin_dbg_cxxflags="-g"
3818 ;;
3819 esac
3820 ;;
3821 *-hp-*)
3822 case "$CXX" in
3823 aCC* | */aCC* )
3824 coin_opt_cxxflags="-O"
3825 coin_add_cxxflags="-AA"
3826 coin_dbg_cxxflags="-g"
3827 ;;
3828 esac
3829 ;;
3830 *-*-solaris*)
3831 coin_opt_cxxflags="-O4"
3832 coin_dbg_cxxflags="-g"
3833 ;;
3834 esac
3835 fi
3836
3837 # Generic flag settings. If these don't work, add a case above.
3838
3839 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3840 coin_dbg_cxxflags="-g"
3841 fi
3842
3843 if test -z "$coin_opt_cxxflags"; then
3844 # Try if -O option works if nothing else is set
3845 CXXFLAGS=-O
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852
3853 int
3854 main ()
3855 {
3856 int i=0; i++;
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext conftest$ac_exeext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863 (eval $ac_link) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_cxx_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 coin_opt_cxxflags="-O"
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 fi
3889 rm -f conftest.err conftest.$ac_objext \
3890 conftest$ac_exeext conftest.$ac_ext
3891 fi
3892
3893 # if PM doesn't want the warning messages, take them out
3894 if test x"$coin_skip_warn_cxxflags" = xyes; then
3895 coin_warn_cxxflags=
3896 fi
3897
3898 # Do final setup of flags based on values determined above.
3899
3900 if test x${DBG_CXXFLAGS+set} != xset; then
3901 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3902 fi
3903 if test x${OPT_CXXFLAGS+set} != xset; then
3904 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3905 fi
3906
3907 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3908 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3909
3910 if test "$coin_debug_compile" = "true"; then
3911 CXXFLAGS="$DBG_CXXFLAGS"
3912 else
3913 CXXFLAGS="$OPT_CXXFLAGS"
3914 fi
3915
3916 # Handle the case where CXXFLAGS was set externally.
3917 else
3918 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3919 if test x${DBG_CXXFLAGS+set} != xset; then
3920 DBG_CXXFLAGS="$CXXFLAGS"
3921 fi
3922 if test x${OPT_CXXFLAGS+set} != xset; then
3923 OPT_CXXFLAGS="$CXXFLAGS"
3924 fi
3925 fi
3926
3927 # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3928 if test x$COIN_PRJCT != x; then
3929 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3930 fi
3931
3932 # Try if CXXFLAGS works
3933 save_CXXFLAGS="$CXXFLAGS"
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940
3941 int
3942 main ()
3943 {
3944 int i=0; i++;
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest$ac_exeext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 :
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 CXXFLAGS=
3977 fi
3978 rm -f conftest.err conftest.$ac_objext \
3979 conftest$ac_exeext conftest.$ac_ext
3980 if test -z "$CXXFLAGS"; then
3981 { 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
3982 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;}
3983 CXXFLAGS='-O'
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990
3991 int
3992 main ()
3993 {
3994 int i=0; i++;
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.$ac_objext conftest$ac_exeext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4001 (eval $ac_link) 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_cxx_werror_flag"
4009 || test ! -s conftest.err'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 :
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 CXXFLAGS=
4027 fi
4028 rm -f conftest.err conftest.$ac_objext \
4029 conftest$ac_exeext conftest.$ac_ext
4030 if test -z "$CXXFLAGS"; then
4031 { 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
4032 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;}
4033 fi
4034 fi
4035
4036 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4037 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4038
4039
4040 if test x"$MPICXX" = x; then :; else
4041 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4042 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4043 CXX="$MPICXX"
4044 fi
4045
4046 # correct the LD variable in a build with MS or Intel-windows compiler
4047 case "$CXX" in
4048 clang* ) ;;
4049 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4050 LD=link
4051 ;;
4052 esac
4053
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
4060
4061
4062 # Initialize automake and libtool
4063 {
4064
4065
4066
4067 # START
4068
4069 coin_disable_shared=no
4070 # Test if force_shared has been set
4071 if test "x" = xforce_shared; then
4072 if test x$enable_shared = xno; then
4073 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4074 echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4075 { (exit 1); exit 1; }; }
4076 fi
4077 enable_shared=yes;
4078 else
4079 case $build in
4080 *-cygwin* | *-mingw*)
4081 coin_disable_shared=yes
4082 if test x"$enable_shared" = xyes; then
4083 case "$CC" in
4084 clang* )
4085 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4086 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4087 ;;
4088 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4089 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4090 echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4091 ;;
4092 *gcc*)
4093 if test x"$enable_dependency_linking" = xyes; then
4094 coin_disable_shared=no
4095 else
4096 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4097 echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4098 fi
4099 ;;
4100 *)
4101 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4102 echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4103 ;;
4104 esac
4105 fi
4106 ;;
4107 *-aix*)
4108 coin_disable_shared=yes
4109 platform=AIX
4110 if test x"$enable_shared" = xyes; then
4111 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4112 echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4113 fi
4114 ;;
4115 esac
4116 fi
4117 if test x"$coin_disable_shared" = xyes; then
4118 if test x"$enable_shared" = xyes; then
4119 :
4120 else
4121 # we don't disable shared, because it was not selected anyway
4122 coin_disable_shared=no
4123 fi
4124 enable_shared=no
4125 fi
4126 # By default, we only want the shared objects to be compiled
4127 # Check whether --enable-static or --disable-static was given.
4128 if test "${enable_static+set}" = set; then
4129 enableval="$enable_static"
4130 p=${PACKAGE-default}
4131 case $enableval in
4132 yes) enable_static=yes ;;
4133 no) enable_static=no ;;
4134 *)
4135 enable_static=no
4136 # Look at the argument we got. We use all the common list separators.
4137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4138 for pkg in $enableval; do
4139 IFS="$lt_save_ifs"
4140 if test "X$pkg" = "X$p"; then
4141 enable_static=yes
4142 fi
4143 done
4144 IFS="$lt_save_ifs"
4145 ;;
4146 esac
4147 else
4148 enable_static=no
4149 fi;
4150
4151
4152
4153
4154 # Initialize automake
4155 echo "$as_me:$LINENO: checking for egrep" >&5
4156 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4157 if test "${ac_cv_prog_egrep+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4161 then ac_cv_prog_egrep='grep -E'
4162 else ac_cv_prog_egrep='egrep'
4163 fi
4164 fi
4165 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4166 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4167 EGREP=$ac_cv_prog_egrep
4168
4169
4170 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4171 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4172 LN_S=$as_ln_s
4173 if test "$LN_S" = "ln -s"; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175 echo "${ECHO_T}yes" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4178 echo "${ECHO_T}no, using $LN_S" >&6
4179 fi
4180
4181 am__api_version="1.9"
4182 # Find a good install program. We prefer a C program (faster),
4183 # so one script is as good as another. But avoid the broken or
4184 # incompatible versions:
4185 # SysV /etc/install, /usr/sbin/install
4186 # SunOS /usr/etc/install
4187 # IRIX /sbin/install
4188 # AIX /bin/install
4189 # AmigaOS /C/install, which installs bootblocks on floppy discs
4190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4193 # OS/2's system install, which has a completely different semantic
4194 # ./install, which can be erroneously created by make from ./install.sh.
4195 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4196 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4197 if test -z "$INSTALL"; then
4198 if test "${ac_cv_path_install+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 # Account for people who put trailing slashes in PATH elements.
4207 case $as_dir/ in
4208 ./ | .// | /cC/* | \
4209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4210 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4211 /usr/ucb/* ) ;;
4212 *)
4213 # OSF1 and SCO ODT 3.0 have their own names for install.
4214 # Don't use installbsd from OSF since it installs stuff as root
4215 # by default.
4216 for ac_prog in ginstall scoinst install; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4219 if test $ac_prog = install &&
4220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4221 # AIX install. It has an incompatible calling convention.
4222 :
4223 elif test $ac_prog = install &&
4224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4225 # program-specific install script used by HP pwplus--don't use.
4226 :
4227 else
4228 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4229 break 3
4230 fi
4231 fi
4232 done
4233 done
4234 ;;
4235 esac
4236 done
4237
4238
4239 fi
4240 if test "${ac_cv_path_install+set}" = set; then
4241 INSTALL=$ac_cv_path_install
4242 else
4243 # As a last resort, use the slow shell script. We don't cache a
4244 # path for INSTALL within a source directory, because that will
4245 # break other packages using the cache if that directory is
4246 # removed, or if the path is relative.
4247 INSTALL=$ac_install_sh
4248 fi
4249 fi
4250 echo "$as_me:$LINENO: result: $INSTALL" >&5
4251 echo "${ECHO_T}$INSTALL" >&6
4252
4253 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4254 # It thinks the first close brace ends the variable substitution.
4255 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4256
4257 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4258
4259 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4260
4261 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4262 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4263 # Just in case
4264 sleep 1
4265 echo timestamp > conftest.file
4266 # Do `set' in a subshell so we don't clobber the current shell's
4267 # arguments. Must try -L first in case configure is actually a
4268 # symlink; some systems play weird games with the mod time of symlinks
4269 # (eg FreeBSD returns the mod time of the symlink's containing
4270 # directory).
4271 if (
4272 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4273 if test "$*" = "X"; then
4274 # -L didn't work.
4275 set X `ls -t $srcdir/configure conftest.file`
4276 fi
4277 rm -f conftest.file
4278 if test "$*" != "X $srcdir/configure conftest.file" \
4279 && test "$*" != "X conftest.file $srcdir/configure"; then
4280
4281 # If neither matched, then we have a broken ls. This can happen
4282 # if, for instance, CONFIG_SHELL is bash and it inherits a
4283 # broken ls alias from the environment. This has actually
4284 # happened. Such a system could not be considered "sane".
4285 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4286 alias in your environment" >&5
4287 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4288 alias in your environment" >&2;}
4289 { (exit 1); exit 1; }; }
4290 fi
4291
4292 test "$2" = conftest.file
4293 )
4294 then
4295 # Ok.
4296 :
4297 else
4298 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4299 Check your system clock" >&5
4300 echo "$as_me: error: newly created file is older than distributed files!
4301 Check your system clock" >&2;}
4302 { (exit 1); exit 1; }; }
4303 fi
4304 echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6
4306 test "$program_prefix" != NONE &&
4307 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4308 # Use a double $ so make ignores it.
4309 test "$program_suffix" != NONE &&
4310 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4311 # Double any \ or $. echo might interpret backslashes.
4312 # By default was `s,x,x', remove it if useless.
4313 cat <<\_ACEOF >conftest.sed
4314 s/[\\$]/&&/g;s/;s,x,x,$//
4315 _ACEOF
4316 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4317 rm conftest.sed
4318
4319 # expand $ac_aux_dir to an absolute path
4320 am_aux_dir=`cd $ac_aux_dir && pwd`
4321
4322 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4323 # Use eval to expand $SHELL
4324 if eval "$MISSING --run true"; then
4325 am_missing_run="$MISSING --run "
4326 else
4327 am_missing_run=
4328 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4329 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4330 fi
4331
4332 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4333 # We used to keeping the `.' as first argument, in order to
4334 # allow $(mkdir_p) to be used without argument. As in
4335 # $(mkdir_p) $(somedir)
4336 # where $(somedir) is conditionally defined. However this is wrong
4337 # for two reasons:
4338 # 1. if the package is installed by a user who cannot write `.'
4339 # make install will fail,
4340 # 2. the above comment should most certainly read
4341 # $(mkdir_p) $(DESTDIR)$(somedir)
4342 # so it does not work when $(somedir) is undefined and
4343 # $(DESTDIR) is not.
4344 # To support the latter case, we have to write
4345 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4346 # so the `.' trick is pointless.
4347 mkdir_p='mkdir -p --'
4348 else
4349 # On NextStep and OpenStep, the `mkdir' command does not
4350 # recognize any option. It will interpret all options as
4351 # directories to create, and then abort because `.' already
4352 # exists.
4353 for d in ./-p ./--version;
4354 do
4355 test -d $d && rmdir $d
4356 done
4357 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4358 if test -f "$ac_aux_dir/mkinstalldirs"; then
4359 mkdir_p='$(mkinstalldirs)'
4360 else
4361 mkdir_p='$(install_sh) -d'
4362 fi
4363 fi
4364
4365 for ac_prog in gawk mawk nawk awk
4366 do
4367 # Extract the first word of "$ac_prog", so it can be a program name with args.
4368 set dummy $ac_prog; ac_word=$2
4369 echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4371 if test "${ac_cv_prog_AWK+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 if test -n "$AWK"; then
4375 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_AWK="$ac_prog"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390
4391 fi
4392 fi
4393 AWK=$ac_cv_prog_AWK
4394 if test -n "$AWK"; then
4395 echo "$as_me:$LINENO: result: $AWK" >&5
4396 echo "${ECHO_T}$AWK" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4400 fi
4401
4402 test -n "$AWK" && break
4403 done
4404
4405 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4406 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4407 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4408 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411 cat >conftest.make <<\_ACEOF
4412 all:
4413 @echo 'ac_maketemp="$(MAKE)"'
4414 _ACEOF
4415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4416 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4417 if test -n "$ac_maketemp"; then
4418 eval ac_cv_prog_make_${ac_make}_set=yes
4419 else
4420 eval ac_cv_prog_make_${ac_make}_set=no
4421 fi
4422 rm -f conftest.make
4423 fi
4424 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4425 echo "$as_me:$LINENO: result: yes" >&5
4426 echo "${ECHO_T}yes" >&6
4427 SET_MAKE=
4428 else
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 SET_MAKE="MAKE=${MAKE-make}"
4432 fi
4433
4434 rm -rf .tst 2>/dev/null
4435 mkdir .tst 2>/dev/null
4436 if test -d .tst; then
4437 am__leading_dot=.
4438 else
4439 am__leading_dot=_
4440 fi
4441 rmdir .tst 2>/dev/null
4442
4443 DEPDIR="${am__leading_dot}deps"
4444
4445 ac_config_commands="$ac_config_commands depfiles"
4446
4447
4448 am_make=${MAKE-make}
4449 cat > confinc << 'END'
4450 am__doit:
4451 @echo done
4452 .PHONY: am__doit
4453 END
4454 # If we don't find an include directive, just comment out the code.
4455 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4456 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4457 am__include="#"
4458 am__quote=
4459 _am_result=none
4460 # First try GNU make style include.
4461 echo "include confinc" > confmf
4462 # We grep out `Entering directory' and `Leaving directory'
4463 # messages which can occur if `w' ends up in MAKEFLAGS.
4464 # In particular we don't look at `^make:' because GNU make might
4465 # be invoked under some other name (usually "gmake"), in which
4466 # case it prints its new name instead of `make'.
4467 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4468 am__include=include
4469 am__quote=
4470 _am_result=GNU
4471 fi
4472 # Now try BSD make style include.
4473 if test "$am__include" = "#"; then
4474 echo '.include "confinc"' > confmf
4475 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4476 am__include=.include
4477 am__quote="\""
4478 _am_result=BSD
4479 fi
4480 fi
4481
4482
4483 echo "$as_me:$LINENO: result: $_am_result" >&5
4484 echo "${ECHO_T}$_am_result" >&6
4485 rm -f confinc confmf
4486
4487 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4488 if test "${enable_dependency_tracking+set}" = set; then
4489 enableval="$enable_dependency_tracking"
4490
4491 fi;
4492 if test "x$enable_dependency_tracking" != xno; then
4493 am_depcomp="$ac_aux_dir/depcomp"
4494 AMDEPBACKSLASH='\'
4495 fi
4496
4497
4498 if test "x$enable_dependency_tracking" != xno; then
4499 AMDEP_TRUE=
4500 AMDEP_FALSE='#'
4501 else
4502 AMDEP_TRUE='#'
4503 AMDEP_FALSE=
4504 fi
4505
4506
4507
4508
4509
4510
4511 # AC_MSG_NOTICE([Beginning automake initialisation.])
4512 # Stuff for automake
4513 # test to see if srcdir already configured
4514 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4515 test -f $srcdir/config.status; then
4516 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4517 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4518 { (exit 1); exit 1; }; }
4519 fi
4520
4521 # test whether we have cygpath
4522 if test -z "$CYGPATH_W"; then
4523 if (cygpath --version) >/dev/null 2>/dev/null; then
4524 CYGPATH_W='cygpath -w'
4525 else
4526 CYGPATH_W=echo
4527 fi
4528 fi
4529
4530
4531 # Define the identity of the package.
4532 PACKAGE='osi'
4533 VERSION='0.108.0'
4534
4535
4536 cat >>confdefs.h <<_ACEOF
4537 #define PACKAGE "$PACKAGE"
4538 _ACEOF
4539
4540
4541 cat >>confdefs.h <<_ACEOF
4542 #define VERSION "$VERSION"
4543 _ACEOF
4544
4545 # Some tools Automake needs.
4546
4547 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4548
4549
4550 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4551
4552
4553 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4554
4555
4556 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4557
4558
4559 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4560
4561 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4562
4563 # Installed binaries are usually stripped using `strip' when the user
4564 # run `make install-strip'. However `strip' might not be the right
4565 # tool to use in cross-compilation environments, therefore Automake
4566 # will honor the `STRIP' environment variable to overrule this program.
4567 if test "$cross_compiling" != no; then
4568 if test -n "$ac_tool_prefix"; then
4569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}strip; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_STRIP+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test -n "$STRIP"; then
4577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592
4593 fi
4594 fi
4595 STRIP=$ac_cv_prog_STRIP
4596 if test -n "$STRIP"; then
4597 echo "$as_me:$LINENO: result: $STRIP" >&5
4598 echo "${ECHO_T}$STRIP" >&6
4599 else
4600 echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4602 fi
4603
4604 fi
4605 if test -z "$ac_cv_prog_STRIP"; then
4606 ac_ct_STRIP=$STRIP
4607 # Extract the first word of "strip", so it can be a program name with args.
4608 set dummy strip; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$ac_ct_STRIP"; then
4615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_ac_ct_STRIP="strip"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630
4631 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4632 fi
4633 fi
4634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4635 if test -n "$ac_ct_STRIP"; then
4636 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4637 echo "${ECHO_T}$ac_ct_STRIP" >&6
4638 else
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643 STRIP=$ac_ct_STRIP
4644 else
4645 STRIP="$ac_cv_prog_STRIP"
4646 fi
4647
4648 fi
4649 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4650
4651 # We need awk for the "check" target. The system "awk" is bad on
4652 # some platforms.
4653 # Always define AMTAR for backward compatibility.
4654
4655 AMTAR=${AMTAR-"${am_missing_run}tar"}
4656
4657 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4658
4659
4660
4661
4662 depcc="$CC" am_compiler_list=
4663
4664 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4665 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4666 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4670 # We make a subdir and do the tests there. Otherwise we can end up
4671 # making bogus files that we don't know about and never remove. For
4672 # instance it was reported that on HP-UX the gcc test will end up
4673 # making a dummy file named `D' -- because `-MD' means `put the output
4674 # in D'.
4675 mkdir conftest.dir
4676 # Copy depcomp to subdir because otherwise we won't find it if we're
4677 # using a relative directory.
4678 cp "$am_depcomp" conftest.dir
4679 cd conftest.dir
4680 # We will build objects and dependencies in a subdirectory because
4681 # it helps to detect inapplicable dependency modes. For instance
4682 # both Tru64's cc and ICC support -MD to output dependencies as a
4683 # side effect of compilation, but ICC will put the dependencies in
4684 # the current directory while Tru64 will put them in the object
4685 # directory.
4686 mkdir sub
4687
4688 am_cv_CC_dependencies_compiler_type=none
4689 if test "$am_compiler_list" = ""; then
4690 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4691 fi
4692 for depmode in $am_compiler_list; do
4693 # Setup a source with many dependencies, because some compilers
4694 # like to wrap large dependency lists on column 80 (with \), and
4695 # we should not choose a depcomp mode which is confused by this.
4696 #
4697 # We need to recreate these files for each test, as the compiler may
4698 # overwrite some of them when testing with obscure command lines.
4699 # This happens at least with the AIX C compiler.
4700 : > sub/conftest.c
4701 for i in 1 2 3 4 5 6; do
4702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4704 # Solaris 8's {/usr,}/bin/sh.
4705 touch sub/conftst$i.h
4706 done
4707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4708
4709 case $depmode in
4710 nosideeffect)
4711 # after this tag, mechanisms are not by side-effect, so they'll
4712 # only be used when explicitly requested
4713 if test "x$enable_dependency_tracking" = xyes; then
4714 continue
4715 else
4716 break
4717 fi
4718 ;;
4719 none) break ;;
4720 esac
4721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4722 # mode. It turns out that the SunPro C++ compiler does not properly
4723 # handle `-M -o', and we need to detect this.
4724 if depmode=$depmode \
4725 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4727 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4728 >/dev/null 2>conftest.err &&
4729 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4730 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4731 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4732 # icc doesn't choke on unknown options, it will just issue warnings
4733 # or remarks (even with -Werror). So we grep stderr for any message
4734 # that says an option was ignored or not supported.
4735 # When given -MP, icc 7.0 and 7.1 complain thusly:
4736 # icc: Command line warning: ignoring option '-M'; no argument required
4737 # The diagnosis changed in icc 8.0:
4738 # icc: Command line remark: option '-MP' not supported
4739 if (grep 'ignoring option' conftest.err ||
4740 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4741 am_cv_CC_dependencies_compiler_type=$depmode
4742 break
4743 fi
4744 fi
4745 done
4746
4747 cd ..
4748 rm -rf conftest.dir
4749 else
4750 am_cv_CC_dependencies_compiler_type=none
4751 fi
4752
4753 fi
4754 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4755 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4756 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4757
4758
4759
4760 if
4761 test "x$enable_dependency_tracking" != xno \
4762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4763 am__fastdepCC_TRUE=
4764 am__fastdepCC_FALSE='#'
4765 else
4766 am__fastdepCC_TRUE='#'
4767 am__fastdepCC_FALSE=
4768 fi
4769
4770
4771 depcc="$CXX" am_compiler_list=
4772
4773 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4774 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4775 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4779 # We make a subdir and do the tests there. Otherwise we can end up
4780 # making bogus files that we don't know about and never remove. For
4781 # instance it was reported that on HP-UX the gcc test will end up
4782 # making a dummy file named `D' -- because `-MD' means `put the output
4783 # in D'.
4784 mkdir conftest.dir
4785 # Copy depcomp to subdir because otherwise we won't find it if we're
4786 # using a relative directory.
4787 cp "$am_depcomp" conftest.dir
4788 cd conftest.dir
4789 # We will build objects and dependencies in a subdirectory because
4790 # it helps to detect inapplicable dependency modes. For instance
4791 # both Tru64's cc and ICC support -MD to output dependencies as a
4792 # side effect of compilation, but ICC will put the dependencies in
4793 # the current directory while Tru64 will put them in the object
4794 # directory.
4795 mkdir sub
4796
4797 am_cv_CXX_dependencies_compiler_type=none
4798 if test "$am_compiler_list" = ""; then
4799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4800 fi
4801 for depmode in $am_compiler_list; do
4802 # Setup a source with many dependencies, because some compilers
4803 # like to wrap large dependency lists on column 80 (with \), and
4804 # we should not choose a depcomp mode which is confused by this.
4805 #
4806 # We need to recreate these files for each test, as the compiler may
4807 # overwrite some of them when testing with obscure command lines.
4808 # This happens at least with the AIX C compiler.
4809 : > sub/conftest.c
4810 for i in 1 2 3 4 5 6; do
4811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4813 # Solaris 8's {/usr,}/bin/sh.
4814 touch sub/conftst$i.h
4815 done
4816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4817
4818 case $depmode in
4819 nosideeffect)
4820 # after this tag, mechanisms are not by side-effect, so they'll
4821 # only be used when explicitly requested
4822 if test "x$enable_dependency_tracking" = xyes; then
4823 continue
4824 else
4825 break
4826 fi
4827 ;;
4828 none) break ;;
4829 esac
4830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4831 # mode. It turns out that the SunPro C++ compiler does not properly
4832 # handle `-M -o', and we need to detect this.
4833 if depmode=$depmode \
4834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4837 >/dev/null 2>conftest.err &&
4838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4841 # icc doesn't choke on unknown options, it will just issue warnings
4842 # or remarks (even with -Werror). So we grep stderr for any message
4843 # that says an option was ignored or not supported.
4844 # When given -MP, icc 7.0 and 7.1 complain thusly:
4845 # icc: Command line warning: ignoring option '-M'; no argument required
4846 # The diagnosis changed in icc 8.0:
4847 # icc: Command line remark: option '-MP' not supported
4848 if (grep 'ignoring option' conftest.err ||
4849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4850 am_cv_CXX_dependencies_compiler_type=$depmode
4851 break
4852 fi
4853 fi
4854 done
4855
4856 cd ..
4857 rm -rf conftest.dir
4858 else
4859 am_cv_CXX_dependencies_compiler_type=none
4860 fi
4861
4862 fi
4863 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4864 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4865 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4866
4867
4868
4869 if
4870 test "x$enable_dependency_tracking" != xno \
4871 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4872 am__fastdepCXX_TRUE=
4873 am__fastdepCXX_FALSE='#'
4874 else
4875 am__fastdepCXX_TRUE='#'
4876 am__fastdepCXX_FALSE=
4877 fi
4878
4879
4880
4881 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4882 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4883 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4884 if test "${enable_maintainer_mode+set}" = set; then
4885 enableval="$enable_maintainer_mode"
4886 USE_MAINTAINER_MODE=$enableval
4887 else
4888 USE_MAINTAINER_MODE=no
4889 fi;
4890 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4891 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4892
4893
4894 if test $USE_MAINTAINER_MODE = yes; then
4895 MAINTAINER_MODE_TRUE=
4896 MAINTAINER_MODE_FALSE='#'
4897 else
4898 MAINTAINER_MODE_TRUE='#'
4899 MAINTAINER_MODE_FALSE=
4900 fi
4901
4902 MAINT=$MAINTAINER_MODE_TRUE
4903
4904
4905
4906 coin_have_externals=no
4907 if test "$enable_maintainer_mode" = yes; then
4908
4909 # If maintainer mode is chosen, we make sure that the correct versions
4910 # of the tools are used, and that we know where libtool.m4 is (to
4911 # recreate acinclude.m4)
4912
4913
4914 LIBTOOLM4=
4915 # Normally, $HOME
4916 AUTOTOOLS_DFLT=$HOME
4917
4918 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4919 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4920 if test "${ac_cv_use_correct_autotools+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 ac_cv_use_correct_autotools=check
4924 fi
4925 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4926 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4927
4928 if test $ac_cv_use_correct_autotools = check; then
4929 ac_cv_use_correct_autotools=yes
4930 # Check if we have autoconf
4931 # Extract the first word of "autoconf", so it can be a program name with args.
4932 set dummy autoconf; ac_word=$2
4933 echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935 if test "${ac_cv_prog_have_autoconf+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 if test -n "$have_autoconf"; then
4939 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948 ac_cv_prog_have_autoconf="yes"
4949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4951 fi
4952 done
4953 done
4954
4955 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4956 fi
4957 fi
4958 have_autoconf=$ac_cv_prog_have_autoconf
4959 if test -n "$have_autoconf"; then
4960 echo "$as_me:$LINENO: result: $have_autoconf" >&5
4961 echo "${ECHO_T}$have_autoconf" >&6
4962 else
4963 echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965 fi
4966
4967 if test $have_autoconf = no; then
4968 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4969 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4970 { (exit 1); exit 1; }; }
4971 fi
4972
4973 # Check whether autoconf is the correct version
4974 correct_version='2.59'
4975 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
4976 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4977 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4978 autoconf --version > confauto.out 2>&1
4979 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6
4982 else
4983 rm -f confauto.out
4984 echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6
4986 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4987 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4988 { (exit 1); exit 1; }; }
4989 fi
4990 rm -f confauto.out
4991
4992 # Check if the executable autoconf is picked up from the correct location
4993 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4994 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4995 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4996 autoconf_dir=`cd $autoconf_dir; pwd`
4997 if test x$AUTOTOOLS_DIR = x; then
4998 want_dir=$AUTOTOOLS_DFLT/bin
4999 else
5000 want_dir=$AUTOTOOLS_DIR/bin
5001 fi
5002 if test $autoconf_dir = `cd $want_dir; pwd`; then
5003 echo "$as_me:$LINENO: result: yes" >&5
5004 echo "${ECHO_T}yes" >&6
5005 else
5006 rm -f confauto.out
5007 echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5009 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5010 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5011 { (exit 1); exit 1; }; }
5012 fi
5013
5014 # Check if we have automake
5015 # Extract the first word of "automake", so it can be a program name with args.
5016 set dummy automake; ac_word=$2
5017 echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019 if test "${ac_cv_prog_have_automake+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 if test -n "$have_automake"; then
5023 ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_have_automake="yes"
5033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038
5039 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5040 fi
5041 fi
5042 have_automake=$ac_cv_prog_have_automake
5043 if test -n "$have_automake"; then
5044 echo "$as_me:$LINENO: result: $have_automake" >&5
5045 echo "${ECHO_T}$have_automake" >&6
5046 else
5047 echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5049 fi
5050
5051 if test $have_automake = no; then
5052 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5053 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5054 { (exit 1); exit 1; }; }
5055 fi
5056
5057 # Check whether automake is the correct version
5058 correct_version='1.9.6'
5059 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5060 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5061 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5062 automake --version > confauto.out 2>&1
5063 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5064 echo "$as_me:$LINENO: result: yes" >&5
5065 echo "${ECHO_T}yes" >&6
5066 else
5067 rm -f confauto.out
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5071 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5072 { (exit 1); exit 1; }; }
5073 fi
5074 rm -f confauto.out
5075
5076 # Check if the executable automake is picked up from the correct location
5077 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5078 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5079 automake_dir=`which automake | sed -e 's=/automake=='`
5080 automake_dir=`cd $automake_dir; pwd`
5081 if test x$AUTOTOOLS_DIR = x; then
5082 want_dir=$AUTOTOOLS_DFLT/bin
5083 else
5084 want_dir=$AUTOTOOLS_DIR/bin
5085 fi
5086 if test $automake_dir = `cd $want_dir; pwd`; then
5087 echo "$as_me:$LINENO: result: yes" >&5
5088 echo "${ECHO_T}yes" >&6
5089 else
5090 rm -f confauto.out
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5093 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5094 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5095 { (exit 1); exit 1; }; }
5096 fi
5097
5098 # Check if this is the correct version of libtool (with escaped dots)
5099 if test x$AUTOTOOLS_DIR = x; then
5100 want_dir=$AUTOTOOLS_DFLT/share
5101 else
5102 want_dir=$AUTOTOOLS_DIR/share
5103 fi
5104 correct_version='1.5.22'
5105 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'`
5106 if test -r $want_dir/libtool/ltmain.sh; then
5107 have_ltmain=yes
5108 :
5109 else
5110 have_ltmain=no
5111 :
5112 fi
5113
5114 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5115 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5116 if test $have_ltmain = yes; then
5117 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5118 echo "$as_me:$LINENO: result: yes" >&5
5119 echo "${ECHO_T}yes" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5123 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5124 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5125 { (exit 1); exit 1; }; }
5126 fi
5127 else
5128 echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5131 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5132 { (exit 1); exit 1; }; }
5133 fi
5134 fi
5135
5136 # Check if we can find the libtool file
5137 if test x$AUTOTOOLS_DIR = x; then
5138 want_dir=$AUTOTOOLS_DFLT/share
5139 else
5140 want_dir=$AUTOTOOLS_DIR/share
5141 fi
5142 if test -r $want_dir/aclocal/libtool.m4; then
5143 LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5144 :
5145 else
5146 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5147 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5148 { (exit 1); exit 1; }; }
5149 :
5150 fi
5151
5152
5153 # Check if we have an Dependencies file
5154 if test -r $srcdir/Dependencies; then
5155 coin_have_externals=yes
5156 fi
5157 # Check if subversion is installed and understands https
5158 # Extract the first word of "svn", so it can be a program name with args.
5159 set dummy svn; 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_have_svn+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$have_svn"; then
5166 ac_cv_prog_have_svn="$have_svn" # 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_have_svn="yes"
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 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5183 fi
5184 fi
5185 have_svn=$ac_cv_prog_have_svn
5186 if test -n "$have_svn"; then
5187 echo "$as_me:$LINENO: result: $have_svn" >&5
5188 echo "${ECHO_T}$have_svn" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5192 fi
5193
5194 if test x$have_svn = xyes; then
5195 echo "$as_me:$LINENO: checking whether svn understands https" >&5
5196 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5197 if test "${ac_cv_svn_understands_https+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 svn --version > confauto.out 2>&1
5201 if $EGREP https confauto.out >/dev/null 2>&1; then
5202 ac_cv_svn_understands_https=yes
5203 else
5204 ac_cv_svn_understands_https=no
5205 have_svn=no
5206 ac_cv_prog_have_svn=no
5207 fi
5208 rm -f confauto.out
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5211 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5212 fi
5213
5214 # Find the location of the BuildTools directory
5215 BUILDTOOLSDIR=
5216 if test -r $srcdir/BuildTools/coin.m4; then
5217 BUILDTOOLSDIR=$srcdir/BuildTools
5218 else
5219 if test -r $srcdir/../BuildTools/coin.m4; then
5220 BUILDTOOLSDIR=$srcdir/../BuildTools
5221 else
5222 if test -r $srcdir/../../BuildTools/coin.m4; then
5223 BUILDTOOLSDIR=$srcdir/../../BuildTools
5224 else
5225 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5226 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5227 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5228 fi
5229 fi
5230 fi
5231
5232
5233 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5234 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5235 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5236 fi
5237
5238 # The following variable is set to the name of the directory where
5239 # the autotool scripts are located
5240
5241 AUX_DIR=$ac_aux_dir
5242 fi
5243
5244 # helpful variable for the base directory of this package
5245 abs_source_dir=`cd $srcdir; pwd`
5246
5247
5248 # Stuff for example Makefiles
5249 if test x$prefix = xNONE; then
5250 full_prefix=$ac_default_prefix
5251 else
5252 full_prefix=$prefix
5253 fi
5254 full_prefix=`cd $full_prefix ; pwd`
5255
5256 abs_lib_dir=$full_prefix/lib
5257
5258 abs_include_dir=$full_prefix/include
5259
5260 abs_bin_dir=$full_prefix/bin
5261
5262
5263
5264 if test $coin_have_externals = yes && test x$have_svn = xyes; then
5265 HAVE_EXTERNALS_TRUE=
5266 HAVE_EXTERNALS_FALSE='#'
5267 else
5268 HAVE_EXTERNALS_TRUE='#'
5269 HAVE_EXTERNALS_FALSE=
5270 fi
5271
5272
5273 # AC_MSG_NOTICE([End automake initialisation.])
5274
5275
5276
5277 LIBTOOL=
5278 if test -f ../libtool; then
5279 coin_config_dir=..
5280 LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5281 fi
5282 if test "x$LIBTOOL" = x; then
5283 if test -f ../../libtool; then
5284 coin_config_dir=../..
5285 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5286 fi
5287 fi
5288
5289 if test "x$LIBTOOL" = x; then
5290 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5291 # Stuff for libtool
5292 # Check whether --enable-shared or --disable-shared was given.
5293 if test "${enable_shared+set}" = set; then
5294 enableval="$enable_shared"
5295 p=${PACKAGE-default}
5296 case $enableval in
5297 yes) enable_shared=yes ;;
5298 no) enable_shared=no ;;
5299 *)
5300 enable_shared=no
5301 # Look at the argument we got. We use all the common list separators.
5302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5303 for pkg in $enableval; do
5304 IFS="$lt_save_ifs"
5305 if test "X$pkg" = "X$p"; then
5306 enable_shared=yes
5307 fi
5308 done
5309 IFS="$lt_save_ifs"
5310 ;;
5311 esac
5312 else
5313 enable_shared=yes
5314 fi;
5315
5316 # Check whether --enable-fast-install or --disable-fast-install was given.
5317 if test "${enable_fast_install+set}" = set; then
5318 enableval="$enable_fast_install"
5319 p=${PACKAGE-default}
5320 case $enableval in
5321 yes) enable_fast_install=yes ;;
5322 no) enable_fast_install=no ;;
5323 *)
5324 enable_fast_install=no
5325 # Look at the argument we got. We use all the common list separators.
5326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5327 for pkg in $enableval; do
5328 IFS="$lt_save_ifs"
5329 if test "X$pkg" = "X$p"; then
5330 enable_fast_install=yes
5331 fi
5332 done
5333 IFS="$lt_save_ifs"
5334 ;;
5335 esac
5336 else
5337 enable_fast_install=yes
5338 fi;
5339
5340 echo "$as_me:$LINENO: checking host system type" >&5
5341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5342 if test "${ac_cv_host+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 ac_cv_host_alias=$host_alias
5346 test -z "$ac_cv_host_alias" &&
5347 ac_cv_host_alias=$ac_cv_build_alias
5348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5351 { (exit 1); exit 1; }; }
5352
5353 fi
5354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5355 echo "${ECHO_T}$ac_cv_host" >&6
5356 host=$ac_cv_host
5357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5360
5361
5362 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5363 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5364 if test "${lt_cv_path_SED+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 # Loop through the user's path and test for sed and gsed.
5368 # Then use that list of sed's as ones to test for truncation.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for lt_ac_prog in sed gsed; do
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5377 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5378 fi
5379 done
5380 done
5381 done
5382 lt_ac_max=0
5383 lt_ac_count=0
5384 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5385 # along with /bin/sed that truncates output.
5386 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5387 test ! -f $lt_ac_sed && continue
5388 cat /dev/null > conftest.in
5389 lt_ac_count=0
5390 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5391 # Check for GNU sed and select it if it is found.
5392 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5393 lt_cv_path_SED=$lt_ac_sed
5394 break
5395 fi
5396 while true; do
5397 cat conftest.in conftest.in >conftest.tmp
5398 mv conftest.tmp conftest.in
5399 cp conftest.in conftest.nl
5400 echo >>conftest.nl
5401 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5402 cmp -s conftest.out conftest.nl || break
5403 # 10000 chars as input seems more than enough
5404 test $lt_ac_count -gt 10 && break
5405 lt_ac_count=`expr $lt_ac_count + 1`
5406 if test $lt_ac_count -gt $lt_ac_max; then
5407 lt_ac_max=$lt_ac_count
5408 lt_cv_path_SED=$lt_ac_sed
5409 fi
5410 done
5411 done
5412
5413 fi
5414
5415 SED=$lt_cv_path_SED
5416 echo "$as_me:$LINENO: result: $SED" >&5
5417 echo "${ECHO_T}$SED" >&6
5418
5419
5420 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5421 if test "${with_gnu_ld+set}" = set; then
5422 withval="$with_gnu_ld"
5423 test "$withval" = no || with_gnu_ld=yes
5424 else
5425 with_gnu_ld=no
5426 fi;
5427 ac_prog=ld
5428 if test "$GCC" = yes; then
5429 # Check if gcc -print-prog-name=ld gives a path.
5430 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5432 case $host in
5433 *-*-mingw*)
5434 # gcc leaves a trailing carriage return which upsets mingw
5435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5436 *)
5437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5438 esac
5439 case $ac_prog in
5440 # Accept absolute paths.
5441 [\\/]* | ?:[\\/]*)
5442 re_direlt='/[^/][^/]*/\.\./'
5443 # Canonicalize the pathname of ld
5444 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5446 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5447 done
5448 test -z "$LD" && LD="$ac_prog"
5449 ;;
5450 "")
5451 # If it fails, then pretend we aren't using GCC.
5452 ac_prog=ld
5453 ;;
5454 *)
5455 # If it is relative, then search for the first ld in PATH.
5456 with_gnu_ld=unknown
5457 ;;
5458 esac
5459 elif test "$with_gnu_ld" = yes; then
5460 echo "$as_me:$LINENO: checking for GNU ld" >&5
5461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5462 else
5463 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5465 fi
5466 if test "${lt_cv_path_LD+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 if test -z "$LD"; then
5470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5471 for ac_dir in $PATH; do
5472 IFS="$lt_save_ifs"
5473 test -z "$ac_dir" && ac_dir=.
5474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5475 lt_cv_path_LD="$ac_dir/$ac_prog"
5476 # Check to see if the program is GNU ld. I'd rather use --version,
5477 # but apparently some variants of GNU ld only accept -v.
5478 # Break only if it was the GNU/non-GNU ld that we prefer.
5479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5480 *GNU* | *'with BFD'*)
5481 test "$with_gnu_ld" != no && break
5482 ;;
5483 *)
5484 test "$with_gnu_ld" != yes && break
5485 ;;
5486 esac
5487 fi
5488 done
5489 IFS="$lt_save_ifs"
5490 else
5491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5492 fi
5493 fi
5494
5495 LD="$lt_cv_path_LD"
5496 if test -n "$LD"; then
5497 echo "$as_me:$LINENO: result: $LD" >&5
5498 echo "${ECHO_T}$LD" >&6
5499 else
5500 echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5502 fi
5503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5505 { (exit 1); exit 1; }; }
5506 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5512 case `$LD -v 2>&1 </dev/null` in
5513 *GNU* | *'with BFD'*)
5514 lt_cv_prog_gnu_ld=yes
5515 ;;
5516 *)
5517 lt_cv_prog_gnu_ld=no
5518 ;;
5519 esac
5520 fi
5521 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5523 with_gnu_ld=$lt_cv_prog_gnu_ld
5524
5525
5526 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5527 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5528 if test "${lt_cv_ld_reload_flag+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 lt_cv_ld_reload_flag='-r'
5532 fi
5533 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5534 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5535 reload_flag=$lt_cv_ld_reload_flag
5536 case $reload_flag in
5537 "" | " "*) ;;
5538 *) reload_flag=" $reload_flag" ;;
5539 esac
5540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5541 case $host_os in
5542 darwin*)
5543 if test "$GCC" = yes; then
5544 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5545 else
5546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5547 fi
5548 ;;
5549 esac
5550
5551 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5552 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5553 if test "${lt_cv_path_NM+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 if test -n "$NM"; then
5557 # Let the user override the test.
5558 lt_cv_path_NM="$NM"
5559 else
5560 lt_nm_to_check="${ac_tool_prefix}nm"
5561 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5562 lt_nm_to_check="$lt_nm_to_check nm"
5563 fi
5564 for lt_tmp_nm in $lt_nm_to_check; do
5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5566 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5567 IFS="$lt_save_ifs"
5568 test -z "$ac_dir" && ac_dir=.
5569 tmp_nm="$ac_dir/$lt_tmp_nm"
5570 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5571 # Check to see if the nm accepts a BSD-compat flag.
5572 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5573 # nm: unknown option "B" ignored
5574 # Tru64's nm complains that /dev/null is an invalid object file
5575 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5576 */dev/null* | *'Invalid file or object type'*)
5577 lt_cv_path_NM="$tmp_nm -B"
5578 break
5579 ;;
5580 *)
5581 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5582 */dev/null*)
5583 lt_cv_path_NM="$tmp_nm -p"
5584 break
5585 ;;
5586 *)
5587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5588 continue # so that we can try to find one that supports BSD flags
5589 ;;
5590 esac
5591 ;;
5592 esac
5593 fi
5594 done
5595 IFS="$lt_save_ifs"
5596 done
5597 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5598 fi
5599 fi
5600 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5601 echo "${ECHO_T}$lt_cv_path_NM" >&6
5602 NM="$lt_cv_path_NM"
5603
5604 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5605 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5606 if test "${lt_cv_deplibs_check_method+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 lt_cv_file_magic_cmd='$MAGIC_CMD'
5610 lt_cv_file_magic_test_file=
5611 lt_cv_deplibs_check_method='unknown'
5612 # Need to set the preceding variable on all platforms that support
5613 # interlibrary dependencies.
5614 # 'none' -- dependencies not supported.
5615 # `unknown' -- same as none, but documents that we really don't know.
5616 # 'pass_all' -- all dependencies passed with no checks.
5617 # 'test_compile' -- check by making test program.
5618 # 'file_magic [[regex]]' -- check by looking for files in library path
5619 # which responds to the $file_magic_cmd with a given extended regex.
5620 # If you have `file' or equivalent on your system and you're not sure
5621 # whether `pass_all' will *always* work, you probably want this one.
5622
5623 case $host_os in
5624 aix4* | aix5*)
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628 beos*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632 bsdi[45]*)
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5634 lt_cv_file_magic_cmd='/usr/bin/file -L'
5635 lt_cv_file_magic_test_file=/shlib/libc.so
5636 ;;
5637
5638 cygwin*)
5639 # func_win32_libid is a shell function defined in ltmain.sh
5640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5641 lt_cv_file_magic_cmd='func_win32_libid'
5642 ;;
5643
5644 mingw* | pw32*)
5645 # Base MSYS/MinGW do not provide the 'file' command needed by
5646 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5647 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5648 lt_cv_file_magic_cmd='$OBJDUMP -f'
5649 ;;
5650
5651 darwin* | rhapsody*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 freebsd* | kfreebsd*-gnu | dragonfly*)
5656 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5657 case $host_cpu in
5658 i*86 )
5659 # Not sure whether the presence of OpenBSD here was a mistake.
5660 # Let's accept both of them until this is cleared up.
5661 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5662 lt_cv_file_magic_cmd=/usr/bin/file
5663 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5664 ;;
5665 esac
5666 else
5667 lt_cv_deplibs_check_method=pass_all
5668 fi
5669 ;;
5670
5671 gnu*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674
5675 hpux10.20* | hpux11*)
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 case $host_cpu in
5678 ia64*)
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5681 ;;
5682 hppa*64*)
5683 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]'
5684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5685 ;;
5686 *)
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5689 ;;
5690 esac
5691 ;;
5692
5693 interix3*)
5694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5696 ;;
5697
5698 irix5* | irix6* | nonstopux*)
5699 case $LD in
5700 *-32|*"-32 ") libmagic=32-bit;;
5701 *-n32|*"-n32 ") libmagic=N32;;
5702 *-64|*"-64 ") libmagic=64-bit;;
5703 *) libmagic=never-match;;
5704 esac
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707
5708 # This must be Linux ELF.
5709 linux*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713 netbsd*)
5714 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716 else
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5718 fi
5719 ;;
5720
5721 newos6*)
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5723 lt_cv_file_magic_cmd=/usr/bin/file
5724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5725 ;;
5726
5727 nto-qnx*)
5728 lt_cv_deplibs_check_method=unknown
5729 ;;
5730
5731 openbsd*)
5732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5736 fi
5737 ;;
5738
5739 osf3* | osf4* | osf5*)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743 solaris*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 sysv4 | sysv4.3*)
5748 case $host_vendor in
5749 motorola)
5750 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]'
5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5752 ;;
5753 ncr)
5754 lt_cv_deplibs_check_method=pass_all
5755 ;;
5756 sequent)
5757 lt_cv_file_magic_cmd='/bin/file'
5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5759 ;;
5760 sni)
5761 lt_cv_file_magic_cmd='/bin/file'
5762 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5763 lt_cv_file_magic_test_file=/lib/libc.so
5764 ;;
5765 siemens)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768 pc)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771 esac
5772 ;;
5773
5774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5775 lt_cv_deplibs_check_method=pass_all
5776 ;;
5777 esac
5778
5779 fi
5780 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5781 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5782 file_magic_cmd=$lt_cv_file_magic_cmd
5783 deplibs_check_method=$lt_cv_deplibs_check_method
5784 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5785
5786
5787
5788
5789 # If no C compiler was specified, use CC.
5790 LTCC=${LTCC-"$CC"}
5791
5792 # If no C compiler flags were specified, use CFLAGS.
5793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5794
5795 # Allow CC to be a program name with arguments.
5796 compiler=$CC
5797
5798 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5799 if test "${enable_libtool_lock+set}" = set; then
5800 enableval="$enable_libtool_lock"
5801
5802 fi;
5803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5804
5805 # Some flags need to be propagated to the compiler or linker for good
5806 # libtool support.
5807 case $host in
5808 ia64-*-hpux*)
5809 # Find out which ABI we are using.
5810 echo 'int i;' > conftest.$ac_ext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; then
5816 case `/usr/bin/file conftest.$ac_objext` in
5817 *ELF-32*)
5818 HPUX_IA64_MODE="32"
5819 ;;
5820 *ELF-64*)
5821 HPUX_IA64_MODE="64"
5822 ;;
5823 esac
5824 fi
5825 rm -rf conftest*
5826 ;;
5827 *-*-irix6*)
5828 # Find out which ABI we are using.
5829 echo '#line 5829 "configure"' > conftest.$ac_ext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; then
5835 if test "$lt_cv_prog_gnu_ld" = yes; then
5836 case `/usr/bin/file conftest.$ac_objext` in
5837 *32-bit*)
5838 LD="${LD-ld} -melf32bsmip"
5839 ;;
5840 *N32*)
5841 LD="${LD-ld} -melf32bmipn32"
5842 ;;
5843 *64-bit*)
5844 LD="${LD-ld} -melf64bmip"
5845 ;;
5846 esac
5847 else
5848 case `/usr/bin/file conftest.$ac_objext` in
5849 *32-bit*)
5850 LD="${LD-ld} -32"
5851 ;;
5852 *N32*)
5853 LD="${LD-ld} -n32"
5854 ;;
5855 *64-bit*)
5856 LD="${LD-ld} -64"
5857 ;;
5858 esac
5859 fi
5860 fi
5861 rm -rf conftest*
5862 ;;
5863
5864 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5865 # Find out which ABI we are using.
5866 echo 'int i;' > conftest.$ac_ext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; then
5872 case `/usr/bin/file conftest.o` in
5873 *32-bit*)
5874 case $host in
5875 x86_64-*linux*)
5876 LD="${LD-ld} -m elf_i386"
5877 ;;
5878 ppc64-*linux*|powerpc64-*linux*)
5879 LD="${LD-ld} -m elf32ppclinux"
5880 ;;
5881 s390x-*linux*)
5882 LD="${LD-ld} -m elf_s390"
5883 ;;
5884 sparc64-*linux*)
5885 LD="${LD-ld} -m elf32_sparc"
5886 ;;
5887 esac
5888 ;;
5889 *64-bit*)
5890 case $host in
5891 x86_64-*linux*)
5892 LD="${LD-ld} -m elf_x86_64"
5893 ;;
5894 ppc*-*linux*|powerpc*-*linux*)
5895 LD="${LD-ld} -m elf64ppc"
5896 ;;
5897 s390*-*linux*)
5898 LD="${LD-ld} -m elf64_s390"
5899 ;;
5900 sparc*-*linux*)
5901 LD="${LD-ld} -m elf64_sparc"
5902 ;;
5903 esac
5904 ;;
5905 esac
5906 fi
5907 rm -rf conftest*
5908 ;;
5909
5910 *-*-sco3.2v5*)
5911 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5912 SAVE_CFLAGS="$CFLAGS"
5913 CFLAGS="$CFLAGS -belf"
5914 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5915 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5916 if test "${lt_cv_cc_needs_belf+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 ac_ext=c
5920 ac_cpp='$CPP $CPPFLAGS'
5921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931
5932 int
5933 main ()
5934 {
5935
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 lt_cv_cc_needs_belf=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 lt_cv_cc_needs_belf=no
5968 fi
5969 rm -f conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977 fi
5978 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5979 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5982 CFLAGS="$SAVE_CFLAGS"
5983 fi
5984 ;;
5985 sparc*-*solaris*)
5986 # Find out which ABI we are using.
5987 echo 'int i;' > conftest.$ac_ext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; then
5993 case `/usr/bin/file conftest.o` in
5994 *64-bit*)
5995 case $lt_cv_prog_gnu_ld in
5996 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5997 *) LD="${LD-ld} -64" ;;
5998 esac
5999 ;;
6000 esac
6001 fi
6002 rm -rf conftest*
6003 ;;
6004
6005
6006 esac
6007
6008 need_locks="$enable_libtool_lock"
6009
6010
6011 ac_ext=c
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6018 # On Suns, sometimes $CPP names a directory.
6019 if test -n "$CPP" && test -d "$CPP"; then
6020 CPP=
6021 fi
6022 if test -z "$CPP"; then
6023 if test "${ac_cv_prog_CPP+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 # Double quotes because CPP needs to be expanded
6027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6028 do
6029 ac_preproc_ok=false
6030 for ac_c_preproc_warn_flag in '' yes
6031 do
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #ifdef __STDC__
6045 # include <limits.h>
6046 #else
6047 # include <assert.h>
6048 #endif
6049 Syntax error
6050 _ACEOF
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null; then
6059 if test -s conftest.err; then
6060 ac_cpp_err=$ac_c_preproc_warn_flag
6061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6062 else
6063 ac_cpp_err=
6064 fi
6065 else
6066 ac_cpp_err=yes
6067 fi
6068 if test -z "$ac_cpp_err"; then
6069 :
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 # Broken: fails on valid input.
6075 continue
6076 fi
6077 rm -f conftest.err conftest.$ac_ext
6078
6079 # OK, works on sane cases. Now check whether non-existent headers
6080 # can be detected and how.
6081 cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 #include <ac_nonexistent.h>
6088 _ACEOF
6089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null; then
6097 if test -s conftest.err; then
6098 ac_cpp_err=$ac_c_preproc_warn_flag
6099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6100 else
6101 ac_cpp_err=
6102 fi
6103 else
6104 ac_cpp_err=yes
6105 fi
6106 if test -z "$ac_cpp_err"; then
6107 # Broken: success on invalid input.
6108 continue
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 # Passes both tests.
6114 ac_preproc_ok=:
6115 break
6116 fi
6117 rm -f conftest.err conftest.$ac_ext
6118
6119 done
6120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121 rm -f conftest.err conftest.$ac_ext
6122 if $ac_preproc_ok; then
6123 break
6124 fi
6125
6126 done
6127 ac_cv_prog_CPP=$CPP
6128
6129 fi
6130 CPP=$ac_cv_prog_CPP
6131 else
6132 ac_cv_prog_CPP=$CPP
6133 fi
6134 echo "$as_me:$LINENO: result: $CPP" >&5
6135 echo "${ECHO_T}$CPP" >&6
6136 ac_preproc_ok=false
6137 for ac_c_preproc_warn_flag in '' yes
6138 do
6139 # Use a header file that comes with gcc, so configuring glibc
6140 # with a fresh cross-compiler works.
6141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 # <limits.h> exists even on freestanding compilers.
6143 # On the NeXT, cc -E runs the code through the compiler's parser,
6144 # not just through cpp. "Syntax error" is here to catch this case.
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #ifdef __STDC__
6152 # include <limits.h>
6153 #else
6154 # include <assert.h>
6155 #endif
6156 Syntax error
6157 _ACEOF
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null; then
6166 if test -s conftest.err; then
6167 ac_cpp_err=$ac_c_preproc_warn_flag
6168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6169 else
6170 ac_cpp_err=
6171 fi
6172 else
6173 ac_cpp_err=yes
6174 fi
6175 if test -z "$ac_cpp_err"; then
6176 :
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 # Broken: fails on valid input.
6182 continue
6183 fi
6184 rm -f conftest.err conftest.$ac_ext
6185
6186 # OK, works on sane cases. Now check whether non-existent headers
6187 # can be detected and how.
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <ac_nonexistent.h>
6195 _ACEOF
6196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
6206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6207 else
6208 ac_cpp_err=
6209 fi
6210 else
6211 ac_cpp_err=yes
6212 fi
6213 if test -z "$ac_cpp_err"; then
6214 # Broken: success on invalid input.
6215 continue
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 # Passes both tests.
6221 ac_preproc_ok=:
6222 break
6223 fi
6224 rm -f conftest.err conftest.$ac_ext
6225
6226 done
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.err conftest.$ac_ext
6229 if $ac_preproc_ok; then
6230 :
6231 else
6232 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6233 See \`config.log' for more details." >&5
6234 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6235 See \`config.log' for more details." >&2;}
6236 { (exit 1); exit 1; }; }
6237 fi
6238
6239 ac_ext=c
6240 ac_cpp='$CPP $CPPFLAGS'
6241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244
6245
6246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6248 if test "${ac_cv_header_stdc+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h. */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #include <stdlib.h>
6258 #include <stdarg.h>
6259 #include <string.h>
6260 #include <float.h>
6261
6262 int
6263 main ()
6264 {
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 rm -f conftest.$ac_objext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_cv_header_stdc=yes
6293 else
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6296
6297 ac_cv_header_stdc=no
6298 fi
6299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300
6301 if test $ac_cv_header_stdc = yes; then
6302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <string.h>
6310
6311 _ACEOF
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "memchr" >/dev/null 2>&1; then
6314 :
6315 else
6316 ac_cv_header_stdc=no
6317 fi
6318 rm -f conftest*
6319
6320 fi
6321
6322 if test $ac_cv_header_stdc = yes; then
6323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <stdlib.h>
6331
6332 _ACEOF
6333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "free" >/dev/null 2>&1; then
6335 :
6336 else
6337 ac_cv_header_stdc=no
6338 fi
6339 rm -f conftest*
6340
6341 fi
6342
6343 if test $ac_cv_header_stdc = yes; then
6344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6345 if test "$cross_compiling" = yes; then
6346 :
6347 else
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <ctype.h>
6355 #if ((' ' & 0x0FF) == 0x020)
6356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6358 #else
6359 # define ISLOWER(c) \
6360 (('a' <= (c) && (c) <= 'i') \
6361 || ('j' <= (c) && (c) <= 'r') \
6362 || ('s' <= (c) && (c) <= 'z'))
6363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6364 #endif
6365
6366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6367 int
6368 main ()
6369 {
6370 int i;
6371 for (i = 0; i < 256; i++)
6372 if (XOR (islower (i), ISLOWER (i))
6373 || toupper (i) != TOUPPER (i))
6374 exit(2);
6375 exit (0);
6376 }
6377 _ACEOF
6378 rm -f conftest$ac_exeext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380 (eval $ac_link) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 :
6390 else
6391 echo "$as_me: program exited with status $ac_status" >&5
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ( exit $ac_status )
6396 ac_cv_header_stdc=no
6397 fi
6398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6399 fi
6400 fi
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6403 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6404 if test $ac_cv_header_stdc = yes; then
6405
6406 cat >>confdefs.h <<\_ACEOF
6407 #define STDC_HEADERS 1
6408 _ACEOF
6409
6410 fi
6411
6412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6423 inttypes.h stdint.h unistd.h
6424 do
6425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6426 echo "$as_me:$LINENO: checking for $ac_header" >&5
6427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 $ac_includes_default
6438
6439 #include <$ac_header>
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 eval "$as_ac_Header=yes"
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 eval "$as_ac_Header=no"
6469 fi
6470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471 fi
6472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6475 cat >>confdefs.h <<_ACEOF
6476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477 _ACEOF
6478
6479 fi
6480
6481 done
6482
6483
6484
6485 for ac_header in dlfcn.h
6486 do
6487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6489 echo "$as_me:$LINENO: checking for $ac_header" >&5
6490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 fi
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 else
6497 # Is the header compilable?
6498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 $ac_includes_default
6507 #include <$ac_header>
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_header_compiler=yes
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ac_header_compiler=no
6537 fi
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6540 echo "${ECHO_T}$ac_header_compiler" >&6
6541
6542 # Is the header present?
6543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 #include <$ac_header>
6552 _ACEOF
6553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } >/dev/null; then
6561 if test -s conftest.err; then
6562 ac_cpp_err=$ac_c_preproc_warn_flag
6563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6564 else
6565 ac_cpp_err=
6566 fi
6567 else
6568 ac_cpp_err=yes
6569 fi
6570 if test -z "$ac_cpp_err"; then
6571 ac_header_preproc=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 ac_header_preproc=no
6577 fi
6578 rm -f conftest.err conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6580 echo "${ECHO_T}$ac_header_preproc" >&6
6581
6582 # So? What about this header?
6583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6584 yes:no: )
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6589 ac_header_preproc=yes
6590 ;;
6591 no:yes:* )
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6604 (
6605 cat <<\_ASBOX
6606 ## ----------------------------------- ##
6607 ## Report this to [email protected] ##
6608 ## ----------------------------------- ##
6609 _ASBOX
6610 ) |
6611 sed "s/^/$as_me: WARNING: /" >&2
6612 ;;
6613 esac
6614 echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 eval "$as_ac_Header=\$ac_header_preproc"
6620 fi
6621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6623
6624 fi
6625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6626 cat >>confdefs.h <<_ACEOF
6627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628 _ACEOF
6629
6630 fi
6631
6632 done
6633
6634
6635
6636 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6637 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6638 (test "X$CXX" != "Xg++"))) ; then
6639 ac_ext=cc
6640 ac_cpp='$CXXCPP $CPPFLAGS'
6641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6644 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6645 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6646 if test -z "$CXXCPP"; then
6647 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 # Double quotes because CXXCPP needs to be expanded
6651 for CXXCPP in "$CXX -E" "/lib/cpp"
6652 do
6653 ac_preproc_ok=false
6654 for ac_cxx_preproc_warn_flag in '' yes
6655 do
6656 # Use a header file that comes with gcc, so configuring glibc
6657 # with a fresh cross-compiler works.
6658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6659 # <limits.h> exists even on freestanding compilers.
6660 # On the NeXT, cc -E runs the code through the compiler's parser,
6661 # not just through cpp. "Syntax error" is here to catch this case.
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673 Syntax error
6674 _ACEOF
6675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } >/dev/null; then
6683 if test -s conftest.err; then
6684 ac_cpp_err=$ac_cxx_preproc_warn_flag
6685 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6686 else
6687 ac_cpp_err=
6688 fi
6689 else
6690 ac_cpp_err=yes
6691 fi
6692 if test -z "$ac_cpp_err"; then
6693 :
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 # Broken: fails on valid input.
6699 continue
6700 fi
6701 rm -f conftest.err conftest.$ac_ext
6702
6703 # OK, works on sane cases. Now check whether non-existent headers
6704 # can be detected and how.
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 #include <ac_nonexistent.h>
6712 _ACEOF
6713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } >/dev/null; then
6721 if test -s conftest.err; then
6722 ac_cpp_err=$ac_cxx_preproc_warn_flag
6723 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6724 else
6725 ac_cpp_err=
6726 fi
6727 else
6728 ac_cpp_err=yes
6729 fi
6730 if test -z "$ac_cpp_err"; then
6731 # Broken: success on invalid input.
6732 continue
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 # Passes both tests.
6738 ac_preproc_ok=:
6739 break
6740 fi
6741 rm -f conftest.err conftest.$ac_ext
6742
6743 done
6744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6745 rm -f conftest.err conftest.$ac_ext
6746 if $ac_preproc_ok; then
6747 break
6748 fi
6749
6750 done
6751 ac_cv_prog_CXXCPP=$CXXCPP
6752
6753 fi
6754 CXXCPP=$ac_cv_prog_CXXCPP
6755 else
6756 ac_cv_prog_CXXCPP=$CXXCPP
6757 fi
6758 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6759 echo "${ECHO_T}$CXXCPP" >&6
6760 ac_preproc_ok=false
6761 for ac_cxx_preproc_warn_flag in '' yes
6762 do
6763 # Use a header file that comes with gcc, so configuring glibc
6764 # with a fresh cross-compiler works.
6765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6766 # <limits.h> exists even on freestanding compilers.
6767 # On the NeXT, cc -E runs the code through the compiler's parser,
6768 # not just through cpp. "Syntax error" is here to catch this case.
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #ifdef __STDC__
6776 # include <limits.h>
6777 #else
6778 # include <assert.h>
6779 #endif
6780 Syntax error
6781 _ACEOF
6782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } >/dev/null; then
6790 if test -s conftest.err; then
6791 ac_cpp_err=$ac_cxx_preproc_warn_flag
6792 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6793 else
6794 ac_cpp_err=
6795 fi
6796 else
6797 ac_cpp_err=yes
6798 fi
6799 if test -z "$ac_cpp_err"; then
6800 :
6801 else
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 # Broken: fails on valid input.
6806 continue
6807 fi
6808 rm -f conftest.err conftest.$ac_ext
6809
6810 # OK, works on sane cases. Now check whether non-existent headers
6811 # can be detected and how.
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <ac_nonexistent.h>
6819 _ACEOF
6820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } >/dev/null; then
6828 if test -s conftest.err; then
6829 ac_cpp_err=$ac_cxx_preproc_warn_flag
6830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6831 else
6832 ac_cpp_err=
6833 fi
6834 else
6835 ac_cpp_err=yes
6836 fi
6837 if test -z "$ac_cpp_err"; then
6838 # Broken: success on invalid input.
6839 continue
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 # Passes both tests.
6845 ac_preproc_ok=:
6846 break
6847 fi
6848 rm -f conftest.err conftest.$ac_ext
6849
6850 done
6851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6852 rm -f conftest.err conftest.$ac_ext
6853 if $ac_preproc_ok; then
6854 :
6855 else
6856 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6857 See \`config.log' for more details." >&5
6858 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6859 See \`config.log' for more details." >&2;}
6860 { (exit 1); exit 1; }; }
6861 fi
6862
6863 ac_ext=cc
6864 ac_cpp='$CXXCPP $CPPFLAGS'
6865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6868
6869 fi
6870
6871 ac_ext=f
6872 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6873 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6875 if test -n "$ac_tool_prefix"; then
6876 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6877 do
6878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6880 echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882 if test "${ac_cv_prog_F77+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 if test -n "$F77"; then
6886 ac_cv_prog_F77="$F77" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899 done
6900 done
6901
6902 fi
6903 fi
6904 F77=$ac_cv_prog_F77
6905 if test -n "$F77"; then
6906 echo "$as_me:$LINENO: result: $F77" >&5
6907 echo "${ECHO_T}$F77" >&6
6908 else
6909 echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6
6911 fi
6912
6913 test -n "$F77" && break
6914 done
6915 fi
6916 if test -z "$F77"; then
6917 ac_ct_F77=$F77
6918 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6919 do
6920 # Extract the first word of "$ac_prog", so it can be a program name with args.
6921 set dummy $ac_prog; ac_word=$2
6922 echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6924 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 if test -n "$ac_ct_F77"; then
6928 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_ac_ct_F77="$ac_prog"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943
6944 fi
6945 fi
6946 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6947 if test -n "$ac_ct_F77"; then
6948 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6949 echo "${ECHO_T}$ac_ct_F77" >&6
6950 else
6951 echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6
6953 fi
6954
6955 test -n "$ac_ct_F77" && break
6956 done
6957
6958 F77=$ac_ct_F77
6959 fi
6960
6961
6962 # Provide some information about the compiler.
6963 echo "$as_me:6963:" \
6964 "checking for Fortran 77 compiler version" >&5
6965 ac_compiler=`set X $ac_compile; echo $2`
6966 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6967 (eval $ac_compiler --version </dev/null >&5) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }
6971 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6972 (eval $ac_compiler -v </dev/null >&5) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }
6976 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6977 (eval $ac_compiler -V </dev/null >&5) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }
6981 rm -f a.out
6982
6983 # If we don't use `.F' as extension, the preprocessor is not run on the
6984 # input file. (Note that this only needs to work for GNU compilers.)
6985 ac_save_ext=$ac_ext
6986 ac_ext=F
6987 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6988 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6989 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 program main
6994 #ifndef __GNUC__
6995 choke me
6996 #endif
6997
6998 end
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_f77_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_compiler_gnu=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 ac_compiler_gnu=no
7028 fi
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7031
7032 fi
7033 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7034 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7035 ac_ext=$ac_save_ext
7036 ac_test_FFLAGS=${FFLAGS+set}
7037 ac_save_FFLAGS=$FFLAGS
7038 FFLAGS=
7039 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7040 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7041 if test "${ac_cv_prog_f77_g+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 FFLAGS=-g
7045 cat >conftest.$ac_ext <<_ACEOF
7046 program main
7047
7048 end
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_f77_werror_flag"
7060 || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_cv_prog_f77_g=yes
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ac_cv_prog_f77_g=no
7078 fi
7079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080
7081 fi
7082 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7083 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7084 if test "$ac_test_FFLAGS" = set; then
7085 FFLAGS=$ac_save_FFLAGS
7086 elif test $ac_cv_prog_f77_g = yes; then
7087 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7088 FFLAGS="-g -O2"
7089 else
7090 FFLAGS="-g"
7091 fi
7092 else
7093 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7094 FFLAGS="-O2"
7095 else
7096 FFLAGS=
7097 fi
7098 fi
7099
7100 G77=`test $ac_compiler_gnu = yes && echo yes`
7101 ac_ext=c
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106
7107
7108
7109 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7110
7111 # find the maximum length of command line arguments
7112 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7113 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7114 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 i=0
7118 teststring="ABCD"
7119
7120 case $build_os in
7121 msdosdjgpp*)
7122 # On DJGPP, this test can blow up pretty badly due to problems in libc
7123 # (any single argument exceeding 2000 bytes causes a buffer overrun
7124 # during glob expansion). Even if it were fixed, the result of this
7125 # check would be larger than it should be.
7126 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7127 ;;
7128
7129 gnu*)
7130 # Under GNU Hurd, this test is not required because there is
7131 # no limit to the length of command line arguments.
7132 # Libtool will interpret -1 as no limit whatsoever
7133 lt_cv_sys_max_cmd_len=-1;
7134 ;;
7135
7136 cygwin* | mingw*)
7137 # On Win9x/ME, this test blows up -- it succeeds, but takes
7138 # about 5 minutes as the teststring grows exponentially.
7139 # Worse, since 9x/ME are not pre-emptively multitasking,
7140 # you end up with a "frozen" computer, even though with patience
7141 # the test eventually succeeds (with a max line length of 256k).
7142 # Instead, let's just punt: use the minimum linelength reported by
7143 # all of the supported platforms: 8192 (on NT/2K/XP).
7144 lt_cv_sys_max_cmd_len=8192;
7145 ;;
7146
7147 amigaos*)
7148 # On AmigaOS with pdksh, this test takes hours, literally.
7149 # So we just punt and use a minimum line length of 8192.
7150 lt_cv_sys_max_cmd_len=8192;
7151 ;;
7152
7153 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7154 # This has been around since 386BSD, at least. Likely further.
7155 if test -x /sbin/sysctl; then
7156 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7157 elif test -x /usr/sbin/sysctl; then
7158 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7159 else
7160 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7161 fi
7162 # And add a safety zone
7163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7165 ;;
7166
7167 interix*)
7168 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7169 lt_cv_sys_max_cmd_len=196608
7170 ;;
7171
7172 osf*)
7173 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7174 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7175 # nice to cause kernel panics so lets avoid the loop below.
7176 # First set a reasonable default.
7177 lt_cv_sys_max_cmd_len=16384
7178 #
7179 if test -x /sbin/sysconfig; then
7180 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7181 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7182 esac
7183 fi
7184 ;;
7185 sco3.2v5*)
7186 lt_cv_sys_max_cmd_len=102400
7187 ;;
7188 sysv5* | sco5v6* | sysv4.2uw2*)
7189 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7190 if test -n "$kargmax"; then
7191 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7192 else
7193 lt_cv_sys_max_cmd_len=32768
7194 fi
7195 ;;
7196 *)
7197 # If test is not a shell built-in, we'll probably end up computing a
7198 # maximum length that is only half of the actual maximum length, but
7199 # we can't tell.
7200 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7201 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7202 = "XX$teststring") >/dev/null 2>&1 &&
7203 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7204 lt_cv_sys_max_cmd_len=$new_result &&
7205 test $i != 17 # 1/2 MB should be enough
7206 do
7207 i=`expr $i + 1`
7208 teststring=$teststring$teststring
7209 done
7210 teststring=
7211 # Add a significant safety factor because C++ compilers can tack on massive
7212 # amounts of additional arguments before passing them to the linker.
7213 # It appears as though 1/2 is a usable value.
7214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7215 ;;
7216 esac
7217
7218 fi
7219
7220 if test -n $lt_cv_sys_max_cmd_len ; then
7221 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7222 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7223 else
7224 echo "$as_me:$LINENO: result: none" >&5
7225 echo "${ECHO_T}none" >&6
7226 fi
7227
7228
7229
7230
7231 # Check for command to grab the raw symbol name followed by C symbol from nm.
7232 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7233 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7234 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237
7238 # These are sane defaults that work on at least a few old systems.
7239 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7240
7241 # Character class describing NM global symbol codes.
7242 symcode='[BCDEGRST]'
7243
7244 # Regexp to match symbols that can be accessed directly from C.
7245 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7246
7247 # Transform an extracted symbol line into a proper C declaration
7248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7249
7250 # Transform an extracted symbol line into symbol name and symbol address
7251 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'"
7252
7253 # Define system-specific variables.
7254 case $host_os in
7255 aix*)
7256 symcode='[BCDT]'
7257 ;;
7258 cygwin* | mingw* | pw32*)
7259 symcode='[ABCDGISTW]'
7260 ;;
7261 hpux*) # Its linker distinguishes data from code symbols
7262 if test "$host_cpu" = ia64; then
7263 symcode='[ABCDEGRST]'
7264 fi
7265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7266 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'"
7267 ;;
7268 linux*)
7269 if test "$host_cpu" = ia64; then
7270 symcode='[ABCDGIRSTW]'
7271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7272 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'"
7273 fi
7274 ;;
7275 irix* | nonstopux*)
7276 symcode='[BCDEGRST]'
7277 ;;
7278 osf*)
7279 symcode='[BCDEGQRST]'
7280 ;;
7281 solaris*)
7282 symcode='[BDRT]'
7283 ;;
7284 sco3.2v5*)
7285 symcode='[DT]'
7286 ;;
7287 sysv4.2uw2*)
7288 symcode='[DT]'
7289 ;;
7290 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7291 symcode='[ABDT]'
7292 ;;
7293 sysv4)
7294 symcode='[DFNSTU]'
7295 ;;
7296 esac
7297
7298 # Handle CRLF in mingw tool chain
7299 opt_cr=
7300 case $build_os in
7301 mingw*)
7302 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7303 ;;
7304 esac
7305
7306 # If we're using GNU nm, then use its standard symbol codes.
7307 case `$NM -V 2>&1` in
7308 *GNU* | *'with BFD'*)
7309 symcode='[ABCDGIRSTW]' ;;
7310 esac
7311
7312 # Try without a prefix undercore, then with it.
7313 for ac_symprfx in "" "_"; do
7314
7315 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7316 symxfrm="\\1 $ac_symprfx\\2 \\2"
7317
7318 # Write the raw and C identifiers.
7319 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7320
7321 # Check to see that the pipe works correctly.
7322 pipe_works=no
7323
7324 rm -f conftest*
7325 cat > conftest.$ac_ext <<EOF
7326 #ifdef __cplusplus
7327 extern "C" {
7328 #endif
7329 char nm_test_var;
7330 void nm_test_func(){}
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334 int main(){nm_test_var='a';nm_test_func();return(0);}
7335 EOF
7336
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; then
7342 # Now try to grab the symbols.
7343 nlist=conftest.nm
7344 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7345 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && test -s "$nlist"; then
7349 # Try sorting and uniquifying the output.
7350 if sort "$nlist" | uniq > "$nlist"T; then
7351 mv -f "$nlist"T "$nlist"
7352 else
7353 rm -f "$nlist"T
7354 fi
7355
7356 # Make sure that we snagged all the symbols we need.
7357 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7358 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7359 cat <<EOF > conftest.$ac_ext
7360 #ifdef __cplusplus
7361 extern "C" {
7362 #endif
7363
7364 EOF
7365 # Now generate the symbol file.
7366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7367
7368 cat <<EOF >> conftest.$ac_ext
7369 #if defined (__STDC__) && __STDC__
7370 # define lt_ptr_t void *
7371 #else
7372 # define lt_ptr_t char *
7373 # define const
7374 #endif
7375
7376 /* The mapping between symbol names and symbols. */
7377 const struct {
7378 const char *name;
7379 lt_ptr_t address;
7380 }
7381 lt_preloaded_symbols[] =
7382 {
7383 EOF
7384 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7385 cat <<\EOF >> conftest.$ac_ext
7386 {0, (lt_ptr_t) 0}
7387 };
7388
7389 #ifdef __cplusplus
7390 }
7391 #endif
7392 EOF
7393 # Now try linking the two files.
7394 mv conftest.$ac_objext conftstm.$ac_objext
7395 lt_save_LIBS="$LIBS"
7396 lt_save_CFLAGS="$CFLAGS"
7397 LIBS="conftstm.$ac_objext"
7398 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7404 pipe_works=yes
7405 fi
7406 LIBS="$lt_save_LIBS"
7407 CFLAGS="$lt_save_CFLAGS"
7408 else
7409 echo "cannot find nm_test_func in $nlist" >&5
7410 fi
7411 else
7412 echo "cannot find nm_test_var in $nlist" >&5
7413 fi
7414 else
7415 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7416 fi
7417 else
7418 echo "$progname: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7420 fi
7421 rm -f conftest* conftst*
7422
7423 # Do not use the global_symbol_pipe unless it works.
7424 if test "$pipe_works" = yes; then
7425 break
7426 else
7427 lt_cv_sys_global_symbol_pipe=
7428 fi
7429 done
7430
7431 fi
7432
7433 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7434 lt_cv_sys_global_symbol_to_cdecl=
7435 fi
7436 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7437 echo "$as_me:$LINENO: result: failed" >&5
7438 echo "${ECHO_T}failed" >&6
7439 else
7440 echo "$as_me:$LINENO: result: ok" >&5
7441 echo "${ECHO_T}ok" >&6
7442 fi
7443
7444 echo "$as_me:$LINENO: checking for objdir" >&5
7445 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7446 if test "${lt_cv_objdir+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 rm -f .libs 2>/dev/null
7450 mkdir .libs 2>/dev/null
7451 if test -d .libs; then
7452 lt_cv_objdir=.libs
7453 else
7454 # MS-DOS does not allow filenames that begin with a dot.
7455 lt_cv_objdir=_libs
7456 fi
7457 rmdir .libs 2>/dev/null
7458 fi
7459 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7460 echo "${ECHO_T}$lt_cv_objdir" >&6
7461 objdir=$lt_cv_objdir
7462
7463
7464
7465
7466
7467 case $host_os in
7468 aix3*)
7469 # AIX sometimes has problems with the GCC collect2 program. For some
7470 # reason, if we set the COLLECT_NAMES environment variable, the problems
7471 # vanish in a puff of smoke.
7472 if test "X${COLLECT_NAMES+set}" != Xset; then
7473 COLLECT_NAMES=
7474 export COLLECT_NAMES
7475 fi
7476 ;;
7477 esac
7478
7479 # Sed substitution that helps us do robust quoting. It backslashifies
7480 # metacharacters that are still active within double-quoted strings.
7481 Xsed='sed -e 1s/^X//'
7482 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7483
7484 # Same as above, but do not quote variable references.
7485 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7486
7487 # Sed substitution to delay expansion of an escaped shell variable in a
7488 # double_quote_subst'ed string.
7489 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7490
7491 # Sed substitution to avoid accidental globbing in evaled expressions
7492 no_glob_subst='s/\*/\\\*/g'
7493
7494 # Constants:
7495 rm="rm -f"
7496
7497 # Global variables:
7498 default_ofile=libtool
7499 can_build_shared=yes
7500
7501 # All known linkers require a `.a' archive for static linking (except MSVC,
7502 # which needs '.lib').
7503 libext=a
7504 ltmain="$ac_aux_dir/ltmain.sh"
7505 ofile="$default_ofile"
7506 with_gnu_ld="$lt_cv_prog_gnu_ld"
7507
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}ar; ac_word=$2
7511 echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7513 if test "${ac_cv_prog_AR+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 if test -n "$AR"; then
7517 ac_cv_prog_AR="$AR" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_AR="${ac_tool_prefix}ar"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532
7533 fi
7534 fi
7535 AR=$ac_cv_prog_AR
7536 if test -n "$AR"; then
7537 echo "$as_me:$LINENO: result: $AR" >&5
7538 echo "${ECHO_T}$AR" >&6
7539 else
7540 echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7542 fi
7543
7544 fi
7545 if test -z "$ac_cv_prog_AR"; then
7546 ac_ct_AR=$AR
7547 # Extract the first word of "ar", so it can be a program name with args.
7548 set dummy ar; ac_word=$2
7549 echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 if test -n "$ac_ct_AR"; then
7555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_AR="ar"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570
7571 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7572 fi
7573 fi
7574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7575 if test -n "$ac_ct_AR"; then
7576 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7577 echo "${ECHO_T}$ac_ct_AR" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7581 fi
7582
7583 AR=$ac_ct_AR
7584 else
7585 AR="$ac_cv_prog_AR"
7586 fi
7587
7588 if test -n "$ac_tool_prefix"; then
7589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7590 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_RANLIB+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if test -n "$RANLIB"; then
7597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610 done
7611 done
7612
7613 fi
7614 fi
7615 RANLIB=$ac_cv_prog_RANLIB
7616 if test -n "$RANLIB"; then
7617 echo "$as_me:$LINENO: result: $RANLIB" >&5
7618 echo "${ECHO_T}$RANLIB" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7622 fi
7623
7624 fi
7625 if test -z "$ac_cv_prog_RANLIB"; then
7626 ac_ct_RANLIB=$RANLIB
7627 # Extract the first word of "ranlib", so it can be a program name with args.
7628 set dummy ranlib; ac_word=$2
7629 echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 if test -n "$ac_ct_RANLIB"; then
7635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_RANLIB="ranlib"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650
7651 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7652 fi
7653 fi
7654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7655 if test -n "$ac_ct_RANLIB"; then
7656 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7657 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7658 else
7659 echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7661 fi
7662
7663 RANLIB=$ac_ct_RANLIB
7664 else
7665 RANLIB="$ac_cv_prog_RANLIB"
7666 fi
7667
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}strip; ac_word=$2
7671 echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7673 if test "${ac_cv_prog_STRIP+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 if test -n "$STRIP"; then
7677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692
7693 fi
7694 fi
7695 STRIP=$ac_cv_prog_STRIP
7696 if test -n "$STRIP"; then
7697 echo "$as_me:$LINENO: result: $STRIP" >&5
7698 echo "${ECHO_T}$STRIP" >&6
7699 else
7700 echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6
7702 fi
7703
7704 fi
7705 if test -z "$ac_cv_prog_STRIP"; then
7706 ac_ct_STRIP=$STRIP
7707 # Extract the first word of "strip", so it can be a program name with args.
7708 set dummy strip; ac_word=$2
7709 echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 if test -n "$ac_ct_STRIP"; then
7715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_STRIP="strip"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730
7731 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7732 fi
7733 fi
7734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7735 if test -n "$ac_ct_STRIP"; then
7736 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7737 echo "${ECHO_T}$ac_ct_STRIP" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7741 fi
7742
7743 STRIP=$ac_ct_STRIP
7744 else
7745 STRIP="$ac_cv_prog_STRIP"
7746 fi
7747
7748
7749 old_CC="$CC"
7750 old_CFLAGS="$CFLAGS"
7751
7752 # Set sane defaults for various variables
7753 test -z "$AR" && AR=ar
7754 test -z "$AR_FLAGS" && AR_FLAGS=cru
7755 test -z "$AS" && AS=as
7756 test -z "$CC" && CC=cc
7757 test -z "$LTCC" && LTCC=$CC
7758 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7759 test -z "$DLLTOOL" && DLLTOOL=dlltool
7760 test -z "$LD" && LD=ld
7761 test -z "$LN_S" && LN_S="ln -s"
7762 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7763 test -z "$NM" && NM=nm
7764 test -z "$SED" && SED=sed
7765 test -z "$OBJDUMP" && OBJDUMP=objdump
7766 test -z "$RANLIB" && RANLIB=:
7767 test -z "$STRIP" && STRIP=:
7768 test -z "$ac_objext" && ac_objext=o
7769
7770 # Determine commands to create old-style static archives.
7771 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7772 old_postinstall_cmds='chmod 644 $oldlib'
7773 old_postuninstall_cmds=
7774
7775 if test -n "$RANLIB"; then
7776 case $host_os in
7777 openbsd*)
7778 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7779 ;;
7780 *)
7781 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7782 ;;
7783 esac
7784 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7785 fi
7786
7787 for cc_temp in $compiler""; do
7788 case $cc_temp in
7789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7791 \-*) ;;
7792 *) break;;
7793 esac
7794 done
7795 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7796
7797
7798 # Only perform the check for file, if the check method requires it
7799 case $deplibs_check_method in
7800 file_magic*)
7801 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7802 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7803 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7804 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 case $MAGIC_CMD in
7808 [\\/*] | ?:[\\/]*)
7809 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7810 ;;
7811 *)
7812 lt_save_MAGIC_CMD="$MAGIC_CMD"
7813 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7814 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7815 for ac_dir in $ac_dummy; do
7816 IFS="$lt_save_ifs"
7817 test -z "$ac_dir" && ac_dir=.
7818 if test -f $ac_dir/${ac_tool_prefix}file; then
7819 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7820 if test -n "$file_magic_test_file"; then
7821 case $deplibs_check_method in
7822 "file_magic "*)
7823 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7825 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7826 $EGREP "$file_magic_regex" > /dev/null; then
7827 :
7828 else
7829 cat <<EOF 1>&2
7830
7831 *** Warning: the command libtool uses to detect shared libraries,
7832 *** $file_magic_cmd, produces output that libtool cannot recognize.
7833 *** The result is that libtool may fail to recognize shared libraries
7834 *** as such. This will affect the creation of libtool libraries that
7835 *** depend on shared libraries, but programs linked with such libtool
7836 *** libraries will work regardless of this problem. Nevertheless, you
7837 *** may want to report the problem to your system manager and/or to
7838 *** [email protected]
7839
7840 EOF
7841 fi ;;
7842 esac
7843 fi
7844 break
7845 fi
7846 done
7847 IFS="$lt_save_ifs"
7848 MAGIC_CMD="$lt_save_MAGIC_CMD"
7849 ;;
7850 esac
7851 fi
7852
7853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7854 if test -n "$MAGIC_CMD"; then
7855 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7856 echo "${ECHO_T}$MAGIC_CMD" >&6
7857 else
7858 echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6
7860 fi
7861
7862 if test -z "$lt_cv_path_MAGIC_CMD"; then
7863 if test -n "$ac_tool_prefix"; then
7864 echo "$as_me:$LINENO: checking for file" >&5
7865 echo $ECHO_N "checking for file... $ECHO_C" >&6
7866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 case $MAGIC_CMD in
7870 [\\/*] | ?:[\\/]*)
7871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7872 ;;
7873 *)
7874 lt_save_MAGIC_CMD="$MAGIC_CMD"
7875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7877 for ac_dir in $ac_dummy; do
7878 IFS="$lt_save_ifs"
7879 test -z "$ac_dir" && ac_dir=.
7880 if test -f $ac_dir/file; then
7881 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7882 if test -n "$file_magic_test_file"; then
7883 case $deplibs_check_method in
7884 "file_magic "*)
7885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7888 $EGREP "$file_magic_regex" > /dev/null; then
7889 :
7890 else
7891 cat <<EOF 1>&2
7892
7893 *** Warning: the command libtool uses to detect shared libraries,
7894 *** $file_magic_cmd, produces output that libtool cannot recognize.
7895 *** The result is that libtool may fail to recognize shared libraries
7896 *** as such. This will affect the creation of libtool libraries that
7897 *** depend on shared libraries, but programs linked with such libtool
7898 *** libraries will work regardless of this problem. Nevertheless, you
7899 *** may want to report the problem to your system manager and/or to
7900 *** [email protected]
7901
7902 EOF
7903 fi ;;
7904 esac
7905 fi
7906 break
7907 fi
7908 done
7909 IFS="$lt_save_ifs"
7910 MAGIC_CMD="$lt_save_MAGIC_CMD"
7911 ;;
7912 esac
7913 fi
7914
7915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916 if test -n "$MAGIC_CMD"; then
7917 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7918 echo "${ECHO_T}$MAGIC_CMD" >&6
7919 else
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7922 fi
7923
7924 else
7925 MAGIC_CMD=:
7926 fi
7927 fi
7928
7929 fi
7930 ;;
7931 esac
7932
7933 enable_dlopen=no
7934 enable_win32_dll=no
7935
7936 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7937 if test "${enable_libtool_lock+set}" = set; then
7938 enableval="$enable_libtool_lock"
7939
7940 fi;
7941 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7942
7943
7944 # Check whether --with-pic or --without-pic was given.
7945 if test "${with_pic+set}" = set; then
7946 withval="$with_pic"
7947 pic_mode="$withval"
7948 else
7949 pic_mode=default
7950 fi;
7951 test -z "$pic_mode" && pic_mode=default
7952
7953 # Use C for the default configuration in the libtool script
7954 tagname=
7955 lt_save_CC="$CC"
7956 ac_ext=c
7957 ac_cpp='$CPP $CPPFLAGS'
7958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961
7962
7963 # Source file extension for C test sources.
7964 ac_ext=c
7965
7966 # Object file extension for compiled C test sources.
7967 objext=o
7968 objext=$objext
7969
7970 # Code to be used in simple compile tests
7971 lt_simple_compile_test_code="int some_variable = 0;\n"
7972
7973 # Code to be used in simple link tests
7974 lt_simple_link_test_code='int main(){return(0);}\n'
7975
7976
7977 # If no C compiler was specified, use CC.
7978 LTCC=${LTCC-"$CC"}
7979
7980 # If no C compiler flags were specified, use CFLAGS.
7981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7982
7983 # Allow CC to be a program name with arguments.
7984 compiler=$CC
7985
7986
7987 # save warnings/boilerplate of simple test code
7988 ac_outfile=conftest.$ac_objext
7989 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7991 _lt_compiler_boilerplate=`cat conftest.err`
7992 $rm conftest*
7993
7994 ac_outfile=conftest.$ac_objext
7995 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7997 _lt_linker_boilerplate=`cat conftest.err`
7998 $rm conftest*
7999
8000
8001 ## CAVEAT EMPTOR:
8002 ## There is no encapsulation within the following macros, do not change
8003 ## the running order or otherwise move them around unless you know exactly
8004 ## what you are doing...
8005
8006 lt_prog_compiler_no_builtin_flag=
8007
8008 if test "$GCC" = yes; then
8009 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8010
8011
8012 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8013 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8014 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 lt_cv_prog_compiler_rtti_exceptions=no
8018 ac_outfile=conftest.$ac_objext
8019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8020 lt_compiler_flag="-fno-rtti -fno-exceptions"
8021 # Insert the option either (1) after the last *FLAGS variable, or
8022 # (2) before a word containing "conftest.", or (3) at the end.
8023 # Note that $ac_compile itself does not contain backslashes and begins
8024 # with a dollar sign (not a hyphen), so the echo should work correctly.
8025 # The option is referenced via a variable to avoid confusing sed.
8026 lt_compile=`echo "$ac_compile" | $SED \
8027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8029 -e 's:$: $lt_compiler_flag:'`
8030 (eval echo "\"\$as_me:8030: $lt_compile\"" >&5)
8031 (eval "$lt_compile" 2>conftest.err)
8032 ac_status=$?
8033 cat conftest.err >&5
8034 echo "$as_me:8034: \$? = $ac_status" >&5
8035 if (exit $ac_status) && test -s "$ac_outfile"; then
8036 # The compiler can only warn and ignore the option if not recognized
8037 # So say no if there are warnings other than the usual output.
8038 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8041 lt_cv_prog_compiler_rtti_exceptions=yes
8042 fi
8043 fi
8044 $rm conftest*
8045
8046 fi
8047 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8048 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8049
8050 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8051 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8052 else
8053 :
8054 fi
8055
8056 fi
8057
8058 lt_prog_compiler_wl=
8059 lt_prog_compiler_pic=
8060 lt_prog_compiler_static=
8061
8062 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8063 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8064
8065 if test "$GCC" = yes; then
8066 lt_prog_compiler_wl='-Wl,'
8067 lt_prog_compiler_static='-static'
8068
8069 case $host_os in
8070 aix*)
8071 # All AIX code is PIC.
8072 if test "$host_cpu" = ia64; then
8073 # AIX 5 now supports IA64 processor
8074 lt_prog_compiler_static='-Bstatic'
8075 fi
8076 ;;
8077
8078 amigaos*)
8079 # FIXME: we need at least 68020 code to build shared libraries, but
8080 # adding the `-m68020' flag to GCC prevents building anything better,
8081 # like `-m68040'.
8082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8083 ;;
8084
8085 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8086 # PIC is the default for these OSes.
8087 ;;
8088
8089 mingw* | pw32* | os2*)
8090 # This hack is so that the source file can tell whether it is being
8091 # built for inclusion in a dll (and should export symbols for example).
8092 lt_prog_compiler_pic='-DDLL_EXPORT'
8093 ;;
8094
8095 darwin* | rhapsody*)
8096 # PIC is the default on this platform
8097 # Common symbols not allowed in MH_DYLIB files
8098 lt_prog_compiler_pic='-fno-common'
8099 ;;
8100
8101 interix3*)
8102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8103 # Instead, we relocate shared libraries at runtime.
8104 ;;
8105
8106 msdosdjgpp*)
8107 # Just because we use GCC doesn't mean we suddenly get shared libraries
8108 # on systems that don't support them.
8109 lt_prog_compiler_can_build_shared=no
8110 enable_shared=no
8111 ;;
8112
8113 sysv4*MP*)
8114 if test -d /usr/nec; then
8115 lt_prog_compiler_pic=-Kconform_pic
8116 fi
8117 ;;
8118
8119 hpux*)
8120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8121 # not for PA HP-UX.
8122 case $host_cpu in
8123 hppa*64*|ia64*)
8124 # +Z the default
8125 ;;
8126 *)
8127 lt_prog_compiler_pic='-fPIC'
8128 ;;
8129 esac
8130 ;;
8131
8132 *)
8133 lt_prog_compiler_pic='-fPIC'
8134 ;;
8135 esac
8136 else
8137 # PORTME Check for flag to pass linker flags through the system compiler.
8138 case $host_os in
8139 aix*)
8140 lt_prog_compiler_wl='-Wl,'
8141 if test "$host_cpu" = ia64; then
8142 # AIX 5 now supports IA64 processor
8143 lt_prog_compiler_static='-Bstatic'
8144 else
8145 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8146 fi
8147 ;;
8148 darwin*)
8149 # PIC is the default on this platform
8150 # Common symbols not allowed in MH_DYLIB files
8151 case $cc_basename in
8152 xlc*)
8153 lt_prog_compiler_pic='-qnocommon'
8154 lt_prog_compiler_wl='-Wl,'
8155 ;;
8156 esac
8157 ;;
8158
8159 mingw* | pw32* | os2*)
8160 # This hack is so that the source file can tell whether it is being
8161 # built for inclusion in a dll (and should export symbols for example).
8162 lt_prog_compiler_pic='-DDLL_EXPORT'
8163 ;;
8164
8165 hpux9* | hpux10* | hpux11*)
8166 lt_prog_compiler_wl='-Wl,'
8167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8168 # not for PA HP-UX.
8169 case $host_cpu in
8170 hppa*64*|ia64*)
8171 # +Z the default
8172 ;;
8173 *)
8174 lt_prog_compiler_pic='+Z'
8175 ;;
8176 esac
8177 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8178 lt_prog_compiler_static='${wl}-a ${wl}archive'
8179 ;;
8180
8181 irix5* | irix6* | nonstopux*)
8182 lt_prog_compiler_wl='-Wl,'
8183 # PIC (with -KPIC) is the default.
8184 lt_prog_compiler_static='-non_shared'
8185 ;;
8186
8187 newsos6)
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191
8192 linux*)
8193 case $cc_basename in
8194 icc* | ecc*)
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-static'
8198 ;;
8199 pgcc* | pgf77* | pgf90* | pgf95*)
8200 # Portland Group compilers (*not* the Pentium gcc compiler,
8201 # which looks to be a dead project)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_pic='-fpic'
8204 lt_prog_compiler_static='-Bstatic'
8205 ;;
8206 ccc*)
8207 lt_prog_compiler_wl='-Wl,'
8208 # All Alpha code is PIC.
8209 lt_prog_compiler_static='-non_shared'
8210 ;;
8211 esac
8212 ;;
8213
8214 osf3* | osf4* | osf5*)
8215 lt_prog_compiler_wl='-Wl,'
8216 # All OSF/1 code is PIC.
8217 lt_prog_compiler_static='-non_shared'
8218 ;;
8219
8220 solaris*)
8221 lt_prog_compiler_pic='-KPIC'
8222 lt_prog_compiler_static='-Bstatic'
8223 case $cc_basename in
8224 f77* | f90* | f95*)
8225 lt_prog_compiler_wl='-Qoption ld ';;
8226 *)
8227 lt_prog_compiler_wl='-Wl,';;
8228 esac
8229 ;;
8230
8231 sunos4*)
8232 lt_prog_compiler_wl='-Qoption ld '
8233 lt_prog_compiler_pic='-PIC'
8234 lt_prog_compiler_static='-Bstatic'
8235 ;;
8236
8237 sysv4 | sysv4.2uw2* | sysv4.3*)
8238 lt_prog_compiler_wl='-Wl,'
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 ;;
8242
8243 sysv4*MP*)
8244 if test -d /usr/nec ;then
8245 lt_prog_compiler_pic='-Kconform_pic'
8246 lt_prog_compiler_static='-Bstatic'
8247 fi
8248 ;;
8249
8250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8251 lt_prog_compiler_wl='-Wl,'
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8254 ;;
8255
8256 unicos*)
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_can_build_shared=no
8259 ;;
8260
8261 uts4*)
8262 lt_prog_compiler_pic='-pic'
8263 lt_prog_compiler_static='-Bstatic'
8264 ;;
8265
8266 *)
8267 lt_prog_compiler_can_build_shared=no
8268 ;;
8269 esac
8270 fi
8271
8272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8273 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8274
8275 #
8276 # Check to make sure the PIC flag actually works.
8277 #
8278 if test -n "$lt_prog_compiler_pic"; then
8279
8280 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8281 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8282 if test "${lt_prog_compiler_pic_works+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285 lt_prog_compiler_pic_works=no
8286 ac_outfile=conftest.$ac_objext
8287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8288 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 # The option is referenced via a variable to avoid confusing sed.
8294 lt_compile=`echo "$ac_compile" | $SED \
8295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297 -e 's:$: $lt_compiler_flag:'`
8298 (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
8299 (eval "$lt_compile" 2>conftest.err)
8300 ac_status=$?
8301 cat conftest.err >&5
8302 echo "$as_me:8302: \$? = $ac_status" >&5
8303 if (exit $ac_status) && test -s "$ac_outfile"; then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings other than the usual output.
8306 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8309 lt_prog_compiler_pic_works=yes
8310 fi
8311 fi
8312 $rm conftest*
8313
8314 fi
8315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8316 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8317
8318 if test x"$lt_prog_compiler_pic_works" = xyes; then
8319 case $lt_prog_compiler_pic in
8320 "" | " "*) ;;
8321 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8322 esac
8323 else
8324 lt_prog_compiler_pic=
8325 lt_prog_compiler_can_build_shared=no
8326 fi
8327
8328 fi
8329 case $host_os in
8330 # For platforms which do not support PIC, -DPIC is meaningless:
8331 *djgpp*)
8332 lt_prog_compiler_pic=
8333 ;;
8334 *)
8335 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8336 ;;
8337 esac
8338
8339 #
8340 # Check to make sure the static flag actually works.
8341 #
8342 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8343 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8344 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8345 if test "${lt_prog_compiler_static_works+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 lt_prog_compiler_static_works=no
8349 save_LDFLAGS="$LDFLAGS"
8350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8351 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8353 # The linker can only warn and ignore the option if not recognized
8354 # So say no if there are warnings
8355 if test -s conftest.err; then
8356 # Append any errors to the config.log.
8357 cat conftest.err 1>&5
8358 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8360 if diff conftest.exp conftest.er2 >/dev/null; then
8361 lt_prog_compiler_static_works=yes
8362 fi
8363 else
8364 lt_prog_compiler_static_works=yes
8365 fi
8366 fi
8367 $rm conftest*
8368 LDFLAGS="$save_LDFLAGS"
8369
8370 fi
8371 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8372 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8373
8374 if test x"$lt_prog_compiler_static_works" = xyes; then
8375 :
8376 else
8377 lt_prog_compiler_static=
8378 fi
8379
8380
8381 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8382 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8383 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 lt_cv_prog_compiler_c_o=no
8387 $rm -r conftest 2>/dev/null
8388 mkdir conftest
8389 cd conftest
8390 mkdir out
8391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8392
8393 lt_compiler_flag="-o out/conftest2.$ac_objext"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 lt_compile=`echo "$ac_compile" | $SED \
8399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8401 -e 's:$: $lt_compiler_flag:'`
8402 (eval echo "\"\$as_me:8402: $lt_compile\"" >&5)
8403 (eval "$lt_compile" 2>out/conftest.err)
8404 ac_status=$?
8405 cat out/conftest.err >&5
8406 echo "$as_me:8406: \$? = $ac_status" >&5
8407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8408 then
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings
8411 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_c_o=yes
8415 fi
8416 fi
8417 chmod u+w . 2>&5
8418 $rm conftest*
8419 # SGI C++ compiler will create directory out/ii_files/ for
8420 # template instantiation
8421 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8422 $rm out/* && rmdir out
8423 cd ..
8424 rmdir conftest
8425 $rm conftest*
8426
8427 fi
8428 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8429 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8430
8431
8432 hard_links="nottested"
8433 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8434 # do not overwrite the value of need_locks provided by the user
8435 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8436 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8437 hard_links=yes
8438 $rm conftest*
8439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440 touch conftest.a
8441 ln conftest.a conftest.b 2>&5 || hard_links=no
8442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443 echo "$as_me:$LINENO: result: $hard_links" >&5
8444 echo "${ECHO_T}$hard_links" >&6
8445 if test "$hard_links" = no; then
8446 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8447 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8448 need_locks=warn
8449 fi
8450 else
8451 need_locks=no
8452 fi
8453
8454 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8455 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8456
8457 runpath_var=
8458 allow_undefined_flag=
8459 enable_shared_with_static_runtimes=no
8460 archive_cmds=
8461 archive_expsym_cmds=
8462 old_archive_From_new_cmds=
8463 old_archive_from_expsyms_cmds=
8464 export_dynamic_flag_spec=
8465 whole_archive_flag_spec=
8466 thread_safe_flag_spec=
8467 hardcode_libdir_flag_spec=
8468 hardcode_libdir_flag_spec_ld=
8469 hardcode_libdir_separator=
8470 hardcode_direct=no
8471 hardcode_minus_L=no
8472 hardcode_shlibpath_var=unsupported
8473 link_all_deplibs=unknown
8474 hardcode_automatic=no
8475 module_cmds=
8476 module_expsym_cmds=
8477 always_export_symbols=no
8478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8479 # include_expsyms should be a list of space-separated symbols to be *always*
8480 # included in the symbol list
8481 include_expsyms=
8482 # exclude_expsyms can be an extended regexp of symbols to exclude
8483 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8484 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8485 # as well as any symbol that contains `d'.
8486 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8487 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8488 # platforms (ab)use it in PIC code, but their linkers get confused if
8489 # the symbol is explicitly referenced. Since portable code cannot
8490 # rely on this symbol name, it's probably fine to never include it in
8491 # preloaded symbol tables.
8492 extract_expsyms_cmds=
8493 # Just being paranoid about ensuring that cc_basename is set.
8494 for cc_temp in $compiler""; do
8495 case $cc_temp in
8496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8498 \-*) ;;
8499 *) break;;
8500 esac
8501 done
8502 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8503
8504 case $host_os in
8505 cygwin* | mingw* | pw32*)
8506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8507 # When not using gcc, we currently assume that we are using
8508 # Microsoft Visual C++.
8509 if test "$GCC" != yes; then
8510 with_gnu_ld=no
8511 fi
8512 ;;
8513 interix*)
8514 # we just hope/assume this is gcc and not c89 (= MSVC++)
8515 with_gnu_ld=yes
8516 ;;
8517 openbsd*)
8518 with_gnu_ld=no
8519 ;;
8520 esac
8521
8522 ld_shlibs=yes
8523 if test "$with_gnu_ld" = yes; then
8524 # If archive_cmds runs LD, not CC, wlarc should be empty
8525 wlarc='${wl}'
8526
8527 # Set some defaults for GNU ld with shared library support. These
8528 # are reset later if shared libraries are not supported. Putting them
8529 # here allows them to be overridden if necessary.
8530 runpath_var=LD_RUN_PATH
8531 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8532 export_dynamic_flag_spec='${wl}--export-dynamic'
8533 # ancient GNU ld didn't support --whole-archive et. al.
8534 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8535 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8536 else
8537 whole_archive_flag_spec=
8538 fi
8539 supports_anon_versioning=no
8540 case `$LD -v 2>/dev/null` in
8541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8544 *\ 2.11.*) ;; # other 2.11 versions
8545 *) supports_anon_versioning=yes ;;
8546 esac
8547
8548 # See if GNU ld supports shared libraries.
8549 case $host_os in
8550 aix3* | aix4* | aix5*)
8551 # On AIX/PPC, the GNU linker is very broken
8552 if test "$host_cpu" != ia64; then
8553 ld_shlibs=no
8554 cat <<EOF 1>&2
8555
8556 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8557 *** to be unable to reliably create shared libraries on AIX.
8558 *** Therefore, libtool is disabling shared libraries support. If you
8559 *** really care for shared libraries, you may want to modify your PATH
8560 *** so that a non-GNU linker is found, and then restart.
8561
8562 EOF
8563 fi
8564 ;;
8565
8566 amigaos*)
8567 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)'
8568 hardcode_libdir_flag_spec='-L$libdir'
8569 hardcode_minus_L=yes
8570
8571 # Samuel A. Falvo II <[email protected]> reports
8572 # that the semantics of dynamic libraries on AmigaOS, at least up
8573 # to version 4, is to share data among multiple programs linked
8574 # with the same dynamic library. Since this doesn't match the
8575 # behavior of shared libraries on other platforms, we can't use
8576 # them.
8577 ld_shlibs=no
8578 ;;
8579
8580 beos*)
8581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8582 allow_undefined_flag=unsupported
8583 # Joseph Beckenbach <[email protected]> says some releases of gcc
8584 # support --undefined. This deserves some investigation. FIXME
8585 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 else
8587 ld_shlibs=no
8588 fi
8589 ;;
8590
8591 cygwin* | mingw* | pw32*)
8592 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8593 # as there is no search path for DLLs.
8594 hardcode_libdir_flag_spec='-L$libdir'
8595 allow_undefined_flag=unsupported
8596 always_export_symbols=no
8597 enable_shared_with_static_runtimes=yes
8598 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8599
8600 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8602 # If the export-symbols file already is a .def file (1st line
8603 # is EXPORTS), use it as is; otherwise, prepend...
8604 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8605 cp $export_symbols $output_objdir/$soname.def;
8606 else
8607 echo EXPORTS > $output_objdir/$soname.def;
8608 cat $export_symbols >> $output_objdir/$soname.def;
8609 fi~
8610 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8611 else
8612 ld_shlibs=no
8613 fi
8614 ;;
8615
8616 interix3*)
8617 hardcode_direct=no
8618 hardcode_shlibpath_var=no
8619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8620 export_dynamic_flag_spec='${wl}-E'
8621 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8622 # Instead, shared libraries are loaded at an image base (0x10000000 by
8623 # default) and relocated if they conflict, which is a slow very memory
8624 # consuming and fragmenting process. To avoid this, we pick a random,
8625 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8626 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8628 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'
8629 ;;
8630
8631 linux*)
8632 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8633 tmp_addflag=
8634 case $cc_basename,$host_cpu in
8635 pgcc*) # Portland Group C compiler
8636 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'
8637 tmp_addflag=' $pic_flag'
8638 ;;
8639 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8640 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'
8641 tmp_addflag=' $pic_flag -Mnomain' ;;
8642 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8643 tmp_addflag=' -i_dynamic' ;;
8644 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8645 tmp_addflag=' -i_dynamic -nofor_main' ;;
8646 ifc* | ifort*) # Intel Fortran compiler
8647 tmp_addflag=' -nofor_main' ;;
8648 esac
8649 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650
8651 if test $supports_anon_versioning = yes; then
8652 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8654 $echo "local: *; };" >> $output_objdir/$libname.ver~
8655 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8656 fi
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
8662 netbsd*)
8663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8664 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8665 wlarc=
8666 else
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 fi
8670 ;;
8671
8672 solaris*)
8673 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8674 ld_shlibs=no
8675 cat <<EOF 1>&2
8676
8677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8678 *** create shared libraries on Solaris systems. Therefore, libtool
8679 *** is disabling shared libraries support. We urge you to upgrade GNU
8680 *** binutils to release 2.9.1 or newer. Another option is to modify
8681 *** your PATH or compiler configuration so that the native linker is
8682 *** used, and then restart.
8683
8684 EOF
8685 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 else
8689 ld_shlibs=no
8690 fi
8691 ;;
8692
8693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8694 case `$LD -v 2>&1` in
8695 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8696 ld_shlibs=no
8697 cat <<_LT_EOF 1>&2
8698
8699 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8700 *** reliably create shared libraries on SCO systems. Therefore, libtool
8701 *** is disabling shared libraries support. We urge you to upgrade GNU
8702 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8703 *** your PATH or compiler configuration so that the native linker is
8704 *** used, and then restart.
8705
8706 _LT_EOF
8707 ;;
8708 *)
8709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8710 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8713 else
8714 ld_shlibs=no
8715 fi
8716 ;;
8717 esac
8718 ;;
8719
8720 sunos4*)
8721 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8722 wlarc=
8723 hardcode_direct=yes
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 *)
8728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731 else
8732 ld_shlibs=no
8733 fi
8734 ;;
8735 esac
8736
8737 if test "$ld_shlibs" = no; then
8738 runpath_var=
8739 hardcode_libdir_flag_spec=
8740 export_dynamic_flag_spec=
8741 whole_archive_flag_spec=
8742 fi
8743 else
8744 # PORTME fill in a description of your system's linker (not GNU ld)
8745 case $host_os in
8746 aix3*)
8747 allow_undefined_flag=unsupported
8748 always_export_symbols=yes
8749 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'
8750 # Note: this linker hardcodes the directories in LIBPATH if there
8751 # are no directories specified by -L.
8752 hardcode_minus_L=yes
8753 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8754 # Neither direct hardcoding nor static linking is supported with a
8755 # broken collect2.
8756 hardcode_direct=unsupported
8757 fi
8758 ;;
8759
8760 aix4* | aix5*)
8761 if test "$host_cpu" = ia64; then
8762 # On IA64, the linker does run time linking by default, so we don't
8763 # have to do anything special.
8764 aix_use_runtimelinking=no
8765 exp_sym_flag='-Bexport'
8766 no_entry_flag=""
8767 else
8768 # If we're using GNU nm, then we don't want the "-C" option.
8769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8770 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8771 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'
8772 else
8773 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'
8774 fi
8775 aix_use_runtimelinking=no
8776
8777 # Test if we are trying to use run time linking or normal
8778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8779 # need to do runtime linking.
8780 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8781 for ld_flag in $LDFLAGS; do
8782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8783 aix_use_runtimelinking=yes
8784 break
8785 fi
8786 done
8787 ;;
8788 esac
8789
8790 exp_sym_flag='-bexport'
8791 no_entry_flag='-bnoentry'
8792 fi
8793
8794 # When large executables or shared objects are built, AIX ld can
8795 # have problems creating the table of contents. If linking a library
8796 # or program results in "error TOC overflow" add -mminimal-toc to
8797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8799
8800 archive_cmds=''
8801 hardcode_direct=yes
8802 hardcode_libdir_separator=':'
8803 link_all_deplibs=yes
8804
8805 if test "$GCC" = yes; then
8806 case $host_os in aix4.[012]|aix4.[012].*)
8807 # We only want to do this on AIX 4.2 and lower, the check
8808 # below for broken collect2 doesn't work under 4.3+
8809 collect2name=`${CC} -print-prog-name=collect2`
8810 if test -f "$collect2name" && \
8811 strings "$collect2name" | grep resolve_lib_name >/dev/null
8812 then
8813 # We have reworked collect2
8814 hardcode_direct=yes
8815 else
8816 # We have old collect2
8817 hardcode_direct=unsupported
8818 # It fails to find uninstalled libraries when the uninstalled
8819 # path is not listed in the libpath. Setting hardcode_minus_L
8820 # to unsupported forces relinking
8821 hardcode_minus_L=yes
8822 hardcode_libdir_flag_spec='-L$libdir'
8823 hardcode_libdir_separator=
8824 fi
8825 ;;
8826 esac
8827 shared_flag='-shared'
8828 if test "$aix_use_runtimelinking" = yes; then
8829 shared_flag="$shared_flag "'${wl}-G'
8830 fi
8831 else
8832 # not using gcc
8833 if test "$host_cpu" = ia64; then
8834 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8835 # chokes on -Wl,-G. The following line is correct:
8836 shared_flag='-G'
8837 else
8838 if test "$aix_use_runtimelinking" = yes; then
8839 shared_flag='${wl}-G'
8840 else
8841 shared_flag='${wl}-bM:SRE'
8842 fi
8843 fi
8844 fi
8845
8846 # It seems that -bexpall does not export symbols beginning with
8847 # underscore (_), so it is better to generate a list of symbols to export.
8848 always_export_symbols=yes
8849 if test "$aix_use_runtimelinking" = yes; then
8850 # Warning - without using the other runtime loading flags (-brtl),
8851 # -berok will link without error, but may produce a broken library.
8852 allow_undefined_flag='-berok'
8853 # Determine the default libpath from the value encoded in an empty executable.
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860
8861 int
8862 main ()
8863 {
8864
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891
8892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8893 }'`
8894 # Check for a 64-bit object if we didn't find anything.
8895 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; }
8896 }'`; fi
8897 else
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901 fi
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905
8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 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"
8908 else
8909 if test "$host_cpu" = ia64; then
8910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag="-z nodefs"
8912 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"
8913 else
8914 # Determine the default libpath from the value encoded in an empty executable.
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921
8922 int
8923 main ()
8924 {
8925
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952
8953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8954 }'`
8955 # Check for a 64-bit object if we didn't find anything.
8956 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; }
8957 }'`; fi
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 fi
8963 rm -f conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8966
8967 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8968 # Warning - without using the other run time loading flags,
8969 # -berok will link without error, but may produce a broken library.
8970 no_undefined_flag=' ${wl}-bernotok'
8971 allow_undefined_flag=' ${wl}-berok'
8972 # Exported symbols can be pulled into shared objects from archives
8973 whole_archive_flag_spec='$convenience'
8974 archive_cmds_need_lc=yes
8975 # This is similar to how AIX traditionally builds its shared libraries.
8976 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'
8977 fi
8978 fi
8979 ;;
8980
8981 amigaos*)
8982 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)'
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_minus_L=yes
8985 # see comment about different semantics on the GNU ld section
8986 ld_shlibs=no
8987 ;;
8988
8989 bsdi[45]*)
8990 export_dynamic_flag_spec=-rdynamic
8991 ;;
8992
8993 cygwin* | mingw* | pw32*)
8994 # When not using gcc, we currently assume that we are using
8995 # Microsoft Visual C++.
8996 # hardcode_libdir_flag_spec is actually meaningless, as there is
8997 # no search path for DLLs.
8998 hardcode_libdir_flag_spec=' '
8999 allow_undefined_flag=unsupported
9000 # Tell ltmain to make .lib files, not .a files.
9001 libext=lib
9002 # Tell ltmain to make .dll files, not .so files.
9003 shrext_cmds=".dll"
9004 # FIXME: Setting linknames here is a bad hack.
9005 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9006 # The linker will automatically build a .lib file if we build a DLL.
9007 old_archive_From_new_cmds='true'
9008 # FIXME: Should let the user specify the lib program.
9009 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9010 fix_srcfile_path='`cygpath -w "$srcfile"`'
9011 enable_shared_with_static_runtimes=yes
9012 ;;
9013
9014 darwin* | rhapsody*)
9015 case $host_os in
9016 rhapsody* | darwin1.[012])
9017 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9018 ;;
9019 *) # Darwin 1.3 on
9020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9021 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9022 else
9023 case ${MACOSX_DEPLOYMENT_TARGET} in
9024 10.[012])
9025 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9026 ;;
9027 10.*)
9028 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9029 ;;
9030 esac
9031 fi
9032 ;;
9033 esac
9034 archive_cmds_need_lc=no
9035 hardcode_direct=no
9036 hardcode_automatic=yes
9037 hardcode_shlibpath_var=unsupported
9038 whole_archive_flag_spec=''
9039 link_all_deplibs=yes
9040 if test "$GCC" = yes ; then
9041 output_verbose_link_cmd='echo'
9042 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9043 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9045 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}'
9046 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}'
9047 else
9048 case $cc_basename in
9049 xlc*)
9050 output_verbose_link_cmd='echo'
9051 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9052 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9054 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}'
9055 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}'
9056 ;;
9057 *)
9058 ld_shlibs=no
9059 ;;
9060 esac
9061 fi
9062 ;;
9063
9064 dgux*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 freebsd1*)
9071 ld_shlibs=no
9072 ;;
9073
9074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9075 # support. Future versions do this automatically, but an explicit c++rt0.o
9076 # does not break anything, and helps significantly (at the cost of a little
9077 # extra space).
9078 freebsd2.2*)
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9080 hardcode_libdir_flag_spec='-R$libdir'
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
9083 ;;
9084
9085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9086 freebsd2*)
9087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_direct=yes
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
9091 ;;
9092
9093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9094 freebsd* | kfreebsd*-gnu | dragonfly*)
9095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9096 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_direct=yes
9098 hardcode_shlibpath_var=no
9099 ;;
9100
9101 hpux9*)
9102 if test "$GCC" = yes; then
9103 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'
9104 else
9105 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'
9106 fi
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_separator=:
9109 hardcode_direct=yes
9110
9111 # hardcode_minus_L: Not really in the search PATH,
9112 # but as the default location of the library.
9113 hardcode_minus_L=yes
9114 export_dynamic_flag_spec='${wl}-E'
9115 ;;
9116
9117 hpux10*)
9118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 else
9121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9122 fi
9123 if test "$with_gnu_ld" = no; then
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_separator=:
9126
9127 hardcode_direct=yes
9128 export_dynamic_flag_spec='${wl}-E'
9129
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9133 fi
9134 ;;
9135
9136 hpux11*)
9137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9138 case $host_cpu in
9139 hppa*64*)
9140 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 ia64*)
9143 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9144 ;;
9145 *)
9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 ;;
9148 esac
9149 else
9150 case $host_cpu in
9151 hppa*64*)
9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 ;;
9154 ia64*)
9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9156 ;;
9157 *)
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 ;;
9160 esac
9161 fi
9162 if test "$with_gnu_ld" = no; then
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9165
9166 case $host_cpu in
9167 hppa*64*|ia64*)
9168 hardcode_libdir_flag_spec_ld='+b $libdir'
9169 hardcode_direct=no
9170 hardcode_shlibpath_var=no
9171 ;;
9172 *)
9173 hardcode_direct=yes
9174 export_dynamic_flag_spec='${wl}-E'
9175
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L=yes
9179 ;;
9180 esac
9181 fi
9182 ;;
9183
9184 irix5* | irix6* | nonstopux*)
9185 if test "$GCC" = yes; then
9186 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'
9187 else
9188 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'
9189 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9190 fi
9191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192 hardcode_libdir_separator=:
9193 link_all_deplibs=yes
9194 ;;
9195
9196 netbsd*)
9197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9199 else
9200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9201 fi
9202 hardcode_libdir_flag_spec='-R$libdir'
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 ;;
9206
9207 newsos6)
9208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9212 hardcode_shlibpath_var=no
9213 ;;
9214
9215 openbsd*)
9216 hardcode_direct=yes
9217 hardcode_shlibpath_var=no
9218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9222 export_dynamic_flag_spec='${wl}-E'
9223 else
9224 case $host_os in
9225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 ;;
9229 *)
9230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9232 ;;
9233 esac
9234 fi
9235 ;;
9236
9237 os2*)
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 hardcode_minus_L=yes
9240 allow_undefined_flag=unsupported
9241 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'
9242 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9243 ;;
9244
9245 osf3*)
9246 if test "$GCC" = yes; then
9247 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9248 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'
9249 else
9250 allow_undefined_flag=' -expect_unresolved \*'
9251 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'
9252 fi
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255 ;;
9256
9257 osf4* | osf5*) # as osf3* with the addition of -msym flag
9258 if test "$GCC" = yes; then
9259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9260 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'
9261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262 else
9263 allow_undefined_flag=' -expect_unresolved \*'
9264 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'
9265 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9266 $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'
9267
9268 # Both c and cxx compiler support -rpath directly
9269 hardcode_libdir_flag_spec='-rpath $libdir'
9270 fi
9271 hardcode_libdir_separator=:
9272 ;;
9273
9274 solaris*)
9275 no_undefined_flag=' -z text'
9276 if test "$GCC" = yes; then
9277 wlarc='${wl}'
9278 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9279 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9281 else
9282 wlarc=''
9283 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9286 fi
9287 hardcode_libdir_flag_spec='-R$libdir'
9288 hardcode_shlibpath_var=no
9289 case $host_os in
9290 solaris2.[0-5] | solaris2.[0-5].*) ;;
9291 *)
9292 # The compiler driver will combine linker options so we
9293 # cannot just pass the convience library names through
9294 # without $wl, iff we do not link with $LD.
9295 # Luckily, gcc supports the same syntax we need for Sun Studio.
9296 # Supported since Solaris 2.6 (maybe 2.5.1?)
9297 case $wlarc in
9298 '')
9299 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9300 *)
9301 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' ;;
9302 esac ;;
9303 esac
9304 link_all_deplibs=yes
9305 ;;
9306
9307 sunos4*)
9308 if test "x$host_vendor" = xsequent; then
9309 # Use $CC to link under sequent, because it throws in some extra .o
9310 # files that make .init and .fini sections work.
9311 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9312 else
9313 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9314 fi
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_direct=yes
9317 hardcode_minus_L=yes
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 sysv4)
9322 case $host_vendor in
9323 sni)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=yes # is this really true???
9326 ;;
9327 siemens)
9328 ## LD is ld it makes a PLAMLIB
9329 ## CC just makes a GrossModule.
9330 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9331 reload_cmds='$CC -r -o $output$reload_objs'
9332 hardcode_direct=no
9333 ;;
9334 motorola)
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9337 ;;
9338 esac
9339 runpath_var='LD_RUN_PATH'
9340 hardcode_shlibpath_var=no
9341 ;;
9342
9343 sysv4.3*)
9344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_shlibpath_var=no
9346 export_dynamic_flag_spec='-Bexport'
9347 ;;
9348
9349 sysv4*MP*)
9350 if test -d /usr/nec; then
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_shlibpath_var=no
9353 runpath_var=LD_RUN_PATH
9354 hardcode_runpath_var=yes
9355 ld_shlibs=yes
9356 fi
9357 ;;
9358
9359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9360 no_undefined_flag='${wl}-z,text'
9361 archive_cmds_need_lc=no
9362 hardcode_shlibpath_var=no
9363 runpath_var='LD_RUN_PATH'
9364
9365 if test "$GCC" = yes; then
9366 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 else
9369 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 fi
9372 ;;
9373
9374 sysv5* | sco3.2v5* | sco5v6*)
9375 # Note: We can NOT use -z defs as we might desire, because we do not
9376 # link with -lc, and that would cause any symbols used from libc to
9377 # always be unresolved, which means just about no library would
9378 # ever link correctly. If we're not using GNU ld we use -z text
9379 # though, which does catch some bad symbols but isn't as heavy-handed
9380 # as -z defs.
9381 no_undefined_flag='${wl}-z,text'
9382 allow_undefined_flag='${wl}-z,nodefs'
9383 archive_cmds_need_lc=no
9384 hardcode_shlibpath_var=no
9385 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9386 hardcode_libdir_separator=':'
9387 link_all_deplibs=yes
9388 export_dynamic_flag_spec='${wl}-Bexport'
9389 runpath_var='LD_RUN_PATH'
9390
9391 if test "$GCC" = yes; then
9392 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 else
9395 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 fi
9398 ;;
9399
9400 uts4*)
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_libdir_flag_spec='-L$libdir'
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 *)
9407 ld_shlibs=no
9408 ;;
9409 esac
9410 fi
9411
9412 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9413 echo "${ECHO_T}$ld_shlibs" >&6
9414 test "$ld_shlibs" = no && can_build_shared=no
9415
9416 #
9417 # Do we need to explicitly link libc?
9418 #
9419 case "x$archive_cmds_need_lc" in
9420 x|xyes)
9421 # Assume -lc should be added
9422 archive_cmds_need_lc=yes
9423
9424 if test "$enable_shared" = yes && test "$GCC" = yes; then
9425 case $archive_cmds in
9426 *'~'*)
9427 # FIXME: we may have to deal with multi-command sequences.
9428 ;;
9429 '$CC '*)
9430 # Test whether the compiler implicitly links with -lc since on some
9431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9432 # to ld, don't add -lc before -lgcc.
9433 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9435 $rm conftest*
9436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9437
9438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9439 (eval $ac_compile) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } 2>conftest.err; then
9443 soname=conftest
9444 lib=conftest
9445 libobjs=conftest.$ac_objext
9446 deplibs=
9447 wl=$lt_prog_compiler_wl
9448 pic_flag=$lt_prog_compiler_pic
9449 compiler_flags=-v
9450 linker_flags=-v
9451 verstring=
9452 output_objdir=.
9453 libname=conftest
9454 lt_save_allow_undefined_flag=$allow_undefined_flag
9455 allow_undefined_flag=
9456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9457 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }
9461 then
9462 archive_cmds_need_lc=no
9463 else
9464 archive_cmds_need_lc=yes
9465 fi
9466 allow_undefined_flag=$lt_save_allow_undefined_flag
9467 else
9468 cat conftest.err 1>&5
9469 fi
9470 $rm conftest*
9471 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9472 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9473 ;;
9474 esac
9475 fi
9476 ;;
9477 esac
9478
9479 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9480 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9481 library_names_spec=
9482 libname_spec='lib$name'
9483 soname_spec=
9484 shrext_cmds=".so"
9485 postinstall_cmds=
9486 postuninstall_cmds=
9487 finish_cmds=
9488 finish_eval=
9489 shlibpath_var=
9490 shlibpath_overrides_runpath=unknown
9491 version_type=none
9492 dynamic_linker="$host_os ld.so"
9493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9494 if test "$GCC" = yes; then
9495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9497 # if the path contains ";" then we assume it to be the separator
9498 # otherwise default to the standard path separator (i.e. ":") - it is
9499 # assumed that no part of a normal pathname contains ";" but that should
9500 # okay in the real world where ";" in dirpaths is itself problematic.
9501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9502 else
9503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9504 fi
9505 else
9506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9507 fi
9508 need_lib_prefix=unknown
9509 hardcode_into_libs=no
9510
9511 # when you set need_version to no, make sure it does not cause -set_version
9512 # flags to be left without arguments
9513 need_version=unknown
9514
9515 case $host_os in
9516 aix3*)
9517 version_type=linux
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9519 shlibpath_var=LIBPATH
9520
9521 # AIX 3 has no versioning support, so we append a major version to the name.
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 ;;
9524
9525 aix4* | aix5*)
9526 version_type=linux
9527 need_lib_prefix=no
9528 need_version=no
9529 hardcode_into_libs=yes
9530 if test "$host_cpu" = ia64; then
9531 # AIX 5 supports IA64
9532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 else
9535 # With GCC up to 2.95.x, collect2 would create an import file
9536 # for dependence libraries. The import file would start with
9537 # the line `#! .'. This would cause the generated library to
9538 # depend on `.', always an invalid library. This was fixed in
9539 # development snapshots of GCC prior to 3.0.
9540 case $host_os in
9541 aix4 | aix4.[01] | aix4.[01].*)
9542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9543 echo ' yes '
9544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9545 :
9546 else
9547 can_build_shared=no
9548 fi
9549 ;;
9550 esac
9551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9552 # soname into executable. Probably we can add versioning support to
9553 # collect2, so additional links can be useful in future.
9554 if test "$aix_use_runtimelinking" = yes; then
9555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9556 # instead of lib<name>.a to let people know that these are not
9557 # typical AIX shared libraries.
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 else
9560 # We preserve .a as extension for shared libraries through AIX4.2
9561 # and later when we are not doing run time linking.
9562 library_names_spec='${libname}${release}.a $libname.a'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 fi
9565 shlibpath_var=LIBPATH
9566 fi
9567 ;;
9568
9569 amigaos*)
9570 library_names_spec='$libname.ixlibrary $libname.a'
9571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9572 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'
9573 ;;
9574
9575 beos*)
9576 library_names_spec='${libname}${shared_ext}'
9577 dynamic_linker="$host_os ld.so"
9578 shlibpath_var=LIBRARY_PATH
9579 ;;
9580
9581 bsdi[45]*)
9582 version_type=linux
9583 need_version=no
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9590 # the default ld.so.conf also contains /usr/contrib/lib and
9591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9592 # libtool to hard-code these into programs
9593 ;;
9594
9595 cygwin* | mingw* | pw32*)
9596 version_type=windows
9597 shrext_cmds=".dll"
9598 need_version=no
9599 need_lib_prefix=no
9600
9601 case $GCC,$host_os in
9602 yes,cygwin* | yes,mingw* | yes,pw32*)
9603 library_names_spec='$libname.dll.a'
9604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9605 postinstall_cmds='base_file=`basename \${file}`~
9606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9607 dldir=$destdir/`dirname \$dlpath`~
9608 test -d \$dldir || mkdir -p \$dldir~
9609 $install_prog $dir/$dlname \$dldir/$dlname~
9610 chmod a+x \$dldir/$dlname'
9611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9612 dlpath=$dir/\$dldll~
9613 $rm \$dlpath'
9614 shlibpath_overrides_runpath=yes
9615
9616 case $host_os in
9617 cygwin*)
9618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9621 ;;
9622 mingw*)
9623 # MinGW DLLs use traditional 'lib' prefix
9624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9627 # It is most probably a Windows format PATH printed by
9628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9629 # path with ; separators, and with drive letters. We can handle the
9630 # drive letters (cygwin fileutils understands them), so leave them,
9631 # especially as we might pass files found there to a mingw objdump,
9632 # which wouldn't understand a cygwinified path. Ahh.
9633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9634 else
9635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9636 fi
9637 ;;
9638 pw32*)
9639 # pw32 DLLs use 'pw' prefix rather than 'lib'
9640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9641 ;;
9642 esac
9643 ;;
9644
9645 *)
9646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9647 ;;
9648 esac
9649 dynamic_linker='Win32 ld.exe'
9650 # FIXME: first we should search . and the directory the executable is in
9651 shlibpath_var=PATH
9652 ;;
9653
9654 darwin* | rhapsody*)
9655 dynamic_linker="$host_os dyld"
9656 version_type=darwin
9657 need_lib_prefix=no
9658 need_version=no
9659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9660 soname_spec='${libname}${release}${major}$shared_ext'
9661 shlibpath_overrides_runpath=yes
9662 shlibpath_var=DYLD_LIBRARY_PATH
9663 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9665 if test "$GCC" = yes; then
9666 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"`
9667 else
9668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9669 fi
9670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9671 ;;
9672
9673 dgux*)
9674 version_type=linux
9675 need_lib_prefix=no
9676 need_version=no
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 ;;
9681
9682 freebsd1*)
9683 dynamic_linker=no
9684 ;;
9685
9686 kfreebsd*-gnu)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=no
9694 hardcode_into_libs=yes
9695 dynamic_linker='GNU ld.so'
9696 ;;
9697
9698 freebsd* | dragonfly*)
9699 # DragonFly does not have aout. When/if they implement a new
9700 # versioning mechanism, adjust this.
9701 if test -x /usr/bin/objformat; then
9702 objformat=`/usr/bin/objformat`
9703 else
9704 case $host_os in
9705 freebsd[123]*) objformat=aout ;;
9706 *) objformat=elf ;;
9707 esac
9708 fi
9709 version_type=freebsd-$objformat
9710 case $version_type in
9711 freebsd-elf*)
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9713 need_version=no
9714 need_lib_prefix=no
9715 ;;
9716 freebsd-*)
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9718 need_version=yes
9719 ;;
9720 esac
9721 shlibpath_var=LD_LIBRARY_PATH
9722 case $host_os in
9723 freebsd2*)
9724 shlibpath_overrides_runpath=yes
9725 ;;
9726 freebsd3.[01]* | freebsdelf3.[01]*)
9727 shlibpath_overrides_runpath=yes
9728 hardcode_into_libs=yes
9729 ;;
9730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9732 shlibpath_overrides_runpath=no
9733 hardcode_into_libs=yes
9734 ;;
9735 freebsd*) # from 4.6 on
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 ;;
9739 esac
9740 ;;
9741
9742 gnu*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 hardcode_into_libs=yes
9750 ;;
9751
9752 hpux9* | hpux10* | hpux11*)
9753 # Give a soname corresponding to the major version so that dld.sl refuses to
9754 # link against other versions.
9755 version_type=sunos
9756 need_lib_prefix=no
9757 need_version=no
9758 case $host_cpu in
9759 ia64*)
9760 shrext_cmds='.so'
9761 hardcode_into_libs=yes
9762 dynamic_linker="$host_os dld.so"
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 if test "X$HPUX_IA64_MODE" = X32; then
9768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9769 else
9770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9771 fi
9772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9773 ;;
9774 hppa*64*)
9775 shrext_cmds='.sl'
9776 hardcode_into_libs=yes
9777 dynamic_linker="$host_os dld.sl"
9778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9784 ;;
9785 *)
9786 shrext_cmds='.sl'
9787 dynamic_linker="$host_os dld.sl"
9788 shlibpath_var=SHLIB_PATH
9789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 ;;
9793 esac
9794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9795 postinstall_cmds='chmod 555 $lib'
9796 ;;
9797
9798 interix3*)
9799 version_type=linux
9800 need_lib_prefix=no
9801 need_version=no
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=no
9807 hardcode_into_libs=yes
9808 ;;
9809
9810 irix5* | irix6* | nonstopux*)
9811 case $host_os in
9812 nonstopux*) version_type=nonstopux ;;
9813 *)
9814 if test "$lt_cv_prog_gnu_ld" = yes; then
9815 version_type=linux
9816 else
9817 version_type=irix
9818 fi ;;
9819 esac
9820 need_lib_prefix=no
9821 need_version=no
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9824 case $host_os in
9825 irix5* | nonstopux*)
9826 libsuff= shlibsuff=
9827 ;;
9828 *)
9829 case $LD in # libtool.m4 will add one of these switches to LD
9830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9831 libsuff= shlibsuff= libmagic=32-bit;;
9832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9833 libsuff=32 shlibsuff=N32 libmagic=N32;;
9834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9836 *) libsuff= shlibsuff= libmagic=never-match;;
9837 esac
9838 ;;
9839 esac
9840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9841 shlibpath_overrides_runpath=no
9842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9844 hardcode_into_libs=yes
9845 ;;
9846
9847 # No shared lib support for Linux oldld, aout, or coff.
9848 linux*oldld* | linux*aout* | linux*coff*)
9849 dynamic_linker=no
9850 ;;
9851
9852 # This must be Linux ELF.
9853 linux*)
9854 version_type=linux
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 shlibpath_overrides_runpath=no
9862 # This implies no fast_install, which is unacceptable.
9863 # Some rework will be needed to allow for fast_install
9864 # before this can be enabled.
9865 hardcode_into_libs=yes
9866
9867 # Append ld.so.conf contents to the search path
9868 if test -f /etc/ld.so.conf; then
9869 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' ' '`
9870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9871 fi
9872
9873 # We used to test for /lib/ld.so.1 and disable shared libraries on
9874 # powerpc, because MkLinux only supported shared libraries with the
9875 # GNU dynamic linker. Since this was broken with cross compilers,
9876 # most powerpc-linux boxes support dynamic linking these days and
9877 # people can always --disable-shared, the test was removed, and we
9878 # assume the GNU/Linux dynamic linker is in use.
9879 dynamic_linker='GNU/Linux ld.so'
9880 ;;
9881
9882 knetbsd*-gnu)
9883 version_type=linux
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9891 dynamic_linker='GNU ld.so'
9892 ;;
9893
9894 netbsd*)
9895 version_type=sunos
9896 need_lib_prefix=no
9897 need_version=no
9898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9901 dynamic_linker='NetBSD (a.out) ld.so'
9902 else
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 dynamic_linker='NetBSD ld.elf_so'
9906 fi
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes
9909 hardcode_into_libs=yes
9910 ;;
9911
9912 newsos6)
9913 version_type=linux
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 shlibpath_overrides_runpath=yes
9917 ;;
9918
9919 nto-qnx*)
9920 version_type=linux
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath=yes
9927 ;;
9928
9929 openbsd*)
9930 version_type=sunos
9931 sys_lib_dlsearch_path_spec="/usr/lib"
9932 need_lib_prefix=no
9933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9934 case $host_os in
9935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9936 *) need_version=no ;;
9937 esac
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9942 case $host_os in
9943 openbsd2.[89] | openbsd2.[89].*)
9944 shlibpath_overrides_runpath=no
9945 ;;
9946 *)
9947 shlibpath_overrides_runpath=yes
9948 ;;
9949 esac
9950 else
9951 shlibpath_overrides_runpath=yes
9952 fi
9953 ;;
9954
9955 os2*)
9956 libname_spec='$name'
9957 shrext_cmds=".dll"
9958 need_lib_prefix=no
9959 library_names_spec='$libname${shared_ext} $libname.a'
9960 dynamic_linker='OS/2 ld.exe'
9961 shlibpath_var=LIBPATH
9962 ;;
9963
9964 osf3* | osf4* | osf5*)
9965 version_type=osf
9966 need_lib_prefix=no
9967 need_version=no
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9973 ;;
9974
9975 solaris*)
9976 version_type=linux
9977 need_lib_prefix=no
9978 need_version=no
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 shlibpath_overrides_runpath=yes
9983 hardcode_into_libs=yes
9984 # ldd complains unless libraries are executable
9985 postinstall_cmds='chmod +x $lib'
9986 ;;
9987
9988 sunos4*)
9989 version_type=sunos
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 shlibpath_overrides_runpath=yes
9994 if test "$with_gnu_ld" = yes; then
9995 need_lib_prefix=no
9996 fi
9997 need_version=yes
9998 ;;
9999
10000 sysv4 | sysv4.3*)
10001 version_type=linux
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 case $host_vendor in
10006 sni)
10007 shlibpath_overrides_runpath=no
10008 need_lib_prefix=no
10009 export_dynamic_flag_spec='${wl}-Blargedynsym'
10010 runpath_var=LD_RUN_PATH
10011 ;;
10012 siemens)
10013 need_lib_prefix=no
10014 ;;
10015 motorola)
10016 need_lib_prefix=no
10017 need_version=no
10018 shlibpath_overrides_runpath=no
10019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10020 ;;
10021 esac
10022 ;;
10023
10024 sysv4*MP*)
10025 if test -d /usr/nec ;then
10026 version_type=linux
10027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10028 soname_spec='$libname${shared_ext}.$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 fi
10031 ;;
10032
10033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10034 version_type=freebsd-elf
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 hardcode_into_libs=yes
10041 if test "$with_gnu_ld" = yes; then
10042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10043 shlibpath_overrides_runpath=no
10044 else
10045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10046 shlibpath_overrides_runpath=yes
10047 case $host_os in
10048 sco3.2v5*)
10049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10050 ;;
10051 esac
10052 fi
10053 sys_lib_dlsearch_path_spec='/usr/lib'
10054 ;;
10055
10056 uts4*)
10057 version_type=linux
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 ;;
10062
10063 *)
10064 dynamic_linker=no
10065 ;;
10066 esac
10067 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10068 echo "${ECHO_T}$dynamic_linker" >&6
10069 test "$dynamic_linker" = no && can_build_shared=no
10070
10071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10072 if test "$GCC" = yes; then
10073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10074 fi
10075
10076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10078 hardcode_action=
10079 if test -n "$hardcode_libdir_flag_spec" || \
10080 test -n "$runpath_var" || \
10081 test "X$hardcode_automatic" = "Xyes" ; then
10082
10083 # We can hardcode non-existant directories.
10084 if test "$hardcode_direct" != no &&
10085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10086 # have to relink, otherwise we might link with an installed library
10087 # when we should be linking with a yet-to-be-installed one
10088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10089 test "$hardcode_minus_L" != no; then
10090 # Linking always hardcodes the temporary library directory.
10091 hardcode_action=relink
10092 else
10093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10094 hardcode_action=immediate
10095 fi
10096 else
10097 # We cannot hardcode anything, or else we can only hardcode existing
10098 # directories.
10099 hardcode_action=unsupported
10100 fi
10101 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10102 echo "${ECHO_T}$hardcode_action" >&6
10103
10104 if test "$hardcode_action" = relink; then
10105 # Fast installation is not supported
10106 enable_fast_install=no
10107 elif test "$shlibpath_overrides_runpath" = yes ||
10108 test "$enable_shared" = no; then
10109 # Fast installation is not necessary
10110 enable_fast_install=needless
10111 fi
10112
10113 striplib=
10114 old_striplib=
10115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10120 echo "$as_me:$LINENO: result: yes" >&5
10121 echo "${ECHO_T}yes" >&6
10122 else
10123 # FIXME - insert some real tests, host_os isn't really good enough
10124 case $host_os in
10125 darwin*)
10126 if test -n "$STRIP" ; then
10127 striplib="$STRIP -x"
10128 echo "$as_me:$LINENO: result: yes" >&5
10129 echo "${ECHO_T}yes" >&6
10130 else
10131 echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6
10133 fi
10134 ;;
10135 *)
10136 echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6
10138 ;;
10139 esac
10140 fi
10141
10142 if test "x$enable_dlopen" != xyes; then
10143 enable_dlopen=unknown
10144 enable_dlopen_self=unknown
10145 enable_dlopen_self_static=unknown
10146 else
10147 lt_cv_dlopen=no
10148 lt_cv_dlopen_libs=
10149
10150 case $host_os in
10151 beos*)
10152 lt_cv_dlopen="load_add_on"
10153 lt_cv_dlopen_libs=
10154 lt_cv_dlopen_self=yes
10155 ;;
10156
10157 mingw* | pw32*)
10158 lt_cv_dlopen="LoadLibrary"
10159 lt_cv_dlopen_libs=
10160 ;;
10161
10162 cygwin*)
10163 lt_cv_dlopen="dlopen"
10164 lt_cv_dlopen_libs=
10165 ;;
10166
10167 darwin*)
10168 # if libdl is installed we need to link against it
10169 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-ldl $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182
10183 /* Override any gcc2 internal prototype to avoid an error. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10189 char dlopen ();
10190 int
10191 main ()
10192 {
10193 dlopen ();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_dl_dlopen=yes
10221 else
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 ac_cv_lib_dl_dlopen=no
10226 fi
10227 rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10233 if test $ac_cv_lib_dl_dlopen = yes; then
10234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10235 else
10236
10237 lt_cv_dlopen="dyld"
10238 lt_cv_dlopen_libs=
10239 lt_cv_dlopen_self=yes
10240
10241 fi
10242
10243 ;;
10244
10245 *)
10246 echo "$as_me:$LINENO: checking for shl_load" >&5
10247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10248 if test "${ac_cv_func_shl_load+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h. */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10259 #define shl_load innocuous_shl_load
10260
10261 /* System header to define __stub macros and hopefully few prototypes,
10262 which can conflict with char shl_load (); below.
10263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10264 <limits.h> exists even on freestanding compilers. */
10265
10266 #ifdef __STDC__
10267 # include <limits.h>
10268 #else
10269 # include <assert.h>
10270 #endif
10271
10272 #undef shl_load
10273
10274 /* Override any gcc2 internal prototype to avoid an error. */
10275 #ifdef __cplusplus
10276 extern "C"
10277 {
10278 #endif
10279 /* We use char because int might match the return type of a gcc2
10280 builtin and then its argument prototype would still apply. */
10281 char shl_load ();
10282 /* The GNU C library defines this for functions which it implements
10283 to always fail with ENOSYS. Some functions are actually named
10284 something starting with __ and the normal name is an alias. */
10285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10286 choke me
10287 #else
10288 char (*f) () = shl_load;
10289 #endif
10290 #ifdef __cplusplus
10291 }
10292 #endif
10293
10294 int
10295 main ()
10296 {
10297 return f != shl_load;
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_func_shl_load=yes
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_cv_func_shl_load=no
10330 fi
10331 rm -f conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10335 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10336 if test $ac_cv_func_shl_load = yes; then
10337 lt_cv_dlopen="shl_load"
10338 else
10339 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10340 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10341 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-ldld $LIBS"
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352
10353 /* Override any gcc2 internal prototype to avoid an error. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char shl_load ();
10360 int
10361 main ()
10362 {
10363 shl_load ();
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>conftest.er1
10371 ac_status=$?
10372 grep -v '^ *+' conftest.er1 >conftest.err
10373 rm -f conftest.er1
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag"
10378 || test ! -s conftest.err'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; } &&
10384 { ac_try='test -s conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_cv_lib_dld_shl_load=yes
10391 else
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 ac_cv_lib_dld_shl_load=no
10396 fi
10397 rm -f conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10400 fi
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10403 if test $ac_cv_lib_dld_shl_load = yes; then
10404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10405 else
10406 echo "$as_me:$LINENO: checking for dlopen" >&5
10407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10408 if test "${ac_cv_func_dlopen+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10419 #define dlopen innocuous_dlopen
10420
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char dlopen (); below.
10423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424 <limits.h> exists even on freestanding compilers. */
10425
10426 #ifdef __STDC__
10427 # include <limits.h>
10428 #else
10429 # include <assert.h>
10430 #endif
10431
10432 #undef dlopen
10433
10434 /* Override any gcc2 internal prototype to avoid an error. */
10435 #ifdef __cplusplus
10436 extern "C"
10437 {
10438 #endif
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10441 char dlopen ();
10442 /* The GNU C library defines this for functions which it implements
10443 to always fail with ENOSYS. Some functions are actually named
10444 something starting with __ and the normal name is an alias. */
10445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10446 choke me
10447 #else
10448 char (*f) () = dlopen;
10449 #endif
10450 #ifdef __cplusplus
10451 }
10452 #endif
10453
10454 int
10455 main ()
10456 {
10457 return f != dlopen;
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_func_dlopen=yes
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_func_dlopen=no
10490 fi
10491 rm -f conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493 fi
10494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10496 if test $ac_cv_func_dlopen = yes; then
10497 lt_cv_dlopen="dlopen"
10498 else
10499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-ldl $LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10519 char dlopen ();
10520 int
10521 main ()
10522 {
10523 dlopen ();
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag"
10538 || test ! -s conftest.err'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_lib_dl_dlopen=yes
10551 else
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_lib_dl_dlopen=no
10556 fi
10557 rm -f conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10560 fi
10561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10563 if test $ac_cv_lib_dl_dlopen = yes; then
10564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10565 else
10566 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-lsvld $LIBS"
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10586 char dlopen ();
10587 int
10588 main ()
10589 {
10590 dlopen ();
10591 ;
10592 return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -z "$ac_c_werror_flag"
10605 || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_svld_dlopen=yes
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_cv_lib_svld_dlopen=no
10623 fi
10624 rm -f conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10630 if test $ac_cv_lib_svld_dlopen = yes; then
10631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10632 else
10633 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldld $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h. */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646
10647 /* Override any gcc2 internal prototype to avoid an error. */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10653 char dld_link ();
10654 int
10655 main ()
10656 {
10657 dld_link ();
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10665 ac_status=$?
10666 grep -v '^ *+' conftest.er1 >conftest.err
10667 rm -f conftest.er1
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -z "$ac_c_werror_flag"
10672 || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_dld_dld_link=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 ac_cv_lib_dld_dld_link=no
10690 fi
10691 rm -f conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10696 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10697 if test $ac_cv_lib_dld_dld_link = yes; then
10698 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10699 fi
10700
10701
10702 fi
10703
10704
10705 fi
10706
10707
10708 fi
10709
10710
10711 fi
10712
10713
10714 fi
10715
10716 ;;
10717 esac
10718
10719 if test "x$lt_cv_dlopen" != xno; then
10720 enable_dlopen=yes
10721 else
10722 enable_dlopen=no
10723 fi
10724
10725 case $lt_cv_dlopen in
10726 dlopen)
10727 save_CPPFLAGS="$CPPFLAGS"
10728 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10729
10730 save_LDFLAGS="$LDFLAGS"
10731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10732
10733 save_LIBS="$LIBS"
10734 LIBS="$lt_cv_dlopen_libs $LIBS"
10735
10736 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10737 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10738 if test "${lt_cv_dlopen_self+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 if test "$cross_compiling" = yes; then :
10742 lt_cv_dlopen_self=cross
10743 else
10744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10745 lt_status=$lt_dlunknown
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10747 "configure"
10748 #include "confdefs.h"
10749
10750 #if HAVE_DLFCN_H
10751 #include <dlfcn.h>
10752 #endif
10753
10754 #include <stdio.h>
10755
10756 #ifdef RTLD_GLOBAL
10757 # define LT_DLGLOBAL RTLD_GLOBAL
10758 #else
10759 # ifdef DL_GLOBAL
10760 # define LT_DLGLOBAL DL_GLOBAL
10761 # else
10762 # define LT_DLGLOBAL 0
10763 # endif
10764 #endif
10765
10766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10767 find out it does not work in some platform. */
10768 #ifndef LT_DLLAZY_OR_NOW
10769 # ifdef RTLD_LAZY
10770 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10771 # else
10772 # ifdef DL_LAZY
10773 # define LT_DLLAZY_OR_NOW DL_LAZY
10774 # else
10775 # ifdef RTLD_NOW
10776 # define LT_DLLAZY_OR_NOW RTLD_NOW
10777 # else
10778 # ifdef DL_NOW
10779 # define LT_DLLAZY_OR_NOW DL_NOW
10780 # else
10781 # define LT_DLLAZY_OR_NOW 0
10782 # endif
10783 # endif
10784 # endif
10785 # endif
10786 #endif
10787
10788 #ifdef __cplusplus
10789 extern "C" void exit (int);
10790 #endif
10791
10792 void fnord() { int i=42;}
10793 int main ()
10794 {
10795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10796 int status = $lt_dlunknown;
10797
10798 if (self)
10799 {
10800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10801 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10802 /* dlclose (self); */
10803 }
10804 else
10805 puts (dlerror ());
10806
10807 exit (status);
10808 }
10809 EOF
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10815 (./conftest; exit; ) >&5 2>/dev/null
10816 lt_status=$?
10817 case x$lt_status in
10818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10821 esac
10822 else :
10823 # compilation failed
10824 lt_cv_dlopen_self=no
10825 fi
10826 fi
10827 rm -fr conftest*
10828
10829
10830 fi
10831 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10832 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10833
10834 if test "x$lt_cv_dlopen_self" = xyes; then
10835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10836 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10837 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10838 if test "${lt_cv_dlopen_self_static+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841 if test "$cross_compiling" = yes; then :
10842 lt_cv_dlopen_self_static=cross
10843 else
10844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10845 lt_status=$lt_dlunknown
10846 cat > conftest.$ac_ext <<EOF
10847 #line 10847 "configure"
10848 #include "confdefs.h"
10849
10850 #if HAVE_DLFCN_H
10851 #include <dlfcn.h>
10852 #endif
10853
10854 #include <stdio.h>
10855
10856 #ifdef RTLD_GLOBAL
10857 # define LT_DLGLOBAL RTLD_GLOBAL
10858 #else
10859 # ifdef DL_GLOBAL
10860 # define LT_DLGLOBAL DL_GLOBAL
10861 # else
10862 # define LT_DLGLOBAL 0
10863 # endif
10864 #endif
10865
10866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10867 find out it does not work in some platform. */
10868 #ifndef LT_DLLAZY_OR_NOW
10869 # ifdef RTLD_LAZY
10870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10871 # else
10872 # ifdef DL_LAZY
10873 # define LT_DLLAZY_OR_NOW DL_LAZY
10874 # else
10875 # ifdef RTLD_NOW
10876 # define LT_DLLAZY_OR_NOW RTLD_NOW
10877 # else
10878 # ifdef DL_NOW
10879 # define LT_DLLAZY_OR_NOW DL_NOW
10880 # else
10881 # define LT_DLLAZY_OR_NOW 0
10882 # endif
10883 # endif
10884 # endif
10885 # endif
10886 #endif
10887
10888 #ifdef __cplusplus
10889 extern "C" void exit (int);
10890 #endif
10891
10892 void fnord() { int i=42;}
10893 int main ()
10894 {
10895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10896 int status = $lt_dlunknown;
10897
10898 if (self)
10899 {
10900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10902 /* dlclose (self); */
10903 }
10904 else
10905 puts (dlerror ());
10906
10907 exit (status);
10908 }
10909 EOF
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10915 (./conftest; exit; ) >&5 2>/dev/null
10916 lt_status=$?
10917 case x$lt_status in
10918 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10919 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10920 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10921 esac
10922 else :
10923 # compilation failed
10924 lt_cv_dlopen_self_static=no
10925 fi
10926 fi
10927 rm -fr conftest*
10928
10929
10930 fi
10931 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10932 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10933 fi
10934
10935 CPPFLAGS="$save_CPPFLAGS"
10936 LDFLAGS="$save_LDFLAGS"
10937 LIBS="$save_LIBS"
10938 ;;
10939 esac
10940
10941 case $lt_cv_dlopen_self in
10942 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10943 *) enable_dlopen_self=unknown ;;
10944 esac
10945
10946 case $lt_cv_dlopen_self_static in
10947 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10948 *) enable_dlopen_self_static=unknown ;;
10949 esac
10950 fi
10951
10952
10953 # Report which library types will actually be built
10954 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10955 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10956 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10957 echo "${ECHO_T}$can_build_shared" >&6
10958
10959 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10960 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10961 test "$can_build_shared" = "no" && enable_shared=no
10962
10963 # On AIX, shared libraries and static libraries use the same namespace, and
10964 # are all built from PIC.
10965 case $host_os in
10966 aix3*)
10967 test "$enable_shared" = yes && enable_static=no
10968 if test -n "$RANLIB"; then
10969 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10970 postinstall_cmds='$RANLIB $lib'
10971 fi
10972 ;;
10973
10974 aix4* | aix5*)
10975 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10976 test "$enable_shared" = yes && enable_static=no
10977 fi
10978 ;;
10979 esac
10980 echo "$as_me:$LINENO: result: $enable_shared" >&5
10981 echo "${ECHO_T}$enable_shared" >&6
10982
10983 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10984 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10985 # Make sure either enable_shared or enable_static is yes.
10986 test "$enable_shared" = yes || enable_static=yes
10987 echo "$as_me:$LINENO: result: $enable_static" >&5
10988 echo "${ECHO_T}$enable_static" >&6
10989
10990 # The else clause should only fire when bootstrapping the
10991 # libtool distribution, otherwise you forgot to ship ltmain.sh
10992 # with your package, and you will get complaints that there are
10993 # no rules to generate ltmain.sh.
10994 if test -f "$ltmain"; then
10995 # See if we are running on zsh, and set the options which allow our commands through
10996 # without removal of \ escapes.
10997 if test -n "${ZSH_VERSION+set}" ; then
10998 setopt NO_GLOB_SUBST
10999 fi
11000 # Now quote all the things that may contain metacharacters while being
11001 # careful not to overquote the AC_SUBSTed values. We take copies of the
11002 # variables and quote the copies for generation of the libtool script.
11003 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11004 SED SHELL STRIP \
11005 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11006 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11007 deplibs_check_method reload_flag reload_cmds need_locks \
11008 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11009 lt_cv_sys_global_symbol_to_c_name_address \
11010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11011 old_postinstall_cmds old_postuninstall_cmds \
11012 compiler \
11013 CC \
11014 LD \
11015 lt_prog_compiler_wl \
11016 lt_prog_compiler_pic \
11017 lt_prog_compiler_static \
11018 lt_prog_compiler_no_builtin_flag \
11019 export_dynamic_flag_spec \
11020 thread_safe_flag_spec \
11021 whole_archive_flag_spec \
11022 enable_shared_with_static_runtimes \
11023 old_archive_cmds \
11024 old_archive_from_new_cmds \
11025 predep_objects \
11026 postdep_objects \
11027 predeps \
11028 postdeps \
11029 compiler_lib_search_path \
11030 archive_cmds \
11031 archive_expsym_cmds \
11032 postinstall_cmds \
11033 postuninstall_cmds \
11034 old_archive_from_expsyms_cmds \
11035 allow_undefined_flag \
11036 no_undefined_flag \
11037 export_symbols_cmds \
11038 hardcode_libdir_flag_spec \
11039 hardcode_libdir_flag_spec_ld \
11040 hardcode_libdir_separator \
11041 hardcode_automatic \
11042 module_cmds \
11043 module_expsym_cmds \
11044 lt_cv_prog_compiler_c_o \
11045 exclude_expsyms \
11046 include_expsyms; do
11047
11048 case $var in
11049 old_archive_cmds | \
11050 old_archive_from_new_cmds | \
11051 archive_cmds | \
11052 archive_expsym_cmds | \
11053 module_cmds | \
11054 module_expsym_cmds | \
11055 old_archive_from_expsyms_cmds | \
11056 export_symbols_cmds | \
11057 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11058 postinstall_cmds | postuninstall_cmds | \
11059 old_postinstall_cmds | old_postuninstall_cmds | \
11060 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11061 # Double-quote double-evaled strings.
11062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11063 ;;
11064 *)
11065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11066 ;;
11067 esac
11068 done
11069
11070 case $lt_echo in
11071 *'\$0 --fallback-echo"')
11072 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11073 ;;
11074 esac
11075
11076 cfgfile="${ofile}T"
11077 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11078 $rm -f "$cfgfile"
11079 { echo "$as_me:$LINENO: creating $ofile" >&5
11080 echo "$as_me: creating $ofile" >&6;}
11081
11082 cat <<__EOF__ >> "$cfgfile"
11083 #! $SHELL
11084
11085 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11086 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11087 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11088 #
11089 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11090 # Free Software Foundation, Inc.
11091 #
11092 # This file is part of GNU Libtool:
11093 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11094 #
11095 # This program is free software; you can redistribute it and/or modify
11096 # it under the terms of the GNU General Public License as published by
11097 # the Free Software Foundation; either version 2 of the License, or
11098 # (at your option) any later version.
11099 #
11100 # This program is distributed in the hope that it will be useful, but
11101 # WITHOUT ANY WARRANTY; without even the implied warranty of
11102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11103 # General Public License for more details.
11104 #
11105 # You should have received a copy of the GNU General Public License
11106 # along with this program; if not, write to the Free Software
11107 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11108 #
11109 # As a special exception to the GNU General Public License, if you
11110 # distribute this file as part of a program that contains a
11111 # configuration script generated by Autoconf, you may include it under
11112 # the same distribution terms that you use for the rest of that program.
11113
11114 # A sed program that does not truncate output.
11115 SED=$lt_SED
11116
11117 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11118 Xsed="$SED -e 1s/^X//"
11119
11120 # The HP-UX ksh and POSIX shell print the target directory to stdout
11121 # if CDPATH is set.
11122 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11123
11124 # The names of the tagged configurations supported by this script.
11125 available_tags=
11126
11127 # ### BEGIN LIBTOOL CONFIG
11128
11129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11130
11131 # Shell to use when invoking shell scripts.
11132 SHELL=$lt_SHELL
11133
11134 # Whether or not to build shared libraries.
11135 build_libtool_libs=$enable_shared
11136
11137 # Whether or not to build static libraries.
11138 build_old_libs=$enable_static
11139
11140 # Whether or not to add -lc for building shared libraries.
11141 build_libtool_need_lc=$archive_cmds_need_lc
11142
11143 # Whether or not to disallow shared libs when runtime libs are static
11144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11145
11146 # Whether or not to optimize for fast installation.
11147 fast_install=$enable_fast_install
11148
11149 # The host system.
11150 host_alias=$host_alias
11151 host=$host
11152 host_os=$host_os
11153
11154 # The build system.
11155 build_alias=$build_alias
11156 build=$build
11157 build_os=$build_os
11158
11159 # An echo program that does not interpret backslashes.
11160 echo=$lt_echo
11161
11162 # The archiver.
11163 AR=$lt_AR
11164 AR_FLAGS=$lt_AR_FLAGS
11165
11166 # A C compiler.
11167 LTCC=$lt_LTCC
11168
11169 # LTCC compiler flags.
11170 LTCFLAGS=$lt_LTCFLAGS
11171
11172 # A language-specific compiler.
11173 CC=$lt_compiler
11174
11175 # Is the compiler the GNU C compiler?
11176 with_gcc=$GCC
11177
11178 # An ERE matcher.
11179 EGREP=$lt_EGREP
11180
11181 # The linker used to build libraries.
11182 LD=$lt_LD
11183
11184 # Whether we need hard or soft links.
11185 LN_S=$lt_LN_S
11186
11187 # A BSD-compatible nm program.
11188 NM=$lt_NM
11189
11190 # A symbol stripping program
11191 STRIP=$lt_STRIP
11192
11193 # Used to examine libraries when file_magic_cmd begins "file"
11194 MAGIC_CMD=$MAGIC_CMD
11195
11196 # Used on cygwin: DLL creation program.
11197 DLLTOOL="$DLLTOOL"
11198
11199 # Used on cygwin: object dumper.
11200 OBJDUMP="$OBJDUMP"
11201
11202 # Used on cygwin: assembler.
11203 AS="$AS"
11204
11205 # The name of the directory that contains temporary libtool files.
11206 objdir=$objdir
11207
11208 # How to create reloadable object files.
11209 reload_flag=$lt_reload_flag
11210 reload_cmds=$lt_reload_cmds
11211
11212 # How to pass a linker flag through the compiler.
11213 wl=$lt_lt_prog_compiler_wl
11214
11215 # Object file suffix (normally "o").
11216 objext="$ac_objext"
11217
11218 # Old archive suffix (normally "a").
11219 libext="$libext"
11220
11221 # Shared library suffix (normally ".so").
11222 shrext_cmds='$shrext_cmds'
11223
11224 # Executable file suffix (normally "").
11225 exeext="$exeext"
11226
11227 # Additional compiler flags for building library objects.
11228 pic_flag=$lt_lt_prog_compiler_pic
11229 pic_mode=$pic_mode
11230
11231 # What is the maximum length of a command?
11232 max_cmd_len=$lt_cv_sys_max_cmd_len
11233
11234 # Does compiler simultaneously support -c and -o options?
11235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11236
11237 # Must we lock files when doing compilation?
11238 need_locks=$lt_need_locks
11239
11240 # Do we need the lib prefix for modules?
11241 need_lib_prefix=$need_lib_prefix
11242
11243 # Do we need a version for libraries?
11244 need_version=$need_version
11245
11246 # Whether dlopen is supported.
11247 dlopen_support=$enable_dlopen
11248
11249 # Whether dlopen of programs is supported.
11250 dlopen_self=$enable_dlopen_self
11251
11252 # Whether dlopen of statically linked programs is supported.
11253 dlopen_self_static=$enable_dlopen_self_static
11254
11255 # Compiler flag to prevent dynamic linking.
11256 link_static_flag=$lt_lt_prog_compiler_static
11257
11258 # Compiler flag to turn off builtin functions.
11259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11260
11261 # Compiler flag to allow reflexive dlopens.
11262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11263
11264 # Compiler flag to generate shared objects directly from archives.
11265 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11266
11267 # Compiler flag to generate thread-safe objects.
11268 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11269
11270 # Library versioning type.
11271 version_type=$version_type
11272
11273 # Format of library name prefix.
11274 libname_spec=$lt_libname_spec
11275
11276 # List of archive names. First name is the real one, the rest are links.
11277 # The last name is the one that the linker finds with -lNAME.
11278 library_names_spec=$lt_library_names_spec
11279
11280 # The coded name of the library, if different from the real name.
11281 soname_spec=$lt_soname_spec
11282
11283 # Commands used to build and install an old-style archive.
11284 RANLIB=$lt_RANLIB
11285 old_archive_cmds=$lt_old_archive_cmds
11286 old_postinstall_cmds=$lt_old_postinstall_cmds
11287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11288
11289 # Create an old-style archive from a shared archive.
11290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11291
11292 # Create a temporary old-style archive to link instead of a shared archive.
11293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11294
11295 # Commands used to build and install a shared archive.
11296 archive_cmds=$lt_archive_cmds
11297 archive_expsym_cmds=$lt_archive_expsym_cmds
11298 postinstall_cmds=$lt_postinstall_cmds
11299 postuninstall_cmds=$lt_postuninstall_cmds
11300
11301 # Commands used to build a loadable module (assumed same as above if empty)
11302 module_cmds=$lt_module_cmds
11303 module_expsym_cmds=$lt_module_expsym_cmds
11304
11305 # Commands to strip libraries.
11306 old_striplib=$lt_old_striplib
11307 striplib=$lt_striplib
11308
11309 # Dependencies to place before the objects being linked to create a
11310 # shared library.
11311 predep_objects=$lt_predep_objects
11312
11313 # Dependencies to place after the objects being linked to create a
11314 # shared library.
11315 postdep_objects=$lt_postdep_objects
11316
11317 # Dependencies to place before the objects being linked to create a
11318 # shared library.
11319 predeps=$lt_predeps
11320
11321 # Dependencies to place after the objects being linked to create a
11322 # shared library.
11323 postdeps=$lt_postdeps
11324
11325 # The library search path used internally by the compiler when linking
11326 # a shared library.
11327 compiler_lib_search_path=$lt_compiler_lib_search_path
11328
11329 # Method to check whether dependent libraries are shared objects.
11330 deplibs_check_method=$lt_deplibs_check_method
11331
11332 # Command to use when deplibs_check_method == file_magic.
11333 file_magic_cmd=$lt_file_magic_cmd
11334
11335 # Flag that allows shared libraries with undefined symbols to be built.
11336 allow_undefined_flag=$lt_allow_undefined_flag
11337
11338 # Flag that forces no undefined symbols.
11339 no_undefined_flag=$lt_no_undefined_flag
11340
11341 # Commands used to finish a libtool library installation in a directory.
11342 finish_cmds=$lt_finish_cmds
11343
11344 # Same as above, but a single script fragment to be evaled but not shown.
11345 finish_eval=$lt_finish_eval
11346
11347 # Take the output of nm and produce a listing of raw symbols and C names.
11348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11349
11350 # Transform the output of nm in a proper C declaration
11351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11352
11353 # Transform the output of nm in a C name address pair
11354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11355
11356 # This is the shared library runtime path variable.
11357 runpath_var=$runpath_var
11358
11359 # This is the shared library path variable.
11360 shlibpath_var=$shlibpath_var
11361
11362 # Is shlibpath searched before the hard-coded library search path?
11363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11364
11365 # How to hardcode a shared library path into an executable.
11366 hardcode_action=$hardcode_action
11367
11368 # Whether we should hardcode library paths into libraries.
11369 hardcode_into_libs=$hardcode_into_libs
11370
11371 # Flag to hardcode \$libdir into a binary during linking.
11372 # This must work even if \$libdir does not exist.
11373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11374
11375 # If ld is used when linking, flag to hardcode \$libdir into
11376 # a binary during linking. This must work even if \$libdir does
11377 # not exist.
11378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11379
11380 # Whether we need a single -rpath flag with a separated argument.
11381 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11382
11383 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11384 # resulting binary.
11385 hardcode_direct=$hardcode_direct
11386
11387 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11388 # resulting binary.
11389 hardcode_minus_L=$hardcode_minus_L
11390
11391 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11392 # the resulting binary.
11393 hardcode_shlibpath_var=$hardcode_shlibpath_var
11394
11395 # Set to yes if building a shared library automatically hardcodes DIR into the library
11396 # and all subsequent libraries and executables linked against it.
11397 hardcode_automatic=$hardcode_automatic
11398
11399 # Variables whose values should be saved in libtool wrapper scripts and
11400 # restored at relink time.
11401 variables_saved_for_relink="$variables_saved_for_relink"
11402
11403 # Whether libtool must link a program against all its dependency libraries.
11404 link_all_deplibs=$link_all_deplibs
11405
11406 # Compile-time system search path for libraries
11407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11408
11409 # Run-time system search path for libraries
11410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11411
11412 # Fix the shell variable \$srcfile for the compiler.
11413 fix_srcfile_path="$fix_srcfile_path"
11414
11415 # Set to yes if exported symbols are required.
11416 always_export_symbols=$always_export_symbols
11417
11418 # The commands to list exported symbols.
11419 export_symbols_cmds=$lt_export_symbols_cmds
11420
11421 # The commands to extract the exported symbol list from a shared archive.
11422 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11423
11424 # Symbols that should not be listed in the preloaded symbols.
11425 exclude_expsyms=$lt_exclude_expsyms
11426
11427 # Symbols that must always be exported.
11428 include_expsyms=$lt_include_expsyms
11429
11430 # ### END LIBTOOL CONFIG
11431
11432 __EOF__
11433
11434
11435 case $host_os in
11436 aix3*)
11437 cat <<\EOF >> "$cfgfile"
11438
11439 # AIX sometimes has problems with the GCC collect2 program. For some
11440 # reason, if we set the COLLECT_NAMES environment variable, the problems
11441 # vanish in a puff of smoke.
11442 if test "X${COLLECT_NAMES+set}" != Xset; then
11443 COLLECT_NAMES=
11444 export COLLECT_NAMES
11445 fi
11446 EOF
11447 ;;
11448 esac
11449
11450 # We use sed instead of cat because bash on DJGPP gets confused if
11451 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11452 # text mode, it properly converts lines to CR/LF. This bash problem
11453 # is reportedly fixed, but why not run on old versions too?
11454 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11455
11456 mv -f "$cfgfile" "$ofile" || \
11457 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11458 chmod +x "$ofile"
11459
11460 else
11461 # If there is no Makefile yet, we rely on a make rule to execute
11462 # `config.status --recheck' to rerun these tests and create the
11463 # libtool script then.
11464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11465 if test -f "$ltmain_in"; then
11466 test -f Makefile && make "$ltmain"
11467 fi
11468 fi
11469
11470
11471 ac_ext=c
11472 ac_cpp='$CPP $CPPFLAGS'
11473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11476
11477 CC="$lt_save_CC"
11478
11479
11480 # Check whether --with-tags or --without-tags was given.
11481 if test "${with_tags+set}" = set; then
11482 withval="$with_tags"
11483 tagnames="$withval"
11484 fi;
11485
11486 if test -f "$ltmain" && test -n "$tagnames"; then
11487 if test ! -f "${ofile}"; then
11488 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11489 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11490 fi
11491
11492 if test -z "$LTCC"; then
11493 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11494 if test -z "$LTCC"; then
11495 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11496 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11497 else
11498 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11499 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11500 fi
11501 fi
11502 if test -z "$LTCFLAGS"; then
11503 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11504 fi
11505
11506 # Extract list of available tagged configurations in $ofile.
11507 # Note that this assumes the entire list is on one line.
11508 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11509
11510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11511 for tagname in $tagnames; do
11512 IFS="$lt_save_ifs"
11513 # Check whether tagname contains only valid characters
11514 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11515 "") ;;
11516 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11517 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11518 { (exit 1); exit 1; }; }
11519 ;;
11520 esac
11521
11522 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11523 then
11524 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11525 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11526 { (exit 1); exit 1; }; }
11527 fi
11528
11529 # Update the list of available tags.
11530 if test -n "$tagname"; then
11531 echo appending configuration tag \"$tagname\" to $ofile
11532
11533 case $tagname in
11534 CXX)
11535 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11536 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11537 (test "X$CXX" != "Xg++"))) ; then
11538 ac_ext=cc
11539 ac_cpp='$CXXCPP $CPPFLAGS'
11540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543
11544
11545
11546
11547 archive_cmds_need_lc_CXX=no
11548 allow_undefined_flag_CXX=
11549 always_export_symbols_CXX=no
11550 archive_expsym_cmds_CXX=
11551 export_dynamic_flag_spec_CXX=
11552 hardcode_direct_CXX=no
11553 hardcode_libdir_flag_spec_CXX=
11554 hardcode_libdir_flag_spec_ld_CXX=
11555 hardcode_libdir_separator_CXX=
11556 hardcode_minus_L_CXX=no
11557 hardcode_shlibpath_var_CXX=unsupported
11558 hardcode_automatic_CXX=no
11559 module_cmds_CXX=
11560 module_expsym_cmds_CXX=
11561 link_all_deplibs_CXX=unknown
11562 old_archive_cmds_CXX=$old_archive_cmds
11563 no_undefined_flag_CXX=
11564 whole_archive_flag_spec_CXX=
11565 enable_shared_with_static_runtimes_CXX=no
11566
11567 # Dependencies to place before and after the object being linked:
11568 predep_objects_CXX=
11569 postdep_objects_CXX=
11570 predeps_CXX=
11571 postdeps_CXX=
11572 compiler_lib_search_path_CXX=
11573
11574 # Source file extension for C++ test sources.
11575 ac_ext=cpp
11576
11577 # Object file extension for compiled C++ test sources.
11578 objext=o
11579 objext_CXX=$objext
11580
11581 # Code to be used in simple compile tests
11582 lt_simple_compile_test_code="int some_variable = 0;\n"
11583
11584 # Code to be used in simple link tests
11585 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11586
11587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11588
11589 # If no C compiler was specified, use CC.
11590 LTCC=${LTCC-"$CC"}
11591
11592 # If no C compiler flags were specified, use CFLAGS.
11593 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11594
11595 # Allow CC to be a program name with arguments.
11596 compiler=$CC
11597
11598
11599 # save warnings/boilerplate of simple test code
11600 ac_outfile=conftest.$ac_objext
11601 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11603 _lt_compiler_boilerplate=`cat conftest.err`
11604 $rm conftest*
11605
11606 ac_outfile=conftest.$ac_objext
11607 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11609 _lt_linker_boilerplate=`cat conftest.err`
11610 $rm conftest*
11611
11612
11613 # Allow CC to be a program name with arguments.
11614 lt_save_CC=$CC
11615 lt_save_LD=$LD
11616 lt_save_GCC=$GCC
11617 GCC=$GXX
11618 lt_save_with_gnu_ld=$with_gnu_ld
11619 lt_save_path_LD=$lt_cv_path_LD
11620 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11621 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11622 else
11623 $as_unset lt_cv_prog_gnu_ld
11624 fi
11625 if test -n "${lt_cv_path_LDCXX+set}"; then
11626 lt_cv_path_LD=$lt_cv_path_LDCXX
11627 else
11628 $as_unset lt_cv_path_LD
11629 fi
11630 test -z "${LDCXX+set}" || LD=$LDCXX
11631 CC=${CXX-"c++"}
11632 compiler=$CC
11633 compiler_CXX=$CC
11634 for cc_temp in $compiler""; do
11635 case $cc_temp in
11636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11638 \-*) ;;
11639 *) break;;
11640 esac
11641 done
11642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11643
11644
11645 # We don't want -fno-exception wen compiling C++ code, so set the
11646 # no_builtin_flag separately
11647 if test "$GXX" = yes; then
11648 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11649 else
11650 lt_prog_compiler_no_builtin_flag_CXX=
11651 fi
11652
11653 if test "$GXX" = yes; then
11654 # Set up default GNU C++ configuration
11655
11656
11657 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11658 if test "${with_gnu_ld+set}" = set; then
11659 withval="$with_gnu_ld"
11660 test "$withval" = no || with_gnu_ld=yes
11661 else
11662 with_gnu_ld=no
11663 fi;
11664 ac_prog=ld
11665 if test "$GCC" = yes; then
11666 # Check if gcc -print-prog-name=ld gives a path.
11667 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11668 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11669 case $host in
11670 *-*-mingw*)
11671 # gcc leaves a trailing carriage return which upsets mingw
11672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11673 *)
11674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11675 esac
11676 case $ac_prog in
11677 # Accept absolute paths.
11678 [\\/]* | ?:[\\/]*)
11679 re_direlt='/[^/][^/]*/\.\./'
11680 # Canonicalize the pathname of ld
11681 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11682 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11683 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11684 done
11685 test -z "$LD" && LD="$ac_prog"
11686 ;;
11687 "")
11688 # If it fails, then pretend we aren't using GCC.
11689 ac_prog=ld
11690 ;;
11691 *)
11692 # If it is relative, then search for the first ld in PATH.
11693 with_gnu_ld=unknown
11694 ;;
11695 esac
11696 elif test "$with_gnu_ld" = yes; then
11697 echo "$as_me:$LINENO: checking for GNU ld" >&5
11698 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11699 else
11700 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11701 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11702 fi
11703 if test "${lt_cv_path_LD+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 if test -z "$LD"; then
11707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11708 for ac_dir in $PATH; do
11709 IFS="$lt_save_ifs"
11710 test -z "$ac_dir" && ac_dir=.
11711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11712 lt_cv_path_LD="$ac_dir/$ac_prog"
11713 # Check to see if the program is GNU ld. I'd rather use --version,
11714 # but apparently some variants of GNU ld only accept -v.
11715 # Break only if it was the GNU/non-GNU ld that we prefer.
11716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11717 *GNU* | *'with BFD'*)
11718 test "$with_gnu_ld" != no && break
11719 ;;
11720 *)
11721 test "$with_gnu_ld" != yes && break
11722 ;;
11723 esac
11724 fi
11725 done
11726 IFS="$lt_save_ifs"
11727 else
11728 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11729 fi
11730 fi
11731
11732 LD="$lt_cv_path_LD"
11733 if test -n "$LD"; then
11734 echo "$as_me:$LINENO: result: $LD" >&5
11735 echo "${ECHO_T}$LD" >&6
11736 else
11737 echo "$as_me:$LINENO: result: no" >&5
11738 echo "${ECHO_T}no" >&6
11739 fi
11740 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11741 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11742 { (exit 1); exit 1; }; }
11743 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11744 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11745 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11749 case `$LD -v 2>&1 </dev/null` in
11750 *GNU* | *'with BFD'*)
11751 lt_cv_prog_gnu_ld=yes
11752 ;;
11753 *)
11754 lt_cv_prog_gnu_ld=no
11755 ;;
11756 esac
11757 fi
11758 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11759 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11760 with_gnu_ld=$lt_cv_prog_gnu_ld
11761
11762
11763
11764 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11765 # archiving commands below assume that GNU ld is being used.
11766 if test "$with_gnu_ld" = yes; then
11767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11768 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'
11769
11770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11772
11773 # If archive_cmds runs LD, not CC, wlarc should be empty
11774 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11775 # investigate it a little bit more. (MM)
11776 wlarc='${wl}'
11777
11778 # ancient GNU ld didn't support --whole-archive et. al.
11779 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11780 grep 'no-whole-archive' > /dev/null; then
11781 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11782 else
11783 whole_archive_flag_spec_CXX=
11784 fi
11785 else
11786 with_gnu_ld=no
11787 wlarc=
11788
11789 # A generic and very simple default shared library creation
11790 # command for GNU C++ for the case where it uses the native
11791 # linker, instead of GNU ld. If possible, this setting should
11792 # overridden to take advantage of the native linker features on
11793 # the platform it is being used on.
11794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11795 fi
11796
11797 # Commands to make compiler produce verbose output that lists
11798 # what "hidden" libraries, object files and flags are used when
11799 # linking a shared library.
11800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11801
11802 else
11803 GXX=no
11804 with_gnu_ld=no
11805 wlarc=
11806 fi
11807
11808 # PORTME: fill in a description of your system's C++ link characteristics
11809 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11810 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11811 ld_shlibs_CXX=yes
11812 case $host_os in
11813 aix3*)
11814 # FIXME: insert proper C++ library support
11815 ld_shlibs_CXX=no
11816 ;;
11817 aix4* | aix5*)
11818 if test "$host_cpu" = ia64; then
11819 # On IA64, the linker does run time linking by default, so we don't
11820 # have to do anything special.
11821 aix_use_runtimelinking=no
11822 exp_sym_flag='-Bexport'
11823 no_entry_flag=""
11824 else
11825 aix_use_runtimelinking=no
11826
11827 # Test if we are trying to use run time linking or normal
11828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11829 # need to do runtime linking.
11830 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11831 for ld_flag in $LDFLAGS; do
11832 case $ld_flag in
11833 *-brtl*)
11834 aix_use_runtimelinking=yes
11835 break
11836 ;;
11837 esac
11838 done
11839 ;;
11840 esac
11841
11842 exp_sym_flag='-bexport'
11843 no_entry_flag='-bnoentry'
11844 fi
11845
11846 # When large executables or shared objects are built, AIX ld can
11847 # have problems creating the table of contents. If linking a library
11848 # or program results in "error TOC overflow" add -mminimal-toc to
11849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11851
11852 archive_cmds_CXX=''
11853 hardcode_direct_CXX=yes
11854 hardcode_libdir_separator_CXX=':'
11855 link_all_deplibs_CXX=yes
11856
11857 if test "$GXX" = yes; then
11858 case $host_os in aix4.[012]|aix4.[012].*)
11859 # We only want to do this on AIX 4.2 and lower, the check
11860 # below for broken collect2 doesn't work under 4.3+
11861 collect2name=`${CC} -print-prog-name=collect2`
11862 if test -f "$collect2name" && \
11863 strings "$collect2name" | grep resolve_lib_name >/dev/null
11864 then
11865 # We have reworked collect2
11866 hardcode_direct_CXX=yes
11867 else
11868 # We have old collect2
11869 hardcode_direct_CXX=unsupported
11870 # It fails to find uninstalled libraries when the uninstalled
11871 # path is not listed in the libpath. Setting hardcode_minus_L
11872 # to unsupported forces relinking
11873 hardcode_minus_L_CXX=yes
11874 hardcode_libdir_flag_spec_CXX='-L$libdir'
11875 hardcode_libdir_separator_CXX=
11876 fi
11877 ;;
11878 esac
11879 shared_flag='-shared'
11880 if test "$aix_use_runtimelinking" = yes; then
11881 shared_flag="$shared_flag "'${wl}-G'
11882 fi
11883 else
11884 # not using gcc
11885 if test "$host_cpu" = ia64; then
11886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11887 # chokes on -Wl,-G. The following line is correct:
11888 shared_flag='-G'
11889 else
11890 if test "$aix_use_runtimelinking" = yes; then
11891 shared_flag='${wl}-G'
11892 else
11893 shared_flag='${wl}-bM:SRE'
11894 fi
11895 fi
11896 fi
11897
11898 # It seems that -bexpall does not export symbols beginning with
11899 # underscore (_), so it is better to generate a list of symbols to export.
11900 always_export_symbols_CXX=yes
11901 if test "$aix_use_runtimelinking" = yes; then
11902 # Warning - without using the other runtime loading flags (-brtl),
11903 # -berok will link without error, but may produce a broken library.
11904 allow_undefined_flag_CXX='-berok'
11905 # Determine the default libpath from the value encoded in an empty executable.
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912
11913 int
11914 main ()
11915 {
11916
11917 ;
11918 return 0;
11919 }
11920 _ACEOF
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923 (eval $ac_link) 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
11930 { ac_try='test -z "$ac_cxx_werror_flag"
11931 || test ! -s conftest.err'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943
11944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11945 }'`
11946 # Check for a 64-bit object if we didn't find anything.
11947 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; }
11948 }'`; fi
11949 else
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 fi
11954 rm -f conftest.err conftest.$ac_objext \
11955 conftest$ac_exeext conftest.$ac_ext
11956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11957
11958 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11959
11960 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"
11961 else
11962 if test "$host_cpu" = ia64; then
11963 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11964 allow_undefined_flag_CXX="-z nodefs"
11965 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"
11966 else
11967 # Determine the default libpath from the value encoded in an empty executable.
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974
11975 int
11976 main ()
11977 {
11978
11979 ;
11980 return 0;
11981 }
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_cxx_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005
12006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12007 }'`
12008 # Check for a 64-bit object if we didn't find anything.
12009 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; }
12010 }'`; fi
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 fi
12016 rm -f conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12019
12020 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12021 # Warning - without using the other run time loading flags,
12022 # -berok will link without error, but may produce a broken library.
12023 no_undefined_flag_CXX=' ${wl}-bernotok'
12024 allow_undefined_flag_CXX=' ${wl}-berok'
12025 # Exported symbols can be pulled into shared objects from archives
12026 whole_archive_flag_spec_CXX='$convenience'
12027 archive_cmds_need_lc_CXX=yes
12028 # This is similar to how AIX traditionally builds its shared libraries.
12029 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'
12030 fi
12031 fi
12032 ;;
12033
12034 beos*)
12035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12036 allow_undefined_flag_CXX=unsupported
12037 # Joseph Beckenbach <[email protected]> says some releases of gcc
12038 # support --undefined. This deserves some investigation. FIXME
12039 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12040 else
12041 ld_shlibs_CXX=no
12042 fi
12043 ;;
12044
12045 chorus*)
12046 case $cc_basename in
12047 *)
12048 # FIXME: insert proper C++ library support
12049 ld_shlibs_CXX=no
12050 ;;
12051 esac
12052 ;;
12053
12054 cygwin* | mingw* | pw32*)
12055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12056 # as there is no search path for DLLs.
12057 hardcode_libdir_flag_spec_CXX='-L$libdir'
12058 allow_undefined_flag_CXX=unsupported
12059 always_export_symbols_CXX=no
12060 enable_shared_with_static_runtimes_CXX=yes
12061
12062 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12063 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'
12064 # If the export-symbols file already is a .def file (1st line
12065 # is EXPORTS), use it as is; otherwise, prepend...
12066 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12067 cp $export_symbols $output_objdir/$soname.def;
12068 else
12069 echo EXPORTS > $output_objdir/$soname.def;
12070 cat $export_symbols >> $output_objdir/$soname.def;
12071 fi~
12072 $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'
12073 else
12074 ld_shlibs_CXX=no
12075 fi
12076 ;;
12077 darwin* | rhapsody*)
12078 case $host_os in
12079 rhapsody* | darwin1.[012])
12080 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12081 ;;
12082 *) # Darwin 1.3 on
12083 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12084 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12085 else
12086 case ${MACOSX_DEPLOYMENT_TARGET} in
12087 10.[012])
12088 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12089 ;;
12090 10.*)
12091 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12092 ;;
12093 esac
12094 fi
12095 ;;
12096 esac
12097 archive_cmds_need_lc_CXX=no
12098 hardcode_direct_CXX=no
12099 hardcode_automatic_CXX=yes
12100 hardcode_shlibpath_var_CXX=unsupported
12101 whole_archive_flag_spec_CXX=''
12102 link_all_deplibs_CXX=yes
12103
12104 if test "$GXX" = yes ; then
12105 lt_int_apple_cc_single_mod=no
12106 output_verbose_link_cmd='echo'
12107 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12108 lt_int_apple_cc_single_mod=yes
12109 fi
12110 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12111 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12112 else
12113 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'
12114 fi
12115 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12117 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12118 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}'
12119 else
12120 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}'
12121 fi
12122 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}'
12123 else
12124 case $cc_basename in
12125 xlc*)
12126 output_verbose_link_cmd='echo'
12127 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'
12128 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12130 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}'
12131 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}'
12132 ;;
12133 *)
12134 ld_shlibs_CXX=no
12135 ;;
12136 esac
12137 fi
12138 ;;
12139
12140 dgux*)
12141 case $cc_basename in
12142 ec++*)
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 ghcx*)
12147 # Green Hills C++ Compiler
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12150 ;;
12151 *)
12152 # FIXME: insert proper C++ library support
12153 ld_shlibs_CXX=no
12154 ;;
12155 esac
12156 ;;
12157 freebsd[12]*)
12158 # C++ shared libraries reported to be fairly broken before switch to ELF
12159 ld_shlibs_CXX=no
12160 ;;
12161 freebsd-elf*)
12162 archive_cmds_need_lc_CXX=no
12163 ;;
12164 freebsd* | kfreebsd*-gnu | dragonfly*)
12165 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12166 # conventions
12167 ld_shlibs_CXX=yes
12168 ;;
12169 gnu*)
12170 ;;
12171 hpux9*)
12172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12173 hardcode_libdir_separator_CXX=:
12174 export_dynamic_flag_spec_CXX='${wl}-E'
12175 hardcode_direct_CXX=yes
12176 hardcode_minus_L_CXX=yes # Not in the search PATH,
12177 # but as the default
12178 # location of the library.
12179
12180 case $cc_basename in
12181 CC*)
12182 # FIXME: insert proper C++ library support
12183 ld_shlibs_CXX=no
12184 ;;
12185 aCC*)
12186 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'
12187 # Commands to make compiler produce verbose output that lists
12188 # what "hidden" libraries, object files and flags are used when
12189 # linking a shared library.
12190 #
12191 # There doesn't appear to be a way to prevent this compiler from
12192 # explicitly linking system object files so we need to strip them
12193 # from the output so that they don't get included in the library
12194 # dependencies.
12195 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'
12196 ;;
12197 *)
12198 if test "$GXX" = yes; then
12199 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'
12200 else
12201 # FIXME: insert proper C++ library support
12202 ld_shlibs_CXX=no
12203 fi
12204 ;;
12205 esac
12206 ;;
12207 hpux10*|hpux11*)
12208 if test $with_gnu_ld = no; then
12209 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12210 hardcode_libdir_separator_CXX=:
12211
12212 case $host_cpu in
12213 hppa*64*|ia64*)
12214 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12215 ;;
12216 *)
12217 export_dynamic_flag_spec_CXX='${wl}-E'
12218 ;;
12219 esac
12220 fi
12221 case $host_cpu in
12222 hppa*64*|ia64*)
12223 hardcode_direct_CXX=no
12224 hardcode_shlibpath_var_CXX=no
12225 ;;
12226 *)
12227 hardcode_direct_CXX=yes
12228 hardcode_minus_L_CXX=yes # Not in the search PATH,
12229 # but as the default
12230 # location of the library.
12231 ;;
12232 esac
12233
12234 case $cc_basename in
12235 CC*)
12236 # FIXME: insert proper C++ library support
12237 ld_shlibs_CXX=no
12238 ;;
12239 aCC*)
12240 case $host_cpu in
12241 hppa*64*)
12242 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12243 ;;
12244 ia64*)
12245 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12246 ;;
12247 *)
12248 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12249 ;;
12250 esac
12251 # Commands to make compiler produce verbose output that lists
12252 # what "hidden" libraries, object files and flags are used when
12253 # linking a shared library.
12254 #
12255 # There doesn't appear to be a way to prevent this compiler from
12256 # explicitly linking system object files so we need to strip them
12257 # from the output so that they don't get included in the library
12258 # dependencies.
12259 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'
12260 ;;
12261 *)
12262 if test "$GXX" = yes; then
12263 if test $with_gnu_ld = no; then
12264 case $host_cpu in
12265 hppa*64*)
12266 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12267 ;;
12268 ia64*)
12269 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270 ;;
12271 *)
12272 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'
12273 ;;
12274 esac
12275 fi
12276 else
12277 # FIXME: insert proper C++ library support
12278 ld_shlibs_CXX=no
12279 fi
12280 ;;
12281 esac
12282 ;;
12283 interix3*)
12284 hardcode_direct_CXX=no
12285 hardcode_shlibpath_var_CXX=no
12286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12287 export_dynamic_flag_spec_CXX='${wl}-E'
12288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289 # Instead, shared libraries are loaded at an image base (0x10000000 by
12290 # default) and relocated if they conflict, which is a slow very memory
12291 # consuming and fragmenting process. To avoid this, we pick a random,
12292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12294 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'
12295 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'
12296 ;;
12297 irix5* | irix6*)
12298 case $cc_basename in
12299 CC*)
12300 # SGI C++
12301 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'
12302
12303 # Archives containing C++ object files must be created using
12304 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12305 # necessary to make sure instantiated templates are included
12306 # in the archive.
12307 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12308 ;;
12309 *)
12310 if test "$GXX" = yes; then
12311 if test "$with_gnu_ld" = no; then
12312 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'
12313 else
12314 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'
12315 fi
12316 fi
12317 link_all_deplibs_CXX=yes
12318 ;;
12319 esac
12320 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12321 hardcode_libdir_separator_CXX=:
12322 ;;
12323 linux*)
12324 case $cc_basename in
12325 KCC*)
12326 # Kuck and Associates, Inc. (KAI) C++ Compiler
12327
12328 # KCC will only create a shared library if the output file
12329 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12330 # to its proper name (with version) after linking.
12331 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'
12332 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'
12333 # Commands to make compiler produce verbose output that lists
12334 # what "hidden" libraries, object files and flags are used when
12335 # linking a shared library.
12336 #
12337 # There doesn't appear to be a way to prevent this compiler from
12338 # explicitly linking system object files so we need to strip them
12339 # from the output so that they don't get included in the library
12340 # dependencies.
12341 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'
12342
12343 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12345
12346 # Archives containing C++ object files must be created using
12347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12348 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12349 ;;
12350 icpc*)
12351 # Intel C++
12352 with_gnu_ld=yes
12353 # version 8.0 and above of icpc choke on multiply defined symbols
12354 # if we add $predep_objects and $postdep_objects, however 7.1 and
12355 # earlier do not add the objects themselves.
12356 case `$CC -V 2>&1` in
12357 *"Version 7."*)
12358 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359 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'
12360 ;;
12361 *) # Version 8.0 or newer
12362 tmp_idyn=
12363 case $host_cpu in
12364 ia64*) tmp_idyn=' -i_dynamic';;
12365 esac
12366 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12367 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'
12368 ;;
12369 esac
12370 archive_cmds_need_lc_CXX=no
12371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12373 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12374 ;;
12375 pgCC*)
12376 # Portland Group C++ compiler
12377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12378 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'
12379
12380 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12382 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'
12383 ;;
12384 cxx*)
12385 # Compaq C++
12386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12387 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'
12388
12389 runpath_var=LD_RUN_PATH
12390 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12391 hardcode_libdir_separator_CXX=:
12392
12393 # Commands to make compiler produce verbose output that lists
12394 # what "hidden" libraries, object files and flags are used when
12395 # linking a shared library.
12396 #
12397 # There doesn't appear to be a way to prevent this compiler from
12398 # explicitly linking system object files so we need to strip them
12399 # from the output so that they don't get included in the library
12400 # dependencies.
12401 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'
12402 ;;
12403 esac
12404 ;;
12405 lynxos*)
12406 # FIXME: insert proper C++ library support
12407 ld_shlibs_CXX=no
12408 ;;
12409 m88k*)
12410 # FIXME: insert proper C++ library support
12411 ld_shlibs_CXX=no
12412 ;;
12413 mvs*)
12414 case $cc_basename in
12415 cxx*)
12416 # FIXME: insert proper C++ library support
12417 ld_shlibs_CXX=no
12418 ;;
12419 *)
12420 # FIXME: insert proper C++ library support
12421 ld_shlibs_CXX=no
12422 ;;
12423 esac
12424 ;;
12425 netbsd*)
12426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12427 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12428 wlarc=
12429 hardcode_libdir_flag_spec_CXX='-R$libdir'
12430 hardcode_direct_CXX=yes
12431 hardcode_shlibpath_var_CXX=no
12432 fi
12433 # Workaround some broken pre-1.5 toolchains
12434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12435 ;;
12436 openbsd2*)
12437 # C++ shared libraries are fairly broken
12438 ld_shlibs_CXX=no
12439 ;;
12440 openbsd*)
12441 hardcode_direct_CXX=yes
12442 hardcode_shlibpath_var_CXX=no
12443 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12446 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12447 export_dynamic_flag_spec_CXX='${wl}-E'
12448 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12449 fi
12450 output_verbose_link_cmd='echo'
12451 ;;
12452 osf3*)
12453 case $cc_basename in
12454 KCC*)
12455 # Kuck and Associates, Inc. (KAI) C++ Compiler
12456
12457 # KCC will only create a shared library if the output file
12458 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12459 # to its proper name (with version) after linking.
12460 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'
12461
12462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12463 hardcode_libdir_separator_CXX=:
12464
12465 # Archives containing C++ object files must be created using
12466 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12467 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12468
12469 ;;
12470 RCC*)
12471 # Rational C++ 2.4.1
12472 # FIXME: insert proper C++ library support
12473 ld_shlibs_CXX=no
12474 ;;
12475 cxx*)
12476 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12477 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'
12478
12479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12480 hardcode_libdir_separator_CXX=:
12481
12482 # Commands to make compiler produce verbose output that lists
12483 # what "hidden" libraries, object files and flags are used when
12484 # linking a shared library.
12485 #
12486 # There doesn't appear to be a way to prevent this compiler from
12487 # explicitly linking system object files so we need to strip them
12488 # from the output so that they don't get included in the library
12489 # dependencies.
12490 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'
12491 ;;
12492 *)
12493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12494 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12495 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'
12496
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12498 hardcode_libdir_separator_CXX=:
12499
12500 # Commands to make compiler produce verbose output that lists
12501 # what "hidden" libraries, object files and flags are used when
12502 # linking a shared library.
12503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12504
12505 else
12506 # FIXME: insert proper C++ library support
12507 ld_shlibs_CXX=no
12508 fi
12509 ;;
12510 esac
12511 ;;
12512 osf4* | osf5*)
12513 case $cc_basename in
12514 KCC*)
12515 # Kuck and Associates, Inc. (KAI) C++ Compiler
12516
12517 # KCC will only create a shared library if the output file
12518 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12519 # to its proper name (with version) after linking.
12520 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'
12521
12522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12523 hardcode_libdir_separator_CXX=:
12524
12525 # Archives containing C++ object files must be created using
12526 # the KAI C++ compiler.
12527 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12528 ;;
12529 RCC*)
12530 # Rational C++ 2.4.1
12531 # FIXME: insert proper C++ library support
12532 ld_shlibs_CXX=no
12533 ;;
12534 cxx*)
12535 allow_undefined_flag_CXX=' -expect_unresolved \*'
12536 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'
12537 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12538 echo "-hidden">> $lib.exp~
12539 $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~
12540 $rm $lib.exp'
12541
12542 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12543 hardcode_libdir_separator_CXX=:
12544
12545 # Commands to make compiler produce verbose output that lists
12546 # what "hidden" libraries, object files and flags are used when
12547 # linking a shared library.
12548 #
12549 # There doesn't appear to be a way to prevent this compiler from
12550 # explicitly linking system object files so we need to strip them
12551 # from the output so that they don't get included in the library
12552 # dependencies.
12553 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'
12554 ;;
12555 *)
12556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12557 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12558 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'
12559
12560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12561 hardcode_libdir_separator_CXX=:
12562
12563 # Commands to make compiler produce verbose output that lists
12564 # what "hidden" libraries, object files and flags are used when
12565 # linking a shared library.
12566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12567
12568 else
12569 # FIXME: insert proper C++ library support
12570 ld_shlibs_CXX=no
12571 fi
12572 ;;
12573 esac
12574 ;;
12575 psos*)
12576 # FIXME: insert proper C++ library support
12577 ld_shlibs_CXX=no
12578 ;;
12579 sunos4*)
12580 case $cc_basename in
12581 CC*)
12582 # Sun C++ 4.x
12583 # FIXME: insert proper C++ library support
12584 ld_shlibs_CXX=no
12585 ;;
12586 lcc*)
12587 # Lucid
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12590 ;;
12591 *)
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12594 ;;
12595 esac
12596 ;;
12597 solaris*)
12598 case $cc_basename in
12599 CC*)
12600 # Sun C++ 4.2, 5.x and Centerline C++
12601 archive_cmds_need_lc_CXX=yes
12602 no_undefined_flag_CXX=' -zdefs'
12603 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12604 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12605 $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'
12606
12607 hardcode_libdir_flag_spec_CXX='-R$libdir'
12608 hardcode_shlibpath_var_CXX=no
12609 case $host_os in
12610 solaris2.[0-5] | solaris2.[0-5].*) ;;
12611 *)
12612 # The C++ compiler is used as linker so we must use $wl
12613 # flag to pass the commands to the underlying system
12614 # linker. We must also pass each convience library through
12615 # to the system linker between allextract/defaultextract.
12616 # The C++ compiler will combine linker options so we
12617 # cannot just pass the convience library names through
12618 # without $wl.
12619 # Supported since Solaris 2.6 (maybe 2.5.1?)
12620 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'
12621 ;;
12622 esac
12623 link_all_deplibs_CXX=yes
12624
12625 output_verbose_link_cmd='echo'
12626
12627 # Archives containing C++ object files must be created using
12628 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12629 # necessary to make sure instantiated templates are included
12630 # in the archive.
12631 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12632 ;;
12633 gcx*)
12634 # Green Hills C++ Compiler
12635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12636
12637 # The C++ compiler must be used to create the archive.
12638 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12639 ;;
12640 *)
12641 # GNU C++ compiler with Solaris linker
12642 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12643 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12644 if $CC --version | grep -v '^2\.7' > /dev/null; then
12645 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12646 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12647 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12648
12649 # Commands to make compiler produce verbose output that lists
12650 # what "hidden" libraries, object files and flags are used when
12651 # linking a shared library.
12652 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12653 else
12654 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12655 # platform.
12656 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12657 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12658 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12659
12660 # Commands to make compiler produce verbose output that lists
12661 # what "hidden" libraries, object files and flags are used when
12662 # linking a shared library.
12663 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12664 fi
12665
12666 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12667 fi
12668 ;;
12669 esac
12670 ;;
12671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12672 no_undefined_flag_CXX='${wl}-z,text'
12673 archive_cmds_need_lc_CXX=no
12674 hardcode_shlibpath_var_CXX=no
12675 runpath_var='LD_RUN_PATH'
12676
12677 case $cc_basename in
12678 CC*)
12679 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12680 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12681 ;;
12682 *)
12683 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12685 ;;
12686 esac
12687 ;;
12688 sysv5* | sco3.2v5* | sco5v6*)
12689 # Note: We can NOT use -z defs as we might desire, because we do not
12690 # link with -lc, and that would cause any symbols used from libc to
12691 # always be unresolved, which means just about no library would
12692 # ever link correctly. If we're not using GNU ld we use -z text
12693 # though, which does catch some bad symbols but isn't as heavy-handed
12694 # as -z defs.
12695 # For security reasons, it is highly recommended that you always
12696 # use absolute paths for naming shared libraries, and exclude the
12697 # DT_RUNPATH tag from executables and libraries. But doing so
12698 # requires that you compile everything twice, which is a pain.
12699 # So that behaviour is only enabled if SCOABSPATH is set to a
12700 # non-empty value in the environment. Most likely only useful for
12701 # creating official distributions of packages.
12702 # This is a hack until libtool officially supports absolute path
12703 # names for shared libraries.
12704 no_undefined_flag_CXX='${wl}-z,text'
12705 allow_undefined_flag_CXX='${wl}-z,nodefs'
12706 archive_cmds_need_lc_CXX=no
12707 hardcode_shlibpath_var_CXX=no
12708 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12709 hardcode_libdir_separator_CXX=':'
12710 link_all_deplibs_CXX=yes
12711 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12712 runpath_var='LD_RUN_PATH'
12713
12714 case $cc_basename in
12715 CC*)
12716 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12717 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 ;;
12719 *)
12720 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12722 ;;
12723 esac
12724 ;;
12725 tandem*)
12726 case $cc_basename in
12727 NCC*)
12728 # NonStop-UX NCC 3.20
12729 # FIXME: insert proper C++ library support
12730 ld_shlibs_CXX=no
12731 ;;
12732 *)
12733 # FIXME: insert proper C++ library support
12734 ld_shlibs_CXX=no
12735 ;;
12736 esac
12737 ;;
12738 vxworks*)
12739 # FIXME: insert proper C++ library support
12740 ld_shlibs_CXX=no
12741 ;;
12742 *)
12743 # FIXME: insert proper C++ library support
12744 ld_shlibs_CXX=no
12745 ;;
12746 esac
12747 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12748 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12749 test "$ld_shlibs_CXX" = no && can_build_shared=no
12750
12751 GCC_CXX="$GXX"
12752 LD_CXX="$LD"
12753
12754 ## CAVEAT EMPTOR:
12755 ## There is no encapsulation within the following macros, do not change
12756 ## the running order or otherwise move them around unless you know exactly
12757 ## what you are doing...
12758
12759 cat > conftest.$ac_ext <<EOF
12760 class Foo
12761 {
12762 public:
12763 Foo (void) { a = 0; }
12764 private:
12765 int a;
12766 };
12767 EOF
12768
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; then
12774 # Parse the compiler output and extract the necessary
12775 # objects, libraries and library flags.
12776
12777 # Sentinel used to keep track of whether or not we are before
12778 # the conftest object file.
12779 pre_test_object_deps_done=no
12780
12781 # The `*' in the case matches for architectures that use `case' in
12782 # $output_verbose_cmd can trigger glob expansion during the loop
12783 # eval without this substitution.
12784 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12785
12786 for p in `eval $output_verbose_link_cmd`; do
12787 case $p in
12788
12789 -L* | -R* | -l*)
12790 # Some compilers place space between "-{L,R}" and the path.
12791 # Remove the space.
12792 if test $p = "-L" \
12793 || test $p = "-R"; then
12794 prev=$p
12795 continue
12796 else
12797 prev=
12798 fi
12799
12800 if test "$pre_test_object_deps_done" = no; then
12801 case $p in
12802 -L* | -R*)
12803 # Internal compiler library paths should come after those
12804 # provided the user. The postdeps already come after the
12805 # user supplied libs so there is no need to process them.
12806 if test -z "$compiler_lib_search_path_CXX"; then
12807 compiler_lib_search_path_CXX="${prev}${p}"
12808 else
12809 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12810 fi
12811 ;;
12812 # The "-l" case would never come before the object being
12813 # linked, so don't bother handling this case.
12814 esac
12815 else
12816 if test -z "$postdeps_CXX"; then
12817 postdeps_CXX="${prev}${p}"
12818 else
12819 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12820 fi
12821 fi
12822 ;;
12823
12824 *.$objext)
12825 # This assumes that the test object file only shows up
12826 # once in the compiler output.
12827 if test "$p" = "conftest.$objext"; then
12828 pre_test_object_deps_done=yes
12829 continue
12830 fi
12831
12832 if test "$pre_test_object_deps_done" = no; then
12833 if test -z "$predep_objects_CXX"; then
12834 predep_objects_CXX="$p"
12835 else
12836 predep_objects_CXX="$predep_objects_CXX $p"
12837 fi
12838 else
12839 if test -z "$postdep_objects_CXX"; then
12840 postdep_objects_CXX="$p"
12841 else
12842 postdep_objects_CXX="$postdep_objects_CXX $p"
12843 fi
12844 fi
12845 ;;
12846
12847 *) ;; # Ignore the rest.
12848
12849 esac
12850 done
12851
12852 # Clean up.
12853 rm -f a.out a.exe
12854 else
12855 echo "libtool.m4: error: problem compiling CXX test program"
12856 fi
12857
12858 $rm -f confest.$objext
12859
12860 # PORTME: override above test on systems where it is broken
12861 case $host_os in
12862 interix3*)
12863 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12864 # hack all around it, let's just trust "g++" to DTRT.
12865 predep_objects_CXX=
12866 postdep_objects_CXX=
12867 postdeps_CXX=
12868 ;;
12869
12870 solaris*)
12871 case $cc_basename in
12872 CC*)
12873 # Adding this requires a known-good setup of shared libraries for
12874 # Sun compiler versions before 5.6, else PIC objects from an old
12875 # archive will be linked into the output, leading to subtle bugs.
12876 postdeps_CXX='-lCstd -lCrun'
12877 ;;
12878 esac
12879 ;;
12880 esac
12881
12882
12883 case " $postdeps_CXX " in
12884 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12885 esac
12886
12887 lt_prog_compiler_wl_CXX=
12888 lt_prog_compiler_pic_CXX=
12889 lt_prog_compiler_static_CXX=
12890
12891 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12892 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12893
12894 # C++ specific cases for pic, static, wl, etc.
12895 if test "$GXX" = yes; then
12896 lt_prog_compiler_wl_CXX='-Wl,'
12897 lt_prog_compiler_static_CXX='-static'
12898
12899 case $host_os in
12900 aix*)
12901 # All AIX code is PIC.
12902 if test "$host_cpu" = ia64; then
12903 # AIX 5 now supports IA64 processor
12904 lt_prog_compiler_static_CXX='-Bstatic'
12905 fi
12906 ;;
12907 amigaos*)
12908 # FIXME: we need at least 68020 code to build shared libraries, but
12909 # adding the `-m68020' flag to GCC prevents building anything better,
12910 # like `-m68040'.
12911 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12912 ;;
12913 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12914 # PIC is the default for these OSes.
12915 ;;
12916 mingw* | os2* | pw32*)
12917 # This hack is so that the source file can tell whether it is being
12918 # built for inclusion in a dll (and should export symbols for example).
12919 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12920 ;;
12921 darwin* | rhapsody*)
12922 # PIC is the default on this platform
12923 # Common symbols not allowed in MH_DYLIB files
12924 lt_prog_compiler_pic_CXX='-fno-common'
12925 ;;
12926 *djgpp*)
12927 # DJGPP does not support shared libraries at all
12928 lt_prog_compiler_pic_CXX=
12929 ;;
12930 interix3*)
12931 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12932 # Instead, we relocate shared libraries at runtime.
12933 ;;
12934 sysv4*MP*)
12935 if test -d /usr/nec; then
12936 lt_prog_compiler_pic_CXX=-Kconform_pic
12937 fi
12938 ;;
12939 hpux*)
12940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12941 # not for PA HP-UX.
12942 case $host_cpu in
12943 hppa*64*|ia64*)
12944 ;;
12945 *)
12946 lt_prog_compiler_pic_CXX='-fPIC'
12947 ;;
12948 esac
12949 ;;
12950 *)
12951 lt_prog_compiler_pic_CXX='-fPIC'
12952 ;;
12953 esac
12954 else
12955 case $host_os in
12956 aix4* | aix5*)
12957 # All AIX code is PIC.
12958 if test "$host_cpu" = ia64; then
12959 # AIX 5 now supports IA64 processor
12960 lt_prog_compiler_static_CXX='-Bstatic'
12961 else
12962 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12963 fi
12964 ;;
12965 chorus*)
12966 case $cc_basename in
12967 cxch68*)
12968 # Green Hills C++ Compiler
12969 # _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"
12970 ;;
12971 esac
12972 ;;
12973 darwin*)
12974 # PIC is the default on this platform
12975 # Common symbols not allowed in MH_DYLIB files
12976 case $cc_basename in
12977 xlc*)
12978 lt_prog_compiler_pic_CXX='-qnocommon'
12979 lt_prog_compiler_wl_CXX='-Wl,'
12980 ;;
12981 esac
12982 ;;
12983 dgux*)
12984 case $cc_basename in
12985 ec++*)
12986 lt_prog_compiler_pic_CXX='-KPIC'
12987 ;;
12988 ghcx*)
12989 # Green Hills C++ Compiler
12990 lt_prog_compiler_pic_CXX='-pic'
12991 ;;
12992 *)
12993 ;;
12994 esac
12995 ;;
12996 freebsd* | kfreebsd*-gnu | dragonfly*)
12997 # FreeBSD uses GNU C++
12998 ;;
12999 hpux9* | hpux10* | hpux11*)
13000 case $cc_basename in
13001 CC*)
13002 lt_prog_compiler_wl_CXX='-Wl,'
13003 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13004 if test "$host_cpu" != ia64; then
13005 lt_prog_compiler_pic_CXX='+Z'
13006 fi
13007 ;;
13008 aCC*)
13009 lt_prog_compiler_wl_CXX='-Wl,'
13010 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13011 case $host_cpu in
13012 hppa*64*|ia64*)
13013 # +Z the default
13014 ;;
13015 *)
13016 lt_prog_compiler_pic_CXX='+Z'
13017 ;;
13018 esac
13019 ;;
13020 *)
13021 ;;
13022 esac
13023 ;;
13024 interix*)
13025 # This is c89, which is MS Visual C++ (no shared libs)
13026 # Anyone wants to do a port?
13027 ;;
13028 irix5* | irix6* | nonstopux*)
13029 case $cc_basename in
13030 CC*)
13031 lt_prog_compiler_wl_CXX='-Wl,'
13032 lt_prog_compiler_static_CXX='-non_shared'
13033 # CC pic flag -KPIC is the default.
13034 ;;
13035 *)
13036 ;;
13037 esac
13038 ;;
13039 linux*)
13040 case $cc_basename in
13041 KCC*)
13042 # KAI C++ Compiler
13043 lt_prog_compiler_wl_CXX='--backend -Wl,'
13044 lt_prog_compiler_pic_CXX='-fPIC'
13045 ;;
13046 icpc* | ecpc*)
13047 # Intel C++
13048 lt_prog_compiler_wl_CXX='-Wl,'
13049 lt_prog_compiler_pic_CXX='-KPIC'
13050 lt_prog_compiler_static_CXX='-static'
13051 ;;
13052 pgCC*)
13053 # Portland Group C++ compiler.
13054 lt_prog_compiler_wl_CXX='-Wl,'
13055 lt_prog_compiler_pic_CXX='-fpic'
13056 lt_prog_compiler_static_CXX='-Bstatic'
13057 ;;
13058 cxx*)
13059 # Compaq C++
13060 # Make sure the PIC flag is empty. It appears that all Alpha
13061 # Linux and Compaq Tru64 Unix objects are PIC.
13062 lt_prog_compiler_pic_CXX=
13063 lt_prog_compiler_static_CXX='-non_shared'
13064 ;;
13065 *)
13066 ;;
13067 esac
13068 ;;
13069 lynxos*)
13070 ;;
13071 m88k*)
13072 ;;
13073 mvs*)
13074 case $cc_basename in
13075 cxx*)
13076 lt_prog_compiler_pic_CXX='-W c,exportall'
13077 ;;
13078 *)
13079 ;;
13080 esac
13081 ;;
13082 netbsd*)
13083 ;;
13084 osf3* | osf4* | osf5*)
13085 case $cc_basename in
13086 KCC*)
13087 lt_prog_compiler_wl_CXX='--backend -Wl,'
13088 ;;
13089 RCC*)
13090 # Rational C++ 2.4.1
13091 lt_prog_compiler_pic_CXX='-pic'
13092 ;;
13093 cxx*)
13094 # Digital/Compaq C++
13095 lt_prog_compiler_wl_CXX='-Wl,'
13096 # Make sure the PIC flag is empty. It appears that all Alpha
13097 # Linux and Compaq Tru64 Unix objects are PIC.
13098 lt_prog_compiler_pic_CXX=
13099 lt_prog_compiler_static_CXX='-non_shared'
13100 ;;
13101 *)
13102 ;;
13103 esac
13104 ;;
13105 psos*)
13106 ;;
13107 solaris*)
13108 case $cc_basename in
13109 CC*)
13110 # Sun C++ 4.2, 5.x and Centerline C++
13111 lt_prog_compiler_pic_CXX='-KPIC'
13112 lt_prog_compiler_static_CXX='-Bstatic'
13113 lt_prog_compiler_wl_CXX='-Qoption ld '
13114 ;;
13115 gcx*)
13116 # Green Hills C++ Compiler
13117 lt_prog_compiler_pic_CXX='-PIC'
13118 ;;
13119 *)
13120 ;;
13121 esac
13122 ;;
13123 sunos4*)
13124 case $cc_basename in
13125 CC*)
13126 # Sun C++ 4.x
13127 lt_prog_compiler_pic_CXX='-pic'
13128 lt_prog_compiler_static_CXX='-Bstatic'
13129 ;;
13130 lcc*)
13131 # Lucid
13132 lt_prog_compiler_pic_CXX='-pic'
13133 ;;
13134 *)
13135 ;;
13136 esac
13137 ;;
13138 tandem*)
13139 case $cc_basename in
13140 NCC*)
13141 # NonStop-UX NCC 3.20
13142 lt_prog_compiler_pic_CXX='-KPIC'
13143 ;;
13144 *)
13145 ;;
13146 esac
13147 ;;
13148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13149 case $cc_basename in
13150 CC*)
13151 lt_prog_compiler_wl_CXX='-Wl,'
13152 lt_prog_compiler_pic_CXX='-KPIC'
13153 lt_prog_compiler_static_CXX='-Bstatic'
13154 ;;
13155 esac
13156 ;;
13157 vxworks*)
13158 ;;
13159 *)
13160 lt_prog_compiler_can_build_shared_CXX=no
13161 ;;
13162 esac
13163 fi
13164
13165 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13166 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13167
13168 #
13169 # Check to make sure the PIC flag actually works.
13170 #
13171 if test -n "$lt_prog_compiler_pic_CXX"; then
13172
13173 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13174 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13175 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178 lt_prog_compiler_pic_works_CXX=no
13179 ac_outfile=conftest.$ac_objext
13180 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13181 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13182 # Insert the option either (1) after the last *FLAGS variable, or
13183 # (2) before a word containing "conftest.", or (3) at the end.
13184 # Note that $ac_compile itself does not contain backslashes and begins
13185 # with a dollar sign (not a hyphen), so the echo should work correctly.
13186 # The option is referenced via a variable to avoid confusing sed.
13187 lt_compile=`echo "$ac_compile" | $SED \
13188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13190 -e 's:$: $lt_compiler_flag:'`
13191 (eval echo "\"\$as_me:13191: $lt_compile\"" >&5)
13192 (eval "$lt_compile" 2>conftest.err)
13193 ac_status=$?
13194 cat conftest.err >&5
13195 echo "$as_me:13195: \$? = $ac_status" >&5
13196 if (exit $ac_status) && test -s "$ac_outfile"; then
13197 # The compiler can only warn and ignore the option if not recognized
13198 # So say no if there are warnings other than the usual output.
13199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13202 lt_prog_compiler_pic_works_CXX=yes
13203 fi
13204 fi
13205 $rm conftest*
13206
13207 fi
13208 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13209 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13210
13211 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13212 case $lt_prog_compiler_pic_CXX in
13213 "" | " "*) ;;
13214 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13215 esac
13216 else
13217 lt_prog_compiler_pic_CXX=
13218 lt_prog_compiler_can_build_shared_CXX=no
13219 fi
13220
13221 fi
13222 case $host_os in
13223 # For platforms which do not support PIC, -DPIC is meaningless:
13224 *djgpp*)
13225 lt_prog_compiler_pic_CXX=
13226 ;;
13227 *)
13228 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13229 ;;
13230 esac
13231
13232 #
13233 # Check to make sure the static flag actually works.
13234 #
13235 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13236 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13237 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13238 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 lt_prog_compiler_static_works_CXX=no
13242 save_LDFLAGS="$LDFLAGS"
13243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13244 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13246 # The linker can only warn and ignore the option if not recognized
13247 # So say no if there are warnings
13248 if test -s conftest.err; then
13249 # Append any errors to the config.log.
13250 cat conftest.err 1>&5
13251 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13253 if diff conftest.exp conftest.er2 >/dev/null; then
13254 lt_prog_compiler_static_works_CXX=yes
13255 fi
13256 else
13257 lt_prog_compiler_static_works_CXX=yes
13258 fi
13259 fi
13260 $rm conftest*
13261 LDFLAGS="$save_LDFLAGS"
13262
13263 fi
13264 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13265 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13266
13267 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13268 :
13269 else
13270 lt_prog_compiler_static_CXX=
13271 fi
13272
13273
13274 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13275 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13276 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 lt_cv_prog_compiler_c_o_CXX=no
13280 $rm -r conftest 2>/dev/null
13281 mkdir conftest
13282 cd conftest
13283 mkdir out
13284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13285
13286 lt_compiler_flag="-o out/conftest2.$ac_objext"
13287 # Insert the option either (1) after the last *FLAGS variable, or
13288 # (2) before a word containing "conftest.", or (3) at the end.
13289 # Note that $ac_compile itself does not contain backslashes and begins
13290 # with a dollar sign (not a hyphen), so the echo should work correctly.
13291 lt_compile=`echo "$ac_compile" | $SED \
13292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13294 -e 's:$: $lt_compiler_flag:'`
13295 (eval echo "\"\$as_me:13295: $lt_compile\"" >&5)
13296 (eval "$lt_compile" 2>out/conftest.err)
13297 ac_status=$?
13298 cat out/conftest.err >&5
13299 echo "$as_me:13299: \$? = $ac_status" >&5
13300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13301 then
13302 # The compiler can only warn and ignore the option if not recognized
13303 # So say no if there are warnings
13304 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13307 lt_cv_prog_compiler_c_o_CXX=yes
13308 fi
13309 fi
13310 chmod u+w . 2>&5
13311 $rm conftest*
13312 # SGI C++ compiler will create directory out/ii_files/ for
13313 # template instantiation
13314 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13315 $rm out/* && rmdir out
13316 cd ..
13317 rmdir conftest
13318 $rm conftest*
13319
13320 fi
13321 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13322 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13323
13324
13325 hard_links="nottested"
13326 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13327 # do not overwrite the value of need_locks provided by the user
13328 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13329 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13330 hard_links=yes
13331 $rm conftest*
13332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13333 touch conftest.a
13334 ln conftest.a conftest.b 2>&5 || hard_links=no
13335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336 echo "$as_me:$LINENO: result: $hard_links" >&5
13337 echo "${ECHO_T}$hard_links" >&6
13338 if test "$hard_links" = no; then
13339 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13340 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13341 need_locks=warn
13342 fi
13343 else
13344 need_locks=no
13345 fi
13346
13347 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13348 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13349
13350 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13351 case $host_os in
13352 aix4* | aix5*)
13353 # If we're using GNU nm, then we don't want the "-C" option.
13354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13356 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'
13357 else
13358 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'
13359 fi
13360 ;;
13361 pw32*)
13362 export_symbols_cmds_CXX="$ltdll_cmds"
13363 ;;
13364 cygwin* | mingw*)
13365 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'
13366 ;;
13367 *)
13368 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13369 ;;
13370 esac
13371
13372 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13373 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13374 test "$ld_shlibs_CXX" = no && can_build_shared=no
13375
13376 #
13377 # Do we need to explicitly link libc?
13378 #
13379 case "x$archive_cmds_need_lc_CXX" in
13380 x|xyes)
13381 # Assume -lc should be added
13382 archive_cmds_need_lc_CXX=yes
13383
13384 if test "$enable_shared" = yes && test "$GCC" = yes; then
13385 case $archive_cmds_CXX in
13386 *'~'*)
13387 # FIXME: we may have to deal with multi-command sequences.
13388 ;;
13389 '$CC '*)
13390 # Test whether the compiler implicitly links with -lc since on some
13391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13392 # to ld, don't add -lc before -lgcc.
13393 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13394 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13395 $rm conftest*
13396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13397
13398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399 (eval $ac_compile) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } 2>conftest.err; then
13403 soname=conftest
13404 lib=conftest
13405 libobjs=conftest.$ac_objext
13406 deplibs=
13407 wl=$lt_prog_compiler_wl_CXX
13408 pic_flag=$lt_prog_compiler_pic_CXX
13409 compiler_flags=-v
13410 linker_flags=-v
13411 verstring=
13412 output_objdir=.
13413 libname=conftest
13414 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13415 allow_undefined_flag_CXX=
13416 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13417 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }
13421 then
13422 archive_cmds_need_lc_CXX=no
13423 else
13424 archive_cmds_need_lc_CXX=yes
13425 fi
13426 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13427 else
13428 cat conftest.err 1>&5
13429 fi
13430 $rm conftest*
13431 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13432 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13433 ;;
13434 esac
13435 fi
13436 ;;
13437 esac
13438
13439 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13440 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13441 library_names_spec=
13442 libname_spec='lib$name'
13443 soname_spec=
13444 shrext_cmds=".so"
13445 postinstall_cmds=
13446 postuninstall_cmds=
13447 finish_cmds=
13448 finish_eval=
13449 shlibpath_var=
13450 shlibpath_overrides_runpath=unknown
13451 version_type=none
13452 dynamic_linker="$host_os ld.so"
13453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13454 if test "$GCC" = yes; then
13455 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13456 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13457 # if the path contains ";" then we assume it to be the separator
13458 # otherwise default to the standard path separator (i.e. ":") - it is
13459 # assumed that no part of a normal pathname contains ";" but that should
13460 # okay in the real world where ";" in dirpaths is itself problematic.
13461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13462 else
13463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13464 fi
13465 else
13466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13467 fi
13468 need_lib_prefix=unknown
13469 hardcode_into_libs=no
13470
13471 # when you set need_version to no, make sure it does not cause -set_version
13472 # flags to be left without arguments
13473 need_version=unknown
13474
13475 case $host_os in
13476 aix3*)
13477 version_type=linux
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13479 shlibpath_var=LIBPATH
13480
13481 # AIX 3 has no versioning support, so we append a major version to the name.
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 ;;
13484
13485 aix4* | aix5*)
13486 version_type=linux
13487 need_lib_prefix=no
13488 need_version=no
13489 hardcode_into_libs=yes
13490 if test "$host_cpu" = ia64; then
13491 # AIX 5 supports IA64
13492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13493 shlibpath_var=LD_LIBRARY_PATH
13494 else
13495 # With GCC up to 2.95.x, collect2 would create an import file
13496 # for dependence libraries. The import file would start with
13497 # the line `#! .'. This would cause the generated library to
13498 # depend on `.', always an invalid library. This was fixed in
13499 # development snapshots of GCC prior to 3.0.
13500 case $host_os in
13501 aix4 | aix4.[01] | aix4.[01].*)
13502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13503 echo ' yes '
13504 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13505 :
13506 else
13507 can_build_shared=no
13508 fi
13509 ;;
13510 esac
13511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13512 # soname into executable. Probably we can add versioning support to
13513 # collect2, so additional links can be useful in future.
13514 if test "$aix_use_runtimelinking" = yes; then
13515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13516 # instead of lib<name>.a to let people know that these are not
13517 # typical AIX shared libraries.
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 else
13520 # We preserve .a as extension for shared libraries through AIX4.2
13521 # and later when we are not doing run time linking.
13522 library_names_spec='${libname}${release}.a $libname.a'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 fi
13525 shlibpath_var=LIBPATH
13526 fi
13527 ;;
13528
13529 amigaos*)
13530 library_names_spec='$libname.ixlibrary $libname.a'
13531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13532 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'
13533 ;;
13534
13535 beos*)
13536 library_names_spec='${libname}${shared_ext}'
13537 dynamic_linker="$host_os ld.so"
13538 shlibpath_var=LIBRARY_PATH
13539 ;;
13540
13541 bsdi[45]*)
13542 version_type=linux
13543 need_version=no
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13547 shlibpath_var=LD_LIBRARY_PATH
13548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13550 # the default ld.so.conf also contains /usr/contrib/lib and
13551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13552 # libtool to hard-code these into programs
13553 ;;
13554
13555 cygwin* | mingw* | pw32*)
13556 version_type=windows
13557 shrext_cmds=".dll"
13558 need_version=no
13559 need_lib_prefix=no
13560
13561 case $GCC,$host_os in
13562 yes,cygwin* | yes,mingw* | yes,pw32*)
13563 library_names_spec='$libname.dll.a'
13564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13565 postinstall_cmds='base_file=`basename \${file}`~
13566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13567 dldir=$destdir/`dirname \$dlpath`~
13568 test -d \$dldir || mkdir -p \$dldir~
13569 $install_prog $dir/$dlname \$dldir/$dlname~
13570 chmod a+x \$dldir/$dlname'
13571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13572 dlpath=$dir/\$dldll~
13573 $rm \$dlpath'
13574 shlibpath_overrides_runpath=yes
13575
13576 case $host_os in
13577 cygwin*)
13578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13580 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13581 ;;
13582 mingw*)
13583 # MinGW DLLs use traditional 'lib' prefix
13584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13586 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13587 # It is most probably a Windows format PATH printed by
13588 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13589 # path with ; separators, and with drive letters. We can handle the
13590 # drive letters (cygwin fileutils understands them), so leave them,
13591 # especially as we might pass files found there to a mingw objdump,
13592 # which wouldn't understand a cygwinified path. Ahh.
13593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13594 else
13595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13596 fi
13597 ;;
13598 pw32*)
13599 # pw32 DLLs use 'pw' prefix rather than 'lib'
13600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13601 ;;
13602 esac
13603 ;;
13604
13605 *)
13606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13607 ;;
13608 esac
13609 dynamic_linker='Win32 ld.exe'
13610 # FIXME: first we should search . and the directory the executable is in
13611 shlibpath_var=PATH
13612 ;;
13613
13614 darwin* | rhapsody*)
13615 dynamic_linker="$host_os dyld"
13616 version_type=darwin
13617 need_lib_prefix=no
13618 need_version=no
13619 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13620 soname_spec='${libname}${release}${major}$shared_ext'
13621 shlibpath_overrides_runpath=yes
13622 shlibpath_var=DYLD_LIBRARY_PATH
13623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13624 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13625 if test "$GCC" = yes; then
13626 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"`
13627 else
13628 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13629 fi
13630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13631 ;;
13632
13633 dgux*)
13634 version_type=linux
13635 need_lib_prefix=no
13636 need_version=no
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 ;;
13641
13642 freebsd1*)
13643 dynamic_linker=no
13644 ;;
13645
13646 kfreebsd*-gnu)
13647 version_type=linux
13648 need_lib_prefix=no
13649 need_version=no
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 shlibpath_overrides_runpath=no
13654 hardcode_into_libs=yes
13655 dynamic_linker='GNU ld.so'
13656 ;;
13657
13658 freebsd* | dragonfly*)
13659 # DragonFly does not have aout. When/if they implement a new
13660 # versioning mechanism, adjust this.
13661 if test -x /usr/bin/objformat; then
13662 objformat=`/usr/bin/objformat`
13663 else
13664 case $host_os in
13665 freebsd[123]*) objformat=aout ;;
13666 *) objformat=elf ;;
13667 esac
13668 fi
13669 version_type=freebsd-$objformat
13670 case $version_type in
13671 freebsd-elf*)
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13673 need_version=no
13674 need_lib_prefix=no
13675 ;;
13676 freebsd-*)
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13678 need_version=yes
13679 ;;
13680 esac
13681 shlibpath_var=LD_LIBRARY_PATH
13682 case $host_os in
13683 freebsd2*)
13684 shlibpath_overrides_runpath=yes
13685 ;;
13686 freebsd3.[01]* | freebsdelf3.[01]*)
13687 shlibpath_overrides_runpath=yes
13688 hardcode_into_libs=yes
13689 ;;
13690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13692 shlibpath_overrides_runpath=no
13693 hardcode_into_libs=yes
13694 ;;
13695 freebsd*) # from 4.6 on
13696 shlibpath_overrides_runpath=yes
13697 hardcode_into_libs=yes
13698 ;;
13699 esac
13700 ;;
13701
13702 gnu*)
13703 version_type=linux
13704 need_lib_prefix=no
13705 need_version=no
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13707 soname_spec='${libname}${release}${shared_ext}$major'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 hardcode_into_libs=yes
13710 ;;
13711
13712 hpux9* | hpux10* | hpux11*)
13713 # Give a soname corresponding to the major version so that dld.sl refuses to
13714 # link against other versions.
13715 version_type=sunos
13716 need_lib_prefix=no
13717 need_version=no
13718 case $host_cpu in
13719 ia64*)
13720 shrext_cmds='.so'
13721 hardcode_into_libs=yes
13722 dynamic_linker="$host_os dld.so"
13723 shlibpath_var=LD_LIBRARY_PATH
13724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 if test "X$HPUX_IA64_MODE" = X32; then
13728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13729 else
13730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13731 fi
13732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13733 ;;
13734 hppa*64*)
13735 shrext_cmds='.sl'
13736 hardcode_into_libs=yes
13737 dynamic_linker="$host_os dld.sl"
13738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13744 ;;
13745 *)
13746 shrext_cmds='.sl'
13747 dynamic_linker="$host_os dld.sl"
13748 shlibpath_var=SHLIB_PATH
13749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13751 soname_spec='${libname}${release}${shared_ext}$major'
13752 ;;
13753 esac
13754 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13755 postinstall_cmds='chmod 555 $lib'
13756 ;;
13757
13758 interix3*)
13759 version_type=linux
13760 need_lib_prefix=no
13761 need_version=no
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13763 soname_spec='${libname}${release}${shared_ext}$major'
13764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13765 shlibpath_var=LD_LIBRARY_PATH
13766 shlibpath_overrides_runpath=no
13767 hardcode_into_libs=yes
13768 ;;
13769
13770 irix5* | irix6* | nonstopux*)
13771 case $host_os in
13772 nonstopux*) version_type=nonstopux ;;
13773 *)
13774 if test "$lt_cv_prog_gnu_ld" = yes; then
13775 version_type=linux
13776 else
13777 version_type=irix
13778 fi ;;
13779 esac
13780 need_lib_prefix=no
13781 need_version=no
13782 soname_spec='${libname}${release}${shared_ext}$major'
13783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13784 case $host_os in
13785 irix5* | nonstopux*)
13786 libsuff= shlibsuff=
13787 ;;
13788 *)
13789 case $LD in # libtool.m4 will add one of these switches to LD
13790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13791 libsuff= shlibsuff= libmagic=32-bit;;
13792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13793 libsuff=32 shlibsuff=N32 libmagic=N32;;
13794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13796 *) libsuff= shlibsuff= libmagic=never-match;;
13797 esac
13798 ;;
13799 esac
13800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13801 shlibpath_overrides_runpath=no
13802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13804 hardcode_into_libs=yes
13805 ;;
13806
13807 # No shared lib support for Linux oldld, aout, or coff.
13808 linux*oldld* | linux*aout* | linux*coff*)
13809 dynamic_linker=no
13810 ;;
13811
13812 # This must be Linux ELF.
13813 linux*)
13814 version_type=linux
13815 need_lib_prefix=no
13816 need_version=no
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818 soname_spec='${libname}${release}${shared_ext}$major'
13819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 shlibpath_overrides_runpath=no
13822 # This implies no fast_install, which is unacceptable.
13823 # Some rework will be needed to allow for fast_install
13824 # before this can be enabled.
13825 hardcode_into_libs=yes
13826
13827 # Append ld.so.conf contents to the search path
13828 if test -f /etc/ld.so.conf; then
13829 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' ' '`
13830 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13831 fi
13832
13833 # We used to test for /lib/ld.so.1 and disable shared libraries on
13834 # powerpc, because MkLinux only supported shared libraries with the
13835 # GNU dynamic linker. Since this was broken with cross compilers,
13836 # most powerpc-linux boxes support dynamic linking these days and
13837 # people can always --disable-shared, the test was removed, and we
13838 # assume the GNU/Linux dynamic linker is in use.
13839 dynamic_linker='GNU/Linux ld.so'
13840 ;;
13841
13842 knetbsd*-gnu)
13843 version_type=linux
13844 need_lib_prefix=no
13845 need_version=no
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=no
13850 hardcode_into_libs=yes
13851 dynamic_linker='GNU ld.so'
13852 ;;
13853
13854 netbsd*)
13855 version_type=sunos
13856 need_lib_prefix=no
13857 need_version=no
13858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13861 dynamic_linker='NetBSD (a.out) ld.so'
13862 else
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13864 soname_spec='${libname}${release}${shared_ext}$major'
13865 dynamic_linker='NetBSD ld.elf_so'
13866 fi
13867 shlibpath_var=LD_LIBRARY_PATH
13868 shlibpath_overrides_runpath=yes
13869 hardcode_into_libs=yes
13870 ;;
13871
13872 newsos6)
13873 version_type=linux
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13875 shlibpath_var=LD_LIBRARY_PATH
13876 shlibpath_overrides_runpath=yes
13877 ;;
13878
13879 nto-qnx*)
13880 version_type=linux
13881 need_lib_prefix=no
13882 need_version=no
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 shlibpath_overrides_runpath=yes
13887 ;;
13888
13889 openbsd*)
13890 version_type=sunos
13891 sys_lib_dlsearch_path_spec="/usr/lib"
13892 need_lib_prefix=no
13893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13894 case $host_os in
13895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13896 *) need_version=no ;;
13897 esac
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13902 case $host_os in
13903 openbsd2.[89] | openbsd2.[89].*)
13904 shlibpath_overrides_runpath=no
13905 ;;
13906 *)
13907 shlibpath_overrides_runpath=yes
13908 ;;
13909 esac
13910 else
13911 shlibpath_overrides_runpath=yes
13912 fi
13913 ;;
13914
13915 os2*)
13916 libname_spec='$name'
13917 shrext_cmds=".dll"
13918 need_lib_prefix=no
13919 library_names_spec='$libname${shared_ext} $libname.a'
13920 dynamic_linker='OS/2 ld.exe'
13921 shlibpath_var=LIBPATH
13922 ;;
13923
13924 osf3* | osf4* | osf5*)
13925 version_type=osf
13926 need_lib_prefix=no
13927 need_version=no
13928 soname_spec='${libname}${release}${shared_ext}$major'
13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13930 shlibpath_var=LD_LIBRARY_PATH
13931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13933 ;;
13934
13935 solaris*)
13936 version_type=linux
13937 need_lib_prefix=no
13938 need_version=no
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 shlibpath_var=LD_LIBRARY_PATH
13942 shlibpath_overrides_runpath=yes
13943 hardcode_into_libs=yes
13944 # ldd complains unless libraries are executable
13945 postinstall_cmds='chmod +x $lib'
13946 ;;
13947
13948 sunos4*)
13949 version_type=sunos
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13952 shlibpath_var=LD_LIBRARY_PATH
13953 shlibpath_overrides_runpath=yes
13954 if test "$with_gnu_ld" = yes; then
13955 need_lib_prefix=no
13956 fi
13957 need_version=yes
13958 ;;
13959
13960 sysv4 | sysv4.3*)
13961 version_type=linux
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 case $host_vendor in
13966 sni)
13967 shlibpath_overrides_runpath=no
13968 need_lib_prefix=no
13969 export_dynamic_flag_spec='${wl}-Blargedynsym'
13970 runpath_var=LD_RUN_PATH
13971 ;;
13972 siemens)
13973 need_lib_prefix=no
13974 ;;
13975 motorola)
13976 need_lib_prefix=no
13977 need_version=no
13978 shlibpath_overrides_runpath=no
13979 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13980 ;;
13981 esac
13982 ;;
13983
13984 sysv4*MP*)
13985 if test -d /usr/nec ;then
13986 version_type=linux
13987 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13988 soname_spec='$libname${shared_ext}.$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 fi
13991 ;;
13992
13993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13994 version_type=freebsd-elf
13995 need_lib_prefix=no
13996 need_version=no
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 hardcode_into_libs=yes
14001 if test "$with_gnu_ld" = yes; then
14002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14003 shlibpath_overrides_runpath=no
14004 else
14005 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14006 shlibpath_overrides_runpath=yes
14007 case $host_os in
14008 sco3.2v5*)
14009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14010 ;;
14011 esac
14012 fi
14013 sys_lib_dlsearch_path_spec='/usr/lib'
14014 ;;
14015
14016 uts4*)
14017 version_type=linux
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 shlibpath_var=LD_LIBRARY_PATH
14021 ;;
14022
14023 *)
14024 dynamic_linker=no
14025 ;;
14026 esac
14027 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14028 echo "${ECHO_T}$dynamic_linker" >&6
14029 test "$dynamic_linker" = no && can_build_shared=no
14030
14031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14032 if test "$GCC" = yes; then
14033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14034 fi
14035
14036 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14037 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14038 hardcode_action_CXX=
14039 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14040 test -n "$runpath_var_CXX" || \
14041 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14042
14043 # We can hardcode non-existant directories.
14044 if test "$hardcode_direct_CXX" != no &&
14045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14046 # have to relink, otherwise we might link with an installed library
14047 # when we should be linking with a yet-to-be-installed one
14048 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14049 test "$hardcode_minus_L_CXX" != no; then
14050 # Linking always hardcodes the temporary library directory.
14051 hardcode_action_CXX=relink
14052 else
14053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14054 hardcode_action_CXX=immediate
14055 fi
14056 else
14057 # We cannot hardcode anything, or else we can only hardcode existing
14058 # directories.
14059 hardcode_action_CXX=unsupported
14060 fi
14061 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14062 echo "${ECHO_T}$hardcode_action_CXX" >&6
14063
14064 if test "$hardcode_action_CXX" = relink; then
14065 # Fast installation is not supported
14066 enable_fast_install=no
14067 elif test "$shlibpath_overrides_runpath" = yes ||
14068 test "$enable_shared" = no; then
14069 # Fast installation is not necessary
14070 enable_fast_install=needless
14071 fi
14072
14073
14074 # The else clause should only fire when bootstrapping the
14075 # libtool distribution, otherwise you forgot to ship ltmain.sh
14076 # with your package, and you will get complaints that there are
14077 # no rules to generate ltmain.sh.
14078 if test -f "$ltmain"; then
14079 # See if we are running on zsh, and set the options which allow our commands through
14080 # without removal of \ escapes.
14081 if test -n "${ZSH_VERSION+set}" ; then
14082 setopt NO_GLOB_SUBST
14083 fi
14084 # Now quote all the things that may contain metacharacters while being
14085 # careful not to overquote the AC_SUBSTed values. We take copies of the
14086 # variables and quote the copies for generation of the libtool script.
14087 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14088 SED SHELL STRIP \
14089 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14090 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14091 deplibs_check_method reload_flag reload_cmds need_locks \
14092 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14093 lt_cv_sys_global_symbol_to_c_name_address \
14094 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14095 old_postinstall_cmds old_postuninstall_cmds \
14096 compiler_CXX \
14097 CC_CXX \
14098 LD_CXX \
14099 lt_prog_compiler_wl_CXX \
14100 lt_prog_compiler_pic_CXX \
14101 lt_prog_compiler_static_CXX \
14102 lt_prog_compiler_no_builtin_flag_CXX \
14103 export_dynamic_flag_spec_CXX \
14104 thread_safe_flag_spec_CXX \
14105 whole_archive_flag_spec_CXX \
14106 enable_shared_with_static_runtimes_CXX \
14107 old_archive_cmds_CXX \
14108 old_archive_from_new_cmds_CXX \
14109 predep_objects_CXX \
14110 postdep_objects_CXX \
14111 predeps_CXX \
14112 postdeps_CXX \
14113 compiler_lib_search_path_CXX \
14114 archive_cmds_CXX \
14115 archive_expsym_cmds_CXX \
14116 postinstall_cmds_CXX \
14117 postuninstall_cmds_CXX \
14118 old_archive_from_expsyms_cmds_CXX \
14119 allow_undefined_flag_CXX \
14120 no_undefined_flag_CXX \
14121 export_symbols_cmds_CXX \
14122 hardcode_libdir_flag_spec_CXX \
14123 hardcode_libdir_flag_spec_ld_CXX \
14124 hardcode_libdir_separator_CXX \
14125 hardcode_automatic_CXX \
14126 module_cmds_CXX \
14127 module_expsym_cmds_CXX \
14128 lt_cv_prog_compiler_c_o_CXX \
14129 exclude_expsyms_CXX \
14130 include_expsyms_CXX; do
14131
14132 case $var in
14133 old_archive_cmds_CXX | \
14134 old_archive_from_new_cmds_CXX | \
14135 archive_cmds_CXX | \
14136 archive_expsym_cmds_CXX | \
14137 module_cmds_CXX | \
14138 module_expsym_cmds_CXX | \
14139 old_archive_from_expsyms_cmds_CXX | \
14140 export_symbols_cmds_CXX | \
14141 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14142 postinstall_cmds | postuninstall_cmds | \
14143 old_postinstall_cmds | old_postuninstall_cmds | \
14144 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14145 # Double-quote double-evaled strings.
14146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14147 ;;
14148 *)
14149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14150 ;;
14151 esac
14152 done
14153
14154 case $lt_echo in
14155 *'\$0 --fallback-echo"')
14156 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14157 ;;
14158 esac
14159
14160 cfgfile="$ofile"
14161
14162 cat <<__EOF__ >> "$cfgfile"
14163 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14164
14165 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14166
14167 # Shell to use when invoking shell scripts.
14168 SHELL=$lt_SHELL
14169
14170 # Whether or not to build shared libraries.
14171 build_libtool_libs=$enable_shared
14172
14173 # Whether or not to build static libraries.
14174 build_old_libs=$enable_static
14175
14176 # Whether or not to add -lc for building shared libraries.
14177 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14178
14179 # Whether or not to disallow shared libs when runtime libs are static
14180 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14181
14182 # Whether or not to optimize for fast installation.
14183 fast_install=$enable_fast_install
14184
14185 # The host system.
14186 host_alias=$host_alias
14187 host=$host
14188 host_os=$host_os
14189
14190 # The build system.
14191 build_alias=$build_alias
14192 build=$build
14193 build_os=$build_os
14194
14195 # An echo program that does not interpret backslashes.
14196 echo=$lt_echo
14197
14198 # The archiver.
14199 AR=$lt_AR
14200 AR_FLAGS=$lt_AR_FLAGS
14201
14202 # A C compiler.
14203 LTCC=$lt_LTCC
14204
14205 # LTCC compiler flags.
14206 LTCFLAGS=$lt_LTCFLAGS
14207
14208 # A language-specific compiler.
14209 CC=$lt_compiler_CXX
14210
14211 # Is the compiler the GNU C compiler?
14212 with_gcc=$GCC_CXX
14213
14214 # An ERE matcher.
14215 EGREP=$lt_EGREP
14216
14217 # The linker used to build libraries.
14218 LD=$lt_LD_CXX
14219
14220 # Whether we need hard or soft links.
14221 LN_S=$lt_LN_S
14222
14223 # A BSD-compatible nm program.
14224 NM=$lt_NM
14225
14226 # A symbol stripping program
14227 STRIP=$lt_STRIP
14228
14229 # Used to examine libraries when file_magic_cmd begins "file"
14230 MAGIC_CMD=$MAGIC_CMD
14231
14232 # Used on cygwin: DLL creation program.
14233 DLLTOOL="$DLLTOOL"
14234
14235 # Used on cygwin: object dumper.
14236 OBJDUMP="$OBJDUMP"
14237
14238 # Used on cygwin: assembler.
14239 AS="$AS"
14240
14241 # The name of the directory that contains temporary libtool files.
14242 objdir=$objdir
14243
14244 # How to create reloadable object files.
14245 reload_flag=$lt_reload_flag
14246 reload_cmds=$lt_reload_cmds
14247
14248 # How to pass a linker flag through the compiler.
14249 wl=$lt_lt_prog_compiler_wl_CXX
14250
14251 # Object file suffix (normally "o").
14252 objext="$ac_objext"
14253
14254 # Old archive suffix (normally "a").
14255 libext="$libext"
14256
14257 # Shared library suffix (normally ".so").
14258 shrext_cmds='$shrext_cmds'
14259
14260 # Executable file suffix (normally "").
14261 exeext="$exeext"
14262
14263 # Additional compiler flags for building library objects.
14264 pic_flag=$lt_lt_prog_compiler_pic_CXX
14265 pic_mode=$pic_mode
14266
14267 # What is the maximum length of a command?
14268 max_cmd_len=$lt_cv_sys_max_cmd_len
14269
14270 # Does compiler simultaneously support -c and -o options?
14271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14272
14273 # Must we lock files when doing compilation?
14274 need_locks=$lt_need_locks
14275
14276 # Do we need the lib prefix for modules?
14277 need_lib_prefix=$need_lib_prefix
14278
14279 # Do we need a version for libraries?
14280 need_version=$need_version
14281
14282 # Whether dlopen is supported.
14283 dlopen_support=$enable_dlopen
14284
14285 # Whether dlopen of programs is supported.
14286 dlopen_self=$enable_dlopen_self
14287
14288 # Whether dlopen of statically linked programs is supported.
14289 dlopen_self_static=$enable_dlopen_self_static
14290
14291 # Compiler flag to prevent dynamic linking.
14292 link_static_flag=$lt_lt_prog_compiler_static_CXX
14293
14294 # Compiler flag to turn off builtin functions.
14295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14296
14297 # Compiler flag to allow reflexive dlopens.
14298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14299
14300 # Compiler flag to generate shared objects directly from archives.
14301 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14302
14303 # Compiler flag to generate thread-safe objects.
14304 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14305
14306 # Library versioning type.
14307 version_type=$version_type
14308
14309 # Format of library name prefix.
14310 libname_spec=$lt_libname_spec
14311
14312 # List of archive names. First name is the real one, the rest are links.
14313 # The last name is the one that the linker finds with -lNAME.
14314 library_names_spec=$lt_library_names_spec
14315
14316 # The coded name of the library, if different from the real name.
14317 soname_spec=$lt_soname_spec
14318
14319 # Commands used to build and install an old-style archive.
14320 RANLIB=$lt_RANLIB
14321 old_archive_cmds=$lt_old_archive_cmds_CXX
14322 old_postinstall_cmds=$lt_old_postinstall_cmds
14323 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14324
14325 # Create an old-style archive from a shared archive.
14326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14327
14328 # Create a temporary old-style archive to link instead of a shared archive.
14329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14330
14331 # Commands used to build and install a shared archive.
14332 archive_cmds=$lt_archive_cmds_CXX
14333 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14334 postinstall_cmds=$lt_postinstall_cmds
14335 postuninstall_cmds=$lt_postuninstall_cmds
14336
14337 # Commands used to build a loadable module (assumed same as above if empty)
14338 module_cmds=$lt_module_cmds_CXX
14339 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14340
14341 # Commands to strip libraries.
14342 old_striplib=$lt_old_striplib
14343 striplib=$lt_striplib
14344
14345 # Dependencies to place before the objects being linked to create a
14346 # shared library.
14347 predep_objects=$lt_predep_objects_CXX
14348
14349 # Dependencies to place after the objects being linked to create a
14350 # shared library.
14351 postdep_objects=$lt_postdep_objects_CXX
14352
14353 # Dependencies to place before the objects being linked to create a
14354 # shared library.
14355 predeps=$lt_predeps_CXX
14356
14357 # Dependencies to place after the objects being linked to create a
14358 # shared library.
14359 postdeps=$lt_postdeps_CXX
14360
14361 # The library search path used internally by the compiler when linking
14362 # a shared library.
14363 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14364
14365 # Method to check whether dependent libraries are shared objects.
14366 deplibs_check_method=$lt_deplibs_check_method
14367
14368 # Command to use when deplibs_check_method == file_magic.
14369 file_magic_cmd=$lt_file_magic_cmd
14370
14371 # Flag that allows shared libraries with undefined symbols to be built.
14372 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14373
14374 # Flag that forces no undefined symbols.
14375 no_undefined_flag=$lt_no_undefined_flag_CXX
14376
14377 # Commands used to finish a libtool library installation in a directory.
14378 finish_cmds=$lt_finish_cmds
14379
14380 # Same as above, but a single script fragment to be evaled but not shown.
14381 finish_eval=$lt_finish_eval
14382
14383 # Take the output of nm and produce a listing of raw symbols and C names.
14384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14385
14386 # Transform the output of nm in a proper C declaration
14387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14388
14389 # Transform the output of nm in a C name address pair
14390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14391
14392 # This is the shared library runtime path variable.
14393 runpath_var=$runpath_var
14394
14395 # This is the shared library path variable.
14396 shlibpath_var=$shlibpath_var
14397
14398 # Is shlibpath searched before the hard-coded library search path?
14399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14400
14401 # How to hardcode a shared library path into an executable.
14402 hardcode_action=$hardcode_action_CXX
14403
14404 # Whether we should hardcode library paths into libraries.
14405 hardcode_into_libs=$hardcode_into_libs
14406
14407 # Flag to hardcode \$libdir into a binary during linking.
14408 # This must work even if \$libdir does not exist.
14409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14410
14411 # If ld is used when linking, flag to hardcode \$libdir into
14412 # a binary during linking. This must work even if \$libdir does
14413 # not exist.
14414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14415
14416 # Whether we need a single -rpath flag with a separated argument.
14417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14418
14419 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14420 # resulting binary.
14421 hardcode_direct=$hardcode_direct_CXX
14422
14423 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14424 # resulting binary.
14425 hardcode_minus_L=$hardcode_minus_L_CXX
14426
14427 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14428 # the resulting binary.
14429 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14430
14431 # Set to yes if building a shared library automatically hardcodes DIR into the library
14432 # and all subsequent libraries and executables linked against it.
14433 hardcode_automatic=$hardcode_automatic_CXX
14434
14435 # Variables whose values should be saved in libtool wrapper scripts and
14436 # restored at relink time.
14437 variables_saved_for_relink="$variables_saved_for_relink"
14438
14439 # Whether libtool must link a program against all its dependency libraries.
14440 link_all_deplibs=$link_all_deplibs_CXX
14441
14442 # Compile-time system search path for libraries
14443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14444
14445 # Run-time system search path for libraries
14446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14447
14448 # Fix the shell variable \$srcfile for the compiler.
14449 fix_srcfile_path="$fix_srcfile_path_CXX"
14450
14451 # Set to yes if exported symbols are required.
14452 always_export_symbols=$always_export_symbols_CXX
14453
14454 # The commands to list exported symbols.
14455 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14456
14457 # The commands to extract the exported symbol list from a shared archive.
14458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14459
14460 # Symbols that should not be listed in the preloaded symbols.
14461 exclude_expsyms=$lt_exclude_expsyms_CXX
14462
14463 # Symbols that must always be exported.
14464 include_expsyms=$lt_include_expsyms_CXX
14465
14466 # ### END LIBTOOL TAG CONFIG: $tagname
14467
14468 __EOF__
14469
14470
14471 else
14472 # If there is no Makefile yet, we rely on a make rule to execute
14473 # `config.status --recheck' to rerun these tests and create the
14474 # libtool script then.
14475 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14476 if test -f "$ltmain_in"; then
14477 test -f Makefile && make "$ltmain"
14478 fi
14479 fi
14480
14481
14482 ac_ext=c
14483 ac_cpp='$CPP $CPPFLAGS'
14484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14487
14488 CC=$lt_save_CC
14489 LDCXX=$LD
14490 LD=$lt_save_LD
14491 GCC=$lt_save_GCC
14492 with_gnu_ldcxx=$with_gnu_ld
14493 with_gnu_ld=$lt_save_with_gnu_ld
14494 lt_cv_path_LDCXX=$lt_cv_path_LD
14495 lt_cv_path_LD=$lt_save_path_LD
14496 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14497 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14498
14499 else
14500 tagname=""
14501 fi
14502 ;;
14503
14504 F77)
14505 if test -n "$F77" && test "X$F77" != "Xno"; then
14506
14507 ac_ext=f
14508 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14509 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14510 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14511
14512
14513 archive_cmds_need_lc_F77=no
14514 allow_undefined_flag_F77=
14515 always_export_symbols_F77=no
14516 archive_expsym_cmds_F77=
14517 export_dynamic_flag_spec_F77=
14518 hardcode_direct_F77=no
14519 hardcode_libdir_flag_spec_F77=
14520 hardcode_libdir_flag_spec_ld_F77=
14521 hardcode_libdir_separator_F77=
14522 hardcode_minus_L_F77=no
14523 hardcode_automatic_F77=no
14524 module_cmds_F77=
14525 module_expsym_cmds_F77=
14526 link_all_deplibs_F77=unknown
14527 old_archive_cmds_F77=$old_archive_cmds
14528 no_undefined_flag_F77=
14529 whole_archive_flag_spec_F77=
14530 enable_shared_with_static_runtimes_F77=no
14531
14532 # Source file extension for f77 test sources.
14533 ac_ext=f
14534
14535 # Object file extension for compiled f77 test sources.
14536 objext=o
14537 objext_F77=$objext
14538
14539 # Code to be used in simple compile tests
14540 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14541
14542 # Code to be used in simple link tests
14543 lt_simple_link_test_code=" program t\n end\n"
14544
14545 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14546
14547 # If no C compiler was specified, use CC.
14548 LTCC=${LTCC-"$CC"}
14549
14550 # If no C compiler flags were specified, use CFLAGS.
14551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14552
14553 # Allow CC to be a program name with arguments.
14554 compiler=$CC
14555
14556
14557 # save warnings/boilerplate of simple test code
14558 ac_outfile=conftest.$ac_objext
14559 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14560 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14561 _lt_compiler_boilerplate=`cat conftest.err`
14562 $rm conftest*
14563
14564 ac_outfile=conftest.$ac_objext
14565 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14566 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14567 _lt_linker_boilerplate=`cat conftest.err`
14568 $rm conftest*
14569
14570
14571 # Allow CC to be a program name with arguments.
14572 lt_save_CC="$CC"
14573 CC=${F77-"f77"}
14574 compiler=$CC
14575 compiler_F77=$CC
14576 for cc_temp in $compiler""; do
14577 case $cc_temp in
14578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14580 \-*) ;;
14581 *) break;;
14582 esac
14583 done
14584 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14585
14586
14587 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14588 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14589 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14590 echo "${ECHO_T}$can_build_shared" >&6
14591
14592 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14593 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14594 test "$can_build_shared" = "no" && enable_shared=no
14595
14596 # On AIX, shared libraries and static libraries use the same namespace, and
14597 # are all built from PIC.
14598 case $host_os in
14599 aix3*)
14600 test "$enable_shared" = yes && enable_static=no
14601 if test -n "$RANLIB"; then
14602 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14603 postinstall_cmds='$RANLIB $lib'
14604 fi
14605 ;;
14606 aix4* | aix5*)
14607 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14608 test "$enable_shared" = yes && enable_static=no
14609 fi
14610 ;;
14611 esac
14612 echo "$as_me:$LINENO: result: $enable_shared" >&5
14613 echo "${ECHO_T}$enable_shared" >&6
14614
14615 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14616 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14617 # Make sure either enable_shared or enable_static is yes.
14618 test "$enable_shared" = yes || enable_static=yes
14619 echo "$as_me:$LINENO: result: $enable_static" >&5
14620 echo "${ECHO_T}$enable_static" >&6
14621
14622 GCC_F77="$G77"
14623 LD_F77="$LD"
14624
14625 lt_prog_compiler_wl_F77=
14626 lt_prog_compiler_pic_F77=
14627 lt_prog_compiler_static_F77=
14628
14629 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14631
14632 if test "$GCC" = yes; then
14633 lt_prog_compiler_wl_F77='-Wl,'
14634 lt_prog_compiler_static_F77='-static'
14635
14636 case $host_os in
14637 aix*)
14638 # All AIX code is PIC.
14639 if test "$host_cpu" = ia64; then
14640 # AIX 5 now supports IA64 processor
14641 lt_prog_compiler_static_F77='-Bstatic'
14642 fi
14643 ;;
14644
14645 amigaos*)
14646 # FIXME: we need at least 68020 code to build shared libraries, but
14647 # adding the `-m68020' flag to GCC prevents building anything better,
14648 # like `-m68040'.
14649 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14650 ;;
14651
14652 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14653 # PIC is the default for these OSes.
14654 ;;
14655
14656 mingw* | pw32* | os2*)
14657 # This hack is so that the source file can tell whether it is being
14658 # built for inclusion in a dll (and should export symbols for example).
14659 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14660 ;;
14661
14662 darwin* | rhapsody*)
14663 # PIC is the default on this platform
14664 # Common symbols not allowed in MH_DYLIB files
14665 lt_prog_compiler_pic_F77='-fno-common'
14666 ;;
14667
14668 interix3*)
14669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14670 # Instead, we relocate shared libraries at runtime.
14671 ;;
14672
14673 msdosdjgpp*)
14674 # Just because we use GCC doesn't mean we suddenly get shared libraries
14675 # on systems that don't support them.
14676 lt_prog_compiler_can_build_shared_F77=no
14677 enable_shared=no
14678 ;;
14679
14680 sysv4*MP*)
14681 if test -d /usr/nec; then
14682 lt_prog_compiler_pic_F77=-Kconform_pic
14683 fi
14684 ;;
14685
14686 hpux*)
14687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14688 # not for PA HP-UX.
14689 case $host_cpu in
14690 hppa*64*|ia64*)
14691 # +Z the default
14692 ;;
14693 *)
14694 lt_prog_compiler_pic_F77='-fPIC'
14695 ;;
14696 esac
14697 ;;
14698
14699 *)
14700 lt_prog_compiler_pic_F77='-fPIC'
14701 ;;
14702 esac
14703 else
14704 # PORTME Check for flag to pass linker flags through the system compiler.
14705 case $host_os in
14706 aix*)
14707 lt_prog_compiler_wl_F77='-Wl,'
14708 if test "$host_cpu" = ia64; then
14709 # AIX 5 now supports IA64 processor
14710 lt_prog_compiler_static_F77='-Bstatic'
14711 else
14712 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14713 fi
14714 ;;
14715 darwin*)
14716 # PIC is the default on this platform
14717 # Common symbols not allowed in MH_DYLIB files
14718 case $cc_basename in
14719 xlc*)
14720 lt_prog_compiler_pic_F77='-qnocommon'
14721 lt_prog_compiler_wl_F77='-Wl,'
14722 ;;
14723 esac
14724 ;;
14725
14726 mingw* | pw32* | os2*)
14727 # This hack is so that the source file can tell whether it is being
14728 # built for inclusion in a dll (and should export symbols for example).
14729 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14730 ;;
14731
14732 hpux9* | hpux10* | hpux11*)
14733 lt_prog_compiler_wl_F77='-Wl,'
14734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14735 # not for PA HP-UX.
14736 case $host_cpu in
14737 hppa*64*|ia64*)
14738 # +Z the default
14739 ;;
14740 *)
14741 lt_prog_compiler_pic_F77='+Z'
14742 ;;
14743 esac
14744 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14745 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14746 ;;
14747
14748 irix5* | irix6* | nonstopux*)
14749 lt_prog_compiler_wl_F77='-Wl,'
14750 # PIC (with -KPIC) is the default.
14751 lt_prog_compiler_static_F77='-non_shared'
14752 ;;
14753
14754 newsos6)
14755 lt_prog_compiler_pic_F77='-KPIC'
14756 lt_prog_compiler_static_F77='-Bstatic'
14757 ;;
14758
14759 linux*)
14760 case $cc_basename in
14761 icc* | ecc*)
14762 lt_prog_compiler_wl_F77='-Wl,'
14763 lt_prog_compiler_pic_F77='-KPIC'
14764 lt_prog_compiler_static_F77='-static'
14765 ;;
14766 pgcc* | pgf77* | pgf90* | pgf95*)
14767 # Portland Group compilers (*not* the Pentium gcc compiler,
14768 # which looks to be a dead project)
14769 lt_prog_compiler_wl_F77='-Wl,'
14770 lt_prog_compiler_pic_F77='-fpic'
14771 lt_prog_compiler_static_F77='-Bstatic'
14772 ;;
14773 ccc*)
14774 lt_prog_compiler_wl_F77='-Wl,'
14775 # All Alpha code is PIC.
14776 lt_prog_compiler_static_F77='-non_shared'
14777 ;;
14778 esac
14779 ;;
14780
14781 osf3* | osf4* | osf5*)
14782 lt_prog_compiler_wl_F77='-Wl,'
14783 # All OSF/1 code is PIC.
14784 lt_prog_compiler_static_F77='-non_shared'
14785 ;;
14786
14787 solaris*)
14788 lt_prog_compiler_pic_F77='-KPIC'
14789 lt_prog_compiler_static_F77='-Bstatic'
14790 case $cc_basename in
14791 f77* | f90* | f95*)
14792 lt_prog_compiler_wl_F77='-Qoption ld ';;
14793 *)
14794 lt_prog_compiler_wl_F77='-Wl,';;
14795 esac
14796 ;;
14797
14798 sunos4*)
14799 lt_prog_compiler_wl_F77='-Qoption ld '
14800 lt_prog_compiler_pic_F77='-PIC'
14801 lt_prog_compiler_static_F77='-Bstatic'
14802 ;;
14803
14804 sysv4 | sysv4.2uw2* | sysv4.3*)
14805 lt_prog_compiler_wl_F77='-Wl,'
14806 lt_prog_compiler_pic_F77='-KPIC'
14807 lt_prog_compiler_static_F77='-Bstatic'
14808 ;;
14809
14810 sysv4*MP*)
14811 if test -d /usr/nec ;then
14812 lt_prog_compiler_pic_F77='-Kconform_pic'
14813 lt_prog_compiler_static_F77='-Bstatic'
14814 fi
14815 ;;
14816
14817 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14818 lt_prog_compiler_wl_F77='-Wl,'
14819 lt_prog_compiler_pic_F77='-KPIC'
14820 lt_prog_compiler_static_F77='-Bstatic'
14821 ;;
14822
14823 unicos*)
14824 lt_prog_compiler_wl_F77='-Wl,'
14825 lt_prog_compiler_can_build_shared_F77=no
14826 ;;
14827
14828 uts4*)
14829 lt_prog_compiler_pic_F77='-pic'
14830 lt_prog_compiler_static_F77='-Bstatic'
14831 ;;
14832
14833 *)
14834 lt_prog_compiler_can_build_shared_F77=no
14835 ;;
14836 esac
14837 fi
14838
14839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14840 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14841
14842 #
14843 # Check to make sure the PIC flag actually works.
14844 #
14845 if test -n "$lt_prog_compiler_pic_F77"; then
14846
14847 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14849 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 lt_prog_compiler_pic_works_F77=no
14853 ac_outfile=conftest.$ac_objext
14854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14855 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14856 # Insert the option either (1) after the last *FLAGS variable, or
14857 # (2) before a word containing "conftest.", or (3) at the end.
14858 # Note that $ac_compile itself does not contain backslashes and begins
14859 # with a dollar sign (not a hyphen), so the echo should work correctly.
14860 # The option is referenced via a variable to avoid confusing sed.
14861 lt_compile=`echo "$ac_compile" | $SED \
14862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14864 -e 's:$: $lt_compiler_flag:'`
14865 (eval echo "\"\$as_me:14865: $lt_compile\"" >&5)
14866 (eval "$lt_compile" 2>conftest.err)
14867 ac_status=$?
14868 cat conftest.err >&5
14869 echo "$as_me:14869: \$? = $ac_status" >&5
14870 if (exit $ac_status) && test -s "$ac_outfile"; then
14871 # The compiler can only warn and ignore the option if not recognized
14872 # So say no if there are warnings other than the usual output.
14873 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14876 lt_prog_compiler_pic_works_F77=yes
14877 fi
14878 fi
14879 $rm conftest*
14880
14881 fi
14882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14883 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14884
14885 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14886 case $lt_prog_compiler_pic_F77 in
14887 "" | " "*) ;;
14888 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14889 esac
14890 else
14891 lt_prog_compiler_pic_F77=
14892 lt_prog_compiler_can_build_shared_F77=no
14893 fi
14894
14895 fi
14896 case $host_os in
14897 # For platforms which do not support PIC, -DPIC is meaningless:
14898 *djgpp*)
14899 lt_prog_compiler_pic_F77=
14900 ;;
14901 *)
14902 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14903 ;;
14904 esac
14905
14906 #
14907 # Check to make sure the static flag actually works.
14908 #
14909 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14910 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14912 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915 lt_prog_compiler_static_works_F77=no
14916 save_LDFLAGS="$LDFLAGS"
14917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14918 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14920 # The linker can only warn and ignore the option if not recognized
14921 # So say no if there are warnings
14922 if test -s conftest.err; then
14923 # Append any errors to the config.log.
14924 cat conftest.err 1>&5
14925 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14927 if diff conftest.exp conftest.er2 >/dev/null; then
14928 lt_prog_compiler_static_works_F77=yes
14929 fi
14930 else
14931 lt_prog_compiler_static_works_F77=yes
14932 fi
14933 fi
14934 $rm conftest*
14935 LDFLAGS="$save_LDFLAGS"
14936
14937 fi
14938 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14939 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14940
14941 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14942 :
14943 else
14944 lt_prog_compiler_static_F77=
14945 fi
14946
14947
14948 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14950 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953 lt_cv_prog_compiler_c_o_F77=no
14954 $rm -r conftest 2>/dev/null
14955 mkdir conftest
14956 cd conftest
14957 mkdir out
14958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14959
14960 lt_compiler_flag="-o out/conftest2.$ac_objext"
14961 # Insert the option either (1) after the last *FLAGS variable, or
14962 # (2) before a word containing "conftest.", or (3) at the end.
14963 # Note that $ac_compile itself does not contain backslashes and begins
14964 # with a dollar sign (not a hyphen), so the echo should work correctly.
14965 lt_compile=`echo "$ac_compile" | $SED \
14966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14968 -e 's:$: $lt_compiler_flag:'`
14969 (eval echo "\"\$as_me:14969: $lt_compile\"" >&5)
14970 (eval "$lt_compile" 2>out/conftest.err)
14971 ac_status=$?
14972 cat out/conftest.err >&5
14973 echo "$as_me:14973: \$? = $ac_status" >&5
14974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14975 then
14976 # The compiler can only warn and ignore the option if not recognized
14977 # So say no if there are warnings
14978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14981 lt_cv_prog_compiler_c_o_F77=yes
14982 fi
14983 fi
14984 chmod u+w . 2>&5
14985 $rm conftest*
14986 # SGI C++ compiler will create directory out/ii_files/ for
14987 # template instantiation
14988 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14989 $rm out/* && rmdir out
14990 cd ..
14991 rmdir conftest
14992 $rm conftest*
14993
14994 fi
14995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14997
14998
14999 hard_links="nottested"
15000 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15001 # do not overwrite the value of need_locks provided by the user
15002 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15004 hard_links=yes
15005 $rm conftest*
15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007 touch conftest.a
15008 ln conftest.a conftest.b 2>&5 || hard_links=no
15009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010 echo "$as_me:$LINENO: result: $hard_links" >&5
15011 echo "${ECHO_T}$hard_links" >&6
15012 if test "$hard_links" = no; then
15013 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15015 need_locks=warn
15016 fi
15017 else
15018 need_locks=no
15019 fi
15020
15021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15023
15024 runpath_var=
15025 allow_undefined_flag_F77=
15026 enable_shared_with_static_runtimes_F77=no
15027 archive_cmds_F77=
15028 archive_expsym_cmds_F77=
15029 old_archive_From_new_cmds_F77=
15030 old_archive_from_expsyms_cmds_F77=
15031 export_dynamic_flag_spec_F77=
15032 whole_archive_flag_spec_F77=
15033 thread_safe_flag_spec_F77=
15034 hardcode_libdir_flag_spec_F77=
15035 hardcode_libdir_flag_spec_ld_F77=
15036 hardcode_libdir_separator_F77=
15037 hardcode_direct_F77=no
15038 hardcode_minus_L_F77=no
15039 hardcode_shlibpath_var_F77=unsupported
15040 link_all_deplibs_F77=unknown
15041 hardcode_automatic_F77=no
15042 module_cmds_F77=
15043 module_expsym_cmds_F77=
15044 always_export_symbols_F77=no
15045 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15046 # include_expsyms should be a list of space-separated symbols to be *always*
15047 # included in the symbol list
15048 include_expsyms_F77=
15049 # exclude_expsyms can be an extended regexp of symbols to exclude
15050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15052 # as well as any symbol that contains `d'.
15053 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15055 # platforms (ab)use it in PIC code, but their linkers get confused if
15056 # the symbol is explicitly referenced. Since portable code cannot
15057 # rely on this symbol name, it's probably fine to never include it in
15058 # preloaded symbol tables.
15059 extract_expsyms_cmds=
15060 # Just being paranoid about ensuring that cc_basename is set.
15061 for cc_temp in $compiler""; do
15062 case $cc_temp in
15063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15065 \-*) ;;
15066 *) break;;
15067 esac
15068 done
15069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15070
15071 case $host_os in
15072 cygwin* | mingw* | pw32*)
15073 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15074 # When not using gcc, we currently assume that we are using
15075 # Microsoft Visual C++.
15076 if test "$GCC" != yes; then
15077 with_gnu_ld=no
15078 fi
15079 ;;
15080 interix*)
15081 # we just hope/assume this is gcc and not c89 (= MSVC++)
15082 with_gnu_ld=yes
15083 ;;
15084 openbsd*)
15085 with_gnu_ld=no
15086 ;;
15087 esac
15088
15089 ld_shlibs_F77=yes
15090 if test "$with_gnu_ld" = yes; then
15091 # If archive_cmds runs LD, not CC, wlarc should be empty
15092 wlarc='${wl}'
15093
15094 # Set some defaults for GNU ld with shared library support. These
15095 # are reset later if shared libraries are not supported. Putting them
15096 # here allows them to be overridden if necessary.
15097 runpath_var=LD_RUN_PATH
15098 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15099 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15100 # ancient GNU ld didn't support --whole-archive et. al.
15101 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15102 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15103 else
15104 whole_archive_flag_spec_F77=
15105 fi
15106 supports_anon_versioning=no
15107 case `$LD -v 2>/dev/null` in
15108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15111 *\ 2.11.*) ;; # other 2.11 versions
15112 *) supports_anon_versioning=yes ;;
15113 esac
15114
15115 # See if GNU ld supports shared libraries.
15116 case $host_os in
15117 aix3* | aix4* | aix5*)
15118 # On AIX/PPC, the GNU linker is very broken
15119 if test "$host_cpu" != ia64; then
15120 ld_shlibs_F77=no
15121 cat <<EOF 1>&2
15122
15123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15124 *** to be unable to reliably create shared libraries on AIX.
15125 *** Therefore, libtool is disabling shared libraries support. If you
15126 *** really care for shared libraries, you may want to modify your PATH
15127 *** so that a non-GNU linker is found, and then restart.
15128
15129 EOF
15130 fi
15131 ;;
15132
15133 amigaos*)
15134 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)'
15135 hardcode_libdir_flag_spec_F77='-L$libdir'
15136 hardcode_minus_L_F77=yes
15137
15138 # Samuel A. Falvo II <[email protected]> reports
15139 # that the semantics of dynamic libraries on AmigaOS, at least up
15140 # to version 4, is to share data among multiple programs linked
15141 # with the same dynamic library. Since this doesn't match the
15142 # behavior of shared libraries on other platforms, we can't use
15143 # them.
15144 ld_shlibs_F77=no
15145 ;;
15146
15147 beos*)
15148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15149 allow_undefined_flag_F77=unsupported
15150 # Joseph Beckenbach <[email protected]> says some releases of gcc
15151 # support --undefined. This deserves some investigation. FIXME
15152 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15153 else
15154 ld_shlibs_F77=no
15155 fi
15156 ;;
15157
15158 cygwin* | mingw* | pw32*)
15159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15160 # as there is no search path for DLLs.
15161 hardcode_libdir_flag_spec_F77='-L$libdir'
15162 allow_undefined_flag_F77=unsupported
15163 always_export_symbols_F77=no
15164 enable_shared_with_static_runtimes_F77=yes
15165 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15166
15167 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15168 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15169 # If the export-symbols file already is a .def file (1st line
15170 # is EXPORTS), use it as is; otherwise, prepend...
15171 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15172 cp $export_symbols $output_objdir/$soname.def;
15173 else
15174 echo EXPORTS > $output_objdir/$soname.def;
15175 cat $export_symbols >> $output_objdir/$soname.def;
15176 fi~
15177 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15178 else
15179 ld_shlibs_F77=no
15180 fi
15181 ;;
15182
15183 interix3*)
15184 hardcode_direct_F77=no
15185 hardcode_shlibpath_var_F77=no
15186 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15187 export_dynamic_flag_spec_F77='${wl}-E'
15188 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15189 # Instead, shared libraries are loaded at an image base (0x10000000 by
15190 # default) and relocated if they conflict, which is a slow very memory
15191 # consuming and fragmenting process. To avoid this, we pick a random,
15192 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15193 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15194 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'
15195 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'
15196 ;;
15197
15198 linux*)
15199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15200 tmp_addflag=
15201 case $cc_basename,$host_cpu in
15202 pgcc*) # Portland Group C compiler
15203 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'
15204 tmp_addflag=' $pic_flag'
15205 ;;
15206 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15207 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'
15208 tmp_addflag=' $pic_flag -Mnomain' ;;
15209 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15210 tmp_addflag=' -i_dynamic' ;;
15211 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15212 tmp_addflag=' -i_dynamic -nofor_main' ;;
15213 ifc* | ifort*) # Intel Fortran compiler
15214 tmp_addflag=' -nofor_main' ;;
15215 esac
15216 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15217
15218 if test $supports_anon_versioning = yes; then
15219 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15221 $echo "local: *; };" >> $output_objdir/$libname.ver~
15222 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15223 fi
15224 else
15225 ld_shlibs_F77=no
15226 fi
15227 ;;
15228
15229 netbsd*)
15230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15231 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15232 wlarc=
15233 else
15234 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15235 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15236 fi
15237 ;;
15238
15239 solaris*)
15240 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15241 ld_shlibs_F77=no
15242 cat <<EOF 1>&2
15243
15244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15245 *** create shared libraries on Solaris systems. Therefore, libtool
15246 *** is disabling shared libraries support. We urge you to upgrade GNU
15247 *** binutils to release 2.9.1 or newer. Another option is to modify
15248 *** your PATH or compiler configuration so that the native linker is
15249 *** used, and then restart.
15250
15251 EOF
15252 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15253 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15254 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15255 else
15256 ld_shlibs_F77=no
15257 fi
15258 ;;
15259
15260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15261 case `$LD -v 2>&1` in
15262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15263 ld_shlibs_F77=no
15264 cat <<_LT_EOF 1>&2
15265
15266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15267 *** reliably create shared libraries on SCO systems. Therefore, libtool
15268 *** is disabling shared libraries support. We urge you to upgrade GNU
15269 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15270 *** your PATH or compiler configuration so that the native linker is
15271 *** used, and then restart.
15272
15273 _LT_EOF
15274 ;;
15275 *)
15276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15277 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15279 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15280 else
15281 ld_shlibs_F77=no
15282 fi
15283 ;;
15284 esac
15285 ;;
15286
15287 sunos4*)
15288 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 wlarc=
15290 hardcode_direct_F77=yes
15291 hardcode_shlibpath_var_F77=no
15292 ;;
15293
15294 *)
15295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15298 else
15299 ld_shlibs_F77=no
15300 fi
15301 ;;
15302 esac
15303
15304 if test "$ld_shlibs_F77" = no; then
15305 runpath_var=
15306 hardcode_libdir_flag_spec_F77=
15307 export_dynamic_flag_spec_F77=
15308 whole_archive_flag_spec_F77=
15309 fi
15310 else
15311 # PORTME fill in a description of your system's linker (not GNU ld)
15312 case $host_os in
15313 aix3*)
15314 allow_undefined_flag_F77=unsupported
15315 always_export_symbols_F77=yes
15316 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'
15317 # Note: this linker hardcodes the directories in LIBPATH if there
15318 # are no directories specified by -L.
15319 hardcode_minus_L_F77=yes
15320 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15321 # Neither direct hardcoding nor static linking is supported with a
15322 # broken collect2.
15323 hardcode_direct_F77=unsupported
15324 fi
15325 ;;
15326
15327 aix4* | aix5*)
15328 if test "$host_cpu" = ia64; then
15329 # On IA64, the linker does run time linking by default, so we don't
15330 # have to do anything special.
15331 aix_use_runtimelinking=no
15332 exp_sym_flag='-Bexport'
15333 no_entry_flag=""
15334 else
15335 # If we're using GNU nm, then we don't want the "-C" option.
15336 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15337 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15338 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'
15339 else
15340 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'
15341 fi
15342 aix_use_runtimelinking=no
15343
15344 # Test if we are trying to use run time linking or normal
15345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15346 # need to do runtime linking.
15347 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15348 for ld_flag in $LDFLAGS; do
15349 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15350 aix_use_runtimelinking=yes
15351 break
15352 fi
15353 done
15354 ;;
15355 esac
15356
15357 exp_sym_flag='-bexport'
15358 no_entry_flag='-bnoentry'
15359 fi
15360
15361 # When large executables or shared objects are built, AIX ld can
15362 # have problems creating the table of contents. If linking a library
15363 # or program results in "error TOC overflow" add -mminimal-toc to
15364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15366
15367 archive_cmds_F77=''
15368 hardcode_direct_F77=yes
15369 hardcode_libdir_separator_F77=':'
15370 link_all_deplibs_F77=yes
15371
15372 if test "$GCC" = yes; then
15373 case $host_os in aix4.[012]|aix4.[012].*)
15374 # We only want to do this on AIX 4.2 and lower, the check
15375 # below for broken collect2 doesn't work under 4.3+
15376 collect2name=`${CC} -print-prog-name=collect2`
15377 if test -f "$collect2name" && \
15378 strings "$collect2name" | grep resolve_lib_name >/dev/null
15379 then
15380 # We have reworked collect2
15381 hardcode_direct_F77=yes
15382 else
15383 # We have old collect2
15384 hardcode_direct_F77=unsupported
15385 # It fails to find uninstalled libraries when the uninstalled
15386 # path is not listed in the libpath. Setting hardcode_minus_L
15387 # to unsupported forces relinking
15388 hardcode_minus_L_F77=yes
15389 hardcode_libdir_flag_spec_F77='-L$libdir'
15390 hardcode_libdir_separator_F77=
15391 fi
15392 ;;
15393 esac
15394 shared_flag='-shared'
15395 if test "$aix_use_runtimelinking" = yes; then
15396 shared_flag="$shared_flag "'${wl}-G'
15397 fi
15398 else
15399 # not using gcc
15400 if test "$host_cpu" = ia64; then
15401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15402 # chokes on -Wl,-G. The following line is correct:
15403 shared_flag='-G'
15404 else
15405 if test "$aix_use_runtimelinking" = yes; then
15406 shared_flag='${wl}-G'
15407 else
15408 shared_flag='${wl}-bM:SRE'
15409 fi
15410 fi
15411 fi
15412
15413 # It seems that -bexpall does not export symbols beginning with
15414 # underscore (_), so it is better to generate a list of symbols to export.
15415 always_export_symbols_F77=yes
15416 if test "$aix_use_runtimelinking" = yes; then
15417 # Warning - without using the other runtime loading flags (-brtl),
15418 # -berok will link without error, but may produce a broken library.
15419 allow_undefined_flag_F77='-berok'
15420 # Determine the default libpath from the value encoded in an empty executable.
15421 cat >conftest.$ac_ext <<_ACEOF
15422 program main
15423
15424 end
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -z "$ac_f77_werror_flag"
15436 || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448
15449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15450 }'`
15451 # Check for a 64-bit object if we didn't find anything.
15452 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; }
15453 }'`; fi
15454 else
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 fi
15459 rm -f conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15464 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"
15465 else
15466 if test "$host_cpu" = ia64; then
15467 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15468 allow_undefined_flag_F77="-z nodefs"
15469 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"
15470 else
15471 # Determine the default libpath from the value encoded in an empty executable.
15472 cat >conftest.$ac_ext <<_ACEOF
15473 program main
15474
15475 end
15476 _ACEOF
15477 rm -f conftest.$ac_objext conftest$ac_exeext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15479 (eval $ac_link) 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_f77_werror_flag"
15487 || test ! -s conftest.err'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest$ac_exeext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499
15500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15501 }'`
15502 # Check for a 64-bit object if we didn't find anything.
15503 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; }
15504 }'`; fi
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509 fi
15510 rm -f conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15512 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15513
15514 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15515 # Warning - without using the other run time loading flags,
15516 # -berok will link without error, but may produce a broken library.
15517 no_undefined_flag_F77=' ${wl}-bernotok'
15518 allow_undefined_flag_F77=' ${wl}-berok'
15519 # Exported symbols can be pulled into shared objects from archives
15520 whole_archive_flag_spec_F77='$convenience'
15521 archive_cmds_need_lc_F77=yes
15522 # This is similar to how AIX traditionally builds its shared libraries.
15523 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'
15524 fi
15525 fi
15526 ;;
15527
15528 amigaos*)
15529 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)'
15530 hardcode_libdir_flag_spec_F77='-L$libdir'
15531 hardcode_minus_L_F77=yes
15532 # see comment about different semantics on the GNU ld section
15533 ld_shlibs_F77=no
15534 ;;
15535
15536 bsdi[45]*)
15537 export_dynamic_flag_spec_F77=-rdynamic
15538 ;;
15539
15540 cygwin* | mingw* | pw32*)
15541 # When not using gcc, we currently assume that we are using
15542 # Microsoft Visual C++.
15543 # hardcode_libdir_flag_spec is actually meaningless, as there is
15544 # no search path for DLLs.
15545 hardcode_libdir_flag_spec_F77=' '
15546 allow_undefined_flag_F77=unsupported
15547 # Tell ltmain to make .lib files, not .a files.
15548 libext=lib
15549 # Tell ltmain to make .dll files, not .so files.
15550 shrext_cmds=".dll"
15551 # FIXME: Setting linknames here is a bad hack.
15552 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15553 # The linker will automatically build a .lib file if we build a DLL.
15554 old_archive_From_new_cmds_F77='true'
15555 # FIXME: Should let the user specify the lib program.
15556 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15557 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15558 enable_shared_with_static_runtimes_F77=yes
15559 ;;
15560
15561 darwin* | rhapsody*)
15562 case $host_os in
15563 rhapsody* | darwin1.[012])
15564 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15565 ;;
15566 *) # Darwin 1.3 on
15567 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15568 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15569 else
15570 case ${MACOSX_DEPLOYMENT_TARGET} in
15571 10.[012])
15572 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15573 ;;
15574 10.*)
15575 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15576 ;;
15577 esac
15578 fi
15579 ;;
15580 esac
15581 archive_cmds_need_lc_F77=no
15582 hardcode_direct_F77=no
15583 hardcode_automatic_F77=yes
15584 hardcode_shlibpath_var_F77=unsupported
15585 whole_archive_flag_spec_F77=''
15586 link_all_deplibs_F77=yes
15587 if test "$GCC" = yes ; then
15588 output_verbose_link_cmd='echo'
15589 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15590 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15592 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}'
15593 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}'
15594 else
15595 case $cc_basename in
15596 xlc*)
15597 output_verbose_link_cmd='echo'
15598 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15599 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15601 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}'
15602 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}'
15603 ;;
15604 *)
15605 ld_shlibs_F77=no
15606 ;;
15607 esac
15608 fi
15609 ;;
15610
15611 dgux*)
15612 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15613 hardcode_libdir_flag_spec_F77='-L$libdir'
15614 hardcode_shlibpath_var_F77=no
15615 ;;
15616
15617 freebsd1*)
15618 ld_shlibs_F77=no
15619 ;;
15620
15621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15622 # support. Future versions do this automatically, but an explicit c++rt0.o
15623 # does not break anything, and helps significantly (at the cost of a little
15624 # extra space).
15625 freebsd2.2*)
15626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15627 hardcode_libdir_flag_spec_F77='-R$libdir'
15628 hardcode_direct_F77=yes
15629 hardcode_shlibpath_var_F77=no
15630 ;;
15631
15632 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15633 freebsd2*)
15634 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_direct_F77=yes
15636 hardcode_minus_L_F77=yes
15637 hardcode_shlibpath_var_F77=no
15638 ;;
15639
15640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15641 freebsd* | kfreebsd*-gnu | dragonfly*)
15642 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15643 hardcode_libdir_flag_spec_F77='-R$libdir'
15644 hardcode_direct_F77=yes
15645 hardcode_shlibpath_var_F77=no
15646 ;;
15647
15648 hpux9*)
15649 if test "$GCC" = yes; then
15650 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'
15651 else
15652 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'
15653 fi
15654 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15655 hardcode_libdir_separator_F77=:
15656 hardcode_direct_F77=yes
15657
15658 # hardcode_minus_L: Not really in the search PATH,
15659 # but as the default location of the library.
15660 hardcode_minus_L_F77=yes
15661 export_dynamic_flag_spec_F77='${wl}-E'
15662 ;;
15663
15664 hpux10*)
15665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15666 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15667 else
15668 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15669 fi
15670 if test "$with_gnu_ld" = no; then
15671 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15672 hardcode_libdir_separator_F77=:
15673
15674 hardcode_direct_F77=yes
15675 export_dynamic_flag_spec_F77='${wl}-E'
15676
15677 # hardcode_minus_L: Not really in the search PATH,
15678 # but as the default location of the library.
15679 hardcode_minus_L_F77=yes
15680 fi
15681 ;;
15682
15683 hpux11*)
15684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15685 case $host_cpu in
15686 hppa*64*)
15687 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15688 ;;
15689 ia64*)
15690 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15691 ;;
15692 *)
15693 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15694 ;;
15695 esac
15696 else
15697 case $host_cpu in
15698 hppa*64*)
15699 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15700 ;;
15701 ia64*)
15702 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15703 ;;
15704 *)
15705 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15706 ;;
15707 esac
15708 fi
15709 if test "$with_gnu_ld" = no; then
15710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15711 hardcode_libdir_separator_F77=:
15712
15713 case $host_cpu in
15714 hppa*64*|ia64*)
15715 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15716 hardcode_direct_F77=no
15717 hardcode_shlibpath_var_F77=no
15718 ;;
15719 *)
15720 hardcode_direct_F77=yes
15721 export_dynamic_flag_spec_F77='${wl}-E'
15722
15723 # hardcode_minus_L: Not really in the search PATH,
15724 # but as the default location of the library.
15725 hardcode_minus_L_F77=yes
15726 ;;
15727 esac
15728 fi
15729 ;;
15730
15731 irix5* | irix6* | nonstopux*)
15732 if test "$GCC" = yes; then
15733 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'
15734 else
15735 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'
15736 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15737 fi
15738 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15739 hardcode_libdir_separator_F77=:
15740 link_all_deplibs_F77=yes
15741 ;;
15742
15743 netbsd*)
15744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15745 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15746 else
15747 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15748 fi
15749 hardcode_libdir_flag_spec_F77='-R$libdir'
15750 hardcode_direct_F77=yes
15751 hardcode_shlibpath_var_F77=no
15752 ;;
15753
15754 newsos6)
15755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_direct_F77=yes
15757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator_F77=:
15759 hardcode_shlibpath_var_F77=no
15760 ;;
15761
15762 openbsd*)
15763 hardcode_direct_F77=yes
15764 hardcode_shlibpath_var_F77=no
15765 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15766 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15767 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15768 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15769 export_dynamic_flag_spec_F77='${wl}-E'
15770 else
15771 case $host_os in
15772 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15773 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_libdir_flag_spec_F77='-R$libdir'
15775 ;;
15776 *)
15777 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15778 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15779 ;;
15780 esac
15781 fi
15782 ;;
15783
15784 os2*)
15785 hardcode_libdir_flag_spec_F77='-L$libdir'
15786 hardcode_minus_L_F77=yes
15787 allow_undefined_flag_F77=unsupported
15788 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'
15789 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15790 ;;
15791
15792 osf3*)
15793 if test "$GCC" = yes; then
15794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15795 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'
15796 else
15797 allow_undefined_flag_F77=' -expect_unresolved \*'
15798 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'
15799 fi
15800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15801 hardcode_libdir_separator_F77=:
15802 ;;
15803
15804 osf4* | osf5*) # as osf3* with the addition of -msym flag
15805 if test "$GCC" = yes; then
15806 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15807 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'
15808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15809 else
15810 allow_undefined_flag_F77=' -expect_unresolved \*'
15811 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'
15812 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~
15813 $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'
15814
15815 # Both c and cxx compiler support -rpath directly
15816 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15817 fi
15818 hardcode_libdir_separator_F77=:
15819 ;;
15820
15821 solaris*)
15822 no_undefined_flag_F77=' -z text'
15823 if test "$GCC" = yes; then
15824 wlarc='${wl}'
15825 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15827 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15828 else
15829 wlarc=''
15830 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15833 fi
15834 hardcode_libdir_flag_spec_F77='-R$libdir'
15835 hardcode_shlibpath_var_F77=no
15836 case $host_os in
15837 solaris2.[0-5] | solaris2.[0-5].*) ;;
15838 *)
15839 # The compiler driver will combine linker options so we
15840 # cannot just pass the convience library names through
15841 # without $wl, iff we do not link with $LD.
15842 # Luckily, gcc supports the same syntax we need for Sun Studio.
15843 # Supported since Solaris 2.6 (maybe 2.5.1?)
15844 case $wlarc in
15845 '')
15846 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15847 *)
15848 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' ;;
15849 esac ;;
15850 esac
15851 link_all_deplibs_F77=yes
15852 ;;
15853
15854 sunos4*)
15855 if test "x$host_vendor" = xsequent; then
15856 # Use $CC to link under sequent, because it throws in some extra .o
15857 # files that make .init and .fini sections work.
15858 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15859 else
15860 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15861 fi
15862 hardcode_libdir_flag_spec_F77='-L$libdir'
15863 hardcode_direct_F77=yes
15864 hardcode_minus_L_F77=yes
15865 hardcode_shlibpath_var_F77=no
15866 ;;
15867
15868 sysv4)
15869 case $host_vendor in
15870 sni)
15871 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15872 hardcode_direct_F77=yes # is this really true???
15873 ;;
15874 siemens)
15875 ## LD is ld it makes a PLAMLIB
15876 ## CC just makes a GrossModule.
15877 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15878 reload_cmds_F77='$CC -r -o $output$reload_objs'
15879 hardcode_direct_F77=no
15880 ;;
15881 motorola)
15882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15883 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15884 ;;
15885 esac
15886 runpath_var='LD_RUN_PATH'
15887 hardcode_shlibpath_var_F77=no
15888 ;;
15889
15890 sysv4.3*)
15891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15892 hardcode_shlibpath_var_F77=no
15893 export_dynamic_flag_spec_F77='-Bexport'
15894 ;;
15895
15896 sysv4*MP*)
15897 if test -d /usr/nec; then
15898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_shlibpath_var_F77=no
15900 runpath_var=LD_RUN_PATH
15901 hardcode_runpath_var=yes
15902 ld_shlibs_F77=yes
15903 fi
15904 ;;
15905
15906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15907 no_undefined_flag_F77='${wl}-z,text'
15908 archive_cmds_need_lc_F77=no
15909 hardcode_shlibpath_var_F77=no
15910 runpath_var='LD_RUN_PATH'
15911
15912 if test "$GCC" = yes; then
15913 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15914 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15915 else
15916 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15918 fi
15919 ;;
15920
15921 sysv5* | sco3.2v5* | sco5v6*)
15922 # Note: We can NOT use -z defs as we might desire, because we do not
15923 # link with -lc, and that would cause any symbols used from libc to
15924 # always be unresolved, which means just about no library would
15925 # ever link correctly. If we're not using GNU ld we use -z text
15926 # though, which does catch some bad symbols but isn't as heavy-handed
15927 # as -z defs.
15928 no_undefined_flag_F77='${wl}-z,text'
15929 allow_undefined_flag_F77='${wl}-z,nodefs'
15930 archive_cmds_need_lc_F77=no
15931 hardcode_shlibpath_var_F77=no
15932 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15933 hardcode_libdir_separator_F77=':'
15934 link_all_deplibs_F77=yes
15935 export_dynamic_flag_spec_F77='${wl}-Bexport'
15936 runpath_var='LD_RUN_PATH'
15937
15938 if test "$GCC" = yes; then
15939 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 else
15942 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15943 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15944 fi
15945 ;;
15946
15947 uts4*)
15948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15949 hardcode_libdir_flag_spec_F77='-L$libdir'
15950 hardcode_shlibpath_var_F77=no
15951 ;;
15952
15953 *)
15954 ld_shlibs_F77=no
15955 ;;
15956 esac
15957 fi
15958
15959 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15960 echo "${ECHO_T}$ld_shlibs_F77" >&6
15961 test "$ld_shlibs_F77" = no && can_build_shared=no
15962
15963 #
15964 # Do we need to explicitly link libc?
15965 #
15966 case "x$archive_cmds_need_lc_F77" in
15967 x|xyes)
15968 # Assume -lc should be added
15969 archive_cmds_need_lc_F77=yes
15970
15971 if test "$enable_shared" = yes && test "$GCC" = yes; then
15972 case $archive_cmds_F77 in
15973 *'~'*)
15974 # FIXME: we may have to deal with multi-command sequences.
15975 ;;
15976 '$CC '*)
15977 # Test whether the compiler implicitly links with -lc since on some
15978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15979 # to ld, don't add -lc before -lgcc.
15980 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15982 $rm conftest*
15983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15984
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } 2>conftest.err; then
15990 soname=conftest
15991 lib=conftest
15992 libobjs=conftest.$ac_objext
15993 deplibs=
15994 wl=$lt_prog_compiler_wl_F77
15995 pic_flag=$lt_prog_compiler_pic_F77
15996 compiler_flags=-v
15997 linker_flags=-v
15998 verstring=
15999 output_objdir=.
16000 libname=conftest
16001 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16002 allow_undefined_flag_F77=
16003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16004 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }
16008 then
16009 archive_cmds_need_lc_F77=no
16010 else
16011 archive_cmds_need_lc_F77=yes
16012 fi
16013 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16014 else
16015 cat conftest.err 1>&5
16016 fi
16017 $rm conftest*
16018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16019 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16020 ;;
16021 esac
16022 fi
16023 ;;
16024 esac
16025
16026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16028 library_names_spec=
16029 libname_spec='lib$name'
16030 soname_spec=
16031 shrext_cmds=".so"
16032 postinstall_cmds=
16033 postuninstall_cmds=
16034 finish_cmds=
16035 finish_eval=
16036 shlibpath_var=
16037 shlibpath_overrides_runpath=unknown
16038 version_type=none
16039 dynamic_linker="$host_os ld.so"
16040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16041 if test "$GCC" = yes; then
16042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16044 # if the path contains ";" then we assume it to be the separator
16045 # otherwise default to the standard path separator (i.e. ":") - it is
16046 # assumed that no part of a normal pathname contains ";" but that should
16047 # okay in the real world where ";" in dirpaths is itself problematic.
16048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16049 else
16050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16051 fi
16052 else
16053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16054 fi
16055 need_lib_prefix=unknown
16056 hardcode_into_libs=no
16057
16058 # when you set need_version to no, make sure it does not cause -set_version
16059 # flags to be left without arguments
16060 need_version=unknown
16061
16062 case $host_os in
16063 aix3*)
16064 version_type=linux
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16066 shlibpath_var=LIBPATH
16067
16068 # AIX 3 has no versioning support, so we append a major version to the name.
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 ;;
16071
16072 aix4* | aix5*)
16073 version_type=linux
16074 need_lib_prefix=no
16075 need_version=no
16076 hardcode_into_libs=yes
16077 if test "$host_cpu" = ia64; then
16078 # AIX 5 supports IA64
16079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 else
16082 # With GCC up to 2.95.x, collect2 would create an import file
16083 # for dependence libraries. The import file would start with
16084 # the line `#! .'. This would cause the generated library to
16085 # depend on `.', always an invalid library. This was fixed in
16086 # development snapshots of GCC prior to 3.0.
16087 case $host_os in
16088 aix4 | aix4.[01] | aix4.[01].*)
16089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16090 echo ' yes '
16091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16092 :
16093 else
16094 can_build_shared=no
16095 fi
16096 ;;
16097 esac
16098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16099 # soname into executable. Probably we can add versioning support to
16100 # collect2, so additional links can be useful in future.
16101 if test "$aix_use_runtimelinking" = yes; then
16102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16103 # instead of lib<name>.a to let people know that these are not
16104 # typical AIX shared libraries.
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 else
16107 # We preserve .a as extension for shared libraries through AIX4.2
16108 # and later when we are not doing run time linking.
16109 library_names_spec='${libname}${release}.a $libname.a'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 fi
16112 shlibpath_var=LIBPATH
16113 fi
16114 ;;
16115
16116 amigaos*)
16117 library_names_spec='$libname.ixlibrary $libname.a'
16118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16119 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'
16120 ;;
16121
16122 beos*)
16123 library_names_spec='${libname}${shared_ext}'
16124 dynamic_linker="$host_os ld.so"
16125 shlibpath_var=LIBRARY_PATH
16126 ;;
16127
16128 bsdi[45]*)
16129 version_type=linux
16130 need_version=no
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16134 shlibpath_var=LD_LIBRARY_PATH
16135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16137 # the default ld.so.conf also contains /usr/contrib/lib and
16138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16139 # libtool to hard-code these into programs
16140 ;;
16141
16142 cygwin* | mingw* | pw32*)
16143 version_type=windows
16144 shrext_cmds=".dll"
16145 need_version=no
16146 need_lib_prefix=no
16147
16148 case $GCC,$host_os in
16149 yes,cygwin* | yes,mingw* | yes,pw32*)
16150 library_names_spec='$libname.dll.a'
16151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16152 postinstall_cmds='base_file=`basename \${file}`~
16153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16154 dldir=$destdir/`dirname \$dlpath`~
16155 test -d \$dldir || mkdir -p \$dldir~
16156 $install_prog $dir/$dlname \$dldir/$dlname~
16157 chmod a+x \$dldir/$dlname'
16158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16159 dlpath=$dir/\$dldll~
16160 $rm \$dlpath'
16161 shlibpath_overrides_runpath=yes
16162
16163 case $host_os in
16164 cygwin*)
16165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16167 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16168 ;;
16169 mingw*)
16170 # MinGW DLLs use traditional 'lib' prefix
16171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16173 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16174 # It is most probably a Windows format PATH printed by
16175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16176 # path with ; separators, and with drive letters. We can handle the
16177 # drive letters (cygwin fileutils understands them), so leave them,
16178 # especially as we might pass files found there to a mingw objdump,
16179 # which wouldn't understand a cygwinified path. Ahh.
16180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16181 else
16182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16183 fi
16184 ;;
16185 pw32*)
16186 # pw32 DLLs use 'pw' prefix rather than 'lib'
16187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16188 ;;
16189 esac
16190 ;;
16191
16192 *)
16193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16194 ;;
16195 esac
16196 dynamic_linker='Win32 ld.exe'
16197 # FIXME: first we should search . and the directory the executable is in
16198 shlibpath_var=PATH
16199 ;;
16200
16201 darwin* | rhapsody*)
16202 dynamic_linker="$host_os dyld"
16203 version_type=darwin
16204 need_lib_prefix=no
16205 need_version=no
16206 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16207 soname_spec='${libname}${release}${major}$shared_ext'
16208 shlibpath_overrides_runpath=yes
16209 shlibpath_var=DYLD_LIBRARY_PATH
16210 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16212 if test "$GCC" = yes; then
16213 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"`
16214 else
16215 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16216 fi
16217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16218 ;;
16219
16220 dgux*)
16221 version_type=linux
16222 need_lib_prefix=no
16223 need_version=no
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 ;;
16228
16229 freebsd1*)
16230 dynamic_linker=no
16231 ;;
16232
16233 kfreebsd*-gnu)
16234 version_type=linux
16235 need_lib_prefix=no
16236 need_version=no
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=no
16241 hardcode_into_libs=yes
16242 dynamic_linker='GNU ld.so'
16243 ;;
16244
16245 freebsd* | dragonfly*)
16246 # DragonFly does not have aout. When/if they implement a new
16247 # versioning mechanism, adjust this.
16248 if test -x /usr/bin/objformat; then
16249 objformat=`/usr/bin/objformat`
16250 else
16251 case $host_os in
16252 freebsd[123]*) objformat=aout ;;
16253 *) objformat=elf ;;
16254 esac
16255 fi
16256 version_type=freebsd-$objformat
16257 case $version_type in
16258 freebsd-elf*)
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16260 need_version=no
16261 need_lib_prefix=no
16262 ;;
16263 freebsd-*)
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16265 need_version=yes
16266 ;;
16267 esac
16268 shlibpath_var=LD_LIBRARY_PATH
16269 case $host_os in
16270 freebsd2*)
16271 shlibpath_overrides_runpath=yes
16272 ;;
16273 freebsd3.[01]* | freebsdelf3.[01]*)
16274 shlibpath_overrides_runpath=yes
16275 hardcode_into_libs=yes
16276 ;;
16277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16279 shlibpath_overrides_runpath=no
16280 hardcode_into_libs=yes
16281 ;;
16282 freebsd*) # from 4.6 on
16283 shlibpath_overrides_runpath=yes
16284 hardcode_into_libs=yes
16285 ;;
16286 esac
16287 ;;
16288
16289 gnu*)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 hardcode_into_libs=yes
16297 ;;
16298
16299 hpux9* | hpux10* | hpux11*)
16300 # Give a soname corresponding to the major version so that dld.sl refuses to
16301 # link against other versions.
16302 version_type=sunos
16303 need_lib_prefix=no
16304 need_version=no
16305 case $host_cpu in
16306 ia64*)
16307 shrext_cmds='.so'
16308 hardcode_into_libs=yes
16309 dynamic_linker="$host_os dld.so"
16310 shlibpath_var=LD_LIBRARY_PATH
16311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 if test "X$HPUX_IA64_MODE" = X32; then
16315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16316 else
16317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16318 fi
16319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16320 ;;
16321 hppa*64*)
16322 shrext_cmds='.sl'
16323 hardcode_into_libs=yes
16324 dynamic_linker="$host_os dld.sl"
16325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16331 ;;
16332 *)
16333 shrext_cmds='.sl'
16334 dynamic_linker="$host_os dld.sl"
16335 shlibpath_var=SHLIB_PATH
16336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 ;;
16340 esac
16341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16342 postinstall_cmds='chmod 555 $lib'
16343 ;;
16344
16345 interix3*)
16346 version_type=linux
16347 need_lib_prefix=no
16348 need_version=no
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=no
16354 hardcode_into_libs=yes
16355 ;;
16356
16357 irix5* | irix6* | nonstopux*)
16358 case $host_os in
16359 nonstopux*) version_type=nonstopux ;;
16360 *)
16361 if test "$lt_cv_prog_gnu_ld" = yes; then
16362 version_type=linux
16363 else
16364 version_type=irix
16365 fi ;;
16366 esac
16367 need_lib_prefix=no
16368 need_version=no
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16371 case $host_os in
16372 irix5* | nonstopux*)
16373 libsuff= shlibsuff=
16374 ;;
16375 *)
16376 case $LD in # libtool.m4 will add one of these switches to LD
16377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16378 libsuff= shlibsuff= libmagic=32-bit;;
16379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16380 libsuff=32 shlibsuff=N32 libmagic=N32;;
16381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16383 *) libsuff= shlibsuff= libmagic=never-match;;
16384 esac
16385 ;;
16386 esac
16387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16388 shlibpath_overrides_runpath=no
16389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16391 hardcode_into_libs=yes
16392 ;;
16393
16394 # No shared lib support for Linux oldld, aout, or coff.
16395 linux*oldld* | linux*aout* | linux*coff*)
16396 dynamic_linker=no
16397 ;;
16398
16399 # This must be Linux ELF.
16400 linux*)
16401 version_type=linux
16402 need_lib_prefix=no
16403 need_version=no
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=no
16409 # This implies no fast_install, which is unacceptable.
16410 # Some rework will be needed to allow for fast_install
16411 # before this can be enabled.
16412 hardcode_into_libs=yes
16413
16414 # Append ld.so.conf contents to the search path
16415 if test -f /etc/ld.so.conf; then
16416 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' ' '`
16417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16418 fi
16419
16420 # We used to test for /lib/ld.so.1 and disable shared libraries on
16421 # powerpc, because MkLinux only supported shared libraries with the
16422 # GNU dynamic linker. Since this was broken with cross compilers,
16423 # most powerpc-linux boxes support dynamic linking these days and
16424 # people can always --disable-shared, the test was removed, and we
16425 # assume the GNU/Linux dynamic linker is in use.
16426 dynamic_linker='GNU/Linux ld.so'
16427 ;;
16428
16429 knetbsd*-gnu)
16430 version_type=linux
16431 need_lib_prefix=no
16432 need_version=no
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=no
16437 hardcode_into_libs=yes
16438 dynamic_linker='GNU ld.so'
16439 ;;
16440
16441 netbsd*)
16442 version_type=sunos
16443 need_lib_prefix=no
16444 need_version=no
16445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16448 dynamic_linker='NetBSD (a.out) ld.so'
16449 else
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 dynamic_linker='NetBSD ld.elf_so'
16453 fi
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=yes
16456 hardcode_into_libs=yes
16457 ;;
16458
16459 newsos6)
16460 version_type=linux
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16464 ;;
16465
16466 nto-qnx*)
16467 version_type=linux
16468 need_lib_prefix=no
16469 need_version=no
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=yes
16474 ;;
16475
16476 openbsd*)
16477 version_type=sunos
16478 sys_lib_dlsearch_path_spec="/usr/lib"
16479 need_lib_prefix=no
16480 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16481 case $host_os in
16482 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16483 *) need_version=no ;;
16484 esac
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16489 case $host_os in
16490 openbsd2.[89] | openbsd2.[89].*)
16491 shlibpath_overrides_runpath=no
16492 ;;
16493 *)
16494 shlibpath_overrides_runpath=yes
16495 ;;
16496 esac
16497 else
16498 shlibpath_overrides_runpath=yes
16499 fi
16500 ;;
16501
16502 os2*)
16503 libname_spec='$name'
16504 shrext_cmds=".dll"
16505 need_lib_prefix=no
16506 library_names_spec='$libname${shared_ext} $libname.a'
16507 dynamic_linker='OS/2 ld.exe'
16508 shlibpath_var=LIBPATH
16509 ;;
16510
16511 osf3* | osf4* | osf5*)
16512 version_type=osf
16513 need_lib_prefix=no
16514 need_version=no
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16520 ;;
16521
16522 solaris*)
16523 version_type=linux
16524 need_lib_prefix=no
16525 need_version=no
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes
16530 hardcode_into_libs=yes
16531 # ldd complains unless libraries are executable
16532 postinstall_cmds='chmod +x $lib'
16533 ;;
16534
16535 sunos4*)
16536 version_type=sunos
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=yes
16541 if test "$with_gnu_ld" = yes; then
16542 need_lib_prefix=no
16543 fi
16544 need_version=yes
16545 ;;
16546
16547 sysv4 | sysv4.3*)
16548 version_type=linux
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 case $host_vendor in
16553 sni)
16554 shlibpath_overrides_runpath=no
16555 need_lib_prefix=no
16556 export_dynamic_flag_spec='${wl}-Blargedynsym'
16557 runpath_var=LD_RUN_PATH
16558 ;;
16559 siemens)
16560 need_lib_prefix=no
16561 ;;
16562 motorola)
16563 need_lib_prefix=no
16564 need_version=no
16565 shlibpath_overrides_runpath=no
16566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16567 ;;
16568 esac
16569 ;;
16570
16571 sysv4*MP*)
16572 if test -d /usr/nec ;then
16573 version_type=linux
16574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16575 soname_spec='$libname${shared_ext}.$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 fi
16578 ;;
16579
16580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16581 version_type=freebsd-elf
16582 need_lib_prefix=no
16583 need_version=no
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 hardcode_into_libs=yes
16588 if test "$with_gnu_ld" = yes; then
16589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16590 shlibpath_overrides_runpath=no
16591 else
16592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16593 shlibpath_overrides_runpath=yes
16594 case $host_os in
16595 sco3.2v5*)
16596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16597 ;;
16598 esac
16599 fi
16600 sys_lib_dlsearch_path_spec='/usr/lib'
16601 ;;
16602
16603 uts4*)
16604 version_type=linux
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 ;;
16609
16610 *)
16611 dynamic_linker=no
16612 ;;
16613 esac
16614 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16615 echo "${ECHO_T}$dynamic_linker" >&6
16616 test "$dynamic_linker" = no && can_build_shared=no
16617
16618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16619 if test "$GCC" = yes; then
16620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16621 fi
16622
16623 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16624 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16625 hardcode_action_F77=
16626 if test -n "$hardcode_libdir_flag_spec_F77" || \
16627 test -n "$runpath_var_F77" || \
16628 test "X$hardcode_automatic_F77" = "Xyes" ; then
16629
16630 # We can hardcode non-existant directories.
16631 if test "$hardcode_direct_F77" != no &&
16632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16633 # have to relink, otherwise we might link with an installed library
16634 # when we should be linking with a yet-to-be-installed one
16635 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16636 test "$hardcode_minus_L_F77" != no; then
16637 # Linking always hardcodes the temporary library directory.
16638 hardcode_action_F77=relink
16639 else
16640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16641 hardcode_action_F77=immediate
16642 fi
16643 else
16644 # We cannot hardcode anything, or else we can only hardcode existing
16645 # directories.
16646 hardcode_action_F77=unsupported
16647 fi
16648 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16649 echo "${ECHO_T}$hardcode_action_F77" >&6
16650
16651 if test "$hardcode_action_F77" = relink; then
16652 # Fast installation is not supported
16653 enable_fast_install=no
16654 elif test "$shlibpath_overrides_runpath" = yes ||
16655 test "$enable_shared" = no; then
16656 # Fast installation is not necessary
16657 enable_fast_install=needless
16658 fi
16659
16660
16661 # The else clause should only fire when bootstrapping the
16662 # libtool distribution, otherwise you forgot to ship ltmain.sh
16663 # with your package, and you will get complaints that there are
16664 # no rules to generate ltmain.sh.
16665 if test -f "$ltmain"; then
16666 # See if we are running on zsh, and set the options which allow our commands through
16667 # without removal of \ escapes.
16668 if test -n "${ZSH_VERSION+set}" ; then
16669 setopt NO_GLOB_SUBST
16670 fi
16671 # Now quote all the things that may contain metacharacters while being
16672 # careful not to overquote the AC_SUBSTed values. We take copies of the
16673 # variables and quote the copies for generation of the libtool script.
16674 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16675 SED SHELL STRIP \
16676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16678 deplibs_check_method reload_flag reload_cmds need_locks \
16679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16680 lt_cv_sys_global_symbol_to_c_name_address \
16681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16682 old_postinstall_cmds old_postuninstall_cmds \
16683 compiler_F77 \
16684 CC_F77 \
16685 LD_F77 \
16686 lt_prog_compiler_wl_F77 \
16687 lt_prog_compiler_pic_F77 \
16688 lt_prog_compiler_static_F77 \
16689 lt_prog_compiler_no_builtin_flag_F77 \
16690 export_dynamic_flag_spec_F77 \
16691 thread_safe_flag_spec_F77 \
16692 whole_archive_flag_spec_F77 \
16693 enable_shared_with_static_runtimes_F77 \
16694 old_archive_cmds_F77 \
16695 old_archive_from_new_cmds_F77 \
16696 predep_objects_F77 \
16697 postdep_objects_F77 \
16698 predeps_F77 \
16699 postdeps_F77 \
16700 compiler_lib_search_path_F77 \
16701 archive_cmds_F77 \
16702 archive_expsym_cmds_F77 \
16703 postinstall_cmds_F77 \
16704 postuninstall_cmds_F77 \
16705 old_archive_from_expsyms_cmds_F77 \
16706 allow_undefined_flag_F77 \
16707 no_undefined_flag_F77 \
16708 export_symbols_cmds_F77 \
16709 hardcode_libdir_flag_spec_F77 \
16710 hardcode_libdir_flag_spec_ld_F77 \
16711 hardcode_libdir_separator_F77 \
16712 hardcode_automatic_F77 \
16713 module_cmds_F77 \
16714 module_expsym_cmds_F77 \
16715 lt_cv_prog_compiler_c_o_F77 \
16716 exclude_expsyms_F77 \
16717 include_expsyms_F77; do
16718
16719 case $var in
16720 old_archive_cmds_F77 | \
16721 old_archive_from_new_cmds_F77 | \
16722 archive_cmds_F77 | \
16723 archive_expsym_cmds_F77 | \
16724 module_cmds_F77 | \
16725 module_expsym_cmds_F77 | \
16726 old_archive_from_expsyms_cmds_F77 | \
16727 export_symbols_cmds_F77 | \
16728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16729 postinstall_cmds | postuninstall_cmds | \
16730 old_postinstall_cmds | old_postuninstall_cmds | \
16731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16732 # Double-quote double-evaled strings.
16733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16734 ;;
16735 *)
16736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16737 ;;
16738 esac
16739 done
16740
16741 case $lt_echo in
16742 *'\$0 --fallback-echo"')
16743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16744 ;;
16745 esac
16746
16747 cfgfile="$ofile"
16748
16749 cat <<__EOF__ >> "$cfgfile"
16750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16751
16752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16753
16754 # Shell to use when invoking shell scripts.
16755 SHELL=$lt_SHELL
16756
16757 # Whether or not to build shared libraries.
16758 build_libtool_libs=$enable_shared
16759
16760 # Whether or not to build static libraries.
16761 build_old_libs=$enable_static
16762
16763 # Whether or not to add -lc for building shared libraries.
16764 build_libtool_need_lc=$archive_cmds_need_lc_F77
16765
16766 # Whether or not to disallow shared libs when runtime libs are static
16767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16768
16769 # Whether or not to optimize for fast installation.
16770 fast_install=$enable_fast_install
16771
16772 # The host system.
16773 host_alias=$host_alias
16774 host=$host
16775 host_os=$host_os
16776
16777 # The build system.
16778 build_alias=$build_alias
16779 build=$build
16780 build_os=$build_os
16781
16782 # An echo program that does not interpret backslashes.
16783 echo=$lt_echo
16784
16785 # The archiver.
16786 AR=$lt_AR
16787 AR_FLAGS=$lt_AR_FLAGS
16788
16789 # A C compiler.
16790 LTCC=$lt_LTCC
16791
16792 # LTCC compiler flags.
16793 LTCFLAGS=$lt_LTCFLAGS
16794
16795 # A language-specific compiler.
16796 CC=$lt_compiler_F77
16797
16798 # Is the compiler the GNU C compiler?
16799 with_gcc=$GCC_F77
16800
16801 # An ERE matcher.
16802 EGREP=$lt_EGREP
16803
16804 # The linker used to build libraries.
16805 LD=$lt_LD_F77
16806
16807 # Whether we need hard or soft links.
16808 LN_S=$lt_LN_S
16809
16810 # A BSD-compatible nm program.
16811 NM=$lt_NM
16812
16813 # A symbol stripping program
16814 STRIP=$lt_STRIP
16815
16816 # Used to examine libraries when file_magic_cmd begins "file"
16817 MAGIC_CMD=$MAGIC_CMD
16818
16819 # Used on cygwin: DLL creation program.
16820 DLLTOOL="$DLLTOOL"
16821
16822 # Used on cygwin: object dumper.
16823 OBJDUMP="$OBJDUMP"
16824
16825 # Used on cygwin: assembler.
16826 AS="$AS"
16827
16828 # The name of the directory that contains temporary libtool files.
16829 objdir=$objdir
16830
16831 # How to create reloadable object files.
16832 reload_flag=$lt_reload_flag
16833 reload_cmds=$lt_reload_cmds
16834
16835 # How to pass a linker flag through the compiler.
16836 wl=$lt_lt_prog_compiler_wl_F77
16837
16838 # Object file suffix (normally "o").
16839 objext="$ac_objext"
16840
16841 # Old archive suffix (normally "a").
16842 libext="$libext"
16843
16844 # Shared library suffix (normally ".so").
16845 shrext_cmds='$shrext_cmds'
16846
16847 # Executable file suffix (normally "").
16848 exeext="$exeext"
16849
16850 # Additional compiler flags for building library objects.
16851 pic_flag=$lt_lt_prog_compiler_pic_F77
16852 pic_mode=$pic_mode
16853
16854 # What is the maximum length of a command?
16855 max_cmd_len=$lt_cv_sys_max_cmd_len
16856
16857 # Does compiler simultaneously support -c and -o options?
16858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16859
16860 # Must we lock files when doing compilation?
16861 need_locks=$lt_need_locks
16862
16863 # Do we need the lib prefix for modules?
16864 need_lib_prefix=$need_lib_prefix
16865
16866 # Do we need a version for libraries?
16867 need_version=$need_version
16868
16869 # Whether dlopen is supported.
16870 dlopen_support=$enable_dlopen
16871
16872 # Whether dlopen of programs is supported.
16873 dlopen_self=$enable_dlopen_self
16874
16875 # Whether dlopen of statically linked programs is supported.
16876 dlopen_self_static=$enable_dlopen_self_static
16877
16878 # Compiler flag to prevent dynamic linking.
16879 link_static_flag=$lt_lt_prog_compiler_static_F77
16880
16881 # Compiler flag to turn off builtin functions.
16882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16883
16884 # Compiler flag to allow reflexive dlopens.
16885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16886
16887 # Compiler flag to generate shared objects directly from archives.
16888 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16889
16890 # Compiler flag to generate thread-safe objects.
16891 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16892
16893 # Library versioning type.
16894 version_type=$version_type
16895
16896 # Format of library name prefix.
16897 libname_spec=$lt_libname_spec
16898
16899 # List of archive names. First name is the real one, the rest are links.
16900 # The last name is the one that the linker finds with -lNAME.
16901 library_names_spec=$lt_library_names_spec
16902
16903 # The coded name of the library, if different from the real name.
16904 soname_spec=$lt_soname_spec
16905
16906 # Commands used to build and install an old-style archive.
16907 RANLIB=$lt_RANLIB
16908 old_archive_cmds=$lt_old_archive_cmds_F77
16909 old_postinstall_cmds=$lt_old_postinstall_cmds
16910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16911
16912 # Create an old-style archive from a shared archive.
16913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16914
16915 # Create a temporary old-style archive to link instead of a shared archive.
16916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16917
16918 # Commands used to build and install a shared archive.
16919 archive_cmds=$lt_archive_cmds_F77
16920 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16921 postinstall_cmds=$lt_postinstall_cmds
16922 postuninstall_cmds=$lt_postuninstall_cmds
16923
16924 # Commands used to build a loadable module (assumed same as above if empty)
16925 module_cmds=$lt_module_cmds_F77
16926 module_expsym_cmds=$lt_module_expsym_cmds_F77
16927
16928 # Commands to strip libraries.
16929 old_striplib=$lt_old_striplib
16930 striplib=$lt_striplib
16931
16932 # Dependencies to place before the objects being linked to create a
16933 # shared library.
16934 predep_objects=$lt_predep_objects_F77
16935
16936 # Dependencies to place after the objects being linked to create a
16937 # shared library.
16938 postdep_objects=$lt_postdep_objects_F77
16939
16940 # Dependencies to place before the objects being linked to create a
16941 # shared library.
16942 predeps=$lt_predeps_F77
16943
16944 # Dependencies to place after the objects being linked to create a
16945 # shared library.
16946 postdeps=$lt_postdeps_F77
16947
16948 # The library search path used internally by the compiler when linking
16949 # a shared library.
16950 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16951
16952 # Method to check whether dependent libraries are shared objects.
16953 deplibs_check_method=$lt_deplibs_check_method
16954
16955 # Command to use when deplibs_check_method == file_magic.
16956 file_magic_cmd=$lt_file_magic_cmd
16957
16958 # Flag that allows shared libraries with undefined symbols to be built.
16959 allow_undefined_flag=$lt_allow_undefined_flag_F77
16960
16961 # Flag that forces no undefined symbols.
16962 no_undefined_flag=$lt_no_undefined_flag_F77
16963
16964 # Commands used to finish a libtool library installation in a directory.
16965 finish_cmds=$lt_finish_cmds
16966
16967 # Same as above, but a single script fragment to be evaled but not shown.
16968 finish_eval=$lt_finish_eval
16969
16970 # Take the output of nm and produce a listing of raw symbols and C names.
16971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16972
16973 # Transform the output of nm in a proper C declaration
16974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16975
16976 # Transform the output of nm in a C name address pair
16977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16978
16979 # This is the shared library runtime path variable.
16980 runpath_var=$runpath_var
16981
16982 # This is the shared library path variable.
16983 shlibpath_var=$shlibpath_var
16984
16985 # Is shlibpath searched before the hard-coded library search path?
16986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16987
16988 # How to hardcode a shared library path into an executable.
16989 hardcode_action=$hardcode_action_F77
16990
16991 # Whether we should hardcode library paths into libraries.
16992 hardcode_into_libs=$hardcode_into_libs
16993
16994 # Flag to hardcode \$libdir into a binary during linking.
16995 # This must work even if \$libdir does not exist.
16996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16997
16998 # If ld is used when linking, flag to hardcode \$libdir into
16999 # a binary during linking. This must work even if \$libdir does
17000 # not exist.
17001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17002
17003 # Whether we need a single -rpath flag with a separated argument.
17004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17005
17006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17007 # resulting binary.
17008 hardcode_direct=$hardcode_direct_F77
17009
17010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17011 # resulting binary.
17012 hardcode_minus_L=$hardcode_minus_L_F77
17013
17014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17015 # the resulting binary.
17016 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17017
17018 # Set to yes if building a shared library automatically hardcodes DIR into the library
17019 # and all subsequent libraries and executables linked against it.
17020 hardcode_automatic=$hardcode_automatic_F77
17021
17022 # Variables whose values should be saved in libtool wrapper scripts and
17023 # restored at relink time.
17024 variables_saved_for_relink="$variables_saved_for_relink"
17025
17026 # Whether libtool must link a program against all its dependency libraries.
17027 link_all_deplibs=$link_all_deplibs_F77
17028
17029 # Compile-time system search path for libraries
17030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17031
17032 # Run-time system search path for libraries
17033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17034
17035 # Fix the shell variable \$srcfile for the compiler.
17036 fix_srcfile_path="$fix_srcfile_path_F77"
17037
17038 # Set to yes if exported symbols are required.
17039 always_export_symbols=$always_export_symbols_F77
17040
17041 # The commands to list exported symbols.
17042 export_symbols_cmds=$lt_export_symbols_cmds_F77
17043
17044 # The commands to extract the exported symbol list from a shared archive.
17045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17046
17047 # Symbols that should not be listed in the preloaded symbols.
17048 exclude_expsyms=$lt_exclude_expsyms_F77
17049
17050 # Symbols that must always be exported.
17051 include_expsyms=$lt_include_expsyms_F77
17052
17053 # ### END LIBTOOL TAG CONFIG: $tagname
17054
17055 __EOF__
17056
17057
17058 else
17059 # If there is no Makefile yet, we rely on a make rule to execute
17060 # `config.status --recheck' to rerun these tests and create the
17061 # libtool script then.
17062 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17063 if test -f "$ltmain_in"; then
17064 test -f Makefile && make "$ltmain"
17065 fi
17066 fi
17067
17068
17069 ac_ext=c
17070 ac_cpp='$CPP $CPPFLAGS'
17071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17074
17075 CC="$lt_save_CC"
17076
17077 else
17078 tagname=""
17079 fi
17080 ;;
17081
17082 GCJ)
17083 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17084
17085
17086
17087 # Source file extension for Java test sources.
17088 ac_ext=java
17089
17090 # Object file extension for compiled Java test sources.
17091 objext=o
17092 objext_GCJ=$objext
17093
17094 # Code to be used in simple compile tests
17095 lt_simple_compile_test_code="class foo {}\n"
17096
17097 # Code to be used in simple link tests
17098 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17099
17100 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17101
17102 # If no C compiler was specified, use CC.
17103 LTCC=${LTCC-"$CC"}
17104
17105 # If no C compiler flags were specified, use CFLAGS.
17106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17107
17108 # Allow CC to be a program name with arguments.
17109 compiler=$CC
17110
17111
17112 # save warnings/boilerplate of simple test code
17113 ac_outfile=conftest.$ac_objext
17114 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17116 _lt_compiler_boilerplate=`cat conftest.err`
17117 $rm conftest*
17118
17119 ac_outfile=conftest.$ac_objext
17120 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17122 _lt_linker_boilerplate=`cat conftest.err`
17123 $rm conftest*
17124
17125
17126 # Allow CC to be a program name with arguments.
17127 lt_save_CC="$CC"
17128 CC=${GCJ-"gcj"}
17129 compiler=$CC
17130 compiler_GCJ=$CC
17131 for cc_temp in $compiler""; do
17132 case $cc_temp in
17133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17135 \-*) ;;
17136 *) break;;
17137 esac
17138 done
17139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17140
17141
17142 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17143 archive_cmds_need_lc_GCJ=no
17144
17145 old_archive_cmds_GCJ=$old_archive_cmds
17146
17147 ## CAVEAT EMPTOR:
17148 ## There is no encapsulation within the following macros, do not change
17149 ## the running order or otherwise move them around unless you know exactly
17150 ## what you are doing...
17151
17152 lt_prog_compiler_no_builtin_flag_GCJ=
17153
17154 if test "$GCC" = yes; then
17155 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17156
17157
17158 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17159 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17160 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163 lt_cv_prog_compiler_rtti_exceptions=no
17164 ac_outfile=conftest.$ac_objext
17165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17166 lt_compiler_flag="-fno-rtti -fno-exceptions"
17167 # Insert the option either (1) after the last *FLAGS variable, or
17168 # (2) before a word containing "conftest.", or (3) at the end.
17169 # Note that $ac_compile itself does not contain backslashes and begins
17170 # with a dollar sign (not a hyphen), so the echo should work correctly.
17171 # The option is referenced via a variable to avoid confusing sed.
17172 lt_compile=`echo "$ac_compile" | $SED \
17173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17175 -e 's:$: $lt_compiler_flag:'`
17176 (eval echo "\"\$as_me:17176: $lt_compile\"" >&5)
17177 (eval "$lt_compile" 2>conftest.err)
17178 ac_status=$?
17179 cat conftest.err >&5
17180 echo "$as_me:17180: \$? = $ac_status" >&5
17181 if (exit $ac_status) && test -s "$ac_outfile"; then
17182 # The compiler can only warn and ignore the option if not recognized
17183 # So say no if there are warnings other than the usual output.
17184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17187 lt_cv_prog_compiler_rtti_exceptions=yes
17188 fi
17189 fi
17190 $rm conftest*
17191
17192 fi
17193 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17194 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17195
17196 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17197 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17198 else
17199 :
17200 fi
17201
17202 fi
17203
17204 lt_prog_compiler_wl_GCJ=
17205 lt_prog_compiler_pic_GCJ=
17206 lt_prog_compiler_static_GCJ=
17207
17208 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17209 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17210
17211 if test "$GCC" = yes; then
17212 lt_prog_compiler_wl_GCJ='-Wl,'
17213 lt_prog_compiler_static_GCJ='-static'
17214
17215 case $host_os in
17216 aix*)
17217 # All AIX code is PIC.
17218 if test "$host_cpu" = ia64; then
17219 # AIX 5 now supports IA64 processor
17220 lt_prog_compiler_static_GCJ='-Bstatic'
17221 fi
17222 ;;
17223
17224 amigaos*)
17225 # FIXME: we need at least 68020 code to build shared libraries, but
17226 # adding the `-m68020' flag to GCC prevents building anything better,
17227 # like `-m68040'.
17228 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17229 ;;
17230
17231 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17232 # PIC is the default for these OSes.
17233 ;;
17234
17235 mingw* | pw32* | os2*)
17236 # This hack is so that the source file can tell whether it is being
17237 # built for inclusion in a dll (and should export symbols for example).
17238 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17239 ;;
17240
17241 darwin* | rhapsody*)
17242 # PIC is the default on this platform
17243 # Common symbols not allowed in MH_DYLIB files
17244 lt_prog_compiler_pic_GCJ='-fno-common'
17245 ;;
17246
17247 interix3*)
17248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17249 # Instead, we relocate shared libraries at runtime.
17250 ;;
17251
17252 msdosdjgpp*)
17253 # Just because we use GCC doesn't mean we suddenly get shared libraries
17254 # on systems that don't support them.
17255 lt_prog_compiler_can_build_shared_GCJ=no
17256 enable_shared=no
17257 ;;
17258
17259 sysv4*MP*)
17260 if test -d /usr/nec; then
17261 lt_prog_compiler_pic_GCJ=-Kconform_pic
17262 fi
17263 ;;
17264
17265 hpux*)
17266 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17267 # not for PA HP-UX.
17268 case $host_cpu in
17269 hppa*64*|ia64*)
17270 # +Z the default
17271 ;;
17272 *)
17273 lt_prog_compiler_pic_GCJ='-fPIC'
17274 ;;
17275 esac
17276 ;;
17277
17278 *)
17279 lt_prog_compiler_pic_GCJ='-fPIC'
17280 ;;
17281 esac
17282 else
17283 # PORTME Check for flag to pass linker flags through the system compiler.
17284 case $host_os in
17285 aix*)
17286 lt_prog_compiler_wl_GCJ='-Wl,'
17287 if test "$host_cpu" = ia64; then
17288 # AIX 5 now supports IA64 processor
17289 lt_prog_compiler_static_GCJ='-Bstatic'
17290 else
17291 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17292 fi
17293 ;;
17294 darwin*)
17295 # PIC is the default on this platform
17296 # Common symbols not allowed in MH_DYLIB files
17297 case $cc_basename in
17298 xlc*)
17299 lt_prog_compiler_pic_GCJ='-qnocommon'
17300 lt_prog_compiler_wl_GCJ='-Wl,'
17301 ;;
17302 esac
17303 ;;
17304
17305 mingw* | pw32* | os2*)
17306 # This hack is so that the source file can tell whether it is being
17307 # built for inclusion in a dll (and should export symbols for example).
17308 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17309 ;;
17310
17311 hpux9* | hpux10* | hpux11*)
17312 lt_prog_compiler_wl_GCJ='-Wl,'
17313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17314 # not for PA HP-UX.
17315 case $host_cpu in
17316 hppa*64*|ia64*)
17317 # +Z the default
17318 ;;
17319 *)
17320 lt_prog_compiler_pic_GCJ='+Z'
17321 ;;
17322 esac
17323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17324 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17325 ;;
17326
17327 irix5* | irix6* | nonstopux*)
17328 lt_prog_compiler_wl_GCJ='-Wl,'
17329 # PIC (with -KPIC) is the default.
17330 lt_prog_compiler_static_GCJ='-non_shared'
17331 ;;
17332
17333 newsos6)
17334 lt_prog_compiler_pic_GCJ='-KPIC'
17335 lt_prog_compiler_static_GCJ='-Bstatic'
17336 ;;
17337
17338 linux*)
17339 case $cc_basename in
17340 icc* | ecc*)
17341 lt_prog_compiler_wl_GCJ='-Wl,'
17342 lt_prog_compiler_pic_GCJ='-KPIC'
17343 lt_prog_compiler_static_GCJ='-static'
17344 ;;
17345 pgcc* | pgf77* | pgf90* | pgf95*)
17346 # Portland Group compilers (*not* the Pentium gcc compiler,
17347 # which looks to be a dead project)
17348 lt_prog_compiler_wl_GCJ='-Wl,'
17349 lt_prog_compiler_pic_GCJ='-fpic'
17350 lt_prog_compiler_static_GCJ='-Bstatic'
17351 ;;
17352 ccc*)
17353 lt_prog_compiler_wl_GCJ='-Wl,'
17354 # All Alpha code is PIC.
17355 lt_prog_compiler_static_GCJ='-non_shared'
17356 ;;
17357 esac
17358 ;;
17359
17360 osf3* | osf4* | osf5*)
17361 lt_prog_compiler_wl_GCJ='-Wl,'
17362 # All OSF/1 code is PIC.
17363 lt_prog_compiler_static_GCJ='-non_shared'
17364 ;;
17365
17366 solaris*)
17367 lt_prog_compiler_pic_GCJ='-KPIC'
17368 lt_prog_compiler_static_GCJ='-Bstatic'
17369 case $cc_basename in
17370 f77* | f90* | f95*)
17371 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17372 *)
17373 lt_prog_compiler_wl_GCJ='-Wl,';;
17374 esac
17375 ;;
17376
17377 sunos4*)
17378 lt_prog_compiler_wl_GCJ='-Qoption ld '
17379 lt_prog_compiler_pic_GCJ='-PIC'
17380 lt_prog_compiler_static_GCJ='-Bstatic'
17381 ;;
17382
17383 sysv4 | sysv4.2uw2* | sysv4.3*)
17384 lt_prog_compiler_wl_GCJ='-Wl,'
17385 lt_prog_compiler_pic_GCJ='-KPIC'
17386 lt_prog_compiler_static_GCJ='-Bstatic'
17387 ;;
17388
17389 sysv4*MP*)
17390 if test -d /usr/nec ;then
17391 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17392 lt_prog_compiler_static_GCJ='-Bstatic'
17393 fi
17394 ;;
17395
17396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17397 lt_prog_compiler_wl_GCJ='-Wl,'
17398 lt_prog_compiler_pic_GCJ='-KPIC'
17399 lt_prog_compiler_static_GCJ='-Bstatic'
17400 ;;
17401
17402 unicos*)
17403 lt_prog_compiler_wl_GCJ='-Wl,'
17404 lt_prog_compiler_can_build_shared_GCJ=no
17405 ;;
17406
17407 uts4*)
17408 lt_prog_compiler_pic_GCJ='-pic'
17409 lt_prog_compiler_static_GCJ='-Bstatic'
17410 ;;
17411
17412 *)
17413 lt_prog_compiler_can_build_shared_GCJ=no
17414 ;;
17415 esac
17416 fi
17417
17418 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17419 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17420
17421 #
17422 # Check to make sure the PIC flag actually works.
17423 #
17424 if test -n "$lt_prog_compiler_pic_GCJ"; then
17425
17426 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17427 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17428 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 lt_prog_compiler_pic_works_GCJ=no
17432 ac_outfile=conftest.$ac_objext
17433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17434 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17435 # Insert the option either (1) after the last *FLAGS variable, or
17436 # (2) before a word containing "conftest.", or (3) at the end.
17437 # Note that $ac_compile itself does not contain backslashes and begins
17438 # with a dollar sign (not a hyphen), so the echo should work correctly.
17439 # The option is referenced via a variable to avoid confusing sed.
17440 lt_compile=`echo "$ac_compile" | $SED \
17441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17443 -e 's:$: $lt_compiler_flag:'`
17444 (eval echo "\"\$as_me:17444: $lt_compile\"" >&5)
17445 (eval "$lt_compile" 2>conftest.err)
17446 ac_status=$?
17447 cat conftest.err >&5
17448 echo "$as_me:17448: \$? = $ac_status" >&5
17449 if (exit $ac_status) && test -s "$ac_outfile"; then
17450 # The compiler can only warn and ignore the option if not recognized
17451 # So say no if there are warnings other than the usual output.
17452 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17455 lt_prog_compiler_pic_works_GCJ=yes
17456 fi
17457 fi
17458 $rm conftest*
17459
17460 fi
17461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17462 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17463
17464 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17465 case $lt_prog_compiler_pic_GCJ in
17466 "" | " "*) ;;
17467 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17468 esac
17469 else
17470 lt_prog_compiler_pic_GCJ=
17471 lt_prog_compiler_can_build_shared_GCJ=no
17472 fi
17473
17474 fi
17475 case $host_os in
17476 # For platforms which do not support PIC, -DPIC is meaningless:
17477 *djgpp*)
17478 lt_prog_compiler_pic_GCJ=
17479 ;;
17480 *)
17481 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17482 ;;
17483 esac
17484
17485 #
17486 # Check to make sure the static flag actually works.
17487 #
17488 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17489 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17490 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17491 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 lt_prog_compiler_static_works_GCJ=no
17495 save_LDFLAGS="$LDFLAGS"
17496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17497 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17499 # The linker can only warn and ignore the option if not recognized
17500 # So say no if there are warnings
17501 if test -s conftest.err; then
17502 # Append any errors to the config.log.
17503 cat conftest.err 1>&5
17504 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17506 if diff conftest.exp conftest.er2 >/dev/null; then
17507 lt_prog_compiler_static_works_GCJ=yes
17508 fi
17509 else
17510 lt_prog_compiler_static_works_GCJ=yes
17511 fi
17512 fi
17513 $rm conftest*
17514 LDFLAGS="$save_LDFLAGS"
17515
17516 fi
17517 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17518 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17519
17520 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17521 :
17522 else
17523 lt_prog_compiler_static_GCJ=
17524 fi
17525
17526
17527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17529 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532 lt_cv_prog_compiler_c_o_GCJ=no
17533 $rm -r conftest 2>/dev/null
17534 mkdir conftest
17535 cd conftest
17536 mkdir out
17537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17538
17539 lt_compiler_flag="-o out/conftest2.$ac_objext"
17540 # Insert the option either (1) after the last *FLAGS variable, or
17541 # (2) before a word containing "conftest.", or (3) at the end.
17542 # Note that $ac_compile itself does not contain backslashes and begins
17543 # with a dollar sign (not a hyphen), so the echo should work correctly.
17544 lt_compile=`echo "$ac_compile" | $SED \
17545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17547 -e 's:$: $lt_compiler_flag:'`
17548 (eval echo "\"\$as_me:17548: $lt_compile\"" >&5)
17549 (eval "$lt_compile" 2>out/conftest.err)
17550 ac_status=$?
17551 cat out/conftest.err >&5
17552 echo "$as_me:17552: \$? = $ac_status" >&5
17553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17554 then
17555 # The compiler can only warn and ignore the option if not recognized
17556 # So say no if there are warnings
17557 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17560 lt_cv_prog_compiler_c_o_GCJ=yes
17561 fi
17562 fi
17563 chmod u+w . 2>&5
17564 $rm conftest*
17565 # SGI C++ compiler will create directory out/ii_files/ for
17566 # template instantiation
17567 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17568 $rm out/* && rmdir out
17569 cd ..
17570 rmdir conftest
17571 $rm conftest*
17572
17573 fi
17574 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17576
17577
17578 hard_links="nottested"
17579 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17580 # do not overwrite the value of need_locks provided by the user
17581 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17583 hard_links=yes
17584 $rm conftest*
17585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17586 touch conftest.a
17587 ln conftest.a conftest.b 2>&5 || hard_links=no
17588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589 echo "$as_me:$LINENO: result: $hard_links" >&5
17590 echo "${ECHO_T}$hard_links" >&6
17591 if test "$hard_links" = no; then
17592 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17594 need_locks=warn
17595 fi
17596 else
17597 need_locks=no
17598 fi
17599
17600 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17602
17603 runpath_var=
17604 allow_undefined_flag_GCJ=
17605 enable_shared_with_static_runtimes_GCJ=no
17606 archive_cmds_GCJ=
17607 archive_expsym_cmds_GCJ=
17608 old_archive_From_new_cmds_GCJ=
17609 old_archive_from_expsyms_cmds_GCJ=
17610 export_dynamic_flag_spec_GCJ=
17611 whole_archive_flag_spec_GCJ=
17612 thread_safe_flag_spec_GCJ=
17613 hardcode_libdir_flag_spec_GCJ=
17614 hardcode_libdir_flag_spec_ld_GCJ=
17615 hardcode_libdir_separator_GCJ=
17616 hardcode_direct_GCJ=no
17617 hardcode_minus_L_GCJ=no
17618 hardcode_shlibpath_var_GCJ=unsupported
17619 link_all_deplibs_GCJ=unknown
17620 hardcode_automatic_GCJ=no
17621 module_cmds_GCJ=
17622 module_expsym_cmds_GCJ=
17623 always_export_symbols_GCJ=no
17624 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17625 # include_expsyms should be a list of space-separated symbols to be *always*
17626 # included in the symbol list
17627 include_expsyms_GCJ=
17628 # exclude_expsyms can be an extended regexp of symbols to exclude
17629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17631 # as well as any symbol that contains `d'.
17632 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17634 # platforms (ab)use it in PIC code, but their linkers get confused if
17635 # the symbol is explicitly referenced. Since portable code cannot
17636 # rely on this symbol name, it's probably fine to never include it in
17637 # preloaded symbol tables.
17638 extract_expsyms_cmds=
17639 # Just being paranoid about ensuring that cc_basename is set.
17640 for cc_temp in $compiler""; do
17641 case $cc_temp in
17642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17644 \-*) ;;
17645 *) break;;
17646 esac
17647 done
17648 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17649
17650 case $host_os in
17651 cygwin* | mingw* | pw32*)
17652 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17653 # When not using gcc, we currently assume that we are using
17654 # Microsoft Visual C++.
17655 if test "$GCC" != yes; then
17656 with_gnu_ld=no
17657 fi
17658 ;;
17659 interix*)
17660 # we just hope/assume this is gcc and not c89 (= MSVC++)
17661 with_gnu_ld=yes
17662 ;;
17663 openbsd*)
17664 with_gnu_ld=no
17665 ;;
17666 esac
17667
17668 ld_shlibs_GCJ=yes
17669 if test "$with_gnu_ld" = yes; then
17670 # If archive_cmds runs LD, not CC, wlarc should be empty
17671 wlarc='${wl}'
17672
17673 # Set some defaults for GNU ld with shared library support. These
17674 # are reset later if shared libraries are not supported. Putting them
17675 # here allows them to be overridden if necessary.
17676 runpath_var=LD_RUN_PATH
17677 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17678 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17679 # ancient GNU ld didn't support --whole-archive et. al.
17680 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17681 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17682 else
17683 whole_archive_flag_spec_GCJ=
17684 fi
17685 supports_anon_versioning=no
17686 case `$LD -v 2>/dev/null` in
17687 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17688 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17689 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17690 *\ 2.11.*) ;; # other 2.11 versions
17691 *) supports_anon_versioning=yes ;;
17692 esac
17693
17694 # See if GNU ld supports shared libraries.
17695 case $host_os in
17696 aix3* | aix4* | aix5*)
17697 # On AIX/PPC, the GNU linker is very broken
17698 if test "$host_cpu" != ia64; then
17699 ld_shlibs_GCJ=no
17700 cat <<EOF 1>&2
17701
17702 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17703 *** to be unable to reliably create shared libraries on AIX.
17704 *** Therefore, libtool is disabling shared libraries support. If you
17705 *** really care for shared libraries, you may want to modify your PATH
17706 *** so that a non-GNU linker is found, and then restart.
17707
17708 EOF
17709 fi
17710 ;;
17711
17712 amigaos*)
17713 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)'
17714 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715 hardcode_minus_L_GCJ=yes
17716
17717 # Samuel A. Falvo II <[email protected]> reports
17718 # that the semantics of dynamic libraries on AmigaOS, at least up
17719 # to version 4, is to share data among multiple programs linked
17720 # with the same dynamic library. Since this doesn't match the
17721 # behavior of shared libraries on other platforms, we can't use
17722 # them.
17723 ld_shlibs_GCJ=no
17724 ;;
17725
17726 beos*)
17727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17728 allow_undefined_flag_GCJ=unsupported
17729 # Joseph Beckenbach <[email protected]> says some releases of gcc
17730 # support --undefined. This deserves some investigation. FIXME
17731 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732 else
17733 ld_shlibs_GCJ=no
17734 fi
17735 ;;
17736
17737 cygwin* | mingw* | pw32*)
17738 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17739 # as there is no search path for DLLs.
17740 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17741 allow_undefined_flag_GCJ=unsupported
17742 always_export_symbols_GCJ=no
17743 enable_shared_with_static_runtimes_GCJ=yes
17744 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17745
17746 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17747 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17748 # If the export-symbols file already is a .def file (1st line
17749 # is EXPORTS), use it as is; otherwise, prepend...
17750 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17751 cp $export_symbols $output_objdir/$soname.def;
17752 else
17753 echo EXPORTS > $output_objdir/$soname.def;
17754 cat $export_symbols >> $output_objdir/$soname.def;
17755 fi~
17756 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17757 else
17758 ld_shlibs_GCJ=no
17759 fi
17760 ;;
17761
17762 interix3*)
17763 hardcode_direct_GCJ=no
17764 hardcode_shlibpath_var_GCJ=no
17765 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17766 export_dynamic_flag_spec_GCJ='${wl}-E'
17767 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17768 # Instead, shared libraries are loaded at an image base (0x10000000 by
17769 # default) and relocated if they conflict, which is a slow very memory
17770 # consuming and fragmenting process. To avoid this, we pick a random,
17771 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17772 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17773 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'
17774 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'
17775 ;;
17776
17777 linux*)
17778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17779 tmp_addflag=
17780 case $cc_basename,$host_cpu in
17781 pgcc*) # Portland Group C compiler
17782 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'
17783 tmp_addflag=' $pic_flag'
17784 ;;
17785 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17786 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'
17787 tmp_addflag=' $pic_flag -Mnomain' ;;
17788 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17789 tmp_addflag=' -i_dynamic' ;;
17790 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17791 tmp_addflag=' -i_dynamic -nofor_main' ;;
17792 ifc* | ifort*) # Intel Fortran compiler
17793 tmp_addflag=' -nofor_main' ;;
17794 esac
17795 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17796
17797 if test $supports_anon_versioning = yes; then
17798 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17800 $echo "local: *; };" >> $output_objdir/$libname.ver~
17801 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17802 fi
17803 else
17804 ld_shlibs_GCJ=no
17805 fi
17806 ;;
17807
17808 netbsd*)
17809 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17810 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17811 wlarc=
17812 else
17813 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17815 fi
17816 ;;
17817
17818 solaris*)
17819 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17820 ld_shlibs_GCJ=no
17821 cat <<EOF 1>&2
17822
17823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17824 *** create shared libraries on Solaris systems. Therefore, libtool
17825 *** is disabling shared libraries support. We urge you to upgrade GNU
17826 *** binutils to release 2.9.1 or newer. Another option is to modify
17827 *** your PATH or compiler configuration so that the native linker is
17828 *** used, and then restart.
17829
17830 EOF
17831 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17832 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17833 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17834 else
17835 ld_shlibs_GCJ=no
17836 fi
17837 ;;
17838
17839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17840 case `$LD -v 2>&1` in
17841 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17842 ld_shlibs_GCJ=no
17843 cat <<_LT_EOF 1>&2
17844
17845 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17846 *** reliably create shared libraries on SCO systems. Therefore, libtool
17847 *** is disabling shared libraries support. We urge you to upgrade GNU
17848 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17849 *** your PATH or compiler configuration so that the native linker is
17850 *** used, and then restart.
17851
17852 _LT_EOF
17853 ;;
17854 *)
17855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17856 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17858 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17859 else
17860 ld_shlibs_GCJ=no
17861 fi
17862 ;;
17863 esac
17864 ;;
17865
17866 sunos4*)
17867 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17868 wlarc=
17869 hardcode_direct_GCJ=yes
17870 hardcode_shlibpath_var_GCJ=no
17871 ;;
17872
17873 *)
17874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17875 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17876 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17877 else
17878 ld_shlibs_GCJ=no
17879 fi
17880 ;;
17881 esac
17882
17883 if test "$ld_shlibs_GCJ" = no; then
17884 runpath_var=
17885 hardcode_libdir_flag_spec_GCJ=
17886 export_dynamic_flag_spec_GCJ=
17887 whole_archive_flag_spec_GCJ=
17888 fi
17889 else
17890 # PORTME fill in a description of your system's linker (not GNU ld)
17891 case $host_os in
17892 aix3*)
17893 allow_undefined_flag_GCJ=unsupported
17894 always_export_symbols_GCJ=yes
17895 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'
17896 # Note: this linker hardcodes the directories in LIBPATH if there
17897 # are no directories specified by -L.
17898 hardcode_minus_L_GCJ=yes
17899 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17900 # Neither direct hardcoding nor static linking is supported with a
17901 # broken collect2.
17902 hardcode_direct_GCJ=unsupported
17903 fi
17904 ;;
17905
17906 aix4* | aix5*)
17907 if test "$host_cpu" = ia64; then
17908 # On IA64, the linker does run time linking by default, so we don't
17909 # have to do anything special.
17910 aix_use_runtimelinking=no
17911 exp_sym_flag='-Bexport'
17912 no_entry_flag=""
17913 else
17914 # If we're using GNU nm, then we don't want the "-C" option.
17915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17916 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17917 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'
17918 else
17919 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'
17920 fi
17921 aix_use_runtimelinking=no
17922
17923 # Test if we are trying to use run time linking or normal
17924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17925 # need to do runtime linking.
17926 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17927 for ld_flag in $LDFLAGS; do
17928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17929 aix_use_runtimelinking=yes
17930 break
17931 fi
17932 done
17933 ;;
17934 esac
17935
17936 exp_sym_flag='-bexport'
17937 no_entry_flag='-bnoentry'
17938 fi
17939
17940 # When large executables or shared objects are built, AIX ld can
17941 # have problems creating the table of contents. If linking a library
17942 # or program results in "error TOC overflow" add -mminimal-toc to
17943 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17944 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17945
17946 archive_cmds_GCJ=''
17947 hardcode_direct_GCJ=yes
17948 hardcode_libdir_separator_GCJ=':'
17949 link_all_deplibs_GCJ=yes
17950
17951 if test "$GCC" = yes; then
17952 case $host_os in aix4.[012]|aix4.[012].*)
17953 # We only want to do this on AIX 4.2 and lower, the check
17954 # below for broken collect2 doesn't work under 4.3+
17955 collect2name=`${CC} -print-prog-name=collect2`
17956 if test -f "$collect2name" && \
17957 strings "$collect2name" | grep resolve_lib_name >/dev/null
17958 then
17959 # We have reworked collect2
17960 hardcode_direct_GCJ=yes
17961 else
17962 # We have old collect2
17963 hardcode_direct_GCJ=unsupported
17964 # It fails to find uninstalled libraries when the uninstalled
17965 # path is not listed in the libpath. Setting hardcode_minus_L
17966 # to unsupported forces relinking
17967 hardcode_minus_L_GCJ=yes
17968 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17969 hardcode_libdir_separator_GCJ=
17970 fi
17971 ;;
17972 esac
17973 shared_flag='-shared'
17974 if test "$aix_use_runtimelinking" = yes; then
17975 shared_flag="$shared_flag "'${wl}-G'
17976 fi
17977 else
17978 # not using gcc
17979 if test "$host_cpu" = ia64; then
17980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17981 # chokes on -Wl,-G. The following line is correct:
17982 shared_flag='-G'
17983 else
17984 if test "$aix_use_runtimelinking" = yes; then
17985 shared_flag='${wl}-G'
17986 else
17987 shared_flag='${wl}-bM:SRE'
17988 fi
17989 fi
17990 fi
17991
17992 # It seems that -bexpall does not export symbols beginning with
17993 # underscore (_), so it is better to generate a list of symbols to export.
17994 always_export_symbols_GCJ=yes
17995 if test "$aix_use_runtimelinking" = yes; then
17996 # Warning - without using the other runtime loading flags (-brtl),
17997 # -berok will link without error, but may produce a broken library.
17998 allow_undefined_flag_GCJ='-berok'
17999 # Determine the default libpath from the value encoded in an empty executable.
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006
18007 int
18008 main ()
18009 {
18010
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017 (eval $ac_link) 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037
18038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18039 }'`
18040 # Check for a 64-bit object if we didn't find anything.
18041 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; }
18042 }'`; fi
18043 else
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 fi
18048 rm -f conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18051
18052 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18053 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"
18054 else
18055 if test "$host_cpu" = ia64; then
18056 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18057 allow_undefined_flag_GCJ="-z nodefs"
18058 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"
18059 else
18060 # Determine the default libpath from the value encoded in an empty executable.
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067
18068 int
18069 main ()
18070 {
18071
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078 (eval $ac_link) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098
18099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18100 }'`
18101 # Check for a 64-bit object if we didn't find anything.
18102 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; }
18103 }'`; fi
18104 else
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 fi
18109 rm -f conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18112
18113 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18114 # Warning - without using the other run time loading flags,
18115 # -berok will link without error, but may produce a broken library.
18116 no_undefined_flag_GCJ=' ${wl}-bernotok'
18117 allow_undefined_flag_GCJ=' ${wl}-berok'
18118 # Exported symbols can be pulled into shared objects from archives
18119 whole_archive_flag_spec_GCJ='$convenience'
18120 archive_cmds_need_lc_GCJ=yes
18121 # This is similar to how AIX traditionally builds its shared libraries.
18122 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'
18123 fi
18124 fi
18125 ;;
18126
18127 amigaos*)
18128 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)'
18129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18130 hardcode_minus_L_GCJ=yes
18131 # see comment about different semantics on the GNU ld section
18132 ld_shlibs_GCJ=no
18133 ;;
18134
18135 bsdi[45]*)
18136 export_dynamic_flag_spec_GCJ=-rdynamic
18137 ;;
18138
18139 cygwin* | mingw* | pw32*)
18140 # When not using gcc, we currently assume that we are using
18141 # Microsoft Visual C++.
18142 # hardcode_libdir_flag_spec is actually meaningless, as there is
18143 # no search path for DLLs.
18144 hardcode_libdir_flag_spec_GCJ=' '
18145 allow_undefined_flag_GCJ=unsupported
18146 # Tell ltmain to make .lib files, not .a files.
18147 libext=lib
18148 # Tell ltmain to make .dll files, not .so files.
18149 shrext_cmds=".dll"
18150 # FIXME: Setting linknames here is a bad hack.
18151 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18152 # The linker will automatically build a .lib file if we build a DLL.
18153 old_archive_From_new_cmds_GCJ='true'
18154 # FIXME: Should let the user specify the lib program.
18155 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18156 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18157 enable_shared_with_static_runtimes_GCJ=yes
18158 ;;
18159
18160 darwin* | rhapsody*)
18161 case $host_os in
18162 rhapsody* | darwin1.[012])
18163 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18164 ;;
18165 *) # Darwin 1.3 on
18166 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18167 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18168 else
18169 case ${MACOSX_DEPLOYMENT_TARGET} in
18170 10.[012])
18171 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18172 ;;
18173 10.*)
18174 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18175 ;;
18176 esac
18177 fi
18178 ;;
18179 esac
18180 archive_cmds_need_lc_GCJ=no
18181 hardcode_direct_GCJ=no
18182 hardcode_automatic_GCJ=yes
18183 hardcode_shlibpath_var_GCJ=unsupported
18184 whole_archive_flag_spec_GCJ=''
18185 link_all_deplibs_GCJ=yes
18186 if test "$GCC" = yes ; then
18187 output_verbose_link_cmd='echo'
18188 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18189 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18191 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}'
18192 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}'
18193 else
18194 case $cc_basename in
18195 xlc*)
18196 output_verbose_link_cmd='echo'
18197 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18198 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18200 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}'
18201 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}'
18202 ;;
18203 *)
18204 ld_shlibs_GCJ=no
18205 ;;
18206 esac
18207 fi
18208 ;;
18209
18210 dgux*)
18211 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213 hardcode_shlibpath_var_GCJ=no
18214 ;;
18215
18216 freebsd1*)
18217 ld_shlibs_GCJ=no
18218 ;;
18219
18220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18221 # support. Future versions do this automatically, but an explicit c++rt0.o
18222 # does not break anything, and helps significantly (at the cost of a little
18223 # extra space).
18224 freebsd2.2*)
18225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18226 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18227 hardcode_direct_GCJ=yes
18228 hardcode_shlibpath_var_GCJ=no
18229 ;;
18230
18231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18232 freebsd2*)
18233 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18234 hardcode_direct_GCJ=yes
18235 hardcode_minus_L_GCJ=yes
18236 hardcode_shlibpath_var_GCJ=no
18237 ;;
18238
18239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18240 freebsd* | kfreebsd*-gnu | dragonfly*)
18241 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18243 hardcode_direct_GCJ=yes
18244 hardcode_shlibpath_var_GCJ=no
18245 ;;
18246
18247 hpux9*)
18248 if test "$GCC" = yes; then
18249 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'
18250 else
18251 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'
18252 fi
18253 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18254 hardcode_libdir_separator_GCJ=:
18255 hardcode_direct_GCJ=yes
18256
18257 # hardcode_minus_L: Not really in the search PATH,
18258 # but as the default location of the library.
18259 hardcode_minus_L_GCJ=yes
18260 export_dynamic_flag_spec_GCJ='${wl}-E'
18261 ;;
18262
18263 hpux10*)
18264 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18265 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18266 else
18267 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18268 fi
18269 if test "$with_gnu_ld" = no; then
18270 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18271 hardcode_libdir_separator_GCJ=:
18272
18273 hardcode_direct_GCJ=yes
18274 export_dynamic_flag_spec_GCJ='${wl}-E'
18275
18276 # hardcode_minus_L: Not really in the search PATH,
18277 # but as the default location of the library.
18278 hardcode_minus_L_GCJ=yes
18279 fi
18280 ;;
18281
18282 hpux11*)
18283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18284 case $host_cpu in
18285 hppa*64*)
18286 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18287 ;;
18288 ia64*)
18289 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18290 ;;
18291 *)
18292 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18293 ;;
18294 esac
18295 else
18296 case $host_cpu in
18297 hppa*64*)
18298 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18299 ;;
18300 ia64*)
18301 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18302 ;;
18303 *)
18304 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18305 ;;
18306 esac
18307 fi
18308 if test "$with_gnu_ld" = no; then
18309 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18310 hardcode_libdir_separator_GCJ=:
18311
18312 case $host_cpu in
18313 hppa*64*|ia64*)
18314 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18315 hardcode_direct_GCJ=no
18316 hardcode_shlibpath_var_GCJ=no
18317 ;;
18318 *)
18319 hardcode_direct_GCJ=yes
18320 export_dynamic_flag_spec_GCJ='${wl}-E'
18321
18322 # hardcode_minus_L: Not really in the search PATH,
18323 # but as the default location of the library.
18324 hardcode_minus_L_GCJ=yes
18325 ;;
18326 esac
18327 fi
18328 ;;
18329
18330 irix5* | irix6* | nonstopux*)
18331 if test "$GCC" = yes; then
18332 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'
18333 else
18334 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'
18335 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18336 fi
18337 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18338 hardcode_libdir_separator_GCJ=:
18339 link_all_deplibs_GCJ=yes
18340 ;;
18341
18342 netbsd*)
18343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18344 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18345 else
18346 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18347 fi
18348 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18349 hardcode_direct_GCJ=yes
18350 hardcode_shlibpath_var_GCJ=no
18351 ;;
18352
18353 newsos6)
18354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355 hardcode_direct_GCJ=yes
18356 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18357 hardcode_libdir_separator_GCJ=:
18358 hardcode_shlibpath_var_GCJ=no
18359 ;;
18360
18361 openbsd*)
18362 hardcode_direct_GCJ=yes
18363 hardcode_shlibpath_var_GCJ=no
18364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18365 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18366 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18368 export_dynamic_flag_spec_GCJ='${wl}-E'
18369 else
18370 case $host_os in
18371 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18372 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18373 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18374 ;;
18375 *)
18376 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18378 ;;
18379 esac
18380 fi
18381 ;;
18382
18383 os2*)
18384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18385 hardcode_minus_L_GCJ=yes
18386 allow_undefined_flag_GCJ=unsupported
18387 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'
18388 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18389 ;;
18390
18391 osf3*)
18392 if test "$GCC" = yes; then
18393 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18394 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'
18395 else
18396 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18397 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'
18398 fi
18399 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18400 hardcode_libdir_separator_GCJ=:
18401 ;;
18402
18403 osf4* | osf5*) # as osf3* with the addition of -msym flag
18404 if test "$GCC" = yes; then
18405 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18406 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'
18407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18408 else
18409 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18410 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'
18411 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~
18412 $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'
18413
18414 # Both c and cxx compiler support -rpath directly
18415 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18416 fi
18417 hardcode_libdir_separator_GCJ=:
18418 ;;
18419
18420 solaris*)
18421 no_undefined_flag_GCJ=' -z text'
18422 if test "$GCC" = yes; then
18423 wlarc='${wl}'
18424 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18425 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18426 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18427 else
18428 wlarc=''
18429 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18430 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18432 fi
18433 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18434 hardcode_shlibpath_var_GCJ=no
18435 case $host_os in
18436 solaris2.[0-5] | solaris2.[0-5].*) ;;
18437 *)
18438 # The compiler driver will combine linker options so we
18439 # cannot just pass the convience library names through
18440 # without $wl, iff we do not link with $LD.
18441 # Luckily, gcc supports the same syntax we need for Sun Studio.
18442 # Supported since Solaris 2.6 (maybe 2.5.1?)
18443 case $wlarc in
18444 '')
18445 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18446 *)
18447 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' ;;
18448 esac ;;
18449 esac
18450 link_all_deplibs_GCJ=yes
18451 ;;
18452
18453 sunos4*)
18454 if test "x$host_vendor" = xsequent; then
18455 # Use $CC to link under sequent, because it throws in some extra .o
18456 # files that make .init and .fini sections work.
18457 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18458 else
18459 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18460 fi
18461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18462 hardcode_direct_GCJ=yes
18463 hardcode_minus_L_GCJ=yes
18464 hardcode_shlibpath_var_GCJ=no
18465 ;;
18466
18467 sysv4)
18468 case $host_vendor in
18469 sni)
18470 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18471 hardcode_direct_GCJ=yes # is this really true???
18472 ;;
18473 siemens)
18474 ## LD is ld it makes a PLAMLIB
18475 ## CC just makes a GrossModule.
18476 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18477 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18478 hardcode_direct_GCJ=no
18479 ;;
18480 motorola)
18481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18483 ;;
18484 esac
18485 runpath_var='LD_RUN_PATH'
18486 hardcode_shlibpath_var_GCJ=no
18487 ;;
18488
18489 sysv4.3*)
18490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18491 hardcode_shlibpath_var_GCJ=no
18492 export_dynamic_flag_spec_GCJ='-Bexport'
18493 ;;
18494
18495 sysv4*MP*)
18496 if test -d /usr/nec; then
18497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18498 hardcode_shlibpath_var_GCJ=no
18499 runpath_var=LD_RUN_PATH
18500 hardcode_runpath_var=yes
18501 ld_shlibs_GCJ=yes
18502 fi
18503 ;;
18504
18505 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18506 no_undefined_flag_GCJ='${wl}-z,text'
18507 archive_cmds_need_lc_GCJ=no
18508 hardcode_shlibpath_var_GCJ=no
18509 runpath_var='LD_RUN_PATH'
18510
18511 if test "$GCC" = yes; then
18512 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18513 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18514 else
18515 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18516 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18517 fi
18518 ;;
18519
18520 sysv5* | sco3.2v5* | sco5v6*)
18521 # Note: We can NOT use -z defs as we might desire, because we do not
18522 # link with -lc, and that would cause any symbols used from libc to
18523 # always be unresolved, which means just about no library would
18524 # ever link correctly. If we're not using GNU ld we use -z text
18525 # though, which does catch some bad symbols but isn't as heavy-handed
18526 # as -z defs.
18527 no_undefined_flag_GCJ='${wl}-z,text'
18528 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18529 archive_cmds_need_lc_GCJ=no
18530 hardcode_shlibpath_var_GCJ=no
18531 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18532 hardcode_libdir_separator_GCJ=':'
18533 link_all_deplibs_GCJ=yes
18534 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18535 runpath_var='LD_RUN_PATH'
18536
18537 if test "$GCC" = yes; then
18538 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18539 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18540 else
18541 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18542 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18543 fi
18544 ;;
18545
18546 uts4*)
18547 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18549 hardcode_shlibpath_var_GCJ=no
18550 ;;
18551
18552 *)
18553 ld_shlibs_GCJ=no
18554 ;;
18555 esac
18556 fi
18557
18558 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18559 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18560 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18561
18562 #
18563 # Do we need to explicitly link libc?
18564 #
18565 case "x$archive_cmds_need_lc_GCJ" in
18566 x|xyes)
18567 # Assume -lc should be added
18568 archive_cmds_need_lc_GCJ=yes
18569
18570 if test "$enable_shared" = yes && test "$GCC" = yes; then
18571 case $archive_cmds_GCJ in
18572 *'~'*)
18573 # FIXME: we may have to deal with multi-command sequences.
18574 ;;
18575 '$CC '*)
18576 # Test whether the compiler implicitly links with -lc since on some
18577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18578 # to ld, don't add -lc before -lgcc.
18579 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18581 $rm conftest*
18582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18583
18584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18585 (eval $ac_compile) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } 2>conftest.err; then
18589 soname=conftest
18590 lib=conftest
18591 libobjs=conftest.$ac_objext
18592 deplibs=
18593 wl=$lt_prog_compiler_wl_GCJ
18594 pic_flag=$lt_prog_compiler_pic_GCJ
18595 compiler_flags=-v
18596 linker_flags=-v
18597 verstring=
18598 output_objdir=.
18599 libname=conftest
18600 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18601 allow_undefined_flag_GCJ=
18602 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18603 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }
18607 then
18608 archive_cmds_need_lc_GCJ=no
18609 else
18610 archive_cmds_need_lc_GCJ=yes
18611 fi
18612 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18613 else
18614 cat conftest.err 1>&5
18615 fi
18616 $rm conftest*
18617 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18618 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18619 ;;
18620 esac
18621 fi
18622 ;;
18623 esac
18624
18625 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18626 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18627 library_names_spec=
18628 libname_spec='lib$name'
18629 soname_spec=
18630 shrext_cmds=".so"
18631 postinstall_cmds=
18632 postuninstall_cmds=
18633 finish_cmds=
18634 finish_eval=
18635 shlibpath_var=
18636 shlibpath_overrides_runpath=unknown
18637 version_type=none
18638 dynamic_linker="$host_os ld.so"
18639 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18640 if test "$GCC" = yes; then
18641 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18642 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18643 # if the path contains ";" then we assume it to be the separator
18644 # otherwise default to the standard path separator (i.e. ":") - it is
18645 # assumed that no part of a normal pathname contains ";" but that should
18646 # okay in the real world where ";" in dirpaths is itself problematic.
18647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18648 else
18649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18650 fi
18651 else
18652 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18653 fi
18654 need_lib_prefix=unknown
18655 hardcode_into_libs=no
18656
18657 # when you set need_version to no, make sure it does not cause -set_version
18658 # flags to be left without arguments
18659 need_version=unknown
18660
18661 case $host_os in
18662 aix3*)
18663 version_type=linux
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18665 shlibpath_var=LIBPATH
18666
18667 # AIX 3 has no versioning support, so we append a major version to the name.
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 ;;
18670
18671 aix4* | aix5*)
18672 version_type=linux
18673 need_lib_prefix=no
18674 need_version=no
18675 hardcode_into_libs=yes
18676 if test "$host_cpu" = ia64; then
18677 # AIX 5 supports IA64
18678 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 else
18681 # With GCC up to 2.95.x, collect2 would create an import file
18682 # for dependence libraries. The import file would start with
18683 # the line `#! .'. This would cause the generated library to
18684 # depend on `.', always an invalid library. This was fixed in
18685 # development snapshots of GCC prior to 3.0.
18686 case $host_os in
18687 aix4 | aix4.[01] | aix4.[01].*)
18688 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18689 echo ' yes '
18690 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18691 :
18692 else
18693 can_build_shared=no
18694 fi
18695 ;;
18696 esac
18697 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18698 # soname into executable. Probably we can add versioning support to
18699 # collect2, so additional links can be useful in future.
18700 if test "$aix_use_runtimelinking" = yes; then
18701 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18702 # instead of lib<name>.a to let people know that these are not
18703 # typical AIX shared libraries.
18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18705 else
18706 # We preserve .a as extension for shared libraries through AIX4.2
18707 # and later when we are not doing run time linking.
18708 library_names_spec='${libname}${release}.a $libname.a'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 fi
18711 shlibpath_var=LIBPATH
18712 fi
18713 ;;
18714
18715 amigaos*)
18716 library_names_spec='$libname.ixlibrary $libname.a'
18717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18718 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'
18719 ;;
18720
18721 beos*)
18722 library_names_spec='${libname}${shared_ext}'
18723 dynamic_linker="$host_os ld.so"
18724 shlibpath_var=LIBRARY_PATH
18725 ;;
18726
18727 bsdi[45]*)
18728 version_type=linux
18729 need_version=no
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731 soname_spec='${libname}${release}${shared_ext}$major'
18732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18736 # the default ld.so.conf also contains /usr/contrib/lib and
18737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18738 # libtool to hard-code these into programs
18739 ;;
18740
18741 cygwin* | mingw* | pw32*)
18742 version_type=windows
18743 shrext_cmds=".dll"
18744 need_version=no
18745 need_lib_prefix=no
18746
18747 case $GCC,$host_os in
18748 yes,cygwin* | yes,mingw* | yes,pw32*)
18749 library_names_spec='$libname.dll.a'
18750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18751 postinstall_cmds='base_file=`basename \${file}`~
18752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18753 dldir=$destdir/`dirname \$dlpath`~
18754 test -d \$dldir || mkdir -p \$dldir~
18755 $install_prog $dir/$dlname \$dldir/$dlname~
18756 chmod a+x \$dldir/$dlname'
18757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18758 dlpath=$dir/\$dldll~
18759 $rm \$dlpath'
18760 shlibpath_overrides_runpath=yes
18761
18762 case $host_os in
18763 cygwin*)
18764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18766 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18767 ;;
18768 mingw*)
18769 # MinGW DLLs use traditional 'lib' prefix
18770 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18771 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18772 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18773 # It is most probably a Windows format PATH printed by
18774 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18775 # path with ; separators, and with drive letters. We can handle the
18776 # drive letters (cygwin fileutils understands them), so leave them,
18777 # especially as we might pass files found there to a mingw objdump,
18778 # which wouldn't understand a cygwinified path. Ahh.
18779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18780 else
18781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18782 fi
18783 ;;
18784 pw32*)
18785 # pw32 DLLs use 'pw' prefix rather than 'lib'
18786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18787 ;;
18788 esac
18789 ;;
18790
18791 *)
18792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18793 ;;
18794 esac
18795 dynamic_linker='Win32 ld.exe'
18796 # FIXME: first we should search . and the directory the executable is in
18797 shlibpath_var=PATH
18798 ;;
18799
18800 darwin* | rhapsody*)
18801 dynamic_linker="$host_os dyld"
18802 version_type=darwin
18803 need_lib_prefix=no
18804 need_version=no
18805 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18806 soname_spec='${libname}${release}${major}$shared_ext'
18807 shlibpath_overrides_runpath=yes
18808 shlibpath_var=DYLD_LIBRARY_PATH
18809 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18810 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18811 if test "$GCC" = yes; then
18812 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"`
18813 else
18814 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18815 fi
18816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18817 ;;
18818
18819 dgux*)
18820 version_type=linux
18821 need_lib_prefix=no
18822 need_version=no
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18824 soname_spec='${libname}${release}${shared_ext}$major'
18825 shlibpath_var=LD_LIBRARY_PATH
18826 ;;
18827
18828 freebsd1*)
18829 dynamic_linker=no
18830 ;;
18831
18832 kfreebsd*-gnu)
18833 version_type=linux
18834 need_lib_prefix=no
18835 need_version=no
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18839 shlibpath_overrides_runpath=no
18840 hardcode_into_libs=yes
18841 dynamic_linker='GNU ld.so'
18842 ;;
18843
18844 freebsd* | dragonfly*)
18845 # DragonFly does not have aout. When/if they implement a new
18846 # versioning mechanism, adjust this.
18847 if test -x /usr/bin/objformat; then
18848 objformat=`/usr/bin/objformat`
18849 else
18850 case $host_os in
18851 freebsd[123]*) objformat=aout ;;
18852 *) objformat=elf ;;
18853 esac
18854 fi
18855 version_type=freebsd-$objformat
18856 case $version_type in
18857 freebsd-elf*)
18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18859 need_version=no
18860 need_lib_prefix=no
18861 ;;
18862 freebsd-*)
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18864 need_version=yes
18865 ;;
18866 esac
18867 shlibpath_var=LD_LIBRARY_PATH
18868 case $host_os in
18869 freebsd2*)
18870 shlibpath_overrides_runpath=yes
18871 ;;
18872 freebsd3.[01]* | freebsdelf3.[01]*)
18873 shlibpath_overrides_runpath=yes
18874 hardcode_into_libs=yes
18875 ;;
18876 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18877 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18878 shlibpath_overrides_runpath=no
18879 hardcode_into_libs=yes
18880 ;;
18881 freebsd*) # from 4.6 on
18882 shlibpath_overrides_runpath=yes
18883 hardcode_into_libs=yes
18884 ;;
18885 esac
18886 ;;
18887
18888 gnu*)
18889 version_type=linux
18890 need_lib_prefix=no
18891 need_version=no
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 shlibpath_var=LD_LIBRARY_PATH
18895 hardcode_into_libs=yes
18896 ;;
18897
18898 hpux9* | hpux10* | hpux11*)
18899 # Give a soname corresponding to the major version so that dld.sl refuses to
18900 # link against other versions.
18901 version_type=sunos
18902 need_lib_prefix=no
18903 need_version=no
18904 case $host_cpu in
18905 ia64*)
18906 shrext_cmds='.so'
18907 hardcode_into_libs=yes
18908 dynamic_linker="$host_os dld.so"
18909 shlibpath_var=LD_LIBRARY_PATH
18910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18912 soname_spec='${libname}${release}${shared_ext}$major'
18913 if test "X$HPUX_IA64_MODE" = X32; then
18914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18915 else
18916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18917 fi
18918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18919 ;;
18920 hppa*64*)
18921 shrext_cmds='.sl'
18922 hardcode_into_libs=yes
18923 dynamic_linker="$host_os dld.sl"
18924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927 soname_spec='${libname}${release}${shared_ext}$major'
18928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18930 ;;
18931 *)
18932 shrext_cmds='.sl'
18933 dynamic_linker="$host_os dld.sl"
18934 shlibpath_var=SHLIB_PATH
18935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18937 soname_spec='${libname}${release}${shared_ext}$major'
18938 ;;
18939 esac
18940 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18941 postinstall_cmds='chmod 555 $lib'
18942 ;;
18943
18944 interix3*)
18945 version_type=linux
18946 need_lib_prefix=no
18947 need_version=no
18948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18949 soname_spec='${libname}${release}${shared_ext}$major'
18950 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18951 shlibpath_var=LD_LIBRARY_PATH
18952 shlibpath_overrides_runpath=no
18953 hardcode_into_libs=yes
18954 ;;
18955
18956 irix5* | irix6* | nonstopux*)
18957 case $host_os in
18958 nonstopux*) version_type=nonstopux ;;
18959 *)
18960 if test "$lt_cv_prog_gnu_ld" = yes; then
18961 version_type=linux
18962 else
18963 version_type=irix
18964 fi ;;
18965 esac
18966 need_lib_prefix=no
18967 need_version=no
18968 soname_spec='${libname}${release}${shared_ext}$major'
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18970 case $host_os in
18971 irix5* | nonstopux*)
18972 libsuff= shlibsuff=
18973 ;;
18974 *)
18975 case $LD in # libtool.m4 will add one of these switches to LD
18976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18977 libsuff= shlibsuff= libmagic=32-bit;;
18978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18979 libsuff=32 shlibsuff=N32 libmagic=N32;;
18980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18982 *) libsuff= shlibsuff= libmagic=never-match;;
18983 esac
18984 ;;
18985 esac
18986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18987 shlibpath_overrides_runpath=no
18988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18990 hardcode_into_libs=yes
18991 ;;
18992
18993 # No shared lib support for Linux oldld, aout, or coff.
18994 linux*oldld* | linux*aout* | linux*coff*)
18995 dynamic_linker=no
18996 ;;
18997
18998 # This must be Linux ELF.
18999 linux*)
19000 version_type=linux
19001 need_lib_prefix=no
19002 need_version=no
19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19004 soname_spec='${libname}${release}${shared_ext}$major'
19005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19006 shlibpath_var=LD_LIBRARY_PATH
19007 shlibpath_overrides_runpath=no
19008 # This implies no fast_install, which is unacceptable.
19009 # Some rework will be needed to allow for fast_install
19010 # before this can be enabled.
19011 hardcode_into_libs=yes
19012
19013 # Append ld.so.conf contents to the search path
19014 if test -f /etc/ld.so.conf; then
19015 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' ' '`
19016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19017 fi
19018
19019 # We used to test for /lib/ld.so.1 and disable shared libraries on
19020 # powerpc, because MkLinux only supported shared libraries with the
19021 # GNU dynamic linker. Since this was broken with cross compilers,
19022 # most powerpc-linux boxes support dynamic linking these days and
19023 # people can always --disable-shared, the test was removed, and we
19024 # assume the GNU/Linux dynamic linker is in use.
19025 dynamic_linker='GNU/Linux ld.so'
19026 ;;
19027
19028 knetbsd*-gnu)
19029 version_type=linux
19030 need_lib_prefix=no
19031 need_version=no
19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19033 soname_spec='${libname}${release}${shared_ext}$major'
19034 shlibpath_var=LD_LIBRARY_PATH
19035 shlibpath_overrides_runpath=no
19036 hardcode_into_libs=yes
19037 dynamic_linker='GNU ld.so'
19038 ;;
19039
19040 netbsd*)
19041 version_type=sunos
19042 need_lib_prefix=no
19043 need_version=no
19044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19047 dynamic_linker='NetBSD (a.out) ld.so'
19048 else
19049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19050 soname_spec='${libname}${release}${shared_ext}$major'
19051 dynamic_linker='NetBSD ld.elf_so'
19052 fi
19053 shlibpath_var=LD_LIBRARY_PATH
19054 shlibpath_overrides_runpath=yes
19055 hardcode_into_libs=yes
19056 ;;
19057
19058 newsos6)
19059 version_type=linux
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061 shlibpath_var=LD_LIBRARY_PATH
19062 shlibpath_overrides_runpath=yes
19063 ;;
19064
19065 nto-qnx*)
19066 version_type=linux
19067 need_lib_prefix=no
19068 need_version=no
19069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070 soname_spec='${libname}${release}${shared_ext}$major'
19071 shlibpath_var=LD_LIBRARY_PATH
19072 shlibpath_overrides_runpath=yes
19073 ;;
19074
19075 openbsd*)
19076 version_type=sunos
19077 sys_lib_dlsearch_path_spec="/usr/lib"
19078 need_lib_prefix=no
19079 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19080 case $host_os in
19081 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19082 *) need_version=no ;;
19083 esac
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19086 shlibpath_var=LD_LIBRARY_PATH
19087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19088 case $host_os in
19089 openbsd2.[89] | openbsd2.[89].*)
19090 shlibpath_overrides_runpath=no
19091 ;;
19092 *)
19093 shlibpath_overrides_runpath=yes
19094 ;;
19095 esac
19096 else
19097 shlibpath_overrides_runpath=yes
19098 fi
19099 ;;
19100
19101 os2*)
19102 libname_spec='$name'
19103 shrext_cmds=".dll"
19104 need_lib_prefix=no
19105 library_names_spec='$libname${shared_ext} $libname.a'
19106 dynamic_linker='OS/2 ld.exe'
19107 shlibpath_var=LIBPATH
19108 ;;
19109
19110 osf3* | osf4* | osf5*)
19111 version_type=osf
19112 need_lib_prefix=no
19113 need_version=no
19114 soname_spec='${libname}${release}${shared_ext}$major'
19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19116 shlibpath_var=LD_LIBRARY_PATH
19117 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19118 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19119 ;;
19120
19121 solaris*)
19122 version_type=linux
19123 need_lib_prefix=no
19124 need_version=no
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 shlibpath_var=LD_LIBRARY_PATH
19128 shlibpath_overrides_runpath=yes
19129 hardcode_into_libs=yes
19130 # ldd complains unless libraries are executable
19131 postinstall_cmds='chmod +x $lib'
19132 ;;
19133
19134 sunos4*)
19135 version_type=sunos
19136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19138 shlibpath_var=LD_LIBRARY_PATH
19139 shlibpath_overrides_runpath=yes
19140 if test "$with_gnu_ld" = yes; then
19141 need_lib_prefix=no
19142 fi
19143 need_version=yes
19144 ;;
19145
19146 sysv4 | sysv4.3*)
19147 version_type=linux
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 case $host_vendor in
19152 sni)
19153 shlibpath_overrides_runpath=no
19154 need_lib_prefix=no
19155 export_dynamic_flag_spec='${wl}-Blargedynsym'
19156 runpath_var=LD_RUN_PATH
19157 ;;
19158 siemens)
19159 need_lib_prefix=no
19160 ;;
19161 motorola)
19162 need_lib_prefix=no
19163 need_version=no
19164 shlibpath_overrides_runpath=no
19165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19166 ;;
19167 esac
19168 ;;
19169
19170 sysv4*MP*)
19171 if test -d /usr/nec ;then
19172 version_type=linux
19173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19174 soname_spec='$libname${shared_ext}.$major'
19175 shlibpath_var=LD_LIBRARY_PATH
19176 fi
19177 ;;
19178
19179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19180 version_type=freebsd-elf
19181 need_lib_prefix=no
19182 need_version=no
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LD_LIBRARY_PATH
19186 hardcode_into_libs=yes
19187 if test "$with_gnu_ld" = yes; then
19188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19189 shlibpath_overrides_runpath=no
19190 else
19191 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19192 shlibpath_overrides_runpath=yes
19193 case $host_os in
19194 sco3.2v5*)
19195 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19196 ;;
19197 esac
19198 fi
19199 sys_lib_dlsearch_path_spec='/usr/lib'
19200 ;;
19201
19202 uts4*)
19203 version_type=linux
19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205 soname_spec='${libname}${release}${shared_ext}$major'
19206 shlibpath_var=LD_LIBRARY_PATH
19207 ;;
19208
19209 *)
19210 dynamic_linker=no
19211 ;;
19212 esac
19213 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19214 echo "${ECHO_T}$dynamic_linker" >&6
19215 test "$dynamic_linker" = no && can_build_shared=no
19216
19217 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19218 if test "$GCC" = yes; then
19219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19220 fi
19221
19222 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19223 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19224 hardcode_action_GCJ=
19225 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19226 test -n "$runpath_var_GCJ" || \
19227 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19228
19229 # We can hardcode non-existant directories.
19230 if test "$hardcode_direct_GCJ" != no &&
19231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19232 # have to relink, otherwise we might link with an installed library
19233 # when we should be linking with a yet-to-be-installed one
19234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19235 test "$hardcode_minus_L_GCJ" != no; then
19236 # Linking always hardcodes the temporary library directory.
19237 hardcode_action_GCJ=relink
19238 else
19239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19240 hardcode_action_GCJ=immediate
19241 fi
19242 else
19243 # We cannot hardcode anything, or else we can only hardcode existing
19244 # directories.
19245 hardcode_action_GCJ=unsupported
19246 fi
19247 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19248 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19249
19250 if test "$hardcode_action_GCJ" = relink; then
19251 # Fast installation is not supported
19252 enable_fast_install=no
19253 elif test "$shlibpath_overrides_runpath" = yes ||
19254 test "$enable_shared" = no; then
19255 # Fast installation is not necessary
19256 enable_fast_install=needless
19257 fi
19258
19259
19260 # The else clause should only fire when bootstrapping the
19261 # libtool distribution, otherwise you forgot to ship ltmain.sh
19262 # with your package, and you will get complaints that there are
19263 # no rules to generate ltmain.sh.
19264 if test -f "$ltmain"; then
19265 # See if we are running on zsh, and set the options which allow our commands through
19266 # without removal of \ escapes.
19267 if test -n "${ZSH_VERSION+set}" ; then
19268 setopt NO_GLOB_SUBST
19269 fi
19270 # Now quote all the things that may contain metacharacters while being
19271 # careful not to overquote the AC_SUBSTed values. We take copies of the
19272 # variables and quote the copies for generation of the libtool script.
19273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19274 SED SHELL STRIP \
19275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19277 deplibs_check_method reload_flag reload_cmds need_locks \
19278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19279 lt_cv_sys_global_symbol_to_c_name_address \
19280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19281 old_postinstall_cmds old_postuninstall_cmds \
19282 compiler_GCJ \
19283 CC_GCJ \
19284 LD_GCJ \
19285 lt_prog_compiler_wl_GCJ \
19286 lt_prog_compiler_pic_GCJ \
19287 lt_prog_compiler_static_GCJ \
19288 lt_prog_compiler_no_builtin_flag_GCJ \
19289 export_dynamic_flag_spec_GCJ \
19290 thread_safe_flag_spec_GCJ \
19291 whole_archive_flag_spec_GCJ \
19292 enable_shared_with_static_runtimes_GCJ \
19293 old_archive_cmds_GCJ \
19294 old_archive_from_new_cmds_GCJ \
19295 predep_objects_GCJ \
19296 postdep_objects_GCJ \
19297 predeps_GCJ \
19298 postdeps_GCJ \
19299 compiler_lib_search_path_GCJ \
19300 archive_cmds_GCJ \
19301 archive_expsym_cmds_GCJ \
19302 postinstall_cmds_GCJ \
19303 postuninstall_cmds_GCJ \
19304 old_archive_from_expsyms_cmds_GCJ \
19305 allow_undefined_flag_GCJ \
19306 no_undefined_flag_GCJ \
19307 export_symbols_cmds_GCJ \
19308 hardcode_libdir_flag_spec_GCJ \
19309 hardcode_libdir_flag_spec_ld_GCJ \
19310 hardcode_libdir_separator_GCJ \
19311 hardcode_automatic_GCJ \
19312 module_cmds_GCJ \
19313 module_expsym_cmds_GCJ \
19314 lt_cv_prog_compiler_c_o_GCJ \
19315 exclude_expsyms_GCJ \
19316 include_expsyms_GCJ; do
19317
19318 case $var in
19319 old_archive_cmds_GCJ | \
19320 old_archive_from_new_cmds_GCJ | \
19321 archive_cmds_GCJ | \
19322 archive_expsym_cmds_GCJ | \
19323 module_cmds_GCJ | \
19324 module_expsym_cmds_GCJ | \
19325 old_archive_from_expsyms_cmds_GCJ | \
19326 export_symbols_cmds_GCJ | \
19327 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19328 postinstall_cmds | postuninstall_cmds | \
19329 old_postinstall_cmds | old_postuninstall_cmds | \
19330 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19331 # Double-quote double-evaled strings.
19332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19333 ;;
19334 *)
19335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19336 ;;
19337 esac
19338 done
19339
19340 case $lt_echo in
19341 *'\$0 --fallback-echo"')
19342 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19343 ;;
19344 esac
19345
19346 cfgfile="$ofile"
19347
19348 cat <<__EOF__ >> "$cfgfile"
19349 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19350
19351 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19352
19353 # Shell to use when invoking shell scripts.
19354 SHELL=$lt_SHELL
19355
19356 # Whether or not to build shared libraries.
19357 build_libtool_libs=$enable_shared
19358
19359 # Whether or not to build static libraries.
19360 build_old_libs=$enable_static
19361
19362 # Whether or not to add -lc for building shared libraries.
19363 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19364
19365 # Whether or not to disallow shared libs when runtime libs are static
19366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19367
19368 # Whether or not to optimize for fast installation.
19369 fast_install=$enable_fast_install
19370
19371 # The host system.
19372 host_alias=$host_alias
19373 host=$host
19374 host_os=$host_os
19375
19376 # The build system.
19377 build_alias=$build_alias
19378 build=$build
19379 build_os=$build_os
19380
19381 # An echo program that does not interpret backslashes.
19382 echo=$lt_echo
19383
19384 # The archiver.
19385 AR=$lt_AR
19386 AR_FLAGS=$lt_AR_FLAGS
19387
19388 # A C compiler.
19389 LTCC=$lt_LTCC
19390
19391 # LTCC compiler flags.
19392 LTCFLAGS=$lt_LTCFLAGS
19393
19394 # A language-specific compiler.
19395 CC=$lt_compiler_GCJ
19396
19397 # Is the compiler the GNU C compiler?
19398 with_gcc=$GCC_GCJ
19399
19400 # An ERE matcher.
19401 EGREP=$lt_EGREP
19402
19403 # The linker used to build libraries.
19404 LD=$lt_LD_GCJ
19405
19406 # Whether we need hard or soft links.
19407 LN_S=$lt_LN_S
19408
19409 # A BSD-compatible nm program.
19410 NM=$lt_NM
19411
19412 # A symbol stripping program
19413 STRIP=$lt_STRIP
19414
19415 # Used to examine libraries when file_magic_cmd begins "file"
19416 MAGIC_CMD=$MAGIC_CMD
19417
19418 # Used on cygwin: DLL creation program.
19419 DLLTOOL="$DLLTOOL"
19420
19421 # Used on cygwin: object dumper.
19422 OBJDUMP="$OBJDUMP"
19423
19424 # Used on cygwin: assembler.
19425 AS="$AS"
19426
19427 # The name of the directory that contains temporary libtool files.
19428 objdir=$objdir
19429
19430 # How to create reloadable object files.
19431 reload_flag=$lt_reload_flag
19432 reload_cmds=$lt_reload_cmds
19433
19434 # How to pass a linker flag through the compiler.
19435 wl=$lt_lt_prog_compiler_wl_GCJ
19436
19437 # Object file suffix (normally "o").
19438 objext="$ac_objext"
19439
19440 # Old archive suffix (normally "a").
19441 libext="$libext"
19442
19443 # Shared library suffix (normally ".so").
19444 shrext_cmds='$shrext_cmds'
19445
19446 # Executable file suffix (normally "").
19447 exeext="$exeext"
19448
19449 # Additional compiler flags for building library objects.
19450 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19451 pic_mode=$pic_mode
19452
19453 # What is the maximum length of a command?
19454 max_cmd_len=$lt_cv_sys_max_cmd_len
19455
19456 # Does compiler simultaneously support -c and -o options?
19457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19458
19459 # Must we lock files when doing compilation?
19460 need_locks=$lt_need_locks
19461
19462 # Do we need the lib prefix for modules?
19463 need_lib_prefix=$need_lib_prefix
19464
19465 # Do we need a version for libraries?
19466 need_version=$need_version
19467
19468 # Whether dlopen is supported.
19469 dlopen_support=$enable_dlopen
19470
19471 # Whether dlopen of programs is supported.
19472 dlopen_self=$enable_dlopen_self
19473
19474 # Whether dlopen of statically linked programs is supported.
19475 dlopen_self_static=$enable_dlopen_self_static
19476
19477 # Compiler flag to prevent dynamic linking.
19478 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19479
19480 # Compiler flag to turn off builtin functions.
19481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19482
19483 # Compiler flag to allow reflexive dlopens.
19484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19485
19486 # Compiler flag to generate shared objects directly from archives.
19487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19488
19489 # Compiler flag to generate thread-safe objects.
19490 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19491
19492 # Library versioning type.
19493 version_type=$version_type
19494
19495 # Format of library name prefix.
19496 libname_spec=$lt_libname_spec
19497
19498 # List of archive names. First name is the real one, the rest are links.
19499 # The last name is the one that the linker finds with -lNAME.
19500 library_names_spec=$lt_library_names_spec
19501
19502 # The coded name of the library, if different from the real name.
19503 soname_spec=$lt_soname_spec
19504
19505 # Commands used to build and install an old-style archive.
19506 RANLIB=$lt_RANLIB
19507 old_archive_cmds=$lt_old_archive_cmds_GCJ
19508 old_postinstall_cmds=$lt_old_postinstall_cmds
19509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19510
19511 # Create an old-style archive from a shared archive.
19512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19513
19514 # Create a temporary old-style archive to link instead of a shared archive.
19515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19516
19517 # Commands used to build and install a shared archive.
19518 archive_cmds=$lt_archive_cmds_GCJ
19519 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19520 postinstall_cmds=$lt_postinstall_cmds
19521 postuninstall_cmds=$lt_postuninstall_cmds
19522
19523 # Commands used to build a loadable module (assumed same as above if empty)
19524 module_cmds=$lt_module_cmds_GCJ
19525 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19526
19527 # Commands to strip libraries.
19528 old_striplib=$lt_old_striplib
19529 striplib=$lt_striplib
19530
19531 # Dependencies to place before the objects being linked to create a
19532 # shared library.
19533 predep_objects=$lt_predep_objects_GCJ
19534
19535 # Dependencies to place after the objects being linked to create a
19536 # shared library.
19537 postdep_objects=$lt_postdep_objects_GCJ
19538
19539 # Dependencies to place before the objects being linked to create a
19540 # shared library.
19541 predeps=$lt_predeps_GCJ
19542
19543 # Dependencies to place after the objects being linked to create a
19544 # shared library.
19545 postdeps=$lt_postdeps_GCJ
19546
19547 # The library search path used internally by the compiler when linking
19548 # a shared library.
19549 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19550
19551 # Method to check whether dependent libraries are shared objects.
19552 deplibs_check_method=$lt_deplibs_check_method
19553
19554 # Command to use when deplibs_check_method == file_magic.
19555 file_magic_cmd=$lt_file_magic_cmd
19556
19557 # Flag that allows shared libraries with undefined symbols to be built.
19558 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19559
19560 # Flag that forces no undefined symbols.
19561 no_undefined_flag=$lt_no_undefined_flag_GCJ
19562
19563 # Commands used to finish a libtool library installation in a directory.
19564 finish_cmds=$lt_finish_cmds
19565
19566 # Same as above, but a single script fragment to be evaled but not shown.
19567 finish_eval=$lt_finish_eval
19568
19569 # Take the output of nm and produce a listing of raw symbols and C names.
19570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19571
19572 # Transform the output of nm in a proper C declaration
19573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19574
19575 # Transform the output of nm in a C name address pair
19576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19577
19578 # This is the shared library runtime path variable.
19579 runpath_var=$runpath_var
19580
19581 # This is the shared library path variable.
19582 shlibpath_var=$shlibpath_var
19583
19584 # Is shlibpath searched before the hard-coded library search path?
19585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19586
19587 # How to hardcode a shared library path into an executable.
19588 hardcode_action=$hardcode_action_GCJ
19589
19590 # Whether we should hardcode library paths into libraries.
19591 hardcode_into_libs=$hardcode_into_libs
19592
19593 # Flag to hardcode \$libdir into a binary during linking.
19594 # This must work even if \$libdir does not exist.
19595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19596
19597 # If ld is used when linking, flag to hardcode \$libdir into
19598 # a binary during linking. This must work even if \$libdir does
19599 # not exist.
19600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19601
19602 # Whether we need a single -rpath flag with a separated argument.
19603 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19604
19605 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19606 # resulting binary.
19607 hardcode_direct=$hardcode_direct_GCJ
19608
19609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19610 # resulting binary.
19611 hardcode_minus_L=$hardcode_minus_L_GCJ
19612
19613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19614 # the resulting binary.
19615 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19616
19617 # Set to yes if building a shared library automatically hardcodes DIR into the library
19618 # and all subsequent libraries and executables linked against it.
19619 hardcode_automatic=$hardcode_automatic_GCJ
19620
19621 # Variables whose values should be saved in libtool wrapper scripts and
19622 # restored at relink time.
19623 variables_saved_for_relink="$variables_saved_for_relink"
19624
19625 # Whether libtool must link a program against all its dependency libraries.
19626 link_all_deplibs=$link_all_deplibs_GCJ
19627
19628 # Compile-time system search path for libraries
19629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19630
19631 # Run-time system search path for libraries
19632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19633
19634 # Fix the shell variable \$srcfile for the compiler.
19635 fix_srcfile_path="$fix_srcfile_path_GCJ"
19636
19637 # Set to yes if exported symbols are required.
19638 always_export_symbols=$always_export_symbols_GCJ
19639
19640 # The commands to list exported symbols.
19641 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19642
19643 # The commands to extract the exported symbol list from a shared archive.
19644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19645
19646 # Symbols that should not be listed in the preloaded symbols.
19647 exclude_expsyms=$lt_exclude_expsyms_GCJ
19648
19649 # Symbols that must always be exported.
19650 include_expsyms=$lt_include_expsyms_GCJ
19651
19652 # ### END LIBTOOL TAG CONFIG: $tagname
19653
19654 __EOF__
19655
19656
19657 else
19658 # If there is no Makefile yet, we rely on a make rule to execute
19659 # `config.status --recheck' to rerun these tests and create the
19660 # libtool script then.
19661 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19662 if test -f "$ltmain_in"; then
19663 test -f Makefile && make "$ltmain"
19664 fi
19665 fi
19666
19667
19668 ac_ext=c
19669 ac_cpp='$CPP $CPPFLAGS'
19670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
19674 CC="$lt_save_CC"
19675
19676 else
19677 tagname=""
19678 fi
19679 ;;
19680
19681 RC)
19682
19683
19684
19685 # Source file extension for RC test sources.
19686 ac_ext=rc
19687
19688 # Object file extension for compiled RC test sources.
19689 objext=o
19690 objext_RC=$objext
19691
19692 # Code to be used in simple compile tests
19693 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19694
19695 # Code to be used in simple link tests
19696 lt_simple_link_test_code="$lt_simple_compile_test_code"
19697
19698 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19699
19700 # If no C compiler was specified, use CC.
19701 LTCC=${LTCC-"$CC"}
19702
19703 # If no C compiler flags were specified, use CFLAGS.
19704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19705
19706 # Allow CC to be a program name with arguments.
19707 compiler=$CC
19708
19709
19710 # save warnings/boilerplate of simple test code
19711 ac_outfile=conftest.$ac_objext
19712 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19714 _lt_compiler_boilerplate=`cat conftest.err`
19715 $rm conftest*
19716
19717 ac_outfile=conftest.$ac_objext
19718 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19720 _lt_linker_boilerplate=`cat conftest.err`
19721 $rm conftest*
19722
19723
19724 # Allow CC to be a program name with arguments.
19725 lt_save_CC="$CC"
19726 CC=${RC-"windres"}
19727 compiler=$CC
19728 compiler_RC=$CC
19729 for cc_temp in $compiler""; do
19730 case $cc_temp in
19731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19733 \-*) ;;
19734 *) break;;
19735 esac
19736 done
19737 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19738
19739 lt_cv_prog_compiler_c_o_RC=yes
19740
19741 # The else clause should only fire when bootstrapping the
19742 # libtool distribution, otherwise you forgot to ship ltmain.sh
19743 # with your package, and you will get complaints that there are
19744 # no rules to generate ltmain.sh.
19745 if test -f "$ltmain"; then
19746 # See if we are running on zsh, and set the options which allow our commands through
19747 # without removal of \ escapes.
19748 if test -n "${ZSH_VERSION+set}" ; then
19749 setopt NO_GLOB_SUBST
19750 fi
19751 # Now quote all the things that may contain metacharacters while being
19752 # careful not to overquote the AC_SUBSTed values. We take copies of the
19753 # variables and quote the copies for generation of the libtool script.
19754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19755 SED SHELL STRIP \
19756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19758 deplibs_check_method reload_flag reload_cmds need_locks \
19759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19760 lt_cv_sys_global_symbol_to_c_name_address \
19761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19762 old_postinstall_cmds old_postuninstall_cmds \
19763 compiler_RC \
19764 CC_RC \
19765 LD_RC \
19766 lt_prog_compiler_wl_RC \
19767 lt_prog_compiler_pic_RC \
19768 lt_prog_compiler_static_RC \
19769 lt_prog_compiler_no_builtin_flag_RC \
19770 export_dynamic_flag_spec_RC \
19771 thread_safe_flag_spec_RC \
19772 whole_archive_flag_spec_RC \
19773 enable_shared_with_static_runtimes_RC \
19774 old_archive_cmds_RC \
19775 old_archive_from_new_cmds_RC \
19776 predep_objects_RC \
19777 postdep_objects_RC \
19778 predeps_RC \
19779 postdeps_RC \
19780 compiler_lib_search_path_RC \
19781 archive_cmds_RC \
19782 archive_expsym_cmds_RC \
19783 postinstall_cmds_RC \
19784 postuninstall_cmds_RC \
19785 old_archive_from_expsyms_cmds_RC \
19786 allow_undefined_flag_RC \
19787 no_undefined_flag_RC \
19788 export_symbols_cmds_RC \
19789 hardcode_libdir_flag_spec_RC \
19790 hardcode_libdir_flag_spec_ld_RC \
19791 hardcode_libdir_separator_RC \
19792 hardcode_automatic_RC \
19793 module_cmds_RC \
19794 module_expsym_cmds_RC \
19795 lt_cv_prog_compiler_c_o_RC \
19796 exclude_expsyms_RC \
19797 include_expsyms_RC; do
19798
19799 case $var in
19800 old_archive_cmds_RC | \
19801 old_archive_from_new_cmds_RC | \
19802 archive_cmds_RC | \
19803 archive_expsym_cmds_RC | \
19804 module_cmds_RC | \
19805 module_expsym_cmds_RC | \
19806 old_archive_from_expsyms_cmds_RC | \
19807 export_symbols_cmds_RC | \
19808 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19809 postinstall_cmds | postuninstall_cmds | \
19810 old_postinstall_cmds | old_postuninstall_cmds | \
19811 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19812 # Double-quote double-evaled strings.
19813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19814 ;;
19815 *)
19816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19817 ;;
19818 esac
19819 done
19820
19821 case $lt_echo in
19822 *'\$0 --fallback-echo"')
19823 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19824 ;;
19825 esac
19826
19827 cfgfile="$ofile"
19828
19829 cat <<__EOF__ >> "$cfgfile"
19830 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19831
19832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19833
19834 # Shell to use when invoking shell scripts.
19835 SHELL=$lt_SHELL
19836
19837 # Whether or not to build shared libraries.
19838 build_libtool_libs=$enable_shared
19839
19840 # Whether or not to build static libraries.
19841 build_old_libs=$enable_static
19842
19843 # Whether or not to add -lc for building shared libraries.
19844 build_libtool_need_lc=$archive_cmds_need_lc_RC
19845
19846 # Whether or not to disallow shared libs when runtime libs are static
19847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19848
19849 # Whether or not to optimize for fast installation.
19850 fast_install=$enable_fast_install
19851
19852 # The host system.
19853 host_alias=$host_alias
19854 host=$host
19855 host_os=$host_os
19856
19857 # The build system.
19858 build_alias=$build_alias
19859 build=$build
19860 build_os=$build_os
19861
19862 # An echo program that does not interpret backslashes.
19863 echo=$lt_echo
19864
19865 # The archiver.
19866 AR=$lt_AR
19867 AR_FLAGS=$lt_AR_FLAGS
19868
19869 # A C compiler.
19870 LTCC=$lt_LTCC
19871
19872 # LTCC compiler flags.
19873 LTCFLAGS=$lt_LTCFLAGS
19874
19875 # A language-specific compiler.
19876 CC=$lt_compiler_RC
19877
19878 # Is the compiler the GNU C compiler?
19879 with_gcc=$GCC_RC
19880
19881 # An ERE matcher.
19882 EGREP=$lt_EGREP
19883
19884 # The linker used to build libraries.
19885 LD=$lt_LD_RC
19886
19887 # Whether we need hard or soft links.
19888 LN_S=$lt_LN_S
19889
19890 # A BSD-compatible nm program.
19891 NM=$lt_NM
19892
19893 # A symbol stripping program
19894 STRIP=$lt_STRIP
19895
19896 # Used to examine libraries when file_magic_cmd begins "file"
19897 MAGIC_CMD=$MAGIC_CMD
19898
19899 # Used on cygwin: DLL creation program.
19900 DLLTOOL="$DLLTOOL"
19901
19902 # Used on cygwin: object dumper.
19903 OBJDUMP="$OBJDUMP"
19904
19905 # Used on cygwin: assembler.
19906 AS="$AS"
19907
19908 # The name of the directory that contains temporary libtool files.
19909 objdir=$objdir
19910
19911 # How to create reloadable object files.
19912 reload_flag=$lt_reload_flag
19913 reload_cmds=$lt_reload_cmds
19914
19915 # How to pass a linker flag through the compiler.
19916 wl=$lt_lt_prog_compiler_wl_RC
19917
19918 # Object file suffix (normally "o").
19919 objext="$ac_objext"
19920
19921 # Old archive suffix (normally "a").
19922 libext="$libext"
19923
19924 # Shared library suffix (normally ".so").
19925 shrext_cmds='$shrext_cmds'
19926
19927 # Executable file suffix (normally "").
19928 exeext="$exeext"
19929
19930 # Additional compiler flags for building library objects.
19931 pic_flag=$lt_lt_prog_compiler_pic_RC
19932 pic_mode=$pic_mode
19933
19934 # What is the maximum length of a command?
19935 max_cmd_len=$lt_cv_sys_max_cmd_len
19936
19937 # Does compiler simultaneously support -c and -o options?
19938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19939
19940 # Must we lock files when doing compilation?
19941 need_locks=$lt_need_locks
19942
19943 # Do we need the lib prefix for modules?
19944 need_lib_prefix=$need_lib_prefix
19945
19946 # Do we need a version for libraries?
19947 need_version=$need_version
19948
19949 # Whether dlopen is supported.
19950 dlopen_support=$enable_dlopen
19951
19952 # Whether dlopen of programs is supported.
19953 dlopen_self=$enable_dlopen_self
19954
19955 # Whether dlopen of statically linked programs is supported.
19956 dlopen_self_static=$enable_dlopen_self_static
19957
19958 # Compiler flag to prevent dynamic linking.
19959 link_static_flag=$lt_lt_prog_compiler_static_RC
19960
19961 # Compiler flag to turn off builtin functions.
19962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19963
19964 # Compiler flag to allow reflexive dlopens.
19965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19966
19967 # Compiler flag to generate shared objects directly from archives.
19968 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19969
19970 # Compiler flag to generate thread-safe objects.
19971 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19972
19973 # Library versioning type.
19974 version_type=$version_type
19975
19976 # Format of library name prefix.
19977 libname_spec=$lt_libname_spec
19978
19979 # List of archive names. First name is the real one, the rest are links.
19980 # The last name is the one that the linker finds with -lNAME.
19981 library_names_spec=$lt_library_names_spec
19982
19983 # The coded name of the library, if different from the real name.
19984 soname_spec=$lt_soname_spec
19985
19986 # Commands used to build and install an old-style archive.
19987 RANLIB=$lt_RANLIB
19988 old_archive_cmds=$lt_old_archive_cmds_RC
19989 old_postinstall_cmds=$lt_old_postinstall_cmds
19990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19991
19992 # Create an old-style archive from a shared archive.
19993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19994
19995 # Create a temporary old-style archive to link instead of a shared archive.
19996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19997
19998 # Commands used to build and install a shared archive.
19999 archive_cmds=$lt_archive_cmds_RC
20000 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20001 postinstall_cmds=$lt_postinstall_cmds
20002 postuninstall_cmds=$lt_postuninstall_cmds
20003
20004 # Commands used to build a loadable module (assumed same as above if empty)
20005 module_cmds=$lt_module_cmds_RC
20006 module_expsym_cmds=$lt_module_expsym_cmds_RC
20007
20008 # Commands to strip libraries.
20009 old_striplib=$lt_old_striplib
20010 striplib=$lt_striplib
20011
20012 # Dependencies to place before the objects being linked to create a
20013 # shared library.
20014 predep_objects=$lt_predep_objects_RC
20015
20016 # Dependencies to place after the objects being linked to create a
20017 # shared library.
20018 postdep_objects=$lt_postdep_objects_RC
20019
20020 # Dependencies to place before the objects being linked to create a
20021 # shared library.
20022 predeps=$lt_predeps_RC
20023
20024 # Dependencies to place after the objects being linked to create a
20025 # shared library.
20026 postdeps=$lt_postdeps_RC
20027
20028 # The library search path used internally by the compiler when linking
20029 # a shared library.
20030 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20031
20032 # Method to check whether dependent libraries are shared objects.
20033 deplibs_check_method=$lt_deplibs_check_method
20034
20035 # Command to use when deplibs_check_method == file_magic.
20036 file_magic_cmd=$lt_file_magic_cmd
20037
20038 # Flag that allows shared libraries with undefined symbols to be built.
20039 allow_undefined_flag=$lt_allow_undefined_flag_RC
20040
20041 # Flag that forces no undefined symbols.
20042 no_undefined_flag=$lt_no_undefined_flag_RC
20043
20044 # Commands used to finish a libtool library installation in a directory.
20045 finish_cmds=$lt_finish_cmds
20046
20047 # Same as above, but a single script fragment to be evaled but not shown.
20048 finish_eval=$lt_finish_eval
20049
20050 # Take the output of nm and produce a listing of raw symbols and C names.
20051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20052
20053 # Transform the output of nm in a proper C declaration
20054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20055
20056 # Transform the output of nm in a C name address pair
20057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20058
20059 # This is the shared library runtime path variable.
20060 runpath_var=$runpath_var
20061
20062 # This is the shared library path variable.
20063 shlibpath_var=$shlibpath_var
20064
20065 # Is shlibpath searched before the hard-coded library search path?
20066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20067
20068 # How to hardcode a shared library path into an executable.
20069 hardcode_action=$hardcode_action_RC
20070
20071 # Whether we should hardcode library paths into libraries.
20072 hardcode_into_libs=$hardcode_into_libs
20073
20074 # Flag to hardcode \$libdir into a binary during linking.
20075 # This must work even if \$libdir does not exist.
20076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20077
20078 # If ld is used when linking, flag to hardcode \$libdir into
20079 # a binary during linking. This must work even if \$libdir does
20080 # not exist.
20081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20082
20083 # Whether we need a single -rpath flag with a separated argument.
20084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20085
20086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20087 # resulting binary.
20088 hardcode_direct=$hardcode_direct_RC
20089
20090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20091 # resulting binary.
20092 hardcode_minus_L=$hardcode_minus_L_RC
20093
20094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20095 # the resulting binary.
20096 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20097
20098 # Set to yes if building a shared library automatically hardcodes DIR into the library
20099 # and all subsequent libraries and executables linked against it.
20100 hardcode_automatic=$hardcode_automatic_RC
20101
20102 # Variables whose values should be saved in libtool wrapper scripts and
20103 # restored at relink time.
20104 variables_saved_for_relink="$variables_saved_for_relink"
20105
20106 # Whether libtool must link a program against all its dependency libraries.
20107 link_all_deplibs=$link_all_deplibs_RC
20108
20109 # Compile-time system search path for libraries
20110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20111
20112 # Run-time system search path for libraries
20113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20114
20115 # Fix the shell variable \$srcfile for the compiler.
20116 fix_srcfile_path="$fix_srcfile_path_RC"
20117
20118 # Set to yes if exported symbols are required.
20119 always_export_symbols=$always_export_symbols_RC
20120
20121 # The commands to list exported symbols.
20122 export_symbols_cmds=$lt_export_symbols_cmds_RC
20123
20124 # The commands to extract the exported symbol list from a shared archive.
20125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20126
20127 # Symbols that should not be listed in the preloaded symbols.
20128 exclude_expsyms=$lt_exclude_expsyms_RC
20129
20130 # Symbols that must always be exported.
20131 include_expsyms=$lt_include_expsyms_RC
20132
20133 # ### END LIBTOOL TAG CONFIG: $tagname
20134
20135 __EOF__
20136
20137
20138 else
20139 # If there is no Makefile yet, we rely on a make rule to execute
20140 # `config.status --recheck' to rerun these tests and create the
20141 # libtool script then.
20142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20143 if test -f "$ltmain_in"; then
20144 test -f Makefile && make "$ltmain"
20145 fi
20146 fi
20147
20148
20149 ac_ext=c
20150 ac_cpp='$CPP $CPPFLAGS'
20151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
20155 CC="$lt_save_CC"
20156
20157 ;;
20158
20159 *)
20160 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20161 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20162 { (exit 1); exit 1; }; }
20163 ;;
20164 esac
20165
20166 # Append the new tag name to the list of available tags.
20167 if test -n "$tagname" ; then
20168 available_tags="$available_tags $tagname"
20169 fi
20170 fi
20171 done
20172 IFS="$lt_save_ifs"
20173
20174 # Now substitute the updated list of available tags.
20175 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20176 mv "${ofile}T" "$ofile"
20177 chmod +x "$ofile"
20178 else
20179 rm -f "${ofile}T"
20180 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20181 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20182 { (exit 1); exit 1; }; }
20183 fi
20184 fi
20185
20186
20187
20188 # This can be used to rebuild libtool when needed
20189 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20190
20191 # Always use our own libtool.
20192 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20193
20194 # Prevent multiple expansion
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20207 # AC_REQUIRE([AC_COIN_DLFCN_H])
20208
20209 # NEW: If libtool exists in the directory higher up, we use that one
20210 # instead of creating a new one
20211
20212 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20213 # out in front of this macro body. You'll notice that LIBTOOL is already
20214 # defined here. We'll have to count on this macro not being called if libtool
20215 # already exists, or at least move the libtool fixes outside the conditional.
20216 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20217 # This test is therefore removed. -- lh, 061214 --
20218 # if test "x$LIBTOOL" = x; then
20219
20220 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20231
20232
20233
20234 { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20235 echo "$as_me: Build is \"$build\"." >&6;}
20236 mydos2unix='| dos2unix'
20237 case $build in
20238 *-mingw*)
20239 CYGPATH_W=echo
20240 ;;
20241 esac
20242
20243 case $build in
20244 # Here we need to check if -m32 is specified. If so, we need to correct
20245 # sys_lib_search_path_spec
20246 *-cygwin* | *-mingw*)
20247 case "$CXX" in
20248 clang* )
20249 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20250 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20251 echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20252 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20253 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20254 -e 's|libext="lib"|libext="a"|' \
20255 libtool > conftest.bla
20256 ;;
20257 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20258 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20259 echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20260 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20261 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20262 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20263 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20264 -e 's%lib /OUT:%lib -OUT:%' \
20265 -e "s%cygpath -w%$CYGPATH_W%" \
20266 -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%' \
20267 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20268 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20269 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20270 -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"%' \
20271 libtool > conftest.bla
20272 ;;
20273 *)
20274 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20275 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20276 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20277 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20278 -e 's|libext="lib"|libext="a"|' \
20279 libtool > conftest.bla
20280 ;;
20281 esac
20282 mv conftest.bla libtool
20283 chmod 755 libtool
20284
20285 ;;
20286 *x86_64-*)
20287 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20288 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20289 echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20290 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20291 mv conftest.bla libtool
20292 chmod 755 libtool
20293 fi
20294 ;;
20295
20296 *-solaris*)
20297 if test "$GCC" = yes && \
20298 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20299 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20300 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20301 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20302 echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20303 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20304 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20305 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20306 # AC_MSG_NOTICE(Compensating for broken gcc)
20307 for lib in $fixlibtmp ; do
20308 if test -d "${lib}${hdwisa}" ; then
20309 syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20310 fi
20311 done
20312 syslibpath64="${syslibpath64} ${fixlibtmp}"
20313 else
20314 syslibpath64="$fixlibtmp"
20315 fi
20316 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20317 mv conftest.bla libtool
20318 chmod 755 libtool
20319 fi
20320 # AC_MSG_NOTICE(Result is )
20321 # $EGREP 'sys_lib_search_path_spec=' libtool
20322 fi
20323 ;;
20324 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20325 *-darwin*)
20326 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20327 echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20328 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"/' \
20329 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20330 libtool > conftest.bla
20331
20332 mv conftest.bla libtool
20333 chmod 755 libtool
20334 ;;
20335 esac
20336 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20337 # the macro. -- lh, 061214 --
20338 # fi
20339
20340 # AC_MSG_NOTICE([End libtool initialisation.])
20341
20342 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20343 # set RPATH_FLAGS to the compiler link flags required to hardcode location
20344 # of the shared objects
20345 RPATH_FLAGS=
20346
20347 if test $enable_shared = yes; then
20348 case $build in
20349 *-linux-*)
20350 if test "$GXX" = "yes"; then
20351 RPATH_FLAGS=
20352 for dir in $abs_lib_dir; do
20353 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20354 done
20355 fi ;;
20356 *-darwin*)
20357 RPATH_FLAGS=nothing ;;
20358 *-ibm-*)
20359 case "$CXX" in
20360 xlC* | */xlC* | mpxlC* | */mpxlC*)
20361 RPATH_FLAGS=nothing ;;
20362 esac ;;
20363 *-hp-*)
20364 RPATH_FLAGS=nothing ;;
20365 *-mingw32)
20366 RPATH_FLAGS=nothing ;;
20367 *-*-solaris*)
20368 RPATH_FLAGS=
20369 for dir in $abs_lib_dir; do
20370 RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20371 done
20372 esac
20373
20374 if test "$RPATH_FLAGS" = ""; then
20375 { 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
20376 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;}
20377 fi
20378 if test "$RPATH_FLAGS" = "nothing"; then
20379 RPATH_FLAGS=
20380 fi
20381 fi
20382
20383
20384
20385
20386 else
20387
20388 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20389 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20390 # get all missing information from the config.log file
20391
20392 # output variables and defines
20393 as_save_IFS=$IFS
20394 IFS='
20395 '
20396 for oneline in `cat $coin_config_dir/config.status`; do
20397 case "$oneline" in
20398 # First some automake conditionals
20399 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \
20400 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20401 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20402 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* )
20403 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20404 # echo "$command"
20405 eval "$command"
20406 ;;
20407 s,@DEFS@* )
20408 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20409 # echo "$command"
20410 eval "$command"
20411 ;;
20412 esac
20413 done
20414 IFS=$as_save_IFS
20415
20416 # And some defines (assuming here that the packages base dir
20417 # doesn't have a config.h file
20418 for word in $defsline; do
20419 # echo word $word
20420 case $word in
20421 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20422 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20423 # echo dd $i
20424 echo $i >>confdefs.h
20425 ;;
20426 esac
20427 done
20428 fi
20429
20430 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20431
20432 # Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20433 if test "${enable_dependency_linking+set}" = set; then
20434 enableval="$enable_dependency_linking"
20435 dependency_linking="$enableval"
20436 else
20437 dependency_linking=auto
20438 fi;
20439
20440 if test "$dependency_linking" = auto; then
20441 # On Cygwin and AIX, building DLLs doesn't work
20442 dependency_linking=no
20443 if test x"$coin_disable_shared" = xno; then
20444 case $build in
20445 *-cygwin* | *-mingw*)
20446 case "$CC" in
20447 clang* )
20448 dependency_linking=yes
20449 ;;
20450 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20451 dependency_linking=no
20452 ;;
20453 *gcc*)
20454 dependency_linking=yes
20455 ;;
20456 *)
20457 dependency_linking=yes
20458 ;;
20459 esac
20460 ;;
20461 *)
20462 dependency_linking=yes
20463 ;;
20464 esac
20465 fi
20466 fi
20467
20468 if test "$dependency_linking" = yes ;
20469 then
20470 LT_LDFLAGS="-no-undefined"
20471 else
20472 LT_LDFLAGS=
20473 fi
20474
20475
20476
20477 if test "$dependency_linking" = yes; then
20478 DEPENDENCY_LINKING_TRUE=
20479 DEPENDENCY_LINKING_FALSE='#'
20480 else
20481 DEPENDENCY_LINKING_TRUE='#'
20482 DEPENDENCY_LINKING_FALSE=
20483 fi
20484
20485
20486 # Check if we want to set the library version
20487 echo "$as_me:$LINENO: checking if library version is set" >&5
20488 echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20489 if test x"$coin_libversion" != x; then
20490 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20491 echo "$as_me:$LINENO: result: $coin_libversion" >&5
20492 echo "${ECHO_T}$coin_libversion" >&6
20493 else
20494 echo "$as_me:$LINENO: result: no" >&5
20495 echo "${ECHO_T}no" >&6
20496 fi
20497
20498
20499
20500 #END
20501 }
20502
20503 #############################################################################
20504 # COIN-OR components #
20505 #############################################################################
20506
20507
20508
20509 # Check whether --enable-pkg-config or --disable-pkg-config was given.
20510 if test "${enable_pkg_config+set}" = set; then
20511 enableval="$enable_pkg_config"
20512 use_pkgconfig="$enableval"
20513 else
20514 if test x$coin_cc_is_cl = xtrue; then
20515 use_pkgconfig=no
20516 else
20517 use_pkgconfig=yes
20518 fi
20519 fi;
20520
20521 if test $use_pkgconfig = yes ; then
20522 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20523 if test -n "$ac_tool_prefix"; then
20524 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20525 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20526 echo "$as_me:$LINENO: checking for $ac_word" >&5
20527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20528 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531 if test -n "$PKG_CONFIG"; then
20532 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20533 else
20534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20535 for as_dir in $PATH
20536 do
20537 IFS=$as_save_IFS
20538 test -z "$as_dir" && as_dir=.
20539 for ac_exec_ext in '' $ac_executable_extensions; do
20540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20541 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20543 break 2
20544 fi
20545 done
20546 done
20547
20548 fi
20549 fi
20550 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20551 if test -n "$PKG_CONFIG"; then
20552 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20553 echo "${ECHO_T}$PKG_CONFIG" >&6
20554 else
20555 echo "$as_me:$LINENO: result: no" >&5
20556 echo "${ECHO_T}no" >&6
20557 fi
20558
20559 fi
20560 if test -z "$ac_cv_prog_PKG_CONFIG"; then
20561 ac_ct_PKG_CONFIG=$PKG_CONFIG
20562 # Extract the first word of "pkg-config", so it can be a program name with args.
20563 set dummy pkg-config; ac_word=$2
20564 echo "$as_me:$LINENO: checking for $ac_word" >&5
20565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20566 if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569 if test -n "$ac_ct_PKG_CONFIG"; then
20570 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20571 else
20572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20573 for as_dir in $PATH
20574 do
20575 IFS=$as_save_IFS
20576 test -z "$as_dir" && as_dir=.
20577 for ac_exec_ext in '' $ac_executable_extensions; do
20578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20579 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20581 break 2
20582 fi
20583 done
20584 done
20585
20586 fi
20587 fi
20588 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20589 if test -n "$ac_ct_PKG_CONFIG"; then
20590 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20591 echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20592 else
20593 echo "$as_me:$LINENO: result: no" >&5
20594 echo "${ECHO_T}no" >&6
20595 fi
20596
20597 PKG_CONFIG=$ac_ct_PKG_CONFIG
20598 else
20599 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20600 fi
20601
20602 fi
20603 if test -n "$PKG_CONFIG"; then
20604 _pkg_min_version=0.16.0
20605 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20606 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20607 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20608 echo "$as_me:$LINENO: result: yes" >&5
20609 echo "${ECHO_T}yes" >&6
20610 else
20611 echo "$as_me:$LINENO: result: no" >&5
20612 echo "${ECHO_T}no" >&6
20613 PKG_CONFIG=""
20614 fi
20615 fi
20616
20617 # check if pkg-config supports the short-errors flag
20618 if test -n "$PKG_CONFIG" && \
20619 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20620 pkg_short_errors=" --short-errors "
20621 else
20622 pkg_short_errors=""
20623 fi
20624 fi
20625
20626
20627
20628 if test -n "$PKG_CONFIG"; then
20629 COIN_HAS_PKGCONFIG_TRUE=
20630 COIN_HAS_PKGCONFIG_FALSE='#'
20631 else
20632 COIN_HAS_PKGCONFIG_TRUE='#'
20633 COIN_HAS_PKGCONFIG_FALSE=
20634 fi
20635
20636
20637
20638 # assemble pkg-config search path for installed projects
20639 COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20640
20641 # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20642 # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20643 # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20644 if test "x${prefix}" = xNONE ; then
20645 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20646 else
20647 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20648 fi
20649
20650
20651 # Check whether --with-coin-instdir or --without-coin-instdir was given.
20652 if test "${with_coin_instdir+set}" = set; then
20653 withval="$with_coin_instdir"
20654 if test -d "$withval"; then : ; else
20655 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20656 echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20657 { (exit 1); exit 1; }; }
20658 fi
20659 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20660
20661 fi;
20662
20663
20664
20665 # assemble additional pkg-config search paths for uninstalled projects
20666 if test x$coin_projectdir = xyes ; then
20667 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20668 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20669 # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20670 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20671 COIN_PKG_CONFIG_PATH_UNINSTALLED=
20672 if test -f ../coin_subdirs.txt ; then
20673 for i in `cat ../coin_subdirs.txt` ; do
20674 if test -d ../$i ; then
20675 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20676 fi
20677 if test -d ../$i/pkgconfig ; then
20678 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20679 fi
20680 done
20681 fi
20682
20683 if test -f ../../coin_subdirs.txt ; then
20684 for i in `cat ../../coin_subdirs.txt` ; do
20685 if test -d ../../$i ; then
20686 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20687 fi
20688 if test -d ../../$i/pkgconfig ; then
20689 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20690 fi
20691 done
20692 fi
20693
20694
20695 fi
20696
20697 if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20698 { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20699 echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20700 fi
20701
20702
20703
20704 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
20705 echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
20706
20707 coin_has_coinutils=notGiven
20708
20709 # check if user wants to skip package in any case
20710 if test x"$COIN_SKIP_PROJECTS" != x; then
20711 for dir in $COIN_SKIP_PROJECTS; do
20712 if test $dir = "CoinUtils"; then
20713 coin_has_coinutils=skipping
20714 fi
20715 done
20716 fi
20717
20718 if test "$coin_has_coinutils" != skipping; then
20719
20720 # Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20721 if test "${with_coinutils+set}" = set; then
20722 withval="$with_coinutils"
20723 if test "$withval" = no ; then
20724 coin_has_coinutils=skipping
20725 fi
20726
20727 fi;
20728 fi
20729
20730 COINUTILS_LIBS=
20731 COINUTILS_CFLAGS=
20732 COINUTILS_DATA=
20733 COINUTILS_DEPENDENCIES=
20734 COINUTILS_PCLIBS=
20735 COINUTILS_PCREQUIRES=
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20754 if test $coin_has_coinutils != skipping; then
20755
20756 # Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20757 if test "${with_coinutils_lib+set}" = set; then
20758 withval="$with_coinutils_lib"
20759 if test "$withval" = no ; then
20760 coin_has_coinutils=skipping
20761 else
20762 coin_has_coinutils=yes
20763 COINUTILS_LIBS="$withval"
20764 COINUTILS_PCLIBS="$withval"
20765
20766 OSILIB_PCLIBS="$withval $OSILIB_PCLIBS"
20767 OSILIB_LIBS="$withval $OSILIB_LIBS"
20768
20769 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20770 if test -z "$PKG_CONFIG" ; then
20771 COINUTILS_LIBS_INSTALLED="$withval"
20772 OSILIB_LIBS_INSTALLED="$withval $OSILIB_LIBS_INSTALLED"
20773 fi
20774 fi
20775
20776 fi;
20777 fi
20778
20779 if test $coin_has_coinutils != skipping; then
20780
20781 # Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20782 if test "${with_coinutils_incdir+set}" = set; then
20783 withval="$with_coinutils_incdir"
20784 if test "$withval" = no ; then
20785 coin_has_coinutils=skipping
20786 else
20787 coin_has_coinutils=yes
20788 COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
20789 OSILIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSILIB_CFLAGS"
20790 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20791 if test -z "$PKG_CONFIG" ; then
20792 COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS"
20793 OSILIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $OSILIB_CFLAGS_INSTALLED"
20794 fi
20795 fi
20796
20797 fi;
20798 fi
20799
20800 if test $coin_has_coinutils != skipping; then
20801
20802 # Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20803 if test "${with_coinutils_datadir+set}" = set; then
20804 withval="$with_coinutils_datadir"
20805 if test "$withval" = no ; then
20806 coin_has_coinutils=skipping
20807 else
20808 coin_has_coinutils=yes
20809 COINUTILS_DATA="$withval"
20810 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20811 if test -z "$PKG_CONFIG" ; then
20812 COINUTILS_DATA_INSTALLED="$withval"
20813 fi
20814 fi
20815
20816 fi;
20817 fi
20818
20819 if test $coin_has_coinutils = notGiven; then
20820 if test -n "$PKG_CONFIG" ; then
20821 # set search path for pkg-config
20822 # need to export variable to be sure that the following pkg-config gets these values
20823 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20824 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20825 export PKG_CONFIG_PATH
20826
20827 # let pkg-config do it's magic
20828
20829
20830
20831 if test -n "$PKG_CONFIG" ; then
20832 if $PKG_CONFIG --exists "coinutils"; then
20833 COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`
20834 cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
20835 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20836 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20837 # but only do this if is not trivial
20838 if test "$CYGPATH_W" != "echo" ; then
20839 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20840 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20841 fi
20842 COINUTILS_CFLAGS="$cflags"
20843 COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
20844 COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
20845 coin_has_coinutils=yes
20846 echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
20847 echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
20848
20849 # adjust linker flags for (i)cl compiler
20850 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
20851 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20852 then
20853 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20854 fi
20855 COINUTILS_PCREQUIRES="coinutils"
20856
20857 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiLib
20858
20859 OSILIB_PCREQUIRES="coinutils $OSILIB_PCREQUIRES"
20860 OSILIB_CFLAGS="$COINUTILS_CFLAGS $OSILIB_CFLAGS"
20861 OSILIB_LIBS="$COINUTILS_LIBS $OSILIB_LIBS"
20862
20863
20864
20865 else
20866 COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
20867 coin_has_coinutils=notGiven
20868 echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
20869 echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
20870
20871 fi
20872 else
20873 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
20874 echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
20875 { (exit 1); exit 1; }; }
20876 fi
20877
20878
20879
20880
20881 # reset PKG_CONFIG_PATH variable
20882 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20883 export PKG_CONFIG_PATH
20884
20885 else
20886 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20887 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20888
20889 echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
20890 echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
20891
20892 coin_has_coinutils=notGiven
20893 COINUTILS_LIBS=
20894 COINUTILS_LIBS_INSTALLED=
20895 COINUTILS_CFLAGS=
20896 COINUTILS_CFLAGS_INSTALLED=
20897 COINUTILS_DATA=
20898 COINUTILS_DATA_INSTALLED=
20899 COINUTILS_PCLIBS=
20900 COINUTILS_PCREQUIRES=
20901
20902 # initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20903 projtoprocess="coinutils"
20904
20905 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20906 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20907 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20908 # also, we setup the DATA variable
20909 allproj=""
20910 allpcfiles=""
20911 allpcifiles=""
20912 while test "x$projtoprocess" != x ; do
20913
20914 for proj in $projtoprocess ; do
20915 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20916 pcfile=""
20917 save_IFS="$IFS"
20918 IFS=":"
20919 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20920 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
20921 if test -r "$dir/${proj}-uninstalled.pc" ; then
20922 pcfile="$dir/$proj-uninstalled.pc"
20923 if test -r "$dir/${proj}.pc" ; then
20924 pcifile="$dir/${proj}.pc"
20925 else
20926 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20927 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20928 pcifile=
20929 fi
20930 break
20931 fi
20932 done
20933 IFS="$save_IFS"
20934
20935 if test "x$pcfile" != x ; then
20936 # read dependencies from $pcfile and filter it
20937 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
20938
20939 # add projrequires to the front of the list of projects that have to be processed next
20940 # at the same time, remove $proj from this list
20941 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
20942
20943 # read DATA from $pcfile, if _DATA is still empty
20944 if test "x$COINUTILS_DATA" = x ; then
20945 projdatadir=
20946 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
20947 eval `sh -c "$pcfilemod"`
20948 COINUTILS_DATA="$projdatadir"
20949 fi
20950
20951 allproj="$allproj $proj"
20952 allpcfiles="$pcfile:$allpcfiles"
20953
20954 else
20955 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
20956 echo "${ECHO_T}no, dependency $proj not available" >&6
20957 allproj=fail
20958 break 2
20959 fi
20960
20961 if test "x$pcifile" != x ; then
20962 allpcifiles="$pcifile:$allpcifiles"
20963
20964 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
20965 if test "x$COINUTILS_DATA_INSTALLED" = x ; then
20966 projdatadir=
20967 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
20968 eval `sh -c "$pcifilemod"`
20969 if test "${CYGPATH_W}" != "echo"; then
20970 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
20971 fi
20972 COINUTILS_DATA_INSTALLED="$projdatadir"
20973 fi
20974
20975 fi
20976
20977 break
20978 done
20979
20980 # remove spaces on begin of $projtoprocess
20981 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
20982
20983 done
20984
20985 if test "$allproj" != fail ; then
20986
20987 # now go through the list of .pc files and assemble compiler and linker flags
20988 # important is here to obey the reverse order that has been setup before,
20989 # since then libraries that are required by several others should be after these other libraries
20990 pcfilesprocessed=""
20991
20992 save_IFS="$IFS"
20993 IFS=":"
20994 for pcfile in $allpcfiles ; do
20995
20996 # if $pcfile has been processed already, skip this round
20997 if test "x$pcfilesprocessed" != x ; then
20998 for pcfiledone in $pcfilesprocessed ; do
20999 if test "$pcfiledone" = "$pcfile" ; then
21000 continue 2
21001 fi
21002 done
21003 fi
21004
21005 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21006 # replace "Libs:" by "echo projlibs="
21007 # replace "Cflags:" by "echo projcflags="
21008 # remove every line starting with <some word>:
21009 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21010
21011 # set projcflags and projlibs variables by running $pcfilemod
21012 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21013 projcflags=
21014 projlibs=
21015 IFS="$save_IFS"
21016 eval `sh -c "$pcfilemod"`
21017 IFS=":"
21018
21019 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21020 if test "${CYGPATH_W}" != "echo"; then
21021 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21022 fi
21023 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
21024
21025 # set LIBS variable
21026 COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
21027
21028 # remember that we have processed $pcfile
21029 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21030
21031 done
21032 IFS="$save_IFS"
21033
21034
21035 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21036 # important is here again to obey the reverse order that has been setup before,
21037 # since then libraries that are required by several others should be after these other libraries
21038 pcfilesprocessed=""
21039
21040 save_IFS="$IFS"
21041 IFS=":"
21042 for pcfile in $allpcifiles ; do
21043
21044 # if $pcfile has been processed already, skip this round
21045 if test "x$pcfilesprocessed" != x ; then
21046 for pcfiledone in $pcfilesprocessed ; do
21047 if test "$pcfiledone" = "$pcfile" ; then
21048 continue 2
21049 fi
21050 done
21051 fi
21052
21053 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21054 # replace "Libs:" by "echo projlibs="
21055 # replace "Cflags:" by "echo projcflags="
21056 # remove every line starting with <some word>:
21057 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21058
21059 # set projcflags and projlibs variables by running $pcfilemod
21060 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21061 projcflags=
21062 projlibs=
21063 IFS="$save_IFS"
21064 eval `sh -c "$pcfilemod"`
21065 IFS=":"
21066
21067 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21068 if test "${CYGPATH_W}" != "echo"; then
21069 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21070 fi
21071 COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
21072
21073 # set LIBS variable
21074 COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
21075
21076 # remember that we have processed $pcfile
21077 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21078
21079 done
21080 IFS="$save_IFS"
21081
21082
21083 # finish up
21084 coin_has_coinutils=yes
21085 echo "$as_me:$LINENO: result: yes" >&5
21086 echo "${ECHO_T}yes" >&6
21087
21088 cat >>confdefs.h <<\_ACEOF
21089 #define COIN_HAS_COINUTILS 1
21090 _ACEOF
21091
21092
21093 # adjust linker flags for (i)cl compiler
21094 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21095 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21096 # everything of the form "-lname" by "libname.lib", and
21097 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21098 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21099 then
21100 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21101 COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21102 fi
21103
21104 COINUTILS_PCREQUIRES="coinutils"
21105
21106 OSILIB_PCREQUIRES="coinutils $OSILIB_PCREQUIRES"
21107 OSILIB_CFLAGS="$COINUTILS_CFLAGS $OSILIB_CFLAGS"
21108 OSILIB_LIBS="$COINUTILS_LIBS $OSILIB_LIBS"
21109 OSILIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $OSILIB_CFLAGS_INSTALLED"
21110 OSILIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $OSILIB_LIBS_INSTALLED"
21111
21112
21113 fi
21114
21115
21116
21117 if test $coin_has_coinutils != notGiven &&
21118 test $coin_has_coinutils != skipping; then
21119 COIN_HAS_COINUTILS_TRUE=
21120 COIN_HAS_COINUTILS_FALSE='#'
21121 else
21122 COIN_HAS_COINUTILS_TRUE='#'
21123 COIN_HAS_COINUTILS_FALSE=
21124 fi
21125
21126
21127
21128 fi
21129
21130 else
21131 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21132 echo "${ECHO_T}$coin_has_coinutils" >&6
21133 fi
21134
21135 if test $coin_has_coinutils != skipping &&
21136 test $coin_has_coinutils != notGiven ; then
21137
21138 cat >>confdefs.h <<\_ACEOF
21139 #define COIN_HAS_COINUTILS 1
21140 _ACEOF
21141
21142
21143 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21144 if test "${enable_interpackage_dependencies+set}" = set; then
21145 enableval="$enable_interpackage_dependencies"
21146
21147 else
21148 enable_interpackage_dependencies=yes
21149 fi;
21150
21151 if test $enable_interpackage_dependencies = yes ; then
21152 # construct dependencies variables from LIBS variables
21153 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21154 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21155 # then remove everything of the form -xxx
21156 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21157 COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21158
21159 OSILIB_DEPENDENCIES=`echo " $OSILIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21160
21161 fi
21162
21163 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21164 if test -n "$COINUTILS_CFLAGS" ; then
21165 { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
21166 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
21167 fi
21168 if test -n "$COINUTILS_LIBS" ; then
21169 { echo "$as_me:$LINENO: CoinUtils LIBS are $COINUTILS_LIBS" >&5
21170 echo "$as_me: CoinUtils LIBS are $COINUTILS_LIBS" >&6;}
21171 fi
21172 if test -n "$COINUTILS_DEPENDENCIES" ; then
21173 { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
21174 echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
21175 fi
21176 if test -n "$COINUTILS_DATA" ; then
21177 { echo "$as_me:$LINENO: CoinUtils DATA is $COINUTILS_DATA" >&5
21178 echo "$as_me: CoinUtils DATA is $COINUTILS_DATA" >&6;}
21179 fi
21180 if test -n "$COINUTILS_PCLIBS" ; then
21181 { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5
21182 echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;}
21183 fi
21184 if test -n "$COINUTILS_PCREQUIRES" ; then
21185 { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5
21186 echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;}
21187 fi
21188
21189 { echo "$as_me:$LINENO: OsiLib CFLAGS are $OSILIB_CFLAGS" >&5
21190 echo "$as_me: OsiLib CFLAGS are $OSILIB_CFLAGS" >&6;}
21191 { echo "$as_me:$LINENO: OsiLib LIBS are $OSILIB_LIBS" >&5
21192 echo "$as_me: OsiLib LIBS are $OSILIB_LIBS" >&6;}
21193 { echo "$as_me:$LINENO: OsiLib DEPENDENCIES are $OSILIB_DEPENDENCIES" >&5
21194 echo "$as_me: OsiLib DEPENDENCIES are $OSILIB_DEPENDENCIES" >&6;}
21195
21196 fi
21197 fi
21198
21199 # Define the Makefile conditional
21200
21201
21202 if test $coin_has_coinutils != notGiven &&
21203 test $coin_has_coinutils != skipping; then
21204 COIN_HAS_COINUTILS_TRUE=
21205 COIN_HAS_COINUTILS_FALSE='#'
21206 else
21207 COIN_HAS_COINUTILS_TRUE='#'
21208 COIN_HAS_COINUTILS_FALSE=
21209 fi
21210
21211
21212
21213 if test $coin_has_coinutils != yes ; then
21214 { { echo "$as_me:$LINENO: error: Required package CoinUtils not available." >&5
21215 echo "$as_me: error: Required package CoinUtils not available." >&2;}
21216 { (exit 1); exit 1; }; }
21217 fi
21218
21219 echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
21220 echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
21221
21222 coin_has_glpk=notGiven
21223
21224 # check if user wants to skip package in any case
21225 if test x"$COIN_SKIP_PROJECTS" != x; then
21226 for dir in $COIN_SKIP_PROJECTS; do
21227 if test $dir = "Glpk"; then
21228 coin_has_glpk=skipping
21229 fi
21230 done
21231 fi
21232
21233 if test "$coin_has_glpk" != skipping; then
21234
21235 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
21236 if test "${with_glpk+set}" = set; then
21237 withval="$with_glpk"
21238 if test "$withval" = no ; then
21239 coin_has_glpk=skipping
21240 fi
21241
21242 fi;
21243 fi
21244
21245 GLPK_LIBS=
21246 GLPK_CFLAGS=
21247 GLPK_DATA=
21248 GLPK_DEPENDENCIES=
21249 GLPK_PCLIBS=
21250 GLPK_PCREQUIRES=
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21269 if test $coin_has_glpk != skipping; then
21270
21271 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
21272 if test "${with_glpk_lib+set}" = set; then
21273 withval="$with_glpk_lib"
21274 if test "$withval" = no ; then
21275 coin_has_glpk=skipping
21276 else
21277 coin_has_glpk=yes
21278 GLPK_LIBS="$withval"
21279 GLPK_PCLIBS="$withval"
21280
21281 OSIGLPKLIB_PCLIBS="$withval $OSIGLPKLIB_PCLIBS"
21282 OSIGLPKLIB_LIBS="$withval $OSIGLPKLIB_LIBS"
21283
21284 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21285 if test -z "$PKG_CONFIG" ; then
21286 GLPK_LIBS_INSTALLED="$withval"
21287 OSIGLPKLIB_LIBS_INSTALLED="$withval $OSIGLPKLIB_LIBS_INSTALLED"
21288 fi
21289 fi
21290
21291 fi;
21292 fi
21293
21294 if test $coin_has_glpk != skipping; then
21295
21296 # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
21297 if test "${with_glpk_incdir+set}" = set; then
21298 withval="$with_glpk_incdir"
21299 if test "$withval" = no ; then
21300 coin_has_glpk=skipping
21301 else
21302 coin_has_glpk=yes
21303 GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
21304 OSIGLPKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSIGLPKLIB_CFLAGS"
21305 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21306 if test -z "$PKG_CONFIG" ; then
21307 GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
21308 OSIGLPKLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $OSIGLPKLIB_CFLAGS_INSTALLED"
21309 fi
21310 fi
21311
21312 fi;
21313 fi
21314
21315 if test $coin_has_glpk != skipping; then
21316
21317 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
21318 if test "${with_glpk_datadir+set}" = set; then
21319 withval="$with_glpk_datadir"
21320 if test "$withval" = no ; then
21321 coin_has_glpk=skipping
21322 else
21323 coin_has_glpk=yes
21324 GLPK_DATA="$withval"
21325 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21326 if test -z "$PKG_CONFIG" ; then
21327 GLPK_DATA_INSTALLED="$withval"
21328 fi
21329 fi
21330
21331 fi;
21332 fi
21333
21334 if test $coin_has_glpk = notGiven; then
21335 if test -n "$PKG_CONFIG" ; then
21336 # set search path for pkg-config
21337 # need to export variable to be sure that the following pkg-config gets these values
21338 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21339 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21340 export PKG_CONFIG_PATH
21341
21342 # let pkg-config do it's magic
21343
21344
21345
21346 if test -n "$PKG_CONFIG" ; then
21347 if $PKG_CONFIG --exists "coinglpk"; then
21348 GLPK_VERSIONS=`$PKG_CONFIG --modversion "coinglpk" 2>/dev/null | tr '\n' ' '`
21349 cflags=`$PKG_CONFIG --cflags "coinglpk" 2>/dev/null`
21350 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21351 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21352 # but only do this if is not trivial
21353 if test "$CYGPATH_W" != "echo" ; then
21354 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21355 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21356 fi
21357 GLPK_CFLAGS="$cflags"
21358 GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk" 2>/dev/null`
21359 GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk" 2>/dev/null`
21360 coin_has_glpk=yes
21361 echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
21362 echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
21363
21364 # adjust linker flags for (i)cl compiler
21365 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21366 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21367 then
21368 GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21369 fi
21370 GLPK_PCREQUIRES="coinglpk"
21371
21372 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiGlpkLib
21373
21374 OSIGLPKLIB_PCREQUIRES="coinglpk $OSIGLPKLIB_PCREQUIRES"
21375 OSIGLPKLIB_CFLAGS="$GLPK_CFLAGS $OSIGLPKLIB_CFLAGS"
21376 OSIGLPKLIB_LIBS="$GLPK_LIBS $OSIGLPKLIB_LIBS"
21377
21378
21379
21380 else
21381 GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk"`
21382 coin_has_glpk=notGiven
21383 echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
21384 echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
21385
21386 fi
21387 else
21388 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
21389 echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
21390 { (exit 1); exit 1; }; }
21391 fi
21392
21393
21394
21395
21396 # reset PKG_CONFIG_PATH variable
21397 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21398 export PKG_CONFIG_PATH
21399
21400 else
21401 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21402 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21403
21404 echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
21405 echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
21406
21407 coin_has_glpk=notGiven
21408 GLPK_LIBS=
21409 GLPK_LIBS_INSTALLED=
21410 GLPK_CFLAGS=
21411 GLPK_CFLAGS_INSTALLED=
21412 GLPK_DATA=
21413 GLPK_DATA_INSTALLED=
21414 GLPK_PCLIBS=
21415 GLPK_PCREQUIRES=
21416
21417 # initial list of dependencies is "coinglpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21418 projtoprocess="coinglpk"
21419
21420 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21421 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21422 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21423 # also, we setup the DATA variable
21424 allproj=""
21425 allpcfiles=""
21426 allpcifiles=""
21427 while test "x$projtoprocess" != x ; do
21428
21429 for proj in $projtoprocess ; do
21430 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21431 pcfile=""
21432 save_IFS="$IFS"
21433 IFS=":"
21434 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21435 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21436 if test -r "$dir/${proj}-uninstalled.pc" ; then
21437 pcfile="$dir/$proj-uninstalled.pc"
21438 if test -r "$dir/${proj}.pc" ; then
21439 pcifile="$dir/${proj}.pc"
21440 else
21441 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21442 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21443 pcifile=
21444 fi
21445 break
21446 fi
21447 done
21448 IFS="$save_IFS"
21449
21450 if test "x$pcfile" != x ; then
21451 # read dependencies from $pcfile and filter it
21452 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21453
21454 # add projrequires to the front of the list of projects that have to be processed next
21455 # at the same time, remove $proj from this list
21456 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21457
21458 # read DATA from $pcfile, if _DATA is still empty
21459 if test "x$GLPK_DATA" = x ; then
21460 projdatadir=
21461 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21462 eval `sh -c "$pcfilemod"`
21463 GLPK_DATA="$projdatadir"
21464 fi
21465
21466 allproj="$allproj $proj"
21467 allpcfiles="$pcfile:$allpcfiles"
21468
21469 else
21470 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21471 echo "${ECHO_T}no, dependency $proj not available" >&6
21472 allproj=fail
21473 break 2
21474 fi
21475
21476 if test "x$pcifile" != x ; then
21477 allpcifiles="$pcifile:$allpcifiles"
21478
21479 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21480 if test "x$GLPK_DATA_INSTALLED" = x ; then
21481 projdatadir=
21482 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21483 eval `sh -c "$pcifilemod"`
21484 if test "${CYGPATH_W}" != "echo"; then
21485 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21486 fi
21487 GLPK_DATA_INSTALLED="$projdatadir"
21488 fi
21489
21490 fi
21491
21492 break
21493 done
21494
21495 # remove spaces on begin of $projtoprocess
21496 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21497
21498 done
21499
21500 if test "$allproj" != fail ; then
21501
21502 # now go through the list of .pc files and assemble compiler and linker flags
21503 # important is here to obey the reverse order that has been setup before,
21504 # since then libraries that are required by several others should be after these other libraries
21505 pcfilesprocessed=""
21506
21507 save_IFS="$IFS"
21508 IFS=":"
21509 for pcfile in $allpcfiles ; do
21510
21511 # if $pcfile has been processed already, skip this round
21512 if test "x$pcfilesprocessed" != x ; then
21513 for pcfiledone in $pcfilesprocessed ; do
21514 if test "$pcfiledone" = "$pcfile" ; then
21515 continue 2
21516 fi
21517 done
21518 fi
21519
21520 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21521 # replace "Libs:" by "echo projlibs="
21522 # replace "Cflags:" by "echo projcflags="
21523 # remove every line starting with <some word>:
21524 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21525
21526 # set projcflags and projlibs variables by running $pcfilemod
21527 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21528 projcflags=
21529 projlibs=
21530 IFS="$save_IFS"
21531 eval `sh -c "$pcfilemod"`
21532 IFS=":"
21533
21534 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21535 if test "${CYGPATH_W}" != "echo"; then
21536 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21537 fi
21538 GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
21539
21540 # set LIBS variable
21541 GLPK_LIBS="$projlibs $GLPK_LIBS"
21542
21543 # remember that we have processed $pcfile
21544 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21545
21546 done
21547 IFS="$save_IFS"
21548
21549
21550 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21551 # important is here again to obey the reverse order that has been setup before,
21552 # since then libraries that are required by several others should be after these other libraries
21553 pcfilesprocessed=""
21554
21555 save_IFS="$IFS"
21556 IFS=":"
21557 for pcfile in $allpcifiles ; do
21558
21559 # if $pcfile has been processed already, skip this round
21560 if test "x$pcfilesprocessed" != x ; then
21561 for pcfiledone in $pcfilesprocessed ; do
21562 if test "$pcfiledone" = "$pcfile" ; then
21563 continue 2
21564 fi
21565 done
21566 fi
21567
21568 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21569 # replace "Libs:" by "echo projlibs="
21570 # replace "Cflags:" by "echo projcflags="
21571 # remove every line starting with <some word>:
21572 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21573
21574 # set projcflags and projlibs variables by running $pcfilemod
21575 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21576 projcflags=
21577 projlibs=
21578 IFS="$save_IFS"
21579 eval `sh -c "$pcfilemod"`
21580 IFS=":"
21581
21582 # add CYGPATH_W cludge into include flags and set CFLAGS variable
21583 if test "${CYGPATH_W}" != "echo"; then
21584 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21585 fi
21586 GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
21587
21588 # set LIBS variable
21589 GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
21590
21591 # remember that we have processed $pcfile
21592 pcfilesprocessed="$pcfilesprocessed:$pcfile"
21593
21594 done
21595 IFS="$save_IFS"
21596
21597
21598 # finish up
21599 coin_has_glpk=yes
21600 echo "$as_me:$LINENO: result: yes" >&5
21601 echo "${ECHO_T}yes" >&6
21602
21603 cat >>confdefs.h <<\_ACEOF
21604 #define COIN_HAS_GLPK 1
21605 _ACEOF
21606
21607
21608 # adjust linker flags for (i)cl compiler
21609 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21610 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21611 # everything of the form "-lname" by "libname.lib", and
21612 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21613 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21614 then
21615 GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21616 GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21617 fi
21618
21619 GLPK_PCREQUIRES="coinglpk"
21620
21621 OSIGLPKLIB_PCREQUIRES="coinglpk $OSIGLPKLIB_PCREQUIRES"
21622 OSIGLPKLIB_CFLAGS="$GLPK_CFLAGS $OSIGLPKLIB_CFLAGS"
21623 OSIGLPKLIB_LIBS="$GLPK_LIBS $OSIGLPKLIB_LIBS"
21624 OSIGLPKLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $OSIGLPKLIB_CFLAGS_INSTALLED"
21625 OSIGLPKLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $OSIGLPKLIB_LIBS_INSTALLED"
21626
21627
21628 fi
21629
21630
21631
21632 if test $coin_has_glpk != notGiven &&
21633 test $coin_has_glpk != skipping; then
21634 COIN_HAS_GLPK_TRUE=
21635 COIN_HAS_GLPK_FALSE='#'
21636 else
21637 COIN_HAS_GLPK_TRUE='#'
21638 COIN_HAS_GLPK_FALSE=
21639 fi
21640
21641
21642
21643 fi
21644
21645 else
21646 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
21647 echo "${ECHO_T}$coin_has_glpk" >&6
21648 fi
21649
21650 if test $coin_has_glpk != skipping &&
21651 test $coin_has_glpk != notGiven ; then
21652
21653 cat >>confdefs.h <<\_ACEOF
21654 #define COIN_HAS_GLPK 1
21655 _ACEOF
21656
21657
21658 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21659 if test "${enable_interpackage_dependencies+set}" = set; then
21660 enableval="$enable_interpackage_dependencies"
21661
21662 else
21663 enable_interpackage_dependencies=yes
21664 fi;
21665
21666 if test $enable_interpackage_dependencies = yes ; then
21667 # construct dependencies variables from LIBS variables
21668 # we add an extra space in LIBS so we can substitute out everything starting with " -"
21669 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21670 # then remove everything of the form -xxx
21671 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21672 GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21673
21674 OSIGLPKLIB_DEPENDENCIES=`echo " $OSIGLPKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21675
21676 fi
21677
21678 if test 1 = 0 ; then #change this test to enable a bit of debugging output
21679 if test -n "$GLPK_CFLAGS" ; then
21680 { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
21681 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
21682 fi
21683 if test -n "$GLPK_LIBS" ; then
21684 { echo "$as_me:$LINENO: Glpk LIBS are $GLPK_LIBS" >&5
21685 echo "$as_me: Glpk LIBS are $GLPK_LIBS" >&6;}
21686 fi
21687 if test -n "$GLPK_DEPENDENCIES" ; then
21688 { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
21689 echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
21690 fi
21691 if test -n "$GLPK_DATA" ; then
21692 { echo "$as_me:$LINENO: Glpk DATA is $GLPK_DATA" >&5
21693 echo "$as_me: Glpk DATA is $GLPK_DATA" >&6;}
21694 fi
21695 if test -n "$GLPK_PCLIBS" ; then
21696 { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
21697 echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
21698 fi
21699 if test -n "$GLPK_PCREQUIRES" ; then
21700 { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
21701 echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
21702 fi
21703
21704 { echo "$as_me:$LINENO: OsiGlpkLib CFLAGS are $OSIGLPKLIB_CFLAGS" >&5
21705 echo "$as_me: OsiGlpkLib CFLAGS are $OSIGLPKLIB_CFLAGS" >&6;}
21706 { echo "$as_me:$LINENO: OsiGlpkLib LIBS are $OSIGLPKLIB_LIBS" >&5
21707 echo "$as_me: OsiGlpkLib LIBS are $OSIGLPKLIB_LIBS" >&6;}
21708 { echo "$as_me:$LINENO: OsiGlpkLib DEPENDENCIES are $OSIGLPKLIB_DEPENDENCIES" >&5
21709 echo "$as_me: OsiGlpkLib DEPENDENCIES are $OSIGLPKLIB_DEPENDENCIES" >&6;}
21710
21711 fi
21712 fi
21713
21714 # Define the Makefile conditional
21715
21716
21717 if test $coin_has_glpk != notGiven &&
21718 test $coin_has_glpk != skipping; then
21719 COIN_HAS_GLPK_TRUE=
21720 COIN_HAS_GLPK_FALSE='#'
21721 else
21722 COIN_HAS_GLPK_TRUE='#'
21723 COIN_HAS_GLPK_FALSE=
21724 fi
21725
21726
21727
21728
21729 echo "$as_me:$LINENO: checking for COIN-OR package SoPlex" >&5
21730 echo $ECHO_N "checking for COIN-OR package SoPlex... $ECHO_C" >&6
21731
21732 coin_has_soplex=notGiven
21733
21734 # check if user wants to skip package in any case
21735 if test x"$COIN_SKIP_PROJECTS" != x; then
21736 for dir in $COIN_SKIP_PROJECTS; do
21737 if test $dir = "SoPlex"; then
21738 coin_has_soplex=skipping
21739 fi
21740 done
21741 fi
21742
21743 if test "$coin_has_soplex" != skipping; then
21744
21745 # Check whether --with-m4_tolower(SoPlex) or --without-m4_tolower(SoPlex) was given.
21746 if test "${with_soplex+set}" = set; then
21747 withval="$with_soplex"
21748 if test "$withval" = no ; then
21749 coin_has_soplex=skipping
21750 fi
21751
21752 fi;
21753 fi
21754
21755 SOPLEX_LIBS=
21756 SOPLEX_CFLAGS=
21757 SOPLEX_DATA=
21758 SOPLEX_DEPENDENCIES=
21759 SOPLEX_PCLIBS=
21760 SOPLEX_PCREQUIRES=
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21779 if test $coin_has_soplex != skipping; then
21780
21781 # Check whether --with-m4_tolower(SoPlex)-lib or --without-m4_tolower(SoPlex)-lib was given.
21782 if test "${with_soplex_lib+set}" = set; then
21783 withval="$with_soplex_lib"
21784 if test "$withval" = no ; then
21785 coin_has_soplex=skipping
21786 else
21787 coin_has_soplex=yes
21788 SOPLEX_LIBS="$withval"
21789 SOPLEX_PCLIBS="$withval"
21790
21791 OSISPXLIB_PCLIBS="$withval $OSISPXLIB_PCLIBS"
21792 OSISPXLIB_LIBS="$withval $OSISPXLIB_LIBS"
21793
21794 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21795 if test -z "$PKG_CONFIG" ; then
21796 SOPLEX_LIBS_INSTALLED="$withval"
21797 OSISPXLIB_LIBS_INSTALLED="$withval $OSISPXLIB_LIBS_INSTALLED"
21798 fi
21799 fi
21800
21801 fi;
21802 fi
21803
21804 if test $coin_has_soplex != skipping; then
21805
21806 # Check whether --with-m4_tolower(SoPlex)-incdir or --without-m4_tolower(SoPlex)-incdir was given.
21807 if test "${with_soplex_incdir+set}" = set; then
21808 withval="$with_soplex_incdir"
21809 if test "$withval" = no ; then
21810 coin_has_soplex=skipping
21811 else
21812 coin_has_soplex=yes
21813 SOPLEX_CFLAGS="-I`${CYGPATH_W} $withval`"
21814 OSISPXLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSISPXLIB_CFLAGS"
21815 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21816 if test -z "$PKG_CONFIG" ; then
21817 SOPLEX_CFLAGS_INSTALLED="$SOPLEX_CFLAGS"
21818 OSISPXLIB_CFLAGS_INSTALLED="$SOPLEX_CFLAGS $OSISPXLIB_CFLAGS_INSTALLED"
21819 fi
21820 fi
21821
21822 fi;
21823 fi
21824
21825 if test $coin_has_soplex != skipping; then
21826
21827 # Check whether --with-m4_tolower(SoPlex)-datadir or --without-m4_tolower(SoPlex)-datadir was given.
21828 if test "${with_soplex_datadir+set}" = set; then
21829 withval="$with_soplex_datadir"
21830 if test "$withval" = no ; then
21831 coin_has_soplex=skipping
21832 else
21833 coin_has_soplex=yes
21834 SOPLEX_DATA="$withval"
21835 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21836 if test -z "$PKG_CONFIG" ; then
21837 SOPLEX_DATA_INSTALLED="$withval"
21838 fi
21839 fi
21840
21841 fi;
21842 fi
21843
21844 if test $coin_has_soplex = notGiven; then
21845 if test -n "$PKG_CONFIG" ; then
21846 # set search path for pkg-config
21847 # need to export variable to be sure that the following pkg-config gets these values
21848 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21849 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21850 export PKG_CONFIG_PATH
21851
21852 # let pkg-config do it's magic
21853
21854
21855
21856 if test -n "$PKG_CONFIG" ; then
21857 if $PKG_CONFIG --exists "coinsoplex < 1.7"; then
21858 SOPLEX_VERSIONS=`$PKG_CONFIG --modversion "coinsoplex < 1.7" 2>/dev/null | tr '\n' ' '`
21859 cflags=`$PKG_CONFIG --cflags "coinsoplex < 1.7" 2>/dev/null`
21860 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21861 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21862 # but only do this if is not trivial
21863 if test "$CYGPATH_W" != "echo" ; then
21864 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21865 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21866 fi
21867 SOPLEX_CFLAGS="$cflags"
21868 SOPLEX_LIBS=`$PKG_CONFIG --libs "coinsoplex < 1.7" 2>/dev/null`
21869 SOPLEX_DATA=`$PKG_CONFIG --variable=datadir "coinsoplex < 1.7" 2>/dev/null`
21870 coin_has_soplex=yes
21871 echo "$as_me:$LINENO: result: yes: $SOPLEX_VERSIONS" >&5
21872 echo "${ECHO_T}yes: $SOPLEX_VERSIONS" >&6
21873
21874 # adjust linker flags for (i)cl compiler
21875 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21876 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21877 then
21878 SOPLEX_LIBS=`echo " $SOPLEX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21879 fi
21880 SOPLEX_PCREQUIRES="coinsoplex < 1.7"
21881
21882 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiSpxLib
21883
21884 OSISPXLIB_PCREQUIRES="coinsoplex < 1.7 $OSISPXLIB_PCREQUIRES"
21885 OSISPXLIB_CFLAGS="$SOPLEX_CFLAGS $OSISPXLIB_CFLAGS"
21886 OSISPXLIB_LIBS="$SOPLEX_LIBS $OSISPXLIB_LIBS"
21887
21888
21889
21890 else
21891 SOPLEX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinsoplex < 1.7"`
21892 coin_has_soplex=notGiven
21893 echo "$as_me:$LINENO: result: not given: $SOPLEX_PKG_ERRORS" >&5
21894 echo "${ECHO_T}not given: $SOPLEX_PKG_ERRORS" >&6
21895
21896 fi
21897 else
21898 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module SoPlex without pkg-config\"" >&5
21899 echo "$as_me: error: \"Cannot check for existance of module SoPlex without pkg-config\"" >&2;}
21900 { (exit 1); exit 1; }; }
21901 fi
21902
21903
21904
21905
21906 # reset PKG_CONFIG_PATH variable
21907 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21908 export PKG_CONFIG_PATH
21909
21910 else
21911 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21912 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21913
21914 echo "$as_me:$LINENO: checking for COIN-OR package SoPlex (fallback)" >&5
21915 echo $ECHO_N "checking for COIN-OR package SoPlex (fallback)... $ECHO_C" >&6
21916
21917 coin_has_soplex=notGiven
21918 SOPLEX_LIBS=
21919 SOPLEX_LIBS_INSTALLED=
21920 SOPLEX_CFLAGS=
21921 SOPLEX_CFLAGS_INSTALLED=
21922 SOPLEX_DATA=
21923 SOPLEX_DATA_INSTALLED=
21924 SOPLEX_PCLIBS=
21925 SOPLEX_PCREQUIRES=
21926
21927 # initial list of dependencies is "coinsoplex < 1.7", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21928 projtoprocess="coinsoplex < 1.7"
21929
21930 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21931 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21932 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21933 # also, we setup the DATA variable
21934 allproj=""
21935 allpcfiles=""
21936 allpcifiles=""
21937 while test "x$projtoprocess" != x ; do
21938
21939 for proj in $projtoprocess ; do
21940 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21941 pcfile=""
21942 save_IFS="$IFS"
21943 IFS=":"
21944 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21945 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21946 if test -r "$dir/${proj}-uninstalled.pc" ; then
21947 pcfile="$dir/$proj-uninstalled.pc"
21948 if test -r "$dir/${proj}.pc" ; then
21949 pcifile="$dir/${proj}.pc"
21950 else
21951 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21952 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21953 pcifile=
21954 fi
21955 break
21956 fi
21957 done
21958 IFS="$save_IFS"
21959
21960 if test "x$pcfile" != x ; then
21961 # read dependencies from $pcfile and filter it
21962 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
21963
21964 # add projrequires to the front of the list of projects that have to be processed next
21965 # at the same time, remove $proj from this list
21966 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21967
21968 # read DATA from $pcfile, if _DATA is still empty
21969 if test "x$SOPLEX_DATA" = x ; then
21970 projdatadir=
21971 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21972 eval `sh -c "$pcfilemod"`
21973 SOPLEX_DATA="$projdatadir"
21974 fi
21975
21976 allproj="$allproj $proj"
21977 allpcfiles="$pcfile:$allpcfiles"
21978
21979 else
21980 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21981 echo "${ECHO_T}no, dependency $proj not available" >&6
21982 allproj=fail
21983 break 2
21984 fi
21985
21986 if test "x$pcifile" != x ; then
21987 allpcifiles="$pcifile:$allpcifiles"
21988
21989 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21990 if test "x$SOPLEX_DATA_INSTALLED" = x ; then
21991 projdatadir=
21992 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21993 eval `sh -c "$pcifilemod"`
21994 if test "${CYGPATH_W}" != "echo"; then
21995 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21996 fi
21997 SOPLEX_DATA_INSTALLED="$projdatadir"
21998 fi
21999
22000 fi
22001
22002 break
22003 done
22004
22005 # remove spaces on begin of $projtoprocess
22006 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22007
22008 done
22009
22010 if test "$allproj" != fail ; then
22011
22012 # now go through the list of .pc files and assemble compiler and linker flags
22013 # important is here to obey the reverse order that has been setup before,
22014 # since then libraries that are required by several others should be after these other libraries
22015 pcfilesprocessed=""
22016
22017 save_IFS="$IFS"
22018 IFS=":"
22019 for pcfile in $allpcfiles ; do
22020
22021 # if $pcfile has been processed already, skip this round
22022 if test "x$pcfilesprocessed" != x ; then
22023 for pcfiledone in $pcfilesprocessed ; do
22024 if test "$pcfiledone" = "$pcfile" ; then
22025 continue 2
22026 fi
22027 done
22028 fi
22029
22030 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22031 # replace "Libs:" by "echo projlibs="
22032 # replace "Cflags:" by "echo projcflags="
22033 # remove every line starting with <some word>:
22034 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22035
22036 # set projcflags and projlibs variables by running $pcfilemod
22037 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22038 projcflags=
22039 projlibs=
22040 IFS="$save_IFS"
22041 eval `sh -c "$pcfilemod"`
22042 IFS=":"
22043
22044 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22045 if test "${CYGPATH_W}" != "echo"; then
22046 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22047 fi
22048 SOPLEX_CFLAGS="$projcflags $SOPLEX_CFLAGS"
22049
22050 # set LIBS variable
22051 SOPLEX_LIBS="$projlibs $SOPLEX_LIBS"
22052
22053 # remember that we have processed $pcfile
22054 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22055
22056 done
22057 IFS="$save_IFS"
22058
22059
22060 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22061 # important is here again to obey the reverse order that has been setup before,
22062 # since then libraries that are required by several others should be after these other libraries
22063 pcfilesprocessed=""
22064
22065 save_IFS="$IFS"
22066 IFS=":"
22067 for pcfile in $allpcifiles ; do
22068
22069 # if $pcfile has been processed already, skip this round
22070 if test "x$pcfilesprocessed" != x ; then
22071 for pcfiledone in $pcfilesprocessed ; do
22072 if test "$pcfiledone" = "$pcfile" ; then
22073 continue 2
22074 fi
22075 done
22076 fi
22077
22078 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22079 # replace "Libs:" by "echo projlibs="
22080 # replace "Cflags:" by "echo projcflags="
22081 # remove every line starting with <some word>:
22082 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22083
22084 # set projcflags and projlibs variables by running $pcfilemod
22085 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22086 projcflags=
22087 projlibs=
22088 IFS="$save_IFS"
22089 eval `sh -c "$pcfilemod"`
22090 IFS=":"
22091
22092 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22093 if test "${CYGPATH_W}" != "echo"; then
22094 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22095 fi
22096 SOPLEX_CFLAGS_INSTALLED="$projcflags $SOPLEX_CFLAGS_INSTALLED"
22097
22098 # set LIBS variable
22099 SOPLEX_LIBS_INSTALLED="$projlibs $SOPLEX_LIBS_INSTALLED"
22100
22101 # remember that we have processed $pcfile
22102 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22103
22104 done
22105 IFS="$save_IFS"
22106
22107
22108 # finish up
22109 coin_has_soplex=yes
22110 echo "$as_me:$LINENO: result: yes" >&5
22111 echo "${ECHO_T}yes" >&6
22112
22113 cat >>confdefs.h <<\_ACEOF
22114 #define COIN_HAS_SOPLEX 1
22115 _ACEOF
22116
22117
22118 # adjust linker flags for (i)cl compiler
22119 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22120 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22121 # everything of the form "-lname" by "libname.lib", and
22122 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22123 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22124 then
22125 SOPLEX_LIBS=`echo " $SOPLEX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22126 SOPLEX_LIBS_INSTALLED=`echo " $SOPLEX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22127 fi
22128
22129 SOPLEX_PCREQUIRES="coinsoplex < 1.7"
22130
22131 OSISPXLIB_PCREQUIRES="coinsoplex < 1.7 $OSISPXLIB_PCREQUIRES"
22132 OSISPXLIB_CFLAGS="$SOPLEX_CFLAGS $OSISPXLIB_CFLAGS"
22133 OSISPXLIB_LIBS="$SOPLEX_LIBS $OSISPXLIB_LIBS"
22134 OSISPXLIB_CFLAGS_INSTALLED="$SOPLEX_CFLAGS_INSTALLED $OSISPXLIB_CFLAGS_INSTALLED"
22135 OSISPXLIB_LIBS_INSTALLED="$SOPLEX_LIBS_INSTALLED $OSISPXLIB_LIBS_INSTALLED"
22136
22137
22138 fi
22139
22140
22141
22142 if test $coin_has_soplex != notGiven &&
22143 test $coin_has_soplex != skipping; then
22144 COIN_HAS_SOPLEX_TRUE=
22145 COIN_HAS_SOPLEX_FALSE='#'
22146 else
22147 COIN_HAS_SOPLEX_TRUE='#'
22148 COIN_HAS_SOPLEX_FALSE=
22149 fi
22150
22151
22152
22153 fi
22154
22155 else
22156 echo "$as_me:$LINENO: result: $coin_has_soplex" >&5
22157 echo "${ECHO_T}$coin_has_soplex" >&6
22158 fi
22159
22160 if test $coin_has_soplex != skipping &&
22161 test $coin_has_soplex != notGiven ; then
22162
22163 cat >>confdefs.h <<\_ACEOF
22164 #define COIN_HAS_SOPLEX 1
22165 _ACEOF
22166
22167
22168 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22169 if test "${enable_interpackage_dependencies+set}" = set; then
22170 enableval="$enable_interpackage_dependencies"
22171
22172 else
22173 enable_interpackage_dependencies=yes
22174 fi;
22175
22176 if test $enable_interpackage_dependencies = yes ; then
22177 # construct dependencies variables from LIBS variables
22178 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22179 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22180 # then remove everything of the form -xxx
22181 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22182 SOPLEX_DEPENDENCIES=`echo " $SOPLEX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22183
22184 OSISPXLIB_DEPENDENCIES=`echo " $OSISPXLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22185
22186 fi
22187
22188 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22189 if test -n "$SOPLEX_CFLAGS" ; then
22190 { echo "$as_me:$LINENO: SoPlex CFLAGS are $SOPLEX_CFLAGS" >&5
22191 echo "$as_me: SoPlex CFLAGS are $SOPLEX_CFLAGS" >&6;}
22192 fi
22193 if test -n "$SOPLEX_LIBS" ; then
22194 { echo "$as_me:$LINENO: SoPlex LIBS are $SOPLEX_LIBS" >&5
22195 echo "$as_me: SoPlex LIBS are $SOPLEX_LIBS" >&6;}
22196 fi
22197 if test -n "$SOPLEX_DEPENDENCIES" ; then
22198 { echo "$as_me:$LINENO: SoPlex DEPENDENCIES are $SOPLEX_DEPENDENCIES" >&5
22199 echo "$as_me: SoPlex DEPENDENCIES are $SOPLEX_DEPENDENCIES" >&6;}
22200 fi
22201 if test -n "$SOPLEX_DATA" ; then
22202 { echo "$as_me:$LINENO: SoPlex DATA is $SOPLEX_DATA" >&5
22203 echo "$as_me: SoPlex DATA is $SOPLEX_DATA" >&6;}
22204 fi
22205 if test -n "$SOPLEX_PCLIBS" ; then
22206 { echo "$as_me:$LINENO: SoPlex PCLIBS are $SOPLEX_PCLIBS" >&5
22207 echo "$as_me: SoPlex PCLIBS are $SOPLEX_PCLIBS" >&6;}
22208 fi
22209 if test -n "$SOPLEX_PCREQUIRES" ; then
22210 { echo "$as_me:$LINENO: SoPlex PCREQUIRES are $SOPLEX_PCREQUIRES" >&5
22211 echo "$as_me: SoPlex PCREQUIRES are $SOPLEX_PCREQUIRES" >&6;}
22212 fi
22213
22214 { echo "$as_me:$LINENO: OsiSpxLib CFLAGS are $OSISPXLIB_CFLAGS" >&5
22215 echo "$as_me: OsiSpxLib CFLAGS are $OSISPXLIB_CFLAGS" >&6;}
22216 { echo "$as_me:$LINENO: OsiSpxLib LIBS are $OSISPXLIB_LIBS" >&5
22217 echo "$as_me: OsiSpxLib LIBS are $OSISPXLIB_LIBS" >&6;}
22218 { echo "$as_me:$LINENO: OsiSpxLib DEPENDENCIES are $OSISPXLIB_DEPENDENCIES" >&5
22219 echo "$as_me: OsiSpxLib DEPENDENCIES are $OSISPXLIB_DEPENDENCIES" >&6;}
22220
22221 fi
22222 fi
22223
22224 # Define the Makefile conditional
22225
22226
22227 if test $coin_has_soplex != notGiven &&
22228 test $coin_has_soplex != skipping; then
22229 COIN_HAS_SOPLEX_TRUE=
22230 COIN_HAS_SOPLEX_FALSE='#'
22231 else
22232 COIN_HAS_SOPLEX_TRUE='#'
22233 COIN_HAS_SOPLEX_FALSE=
22234 fi
22235
22236
22237
22238
22239 echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
22240 echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
22241
22242 coin_has_sample=notGiven
22243
22244 # check if user wants to skip package in any case
22245 if test x"$COIN_SKIP_PROJECTS" != x; then
22246 for dir in $COIN_SKIP_PROJECTS; do
22247 if test $dir = "Sample"; then
22248 coin_has_sample=skipping
22249 fi
22250 done
22251 fi
22252
22253 if test "$coin_has_sample" != skipping; then
22254
22255 # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
22256 if test "${with_sample+set}" = set; then
22257 withval="$with_sample"
22258 if test "$withval" = no ; then
22259 coin_has_sample=skipping
22260 fi
22261
22262 fi;
22263 fi
22264
22265 SAMPLE_LIBS=
22266 SAMPLE_CFLAGS=
22267 SAMPLE_DATA=
22268 SAMPLE_DEPENDENCIES=
22269 SAMPLE_PCLIBS=
22270 SAMPLE_PCREQUIRES=
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22281 if test $coin_has_sample != skipping; then
22282
22283 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
22284 if test "${with_sample_lib+set}" = set; then
22285 withval="$with_sample_lib"
22286 if test "$withval" = no ; then
22287 coin_has_sample=skipping
22288 else
22289 coin_has_sample=yes
22290 SAMPLE_LIBS="$withval"
22291 SAMPLE_PCLIBS="$withval"
22292
22293 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22294 if test -z "$PKG_CONFIG" ; then
22295 SAMPLE_LIBS_INSTALLED="$withval"
22296
22297 fi
22298 fi
22299
22300 fi;
22301 fi
22302
22303 if test $coin_has_sample != skipping; then
22304
22305 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
22306 if test "${with_sample_incdir+set}" = set; then
22307 withval="$with_sample_incdir"
22308 if test "$withval" = no ; then
22309 coin_has_sample=skipping
22310 else
22311 coin_has_sample=yes
22312 SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
22313
22314 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22315 if test -z "$PKG_CONFIG" ; then
22316 SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
22317
22318 fi
22319 fi
22320
22321 fi;
22322 fi
22323
22324 if test $coin_has_sample != skipping; then
22325
22326 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
22327 if test "${with_sample_datadir+set}" = set; then
22328 withval="$with_sample_datadir"
22329 if test "$withval" = no ; then
22330 coin_has_sample=skipping
22331 else
22332 coin_has_sample=yes
22333 SAMPLE_DATA="$withval"
22334 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22335 if test -z "$PKG_CONFIG" ; then
22336 SAMPLE_DATA_INSTALLED="$withval"
22337 fi
22338 fi
22339
22340 fi;
22341 fi
22342
22343 if test $coin_has_sample = notGiven; then
22344 if test -n "$PKG_CONFIG" ; then
22345 # set search path for pkg-config
22346 # need to export variable to be sure that the following pkg-config gets these values
22347 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22348 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22349 export PKG_CONFIG_PATH
22350
22351 # let pkg-config do it's magic
22352
22353
22354
22355 if test -n "$PKG_CONFIG" ; then
22356 if $PKG_CONFIG --exists "coindatasample"; then
22357 SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
22358 cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
22359 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22360 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22361 # but only do this if is not trivial
22362 if test "$CYGPATH_W" != "echo" ; then
22363 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22364 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22365 fi
22366 SAMPLE_CFLAGS="$cflags"
22367 SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
22368 SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
22369 coin_has_sample=yes
22370 echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
22371 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
22372
22373 # adjust linker flags for (i)cl compiler
22374 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22375 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22376 then
22377 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22378 fi
22379 SAMPLE_PCREQUIRES="coindatasample"
22380
22381 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22382
22383
22384
22385 else
22386 SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
22387 coin_has_sample=notGiven
22388 echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
22389 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
22390
22391 fi
22392 else
22393 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
22394 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
22395 { (exit 1); exit 1; }; }
22396 fi
22397
22398
22399
22400
22401 # reset PKG_CONFIG_PATH variable
22402 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22403 export PKG_CONFIG_PATH
22404
22405 else
22406 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22407 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22408
22409 echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
22410 echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
22411
22412 coin_has_sample=notGiven
22413 SAMPLE_LIBS=
22414 SAMPLE_LIBS_INSTALLED=
22415 SAMPLE_CFLAGS=
22416 SAMPLE_CFLAGS_INSTALLED=
22417 SAMPLE_DATA=
22418 SAMPLE_DATA_INSTALLED=
22419 SAMPLE_PCLIBS=
22420 SAMPLE_PCREQUIRES=
22421
22422 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22423 projtoprocess="coindatasample"
22424
22425 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22426 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22427 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22428 # also, we setup the DATA variable
22429 allproj=""
22430 allpcfiles=""
22431 allpcifiles=""
22432 while test "x$projtoprocess" != x ; do
22433
22434 for proj in $projtoprocess ; do
22435 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22436 pcfile=""
22437 save_IFS="$IFS"
22438 IFS=":"
22439 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22440 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22441 if test -r "$dir/${proj}-uninstalled.pc" ; then
22442 pcfile="$dir/$proj-uninstalled.pc"
22443 if test -r "$dir/${proj}.pc" ; then
22444 pcifile="$dir/${proj}.pc"
22445 else
22446 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22447 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22448 pcifile=
22449 fi
22450 break
22451 fi
22452 done
22453 IFS="$save_IFS"
22454
22455 if test "x$pcfile" != x ; then
22456 # read dependencies from $pcfile and filter it
22457 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22458
22459 # add projrequires to the front of the list of projects that have to be processed next
22460 # at the same time, remove $proj from this list
22461 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22462
22463 # read DATA from $pcfile, if _DATA is still empty
22464 if test "x$SAMPLE_DATA" = x ; then
22465 projdatadir=
22466 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22467 eval `sh -c "$pcfilemod"`
22468 SAMPLE_DATA="$projdatadir"
22469 fi
22470
22471 allproj="$allproj $proj"
22472 allpcfiles="$pcfile:$allpcfiles"
22473
22474 else
22475 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22476 echo "${ECHO_T}no, dependency $proj not available" >&6
22477 allproj=fail
22478 break 2
22479 fi
22480
22481 if test "x$pcifile" != x ; then
22482 allpcifiles="$pcifile:$allpcifiles"
22483
22484 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22485 if test "x$SAMPLE_DATA_INSTALLED" = x ; then
22486 projdatadir=
22487 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22488 eval `sh -c "$pcifilemod"`
22489 if test "${CYGPATH_W}" != "echo"; then
22490 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22491 fi
22492 SAMPLE_DATA_INSTALLED="$projdatadir"
22493 fi
22494
22495 fi
22496
22497 break
22498 done
22499
22500 # remove spaces on begin of $projtoprocess
22501 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22502
22503 done
22504
22505 if test "$allproj" != fail ; then
22506
22507 # now go through the list of .pc files and assemble compiler and linker flags
22508 # important is here to obey the reverse order that has been setup before,
22509 # since then libraries that are required by several others should be after these other libraries
22510 pcfilesprocessed=""
22511
22512 save_IFS="$IFS"
22513 IFS=":"
22514 for pcfile in $allpcfiles ; do
22515
22516 # if $pcfile has been processed already, skip this round
22517 if test "x$pcfilesprocessed" != x ; then
22518 for pcfiledone in $pcfilesprocessed ; do
22519 if test "$pcfiledone" = "$pcfile" ; then
22520 continue 2
22521 fi
22522 done
22523 fi
22524
22525 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22526 # replace "Libs:" by "echo projlibs="
22527 # replace "Cflags:" by "echo projcflags="
22528 # remove every line starting with <some word>:
22529 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22530
22531 # set projcflags and projlibs variables by running $pcfilemod
22532 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22533 projcflags=
22534 projlibs=
22535 IFS="$save_IFS"
22536 eval `sh -c "$pcfilemod"`
22537 IFS=":"
22538
22539 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22540 if test "${CYGPATH_W}" != "echo"; then
22541 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22542 fi
22543 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
22544
22545 # set LIBS variable
22546 SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
22547
22548 # remember that we have processed $pcfile
22549 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22550
22551 done
22552 IFS="$save_IFS"
22553
22554
22555 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22556 # important is here again to obey the reverse order that has been setup before,
22557 # since then libraries that are required by several others should be after these other libraries
22558 pcfilesprocessed=""
22559
22560 save_IFS="$IFS"
22561 IFS=":"
22562 for pcfile in $allpcifiles ; do
22563
22564 # if $pcfile has been processed already, skip this round
22565 if test "x$pcfilesprocessed" != x ; then
22566 for pcfiledone in $pcfilesprocessed ; do
22567 if test "$pcfiledone" = "$pcfile" ; then
22568 continue 2
22569 fi
22570 done
22571 fi
22572
22573 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22574 # replace "Libs:" by "echo projlibs="
22575 # replace "Cflags:" by "echo projcflags="
22576 # remove every line starting with <some word>:
22577 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22578
22579 # set projcflags and projlibs variables by running $pcfilemod
22580 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22581 projcflags=
22582 projlibs=
22583 IFS="$save_IFS"
22584 eval `sh -c "$pcfilemod"`
22585 IFS=":"
22586
22587 # add CYGPATH_W cludge into include flags and set CFLAGS variable
22588 if test "${CYGPATH_W}" != "echo"; then
22589 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22590 fi
22591 SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
22592
22593 # set LIBS variable
22594 SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
22595
22596 # remember that we have processed $pcfile
22597 pcfilesprocessed="$pcfilesprocessed:$pcfile"
22598
22599 done
22600 IFS="$save_IFS"
22601
22602
22603 # finish up
22604 coin_has_sample=yes
22605 echo "$as_me:$LINENO: result: yes" >&5
22606 echo "${ECHO_T}yes" >&6
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define COIN_HAS_SAMPLE 1
22610 _ACEOF
22611
22612
22613 # adjust linker flags for (i)cl compiler
22614 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22615 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22616 # everything of the form "-lname" by "libname.lib", and
22617 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22618 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22619 then
22620 SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22621 SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22622 fi
22623
22624 SAMPLE_PCREQUIRES="coindatasample"
22625
22626
22627 fi
22628
22629
22630
22631 if test $coin_has_sample != notGiven &&
22632 test $coin_has_sample != skipping; then
22633 COIN_HAS_SAMPLE_TRUE=
22634 COIN_HAS_SAMPLE_FALSE='#'
22635 else
22636 COIN_HAS_SAMPLE_TRUE='#'
22637 COIN_HAS_SAMPLE_FALSE=
22638 fi
22639
22640
22641
22642 fi
22643
22644 else
22645 echo "$as_me:$LINENO: result: $coin_has_sample" >&5
22646 echo "${ECHO_T}$coin_has_sample" >&6
22647 fi
22648
22649 if test $coin_has_sample != skipping &&
22650 test $coin_has_sample != notGiven ; then
22651
22652 cat >>confdefs.h <<\_ACEOF
22653 #define COIN_HAS_SAMPLE 1
22654 _ACEOF
22655
22656
22657 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22658 if test "${enable_interpackage_dependencies+set}" = set; then
22659 enableval="$enable_interpackage_dependencies"
22660
22661 else
22662 enable_interpackage_dependencies=yes
22663 fi;
22664
22665 if test $enable_interpackage_dependencies = yes ; then
22666 # construct dependencies variables from LIBS variables
22667 # we add an extra space in LIBS so we can substitute out everything starting with " -"
22668 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22669 # then remove everything of the form -xxx
22670 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22671 SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22672
22673 fi
22674
22675 if test 1 = 0 ; then #change this test to enable a bit of debugging output
22676 if test -n "$SAMPLE_CFLAGS" ; then
22677 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
22678 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
22679 fi
22680 if test -n "$SAMPLE_LIBS" ; then
22681 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5
22682 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;}
22683 fi
22684 if test -n "$SAMPLE_DEPENDENCIES" ; then
22685 { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
22686 echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
22687 fi
22688 if test -n "$SAMPLE_DATA" ; then
22689 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5
22690 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;}
22691 fi
22692 if test -n "$SAMPLE_PCLIBS" ; then
22693 { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
22694 echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
22695 fi
22696 if test -n "$SAMPLE_PCREQUIRES" ; then
22697 { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
22698 echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
22699 fi
22700
22701 fi
22702 fi
22703
22704 # Define the Makefile conditional
22705
22706
22707 if test $coin_has_sample != notGiven &&
22708 test $coin_has_sample != skipping; then
22709 COIN_HAS_SAMPLE_TRUE=
22710 COIN_HAS_SAMPLE_FALSE='#'
22711 else
22712 COIN_HAS_SAMPLE_TRUE='#'
22713 COIN_HAS_SAMPLE_FALSE=
22714 fi
22715
22716
22717
22718
22719 echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
22720 echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
22721
22722 coin_has_netlib=notGiven
22723
22724 # check if user wants to skip package in any case
22725 if test x"$COIN_SKIP_PROJECTS" != x; then
22726 for dir in $COIN_SKIP_PROJECTS; do
22727 if test $dir = "Netlib"; then
22728 coin_has_netlib=skipping
22729 fi
22730 done
22731 fi
22732
22733 if test "$coin_has_netlib" != skipping; then
22734
22735 # Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
22736 if test "${with_netlib+set}" = set; then
22737 withval="$with_netlib"
22738 if test "$withval" = no ; then
22739 coin_has_netlib=skipping
22740 fi
22741
22742 fi;
22743 fi
22744
22745 NETLIB_LIBS=
22746 NETLIB_CFLAGS=
22747 NETLIB_DATA=
22748 NETLIB_DEPENDENCIES=
22749 NETLIB_PCLIBS=
22750 NETLIB_PCREQUIRES=
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22761 if test $coin_has_netlib != skipping; then
22762
22763 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
22764 if test "${with_netlib_lib+set}" = set; then
22765 withval="$with_netlib_lib"
22766 if test "$withval" = no ; then
22767 coin_has_netlib=skipping
22768 else
22769 coin_has_netlib=yes
22770 NETLIB_LIBS="$withval"
22771 NETLIB_PCLIBS="$withval"
22772
22773 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22774 if test -z "$PKG_CONFIG" ; then
22775 NETLIB_LIBS_INSTALLED="$withval"
22776
22777 fi
22778 fi
22779
22780 fi;
22781 fi
22782
22783 if test $coin_has_netlib != skipping; then
22784
22785 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
22786 if test "${with_netlib_incdir+set}" = set; then
22787 withval="$with_netlib_incdir"
22788 if test "$withval" = no ; then
22789 coin_has_netlib=skipping
22790 else
22791 coin_has_netlib=yes
22792 NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
22793
22794 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22795 if test -z "$PKG_CONFIG" ; then
22796 NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
22797
22798 fi
22799 fi
22800
22801 fi;
22802 fi
22803
22804 if test $coin_has_netlib != skipping; then
22805
22806 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
22807 if test "${with_netlib_datadir+set}" = set; then
22808 withval="$with_netlib_datadir"
22809 if test "$withval" = no ; then
22810 coin_has_netlib=skipping
22811 else
22812 coin_has_netlib=yes
22813 NETLIB_DATA="$withval"
22814 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22815 if test -z "$PKG_CONFIG" ; then
22816 NETLIB_DATA_INSTALLED="$withval"
22817 fi
22818 fi
22819
22820 fi;
22821 fi
22822
22823 if test $coin_has_netlib = notGiven; then
22824 if test -n "$PKG_CONFIG" ; then
22825 # set search path for pkg-config
22826 # need to export variable to be sure that the following pkg-config gets these values
22827 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22828 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22829 export PKG_CONFIG_PATH
22830
22831 # let pkg-config do it's magic
22832
22833
22834
22835 if test -n "$PKG_CONFIG" ; then
22836 if $PKG_CONFIG --exists "coindatanetlib"; then
22837 NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
22838 cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
22839 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22840 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22841 # but only do this if is not trivial
22842 if test "$CYGPATH_W" != "echo" ; then
22843 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22844 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22845 fi
22846 NETLIB_CFLAGS="$cflags"
22847 NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
22848 NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
22849 coin_has_netlib=yes
22850 echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
22851 echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
22852
22853 # adjust linker flags for (i)cl compiler
22854 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22855 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22856 then
22857 NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22858 fi
22859 NETLIB_PCREQUIRES="coindatanetlib"
22860
22861 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22862
22863
22864
22865 else
22866 NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
22867 coin_has_netlib=notGiven
22868 echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
22869 echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
22870
22871 fi
22872 else
22873 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
22874 echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
22875 { (exit 1); exit 1; }; }
22876 fi
22877
22878
22879
22880
22881 # reset PKG_CONFIG_PATH variable
22882 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22883 export PKG_CONFIG_PATH
22884
22885 else
22886 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22887 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22888
22889 echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
22890 echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
22891
22892 coin_has_netlib=notGiven
22893 NETLIB_LIBS=
22894 NETLIB_LIBS_INSTALLED=
22895 NETLIB_CFLAGS=
22896 NETLIB_CFLAGS_INSTALLED=
22897 NETLIB_DATA=
22898 NETLIB_DATA_INSTALLED=
22899 NETLIB_PCLIBS=
22900 NETLIB_PCREQUIRES=
22901
22902 # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22903 projtoprocess="coindatanetlib"
22904
22905 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22906 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22907 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22908 # also, we setup the DATA variable
22909 allproj=""
22910 allpcfiles=""
22911 allpcifiles=""
22912 while test "x$projtoprocess" != x ; do
22913
22914 for proj in $projtoprocess ; do
22915 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22916 pcfile=""
22917 save_IFS="$IFS"
22918 IFS=":"
22919 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22920 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22921 if test -r "$dir/${proj}-uninstalled.pc" ; then
22922 pcfile="$dir/$proj-uninstalled.pc"
22923 if test -r "$dir/${proj}.pc" ; then
22924 pcifile="$dir/${proj}.pc"
22925 else
22926 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22927 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22928 pcifile=
22929 fi
22930 break
22931 fi
22932 done
22933 IFS="$save_IFS"
22934
22935 if test "x$pcfile" != x ; then
22936 # read dependencies from $pcfile and filter it
22937 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'`
22938
22939 # add projrequires to the front of the list of projects that have to be processed next
22940 # at the same time, remove $proj from this list
22941 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22942
22943 # read DATA from $pcfile, if _DATA is still empty
22944 if test "x$NETLIB_DATA" = x ; then
22945 projdatadir=
22946 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22947 eval `sh -c "$pcfilemod"`
22948 NETLIB_DATA="$projdatadir"
22949 fi
22950
22951 allproj="$allproj $proj"
22952 allpcfiles="$pcfile:$allpcfiles"
22953
22954 else
22955 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22956 echo "${ECHO_T}no, dependency $proj not available" >&6
22957 allproj=fail
22958 break 2
22959 fi
22960
22961 if test "x$pcifile" != x ; then
22962 allpcifiles="$pcifile:$allpcifiles"
22963
22964 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22965 if test "x$NETLIB_DATA_INSTALLED" = x ; then
22966 projdatadir=
22967 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22968 eval `sh -c "$pcifilemod"`
22969 if test "${CYGPATH_W}" != "echo"; then
22970 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22971 fi
22972 NETLIB_DATA_INSTALLED="$projdatadir"
22973 fi
22974
22975 fi
22976
22977 break
22978 done
22979
22980 # remove spaces on begin of $projtoprocess
22981 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22982
22983 done
22984
22985 if test "$allproj" != fail ; then
22986
22987 # now go through the list of .pc files and assemble compiler and linker flags
22988 # important is here to obey the reverse order that has been setup before,
22989 # since then libraries that are required by several others should be after these other libraries
22990 pcfilesprocessed=""
22991
22992 save_IFS="$IFS"
22993 IFS=":"
22994 for pcfile in $allpcfiles ; do
22995
22996 # if $pcfile has been processed already, skip this round
22997 if test "x$pcfilesprocessed" != x ; then
22998 for pcfiledone in $pcfilesprocessed ; do
22999 if test "$pcfiledone" = "$pcfile" ; then
23000 continue 2
23001 fi
23002 done
23003 fi
23004
23005 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23006 # replace "Libs:" by "echo projlibs="
23007 # replace "Cflags:" by "echo projcflags="
23008 # remove every line starting with <some word>:
23009 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23010
23011 # set projcflags and projlibs variables by running $pcfilemod
23012 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23013 projcflags=
23014 projlibs=
23015 IFS="$save_IFS"
23016 eval `sh -c "$pcfilemod"`
23017 IFS=":"
23018
23019 # add CYGPATH_W cludge into include flags and set CFLAGS variable
23020 if test "${CYGPATH_W}" != "echo"; then
23021 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23022 fi
23023 NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
23024
23025 # set LIBS variable
23026 NETLIB_LIBS="$projlibs $NETLIB_LIBS"
23027
23028 # remember that we have processed $pcfile
23029 pcfilesprocessed="$pcfilesprocessed:$pcfile"
23030
23031 done
23032 IFS="$save_IFS"
23033
23034
23035 # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23036 # important is here again to obey the reverse order that has been setup before,
23037 # since then libraries that are required by several others should be after these other libraries
23038 pcfilesprocessed=""
23039
23040 save_IFS="$IFS"
23041 IFS=":"
23042 for pcfile in $allpcifiles ; do
23043
23044 # if $pcfile has been processed already, skip this round
23045 if test "x$pcfilesprocessed" != x ; then
23046 for pcfiledone in $pcfilesprocessed ; do
23047 if test "$pcfiledone" = "$pcfile" ; then
23048 continue 2
23049 fi
23050 done
23051 fi
23052
23053 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23054 # replace "Libs:" by "echo projlibs="
23055 # replace "Cflags:" by "echo projcflags="
23056 # remove every line starting with <some word>:
23057 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23058
23059 # set projcflags and projlibs variables by running $pcfilemod
23060 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23061 projcflags=
23062 projlibs=
23063 IFS="$save_IFS"
23064 eval `sh -c "$pcfilemod"`
23065 IFS=":"
23066
23067 # add CYGPATH_W cludge into include flags and set CFLAGS variable
23068 if test "${CYGPATH_W}" != "echo"; then
23069 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23070 fi
23071 NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
23072
23073 # set LIBS variable
23074 NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
23075
23076 # remember that we have processed $pcfile
23077 pcfilesprocessed="$pcfilesprocessed:$pcfile"
23078
23079 done
23080 IFS="$save_IFS"
23081
23082
23083 # finish up
23084 coin_has_netlib=yes
23085 echo "$as_me:$LINENO: result: yes" >&5
23086 echo "${ECHO_T}yes" >&6
23087
23088 cat >>confdefs.h <<\_ACEOF
23089 #define COIN_HAS_NETLIB 1
23090 _ACEOF
23091
23092
23093 # adjust linker flags for (i)cl compiler
23094 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
23095 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23096 # everything of the form "-lname" by "libname.lib", and
23097 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23098 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23099 then
23100 NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23101 NETLIB_LIBS_INSTALLED=`echo " $NETLIB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23102 fi
23103
23104 NETLIB_PCREQUIRES="coindatanetlib"
23105
23106
23107 fi
23108
23109
23110
23111 if test $coin_has_netlib != notGiven &&
23112 test $coin_has_netlib != skipping; then
23113 COIN_HAS_NETLIB_TRUE=
23114 COIN_HAS_NETLIB_FALSE='#'
23115 else
23116 COIN_HAS_NETLIB_TRUE='#'
23117 COIN_HAS_NETLIB_FALSE=
23118 fi
23119
23120
23121
23122 fi
23123
23124 else
23125 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
23126 echo "${ECHO_T}$coin_has_netlib" >&6
23127 fi
23128
23129 if test $coin_has_netlib != skipping &&
23130 test $coin_has_netlib != notGiven ; then
23131
23132 cat >>confdefs.h <<\_ACEOF
23133 #define COIN_HAS_NETLIB 1
23134 _ACEOF
23135
23136
23137 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23138 if test "${enable_interpackage_dependencies+set}" = set; then
23139 enableval="$enable_interpackage_dependencies"
23140
23141 else
23142 enable_interpackage_dependencies=yes
23143 fi;
23144
23145 if test $enable_interpackage_dependencies = yes ; then
23146 # construct dependencies variables from LIBS variables
23147 # we add an extra space in LIBS so we can substitute out everything starting with " -"
23148 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23149 # then remove everything of the form -xxx
23150 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23151 NETLIB_DEPENDENCIES=`echo " $NETLIB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23152
23153 fi
23154
23155 if test 1 = 0 ; then #change this test to enable a bit of debugging output
23156 if test -n "$NETLIB_CFLAGS" ; then
23157 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
23158 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
23159 fi
23160 if test -n "$NETLIB_LIBS" ; then
23161 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5
23162 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;}
23163 fi
23164 if test -n "$NETLIB_DEPENDENCIES" ; then
23165 { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
23166 echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
23167 fi
23168 if test -n "$NETLIB_DATA" ; then
23169 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5
23170 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;}
23171 fi
23172 if test -n "$NETLIB_PCLIBS" ; then
23173 { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
23174 echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
23175 fi
23176 if test -n "$NETLIB_PCREQUIRES" ; then
23177 { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
23178 echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
23179 fi
23180
23181 fi
23182 fi
23183
23184 # Define the Makefile conditional
23185
23186
23187 if test $coin_has_netlib != notGiven &&
23188 test $coin_has_netlib != skipping; then
23189 COIN_HAS_NETLIB_TRUE=
23190 COIN_HAS_NETLIB_FALSE='#'
23191 else
23192 COIN_HAS_NETLIB_TRUE='#'
23193 COIN_HAS_NETLIB_FALSE=
23194 fi
23195
23196
23197
23198
23199 #############################################################################
23200 # Third party solvers #
23201 #############################################################################
23202
23203 # Check which third party solvers are available. Cplex detection has been
23204 # tested on a semi-regular basis, and Mosek detection most likely works. For
23205 # the rest, it's anyone's guess. -- lh, 080529 --
23206 # fixed detection of Mosek and Xpress -- stefan, 091003 (linux32, gcc) --
23207
23208
23209 echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
23210 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
23211
23212 # Check for header file directory
23213
23214
23215 # Check whether --with-cplex-incdir or --without-cplex-incdir was given.
23216 if test "${with_cplex_incdir+set}" = set; then
23217 withval="$with_cplex_incdir"
23218 CPXINCDIR=`cd $withval; pwd`
23219 fi;
23220
23221 # Check for library directory
23222
23223
23224 # Check whether --with-cplex-lib or --without-cplex-lib was given.
23225 if test "${with_cplex_lib+set}" = set; then
23226 withval="$with_cplex_lib"
23227 CPXLIB=$withval
23228 fi;
23229
23230 # Switch to disable library check if requested
23231
23232 # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
23233 if test "${enable_cplex_libcheck+set}" = set; then
23234 enableval="$enable_cplex_libcheck"
23235 cplex_libcheck=$enableval
23236 else
23237 cplex_libcheck=yes
23238 fi;
23239
23240 # At this point, if we're going to use the library, both LBRYINCDIR and
23241 # LBRYLIB must be defined and not empty.
23242
23243 if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
23244 if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
23245 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&5
23246 echo "$as_me: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&2;}
23247 { (exit 1); exit 1; }; }
23248 fi
23249 coin_has_cpx=true
23250 echo "$as_me:$LINENO: result: yes" >&5
23251 echo "${ECHO_T}yes" >&6
23252 else
23253 coin_has_cpx=false
23254 echo "$as_me:$LINENO: result: no" >&5
23255 echo "${ECHO_T}no" >&6
23256 fi
23257
23258 # If we have instructions for use, consider header and link checks.
23259
23260 if test $coin_has_cpx = true; then
23261
23262 # If argument 3 (file) is given, check for the file. Typically this will be a
23263 # header file, but that's not assumed.
23264
23265 if test -r $CPXINCDIR/cplex.h; then
23266
23267 :
23268 else
23269 { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
23270 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
23271 { (exit 1); exit 1; }; }
23272 :
23273 fi
23274
23275
23276 # Now see if we can link the function. There are arguments for and against
23277 # assuming argument 3 is a header file declaring the function. A correct
23278 # function declaration is the main argument in favour. Having to cope with
23279 # possible dependencies or other oddities are the main arguments against.
23280 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23281 # Obviously, this has limits.
23282
23283 if test x"$cplex_libcheck" != xno; then
23284 coin_save_LIBS="$LIBS"
23285 LIBS="$CPXLIB "
23286 coin_CPX_link=no
23287 ac_ext=c
23288 ac_cpp='$CPP $CPPFLAGS'
23289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23292
23293 for fnm in CPXgetstat ; do
23294 echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
23295 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h. */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302
23303 int
23304 main ()
23305 {
23306 $fnm()
23307 ;
23308 return 0;
23309 }
23310 _ACEOF
23311 rm -f conftest.$ac_objext conftest$ac_exeext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23313 (eval $ac_link) 2>conftest.er1
23314 ac_status=$?
23315 grep -v '^ *+' conftest.er1 >conftest.err
23316 rm -f conftest.er1
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } &&
23320 { ac_try='test -z "$ac_c_werror_flag"
23321 || test ! -s conftest.err'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; } &&
23327 { ac_try='test -s conftest$ac_exeext'
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23333 echo "$as_me:$LINENO: result: yes" >&5
23334 echo "${ECHO_T}yes" >&6
23335 coin_CPX_link=yes
23336 break
23337 else
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341 echo "$as_me:$LINENO: result: no" >&5
23342 echo "${ECHO_T}no" >&6
23343 fi
23344 rm -f conftest.err conftest.$ac_objext \
23345 conftest$ac_exeext conftest.$ac_ext
23346 done
23347 ac_ext=c
23348 ac_cpp='$CPP $CPPFLAGS'
23349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23352
23353 LIBS="$coin_save_LIBS"
23354 if test x"$coin_CPX_link" != xyes ; then
23355 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
23356 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
23357 { (exit 1); exit 1; }; }
23358 fi
23359 fi
23360
23361
23362 # If we make it this far, we've verified the file and linked the function. Add
23363 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23364 # COIN_HAS_LBRY.
23365
23366
23367
23368
23369 cat >>confdefs.h <<\_ACEOF
23370 #define COIN_HAS_CPX 1
23371 _ACEOF
23372
23373 fi
23374
23375 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23376 # automake conditional. These actions must occur unconditionally.
23377
23378
23379
23380
23381
23382 if test $coin_has_cpx = true; then
23383 COIN_HAS_CPX_TRUE=
23384 COIN_HAS_CPX_FALSE='#'
23385 else
23386 COIN_HAS_CPX_TRUE='#'
23387 COIN_HAS_CPX_FALSE=
23388 fi
23389
23390
23391
23392 echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
23393 echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
23394
23395 # Check for header file directory
23396
23397
23398 # Check whether --with-mosek-incdir or --without-mosek-incdir was given.
23399 if test "${with_mosek_incdir+set}" = set; then
23400 withval="$with_mosek_incdir"
23401 MSKINCDIR=`cd $withval; pwd`
23402 fi;
23403
23404 # Check for library directory
23405
23406
23407 # Check whether --with-mosek-lib or --without-mosek-lib was given.
23408 if test "${with_mosek_lib+set}" = set; then
23409 withval="$with_mosek_lib"
23410 MSKLIB=$withval
23411 fi;
23412
23413 # Switch to disable library check if requested
23414
23415 # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
23416 if test "${enable_mosek_libcheck+set}" = set; then
23417 enableval="$enable_mosek_libcheck"
23418 mosek_libcheck=$enableval
23419 else
23420 mosek_libcheck=yes
23421 fi;
23422
23423 # At this point, if we're going to use the library, both LBRYINCDIR and
23424 # LBRYLIB must be defined and not empty.
23425
23426 if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
23427 if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
23428 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&5
23429 echo "$as_me: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&2;}
23430 { (exit 1); exit 1; }; }
23431 fi
23432 coin_has_msk=true
23433 echo "$as_me:$LINENO: result: yes" >&5
23434 echo "${ECHO_T}yes" >&6
23435 else
23436 coin_has_msk=false
23437 echo "$as_me:$LINENO: result: no" >&5
23438 echo "${ECHO_T}no" >&6
23439 fi
23440
23441 # If we have instructions for use, consider header and link checks.
23442
23443 if test $coin_has_msk = true; then
23444
23445 # If argument 3 (file) is given, check for the file. Typically this will be a
23446 # header file, but that's not assumed.
23447
23448 if test -r $MSKINCDIR/mosek.h; then
23449
23450 :
23451 else
23452 { { echo "$as_me:$LINENO: error: Cannot find file mosek.h in $MSKINCDIR" >&5
23453 echo "$as_me: error: Cannot find file mosek.h in $MSKINCDIR" >&2;}
23454 { (exit 1); exit 1; }; }
23455 :
23456 fi
23457
23458
23459 # Now see if we can link the function. There are arguments for and against
23460 # assuming argument 3 is a header file declaring the function. A correct
23461 # function declaration is the main argument in favour. Having to cope with
23462 # possible dependencies or other oddities are the main arguments against.
23463 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23464 # Obviously, this has limits.
23465
23466 if test x"$mosek_libcheck" != xno; then
23467 coin_save_LIBS="$LIBS"
23468 LIBS="$MSKLIB "
23469 coin_MSK_link=no
23470 ac_ext=c
23471 ac_cpp='$CPP $CPPFLAGS'
23472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23475
23476 for fnm in MSK_makeenv ; do
23477 echo "$as_me:$LINENO: checking whether symbol $fnm is available with MSK" >&5
23478 echo $ECHO_N "checking whether symbol $fnm is available with MSK... $ECHO_C" >&6
23479 cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h. */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485
23486 int
23487 main ()
23488 {
23489 $fnm()
23490 ;
23491 return 0;
23492 }
23493 _ACEOF
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496 (eval $ac_link) 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest$ac_exeext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 echo "$as_me:$LINENO: result: yes" >&5
23517 echo "${ECHO_T}yes" >&6
23518 coin_MSK_link=yes
23519 break
23520 else
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524 echo "$as_me:$LINENO: result: no" >&5
23525 echo "${ECHO_T}no" >&6
23526 fi
23527 rm -f conftest.err conftest.$ac_objext \
23528 conftest$ac_exeext conftest.$ac_ext
23529 done
23530 ac_ext=c
23531 ac_cpp='$CPP $CPPFLAGS'
23532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23535
23536 LIBS="$coin_save_LIBS"
23537 if test x"$coin_MSK_link" != xyes ; then
23538 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) MSK_makeenv with MSK" >&5
23539 echo "$as_me: error: Cannot find symbol(s) MSK_makeenv with MSK" >&2;}
23540 { (exit 1); exit 1; }; }
23541 fi
23542 fi
23543
23544
23545 # If we make it this far, we've verified the file and linked the function. Add
23546 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23547 # COIN_HAS_LBRY.
23548
23549
23550
23551
23552 cat >>confdefs.h <<\_ACEOF
23553 #define COIN_HAS_MSK 1
23554 _ACEOF
23555
23556 fi
23557
23558 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23559 # automake conditional. These actions must occur unconditionally.
23560
23561
23562
23563
23564
23565 if test $coin_has_msk = true; then
23566 COIN_HAS_MSK_TRUE=
23567 COIN_HAS_MSK_FALSE='#'
23568 else
23569 COIN_HAS_MSK_TRUE='#'
23570 COIN_HAS_MSK_FALSE=
23571 fi
23572
23573
23574
23575 echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
23576 echo $ECHO_N "checking if user provides library for Xpress... $ECHO_C" >&6
23577
23578 # Check for header file directory
23579
23580
23581 # Check whether --with-xpress-incdir or --without-xpress-incdir was given.
23582 if test "${with_xpress_incdir+set}" = set; then
23583 withval="$with_xpress_incdir"
23584 XPRINCDIR=`cd $withval; pwd`
23585 fi;
23586
23587 # Check for library directory
23588
23589
23590 # Check whether --with-xpress-lib or --without-xpress-lib was given.
23591 if test "${with_xpress_lib+set}" = set; then
23592 withval="$with_xpress_lib"
23593 XPRLIB=$withval
23594 fi;
23595
23596 # Switch to disable library check if requested
23597
23598 # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
23599 if test "${enable_xpress_libcheck+set}" = set; then
23600 enableval="$enable_xpress_libcheck"
23601 xpress_libcheck=$enableval
23602 else
23603 xpress_libcheck=yes
23604 fi;
23605
23606 # At this point, if we're going to use the library, both LBRYINCDIR and
23607 # LBRYLIB must be defined and not empty.
23608
23609 if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
23610 if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
23611 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&5
23612 echo "$as_me: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&2;}
23613 { (exit 1); exit 1; }; }
23614 fi
23615 coin_has_xpr=true
23616 echo "$as_me:$LINENO: result: yes" >&5
23617 echo "${ECHO_T}yes" >&6
23618 else
23619 coin_has_xpr=false
23620 echo "$as_me:$LINENO: result: no" >&5
23621 echo "${ECHO_T}no" >&6
23622 fi
23623
23624 # If we have instructions for use, consider header and link checks.
23625
23626 if test $coin_has_xpr = true; then
23627
23628 # If argument 3 (file) is given, check for the file. Typically this will be a
23629 # header file, but that's not assumed.
23630
23631 if test -r $XPRINCDIR/xprs.h; then
23632
23633 :
23634 else
23635 { { echo "$as_me:$LINENO: error: Cannot find file xprs.h in $XPRINCDIR" >&5
23636 echo "$as_me: error: Cannot find file xprs.h in $XPRINCDIR" >&2;}
23637 { (exit 1); exit 1; }; }
23638 :
23639 fi
23640
23641
23642 # Now see if we can link the function. There are arguments for and against
23643 # assuming argument 3 is a header file declaring the function. A correct
23644 # function declaration is the main argument in favour. Having to cope with
23645 # possible dependencies or other oddities are the main arguments against.
23646 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23647 # Obviously, this has limits.
23648
23649 if test x"$xpress_libcheck" != xno; then
23650 coin_save_LIBS="$LIBS"
23651 LIBS="$XPRLIB "
23652 coin_XPR_link=no
23653 ac_ext=c
23654 ac_cpp='$CPP $CPPFLAGS'
23655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23658
23659 for fnm in XPRSinit ; do
23660 echo "$as_me:$LINENO: checking whether symbol $fnm is available with XPR" >&5
23661 echo $ECHO_N "checking whether symbol $fnm is available with XPR... $ECHO_C" >&6
23662 cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h. */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668
23669 int
23670 main ()
23671 {
23672 $fnm()
23673 ;
23674 return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679 (eval $ac_link) 2>conftest.er1
23680 ac_status=$?
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
23686 { ac_try='test -z "$ac_c_werror_flag"
23687 || test ! -s conftest.err'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest$ac_exeext'
23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23696 ac_status=$?
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 echo "$as_me:$LINENO: result: yes" >&5
23700 echo "${ECHO_T}yes" >&6
23701 coin_XPR_link=yes
23702 break
23703 else
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 echo "$as_me:$LINENO: result: no" >&5
23708 echo "${ECHO_T}no" >&6
23709 fi
23710 rm -f conftest.err conftest.$ac_objext \
23711 conftest$ac_exeext conftest.$ac_ext
23712 done
23713 ac_ext=c
23714 ac_cpp='$CPP $CPPFLAGS'
23715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23718
23719 LIBS="$coin_save_LIBS"
23720 if test x"$coin_XPR_link" != xyes ; then
23721 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) XPRSinit with XPR" >&5
23722 echo "$as_me: error: Cannot find symbol(s) XPRSinit with XPR" >&2;}
23723 { (exit 1); exit 1; }; }
23724 fi
23725 fi
23726
23727
23728 # If we make it this far, we've verified the file and linked the function. Add
23729 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23730 # COIN_HAS_LBRY.
23731
23732
23733
23734
23735 cat >>confdefs.h <<\_ACEOF
23736 #define COIN_HAS_XPR 1
23737 _ACEOF
23738
23739 fi
23740
23741 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23742 # automake conditional. These actions must occur unconditionally.
23743
23744
23745
23746
23747
23748 if test $coin_has_xpr = true; then
23749 COIN_HAS_XPR_TRUE=
23750 COIN_HAS_XPR_FALSE='#'
23751 else
23752 COIN_HAS_XPR_TRUE='#'
23753 COIN_HAS_XPR_FALSE=
23754 fi
23755
23756
23757
23758 echo "$as_me:$LINENO: checking if user provides library for Gurobi" >&5
23759 echo $ECHO_N "checking if user provides library for Gurobi... $ECHO_C" >&6
23760
23761 # Check for header file directory
23762
23763
23764 # Check whether --with-gurobi-incdir or --without-gurobi-incdir was given.
23765 if test "${with_gurobi_incdir+set}" = set; then
23766 withval="$with_gurobi_incdir"
23767 GRBINCDIR=`cd $withval; pwd`
23768 fi;
23769
23770 # Check for library directory
23771
23772
23773 # Check whether --with-gurobi-lib or --without-gurobi-lib was given.
23774 if test "${with_gurobi_lib+set}" = set; then
23775 withval="$with_gurobi_lib"
23776 GRBLIB=$withval
23777 fi;
23778
23779 # Switch to disable library check if requested
23780
23781 # Check whether --enable-gurobi-libcheck or --disable-gurobi-libcheck was given.
23782 if test "${enable_gurobi_libcheck+set}" = set; then
23783 enableval="$enable_gurobi_libcheck"
23784 gurobi_libcheck=$enableval
23785 else
23786 gurobi_libcheck=yes
23787 fi;
23788
23789 # At this point, if we're going to use the library, both LBRYINCDIR and
23790 # LBRYLIB must be defined and not empty.
23791
23792 if test x"$GRBINCDIR" != x || test x"$GRBLIB" != x; then
23793 if test x"$GRBINCDIR" = x || test x"$GRBLIB" = x; then
23794 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&5
23795 echo "$as_me: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&2;}
23796 { (exit 1); exit 1; }; }
23797 fi
23798 coin_has_grb=true
23799 echo "$as_me:$LINENO: result: yes" >&5
23800 echo "${ECHO_T}yes" >&6
23801 else
23802 coin_has_grb=false
23803 echo "$as_me:$LINENO: result: no" >&5
23804 echo "${ECHO_T}no" >&6
23805 fi
23806
23807 # If we have instructions for use, consider header and link checks.
23808
23809 if test $coin_has_grb = true; then
23810
23811 # If argument 3 (file) is given, check for the file. Typically this will be a
23812 # header file, but that's not assumed.
23813
23814 if test -r $GRBINCDIR/gurobi_c.h; then
23815
23816 :
23817 else
23818 { { echo "$as_me:$LINENO: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&5
23819 echo "$as_me: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&2;}
23820 { (exit 1); exit 1; }; }
23821 :
23822 fi
23823
23824
23825 # Now see if we can link the function. There are arguments for and against
23826 # assuming argument 3 is a header file declaring the function. A correct
23827 # function declaration is the main argument in favour. Having to cope with
23828 # possible dependencies or other oddities are the main arguments against.
23829 # Force the use of C as the best single choice amongst C++, C, and Fortran.
23830 # Obviously, this has limits.
23831
23832 if test x"$gurobi_libcheck" != xno; then
23833 coin_save_LIBS="$LIBS"
23834 LIBS="$GRBLIB "
23835 coin_GRB_link=no
23836 ac_ext=c
23837 ac_cpp='$CPP $CPPFLAGS'
23838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23841
23842 for fnm in GRBloadenv ; do
23843 echo "$as_me:$LINENO: checking whether symbol $fnm is available with GRB" >&5
23844 echo $ECHO_N "checking whether symbol $fnm is available with GRB... $ECHO_C" >&6
23845 cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h. */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851
23852 int
23853 main ()
23854 {
23855 $fnm()
23856 ;
23857 return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest.$ac_objext conftest$ac_exeext
23861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23862 (eval $ac_link) 2>conftest.er1
23863 ac_status=$?
23864 grep -v '^ *+' conftest.er1 >conftest.err
23865 rm -f conftest.er1
23866 cat conftest.err >&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } &&
23869 { ac_try='test -z "$ac_c_werror_flag"
23870 || test ! -s conftest.err'
23871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872 (eval $ac_try) 2>&5
23873 ac_status=$?
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); }; } &&
23876 { ac_try='test -s conftest$ac_exeext'
23877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23878 (eval $ac_try) 2>&5
23879 ac_status=$?
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); }; }; then
23882 echo "$as_me:$LINENO: result: yes" >&5
23883 echo "${ECHO_T}yes" >&6
23884 coin_GRB_link=yes
23885 break
23886 else
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890 echo "$as_me:$LINENO: result: no" >&5
23891 echo "${ECHO_T}no" >&6
23892 fi
23893 rm -f conftest.err conftest.$ac_objext \
23894 conftest$ac_exeext conftest.$ac_ext
23895 done
23896 ac_ext=c
23897 ac_cpp='$CPP $CPPFLAGS'
23898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23901
23902 LIBS="$coin_save_LIBS"
23903 if test x"$coin_GRB_link" != xyes ; then
23904 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) GRBloadenv with GRB" >&5
23905 echo "$as_me: error: Cannot find symbol(s) GRBloadenv with GRB" >&2;}
23906 { (exit 1); exit 1; }; }
23907 fi
23908 fi
23909
23910
23911 # If we make it this far, we've verified the file and linked the function. Add
23912 # the necessary link flags to _{PC}LIBS and define the preprocessor symbol
23913 # COIN_HAS_LBRY.
23914
23915
23916
23917
23918 cat >>confdefs.h <<\_ACEOF
23919 #define COIN_HAS_GRB 1
23920 _ACEOF
23921
23922 fi
23923
23924 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23925 # automake conditional. These actions must occur unconditionally.
23926
23927
23928
23929
23930
23931 if test $coin_has_grb = true; then
23932 COIN_HAS_GRB_TRUE=
23933 COIN_HAS_GRB_FALSE='#'
23934 else
23935 COIN_HAS_GRB_TRUE='#'
23936 COIN_HAS_GRB_FALSE=
23937 fi
23938
23939
23940
23941 #############################################################################
23942 # Examples solver #
23943 #############################################################################
23944
23945 # choose a solver interface that can be used in the examples
23946
23947 if test $coin_has_glpk = yes ; then
23948 OSI_EXAMPLES_SOLVER_NAME=OsiGlpkSolverInterface
23949 OSI_EXAMPLES_SOLVER_CFLAGS="$GLPK_CFLAGS"
23950 OSI_EXAMPLES_SOLVER_LIBS="-lOsiGlpk $GLPK_LIBS_INSTALLED"
23951 OSI_EXAMPLES_SOLVER_PCNAME=osi-glpk
23952 elif test $coin_has_cpx = true ; then
23953 OSI_EXAMPLES_SOLVER_NAME=OsiCpxSolverInterface
23954 OSI_EXAMPLES_SOLVER_CFLAGS="-I$CPXINCDIR"
23955 OSI_EXAMPLES_SOLVER_LIBS="-lOsiCpx $CPXLIB"
23956 OSI_EXAMPLES_SOLVER_PCNAME=osi-cplex
23957 elif test $coin_has_grb = true ; then
23958 OSI_EXAMPLES_SOLVER_NAME=OsiGrbSolverInterface
23959 OSI_EXAMPLES_SOLVER_CFLAGS="-I$GRBINCDIR"
23960 OSI_EXAMPLES_SOLVER_LIBS="-lOsiGrb $GRBLIB"
23961 OSI_EXAMPLES_SOLVER_PCNAME=osi-gurobi
23962 elif test $coin_has_msk = true ; then
23963 OSI_EXAMPLES_SOLVER_NAME=OsiMskSolverInterface
23964 OSI_EXAMPLES_SOLVER_CFLAGS="-I$MSKINCDIR"
23965 OSI_EXAMPLES_SOLVER_LIBS="-lOsiMsk $MSKLIB"
23966 OSI_EXAMPLES_SOLVER_PCNAME=osi-mosek
23967 elif test $coin_has_xpr = true ; then
23968 OSI_EXAMPLES_SOLVER_NAME=OsiXprSolverInterface
23969 OSI_EXAMPLES_SOLVER_CFLAGS="-I$XPRINCDIR"
23970 OSI_EXAMPLES_SOLVER_LIBS="-lOsiXpr $XPRLIB"
23971 OSI_EXAMPLES_SOLVER_PCNAME=osi-xpress
23972 elif test $coin_has_soplex = yes ; then
23973 OSI_EXAMPLES_SOLVER_NAME=OsiSpxSolverInterface
23974 OSI_EXAMPLES_SOLVER_CFLAGS="$SOPLEX_CFLAGS"
23975 OSI_EXAMPLES_SOLVER_LIBS="-lOsiSpx $SOPLEX_LIBS_INSTALLED"
23976 OSI_EXAMPLES_SOLVER_PCNAME=osi-soplex
23977 else
23978 { echo "$as_me:$LINENO: WARNING: No solver available, examples will not work." >&5
23979 echo "$as_me: WARNING: No solver available, examples will not work." >&2;}
23980 fi
23981
23982 # adjust linker flags for (i)cl compiler
23983 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23984 then
23985 OSI_EXAMPLES_SOLVER_LIBS=`echo " $OSI_EXAMPLES_SOLVER_LIBS" | sed -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23986 fi
23987
23988
23989
23990
23991
23992
23993
23994 #############################################################################
23995 # Configuration options for individual OSIs #
23996 #############################################################################
23997
23998 # If any of the tests performed in this section actually require the presence
23999 # of the solver (file presence, link checks, etc.) be sure to guard the call.
24000
24001 # We assume that GLPK is not too old
24002
24003
24004 cat >>confdefs.h <<\_ACEOF
24005 #define GLPK_HAS_INTOPT 1
24006 _ACEOF
24007
24008
24009 #############################################################################
24010 # Check for doxygen #
24011 #############################################################################
24012
24013
24014
24015 { echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
24016 echo "$as_me: configuring doxygen documentation options" >&6;}
24017
24018 # Check to see if doxygen is available.
24019
24020 # Extract the first word of "doxygen", so it can be a program name with args.
24021 set dummy doxygen; ac_word=$2
24022 echo "$as_me:$LINENO: checking for $ac_word" >&5
24023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24024 if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 else
24027 if test -n "$coin_have_doxygen"; then
24028 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
24029 else
24030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24031 for as_dir in $PATH
24032 do
24033 IFS=$as_save_IFS
24034 test -z "$as_dir" && as_dir=.
24035 for ac_exec_ext in '' $ac_executable_extensions; do
24036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24037 ac_cv_prog_coin_have_doxygen="yes"
24038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24039 break 2
24040 fi
24041 done
24042 done
24043
24044 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
24045 fi
24046 fi
24047 coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
24048 if test -n "$coin_have_doxygen"; then
24049 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
24050 echo "${ECHO_T}$coin_have_doxygen" >&6
24051 else
24052 echo "$as_me:$LINENO: result: no" >&5
24053 echo "${ECHO_T}no" >&6
24054 fi
24055
24056 # Extract the first word of "latex", so it can be a program name with args.
24057 set dummy latex; ac_word=$2
24058 echo "$as_me:$LINENO: checking for $ac_word" >&5
24059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24060 if test "${ac_cv_prog_coin_have_latex+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 else
24063 if test -n "$coin_have_latex"; then
24064 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
24065 else
24066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24067 for as_dir in $PATH
24068 do
24069 IFS=$as_save_IFS
24070 test -z "$as_dir" && as_dir=.
24071 for ac_exec_ext in '' $ac_executable_extensions; do
24072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24073 ac_cv_prog_coin_have_latex="yes"
24074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24075 break 2
24076 fi
24077 done
24078 done
24079
24080 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
24081 fi
24082 fi
24083 coin_have_latex=$ac_cv_prog_coin_have_latex
24084 if test -n "$coin_have_latex"; then
24085 echo "$as_me:$LINENO: result: $coin_have_latex" >&5
24086 echo "${ECHO_T}$coin_have_latex" >&6
24087 else
24088 echo "$as_me:$LINENO: result: no" >&5
24089 echo "${ECHO_T}no" >&6
24090 fi
24091
24092
24093 # Look for the dot tool from the graphviz package, unless the user has
24094 # disabled it.
24095
24096
24097 # Check whether --with-dot or --without-dot was given.
24098 if test "${with_dot+set}" = set; then
24099 withval="$with_dot"
24100
24101 else
24102 withval=yes
24103 fi;
24104 if test x"$withval" = xno ; then
24105 coin_doxy_usedot=NO
24106 echo "$as_me:$LINENO: checking for dot " >&5
24107 echo $ECHO_N "checking for dot ... $ECHO_C" >&6
24108 echo "$as_me:$LINENO: result: disabled" >&5
24109 echo "${ECHO_T}disabled" >&6
24110 else
24111 # Extract the first word of "dot", so it can be a program name with args.
24112 set dummy dot; ac_word=$2
24113 echo "$as_me:$LINENO: checking for $ac_word" >&5
24114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24115 if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118 if test -n "$coin_doxy_usedot"; then
24119 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
24120 else
24121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24122 for as_dir in $PATH
24123 do
24124 IFS=$as_save_IFS
24125 test -z "$as_dir" && as_dir=.
24126 for ac_exec_ext in '' $ac_executable_extensions; do
24127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24128 ac_cv_prog_coin_doxy_usedot="YES"
24129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24130 break 2
24131 fi
24132 done
24133 done
24134
24135 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
24136 fi
24137 fi
24138 coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
24139 if test -n "$coin_doxy_usedot"; then
24140 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
24141 echo "${ECHO_T}$coin_doxy_usedot" >&6
24142 else
24143 echo "$as_me:$LINENO: result: no" >&5
24144 echo "${ECHO_T}no" >&6
24145 fi
24146
24147 fi
24148
24149 # Generate a tag file name and a log file name
24150
24151 coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
24152
24153 coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
24154
24155
24156
24157 if test $coin_have_doxygen = yes; then
24158 COIN_HAS_DOXYGEN_TRUE=
24159 COIN_HAS_DOXYGEN_FALSE='#'
24160 else
24161 COIN_HAS_DOXYGEN_TRUE='#'
24162 COIN_HAS_DOXYGEN_FALSE=
24163 fi
24164
24165
24166
24167 if test $coin_have_latex = yes; then
24168 COIN_HAS_LATEX_TRUE=
24169 COIN_HAS_LATEX_FALSE='#'
24170 else
24171 COIN_HAS_LATEX_TRUE='#'
24172 COIN_HAS_LATEX_FALSE=
24173 fi
24174
24175
24176 # Process the list of project names and massage them into possible doxygen
24177 # doc'n directories. Prefer 1) classic external, source processed using
24178 # a project-specific doxygen.conf, we use the tag file; 2) classic
24179 # external, source processed using package doxygen.conf; 3) installed
24180 # doxydoc. Alternatives 1) and 2) are only possible if the directory will be
24181 # configured, which we can't know unless this is the package base configure,
24182 # since coin_subdirs is only set there. Hence it's sufficient to check for
24183 # membership. If we use a tag file from a classic external, exclude the
24184 # source from doxygen processing when doxygen runs in the base directory.
24185
24186 coin_doxy_tagfiles=
24187 coin_doxy_excludes=
24188 tmp="CoinUtils"
24189 for proj in $tmp ; do
24190 lc_proj=`echo $proj | tr [A-Z] [a-z]`
24191 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
24192 echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
24193 doxytag=${lc_proj}_doxy.tag
24194 doxyfound=no
24195 # proj will be configured, hence doxydoc present in build tree
24196 doxysrcdir="${srcdir}/../${proj}"
24197 # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
24198 if test -d "$doxysrcdir" ; then
24199 # with a doxydoc directory?
24200 doxydir="$doxysrcdir/doxydoc"
24201 # AC_MSG_NOTICE([Considering $doxydir (base)])
24202 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
24203 if test -d "$doxydir" ; then
24204 # use tag file; don't process source
24205 doxydir="../${proj}/doxydoc"
24206 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
24207 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
24208 echo "${ECHO_T}$doxydir (tag)" >&6
24209 coin_doxy_excludes="$coin_doxy_excludes */${proj}"
24210 else
24211 # will process the source -- nothing further to be done here
24212 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
24213 echo "${ECHO_T}$doxysrcdir (src)" >&6
24214 fi
24215 doxyfound=yes
24216 fi
24217 # Not built, fall back to installed tag file
24218 if test $doxyfound = no ; then
24219 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
24220 # AC_MSG_NOTICE([Considering $doxydir (install)])
24221 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
24222 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
24223 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
24224 echo "${ECHO_T}$doxydir (tag)" >&6
24225 fi
24226 done
24227
24228
24229
24230
24231
24232 #############################################################################
24233 # System header #
24234 #############################################################################
24235
24236
24237 ac_ext=cc
24238 ac_cpp='$CXXCPP $CPPFLAGS'
24239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24242
24243 #if test x"" = x; then
24244 # hdr="#include <cmath>"
24245 #else
24246 # hdr=""
24247 #fi
24248 #AC_CHECK_HEADERS([cmath],[],[],[$hdr])
24249
24250 for ac_header in cmath
24251 do
24252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24254 echo "$as_me:$LINENO: checking for $ac_header" >&5
24255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 fi
24259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24261 else
24262 # Is the header compilable?
24263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24265 cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h. */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271 $ac_includes_default
24272 #include <$ac_header>
24273 _ACEOF
24274 rm -f conftest.$ac_objext
24275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24276 (eval $ac_compile) 2>conftest.er1
24277 ac_status=$?
24278 grep -v '^ *+' conftest.er1 >conftest.err
24279 rm -f conftest.er1
24280 cat conftest.err >&5
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } &&
24283 { ac_try='test -z "$ac_cxx_werror_flag"
24284 || test ! -s conftest.err'
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; } &&
24290 { ac_try='test -s conftest.$ac_objext'
24291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); }; }; then
24296 ac_header_compiler=yes
24297 else
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24300
24301 ac_header_compiler=no
24302 fi
24303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24305 echo "${ECHO_T}$ac_header_compiler" >&6
24306
24307 # Is the header present?
24308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24310 cat >conftest.$ac_ext <<_ACEOF
24311 /* confdefs.h. */
24312 _ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24316 #include <$ac_header>
24317 _ACEOF
24318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24320 ac_status=$?
24321 grep -v '^ *+' conftest.er1 >conftest.err
24322 rm -f conftest.er1
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } >/dev/null; then
24326 if test -s conftest.err; then
24327 ac_cpp_err=$ac_cxx_preproc_warn_flag
24328 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24329 else
24330 ac_cpp_err=
24331 fi
24332 else
24333 ac_cpp_err=yes
24334 fi
24335 if test -z "$ac_cpp_err"; then
24336 ac_header_preproc=yes
24337 else
24338 echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341 ac_header_preproc=no
24342 fi
24343 rm -f conftest.err conftest.$ac_ext
24344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24345 echo "${ECHO_T}$ac_header_preproc" >&6
24346
24347 # So? What about this header?
24348 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24349 yes:no: )
24350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24354 ac_header_preproc=yes
24355 ;;
24356 no:yes:* )
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24369 (
24370 cat <<\_ASBOX
24371 ## ----------------------------------- ##
24372 ## Report this to [email protected] ##
24373 ## ----------------------------------- ##
24374 _ASBOX
24375 ) |
24376 sed "s/^/$as_me: WARNING: /" >&2
24377 ;;
24378 esac
24379 echo "$as_me:$LINENO: checking for $ac_header" >&5
24380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24384 eval "$as_ac_Header=\$ac_header_preproc"
24385 fi
24386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24388
24389 fi
24390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24391 cat >>confdefs.h <<_ACEOF
24392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24393 _ACEOF
24394
24395 fi
24396
24397 done
24398
24399
24400 if test "$ac_cv_header_cmath" != "yes"; then
24401 #if test x"" = x; then
24402 # hdr="#include <math.h>"
24403 #else
24404 # hdr=""
24405 #fi
24406 #AC_CHECK_HEADERS([math.h],[],[],[$hdr])
24407
24408 for ac_header in math.h
24409 do
24410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24412 echo "$as_me:$LINENO: checking for $ac_header" >&5
24413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 fi
24417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24419 else
24420 # Is the header compilable?
24421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24423 cat >conftest.$ac_ext <<_ACEOF
24424 /* confdefs.h. */
24425 _ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 $ac_includes_default
24430 #include <$ac_header>
24431 _ACEOF
24432 rm -f conftest.$ac_objext
24433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24434 (eval $ac_compile) 2>conftest.er1
24435 ac_status=$?
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
24441 { ac_try='test -z "$ac_cxx_werror_flag"
24442 || test ! -s conftest.err'
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; } &&
24448 { ac_try='test -s conftest.$ac_objext'
24449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; }; then
24454 ac_header_compiler=yes
24455 else
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459 ac_header_compiler=no
24460 fi
24461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24463 echo "${ECHO_T}$ac_header_compiler" >&6
24464
24465 # Is the header present?
24466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h. */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24474 #include <$ac_header>
24475 _ACEOF
24476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24478 ac_status=$?
24479 grep -v '^ *+' conftest.er1 >conftest.err
24480 rm -f conftest.er1
24481 cat conftest.err >&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } >/dev/null; then
24484 if test -s conftest.err; then
24485 ac_cpp_err=$ac_cxx_preproc_warn_flag
24486 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24487 else
24488 ac_cpp_err=
24489 fi
24490 else
24491 ac_cpp_err=yes
24492 fi
24493 if test -z "$ac_cpp_err"; then
24494 ac_header_preproc=yes
24495 else
24496 echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24498
24499 ac_header_preproc=no
24500 fi
24501 rm -f conftest.err conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24503 echo "${ECHO_T}$ac_header_preproc" >&6
24504
24505 # So? What about this header?
24506 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24507 yes:no: )
24508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24512 ac_header_preproc=yes
24513 ;;
24514 no:yes:* )
24515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24527 (
24528 cat <<\_ASBOX
24529 ## ----------------------------------- ##
24530 ## Report this to [email protected] ##
24531 ## ----------------------------------- ##
24532 _ASBOX
24533 ) |
24534 sed "s/^/$as_me: WARNING: /" >&2
24535 ;;
24536 esac
24537 echo "$as_me:$LINENO: checking for $ac_header" >&5
24538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24540 echo $ECHO_N "(cached) $ECHO_C" >&6
24541 else
24542 eval "$as_ac_Header=\$ac_header_preproc"
24543 fi
24544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24546
24547 fi
24548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24549 cat >>confdefs.h <<_ACEOF
24550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24551 _ACEOF
24552
24553 fi
24554
24555 done
24556
24557
24558 fi
24559 ac_ext=c
24560 ac_cpp='$CPP $CPPFLAGS'
24561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24564
24565
24566 ac_ext=cc
24567 ac_cpp='$CXXCPP $CPPFLAGS'
24568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24571
24572 #if test x"" = x; then
24573 # hdr="#include <cfloat>"
24574 #else
24575 # hdr=""
24576 #fi
24577 #AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
24578
24579 for ac_header in cfloat
24580 do
24581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24583 echo "$as_me:$LINENO: checking for $ac_header" >&5
24584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587 fi
24588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24590 else
24591 # Is the header compilable?
24592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24594 cat >conftest.$ac_ext <<_ACEOF
24595 /* confdefs.h. */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h. */
24600 $ac_includes_default
24601 #include <$ac_header>
24602 _ACEOF
24603 rm -f conftest.$ac_objext
24604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24605 (eval $ac_compile) 2>conftest.er1
24606 ac_status=$?
24607 grep -v '^ *+' conftest.er1 >conftest.err
24608 rm -f conftest.er1
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } &&
24612 { ac_try='test -z "$ac_cxx_werror_flag"
24613 || test ! -s conftest.err'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; } &&
24619 { ac_try='test -s conftest.$ac_objext'
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; }; then
24625 ac_header_compiler=yes
24626 else
24627 echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630 ac_header_compiler=no
24631 fi
24632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24634 echo "${ECHO_T}$ac_header_compiler" >&6
24635
24636 # Is the header present?
24637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24639 cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h. */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 #include <$ac_header>
24646 _ACEOF
24647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24649 ac_status=$?
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } >/dev/null; then
24655 if test -s conftest.err; then
24656 ac_cpp_err=$ac_cxx_preproc_warn_flag
24657 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24658 else
24659 ac_cpp_err=
24660 fi
24661 else
24662 ac_cpp_err=yes
24663 fi
24664 if test -z "$ac_cpp_err"; then
24665 ac_header_preproc=yes
24666 else
24667 echo "$as_me: failed program was:" >&5
24668 sed 's/^/| /' conftest.$ac_ext >&5
24669
24670 ac_header_preproc=no
24671 fi
24672 rm -f conftest.err conftest.$ac_ext
24673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24674 echo "${ECHO_T}$ac_header_preproc" >&6
24675
24676 # So? What about this header?
24677 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24678 yes:no: )
24679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24683 ac_header_preproc=yes
24684 ;;
24685 no:yes:* )
24686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24698 (
24699 cat <<\_ASBOX
24700 ## ----------------------------------- ##
24701 ## Report this to [email protected] ##
24702 ## ----------------------------------- ##
24703 _ASBOX
24704 ) |
24705 sed "s/^/$as_me: WARNING: /" >&2
24706 ;;
24707 esac
24708 echo "$as_me:$LINENO: checking for $ac_header" >&5
24709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24712 else
24713 eval "$as_ac_Header=\$ac_header_preproc"
24714 fi
24715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24717
24718 fi
24719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24720 cat >>confdefs.h <<_ACEOF
24721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24722 _ACEOF
24723
24724 fi
24725
24726 done
24727
24728
24729 if test "$ac_cv_header_cfloat" != "yes"; then
24730 #if test x"" = x; then
24731 # hdr="#include <float.h>"
24732 #else
24733 # hdr=""
24734 #fi
24735 #AC_CHECK_HEADERS([float.h],[],[],[$hdr])
24736
24737 for ac_header in float.h
24738 do
24739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24741 echo "$as_me:$LINENO: checking for $ac_header" >&5
24742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24745 fi
24746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24748 else
24749 # Is the header compilable?
24750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24752 cat >conftest.$ac_ext <<_ACEOF
24753 /* confdefs.h. */
24754 _ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 $ac_includes_default
24759 #include <$ac_header>
24760 _ACEOF
24761 rm -f conftest.$ac_objext
24762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24763 (eval $ac_compile) 2>conftest.er1
24764 ac_status=$?
24765 grep -v '^ *+' conftest.er1 >conftest.err
24766 rm -f conftest.er1
24767 cat conftest.err >&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } &&
24770 { ac_try='test -z "$ac_cxx_werror_flag"
24771 || test ! -s conftest.err'
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; } &&
24777 { ac_try='test -s conftest.$ac_objext'
24778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; }; then
24783 ac_header_compiler=yes
24784 else
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24787
24788 ac_header_compiler=no
24789 fi
24790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24792 echo "${ECHO_T}$ac_header_compiler" >&6
24793
24794 # Is the header present?
24795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24797 cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h. */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 #include <$ac_header>
24804 _ACEOF
24805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24807 ac_status=$?
24808 grep -v '^ *+' conftest.er1 >conftest.err
24809 rm -f conftest.er1
24810 cat conftest.err >&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } >/dev/null; then
24813 if test -s conftest.err; then
24814 ac_cpp_err=$ac_cxx_preproc_warn_flag
24815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24816 else
24817 ac_cpp_err=
24818 fi
24819 else
24820 ac_cpp_err=yes
24821 fi
24822 if test -z "$ac_cpp_err"; then
24823 ac_header_preproc=yes
24824 else
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 ac_header_preproc=no
24829 fi
24830 rm -f conftest.err conftest.$ac_ext
24831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24832 echo "${ECHO_T}$ac_header_preproc" >&6
24833
24834 # So? What about this header?
24835 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24836 yes:no: )
24837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24841 ac_header_preproc=yes
24842 ;;
24843 no:yes:* )
24844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24856 (
24857 cat <<\_ASBOX
24858 ## ----------------------------------- ##
24859 ## Report this to [email protected] ##
24860 ## ----------------------------------- ##
24861 _ASBOX
24862 ) |
24863 sed "s/^/$as_me: WARNING: /" >&2
24864 ;;
24865 esac
24866 echo "$as_me:$LINENO: checking for $ac_header" >&5
24867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 else
24871 eval "$as_ac_Header=\$ac_header_preproc"
24872 fi
24873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24875
24876 fi
24877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24878 cat >>confdefs.h <<_ACEOF
24879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24880 _ACEOF
24881
24882 fi
24883
24884 done
24885
24886
24887 fi
24888 ac_ext=c
24889 ac_cpp='$CPP $CPPFLAGS'
24890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24893
24894
24895 ac_ext=cc
24896 ac_cpp='$CXXCPP $CPPFLAGS'
24897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24900
24901 #if test x"" = x; then
24902 # hdr="#include <cieeefp>"
24903 #else
24904 # hdr=""
24905 #fi
24906 #AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
24907
24908 for ac_header in cieeefp
24909 do
24910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24912 echo "$as_me:$LINENO: checking for $ac_header" >&5
24913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24916 fi
24917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24919 else
24920 # Is the header compilable?
24921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24923 cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h. */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24929 $ac_includes_default
24930 #include <$ac_header>
24931 _ACEOF
24932 rm -f conftest.$ac_objext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24934 (eval $ac_compile) 2>conftest.er1
24935 ac_status=$?
24936 grep -v '^ *+' conftest.er1 >conftest.err
24937 rm -f conftest.er1
24938 cat conftest.err >&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } &&
24941 { ac_try='test -z "$ac_cxx_werror_flag"
24942 || test ! -s conftest.err'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; } &&
24948 { ac_try='test -s conftest.$ac_objext'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; }; then
24954 ac_header_compiler=yes
24955 else
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 ac_header_compiler=no
24960 fi
24961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24963 echo "${ECHO_T}$ac_header_compiler" >&6
24964
24965 # Is the header present?
24966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24968 cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h. */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24974 #include <$ac_header>
24975 _ACEOF
24976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24978 ac_status=$?
24979 grep -v '^ *+' conftest.er1 >conftest.err
24980 rm -f conftest.er1
24981 cat conftest.err >&5
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } >/dev/null; then
24984 if test -s conftest.err; then
24985 ac_cpp_err=$ac_cxx_preproc_warn_flag
24986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24987 else
24988 ac_cpp_err=
24989 fi
24990 else
24991 ac_cpp_err=yes
24992 fi
24993 if test -z "$ac_cpp_err"; then
24994 ac_header_preproc=yes
24995 else
24996 echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999 ac_header_preproc=no
25000 fi
25001 rm -f conftest.err conftest.$ac_ext
25002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25003 echo "${ECHO_T}$ac_header_preproc" >&6
25004
25005 # So? What about this header?
25006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25007 yes:no: )
25008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25012 ac_header_preproc=yes
25013 ;;
25014 no:yes:* )
25015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25027 (
25028 cat <<\_ASBOX
25029 ## ----------------------------------- ##
25030 ## Report this to [email protected] ##
25031 ## ----------------------------------- ##
25032 _ASBOX
25033 ) |
25034 sed "s/^/$as_me: WARNING: /" >&2
25035 ;;
25036 esac
25037 echo "$as_me:$LINENO: checking for $ac_header" >&5
25038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25040 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042 eval "$as_ac_Header=\$ac_header_preproc"
25043 fi
25044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25046
25047 fi
25048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25049 cat >>confdefs.h <<_ACEOF
25050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25051 _ACEOF
25052
25053 fi
25054
25055 done
25056
25057
25058 if test "$ac_cv_header_cieeefp" != "yes"; then
25059 #if test x"" = x; then
25060 # hdr="#include <ieeefp.h>"
25061 #else
25062 # hdr=""
25063 #fi
25064 #AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
25065
25066 for ac_header in ieeefp.h
25067 do
25068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25070 echo "$as_me:$LINENO: checking for $ac_header" >&5
25071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25073 echo $ECHO_N "(cached) $ECHO_C" >&6
25074 fi
25075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25077 else
25078 # Is the header compilable?
25079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25081 cat >conftest.$ac_ext <<_ACEOF
25082 /* confdefs.h. */
25083 _ACEOF
25084 cat confdefs.h >>conftest.$ac_ext
25085 cat >>conftest.$ac_ext <<_ACEOF
25086 /* end confdefs.h. */
25087 $ac_includes_default
25088 #include <$ac_header>
25089 _ACEOF
25090 rm -f conftest.$ac_objext
25091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25092 (eval $ac_compile) 2>conftest.er1
25093 ac_status=$?
25094 grep -v '^ *+' conftest.er1 >conftest.err
25095 rm -f conftest.er1
25096 cat conftest.err >&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } &&
25099 { ac_try='test -z "$ac_cxx_werror_flag"
25100 || test ! -s conftest.err'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; } &&
25106 { ac_try='test -s conftest.$ac_objext'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 ac_header_compiler=yes
25113 else
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117 ac_header_compiler=no
25118 fi
25119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25121 echo "${ECHO_T}$ac_header_compiler" >&6
25122
25123 # Is the header present?
25124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25126 cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h. */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 #include <$ac_header>
25133 _ACEOF
25134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25136 ac_status=$?
25137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } >/dev/null; then
25142 if test -s conftest.err; then
25143 ac_cpp_err=$ac_cxx_preproc_warn_flag
25144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25145 else
25146 ac_cpp_err=
25147 fi
25148 else
25149 ac_cpp_err=yes
25150 fi
25151 if test -z "$ac_cpp_err"; then
25152 ac_header_preproc=yes
25153 else
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 ac_header_preproc=no
25158 fi
25159 rm -f conftest.err conftest.$ac_ext
25160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25161 echo "${ECHO_T}$ac_header_preproc" >&6
25162
25163 # So? What about this header?
25164 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25165 yes:no: )
25166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25170 ac_header_preproc=yes
25171 ;;
25172 no:yes:* )
25173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25185 (
25186 cat <<\_ASBOX
25187 ## ----------------------------------- ##
25188 ## Report this to [email protected] ##
25189 ## ----------------------------------- ##
25190 _ASBOX
25191 ) |
25192 sed "s/^/$as_me: WARNING: /" >&2
25193 ;;
25194 esac
25195 echo "$as_me:$LINENO: checking for $ac_header" >&5
25196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200 eval "$as_ac_Header=\$ac_header_preproc"
25201 fi
25202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25204
25205 fi
25206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25207 cat >>confdefs.h <<_ACEOF
25208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25209 _ACEOF
25210
25211 fi
25212
25213 done
25214
25215
25216 fi
25217 ac_ext=c
25218 ac_cpp='$CPP $CPPFLAGS'
25219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25222
25223
25224
25225 ##############################################################################
25226 # Finishing up by writing all the output #
25227 ##############################################################################
25228
25229 # Here list all the files that configure should create (except for the
25230 # configuration header file)
25231 ac_config_files="$ac_config_files Makefile examples/Makefile src/Osi/Makefile src/OsiCpx/Makefile src/OsiGlpk/Makefile src/OsiMsk/Makefile src/OsiXpr/Makefile src/OsiGrb/Makefile src/OsiSpx/Makefile src/OsiCommonTest/Makefile test/Makefile osi.pc osi-uninstalled.pc osi-unittests.pc osi-unittests-uninstalled.pc"
25232
25233
25234 if test $coin_has_cpx = true ; then
25235 ac_config_files="$ac_config_files osi-cplex.pc:src/OsiCpx/osi-cplex.pc.in osi-cplex-uninstalled.pc:src/OsiCpx/osi-cplex-uninstalled.pc.in"
25236
25237 fi
25238
25239 if test $coin_has_glpk = yes ; then
25240 ac_config_files="$ac_config_files osi-glpk.pc:src/OsiGlpk/osi-glpk.pc.in osi-glpk-uninstalled.pc:src/OsiGlpk/osi-glpk-uninstalled.pc.in"
25241
25242 fi
25243
25244 if test $coin_has_grb = true ; then
25245 ac_config_files="$ac_config_files osi-gurobi.pc:src/OsiGrb/osi-gurobi.pc.in osi-gurobi-uninstalled.pc:src/OsiGrb/osi-gurobi-uninstalled.pc.in"
25246
25247 fi
25248
25249 if test $coin_has_msk = true ; then
25250 ac_config_files="$ac_config_files osi-mosek.pc:src/OsiMsk/osi-mosek.pc.in osi-mosek-uninstalled.pc:src/OsiMsk/osi-mosek-uninstalled.pc.in"
25251
25252 fi
25253
25254 if test $coin_has_xpr = true ; then
25255 ac_config_files="$ac_config_files osi-xpress.pc:src/OsiXpr/osi-xpress.pc.in osi-xpress-uninstalled.pc:src/OsiXpr/osi-xpress-uninstalled.pc.in"
25256
25257 fi
25258
25259 if test $coin_has_soplex = yes ; then
25260 ac_config_files="$ac_config_files osi-soplex.pc:src/OsiSpx/osi-soplex.pc.in osi-soplex-uninstalled.pc:src/OsiSpx/osi-soplex-uninstalled.pc.in"
25261
25262 fi
25263
25264 ac_config_files="$ac_config_files doxydoc/doxygen.conf"
25265
25266
25267 # Here put the location and name of the configuration header file
25268 ac_config_headers="$ac_config_headers src/Osi/config.h src/Osi/config_osi.h"
25269
25270
25271 # Finally, we let configure write all the output...
25272
25273
25274
25275
25276 echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
25277 echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
25278 coin_link_input_cmd="$LN_S"
25279 case "$CC" in
25280 clang* ) ;;
25281 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
25282 coin_link_input_cmd=cp ;;
25283 esac
25284 echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
25285 echo "${ECHO_T}$coin_link_input_cmd" >&6
25286
25287
25288
25289 if test x$coin_skip_ac_output != xyes; then
25290
25291 # library extension
25292
25293 case "$CC" in
25294 clang* )
25295 LIBEXT=a ;;
25296 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
25297 LIBEXT=lib ;;
25298 *) LIBEXT=a ;;
25299 esac
25300
25301 # Define VPATH_DISTCLEANFILES to be everything that needs to be
25302 # cleaned for distclean in a vpath configuration
25303
25304 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
25305
25306 # Take out subdirectories if their configuration concluded that they
25307 # don't need to be compiled
25308 if test x"$coin_ac_skip_subdirs" != x; then
25309 new_subdirs=
25310 for i in $subdirs; do
25311 skipme=no
25312 for j in $coin_ac_skip_subdirs; do
25313 if test $i = $j; then
25314 skipme=yes;
25315 fi
25316 done
25317 if test $skipme = no; then
25318 new_subdirs="$new_subdirs $i"
25319 fi
25320 done
25321 subdirs="$new_subdirs"
25322 fi
25323
25324 # need to come before AC_OUTPUT
25325 if test x$coin_projectdir != xyes; then
25326 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
25327 echo $coin_subdirs > coin_subdirs.txt
25328 else
25329 # substitute for OBJDIR, needed to setup .pc file for uninstalled project
25330 ABSBUILDDIR="`pwd`"
25331
25332 fi
25333
25334 cat >confcache <<\_ACEOF
25335 # This file is a shell script that caches the results of configure
25336 # tests run on this system so they can be shared between configure
25337 # scripts and configure runs, see configure's option --config-cache.
25338 # It is not useful on other systems. If it contains results you don't
25339 # want to keep, you may remove or edit it.
25340 #
25341 # config.status only pays attention to the cache file if you give it
25342 # the --recheck option to rerun configure.
25343 #
25344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25346 # following values.
25347
25348 _ACEOF
25349
25350 # The following way of writing the cache mishandles newlines in values,
25351 # but we know of no workaround that is simple, portable, and efficient.
25352 # So, don't put newlines in cache variables' values.
25353 # Ultrix sh set writes to stderr and can't be redirected directly,
25354 # and sets the high bit in the cache file unless we assign to the vars.
25355 {
25356 (set) 2>&1 |
25357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25358 *ac_space=\ *)
25359 # `set' does not quote correctly, so add quotes (double-quote
25360 # substitution turns \\\\ into \\, and sed turns \\ into \).
25361 sed -n \
25362 "s/'/'\\\\''/g;
25363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25364 ;;
25365 *)
25366 # `set' quotes correctly as required by POSIX, so do not add quotes.
25367 sed -n \
25368 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25369 ;;
25370 esac;
25371 } |
25372 sed '
25373 t clear
25374 : clear
25375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25376 t end
25377 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25378 : end' >>confcache
25379 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25380 if test -w $cache_file; then
25381 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25382 cat confcache >$cache_file
25383 else
25384 echo "not updating unwritable cache $cache_file"
25385 fi
25386 fi
25387 rm -f confcache
25388
25389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25390 # Let make expand exec_prefix.
25391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25392
25393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25395 # trailing colons and then remove the whole line if VPATH becomes empty
25396 # (actually we leave an empty line to preserve line numbers).
25397 if test "x$srcdir" = x.; then
25398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25399 s/:*\$(srcdir):*/:/;
25400 s/:*\${srcdir}:*/:/;
25401 s/:*@srcdir@:*/:/;
25402 s/^\([^=]*=[ ]*\):*/\1/;
25403 s/:*$//;
25404 s/^[^=]*=[ ]*$//;
25405 }'
25406 fi
25407
25408 DEFS=-DHAVE_CONFIG_H
25409
25410 ac_libobjs=
25411 ac_ltlibobjs=
25412 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25413 # 1. Remove the extension, and $U if already installed.
25414 ac_i=`echo "$ac_i" |
25415 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25416 # 2. Add them.
25417 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25418 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25419 done
25420 LIBOBJS=$ac_libobjs
25421
25422 LTLIBOBJS=$ac_ltlibobjs
25423
25424
25425 if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
25426 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
25427 Usually this means the macro was only invoked conditionally." >&5
25428 echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
25429 Usually this means the macro was only invoked conditionally." >&2;}
25430 { (exit 1); exit 1; }; }
25431 fi
25432 if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
25433 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
25434 Usually this means the macro was only invoked conditionally." >&5
25435 echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
25436 Usually this means the macro was only invoked conditionally." >&2;}
25437 { (exit 1); exit 1; }; }
25438 fi
25439 if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
25440 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
25441 Usually this means the macro was only invoked conditionally." >&5
25442 echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
25443 Usually this means the macro was only invoked conditionally." >&2;}
25444 { (exit 1); exit 1; }; }
25445 fi
25446 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25447 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25448 Usually this means the macro was only invoked conditionally." >&5
25449 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25450 Usually this means the macro was only invoked conditionally." >&2;}
25451 { (exit 1); exit 1; }; }
25452 fi
25453 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25454 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25455 Usually this means the macro was only invoked conditionally." >&5
25456 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25457 Usually this means the macro was only invoked conditionally." >&2;}
25458 { (exit 1); exit 1; }; }
25459 fi
25460 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25461 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25462 Usually this means the macro was only invoked conditionally." >&5
25463 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25464 Usually this means the macro was only invoked conditionally." >&2;}
25465 { (exit 1); exit 1; }; }
25466 fi
25467 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25468 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25469 Usually this means the macro was only invoked conditionally." >&5
25470 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25471 Usually this means the macro was only invoked conditionally." >&2;}
25472 { (exit 1); exit 1; }; }
25473 fi
25474 if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
25475 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
25476 Usually this means the macro was only invoked conditionally." >&5
25477 echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
25478 Usually this means the macro was only invoked conditionally." >&2;}
25479 { (exit 1); exit 1; }; }
25480 fi
25481 if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
25482 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
25483 Usually this means the macro was only invoked conditionally." >&5
25484 echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
25485 Usually this means the macro was only invoked conditionally." >&2;}
25486 { (exit 1); exit 1; }; }
25487 fi
25488 if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
25489 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
25490 Usually this means the macro was only invoked conditionally." >&5
25491 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
25492 Usually this means the macro was only invoked conditionally." >&2;}
25493 { (exit 1); exit 1; }; }
25494 fi
25495 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
25496 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25497 Usually this means the macro was only invoked conditionally." >&5
25498 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25499 Usually this means the macro was only invoked conditionally." >&2;}
25500 { (exit 1); exit 1; }; }
25501 fi
25502 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
25503 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25504 Usually this means the macro was only invoked conditionally." >&5
25505 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
25506 Usually this means the macro was only invoked conditionally." >&2;}
25507 { (exit 1); exit 1; }; }
25508 fi
25509 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
25510 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
25511 Usually this means the macro was only invoked conditionally." >&5
25512 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
25513 Usually this means the macro was only invoked conditionally." >&2;}
25514 { (exit 1); exit 1; }; }
25515 fi
25516 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
25517 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
25518 Usually this means the macro was only invoked conditionally." >&5
25519 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
25520 Usually this means the macro was only invoked conditionally." >&2;}
25521 { (exit 1); exit 1; }; }
25522 fi
25523 if test -z "${COIN_HAS_SOPLEX_TRUE}" && test -z "${COIN_HAS_SOPLEX_FALSE}"; then
25524 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25525 Usually this means the macro was only invoked conditionally." >&5
25526 echo "$as_me: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25527 Usually this means the macro was only invoked conditionally." >&2;}
25528 { (exit 1); exit 1; }; }
25529 fi
25530 if test -z "${COIN_HAS_SOPLEX_TRUE}" && test -z "${COIN_HAS_SOPLEX_FALSE}"; then
25531 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25532 Usually this means the macro was only invoked conditionally." >&5
25533 echo "$as_me: error: conditional \"COIN_HAS_SOPLEX\" was never defined.
25534 Usually this means the macro was only invoked conditionally." >&2;}
25535 { (exit 1); exit 1; }; }
25536 fi
25537 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
25538 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25539 Usually this means the macro was only invoked conditionally." >&5
25540 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25541 Usually this means the macro was only invoked conditionally." >&2;}
25542 { (exit 1); exit 1; }; }
25543 fi
25544 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
25545 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25546 Usually this means the macro was only invoked conditionally." >&5
25547 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
25548 Usually this means the macro was only invoked conditionally." >&2;}
25549 { (exit 1); exit 1; }; }
25550 fi
25551 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
25552 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25553 Usually this means the macro was only invoked conditionally." >&5
25554 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25555 Usually this means the macro was only invoked conditionally." >&2;}
25556 { (exit 1); exit 1; }; }
25557 fi
25558 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
25559 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25560 Usually this means the macro was only invoked conditionally." >&5
25561 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
25562 Usually this means the macro was only invoked conditionally." >&2;}
25563 { (exit 1); exit 1; }; }
25564 fi
25565 if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
25566 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
25567 Usually this means the macro was only invoked conditionally." >&5
25568 echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
25569 Usually this means the macro was only invoked conditionally." >&2;}
25570 { (exit 1); exit 1; }; }
25571 fi
25572 if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then
25573 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined.
25574 Usually this means the macro was only invoked conditionally." >&5
25575 echo "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined.
25576 Usually this means the macro was only invoked conditionally." >&2;}
25577 { (exit 1); exit 1; }; }
25578 fi
25579 if test -z "${COIN_HAS_XPR_TRUE}" && test -z "${COIN_HAS_XPR_FALSE}"; then
25580 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined.
25581 Usually this means the macro was only invoked conditionally." >&5
25582 echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined.
25583 Usually this means the macro was only invoked conditionally." >&2;}
25584 { (exit 1); exit 1; }; }
25585 fi
25586 if test -z "${COIN_HAS_GRB_TRUE}" && test -z "${COIN_HAS_GRB_FALSE}"; then
25587 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined.
25588 Usually this means the macro was only invoked conditionally." >&5
25589 echo "$as_me: error: conditional \"COIN_HAS_GRB\" was never defined.
25590 Usually this means the macro was only invoked conditionally." >&2;}
25591 { (exit 1); exit 1; }; }
25592 fi
25593 if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
25594 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
25595 Usually this means the macro was only invoked conditionally." >&5
25596 echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
25597 Usually this means the macro was only invoked conditionally." >&2;}
25598 { (exit 1); exit 1; }; }
25599 fi
25600 if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
25601 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
25602 Usually this means the macro was only invoked conditionally." >&5
25603 echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
25604 Usually this means the macro was only invoked conditionally." >&2;}
25605 { (exit 1); exit 1; }; }
25606 fi
25607
25608 : ${CONFIG_STATUS=./config.status}
25609 ac_clean_files_save=$ac_clean_files
25610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25611 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25612 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25613 cat >$CONFIG_STATUS <<_ACEOF
25614 #! $SHELL
25615 # Generated by $as_me.
25616 # Run this file to recreate the current configuration.
25617 # Compiler output produced by configure, useful for debugging
25618 # configure, is in config.log if it exists.
25619
25620 debug=false
25621 ac_cs_recheck=false
25622 ac_cs_silent=false
25623 SHELL=\${CONFIG_SHELL-$SHELL}
25624 _ACEOF
25625
25626 cat >>$CONFIG_STATUS <<\_ACEOF
25627 ## --------------------- ##
25628 ## M4sh Initialization. ##
25629 ## --------------------- ##
25630
25631 # Be Bourne compatible
25632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25633 emulate sh
25634 NULLCMD=:
25635 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25636 # is contrary to our usage. Disable this feature.
25637 alias -g '${1+"$@"}'='"$@"'
25638 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25639 set -o posix
25640 fi
25641 DUALCASE=1; export DUALCASE # for MKS sh
25642
25643 # Support unset when possible.
25644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25645 as_unset=unset
25646 else
25647 as_unset=false
25648 fi
25649
25650
25651 # Work around bugs in pre-3.0 UWIN ksh.
25652 $as_unset ENV MAIL MAILPATH
25653 PS1='$ '
25654 PS2='> '
25655 PS4='+ '
25656
25657 # NLS nuisances.
25658 for as_var in \
25659 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25660 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25661 LC_TELEPHONE LC_TIME
25662 do
25663 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25664 eval $as_var=C; export $as_var
25665 else
25666 $as_unset $as_var
25667 fi
25668 done
25669
25670 # Required to use basename.
25671 if expr a : '\(a\)' >/dev/null 2>&1; then
25672 as_expr=expr
25673 else
25674 as_expr=false
25675 fi
25676
25677 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25678 as_basename=basename
25679 else
25680 as_basename=false
25681 fi
25682
25683
25684 # Name of the executable.
25685 as_me=`$as_basename "$0" ||
25686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25687 X"$0" : 'X\(//\)$' \| \
25688 X"$0" : 'X\(/\)$' \| \
25689 . : '\(.\)' 2>/dev/null ||
25690 echo X/"$0" |
25691 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25692 /^X\/\(\/\/\)$/{ s//\1/; q; }
25693 /^X\/\(\/\).*/{ s//\1/; q; }
25694 s/.*/./; q'`
25695
25696
25697 # PATH needs CR, and LINENO needs CR and PATH.
25698 # Avoid depending upon Character Ranges.
25699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25702 as_cr_digits='0123456789'
25703 as_cr_alnum=$as_cr_Letters$as_cr_digits
25704
25705 # The user is always right.
25706 if test "${PATH_SEPARATOR+set}" != set; then
25707 echo "#! /bin/sh" >conf$$.sh
25708 echo "exit 0" >>conf$$.sh
25709 chmod +x conf$$.sh
25710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25711 PATH_SEPARATOR=';'
25712 else
25713 PATH_SEPARATOR=:
25714 fi
25715 rm -f conf$$.sh
25716 fi
25717
25718
25719 as_lineno_1=$LINENO
25720 as_lineno_2=$LINENO
25721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25722 test "x$as_lineno_1" != "x$as_lineno_2" &&
25723 test "x$as_lineno_3" = "x$as_lineno_2" || {
25724 # Find who we are. Look in the path if we contain no path at all
25725 # relative or not.
25726 case $0 in
25727 *[\\/]* ) as_myself=$0 ;;
25728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25729 for as_dir in $PATH
25730 do
25731 IFS=$as_save_IFS
25732 test -z "$as_dir" && as_dir=.
25733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25734 done
25735
25736 ;;
25737 esac
25738 # We did not find ourselves, most probably we were run as `sh COMMAND'
25739 # in which case we are not to be found in the path.
25740 if test "x$as_myself" = x; then
25741 as_myself=$0
25742 fi
25743 if test ! -f "$as_myself"; then
25744 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25745 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25746 { (exit 1); exit 1; }; }
25747 fi
25748 case $CONFIG_SHELL in
25749 '')
25750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25751 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25752 do
25753 IFS=$as_save_IFS
25754 test -z "$as_dir" && as_dir=.
25755 for as_base in sh bash ksh sh5; do
25756 case $as_dir in
25757 /*)
25758 if ("$as_dir/$as_base" -c '
25759 as_lineno_1=$LINENO
25760 as_lineno_2=$LINENO
25761 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25762 test "x$as_lineno_1" != "x$as_lineno_2" &&
25763 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25764 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25765 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25766 CONFIG_SHELL=$as_dir/$as_base
25767 export CONFIG_SHELL
25768 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25769 fi;;
25770 esac
25771 done
25772 done
25773 ;;
25774 esac
25775
25776 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25777 # uniformly replaced by the line number. The first 'sed' inserts a
25778 # line-number line before each line; the second 'sed' does the real
25779 # work. The second script uses 'N' to pair each line-number line
25780 # with the numbered line, and appends trailing '-' during
25781 # substitution so that $LINENO is not a special case at line end.
25782 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25783 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25784 sed '=' <$as_myself |
25785 sed '
25786 N
25787 s,$,-,
25788 : loop
25789 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25790 t loop
25791 s,-$,,
25792 s,^['$as_cr_digits']*\n,,
25793 ' >$as_me.lineno &&
25794 chmod +x $as_me.lineno ||
25795 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25796 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25797 { (exit 1); exit 1; }; }
25798
25799 # Don't try to exec as it changes $[0], causing all sort of problems
25800 # (the dirname of $[0] is not the place where we might find the
25801 # original and so on. Autoconf is especially sensible to this).
25802 . ./$as_me.lineno
25803 # Exit status is that of the last command.
25804 exit
25805 }
25806
25807
25808 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25809 *c*,-n*) ECHO_N= ECHO_C='
25810 ' ECHO_T=' ' ;;
25811 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25812 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25813 esac
25814
25815 if expr a : '\(a\)' >/dev/null 2>&1; then
25816 as_expr=expr
25817 else
25818 as_expr=false
25819 fi
25820
25821 rm -f conf$$ conf$$.exe conf$$.file
25822 echo >conf$$.file
25823 if ln -s conf$$.file conf$$ 2>/dev/null; then
25824 # We could just check for DJGPP; but this test a) works b) is more generic
25825 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25826 if test -f conf$$.exe; then
25827 # Don't use ln at all; we don't have any links
25828 as_ln_s='cp -p'
25829 else
25830 as_ln_s='ln -s'
25831 fi
25832 elif ln conf$$.file conf$$ 2>/dev/null; then
25833 as_ln_s=ln
25834 else
25835 as_ln_s='cp -p'
25836 fi
25837 rm -f conf$$ conf$$.exe conf$$.file
25838
25839 if mkdir -p . 2>/dev/null; then
25840 as_mkdir_p=:
25841 else
25842 test -d ./-p && rmdir ./-p
25843 as_mkdir_p=false
25844 fi
25845
25846 as_executable_p="test -f"
25847
25848 # Sed expression to map a string onto a valid CPP name.
25849 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25850
25851 # Sed expression to map a string onto a valid variable name.
25852 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25853
25854
25855 # IFS
25856 # We need space, tab and new line, in precisely that order.
25857 as_nl='
25858 '
25859 IFS=" $as_nl"
25860
25861 # CDPATH.
25862 $as_unset CDPATH
25863
25864 exec 6>&1
25865
25866 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25867 # report actual input values of CONFIG_FILES etc. instead of their
25868 # values after options handling. Logging --version etc. is OK.
25869 exec 5>>config.log
25870 {
25871 echo
25872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25873 ## Running $as_me. ##
25874 _ASBOX
25875 } >&5
25876 cat >&5 <<_CSEOF
25877
25878 This file was extended by Osi $as_me 0.108.0, which was
25879 generated by GNU Autoconf 2.59. Invocation command line was
25880
25881 CONFIG_FILES = $CONFIG_FILES
25882 CONFIG_HEADERS = $CONFIG_HEADERS
25883 CONFIG_LINKS = $CONFIG_LINKS
25884 CONFIG_COMMANDS = $CONFIG_COMMANDS
25885 $ $0 $@
25886
25887 _CSEOF
25888 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25889 echo >&5
25890 _ACEOF
25891
25892 # Files that config.status was made for.
25893 if test -n "$ac_config_files"; then
25894 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25895 fi
25896
25897 if test -n "$ac_config_headers"; then
25898 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25899 fi
25900
25901 if test -n "$ac_config_links"; then
25902 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25903 fi
25904
25905 if test -n "$ac_config_commands"; then
25906 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25907 fi
25908
25909 cat >>$CONFIG_STATUS <<\_ACEOF
25910
25911 ac_cs_usage="\
25912 \`$as_me' instantiates files from templates according to the
25913 current configuration.
25914
25915 Usage: $0 [OPTIONS] [FILE]...
25916
25917 -h, --help print this help, then exit
25918 -V, --version print version number, then exit
25919 -q, --quiet do not print progress messages
25920 -d, --debug don't remove temporary files
25921 --recheck update $as_me by reconfiguring in the same conditions
25922 --file=FILE[:TEMPLATE]
25923 instantiate the configuration file FILE
25924 --header=FILE[:TEMPLATE]
25925 instantiate the configuration header FILE
25926
25927 Configuration files:
25928 $config_files
25929
25930 Configuration headers:
25931 $config_headers
25932
25933 Configuration commands:
25934 $config_commands
25935
25936 Report bugs to <[email protected]>."
25937 _ACEOF
25938
25939 cat >>$CONFIG_STATUS <<_ACEOF
25940 ac_cs_version="\\
25941 Osi config.status 0.108.0
25942 configured by $0, generated by GNU Autoconf 2.59,
25943 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25944
25945 Copyright (C) 2003 Free Software Foundation, Inc.
25946 This config.status script is free software; the Free Software Foundation
25947 gives unlimited permission to copy, distribute and modify it."
25948 srcdir=$srcdir
25949 INSTALL="$INSTALL"
25950 _ACEOF
25951
25952 cat >>$CONFIG_STATUS <<\_ACEOF
25953 # If no file are specified by the user, then we need to provide default
25954 # value. By we need to know if files were specified by the user.
25955 ac_need_defaults=:
25956 while test $# != 0
25957 do
25958 case $1 in
25959 --*=*)
25960 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25961 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25962 ac_shift=:
25963 ;;
25964 -*)
25965 ac_option=$1
25966 ac_optarg=$2
25967 ac_shift=shift
25968 ;;
25969 *) # This is not an option, so the user has probably given explicit
25970 # arguments.
25971 ac_option=$1
25972 ac_need_defaults=false;;
25973 esac
25974
25975 case $ac_option in
25976 # Handling of the options.
25977 _ACEOF
25978 cat >>$CONFIG_STATUS <<\_ACEOF
25979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25980 ac_cs_recheck=: ;;
25981 --version | --vers* | -V )
25982 echo "$ac_cs_version"; exit 0 ;;
25983 --he | --h)
25984 # Conflict between --help and --header
25985 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25986 Try \`$0 --help' for more information." >&5
25987 echo "$as_me: error: ambiguous option: $1
25988 Try \`$0 --help' for more information." >&2;}
25989 { (exit 1); exit 1; }; };;
25990 --help | --hel | -h )
25991 echo "$ac_cs_usage"; exit 0 ;;
25992 --debug | --d* | -d )
25993 debug=: ;;
25994 --file | --fil | --fi | --f )
25995 $ac_shift
25996 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25997 ac_need_defaults=false;;
25998 --header | --heade | --head | --hea )
25999 $ac_shift
26000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26001 ac_need_defaults=false;;
26002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26004 ac_cs_silent=: ;;
26005
26006 # This is an error.
26007 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26008 Try \`$0 --help' for more information." >&5
26009 echo "$as_me: error: unrecognized option: $1
26010 Try \`$0 --help' for more information." >&2;}
26011 { (exit 1); exit 1; }; } ;;
26012
26013 *) ac_config_targets="$ac_config_targets $1" ;;
26014
26015 esac
26016 shift
26017 done
26018
26019 ac_configure_extra_args=
26020
26021 if $ac_cs_silent; then
26022 exec 6>/dev/null
26023 ac_configure_extra_args="$ac_configure_extra_args --silent"
26024 fi
26025
26026 _ACEOF
26027 cat >>$CONFIG_STATUS <<_ACEOF
26028 if \$ac_cs_recheck; then
26029 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26030 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26031 fi
26032
26033 _ACEOF
26034
26035 cat >>$CONFIG_STATUS <<_ACEOF
26036 #
26037 # INIT-COMMANDS section.
26038 #
26039
26040 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26041
26042 _ACEOF
26043
26044
26045
26046 cat >>$CONFIG_STATUS <<\_ACEOF
26047 for ac_config_target in $ac_config_targets
26048 do
26049 case "$ac_config_target" in
26050 # Handling of arguments.
26051 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26052 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26053 "src/Osi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Osi/Makefile" ;;
26054 "src/OsiCpx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiCpx/Makefile" ;;
26055 "src/OsiGlpk/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiGlpk/Makefile" ;;
26056 "src/OsiMsk/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiMsk/Makefile" ;;
26057 "src/OsiXpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiXpr/Makefile" ;;
26058 "src/OsiGrb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiGrb/Makefile" ;;
26059 "src/OsiSpx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiSpx/Makefile" ;;
26060 "src/OsiCommonTest/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiCommonTest/Makefile" ;;
26061 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
26062 "osi.pc" ) CONFIG_FILES="$CONFIG_FILES osi.pc" ;;
26063 "osi-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-uninstalled.pc" ;;
26064 "osi-unittests.pc" ) CONFIG_FILES="$CONFIG_FILES osi-unittests.pc" ;;
26065 "osi-unittests-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-unittests-uninstalled.pc" ;;
26066 "osi-cplex.pc" ) CONFIG_FILES="$CONFIG_FILES osi-cplex.pc:src/OsiCpx/osi-cplex.pc.in" ;;
26067 "osi-cplex-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-cplex-uninstalled.pc:src/OsiCpx/osi-cplex-uninstalled.pc.in" ;;
26068 "osi-glpk.pc" ) CONFIG_FILES="$CONFIG_FILES osi-glpk.pc:src/OsiGlpk/osi-glpk.pc.in" ;;
26069 "osi-glpk-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-glpk-uninstalled.pc:src/OsiGlpk/osi-glpk-uninstalled.pc.in" ;;
26070 "osi-gurobi.pc" ) CONFIG_FILES="$CONFIG_FILES osi-gurobi.pc:src/OsiGrb/osi-gurobi.pc.in" ;;
26071 "osi-gurobi-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-gurobi-uninstalled.pc:src/OsiGrb/osi-gurobi-uninstalled.pc.in" ;;
26072 "osi-mosek.pc" ) CONFIG_FILES="$CONFIG_FILES osi-mosek.pc:src/OsiMsk/osi-mosek.pc.in" ;;
26073 "osi-mosek-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-mosek-uninstalled.pc:src/OsiMsk/osi-mosek-uninstalled.pc.in" ;;
26074 "osi-xpress.pc" ) CONFIG_FILES="$CONFIG_FILES osi-xpress.pc:src/OsiXpr/osi-xpress.pc.in" ;;
26075 "osi-xpress-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-xpress-uninstalled.pc:src/OsiXpr/osi-xpress-uninstalled.pc.in" ;;
26076 "osi-soplex.pc" ) CONFIG_FILES="$CONFIG_FILES osi-soplex.pc:src/OsiSpx/osi-soplex.pc.in" ;;
26077 "osi-soplex-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-soplex-uninstalled.pc:src/OsiSpx/osi-soplex-uninstalled.pc.in" ;;
26078 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
26079 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26080 "src/Osi/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/Osi/config.h" ;;
26081 "src/Osi/config_osi.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/Osi/config_osi.h" ;;
26082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26084 { (exit 1); exit 1; }; };;
26085 esac
26086 done
26087
26088 # If the user did not use the arguments to specify the items to instantiate,
26089 # then the envvar interface is used. Set only those that are not.
26090 # We use the long form for the default assignment because of an extremely
26091 # bizarre bug on SunOS 4.1.3.
26092 if $ac_need_defaults; then
26093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26096 fi
26097
26098 # Have a temporary directory for convenience. Make it in the build tree
26099 # simply because there is no reason to put it here, and in addition,
26100 # creating and moving files from /tmp can sometimes cause problems.
26101 # Create a temporary directory, and hook for its removal unless debugging.
26102 $debug ||
26103 {
26104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26105 trap '{ (exit 1); exit 1; }' 1 2 13 15
26106 }
26107
26108 # Create a (secure) tmp directory for tmp files.
26109
26110 {
26111 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26112 test -n "$tmp" && test -d "$tmp"
26113 } ||
26114 {
26115 tmp=./confstat$$-$RANDOM
26116 (umask 077 && mkdir $tmp)
26117 } ||
26118 {
26119 echo "$me: cannot create a temporary directory in ." >&2
26120 { (exit 1); exit 1; }
26121 }
26122
26123 _ACEOF
26124
26125 cat >>$CONFIG_STATUS <<_ACEOF
26126
26127 #
26128 # CONFIG_FILES section.
26129 #
26130
26131 # No need to generate the scripts if there are no CONFIG_FILES.
26132 # This happens for instance when ./config.status config.h
26133 if test -n "\$CONFIG_FILES"; then
26134 # Protect against being on the right side of a sed subst in config.status.
26135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26137 s,@SHELL@,$SHELL,;t t
26138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26144 s,@exec_prefix@,$exec_prefix,;t t
26145 s,@prefix@,$prefix,;t t
26146 s,@program_transform_name@,$program_transform_name,;t t
26147 s,@bindir@,$bindir,;t t
26148 s,@sbindir@,$sbindir,;t t
26149 s,@libexecdir@,$libexecdir,;t t
26150 s,@datadir@,$datadir,;t t
26151 s,@sysconfdir@,$sysconfdir,;t t
26152 s,@sharedstatedir@,$sharedstatedir,;t t
26153 s,@localstatedir@,$localstatedir,;t t
26154 s,@libdir@,$libdir,;t t
26155 s,@includedir@,$includedir,;t t
26156 s,@oldincludedir@,$oldincludedir,;t t
26157 s,@infodir@,$infodir,;t t
26158 s,@mandir@,$mandir,;t t
26159 s,@build_alias@,$build_alias,;t t
26160 s,@host_alias@,$host_alias,;t t
26161 s,@target_alias@,$target_alias,;t t
26162 s,@DEFS@,$DEFS,;t t
26163 s,@ECHO_C@,$ECHO_C,;t t
26164 s,@ECHO_N@,$ECHO_N,;t t
26165 s,@ECHO_T@,$ECHO_T,;t t
26166 s,@LIBS@,$LIBS,;t t
26167 s,@build@,$build,;t t
26168 s,@build_cpu@,$build_cpu,;t t
26169 s,@build_vendor@,$build_vendor,;t t
26170 s,@build_os@,$build_os,;t t
26171 s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
26172 s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
26173 s,@have_svnversion@,$have_svnversion,;t t
26174 s,@OSI_SVN_REV@,$OSI_SVN_REV,;t t
26175 s,@CDEFS@,$CDEFS,;t t
26176 s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
26177 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
26178 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
26179 s,@sol_cc_compiler@,$sol_cc_compiler,;t t
26180 s,@CC@,$CC,;t t
26181 s,@CFLAGS@,$CFLAGS,;t t
26182 s,@LDFLAGS@,$LDFLAGS,;t t
26183 s,@CPPFLAGS@,$CPPFLAGS,;t t
26184 s,@ac_ct_CC@,$ac_ct_CC,;t t
26185 s,@EXEEXT@,$EXEEXT,;t t
26186 s,@OBJEXT@,$OBJEXT,;t t
26187 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
26188 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
26189 s,@MPICC@,$MPICC,;t t
26190 s,@CXXDEFS@,$CXXDEFS,;t t
26191 s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
26192 s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
26193 s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
26194 s,@CXX@,$CXX,;t t
26195 s,@CXXFLAGS@,$CXXFLAGS,;t t
26196 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26197 s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
26198 s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
26199 s,@MPICXX@,$MPICXX,;t t
26200 s,@EGREP@,$EGREP,;t t
26201 s,@LN_S@,$LN_S,;t t
26202 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26203 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26204 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26205 s,@CYGPATH_W@,$CYGPATH_W,;t t
26206 s,@PACKAGE@,$PACKAGE,;t t
26207 s,@VERSION@,$VERSION,;t t
26208 s,@ACLOCAL@,$ACLOCAL,;t t
26209 s,@AUTOCONF@,$AUTOCONF,;t t
26210 s,@AUTOMAKE@,$AUTOMAKE,;t t
26211 s,@AUTOHEADER@,$AUTOHEADER,;t t
26212 s,@MAKEINFO@,$MAKEINFO,;t t
26213 s,@install_sh@,$install_sh,;t t
26214 s,@STRIP@,$STRIP,;t t
26215 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26216 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26217 s,@mkdir_p@,$mkdir_p,;t t
26218 s,@AWK@,$AWK,;t t
26219 s,@SET_MAKE@,$SET_MAKE,;t t
26220 s,@am__leading_dot@,$am__leading_dot,;t t
26221 s,@AMTAR@,$AMTAR,;t t
26222 s,@am__tar@,$am__tar,;t t
26223 s,@am__untar@,$am__untar,;t t
26224 s,@DEPDIR@,$DEPDIR,;t t
26225 s,@am__include@,$am__include,;t t
26226 s,@am__quote@,$am__quote,;t t
26227 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26228 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26229 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26230 s,@CCDEPMODE@,$CCDEPMODE,;t t
26231 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26232 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26233 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26234 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26235 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26236 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26237 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26238 s,@MAINT@,$MAINT,;t t
26239 s,@LIBTOOLM4@,$LIBTOOLM4,;t t
26240 s,@have_autoconf@,$have_autoconf,;t t
26241 s,@have_automake@,$have_automake,;t t
26242 s,@have_svn@,$have_svn,;t t
26243 s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
26244 s,@AUX_DIR@,$AUX_DIR,;t t
26245 s,@abs_source_dir@,$abs_source_dir,;t t
26246 s,@abs_lib_dir@,$abs_lib_dir,;t t
26247 s,@abs_include_dir@,$abs_include_dir,;t t
26248 s,@abs_bin_dir@,$abs_bin_dir,;t t
26249 s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
26250 s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
26251 s,@host@,$host,;t t
26252 s,@host_cpu@,$host_cpu,;t t
26253 s,@host_vendor@,$host_vendor,;t t
26254 s,@host_os@,$host_os,;t t
26255 s,@ECHO@,$ECHO,;t t
26256 s,@AR@,$AR,;t t
26257 s,@ac_ct_AR@,$ac_ct_AR,;t t
26258 s,@RANLIB@,$RANLIB,;t t
26259 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26260 s,@CPP@,$CPP,;t t
26261 s,@CXXCPP@,$CXXCPP,;t t
26262 s,@F77@,$F77,;t t
26263 s,@FFLAGS@,$FFLAGS,;t t
26264 s,@ac_ct_F77@,$ac_ct_F77,;t t
26265 s,@LIBTOOL@,$LIBTOOL,;t t
26266 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
26267 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
26268 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
26269 s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
26270 s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
26271 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
26272 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26273 s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
26274 s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
26275 s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
26276 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
26277 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
26278 s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
26279 s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
26280 s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
26281 s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t
26282 s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t
26283 s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t
26284 s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t
26285 s,@OSILIB_CFLAGS@,$OSILIB_CFLAGS,;t t
26286 s,@OSILIB_LIBS@,$OSILIB_LIBS,;t t
26287 s,@OSILIB_PCLIBS@,$OSILIB_PCLIBS,;t t
26288 s,@OSILIB_PCREQUIRES@,$OSILIB_PCREQUIRES,;t t
26289 s,@OSILIB_DEPENDENCIES@,$OSILIB_DEPENDENCIES,;t t
26290 s,@OSILIB_CFLAGS_INSTALLED@,$OSILIB_CFLAGS_INSTALLED,;t t
26291 s,@OSILIB_LIBS_INSTALLED@,$OSILIB_LIBS_INSTALLED,;t t
26292 s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
26293 s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
26294 s,@GLPK_LIBS@,$GLPK_LIBS,;t t
26295 s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
26296 s,@GLPK_DATA@,$GLPK_DATA,;t t
26297 s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
26298 s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
26299 s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
26300 s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
26301 s,@OSIGLPKLIB_CFLAGS@,$OSIGLPKLIB_CFLAGS,;t t
26302 s,@OSIGLPKLIB_LIBS@,$OSIGLPKLIB_LIBS,;t t
26303 s,@OSIGLPKLIB_PCLIBS@,$OSIGLPKLIB_PCLIBS,;t t
26304 s,@OSIGLPKLIB_PCREQUIRES@,$OSIGLPKLIB_PCREQUIRES,;t t
26305 s,@OSIGLPKLIB_DEPENDENCIES@,$OSIGLPKLIB_DEPENDENCIES,;t t
26306 s,@OSIGLPKLIB_CFLAGS_INSTALLED@,$OSIGLPKLIB_CFLAGS_INSTALLED,;t t
26307 s,@OSIGLPKLIB_LIBS_INSTALLED@,$OSIGLPKLIB_LIBS_INSTALLED,;t t
26308 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
26309 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
26310 s,@SOPLEX_LIBS@,$SOPLEX_LIBS,;t t
26311 s,@SOPLEX_CFLAGS@,$SOPLEX_CFLAGS,;t t
26312 s,@SOPLEX_DATA@,$SOPLEX_DATA,;t t
26313 s,@SOPLEX_DEPENDENCIES@,$SOPLEX_DEPENDENCIES,;t t
26314 s,@SOPLEX_LIBS_INSTALLED@,$SOPLEX_LIBS_INSTALLED,;t t
26315 s,@SOPLEX_CFLAGS_INSTALLED@,$SOPLEX_CFLAGS_INSTALLED,;t t
26316 s,@SOPLEX_DATA_INSTALLED@,$SOPLEX_DATA_INSTALLED,;t t
26317 s,@OSISPXLIB_CFLAGS@,$OSISPXLIB_CFLAGS,;t t
26318 s,@OSISPXLIB_LIBS@,$OSISPXLIB_LIBS,;t t
26319 s,@OSISPXLIB_PCLIBS@,$OSISPXLIB_PCLIBS,;t t
26320 s,@OSISPXLIB_PCREQUIRES@,$OSISPXLIB_PCREQUIRES,;t t
26321 s,@OSISPXLIB_DEPENDENCIES@,$OSISPXLIB_DEPENDENCIES,;t t
26322 s,@OSISPXLIB_CFLAGS_INSTALLED@,$OSISPXLIB_CFLAGS_INSTALLED,;t t
26323 s,@OSISPXLIB_LIBS_INSTALLED@,$OSISPXLIB_LIBS_INSTALLED,;t t
26324 s,@COIN_HAS_SOPLEX_TRUE@,$COIN_HAS_SOPLEX_TRUE,;t t
26325 s,@COIN_HAS_SOPLEX_FALSE@,$COIN_HAS_SOPLEX_FALSE,;t t
26326 s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
26327 s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
26328 s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
26329 s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
26330 s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
26331 s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
26332 s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
26333 s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
26334 s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
26335 s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
26336 s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
26337 s,@NETLIB_DATA@,$NETLIB_DATA,;t t
26338 s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
26339 s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
26340 s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
26341 s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
26342 s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
26343 s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
26344 s,@CPXINCDIR@,$CPXINCDIR,;t t
26345 s,@CPXLIB@,$CPXLIB,;t t
26346 s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t
26347 s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t
26348 s,@MSKINCDIR@,$MSKINCDIR,;t t
26349 s,@MSKLIB@,$MSKLIB,;t t
26350 s,@COIN_HAS_MSK_TRUE@,$COIN_HAS_MSK_TRUE,;t t
26351 s,@COIN_HAS_MSK_FALSE@,$COIN_HAS_MSK_FALSE,;t t
26352 s,@XPRINCDIR@,$XPRINCDIR,;t t
26353 s,@XPRLIB@,$XPRLIB,;t t
26354 s,@COIN_HAS_XPR_TRUE@,$COIN_HAS_XPR_TRUE,;t t
26355 s,@COIN_HAS_XPR_FALSE@,$COIN_HAS_XPR_FALSE,;t t
26356 s,@GRBINCDIR@,$GRBINCDIR,;t t
26357 s,@GRBLIB@,$GRBLIB,;t t
26358 s,@COIN_HAS_GRB_TRUE@,$COIN_HAS_GRB_TRUE,;t t
26359 s,@COIN_HAS_GRB_FALSE@,$COIN_HAS_GRB_FALSE,;t t
26360 s,@OSI_EXAMPLES_SOLVER_NAME@,$OSI_EXAMPLES_SOLVER_NAME,;t t
26361 s,@OSI_EXAMPLES_SOLVER_CFLAGS@,$OSI_EXAMPLES_SOLVER_CFLAGS,;t t
26362 s,@OSI_EXAMPLES_SOLVER_LIBS@,$OSI_EXAMPLES_SOLVER_LIBS,;t t
26363 s,@OSI_EXAMPLES_SOLVER_PCNAME@,$OSI_EXAMPLES_SOLVER_PCNAME,;t t
26364 s,@coin_have_doxygen@,$coin_have_doxygen,;t t
26365 s,@coin_have_latex@,$coin_have_latex,;t t
26366 s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
26367 s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
26368 s,@coin_doxy_logname@,$coin_doxy_logname,;t t
26369 s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
26370 s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
26371 s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
26372 s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
26373 s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
26374 s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
26375 s,@LIBEXT@,$LIBEXT,;t t
26376 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
26377 s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
26378 s,@LIBOBJS@,$LIBOBJS,;t t
26379 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26380 CEOF
26381
26382 _ACEOF
26383
26384 cat >>$CONFIG_STATUS <<\_ACEOF
26385 # Split the substitutions into bite-sized pieces for seds with
26386 # small command number limits, like on Digital OSF/1 and HP-UX.
26387 ac_max_sed_lines=48
26388 ac_sed_frag=1 # Number of current file.
26389 ac_beg=1 # First line for current file.
26390 ac_end=$ac_max_sed_lines # Line after last line for current file.
26391 ac_more_lines=:
26392 ac_sed_cmds=
26393 while $ac_more_lines; do
26394 if test $ac_beg -gt 1; then
26395 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26396 else
26397 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26398 fi
26399 if test ! -s $tmp/subs.frag; then
26400 ac_more_lines=false
26401 else
26402 # The purpose of the label and of the branching condition is to
26403 # speed up the sed processing (if there are no `@' at all, there
26404 # is no need to browse any of the substitutions).
26405 # These are the two extra sed commands mentioned above.
26406 (echo ':t
26407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26408 if test -z "$ac_sed_cmds"; then
26409 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26410 else
26411 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26412 fi
26413 ac_sed_frag=`expr $ac_sed_frag + 1`
26414 ac_beg=$ac_end
26415 ac_end=`expr $ac_end + $ac_max_sed_lines`
26416 fi
26417 done
26418 if test -z "$ac_sed_cmds"; then
26419 ac_sed_cmds=cat
26420 fi
26421 fi # test -n "$CONFIG_FILES"
26422
26423 _ACEOF
26424 cat >>$CONFIG_STATUS <<\_ACEOF
26425 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26426 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26427 case $ac_file in
26428 - | *:- | *:-:* ) # input from stdin
26429 cat >$tmp/stdin
26430 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26432 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26433 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26434 * ) ac_file_in=$ac_file.in ;;
26435 esac
26436
26437 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26438 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26439 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26440 X"$ac_file" : 'X\(//\)[^/]' \| \
26441 X"$ac_file" : 'X\(//\)$' \| \
26442 X"$ac_file" : 'X\(/\)' \| \
26443 . : '\(.\)' 2>/dev/null ||
26444 echo X"$ac_file" |
26445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26447 /^X\(\/\/\)$/{ s//\1/; q; }
26448 /^X\(\/\).*/{ s//\1/; q; }
26449 s/.*/./; q'`
26450 { if $as_mkdir_p; then
26451 mkdir -p "$ac_dir"
26452 else
26453 as_dir="$ac_dir"
26454 as_dirs=
26455 while test ! -d "$as_dir"; do
26456 as_dirs="$as_dir $as_dirs"
26457 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26459 X"$as_dir" : 'X\(//\)[^/]' \| \
26460 X"$as_dir" : 'X\(//\)$' \| \
26461 X"$as_dir" : 'X\(/\)' \| \
26462 . : '\(.\)' 2>/dev/null ||
26463 echo X"$as_dir" |
26464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26466 /^X\(\/\/\)$/{ s//\1/; q; }
26467 /^X\(\/\).*/{ s//\1/; q; }
26468 s/.*/./; q'`
26469 done
26470 test ! -n "$as_dirs" || mkdir $as_dirs
26471 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26472 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26473 { (exit 1); exit 1; }; }; }
26474
26475 ac_builddir=.
26476
26477 if test "$ac_dir" != .; then
26478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26479 # A "../" for each directory in $ac_dir_suffix.
26480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26481 else
26482 ac_dir_suffix= ac_top_builddir=
26483 fi
26484
26485 case $srcdir in
26486 .) # No --srcdir option. We are building in place.
26487 ac_srcdir=.
26488 if test -z "$ac_top_builddir"; then
26489 ac_top_srcdir=.
26490 else
26491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26492 fi ;;
26493 [\\/]* | ?:[\\/]* ) # Absolute path.
26494 ac_srcdir=$srcdir$ac_dir_suffix;
26495 ac_top_srcdir=$srcdir ;;
26496 *) # Relative path.
26497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26499 esac
26500
26501 # Do not use `cd foo && pwd` to compute absolute paths, because
26502 # the directories may not exist.
26503 case `pwd` in
26504 .) ac_abs_builddir="$ac_dir";;
26505 *)
26506 case "$ac_dir" in
26507 .) ac_abs_builddir=`pwd`;;
26508 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26509 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26510 esac;;
26511 esac
26512 case $ac_abs_builddir in
26513 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26514 *)
26515 case ${ac_top_builddir}. in
26516 .) ac_abs_top_builddir=$ac_abs_builddir;;
26517 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26518 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26519 esac;;
26520 esac
26521 case $ac_abs_builddir in
26522 .) ac_abs_srcdir=$ac_srcdir;;
26523 *)
26524 case $ac_srcdir in
26525 .) ac_abs_srcdir=$ac_abs_builddir;;
26526 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26527 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26528 esac;;
26529 esac
26530 case $ac_abs_builddir in
26531 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26532 *)
26533 case $ac_top_srcdir in
26534 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26535 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26536 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26537 esac;;
26538 esac
26539
26540
26541 case $INSTALL in
26542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26543 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26544 esac
26545
26546 if test x"$ac_file" != x-; then
26547 { echo "$as_me:$LINENO: creating $ac_file" >&5
26548 echo "$as_me: creating $ac_file" >&6;}
26549 rm -f "$ac_file"
26550 fi
26551 # Let's still pretend it is `configure' which instantiates (i.e., don't
26552 # use $as_me), people would be surprised to read:
26553 # /* config.h. Generated by config.status. */
26554 if test x"$ac_file" = x-; then
26555 configure_input=
26556 else
26557 configure_input="$ac_file. "
26558 fi
26559 configure_input=$configure_input"Generated from `echo $ac_file_in |
26560 sed 's,.*/,,'` by configure."
26561
26562 # First look for the input files in the build tree, otherwise in the
26563 # src tree.
26564 ac_file_inputs=`IFS=:
26565 for f in $ac_file_in; do
26566 case $f in
26567 -) echo $tmp/stdin ;;
26568 [\\/$]*)
26569 # Absolute (can't be DOS-style, as IFS=:)
26570 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26571 echo "$as_me: error: cannot find input file: $f" >&2;}
26572 { (exit 1); exit 1; }; }
26573 echo "$f";;
26574 *) # Relative
26575 if test -f "$f"; then
26576 # Build tree
26577 echo "$f"
26578 elif test -f "$srcdir/$f"; then
26579 # Source tree
26580 echo "$srcdir/$f"
26581 else
26582 # /dev/null tree
26583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26584 echo "$as_me: error: cannot find input file: $f" >&2;}
26585 { (exit 1); exit 1; }; }
26586 fi;;
26587 esac
26588 done` || { (exit 1); exit 1; }
26589 _ACEOF
26590 cat >>$CONFIG_STATUS <<_ACEOF
26591 sed "$ac_vpsub
26592 $extrasub
26593 _ACEOF
26594 cat >>$CONFIG_STATUS <<\_ACEOF
26595 :t
26596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26597 s,@configure_input@,$configure_input,;t t
26598 s,@srcdir@,$ac_srcdir,;t t
26599 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26600 s,@top_srcdir@,$ac_top_srcdir,;t t
26601 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26602 s,@builddir@,$ac_builddir,;t t
26603 s,@abs_builddir@,$ac_abs_builddir,;t t
26604 s,@top_builddir@,$ac_top_builddir,;t t
26605 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26606 s,@INSTALL@,$ac_INSTALL,;t t
26607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26608 rm -f $tmp/stdin
26609 if test x"$ac_file" != x-; then
26610 mv $tmp/out $ac_file
26611 else
26612 cat $tmp/out
26613 rm -f $tmp/out
26614 fi
26615
26616 done
26617 _ACEOF
26618 cat >>$CONFIG_STATUS <<\_ACEOF
26619
26620 #
26621 # CONFIG_HEADER section.
26622 #
26623
26624 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26625 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26626 #
26627 # ac_d sets the value in "#define NAME VALUE" lines.
26628 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26629 ac_dB='[ ].*$,\1#\2'
26630 ac_dC=' '
26631 ac_dD=',;t'
26632 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26633 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26634 ac_uB='$,\1#\2define\3'
26635 ac_uC=' '
26636 ac_uD=',;t'
26637
26638 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26640 case $ac_file in
26641 - | *:- | *:-:* ) # input from stdin
26642 cat >$tmp/stdin
26643 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26645 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26647 * ) ac_file_in=$ac_file.in ;;
26648 esac
26649
26650 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26651 echo "$as_me: creating $ac_file" >&6;}
26652
26653 # First look for the input files in the build tree, otherwise in the
26654 # src tree.
26655 ac_file_inputs=`IFS=:
26656 for f in $ac_file_in; do
26657 case $f in
26658 -) echo $tmp/stdin ;;
26659 [\\/$]*)
26660 # Absolute (can't be DOS-style, as IFS=:)
26661 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26662 echo "$as_me: error: cannot find input file: $f" >&2;}
26663 { (exit 1); exit 1; }; }
26664 # Do quote $f, to prevent DOS paths from being IFS'd.
26665 echo "$f";;
26666 *) # Relative
26667 if test -f "$f"; then
26668 # Build tree
26669 echo "$f"
26670 elif test -f "$srcdir/$f"; then
26671 # Source tree
26672 echo "$srcdir/$f"
26673 else
26674 # /dev/null tree
26675 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26676 echo "$as_me: error: cannot find input file: $f" >&2;}
26677 { (exit 1); exit 1; }; }
26678 fi;;
26679 esac
26680 done` || { (exit 1); exit 1; }
26681 # Remove the trailing spaces.
26682 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26683
26684 _ACEOF
26685
26686 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26687 # `conftest.undefs', that substitutes the proper values into
26688 # config.h.in to produce config.h. The first handles `#define'
26689 # templates, and the second `#undef' templates.
26690 # And first: Protect against being on the right side of a sed subst in
26691 # config.status. Protect against being in an unquoted here document
26692 # in config.status.
26693 rm -f conftest.defines conftest.undefs
26694 # Using a here document instead of a string reduces the quoting nightmare.
26695 # Putting comments in sed scripts is not portable.
26696 #
26697 # `end' is used to avoid that the second main sed command (meant for
26698 # 0-ary CPP macros) applies to n-ary macro definitions.
26699 # See the Autoconf documentation for `clear'.
26700 cat >confdef2sed.sed <<\_ACEOF
26701 s/[\\&,]/\\&/g
26702 s,[\\$`],\\&,g
26703 t clear
26704 : clear
26705 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26706 t end
26707 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26708 : end
26709 _ACEOF
26710 # If some macros were called several times there might be several times
26711 # the same #defines, which is useless. Nevertheless, we may not want to
26712 # sort them, since we want the *last* AC-DEFINE to be honored.
26713 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26714 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26715 rm -f confdef2sed.sed
26716
26717 # This sed command replaces #undef with comments. This is necessary, for
26718 # example, in the case of _POSIX_SOURCE, which is predefined and required
26719 # on some systems where configure will not decide to define it.
26720 cat >>conftest.undefs <<\_ACEOF
26721 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26722 _ACEOF
26723
26724 # Break up conftest.defines because some shells have a limit on the size
26725 # of here documents, and old seds have small limits too (100 cmds).
26726 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26727 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26728 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26729 echo ' :' >>$CONFIG_STATUS
26730 rm -f conftest.tail
26731 while grep . conftest.defines >/dev/null
26732 do
26733 # Write a limited-size here document to $tmp/defines.sed.
26734 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26735 # Speed up: don't consider the non `#define' lines.
26736 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26737 # Work around the forget-to-reset-the-flag bug.
26738 echo 't clr' >>$CONFIG_STATUS
26739 echo ': clr' >>$CONFIG_STATUS
26740 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26741 echo 'CEOF
26742 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26743 rm -f $tmp/in
26744 mv $tmp/out $tmp/in
26745 ' >>$CONFIG_STATUS
26746 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26747 rm -f conftest.defines
26748 mv conftest.tail conftest.defines
26749 done
26750 rm -f conftest.defines
26751 echo ' fi # grep' >>$CONFIG_STATUS
26752 echo >>$CONFIG_STATUS
26753
26754 # Break up conftest.undefs because some shells have a limit on the size
26755 # of here documents, and old seds have small limits too (100 cmds).
26756 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26757 rm -f conftest.tail
26758 while grep . conftest.undefs >/dev/null
26759 do
26760 # Write a limited-size here document to $tmp/undefs.sed.
26761 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26762 # Speed up: don't consider the non `#undef'
26763 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26764 # Work around the forget-to-reset-the-flag bug.
26765 echo 't clr' >>$CONFIG_STATUS
26766 echo ': clr' >>$CONFIG_STATUS
26767 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26768 echo 'CEOF
26769 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26770 rm -f $tmp/in
26771 mv $tmp/out $tmp/in
26772 ' >>$CONFIG_STATUS
26773 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26774 rm -f conftest.undefs
26775 mv conftest.tail conftest.undefs
26776 done
26777 rm -f conftest.undefs
26778
26779 cat >>$CONFIG_STATUS <<\_ACEOF
26780 # Let's still pretend it is `configure' which instantiates (i.e., don't
26781 # use $as_me), people would be surprised to read:
26782 # /* config.h. Generated by config.status. */
26783 if test x"$ac_file" = x-; then
26784 echo "/* Generated by configure. */" >$tmp/config.h
26785 else
26786 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26787 fi
26788 cat $tmp/in >>$tmp/config.h
26789 rm -f $tmp/in
26790 if test x"$ac_file" != x-; then
26791 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26792 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26793 echo "$as_me: $ac_file is unchanged" >&6;}
26794 else
26795 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26797 X"$ac_file" : 'X\(//\)[^/]' \| \
26798 X"$ac_file" : 'X\(//\)$' \| \
26799 X"$ac_file" : 'X\(/\)' \| \
26800 . : '\(.\)' 2>/dev/null ||
26801 echo X"$ac_file" |
26802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26804 /^X\(\/\/\)$/{ s//\1/; q; }
26805 /^X\(\/\).*/{ s//\1/; q; }
26806 s/.*/./; q'`
26807 { if $as_mkdir_p; then
26808 mkdir -p "$ac_dir"
26809 else
26810 as_dir="$ac_dir"
26811 as_dirs=
26812 while test ! -d "$as_dir"; do
26813 as_dirs="$as_dir $as_dirs"
26814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26816 X"$as_dir" : 'X\(//\)[^/]' \| \
26817 X"$as_dir" : 'X\(//\)$' \| \
26818 X"$as_dir" : 'X\(/\)' \| \
26819 . : '\(.\)' 2>/dev/null ||
26820 echo X"$as_dir" |
26821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26823 /^X\(\/\/\)$/{ s//\1/; q; }
26824 /^X\(\/\).*/{ s//\1/; q; }
26825 s/.*/./; q'`
26826 done
26827 test ! -n "$as_dirs" || mkdir $as_dirs
26828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26830 { (exit 1); exit 1; }; }; }
26831
26832 rm -f $ac_file
26833 mv $tmp/config.h $ac_file
26834 fi
26835 else
26836 cat $tmp/config.h
26837 rm -f $tmp/config.h
26838 fi
26839 # Compute $ac_file's index in $config_headers.
26840 _am_stamp_count=1
26841 for _am_header in $config_headers :; do
26842 case $_am_header in
26843 $ac_file | $ac_file:* )
26844 break ;;
26845 * )
26846 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26847 esac
26848 done
26849 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26850 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26851 X$ac_file : 'X\(//\)[^/]' \| \
26852 X$ac_file : 'X\(//\)$' \| \
26853 X$ac_file : 'X\(/\)' \| \
26854 . : '\(.\)' 2>/dev/null ||
26855 echo X$ac_file |
26856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26858 /^X\(\/\/\)$/{ s//\1/; q; }
26859 /^X\(\/\).*/{ s//\1/; q; }
26860 s/.*/./; q'`/stamp-h$_am_stamp_count
26861 done
26862 _ACEOF
26863 cat >>$CONFIG_STATUS <<\_ACEOF
26864
26865 #
26866 # CONFIG_COMMANDS section.
26867 #
26868 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26869 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26870 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26871 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26872 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26873 X"$ac_dest" : 'X\(//\)[^/]' \| \
26874 X"$ac_dest" : 'X\(//\)$' \| \
26875 X"$ac_dest" : 'X\(/\)' \| \
26876 . : '\(.\)' 2>/dev/null ||
26877 echo X"$ac_dest" |
26878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26880 /^X\(\/\/\)$/{ s//\1/; q; }
26881 /^X\(\/\).*/{ s//\1/; q; }
26882 s/.*/./; q'`
26883 { if $as_mkdir_p; then
26884 mkdir -p "$ac_dir"
26885 else
26886 as_dir="$ac_dir"
26887 as_dirs=
26888 while test ! -d "$as_dir"; do
26889 as_dirs="$as_dir $as_dirs"
26890 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26892 X"$as_dir" : 'X\(//\)[^/]' \| \
26893 X"$as_dir" : 'X\(//\)$' \| \
26894 X"$as_dir" : 'X\(/\)' \| \
26895 . : '\(.\)' 2>/dev/null ||
26896 echo X"$as_dir" |
26897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26899 /^X\(\/\/\)$/{ s//\1/; q; }
26900 /^X\(\/\).*/{ s//\1/; q; }
26901 s/.*/./; q'`
26902 done
26903 test ! -n "$as_dirs" || mkdir $as_dirs
26904 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26905 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26906 { (exit 1); exit 1; }; }; }
26907
26908 ac_builddir=.
26909
26910 if test "$ac_dir" != .; then
26911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26912 # A "../" for each directory in $ac_dir_suffix.
26913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26914 else
26915 ac_dir_suffix= ac_top_builddir=
26916 fi
26917
26918 case $srcdir in
26919 .) # No --srcdir option. We are building in place.
26920 ac_srcdir=.
26921 if test -z "$ac_top_builddir"; then
26922 ac_top_srcdir=.
26923 else
26924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26925 fi ;;
26926 [\\/]* | ?:[\\/]* ) # Absolute path.
26927 ac_srcdir=$srcdir$ac_dir_suffix;
26928 ac_top_srcdir=$srcdir ;;
26929 *) # Relative path.
26930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26932 esac
26933
26934 # Do not use `cd foo && pwd` to compute absolute paths, because
26935 # the directories may not exist.
26936 case `pwd` in
26937 .) ac_abs_builddir="$ac_dir";;
26938 *)
26939 case "$ac_dir" in
26940 .) ac_abs_builddir=`pwd`;;
26941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26943 esac;;
26944 esac
26945 case $ac_abs_builddir in
26946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26947 *)
26948 case ${ac_top_builddir}. in
26949 .) ac_abs_top_builddir=$ac_abs_builddir;;
26950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26952 esac;;
26953 esac
26954 case $ac_abs_builddir in
26955 .) ac_abs_srcdir=$ac_srcdir;;
26956 *)
26957 case $ac_srcdir in
26958 .) ac_abs_srcdir=$ac_abs_builddir;;
26959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26961 esac;;
26962 esac
26963 case $ac_abs_builddir in
26964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26965 *)
26966 case $ac_top_srcdir in
26967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26970 esac;;
26971 esac
26972
26973
26974 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26975 echo "$as_me: executing $ac_dest commands" >&6;}
26976 case $ac_dest in
26977 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26978 # Strip MF so we end up with the name of the file.
26979 mf=`echo "$mf" | sed -e 's/:.*$//'`
26980 # Check whether this is an Automake generated Makefile or not.
26981 # We used to match only the files named `Makefile.in', but
26982 # some people rename them; so instead we look at the file content.
26983 # Grep'ing the first line is not enough: some people post-process
26984 # each Makefile.in and add a new line on top of each file to say so.
26985 # So let's grep whole file.
26986 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26987 dirpart=`(dirname "$mf") 2>/dev/null ||
26988 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26989 X"$mf" : 'X\(//\)[^/]' \| \
26990 X"$mf" : 'X\(//\)$' \| \
26991 X"$mf" : 'X\(/\)' \| \
26992 . : '\(.\)' 2>/dev/null ||
26993 echo X"$mf" |
26994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26996 /^X\(\/\/\)$/{ s//\1/; q; }
26997 /^X\(\/\).*/{ s//\1/; q; }
26998 s/.*/./; q'`
26999 else
27000 continue
27001 fi
27002 # Extract the definition of DEPDIR, am__include, and am__quote
27003 # from the Makefile without running `make'.
27004 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27005 test -z "$DEPDIR" && continue
27006 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27007 test -z "am__include" && continue
27008 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27009 # When using ansi2knr, U may be empty or an underscore; expand it
27010 U=`sed -n 's/^U = //p' < "$mf"`
27011 # Find all dependency output files, they are included files with
27012 # $(DEPDIR) in their names. We invoke sed twice because it is the
27013 # simplest approach to changing $(DEPDIR) to its actual value in the
27014 # expansion.
27015 for file in `sed -n "
27016 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27017 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27018 # Make sure the directory exists.
27019 test -f "$dirpart/$file" && continue
27020 fdir=`(dirname "$file") 2>/dev/null ||
27021 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27022 X"$file" : 'X\(//\)[^/]' \| \
27023 X"$file" : 'X\(//\)$' \| \
27024 X"$file" : 'X\(/\)' \| \
27025 . : '\(.\)' 2>/dev/null ||
27026 echo X"$file" |
27027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27029 /^X\(\/\/\)$/{ s//\1/; q; }
27030 /^X\(\/\).*/{ s//\1/; q; }
27031 s/.*/./; q'`
27032 { if $as_mkdir_p; then
27033 mkdir -p $dirpart/$fdir
27034 else
27035 as_dir=$dirpart/$fdir
27036 as_dirs=
27037 while test ! -d "$as_dir"; do
27038 as_dirs="$as_dir $as_dirs"
27039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27041 X"$as_dir" : 'X\(//\)[^/]' \| \
27042 X"$as_dir" : 'X\(//\)$' \| \
27043 X"$as_dir" : 'X\(/\)' \| \
27044 . : '\(.\)' 2>/dev/null ||
27045 echo X"$as_dir" |
27046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27048 /^X\(\/\/\)$/{ s//\1/; q; }
27049 /^X\(\/\).*/{ s//\1/; q; }
27050 s/.*/./; q'`
27051 done
27052 test ! -n "$as_dirs" || mkdir $as_dirs
27053 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27054 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27055 { (exit 1); exit 1; }; }; }
27056
27057 # echo "creating $dirpart/$file"
27058 echo '# dummy' > "$dirpart/$file"
27059 done
27060 done
27061 ;;
27062 esac
27063 done
27064 _ACEOF
27065
27066 cat >>$CONFIG_STATUS <<\_ACEOF
27067
27068 { (exit 0); exit 0; }
27069 _ACEOF
27070 chmod +x $CONFIG_STATUS
27071 ac_clean_files=$ac_clean_files_save
27072
27073
27074 # configure is writing to config.log, and then calls config.status.
27075 # config.status does its own redirection, appending to config.log.
27076 # Unfortunately, on DOS this fails, as config.log is still kept open
27077 # by configure, so config.status won't be able to write to it; its
27078 # output is simply discarded. So we exec the FD to /dev/null,
27079 # effectively closing config.log, so it can be properly (re)opened and
27080 # appended to by config.status. When coming back to configure, we
27081 # need to make the FD available again.
27082 if test "$no_create" != yes; then
27083 ac_cs_success=:
27084 ac_config_status_args=
27085 test "$silent" = yes &&
27086 ac_config_status_args="$ac_config_status_args --quiet"
27087 exec 5>/dev/null
27088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27089 exec 5>>config.log
27090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27091 # would make configure fail if this is the last instruction.
27092 $ac_cs_success || { (exit 1); exit 1; }
27093 fi
27094
27095
27096 if test x"$coin_vpath_link_files" = x; then : ; else
27097 lnkcmd="$coin_link_input_cmd"
27098 if test "$lnkcmd" = cp; then
27099 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
27100 echo "$as_me: Copying data files for VPATH configuration" >&6;}
27101 else
27102 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
27103 echo "$as_me: Creating VPATH links for data files" >&6;}
27104 fi
27105 for file in $coin_vpath_link_files; do
27106 dir=`(dirname "./$file") 2>/dev/null ||
27107 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27108 X"./$file" : 'X\(//\)[^/]' \| \
27109 X"./$file" : 'X\(//\)$' \| \
27110 X"./$file" : 'X\(/\)' \| \
27111 . : '\(.\)' 2>/dev/null ||
27112 echo X"./$file" |
27113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27115 /^X\(\/\/\)$/{ s//\1/; q; }
27116 /^X\(\/\).*/{ s//\1/; q; }
27117 s/.*/./; q'`
27118 if test -d $dir; then : ; else
27119 { if $as_mkdir_p; then
27120 mkdir -p $dir
27121 else
27122 as_dir=$dir
27123 as_dirs=
27124 while test ! -d "$as_dir"; do
27125 as_dirs="$as_dir $as_dirs"
27126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27128 X"$as_dir" : 'X\(//\)[^/]' \| \
27129 X"$as_dir" : 'X\(//\)$' \| \
27130 X"$as_dir" : 'X\(/\)' \| \
27131 . : '\(.\)' 2>/dev/null ||
27132 echo X"$as_dir" |
27133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27135 /^X\(\/\/\)$/{ s//\1/; q; }
27136 /^X\(\/\).*/{ s//\1/; q; }
27137 s/.*/./; q'`
27138 done
27139 test ! -n "$as_dirs" || mkdir $as_dirs
27140 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
27141 echo "$as_me: error: cannot create directory $dir" >&2;}
27142 { (exit 1); exit 1; }; }; }
27143
27144 fi
27145 rm -f $file
27146 $lnkcmd $abs_source_dir/$file $file
27147 done
27148 fi
27149
27150 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
27151 echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
27152 if test x$coin_projectdir = xyes; then
27153 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
27154 echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
27155 else
27156 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
27157 echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
27158 fi
27159 else
27160 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
27161 echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
27162 fi
27163
27164