Testing out the PPD42 Air Quality Sensor, with an MSP430 Launchpad and graphing the data with GNUplot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23384 lines
765 KiB

5 years ago
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  253. echo_test_string="`eval $cmd`" &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. tagnames=${tagnames+${tagnames},}CXX
  349. tagnames=${tagnames+${tagnames},}F77
  350. # Name of the host.
  351. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  352. # so uname gets run too.
  353. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  354. exec 6>&1
  355. #
  356. # Initializations.
  357. #
  358. ac_default_prefix=/usr/local
  359. ac_config_libobj_dir=.
  360. cross_compiling=no
  361. subdirs=
  362. MFLAGS=
  363. MAKEFLAGS=
  364. SHELL=${CONFIG_SHELL-/bin/sh}
  365. # Maximum number of lines to put in a shell here document.
  366. # This variable seems obsolete. It should probably be removed, and
  367. # only ac_max_sed_lines should be used.
  368. : ${ac_max_here_lines=38}
  369. # Identity of this package.
  370. PACKAGE_NAME=
  371. PACKAGE_TARNAME=
  372. PACKAGE_VERSION=
  373. PACKAGE_STRING=
  374. PACKAGE_BUGREPORT=
  375. ac_unique_file="src/SerialImp.c"
  376. # Factoring default headers for most tests.
  377. ac_includes_default="\
  378. #include <stdio.h>
  379. #if HAVE_SYS_TYPES_H
  380. # include <sys/types.h>
  381. #endif
  382. #if HAVE_SYS_STAT_H
  383. # include <sys/stat.h>
  384. #endif
  385. #if STDC_HEADERS
  386. # include <stdlib.h>
  387. # include <stddef.h>
  388. #else
  389. # if HAVE_STDLIB_H
  390. # include <stdlib.h>
  391. # endif
  392. #endif
  393. #if HAVE_STRING_H
  394. # if !STDC_HEADERS && HAVE_MEMORY_H
  395. # include <memory.h>
  396. # endif
  397. # include <string.h>
  398. #endif
  399. #if HAVE_STRINGS_H
  400. # include <strings.h>
  401. #endif
  402. #if HAVE_INTTYPES_H
  403. # include <inttypes.h>
  404. #else
  405. # if HAVE_STDINT_H
  406. # include <stdint.h>
  407. # endif
  408. #endif
  409. #if HAVE_UNISTD_H
  410. # include <unistd.h>
  411. #endif"
  412. 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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh 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 WINDOWS_JAVA_INCLUDE JAVAINCLUDEDIR JAVAINCLUDE JAVANATINC CLASSPATH TOP TARGETLIB LDFLAG THREAD_FLAG OS_NAME OS_ARCH OS_VERSION JAVA_VERSION JAVA_VENDOR JAVA_HOME JAVA_LIBRARY_PATH JAVA_CLASS_PATH JAVA_CLASS_VERSION JAVAH_FIX JPATH JHOME RXTX_PATH JAVAH JAVAC JAR JAVADOC EXTENSION LIBTOOL_FIX LINK COMPILE OBJECT_EXTENSION LIB_EXTENSION GLIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
  413. ac_subst_files=''
  414. # Initialize some variables set by options.
  415. ac_init_help=
  416. ac_init_version=false
  417. # The variables have the same names as the options, with
  418. # dashes changed to underlines.
  419. cache_file=/dev/null
  420. exec_prefix=NONE
  421. no_create=
  422. no_recursion=
  423. prefix=NONE
  424. program_prefix=NONE
  425. program_suffix=NONE
  426. program_transform_name=s,x,x,
  427. silent=
  428. site=
  429. srcdir=
  430. verbose=
  431. x_includes=NONE
  432. x_libraries=NONE
  433. # Installation directory options.
  434. # These are left unexpanded so users can "make install exec_prefix=/foo"
  435. # and all the variables that are supposed to be based on exec_prefix
  436. # by default will actually change.
  437. # Use braces instead of parens because sh, perl, etc. also accept them.
  438. bindir='${exec_prefix}/bin'
  439. sbindir='${exec_prefix}/sbin'
  440. libexecdir='${exec_prefix}/libexec'
  441. datadir='${prefix}/share'
  442. sysconfdir='${prefix}/etc'
  443. sharedstatedir='${prefix}/com'
  444. localstatedir='${prefix}/var'
  445. libdir='${exec_prefix}/lib'
  446. includedir='${prefix}/include'
  447. oldincludedir='/usr/include'
  448. infodir='${prefix}/info'
  449. mandir='${prefix}/man'
  450. ac_prev=
  451. for ac_option
  452. do
  453. # If the previous option needs an argument, assign it.
  454. if test -n "$ac_prev"; then
  455. eval "$ac_prev=\$ac_option"
  456. ac_prev=
  457. continue
  458. fi
  459. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  460. # Accept the important Cygnus configure options, so we can diagnose typos.
  461. case $ac_option in
  462. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  463. ac_prev=bindir ;;
  464. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  465. bindir=$ac_optarg ;;
  466. -build | --build | --buil | --bui | --bu)
  467. ac_prev=build_alias ;;
  468. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  469. build_alias=$ac_optarg ;;
  470. -cache-file | --cache-file | --cache-fil | --cache-fi \
  471. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  472. ac_prev=cache_file ;;
  473. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  474. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  475. cache_file=$ac_optarg ;;
  476. --config-cache | -C)
  477. cache_file=config.cache ;;
  478. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  479. ac_prev=datadir ;;
  480. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  481. | --da=*)
  482. datadir=$ac_optarg ;;
  483. -disable-* | --disable-*)
  484. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  485. # Reject names that are not valid shell variable names.
  486. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  487. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  488. { (exit 1); exit 1; }; }
  489. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  490. eval "enable_$ac_feature=no" ;;
  491. -enable-* | --enable-*)
  492. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  493. # Reject names that are not valid shell variable names.
  494. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  495. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  496. { (exit 1); exit 1; }; }
  497. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  498. case $ac_option in
  499. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  500. *) ac_optarg=yes ;;
  501. esac
  502. eval "enable_$ac_feature='$ac_optarg'" ;;
  503. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  504. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  505. | --exec | --exe | --ex)
  506. ac_prev=exec_prefix ;;
  507. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  508. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  509. | --exec=* | --exe=* | --ex=*)
  510. exec_prefix=$ac_optarg ;;
  511. -gas | --gas | --ga | --g)
  512. # Obsolete; use --with-gas.
  513. with_gas=yes ;;
  514. -help | --help | --hel | --he | -h)
  515. ac_init_help=long ;;
  516. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  517. ac_init_help=recursive ;;
  518. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  519. ac_init_help=short ;;
  520. -host | --host | --hos | --ho)
  521. ac_prev=host_alias ;;
  522. -host=* | --host=* | --hos=* | --ho=*)
  523. host_alias=$ac_optarg ;;
  524. -includedir | --includedir | --includedi | --included | --include \
  525. | --includ | --inclu | --incl | --inc)
  526. ac_prev=includedir ;;
  527. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  528. | --includ=* | --inclu=* | --incl=* | --inc=*)
  529. includedir=$ac_optarg ;;
  530. -infodir | --infodir | --infodi | --infod | --info | --inf)
  531. ac_prev=infodir ;;
  532. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  533. infodir=$ac_optarg ;;
  534. -libdir | --libdir | --libdi | --libd)
  535. ac_prev=libdir ;;
  536. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  537. libdir=$ac_optarg ;;
  538. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  539. | --libexe | --libex | --libe)
  540. ac_prev=libexecdir ;;
  541. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  542. | --libexe=* | --libex=* | --libe=*)
  543. libexecdir=$ac_optarg ;;
  544. -localstatedir | --localstatedir | --localstatedi | --localstated \
  545. | --localstate | --localstat | --localsta | --localst \
  546. | --locals | --local | --loca | --loc | --lo)
  547. ac_prev=localstatedir ;;
  548. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  549. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  550. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  551. localstatedir=$ac_optarg ;;
  552. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  553. ac_prev=mandir ;;
  554. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  555. mandir=$ac_optarg ;;
  556. -nfp | --nfp | --nf)
  557. # Obsolete; use --without-fp.
  558. with_fp=no ;;
  559. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  560. | --no-cr | --no-c | -n)
  561. no_create=yes ;;
  562. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  563. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  564. no_recursion=yes ;;
  565. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  566. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  567. | --oldin | --oldi | --old | --ol | --o)
  568. ac_prev=oldincludedir ;;
  569. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  570. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  571. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  572. oldincludedir=$ac_optarg ;;
  573. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  574. ac_prev=prefix ;;
  575. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  576. prefix=$ac_optarg ;;
  577. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  578. | --program-pre | --program-pr | --program-p)
  579. ac_prev=program_prefix ;;
  580. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  581. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  582. program_prefix=$ac_optarg ;;
  583. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  584. | --program-suf | --program-su | --program-s)
  585. ac_prev=program_suffix ;;
  586. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  587. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  588. program_suffix=$ac_optarg ;;
  589. -program-transform-name | --program-transform-name \
  590. | --program-transform-nam | --program-transform-na \
  591. | --program-transform-n | --program-transform- \
  592. | --program-transform | --program-transfor \
  593. | --program-transfo | --program-transf \
  594. | --program-trans | --program-tran \
  595. | --progr-tra | --program-tr | --program-t)
  596. ac_prev=program_transform_name ;;
  597. -program-transform-name=* | --program-transform-name=* \
  598. | --program-transform-nam=* | --program-transform-na=* \
  599. | --program-transform-n=* | --program-transform-=* \
  600. | --program-transform=* | --program-transfor=* \
  601. | --program-transfo=* | --program-transf=* \
  602. | --program-trans=* | --program-tran=* \
  603. | --progr-tra=* | --program-tr=* | --program-t=*)
  604. program_transform_name=$ac_optarg ;;
  605. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  606. | -silent | --silent | --silen | --sile | --sil)
  607. silent=yes ;;
  608. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  609. ac_prev=sbindir ;;
  610. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  611. | --sbi=* | --sb=*)
  612. sbindir=$ac_optarg ;;
  613. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  614. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  615. | --sharedst | --shareds | --shared | --share | --shar \
  616. | --sha | --sh)
  617. ac_prev=sharedstatedir ;;
  618. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  619. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  620. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  621. | --sha=* | --sh=*)
  622. sharedstatedir=$ac_optarg ;;
  623. -site | --site | --sit)
  624. ac_prev=site ;;
  625. -site=* | --site=* | --sit=*)
  626. site=$ac_optarg ;;
  627. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  628. ac_prev=srcdir ;;
  629. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  630. srcdir=$ac_optarg ;;
  631. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  632. | --syscon | --sysco | --sysc | --sys | --sy)
  633. ac_prev=sysconfdir ;;
  634. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  635. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  636. sysconfdir=$ac_optarg ;;
  637. -target | --target | --targe | --targ | --tar | --ta | --t)
  638. ac_prev=target_alias ;;
  639. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  640. target_alias=$ac_optarg ;;
  641. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  642. verbose=yes ;;
  643. -version | --version | --versio | --versi | --vers | -V)
  644. ac_init_version=: ;;
  645. -with-* | --with-*)
  646. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  647. # Reject names that are not valid shell variable names.
  648. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  649. { echo "$as_me: error: invalid package name: $ac_package" >&2
  650. { (exit 1); exit 1; }; }
  651. ac_package=`echo $ac_package| sed 's/-/_/g'`
  652. case $ac_option in
  653. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  654. *) ac_optarg=yes ;;
  655. esac
  656. eval "with_$ac_package='$ac_optarg'" ;;
  657. -without-* | --without-*)
  658. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  659. # Reject names that are not valid shell variable names.
  660. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  661. { echo "$as_me: error: invalid package name: $ac_package" >&2
  662. { (exit 1); exit 1; }; }
  663. ac_package=`echo $ac_package | sed 's/-/_/g'`
  664. eval "with_$ac_package=no" ;;
  665. --x)
  666. # Obsolete; use --with-x.
  667. with_x=yes ;;
  668. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  669. | --x-incl | --x-inc | --x-in | --x-i)
  670. ac_prev=x_includes ;;
  671. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  672. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  673. x_includes=$ac_optarg ;;
  674. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  675. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  676. ac_prev=x_libraries ;;
  677. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  678. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  679. x_libraries=$ac_optarg ;;
  680. -*) { echo "$as_me: error: unrecognized option: $ac_option
  681. Try \`$0 --help' for more information." >&2
  682. { (exit 1); exit 1; }; }
  683. ;;
  684. *=*)
  685. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  686. # Reject names that are not valid shell variable names.
  687. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  688. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  689. { (exit 1); exit 1; }; }
  690. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  691. eval "$ac_envvar='$ac_optarg'"
  692. export $ac_envvar ;;
  693. *)
  694. # FIXME: should be removed in autoconf 3.0.
  695. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  696. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  697. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  698. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  699. ;;
  700. esac
  701. done
  702. if test -n "$ac_prev"; then
  703. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  704. { echo "$as_me: error: missing argument to $ac_option" >&2
  705. { (exit 1); exit 1; }; }
  706. fi
  707. # Be sure to have absolute paths.
  708. for ac_var in exec_prefix prefix
  709. do
  710. eval ac_val=$`echo $ac_var`
  711. case $ac_val in
  712. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  713. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  714. { (exit 1); exit 1; }; };;
  715. esac
  716. done
  717. # Be sure to have absolute paths.
  718. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  719. localstatedir libdir includedir oldincludedir infodir mandir
  720. do
  721. eval ac_val=$`echo $ac_var`
  722. case $ac_val in
  723. [\\/$]* | ?:[\\/]* ) ;;
  724. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  725. { (exit 1); exit 1; }; };;
  726. esac
  727. done
  728. # There might be people who depend on the old broken behavior: `$host'
  729. # used to hold the argument of --host etc.
  730. # FIXME: To remove some day.
  731. build=$build_alias
  732. host=$host_alias
  733. target=$target_alias
  734. # FIXME: To remove some day.
  735. if test "x$host_alias" != x; then
  736. if test "x$build_alias" = x; then
  737. cross_compiling=maybe
  738. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  739. If a cross compiler is detected then cross compile mode will be used." >&2
  740. elif test "x$build_alias" != "x$host_alias"; then
  741. cross_compiling=yes
  742. fi
  743. fi
  744. ac_tool_prefix=
  745. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  746. test "$silent" = yes && exec 6>/dev/null
  747. # Find the source files, if location was not specified.
  748. if test -z "$srcdir"; then
  749. ac_srcdir_defaulted=yes
  750. # Try the directory containing this script, then its parent.
  751. ac_confdir=`(dirname "$0") 2>/dev/null ||
  752. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  753. X"$0" : 'X\(//\)[^/]' \| \
  754. X"$0" : 'X\(//\)$' \| \
  755. X"$0" : 'X\(/\)' \| \
  756. . : '\(.\)' 2>/dev/null ||
  757. echo X"$0" |
  758. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  759. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  760. /^X\(\/\/\)$/{ s//\1/; q; }
  761. /^X\(\/\).*/{ s//\1/; q; }
  762. s/.*/./; q'`
  763. srcdir=$ac_confdir
  764. if test ! -r $srcdir/$ac_unique_file; then
  765. srcdir=..
  766. fi
  767. else
  768. ac_srcdir_defaulted=no
  769. fi
  770. if test ! -r $srcdir/$ac_unique_file; then
  771. if test "$ac_srcdir_defaulted" = yes; then
  772. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  773. { (exit 1); exit 1; }; }
  774. else
  775. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  776. { (exit 1); exit 1; }; }
  777. fi
  778. fi
  779. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  780. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  781. { (exit 1); exit 1; }; }
  782. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  783. ac_env_build_alias_set=${build_alias+set}
  784. ac_env_build_alias_value=$build_alias
  785. ac_cv_env_build_alias_set=${build_alias+set}
  786. ac_cv_env_build_alias_value=$build_alias
  787. ac_env_host_alias_set=${host_alias+set}
  788. ac_env_host_alias_value=$host_alias
  789. ac_cv_env_host_alias_set=${host_alias+set}
  790. ac_cv_env_host_alias_value=$host_alias
  791. ac_env_target_alias_set=${target_alias+set}
  792. ac_env_target_alias_value=$target_alias
  793. ac_cv_env_target_alias_set=${target_alias+set}
  794. ac_cv_env_target_alias_value=$target_alias
  795. ac_env_CC_set=${CC+set}
  796. ac_env_CC_value=$CC
  797. ac_cv_env_CC_set=${CC+set}
  798. ac_cv_env_CC_value=$CC
  799. ac_env_CFLAGS_set=${CFLAGS+set}
  800. ac_env_CFLAGS_value=$CFLAGS
  801. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  802. ac_cv_env_CFLAGS_value=$CFLAGS
  803. ac_env_LDFLAGS_set=${LDFLAGS+set}
  804. ac_env_LDFLAGS_value=$LDFLAGS
  805. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_cv_env_LDFLAGS_value=$LDFLAGS
  807. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  808. ac_env_CPPFLAGS_value=$CPPFLAGS
  809. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_env_CPP_set=${CPP+set}
  812. ac_env_CPP_value=$CPP
  813. ac_cv_env_CPP_set=${CPP+set}
  814. ac_cv_env_CPP_value=$CPP
  815. ac_env_CXX_set=${CXX+set}
  816. ac_env_CXX_value=$CXX
  817. ac_cv_env_CXX_set=${CXX+set}
  818. ac_cv_env_CXX_value=$CXX
  819. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  820. ac_env_CXXFLAGS_value=$CXXFLAGS
  821. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  822. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  823. ac_env_CXXCPP_set=${CXXCPP+set}
  824. ac_env_CXXCPP_value=$CXXCPP
  825. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  826. ac_cv_env_CXXCPP_value=$CXXCPP
  827. ac_env_F77_set=${F77+set}
  828. ac_env_F77_value=$F77
  829. ac_cv_env_F77_set=${F77+set}
  830. ac_cv_env_F77_value=$F77
  831. ac_env_FFLAGS_set=${FFLAGS+set}
  832. ac_env_FFLAGS_value=$FFLAGS
  833. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  834. ac_cv_env_FFLAGS_value=$FFLAGS
  835. #
  836. # Report the --help message.
  837. #
  838. if test "$ac_init_help" = "long"; then
  839. # Omit some internal or obsolete options to make the list less imposing.
  840. # This message is too long to be a string in the A/UX 3.1 sh.
  841. cat <<_ACEOF
  842. \`configure' configures this package to adapt to many kinds of systems.
  843. Usage: $0 [OPTION]... [VAR=VALUE]...
  844. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  845. VAR=VALUE. See below for descriptions of some of the useful variables.
  846. Defaults for the options are specified in brackets.
  847. Configuration:
  848. -h, --help display this help and exit
  849. --help=short display options specific to this package
  850. --help=recursive display the short help of all the included packages
  851. -V, --version display version information and exit
  852. -q, --quiet, --silent do not print \`checking...' messages
  853. --cache-file=FILE cache test results in FILE [disabled]
  854. -C, --config-cache alias for \`--cache-file=config.cache'
  855. -n, --no-create do not create output files
  856. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  857. _ACEOF
  858. cat <<_ACEOF
  859. Installation directories:
  860. --prefix=PREFIX install architecture-independent files in PREFIX
  861. [$ac_default_prefix]
  862. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  863. [PREFIX]
  864. By default, \`make install' will install all the files in
  865. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  866. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  867. for instance \`--prefix=\$HOME'.
  868. For better control, use the options below.
  869. Fine tuning of the installation directories:
  870. --bindir=DIR user executables [EPREFIX/bin]
  871. --sbindir=DIR system admin executables [EPREFIX/sbin]
  872. --libexecdir=DIR program executables [EPREFIX/libexec]
  873. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  874. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  875. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  876. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  877. --libdir=DIR object code libraries [EPREFIX/lib]
  878. --includedir=DIR C header files [PREFIX/include]
  879. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  880. --infodir=DIR info documentation [PREFIX/info]
  881. --mandir=DIR man documentation [PREFIX/man]
  882. _ACEOF
  883. cat <<\_ACEOF
  884. Program names:
  885. --program-prefix=PREFIX prepend PREFIX to installed program names
  886. --program-suffix=SUFFIX append SUFFIX to installed program names
  887. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  888. System types:
  889. --build=BUILD configure for building on BUILD [guessed]
  890. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  891. --target=TARGET configure for building compilers for TARGET [HOST]
  892. _ACEOF
  893. fi
  894. if test -n "$ac_init_help"; then
  895. cat <<\_ACEOF
  896. Optional Features:
  897. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  898. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  899. --enable-static[=PKGS]
  900. build static libraries [default=no]
  901. --enable-shared[=PKGS]
  902. build shared libraries [default=yes]
  903. --enable-fast-install[=PKGS]
  904. optimize for fast installation [default=yes]
  905. --disable-libtool-lock avoid locking (might break parallel builds)
  906. --disable-dependency-tracking speeds up one-time build
  907. --enable-dependency-tracking do not reject slow dependency extractors
  908. --enable-maintainer-mode enable make rules and dependencies not useful
  909. (and sometimes confusing) to the casual installer
  910. --enable-PRINTER PRINTER support (experimental) default=yes
  911. --disable-lockfiles disable lock files (experimental) default=no
  912. --enable-liblock=x enable liblock default=no
  913. --enable-lockfile_server Enable interaction with a lock file server default=no
  914. --enable-DEBUG Print debugging info from SerialImp.c default=no
  915. Optional Packages:
  916. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  917. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  918. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  919. --with-pic try to use only PIC/non-PIC objects [default=use
  920. both]
  921. --with-tags[=TAGS]
  922. include additional configurations [automatic]
  923. Some influential environment variables:
  924. CC C compiler command
  925. CFLAGS C compiler flags
  926. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  927. nonstandard directory <lib dir>
  928. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  929. headers in a nonstandard directory <include dir>
  930. CPP C preprocessor
  931. CXX C++ compiler command
  932. CXXFLAGS C++ compiler flags
  933. CXXCPP C++ preprocessor
  934. F77 Fortran 77 compiler command
  935. FFLAGS Fortran 77 compiler flags
  936. Use these variables to override the choices made by `configure' or to help
  937. it to find libraries and programs with nonstandard names/locations.
  938. _ACEOF
  939. fi
  940. if test "$ac_init_help" = "recursive"; then
  941. # If there are subdirs, report their specific --help.
  942. ac_popdir=`pwd`
  943. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  944. test -d $ac_dir || continue
  945. ac_builddir=.
  946. if test "$ac_dir" != .; then
  947. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  948. # A "../" for each directory in $ac_dir_suffix.
  949. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  950. else
  951. ac_dir_suffix= ac_top_builddir=
  952. fi
  953. case $srcdir in
  954. .) # No --srcdir option. We are building in place.
  955. ac_srcdir=.
  956. if test -z "$ac_top_builddir"; then
  957. ac_top_srcdir=.
  958. else
  959. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  960. fi ;;
  961. [\\/]* | ?:[\\/]* ) # Absolute path.
  962. ac_srcdir=$srcdir$ac_dir_suffix;
  963. ac_top_srcdir=$srcdir ;;
  964. *) # Relative path.
  965. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  966. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  967. esac
  968. # Do not use `cd foo && pwd` to compute absolute paths, because
  969. # the directories may not exist.
  970. case `pwd` in
  971. .) ac_abs_builddir="$ac_dir";;
  972. *)
  973. case "$ac_dir" in
  974. .) ac_abs_builddir=`pwd`;;
  975. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  976. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  977. esac;;
  978. esac
  979. case $ac_abs_builddir in
  980. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  981. *)
  982. case ${ac_top_builddir}. in
  983. .) ac_abs_top_builddir=$ac_abs_builddir;;
  984. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  985. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  986. esac;;
  987. esac
  988. case $ac_abs_builddir in
  989. .) ac_abs_srcdir=$ac_srcdir;;
  990. *)
  991. case $ac_srcdir in
  992. .) ac_abs_srcdir=$ac_abs_builddir;;
  993. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  994. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  995. esac;;
  996. esac
  997. case $ac_abs_builddir in
  998. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  999. *)
  1000. case $ac_top_srcdir in
  1001. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1002. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1003. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1004. esac;;
  1005. esac
  1006. cd $ac_dir
  1007. # Check for guested configure; otherwise get Cygnus style configure.
  1008. if test -f $ac_srcdir/configure.gnu; then
  1009. echo
  1010. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1011. elif test -f $ac_srcdir/configure; then
  1012. echo
  1013. $SHELL $ac_srcdir/configure --help=recursive
  1014. elif test -f $ac_srcdir/configure.ac ||
  1015. test -f $ac_srcdir/configure.in; then
  1016. echo
  1017. $ac_configure --help
  1018. else
  1019. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1020. fi
  1021. cd $ac_popdir
  1022. done
  1023. fi
  1024. test -n "$ac_init_help" && exit 0
  1025. if $ac_init_version; then
  1026. cat <<\_ACEOF
  1027. Copyright (C) 2003 Free Software Foundation, Inc.
  1028. This configure script is free software; the Free Software Foundation
  1029. gives unlimited permission to copy, distribute and modify it.
  1030. _ACEOF
  1031. exit 0
  1032. fi
  1033. exec 5>config.log
  1034. cat >&5 <<_ACEOF
  1035. This file contains any messages produced by compilers while
  1036. running configure, to aid debugging if configure makes a mistake.
  1037. It was created by $as_me, which was
  1038. generated by GNU Autoconf 2.59. Invocation command line was
  1039. $ $0 $@
  1040. _ACEOF
  1041. {
  1042. cat <<_ASUNAME
  1043. ## --------- ##
  1044. ## Platform. ##
  1045. ## --------- ##
  1046. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1047. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1048. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1049. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1050. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1051. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1052. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1053. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1054. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1055. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1056. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1057. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1058. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1059. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1060. _ASUNAME
  1061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1062. for as_dir in $PATH
  1063. do
  1064. IFS=$as_save_IFS
  1065. test -z "$as_dir" && as_dir=.
  1066. echo "PATH: $as_dir"
  1067. done
  1068. } >&5
  1069. cat >&5 <<_ACEOF
  1070. ## ----------- ##
  1071. ## Core tests. ##
  1072. ## ----------- ##
  1073. _ACEOF
  1074. # Keep a trace of the command line.
  1075. # Strip out --no-create and --no-recursion so they do not pile up.
  1076. # Strip out --silent because we don't want to record it for future runs.
  1077. # Also quote any args containing shell meta-characters.
  1078. # Make two passes to allow for proper duplicate-argument suppression.
  1079. ac_configure_args=
  1080. ac_configure_args0=
  1081. ac_configure_args1=
  1082. ac_sep=
  1083. ac_must_keep_next=false
  1084. for ac_pass in 1 2
  1085. do
  1086. for ac_arg
  1087. do
  1088. case $ac_arg in
  1089. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1090. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1091. | -silent | --silent | --silen | --sile | --sil)
  1092. continue ;;
  1093. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1094. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1095. esac
  1096. case $ac_pass in
  1097. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1098. 2)
  1099. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1100. if test $ac_must_keep_next = true; then
  1101. ac_must_keep_next=false # Got value, back to normal.
  1102. else
  1103. case $ac_arg in
  1104. *=* | --config-cache | -C | -disable-* | --disable-* \
  1105. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1106. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1107. | -with-* | --with-* | -without-* | --without-* | --x)
  1108. case "$ac_configure_args0 " in
  1109. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1110. esac
  1111. ;;
  1112. -* ) ac_must_keep_next=true ;;
  1113. esac
  1114. fi
  1115. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1116. # Get rid of the leading space.
  1117. ac_sep=" "
  1118. ;;
  1119. esac
  1120. done
  1121. done
  1122. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1123. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1124. # When interrupted or exit'd, cleanup temporary files, and complete
  1125. # config.log. We remove comments because anyway the quotes in there
  1126. # would cause problems or look ugly.
  1127. # WARNING: Be sure not to use single quotes in there, as some shells,
  1128. # such as our DU 5.0 friend, will then `close' the trap.
  1129. trap 'exit_status=$?
  1130. # Save into config.log some information that might help in debugging.
  1131. {
  1132. echo
  1133. cat <<\_ASBOX
  1134. ## ---------------- ##
  1135. ## Cache variables. ##
  1136. ## ---------------- ##
  1137. _ASBOX
  1138. echo
  1139. # The following way of writing the cache mishandles newlines in values,
  1140. {
  1141. (set) 2>&1 |
  1142. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1143. *ac_space=\ *)
  1144. sed -n \
  1145. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1147. ;;
  1148. *)
  1149. sed -n \
  1150. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1151. ;;
  1152. esac;
  1153. }
  1154. echo
  1155. cat <<\_ASBOX
  1156. ## ----------------- ##
  1157. ## Output variables. ##
  1158. ## ----------------- ##
  1159. _ASBOX
  1160. echo
  1161. for ac_var in $ac_subst_vars
  1162. do
  1163. eval ac_val=$`echo $ac_var`
  1164. echo "$ac_var='"'"'$ac_val'"'"'"
  1165. done | sort
  1166. echo
  1167. if test -n "$ac_subst_files"; then
  1168. cat <<\_ASBOX
  1169. ## ------------- ##
  1170. ## Output files. ##
  1171. ## ------------- ##
  1172. _ASBOX
  1173. echo
  1174. for ac_var in $ac_subst_files
  1175. do
  1176. eval ac_val=$`echo $ac_var`
  1177. echo "$ac_var='"'"'$ac_val'"'"'"
  1178. done | sort
  1179. echo
  1180. fi
  1181. if test -s confdefs.h; then
  1182. cat <<\_ASBOX
  1183. ## ----------- ##
  1184. ## confdefs.h. ##
  1185. ## ----------- ##
  1186. _ASBOX
  1187. echo
  1188. sed "/^$/d" confdefs.h | sort
  1189. echo
  1190. fi
  1191. test "$ac_signal" != 0 &&
  1192. echo "$as_me: caught signal $ac_signal"
  1193. echo "$as_me: exit $exit_status"
  1194. } >&5
  1195. rm -f core *.core &&
  1196. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1197. exit $exit_status
  1198. ' 0
  1199. for ac_signal in 1 2 13 15; do
  1200. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1201. done
  1202. ac_signal=0
  1203. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1204. rm -rf conftest* confdefs.h
  1205. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1206. echo >confdefs.h
  1207. # Predefined preprocessor variables.
  1208. cat >>confdefs.h <<_ACEOF
  1209. #define PACKAGE_NAME "$PACKAGE_NAME"
  1210. _ACEOF
  1211. cat >>confdefs.h <<_ACEOF
  1212. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1213. _ACEOF
  1214. cat >>confdefs.h <<_ACEOF
  1215. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1216. _ACEOF
  1217. cat >>confdefs.h <<_ACEOF
  1218. #define PACKAGE_STRING "$PACKAGE_STRING"
  1219. _ACEOF
  1220. cat >>confdefs.h <<_ACEOF
  1221. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1222. _ACEOF
  1223. # Let the site file select an alternate cache file if it wants to.
  1224. # Prefer explicitly selected file to automatically selected ones.
  1225. if test -z "$CONFIG_SITE"; then
  1226. if test "x$prefix" != xNONE; then
  1227. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1228. else
  1229. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1230. fi
  1231. fi
  1232. for ac_site_file in $CONFIG_SITE; do
  1233. if test -r "$ac_site_file"; then
  1234. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1235. echo "$as_me: loading site script $ac_site_file" >&6;}
  1236. sed 's/^/| /' "$ac_site_file" >&5
  1237. . "$ac_site_file"
  1238. fi
  1239. done
  1240. if test -r "$cache_file"; then
  1241. # Some versions of bash will fail to source /dev/null (special
  1242. # files actually), so we avoid doing that.
  1243. if test -f "$cache_file"; then
  1244. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1245. echo "$as_me: loading cache $cache_file" >&6;}
  1246. case $cache_file in
  1247. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1248. *) . ./$cache_file;;
  1249. esac
  1250. fi
  1251. else
  1252. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1253. echo "$as_me: creating cache $cache_file" >&6;}
  1254. >$cache_file
  1255. fi
  1256. # Check that the precious variables saved in the cache have kept the same
  1257. # value.
  1258. ac_cache_corrupted=false
  1259. for ac_var in `(set) 2>&1 |
  1260. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1261. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1262. eval ac_new_set=\$ac_env_${ac_var}_set
  1263. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1264. eval ac_new_val="\$ac_env_${ac_var}_value"
  1265. case $ac_old_set,$ac_new_set in
  1266. set,)
  1267. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1268. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1269. ac_cache_corrupted=: ;;
  1270. ,set)
  1271. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1272. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1273. ac_cache_corrupted=: ;;
  1274. ,);;
  1275. *)
  1276. if test "x$ac_old_val" != "x$ac_new_val"; then
  1277. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1278. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1279. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1280. echo "$as_me: former value: $ac_old_val" >&2;}
  1281. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1282. echo "$as_me: current value: $ac_new_val" >&2;}
  1283. ac_cache_corrupted=:
  1284. fi;;
  1285. esac
  1286. # Pass precious variables to config.status.
  1287. if test "$ac_new_set" = set; then
  1288. case $ac_new_val in
  1289. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1290. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1291. *) ac_arg=$ac_var=$ac_new_val ;;
  1292. esac
  1293. case " $ac_configure_args " in
  1294. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1295. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1296. esac
  1297. fi
  1298. done
  1299. if $ac_cache_corrupted; then
  1300. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1301. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1302. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1303. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1304. { (exit 1); exit 1; }; }
  1305. fi
  1306. ac_ext=c
  1307. ac_cpp='$CPP $CPPFLAGS'
  1308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1311. ac_config_headers="$ac_config_headers config.h"
  1312. ac_aux_dir=
  1313. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1314. if test -f $ac_dir/install-sh; then
  1315. ac_aux_dir=$ac_dir
  1316. ac_install_sh="$ac_aux_dir/install-sh -c"
  1317. break
  1318. elif test -f $ac_dir/install.sh; then
  1319. ac_aux_dir=$ac_dir
  1320. ac_install_sh="$ac_aux_dir/install.sh -c"
  1321. break
  1322. elif test -f $ac_dir/shtool; then
  1323. ac_aux_dir=$ac_dir
  1324. ac_install_sh="$ac_aux_dir/shtool install -c"
  1325. break
  1326. fi
  1327. done
  1328. if test -z "$ac_aux_dir"; then
  1329. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1330. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1331. { (exit 1); exit 1; }; }
  1332. fi
  1333. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1334. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1335. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1336. # Make sure we can run config.sub.
  1337. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1338. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1339. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1340. { (exit 1); exit 1; }; }
  1341. echo "$as_me:$LINENO: checking build system type" >&5
  1342. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1343. if test "${ac_cv_build+set}" = set; then
  1344. echo $ECHO_N "(cached) $ECHO_C" >&6
  1345. else
  1346. ac_cv_build_alias=$build_alias
  1347. test -z "$ac_cv_build_alias" &&
  1348. ac_cv_build_alias=`$ac_config_guess`
  1349. test -z "$ac_cv_build_alias" &&
  1350. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1351. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1352. { (exit 1); exit 1; }; }
  1353. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1354. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1355. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1356. { (exit 1); exit 1; }; }
  1357. fi
  1358. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1359. echo "${ECHO_T}$ac_cv_build" >&6
  1360. build=$ac_cv_build
  1361. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1362. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1363. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1364. echo "$as_me:$LINENO: checking host system type" >&5
  1365. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1366. if test "${ac_cv_host+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. ac_cv_host_alias=$host_alias
  1370. test -z "$ac_cv_host_alias" &&
  1371. ac_cv_host_alias=$ac_cv_build_alias
  1372. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1373. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1374. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1375. { (exit 1); exit 1; }; }
  1376. fi
  1377. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1378. echo "${ECHO_T}$ac_cv_host" >&6
  1379. host=$ac_cv_host
  1380. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1381. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1382. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1383. echo "$as_me:$LINENO: checking target system type" >&5
  1384. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1385. if test "${ac_cv_target+set}" = set; then
  1386. echo $ECHO_N "(cached) $ECHO_C" >&6
  1387. else
  1388. ac_cv_target_alias=$target_alias
  1389. test "x$ac_cv_target_alias" = "x" &&
  1390. ac_cv_target_alias=$ac_cv_host_alias
  1391. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1392. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1393. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1394. { (exit 1); exit 1; }; }
  1395. fi
  1396. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1397. echo "${ECHO_T}$ac_cv_target" >&6
  1398. target=$ac_cv_target
  1399. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1400. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1401. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1402. # The aliases save the names the user supplied, while $host etc.
  1403. # will get canonicalized.
  1404. test -n "$target_alias" &&
  1405. test "$program_prefix$program_suffix$program_transform_name" = \
  1406. NONENONEs,x,x, &&
  1407. program_prefix=${target_alias}-
  1408. { echo "$as_me:$LINENO: WARNING: Trying libtool. If the following fails install libtool" >&5
  1409. echo "$as_me: WARNING: Trying libtool. If the following fails install libtool" >&2;}
  1410. ac_ext=c
  1411. ac_cpp='$CPP $CPPFLAGS'
  1412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1415. if test -n "$ac_tool_prefix"; then
  1416. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1417. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1418. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1419. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1420. if test "${ac_cv_prog_CC+set}" = set; then
  1421. echo $ECHO_N "(cached) $ECHO_C" >&6
  1422. else
  1423. if test -n "$CC"; then
  1424. ac_cv_prog_CC="$CC" # Let the user override the test.
  1425. else
  1426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1427. for as_dir in $PATH
  1428. do
  1429. IFS=$as_save_IFS
  1430. test -z "$as_dir" && as_dir=.
  1431. for ac_exec_ext in '' $ac_executable_extensions; do
  1432. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1433. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1434. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1435. break 2
  1436. fi
  1437. done
  1438. done
  1439. fi
  1440. fi
  1441. CC=$ac_cv_prog_CC
  1442. if test -n "$CC"; then
  1443. echo "$as_me:$LINENO: result: $CC" >&5
  1444. echo "${ECHO_T}$CC" >&6
  1445. else
  1446. echo "$as_me:$LINENO: result: no" >&5
  1447. echo "${ECHO_T}no" >&6
  1448. fi
  1449. fi
  1450. if test -z "$ac_cv_prog_CC"; then
  1451. ac_ct_CC=$CC
  1452. # Extract the first word of "gcc", so it can be a program name with args.
  1453. set dummy gcc; ac_word=$2
  1454. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1455. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1456. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1457. echo $ECHO_N "(cached) $ECHO_C" >&6
  1458. else
  1459. if test -n "$ac_ct_CC"; then
  1460. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1461. else
  1462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1463. for as_dir in $PATH
  1464. do
  1465. IFS=$as_save_IFS
  1466. test -z "$as_dir" && as_dir=.
  1467. for ac_exec_ext in '' $ac_executable_extensions; do
  1468. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1469. ac_cv_prog_ac_ct_CC="gcc"
  1470. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1471. break 2
  1472. fi
  1473. done
  1474. done
  1475. fi
  1476. fi
  1477. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1478. if test -n "$ac_ct_CC"; then
  1479. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1480. echo "${ECHO_T}$ac_ct_CC" >&6
  1481. else
  1482. echo "$as_me:$LINENO: result: no" >&5
  1483. echo "${ECHO_T}no" >&6
  1484. fi
  1485. CC=$ac_ct_CC
  1486. else
  1487. CC="$ac_cv_prog_CC"
  1488. fi
  1489. if test -z "$CC"; then
  1490. if test -n "$ac_tool_prefix"; then
  1491. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1492. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1493. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1494. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1495. if test "${ac_cv_prog_CC+set}" = set; then
  1496. echo $ECHO_N "(cached) $ECHO_C" >&6
  1497. else
  1498. if test -n "$CC"; then
  1499. ac_cv_prog_CC="$CC" # Let the user override the test.
  1500. else
  1501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1502. for as_dir in $PATH
  1503. do
  1504. IFS=$as_save_IFS
  1505. test -z "$as_dir" && as_dir=.
  1506. for ac_exec_ext in '' $ac_executable_extensions; do
  1507. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1508. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1509. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1510. break 2
  1511. fi
  1512. done
  1513. done
  1514. fi
  1515. fi
  1516. CC=$ac_cv_prog_CC
  1517. if test -n "$CC"; then
  1518. echo "$as_me:$LINENO: result: $CC" >&5
  1519. echo "${ECHO_T}$CC" >&6
  1520. else
  1521. echo "$as_me:$LINENO: result: no" >&5
  1522. echo "${ECHO_T}no" >&6
  1523. fi
  1524. fi
  1525. if test -z "$ac_cv_prog_CC"; then
  1526. ac_ct_CC=$CC
  1527. # Extract the first word of "cc", so it can be a program name with args.
  1528. set dummy cc; ac_word=$2
  1529. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1530. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1531. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1532. echo $ECHO_N "(cached) $ECHO_C" >&6
  1533. else
  1534. if test -n "$ac_ct_CC"; then
  1535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1536. else
  1537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1538. for as_dir in $PATH
  1539. do
  1540. IFS=$as_save_IFS
  1541. test -z "$as_dir" && as_dir=.
  1542. for ac_exec_ext in '' $ac_executable_extensions; do
  1543. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1544. ac_cv_prog_ac_ct_CC="cc"
  1545. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1546. break 2
  1547. fi
  1548. done
  1549. done
  1550. fi
  1551. fi
  1552. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1553. if test -n "$ac_ct_CC"; then
  1554. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1555. echo "${ECHO_T}$ac_ct_CC" >&6
  1556. else
  1557. echo "$as_me:$LINENO: result: no" >&5
  1558. echo "${ECHO_T}no" >&6
  1559. fi
  1560. CC=$ac_ct_CC
  1561. else
  1562. CC="$ac_cv_prog_CC"
  1563. fi
  1564. fi
  1565. if test -z "$CC"; then
  1566. # Extract the first word of "cc", so it can be a program name with args.
  1567. set dummy cc; ac_word=$2
  1568. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1569. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1570. if test "${ac_cv_prog_CC+set}" = set; then
  1571. echo $ECHO_N "(cached) $ECHO_C" >&6
  1572. else
  1573. if test -n "$CC"; then
  1574. ac_cv_prog_CC="$CC" # Let the user override the test.
  1575. else
  1576. ac_prog_rejected=no
  1577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1578. for as_dir in $PATH
  1579. do
  1580. IFS=$as_save_IFS
  1581. test -z "$as_dir" && as_dir=.
  1582. for ac_exec_ext in '' $ac_executable_extensions; do
  1583. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1584. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1585. ac_prog_rejected=yes
  1586. continue
  1587. fi
  1588. ac_cv_prog_CC="cc"
  1589. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1590. break 2
  1591. fi
  1592. done
  1593. done
  1594. if test $ac_prog_rejected = yes; then
  1595. # We found a bogon in the path, so make sure we never use it.
  1596. set dummy $ac_cv_prog_CC
  1597. shift
  1598. if test $# != 0; then
  1599. # We chose a different compiler from the bogus one.
  1600. # However, it has the same basename, so the bogon will be chosen
  1601. # first if we set CC to just the basename; use the full file name.
  1602. shift
  1603. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1604. fi
  1605. fi
  1606. fi
  1607. fi
  1608. CC=$ac_cv_prog_CC
  1609. if test -n "$CC"; then
  1610. echo "$as_me:$LINENO: result: $CC" >&5
  1611. echo "${ECHO_T}$CC" >&6
  1612. else
  1613. echo "$as_me:$LINENO: result: no" >&5
  1614. echo "${ECHO_T}no" >&6
  1615. fi
  1616. fi
  1617. if test -z "$CC"; then
  1618. if test -n "$ac_tool_prefix"; then
  1619. for ac_prog in cl
  1620. do
  1621. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1622. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1623. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1624. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1625. if test "${ac_cv_prog_CC+set}" = set; then
  1626. echo $ECHO_N "(cached) $ECHO_C" >&6
  1627. else
  1628. if test -n "$CC"; then
  1629. ac_cv_prog_CC="$CC" # Let the user override the test.
  1630. else
  1631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1632. for as_dir in $PATH
  1633. do
  1634. IFS=$as_save_IFS
  1635. test -z "$as_dir" && as_dir=.
  1636. for ac_exec_ext in '' $ac_executable_extensions; do
  1637. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1638. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1639. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1640. break 2
  1641. fi
  1642. done
  1643. done
  1644. fi
  1645. fi
  1646. CC=$ac_cv_prog_CC
  1647. if test -n "$CC"; then
  1648. echo "$as_me:$LINENO: result: $CC" >&5
  1649. echo "${ECHO_T}$CC" >&6
  1650. else
  1651. echo "$as_me:$LINENO: result: no" >&5
  1652. echo "${ECHO_T}no" >&6
  1653. fi
  1654. test -n "$CC" && break
  1655. done
  1656. fi
  1657. if test -z "$CC"; then
  1658. ac_ct_CC=$CC
  1659. for ac_prog in cl
  1660. do
  1661. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1662. set dummy $ac_prog; ac_word=$2
  1663. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1664. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1665. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1666. echo $ECHO_N "(cached) $ECHO_C" >&6
  1667. else
  1668. if test -n "$ac_ct_CC"; then
  1669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1670. else
  1671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1672. for as_dir in $PATH
  1673. do
  1674. IFS=$as_save_IFS
  1675. test -z "$as_dir" && as_dir=.
  1676. for ac_exec_ext in '' $ac_executable_extensions; do
  1677. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1678. ac_cv_prog_ac_ct_CC="$ac_prog"
  1679. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1680. break 2
  1681. fi
  1682. done
  1683. done
  1684. fi
  1685. fi
  1686. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1687. if test -n "$ac_ct_CC"; then
  1688. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1689. echo "${ECHO_T}$ac_ct_CC" >&6
  1690. else
  1691. echo "$as_me:$LINENO: result: no" >&5
  1692. echo "${ECHO_T}no" >&6
  1693. fi
  1694. test -n "$ac_ct_CC" && break
  1695. done
  1696. CC=$ac_ct_CC
  1697. fi
  1698. fi
  1699. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1700. See \`config.log' for more details." >&5
  1701. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1702. See \`config.log' for more details." >&2;}
  1703. { (exit 1); exit 1; }; }
  1704. # Provide some information about the compiler.
  1705. echo "$as_me:$LINENO:" \
  1706. "checking for C compiler version" >&5
  1707. ac_compiler=`set X $ac_compile; echo $2`
  1708. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1709. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1710. ac_status=$?
  1711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1712. (exit $ac_status); }
  1713. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1714. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1715. ac_status=$?
  1716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1717. (exit $ac_status); }
  1718. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1719. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1720. ac_status=$?
  1721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1722. (exit $ac_status); }
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. ac_clean_files_save=$ac_clean_files
  1737. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1738. # Try to create an executable without -o first, disregard a.out.
  1739. # It will help us diagnose broken compilers, and finding out an intuition
  1740. # of exeext.
  1741. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1742. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1743. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1744. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1745. (eval $ac_link_default) 2>&5
  1746. ac_status=$?
  1747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1748. (exit $ac_status); }; then
  1749. # Find the output, starting from the most likely. This scheme is
  1750. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1751. # resort.
  1752. # Be careful to initialize this variable, since it used to be cached.
  1753. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1754. ac_cv_exeext=
  1755. # b.out is created by i960 compilers.
  1756. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1757. do
  1758. test -f "$ac_file" || continue
  1759. case $ac_file in
  1760. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1761. ;;
  1762. conftest.$ac_ext )
  1763. # This is the source file.
  1764. ;;
  1765. [ab].out )
  1766. # We found the default executable, but exeext='' is most
  1767. # certainly right.
  1768. break;;
  1769. *.* )
  1770. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1771. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1772. # but it would be cool to find out if it's true. Does anybody
  1773. # maintain Libtool? --akim.
  1774. export ac_cv_exeext
  1775. break;;
  1776. * )
  1777. break;;
  1778. esac
  1779. done
  1780. else
  1781. echo "$as_me: failed program was:" >&5
  1782. sed 's/^/| /' conftest.$ac_ext >&5
  1783. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1784. See \`config.log' for more details." >&5
  1785. echo "$as_me: error: C compiler cannot create executables
  1786. See \`config.log' for more details." >&2;}
  1787. { (exit 77); exit 77; }; }
  1788. fi
  1789. ac_exeext=$ac_cv_exeext
  1790. echo "$as_me:$LINENO: result: $ac_file" >&5
  1791. echo "${ECHO_T}$ac_file" >&6
  1792. # Check the compiler produces executables we can run. If not, either
  1793. # the compiler is broken, or we cross compile.
  1794. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1795. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1796. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1797. # If not cross compiling, check that we can run a simple program.
  1798. if test "$cross_compiling" != yes; then
  1799. if { ac_try='./$ac_file'
  1800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1801. (eval $ac_try) 2>&5
  1802. ac_status=$?
  1803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1804. (exit $ac_status); }; }; then
  1805. cross_compiling=no
  1806. else
  1807. if test "$cross_compiling" = maybe; then
  1808. cross_compiling=yes
  1809. else
  1810. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1811. If you meant to cross compile, use \`--host'.
  1812. See \`config.log' for more details." >&5
  1813. echo "$as_me: error: cannot run C compiled programs.
  1814. If you meant to cross compile, use \`--host'.
  1815. See \`config.log' for more details." >&2;}
  1816. { (exit 1); exit 1; }; }
  1817. fi
  1818. fi
  1819. fi
  1820. echo "$as_me:$LINENO: result: yes" >&5
  1821. echo "${ECHO_T}yes" >&6
  1822. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1823. ac_clean_files=$ac_clean_files_save
  1824. # Check the compiler produces executables we can run. If not, either
  1825. # the compiler is broken, or we cross compile.
  1826. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1827. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1828. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1829. echo "${ECHO_T}$cross_compiling" >&6
  1830. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1831. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1833. (eval $ac_link) 2>&5
  1834. ac_status=$?
  1835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1836. (exit $ac_status); }; then
  1837. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1838. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1839. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1840. # `rm'.
  1841. for ac_file in conftest.exe conftest conftest.*; do
  1842. test -f "$ac_file" || continue
  1843. case $ac_file in
  1844. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1845. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1846. export ac_cv_exeext
  1847. break;;
  1848. * ) break;;
  1849. esac
  1850. done
  1851. else
  1852. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1853. See \`config.log' for more details." >&5
  1854. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1855. See \`config.log' for more details." >&2;}
  1856. { (exit 1); exit 1; }; }
  1857. fi
  1858. rm -f conftest$ac_cv_exeext
  1859. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1860. echo "${ECHO_T}$ac_cv_exeext" >&6
  1861. rm -f conftest.$ac_ext
  1862. EXEEXT=$ac_cv_exeext
  1863. ac_exeext=$EXEEXT
  1864. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1865. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1866. if test "${ac_cv_objext+set}" = set; then
  1867. echo $ECHO_N "(cached) $ECHO_C" >&6
  1868. else
  1869. cat >conftest.$ac_ext <<_ACEOF
  1870. /* confdefs.h. */
  1871. _ACEOF
  1872. cat confdefs.h >>conftest.$ac_ext
  1873. cat >>conftest.$ac_ext <<_ACEOF
  1874. /* end confdefs.h. */
  1875. int
  1876. main ()
  1877. {
  1878. ;
  1879. return 0;
  1880. }
  1881. _ACEOF
  1882. rm -f conftest.o conftest.obj
  1883. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1884. (eval $ac_compile) 2>&5
  1885. ac_status=$?
  1886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1887. (exit $ac_status); }; then
  1888. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1889. case $ac_file in
  1890. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1891. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1892. break;;
  1893. esac
  1894. done
  1895. else
  1896. echo "$as_me: failed program was:" >&5
  1897. sed 's/^/| /' conftest.$ac_ext >&5
  1898. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1899. See \`config.log' for more details." >&5
  1900. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1901. See \`config.log' for more details." >&2;}
  1902. { (exit 1); exit 1; }; }
  1903. fi
  1904. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1905. fi
  1906. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1907. echo "${ECHO_T}$ac_cv_objext" >&6
  1908. OBJEXT=$ac_cv_objext
  1909. ac_objext=$OBJEXT
  1910. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1911. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1912. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1913. echo $ECHO_N "(cached) $ECHO_C" >&6
  1914. else
  1915. cat >conftest.$ac_ext <<_ACEOF
  1916. /* confdefs.h. */
  1917. _ACEOF
  1918. cat confdefs.h >>conftest.$ac_ext
  1919. cat >>conftest.$ac_ext <<_ACEOF
  1920. /* end confdefs.h. */
  1921. int
  1922. main ()
  1923. {
  1924. #ifndef __GNUC__
  1925. choke me
  1926. #endif
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. rm -f conftest.$ac_objext
  1932. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1933. (eval $ac_compile) 2>conftest.er1
  1934. ac_status=$?
  1935. grep -v '^ *+' conftest.er1 >conftest.err
  1936. rm -f conftest.er1
  1937. cat conftest.err >&5
  1938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1939. (exit $ac_status); } &&
  1940. { ac_try='test -z "$ac_c_werror_flag"
  1941. || test ! -s conftest.err'
  1942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1943. (eval $ac_try) 2>&5
  1944. ac_status=$?
  1945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1946. (exit $ac_status); }; } &&
  1947. { ac_try='test -s conftest.$ac_objext'
  1948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1949. (eval $ac_try) 2>&5
  1950. ac_status=$?
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); }; }; then
  1953. ac_compiler_gnu=yes
  1954. else
  1955. echo "$as_me: failed program was:" >&5
  1956. sed 's/^/| /' conftest.$ac_ext >&5
  1957. ac_compiler_gnu=no
  1958. fi
  1959. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1960. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1961. fi
  1962. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1963. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1964. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1965. ac_test_CFLAGS=${CFLAGS+set}
  1966. ac_save_CFLAGS=$CFLAGS
  1967. CFLAGS="-g"
  1968. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1969. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1970. if test "${ac_cv_prog_cc_g+set}" = set; then
  1971. echo $ECHO_N "(cached) $ECHO_C" >&6
  1972. else
  1973. cat >conftest.$ac_ext <<_ACEOF
  1974. /* confdefs.h. */
  1975. _ACEOF
  1976. cat confdefs.h >>conftest.$ac_ext
  1977. cat >>conftest.$ac_ext <<_ACEOF
  1978. /* end confdefs.h. */
  1979. int
  1980. main ()
  1981. {
  1982. ;
  1983. return 0;
  1984. }
  1985. _ACEOF
  1986. rm -f conftest.$ac_objext
  1987. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1988. (eval $ac_compile) 2>conftest.er1
  1989. ac_status=$?
  1990. grep -v '^ *+' conftest.er1 >conftest.err
  1991. rm -f conftest.er1
  1992. cat conftest.err >&5
  1993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1994. (exit $ac_status); } &&
  1995. { ac_try='test -z "$ac_c_werror_flag"
  1996. || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. ac_cv_prog_cc_g=yes
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. ac_cv_prog_cc_g=no
  2013. fi
  2014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2015. fi
  2016. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2017. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2018. if test "$ac_test_CFLAGS" = set; then
  2019. CFLAGS=$ac_save_CFLAGS
  2020. elif test $ac_cv_prog_cc_g = yes; then
  2021. if test "$GCC" = yes; then
  2022. CFLAGS="-g -O2"
  2023. else
  2024. CFLAGS="-g"
  2025. fi
  2026. else
  2027. if test "$GCC" = yes; then
  2028. CFLAGS="-O2"
  2029. else
  2030. CFLAGS=
  2031. fi
  2032. fi
  2033. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2034. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2035. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2036. echo $ECHO_N "(cached) $ECHO_C" >&6
  2037. else
  2038. ac_cv_prog_cc_stdc=no
  2039. ac_save_CC=$CC
  2040. cat >conftest.$ac_ext <<_ACEOF
  2041. /* confdefs.h. */
  2042. _ACEOF
  2043. cat confdefs.h >>conftest.$ac_ext
  2044. cat >>conftest.$ac_ext <<_ACEOF
  2045. /* end confdefs.h. */
  2046. #include <stdarg.h>
  2047. #include <stdio.h>
  2048. #include <sys/types.h>
  2049. #include <sys/stat.h>
  2050. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2051. struct buf { int x; };
  2052. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2053. static char *e (p, i)
  2054. char **p;
  2055. int i;
  2056. {
  2057. return p[i];
  2058. }
  2059. static char *f (char * (*g) (char **, int), char **p, ...)
  2060. {
  2061. char *s;
  2062. va_list v;
  2063. va_start (v,p);
  2064. s = g (p, va_arg (v,int));
  2065. va_end (v);
  2066. return s;
  2067. }
  2068. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2069. function prototypes and stuff, but not '\xHH' hex character constants.
  2070. These don't provoke an error unfortunately, instead are silently treated
  2071. as 'x'. The following induces an error, until -std1 is added to get
  2072. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2073. array size at least. It's necessary to write '\x00'==0 to get something
  2074. that's true only with -std1. */
  2075. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2076. int test (int i, double x);
  2077. struct s1 {int (*f) (int a);};
  2078. struct s2 {int (*f) (double a);};
  2079. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2080. int argc;
  2081. char **argv;
  2082. int
  2083. main ()
  2084. {
  2085. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2086. ;
  2087. return 0;
  2088. }
  2089. _ACEOF
  2090. # Don't try gcc -ansi; that turns off useful extensions and
  2091. # breaks some systems' header files.
  2092. # AIX -qlanglvl=ansi
  2093. # Ultrix and OSF/1 -std1
  2094. # HP-UX 10.20 and later -Ae
  2095. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2096. # SVR4 -Xc -D__EXTENSIONS__
  2097. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2098. do
  2099. CC="$ac_save_CC $ac_arg"
  2100. rm -f conftest.$ac_objext
  2101. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2102. (eval $ac_compile) 2>conftest.er1
  2103. ac_status=$?
  2104. grep -v '^ *+' conftest.er1 >conftest.err
  2105. rm -f conftest.er1
  2106. cat conftest.err >&5
  2107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2108. (exit $ac_status); } &&
  2109. { ac_try='test -z "$ac_c_werror_flag"
  2110. || test ! -s conftest.err'
  2111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2112. (eval $ac_try) 2>&5
  2113. ac_status=$?
  2114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2115. (exit $ac_status); }; } &&
  2116. { ac_try='test -s conftest.$ac_objext'
  2117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2118. (eval $ac_try) 2>&5
  2119. ac_status=$?
  2120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2121. (exit $ac_status); }; }; then
  2122. ac_cv_prog_cc_stdc=$ac_arg
  2123. break
  2124. else
  2125. echo "$as_me: failed program was:" >&5
  2126. sed 's/^/| /' conftest.$ac_ext >&5
  2127. fi
  2128. rm -f conftest.err conftest.$ac_objext
  2129. done
  2130. rm -f conftest.$ac_ext conftest.$ac_objext
  2131. CC=$ac_save_CC
  2132. fi
  2133. case "x$ac_cv_prog_cc_stdc" in
  2134. x|xno)
  2135. echo "$as_me:$LINENO: result: none needed" >&5
  2136. echo "${ECHO_T}none needed" >&6 ;;
  2137. *)
  2138. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2139. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2140. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2141. esac
  2142. # Some people use a C++ compiler to compile C. Since we use `exit',
  2143. # in C++ we need to declare it. In case someone uses the same compiler
  2144. # for both compiling C and C++ we need to have the C++ compiler decide
  2145. # the declaration of exit, since it's the most demanding environment.
  2146. cat >conftest.$ac_ext <<_ACEOF
  2147. #ifndef __cplusplus
  2148. choke me
  2149. #endif
  2150. _ACEOF
  2151. rm -f conftest.$ac_objext
  2152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2153. (eval $ac_compile) 2>conftest.er1
  2154. ac_status=$?
  2155. grep -v '^ *+' conftest.er1 >conftest.err
  2156. rm -f conftest.er1
  2157. cat conftest.err >&5
  2158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2159. (exit $ac_status); } &&
  2160. { ac_try='test -z "$ac_c_werror_flag"
  2161. || test ! -s conftest.err'
  2162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2163. (eval $ac_try) 2>&5
  2164. ac_status=$?
  2165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2166. (exit $ac_status); }; } &&
  2167. { ac_try='test -s conftest.$ac_objext'
  2168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2169. (eval $ac_try) 2>&5
  2170. ac_status=$?
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); }; }; then
  2173. for ac_declaration in \
  2174. '' \
  2175. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2176. 'extern "C" void std::exit (int); using std::exit;' \
  2177. 'extern "C" void exit (int) throw ();' \
  2178. 'extern "C" void exit (int);' \
  2179. 'void exit (int);'
  2180. do
  2181. cat >conftest.$ac_ext <<_ACEOF
  2182. /* confdefs.h. */
  2183. _ACEOF
  2184. cat confdefs.h >>conftest.$ac_ext
  2185. cat >>conftest.$ac_ext <<_ACEOF
  2186. /* end confdefs.h. */
  2187. $ac_declaration
  2188. #include <stdlib.h>
  2189. int
  2190. main ()
  2191. {
  2192. exit (42);
  2193. ;
  2194. return 0;
  2195. }
  2196. _ACEOF
  2197. rm -f conftest.$ac_objext
  2198. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2199. (eval $ac_compile) 2>conftest.er1
  2200. ac_status=$?
  2201. grep -v '^ *+' conftest.er1 >conftest.err
  2202. rm -f conftest.er1
  2203. cat conftest.err >&5
  2204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2205. (exit $ac_status); } &&
  2206. { ac_try='test -z "$ac_c_werror_flag"
  2207. || test ! -s conftest.err'
  2208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2209. (eval $ac_try) 2>&5
  2210. ac_status=$?
  2211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2212. (exit $ac_status); }; } &&
  2213. { ac_try='test -s conftest.$ac_objext'
  2214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2215. (eval $ac_try) 2>&5
  2216. ac_status=$?
  2217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2218. (exit $ac_status); }; }; then
  2219. :
  2220. else
  2221. echo "$as_me: failed program was:" >&5
  2222. sed 's/^/| /' conftest.$ac_ext >&5
  2223. continue
  2224. fi
  2225. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2226. cat >conftest.$ac_ext <<_ACEOF
  2227. /* confdefs.h. */
  2228. _ACEOF
  2229. cat confdefs.h >>conftest.$ac_ext
  2230. cat >>conftest.$ac_ext <<_ACEOF
  2231. /* end confdefs.h. */
  2232. $ac_declaration
  2233. int
  2234. main ()
  2235. {
  2236. exit (42);
  2237. ;
  2238. return 0;
  2239. }
  2240. _ACEOF
  2241. rm -f conftest.$ac_objext
  2242. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2243. (eval $ac_compile) 2>conftest.er1
  2244. ac_status=$?
  2245. grep -v '^ *+' conftest.er1 >conftest.err
  2246. rm -f conftest.er1
  2247. cat conftest.err >&5
  2248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2249. (exit $ac_status); } &&
  2250. { ac_try='test -z "$ac_c_werror_flag"
  2251. || test ! -s conftest.err'
  2252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2253. (eval $ac_try) 2>&5
  2254. ac_status=$?
  2255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2256. (exit $ac_status); }; } &&
  2257. { ac_try='test -s conftest.$ac_objext'
  2258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2259. (eval $ac_try) 2>&5
  2260. ac_status=$?
  2261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2262. (exit $ac_status); }; }; then
  2263. break
  2264. else
  2265. echo "$as_me: failed program was:" >&5
  2266. sed 's/^/| /' conftest.$ac_ext >&5
  2267. fi
  2268. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2269. done
  2270. rm -f conftest*
  2271. if test -n "$ac_declaration"; then
  2272. echo '#ifdef __cplusplus' >>confdefs.h
  2273. echo $ac_declaration >>confdefs.h
  2274. echo '#endif' >>confdefs.h
  2275. fi
  2276. else
  2277. echo "$as_me: failed program was:" >&5
  2278. sed 's/^/| /' conftest.$ac_ext >&5
  2279. fi
  2280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2281. ac_ext=c
  2282. ac_cpp='$CPP $CPPFLAGS'
  2283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2286. # Comment these two lines out when compiling on SCO
  2287. # Check whether --enable-static or --disable-static was given.
  2288. if test "${enable_static+set}" = set; then
  2289. enableval="$enable_static"
  2290. p=${PACKAGE-default}
  2291. case $enableval in
  2292. yes) enable_static=yes ;;
  2293. no) enable_static=no ;;
  2294. *)
  2295. enable_static=no
  2296. # Look at the argument we got. We use all the common list separators.
  2297. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2298. for pkg in $enableval; do
  2299. IFS="$lt_save_ifs"
  2300. if test "X$pkg" = "X$p"; then
  2301. enable_static=yes
  2302. fi
  2303. done
  2304. IFS="$lt_save_ifs"
  2305. ;;
  2306. esac
  2307. else
  2308. enable_static=no
  2309. fi;
  2310. # Check whether --enable-shared or --disable-shared was given.
  2311. if test "${enable_shared+set}" = set; then
  2312. enableval="$enable_shared"
  2313. p=${PACKAGE-default}
  2314. case $enableval in
  2315. yes) enable_shared=yes ;;
  2316. no) enable_shared=no ;;
  2317. *)
  2318. enable_shared=no
  2319. # Look at the argument we got. We use all the common list separators.
  2320. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2321. for pkg in $enableval; do
  2322. IFS="$lt_save_ifs"
  2323. if test "X$pkg" = "X$p"; then
  2324. enable_shared=yes
  2325. fi
  2326. done
  2327. IFS="$lt_save_ifs"
  2328. ;;
  2329. esac
  2330. else
  2331. enable_shared=yes
  2332. fi;
  2333. # Check whether --enable-fast-install or --disable-fast-install was given.
  2334. if test "${enable_fast_install+set}" = set; then
  2335. enableval="$enable_fast_install"
  2336. p=${PACKAGE-default}
  2337. case $enableval in
  2338. yes) enable_fast_install=yes ;;
  2339. no) enable_fast_install=no ;;
  2340. *)
  2341. enable_fast_install=no
  2342. # Look at the argument we got. We use all the common list separators.
  2343. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2344. for pkg in $enableval; do
  2345. IFS="$lt_save_ifs"
  2346. if test "X$pkg" = "X$p"; then
  2347. enable_fast_install=yes
  2348. fi
  2349. done
  2350. IFS="$lt_save_ifs"
  2351. ;;
  2352. esac
  2353. else
  2354. enable_fast_install=yes
  2355. fi;
  2356. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2357. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2358. if test "${lt_cv_path_SED+set}" = set; then
  2359. echo $ECHO_N "(cached) $ECHO_C" >&6
  2360. else
  2361. # Loop through the user's path and test for sed and gsed.
  2362. # Then use that list of sed's as ones to test for truncation.
  2363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2364. for as_dir in $PATH
  2365. do
  2366. IFS=$as_save_IFS
  2367. test -z "$as_dir" && as_dir=.
  2368. for lt_ac_prog in sed gsed; do
  2369. for ac_exec_ext in '' $ac_executable_extensions; do
  2370. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2371. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2372. fi
  2373. done
  2374. done
  2375. done
  2376. lt_ac_max=0
  2377. lt_ac_count=0
  2378. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2379. # along with /bin/sed that truncates output.
  2380. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2381. test ! -f $lt_ac_sed && continue
  2382. cat /dev/null > conftest.in
  2383. lt_ac_count=0
  2384. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2385. # Check for GNU sed and select it if it is found.
  2386. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2387. lt_cv_path_SED=$lt_ac_sed
  2388. break
  2389. fi
  2390. while true; do
  2391. cat conftest.in conftest.in >conftest.tmp
  2392. mv conftest.tmp conftest.in
  2393. cp conftest.in conftest.nl
  2394. echo >>conftest.nl
  2395. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2396. cmp -s conftest.out conftest.nl || break
  2397. # 10000 chars as input seems more than enough
  2398. test $lt_ac_count -gt 10 && break
  2399. lt_ac_count=`expr $lt_ac_count + 1`
  2400. if test $lt_ac_count -gt $lt_ac_max; then
  2401. lt_ac_max=$lt_ac_count
  2402. lt_cv_path_SED=$lt_ac_sed
  2403. fi
  2404. done
  2405. done
  2406. fi
  2407. SED=$lt_cv_path_SED
  2408. echo "$as_me:$LINENO: result: $SED" >&5
  2409. echo "${ECHO_T}$SED" >&6
  2410. echo "$as_me:$LINENO: checking for egrep" >&5
  2411. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2412. if test "${ac_cv_prog_egrep+set}" = set; then
  2413. echo $ECHO_N "(cached) $ECHO_C" >&6
  2414. else
  2415. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2416. then ac_cv_prog_egrep='grep -E'
  2417. else ac_cv_prog_egrep='egrep'
  2418. fi
  2419. fi
  2420. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2421. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2422. EGREP=$ac_cv_prog_egrep
  2423. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2424. if test "${with_gnu_ld+set}" = set; then
  2425. withval="$with_gnu_ld"
  2426. test "$withval" = no || with_gnu_ld=yes
  2427. else
  2428. with_gnu_ld=no
  2429. fi;
  2430. ac_prog=ld
  2431. if test "$GCC" = yes; then
  2432. # Check if gcc -print-prog-name=ld gives a path.
  2433. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2434. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2435. case $host in
  2436. *-*-mingw*)
  2437. # gcc leaves a trailing carriage return which upsets mingw
  2438. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2439. *)
  2440. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2441. esac
  2442. case $ac_prog in
  2443. # Accept absolute paths.
  2444. [\\/]* | ?:[\\/]*)
  2445. re_direlt='/[^/][^/]*/\.\./'
  2446. # Canonicalize the pathname of ld
  2447. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2448. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2449. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2450. done
  2451. test -z "$LD" && LD="$ac_prog"
  2452. ;;
  2453. "")
  2454. # If it fails, then pretend we aren't using GCC.
  2455. ac_prog=ld
  2456. ;;
  2457. *)
  2458. # If it is relative, then search for the first ld in PATH.
  2459. with_gnu_ld=unknown
  2460. ;;
  2461. esac
  2462. elif test "$with_gnu_ld" = yes; then
  2463. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2464. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2465. else
  2466. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2467. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2468. fi
  2469. if test "${lt_cv_path_LD+set}" = set; then
  2470. echo $ECHO_N "(cached) $ECHO_C" >&6
  2471. else
  2472. if test -z "$LD"; then
  2473. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2474. for ac_dir in $PATH; do
  2475. IFS="$lt_save_ifs"
  2476. test -z "$ac_dir" && ac_dir=.
  2477. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2478. lt_cv_path_LD="$ac_dir/$ac_prog"
  2479. # Check to see if the program is GNU ld. I'd rather use --version,
  2480. # but apparently some GNU ld's only accept -v.
  2481. # Break only if it was the GNU/non-GNU ld that we prefer.
  2482. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2483. *GNU* | *'with BFD'*)
  2484. test "$with_gnu_ld" != no && break
  2485. ;;
  2486. *)
  2487. test "$with_gnu_ld" != yes && break
  2488. ;;
  2489. esac
  2490. fi
  2491. done
  2492. IFS="$lt_save_ifs"
  2493. else
  2494. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2495. fi
  2496. fi
  2497. LD="$lt_cv_path_LD"
  2498. if test -n "$LD"; then
  2499. echo "$as_me:$LINENO: result: $LD" >&5
  2500. echo "${ECHO_T}$LD" >&6
  2501. else
  2502. echo "$as_me:$LINENO: result: no" >&5
  2503. echo "${ECHO_T}no" >&6
  2504. fi
  2505. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2506. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2507. { (exit 1); exit 1; }; }
  2508. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2509. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2510. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2511. echo $ECHO_N "(cached) $ECHO_C" >&6
  2512. else
  2513. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2514. case `$LD -v 2>&1 </dev/null` in
  2515. *GNU* | *'with BFD'*)
  2516. lt_cv_prog_gnu_ld=yes
  2517. ;;
  2518. *)
  2519. lt_cv_prog_gnu_ld=no
  2520. ;;
  2521. esac
  2522. fi
  2523. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2524. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2525. with_gnu_ld=$lt_cv_prog_gnu_ld
  2526. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2527. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2528. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2529. echo $ECHO_N "(cached) $ECHO_C" >&6
  2530. else
  2531. lt_cv_ld_reload_flag='-r'
  2532. fi
  2533. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2534. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2535. reload_flag=$lt_cv_ld_reload_flag
  2536. case $reload_flag in
  2537. "" | " "*) ;;
  2538. *) reload_flag=" $reload_flag" ;;
  2539. esac
  2540. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2541. case $host_os in
  2542. darwin*)
  2543. if test "$GCC" = yes; then
  2544. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  2545. else
  2546. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2547. fi
  2548. ;;
  2549. esac
  2550. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2551. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2552. if test "${lt_cv_path_NM+set}" = set; then
  2553. echo $ECHO_N "(cached) $ECHO_C" >&6
  2554. else
  2555. if test -n "$NM"; then
  2556. # Let the user override the test.
  2557. lt_cv_path_NM="$NM"
  2558. else
  2559. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2560. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2561. IFS="$lt_save_ifs"
  2562. test -z "$ac_dir" && ac_dir=.
  2563. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  2564. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2565. # Check to see if the nm accepts a BSD-compat flag.
  2566. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2567. # nm: unknown option "B" ignored
  2568. # Tru64's nm complains that /dev/null is an invalid object file
  2569. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2570. */dev/null* | *'Invalid file or object type'*)
  2571. lt_cv_path_NM="$tmp_nm -B"
  2572. break
  2573. ;;
  2574. *)
  2575. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2576. */dev/null*)
  2577. lt_cv_path_NM="$tmp_nm -p"
  2578. break
  2579. ;;
  2580. *)
  2581. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2582. continue # so that we can try to find one that supports BSD flags
  2583. ;;
  2584. esac
  2585. esac
  2586. fi
  2587. done
  2588. IFS="$lt_save_ifs"
  2589. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2590. fi
  2591. fi
  2592. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  2593. echo "${ECHO_T}$lt_cv_path_NM" >&6
  2594. NM="$lt_cv_path_NM"
  2595. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2596. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2597. LN_S=$as_ln_s
  2598. if test "$LN_S" = "ln -s"; then
  2599. echo "$as_me:$LINENO: result: yes" >&5
  2600. echo "${ECHO_T}yes" >&6
  2601. else
  2602. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2603. echo "${ECHO_T}no, using $LN_S" >&6
  2604. fi
  2605. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  2606. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  2607. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2608. echo $ECHO_N "(cached) $ECHO_C" >&6
  2609. else
  2610. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2611. lt_cv_file_magic_test_file=
  2612. lt_cv_deplibs_check_method='unknown'
  2613. # Need to set the preceding variable on all platforms that support
  2614. # interlibrary dependencies.
  2615. # 'none' -- dependencies not supported.
  2616. # `unknown' -- same as none, but documents that we really don't know.
  2617. # 'pass_all' -- all dependencies passed with no checks.
  2618. # 'test_compile' -- check by making test program.
  2619. # 'file_magic [[regex]]' -- check by looking for files in library path
  2620. # which responds to the $file_magic_cmd with a given extended regex.
  2621. # If you have `file' or equivalent on your system and you're not sure
  2622. # whether `pass_all' will *always* work, you probably want this one.
  2623. case $host_os in
  2624. aix4* | aix5*)
  2625. lt_cv_deplibs_check_method=pass_all
  2626. ;;
  2627. beos*)
  2628. lt_cv_deplibs_check_method=pass_all
  2629. ;;
  2630. bsdi[45]*)
  2631. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2632. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2633. lt_cv_file_magic_test_file=/shlib/libc.so
  2634. ;;
  2635. cygwin*)
  2636. # func_win32_libid is a shell function defined in ltmain.sh
  2637. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2638. lt_cv_file_magic_cmd='func_win32_libid'
  2639. ;;
  2640. mingw* | pw32*)
  2641. # Base MSYS/MinGW do not provide the 'file' command needed by
  2642. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2643. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2644. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2645. ;;
  2646. darwin* | rhapsody*)
  2647. lt_cv_deplibs_check_method=pass_all
  2648. ;;
  2649. freebsd* | kfreebsd*-gnu | dragonfly*)
  2650. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2651. case $host_cpu in
  2652. i*86 )
  2653. # Not sure whether the presence of OpenBSD here was a mistake.
  2654. # Let's accept both of them until this is cleared up.
  2655. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  2656. lt_cv_file_magic_cmd=/usr/bin/file
  2657. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2658. ;;
  2659. esac
  2660. else
  2661. lt_cv_deplibs_check_method=pass_all
  2662. fi
  2663. ;;
  2664. gnu*)
  2665. lt_cv_deplibs_check_method=pass_all
  2666. ;;
  2667. hpux10.20* | hpux11*)
  2668. lt_cv_file_magic_cmd=/usr/bin/file
  2669. case "$host_cpu" in
  2670. ia64*)
  2671. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  2672. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2673. ;;
  2674. hppa*64*)
  2675. 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]'
  2676. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2677. ;;
  2678. *)
  2679. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2680. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2681. ;;
  2682. esac
  2683. ;;
  2684. irix5* | irix6* | nonstopux*)
  2685. case $LD in
  2686. *-32|*"-32 ") libmagic=32-bit;;
  2687. *-n32|*"-n32 ") libmagic=N32;;
  2688. *-64|*"-64 ") libmagic=64-bit;;
  2689. *) libmagic=never-match;;
  2690. esac
  2691. lt_cv_deplibs_check_method=pass_all
  2692. ;;
  2693. # This must be Linux ELF.
  2694. linux*)
  2695. lt_cv_deplibs_check_method=pass_all
  2696. ;;
  2697. netbsd*)
  2698. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2699. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2700. else
  2701. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  2702. fi
  2703. ;;
  2704. newos6*)
  2705. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2706. lt_cv_file_magic_cmd=/usr/bin/file
  2707. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2708. ;;
  2709. nto-qnx*)
  2710. lt_cv_deplibs_check_method=unknown
  2711. ;;
  2712. openbsd*)
  2713. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2714. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  2715. else
  2716. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2717. fi
  2718. ;;
  2719. osf3* | osf4* | osf5*)
  2720. lt_cv_deplibs_check_method=pass_all
  2721. ;;
  2722. sco3.2v5*)
  2723. lt_cv_deplibs_check_method=pass_all
  2724. ;;
  2725. solaris*)
  2726. lt_cv_deplibs_check_method=pass_all
  2727. ;;
  2728. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2729. case $host_vendor in
  2730. motorola)
  2731. 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]'
  2732. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2733. ;;
  2734. ncr)
  2735. lt_cv_deplibs_check_method=pass_all
  2736. ;;
  2737. sequent)
  2738. lt_cv_file_magic_cmd='/bin/file'
  2739. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2740. ;;
  2741. sni)
  2742. lt_cv_file_magic_cmd='/bin/file'
  2743. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2744. lt_cv_file_magic_test_file=/lib/libc.so
  2745. ;;
  2746. siemens)
  2747. lt_cv_deplibs_check_method=pass_all
  2748. ;;
  2749. esac
  2750. ;;
  2751. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  2752. lt_cv_deplibs_check_method=pass_all
  2753. ;;
  2754. esac
  2755. fi
  2756. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  2757. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  2758. file_magic_cmd=$lt_cv_file_magic_cmd
  2759. deplibs_check_method=$lt_cv_deplibs_check_method
  2760. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2761. # If no C compiler was specified, use CC.
  2762. LTCC=${LTCC-"$CC"}
  2763. # Allow CC to be a program name with arguments.
  2764. compiler=$CC
  2765. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2766. if test "${enable_libtool_lock+set}" = set; then
  2767. enableval="$enable_libtool_lock"
  2768. fi;
  2769. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2770. # Some flags need to be propagated to the compiler or linker for good
  2771. # libtool support.
  2772. case $host in
  2773. ia64-*-hpux*)
  2774. # Find out which ABI we are using.
  2775. echo 'int i;' > conftest.$ac_ext
  2776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2777. (eval $ac_compile) 2>&5
  2778. ac_status=$?
  2779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2780. (exit $ac_status); }; then
  2781. case `/usr/bin/file conftest.$ac_objext` in
  2782. *ELF-32*)
  2783. HPUX_IA64_MODE="32"
  2784. ;;
  2785. *ELF-64*)
  2786. HPUX_IA64_MODE="64"
  2787. ;;
  2788. esac
  2789. fi
  2790. rm -rf conftest*
  2791. ;;
  2792. *-*-irix6*)
  2793. # Find out which ABI we are using.
  2794. echo '#line 3100 "configure"' > conftest.$ac_ext
  2795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2796. (eval $ac_compile) 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; then
  2800. if test "$lt_cv_prog_gnu_ld" = yes; then
  2801. case `/usr/bin/file conftest.$ac_objext` in
  2802. *32-bit*)
  2803. LD="${LD-ld} -melf32bsmip"
  2804. ;;
  2805. *N32*)
  2806. LD="${LD-ld} -melf32bmipn32"
  2807. ;;
  2808. *64-bit*)
  2809. LD="${LD-ld} -melf64bmip"
  2810. ;;
  2811. esac
  2812. else
  2813. case `/usr/bin/file conftest.$ac_objext` in
  2814. *32-bit*)
  2815. LD="${LD-ld} -32"
  2816. ;;
  2817. *N32*)
  2818. LD="${LD-ld} -n32"
  2819. ;;
  2820. *64-bit*)
  2821. LD="${LD-ld} -64"
  2822. ;;
  2823. esac
  2824. fi
  2825. fi
  2826. rm -rf conftest*
  2827. ;;
  2828. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2829. # Find out which ABI we are using.
  2830. echo 'int i;' > conftest.$ac_ext
  2831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2832. (eval $ac_compile) 2>&5
  2833. ac_status=$?
  2834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2835. (exit $ac_status); }; then
  2836. case "`/usr/bin/file conftest.o`" in
  2837. *32-bit*)
  2838. case $host in
  2839. x86_64-*linux*)
  2840. LD="${LD-ld} -m elf_i386"
  2841. ;;
  2842. ppc64-*linux*|powerpc64-*linux*)
  2843. LD="${LD-ld} -m elf32ppclinux"
  2844. ;;
  2845. s390x-*linux*)
  2846. LD="${LD-ld} -m elf_s390"
  2847. ;;
  2848. sparc64-*linux*)
  2849. LD="${LD-ld} -m elf32_sparc"
  2850. ;;
  2851. esac
  2852. ;;
  2853. *64-bit*)
  2854. case $host in
  2855. x86_64-*linux*)
  2856. LD="${LD-ld} -m elf_x86_64"
  2857. ;;
  2858. ppc*-*linux*|powerpc*-*linux*)
  2859. LD="${LD-ld} -m elf64ppc"
  2860. ;;
  2861. s390*-*linux*)
  2862. LD="${LD-ld} -m elf64_s390"
  2863. ;;
  2864. sparc*-*linux*)
  2865. LD="${LD-ld} -m elf64_sparc"
  2866. ;;
  2867. esac
  2868. ;;
  2869. esac
  2870. fi
  2871. rm -rf conftest*
  2872. ;;
  2873. *-*-sco3.2v5*)
  2874. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2875. SAVE_CFLAGS="$CFLAGS"
  2876. CFLAGS="$CFLAGS -belf"
  2877. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  2878. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  2879. if test "${lt_cv_cc_needs_belf+set}" = set; then
  2880. echo $ECHO_N "(cached) $ECHO_C" >&6
  2881. else
  2882. ac_ext=c
  2883. ac_cpp='$CPP $CPPFLAGS'
  2884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2887. cat >conftest.$ac_ext <<_ACEOF
  2888. /* confdefs.h. */
  2889. _ACEOF
  2890. cat confdefs.h >>conftest.$ac_ext
  2891. cat >>conftest.$ac_ext <<_ACEOF
  2892. /* end confdefs.h. */
  2893. int
  2894. main ()
  2895. {
  2896. ;
  2897. return 0;
  2898. }
  2899. _ACEOF
  2900. rm -f conftest.$ac_objext conftest$ac_exeext
  2901. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2902. (eval $ac_link) 2>conftest.er1
  2903. ac_status=$?
  2904. grep -v '^ *+' conftest.er1 >conftest.err
  2905. rm -f conftest.er1
  2906. cat conftest.err >&5
  2907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2908. (exit $ac_status); } &&
  2909. { ac_try='test -z "$ac_c_werror_flag"
  2910. || test ! -s conftest.err'
  2911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2912. (eval $ac_try) 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }; } &&
  2916. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  2922. lt_cv_cc_needs_belf=yes
  2923. else
  2924. echo "$as_me: failed program was:" >&5
  2925. sed 's/^/| /' conftest.$ac_ext >&5
  2926. lt_cv_cc_needs_belf=no
  2927. fi
  2928. rm -f conftest.err conftest.$ac_objext \
  2929. conftest$ac_exeext conftest.$ac_ext
  2930. ac_ext=c
  2931. ac_cpp='$CPP $CPPFLAGS'
  2932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2935. fi
  2936. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  2937. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  2938. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2939. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2940. CFLAGS="$SAVE_CFLAGS"
  2941. fi
  2942. ;;
  2943. esac
  2944. need_locks="$enable_libtool_lock"
  2945. ac_ext=c
  2946. ac_cpp='$CPP $CPPFLAGS'
  2947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2950. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2951. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2952. # On Suns, sometimes $CPP names a directory.
  2953. if test -n "$CPP" && test -d "$CPP"; then
  2954. CPP=
  2955. fi
  2956. if test -z "$CPP"; then
  2957. if test "${ac_cv_prog_CPP+set}" = set; then
  2958. echo $ECHO_N "(cached) $ECHO_C" >&6
  2959. else
  2960. # Double quotes because CPP needs to be expanded
  2961. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2962. do
  2963. ac_preproc_ok=false
  2964. for ac_c_preproc_warn_flag in '' yes
  2965. do
  2966. # Use a header file that comes with gcc, so configuring glibc
  2967. # with a fresh cross-compiler works.
  2968. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2969. # <limits.h> exists even on freestanding compilers.
  2970. # On the NeXT, cc -E runs the code through the compiler's parser,
  2971. # not just through cpp. "Syntax error" is here to catch this case.
  2972. cat >conftest.$ac_ext <<_ACEOF
  2973. /* confdefs.h. */
  2974. _ACEOF
  2975. cat confdefs.h >>conftest.$ac_ext
  2976. cat >>conftest.$ac_ext <<_ACEOF
  2977. /* end confdefs.h. */
  2978. #ifdef __STDC__
  2979. # include <limits.h>
  2980. #else
  2981. # include <assert.h>
  2982. #endif
  2983. Syntax error
  2984. _ACEOF
  2985. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2986. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2987. ac_status=$?
  2988. grep -v '^ *+' conftest.er1 >conftest.err
  2989. rm -f conftest.er1
  2990. cat conftest.err >&5
  2991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2992. (exit $ac_status); } >/dev/null; then
  2993. if test -s conftest.err; then
  2994. ac_cpp_err=$ac_c_preproc_warn_flag
  2995. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2996. else
  2997. ac_cpp_err=
  2998. fi
  2999. else
  3000. ac_cpp_err=yes
  3001. fi
  3002. if test -z "$ac_cpp_err"; then
  3003. :
  3004. else
  3005. echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. # Broken: fails on valid input.
  3008. continue
  3009. fi
  3010. rm -f conftest.err conftest.$ac_ext
  3011. # OK, works on sane cases. Now check whether non-existent headers
  3012. # can be detected and how.
  3013. cat >conftest.$ac_ext <<_ACEOF
  3014. /* confdefs.h. */
  3015. _ACEOF
  3016. cat confdefs.h >>conftest.$ac_ext
  3017. cat >>conftest.$ac_ext <<_ACEOF
  3018. /* end confdefs.h. */
  3019. #include <ac_nonexistent.h>
  3020. _ACEOF
  3021. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3022. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3023. ac_status=$?
  3024. grep -v '^ *+' conftest.er1 >conftest.err
  3025. rm -f conftest.er1
  3026. cat conftest.err >&5
  3027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3028. (exit $ac_status); } >/dev/null; then
  3029. if test -s conftest.err; then
  3030. ac_cpp_err=$ac_c_preproc_warn_flag
  3031. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3032. else
  3033. ac_cpp_err=
  3034. fi
  3035. else
  3036. ac_cpp_err=yes
  3037. fi
  3038. if test -z "$ac_cpp_err"; then
  3039. # Broken: success on invalid input.
  3040. continue
  3041. else
  3042. echo "$as_me: failed program was:" >&5
  3043. sed 's/^/| /' conftest.$ac_ext >&5
  3044. # Passes both tests.
  3045. ac_preproc_ok=:
  3046. break
  3047. fi
  3048. rm -f conftest.err conftest.$ac_ext
  3049. done
  3050. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3051. rm -f conftest.err conftest.$ac_ext
  3052. if $ac_preproc_ok; then
  3053. break
  3054. fi
  3055. done
  3056. ac_cv_prog_CPP=$CPP
  3057. fi
  3058. CPP=$ac_cv_prog_CPP
  3059. else
  3060. ac_cv_prog_CPP=$CPP
  3061. fi
  3062. echo "$as_me:$LINENO: result: $CPP" >&5
  3063. echo "${ECHO_T}$CPP" >&6
  3064. ac_preproc_ok=false
  3065. for ac_c_preproc_warn_flag in '' yes
  3066. do
  3067. # Use a header file that comes with gcc, so configuring glibc
  3068. # with a fresh cross-compiler works.
  3069. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3070. # <limits.h> exists even on freestanding compilers.
  3071. # On the NeXT, cc -E runs the code through the compiler's parser,
  3072. # not just through cpp. "Syntax error" is here to catch this case.
  3073. cat >conftest.$ac_ext <<_ACEOF
  3074. /* confdefs.h. */
  3075. _ACEOF
  3076. cat confdefs.h >>conftest.$ac_ext
  3077. cat >>conftest.$ac_ext <<_ACEOF
  3078. /* end confdefs.h. */
  3079. #ifdef __STDC__
  3080. # include <limits.h>
  3081. #else
  3082. # include <assert.h>
  3083. #endif
  3084. Syntax error
  3085. _ACEOF
  3086. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3087. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3088. ac_status=$?
  3089. grep -v '^ *+' conftest.er1 >conftest.err
  3090. rm -f conftest.er1
  3091. cat conftest.err >&5
  3092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3093. (exit $ac_status); } >/dev/null; then
  3094. if test -s conftest.err; then
  3095. ac_cpp_err=$ac_c_preproc_warn_flag
  3096. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3097. else
  3098. ac_cpp_err=
  3099. fi
  3100. else
  3101. ac_cpp_err=yes
  3102. fi
  3103. if test -z "$ac_cpp_err"; then
  3104. :
  3105. else
  3106. echo "$as_me: failed program was:" >&5
  3107. sed 's/^/| /' conftest.$ac_ext >&5
  3108. # Broken: fails on valid input.
  3109. continue
  3110. fi
  3111. rm -f conftest.err conftest.$ac_ext
  3112. # OK, works on sane cases. Now check whether non-existent headers
  3113. # can be detected and how.
  3114. cat >conftest.$ac_ext <<_ACEOF
  3115. /* confdefs.h. */
  3116. _ACEOF
  3117. cat confdefs.h >>conftest.$ac_ext
  3118. cat >>conftest.$ac_ext <<_ACEOF
  3119. /* end confdefs.h. */
  3120. #include <ac_nonexistent.h>
  3121. _ACEOF
  3122. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3123. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3124. ac_status=$?
  3125. grep -v '^ *+' conftest.er1 >conftest.err
  3126. rm -f conftest.er1
  3127. cat conftest.err >&5
  3128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3129. (exit $ac_status); } >/dev/null; then
  3130. if test -s conftest.err; then
  3131. ac_cpp_err=$ac_c_preproc_warn_flag
  3132. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3133. else
  3134. ac_cpp_err=
  3135. fi
  3136. else
  3137. ac_cpp_err=yes
  3138. fi
  3139. if test -z "$ac_cpp_err"; then
  3140. # Broken: success on invalid input.
  3141. continue
  3142. else
  3143. echo "$as_me: failed program was:" >&5
  3144. sed 's/^/| /' conftest.$ac_ext >&5
  3145. # Passes both tests.
  3146. ac_preproc_ok=:
  3147. break
  3148. fi
  3149. rm -f conftest.err conftest.$ac_ext
  3150. done
  3151. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3152. rm -f conftest.err conftest.$ac_ext
  3153. if $ac_preproc_ok; then
  3154. :
  3155. else
  3156. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3157. See \`config.log' for more details." >&5
  3158. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3159. See \`config.log' for more details." >&2;}
  3160. { (exit 1); exit 1; }; }
  3161. fi
  3162. ac_ext=c
  3163. ac_cpp='$CPP $CPPFLAGS'
  3164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3167. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3168. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3169. if test "${ac_cv_header_stdc+set}" = set; then
  3170. echo $ECHO_N "(cached) $ECHO_C" >&6
  3171. else
  3172. cat >conftest.$ac_ext <<_ACEOF
  3173. /* confdefs.h. */
  3174. _ACEOF
  3175. cat confdefs.h >>conftest.$ac_ext
  3176. cat >>conftest.$ac_ext <<_ACEOF
  3177. /* end confdefs.h. */
  3178. #include <stdlib.h>
  3179. #include <stdarg.h>
  3180. #include <string.h>
  3181. #include <float.h>
  3182. int
  3183. main ()
  3184. {
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. rm -f conftest.$ac_objext
  3190. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3191. (eval $ac_compile) 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } &&
  3198. { ac_try='test -z "$ac_c_werror_flag"
  3199. || test ! -s conftest.err'
  3200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3201. (eval $ac_try) 2>&5
  3202. ac_status=$?
  3203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3204. (exit $ac_status); }; } &&
  3205. { ac_try='test -s conftest.$ac_objext'
  3206. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3207. (eval $ac_try) 2>&5
  3208. ac_status=$?
  3209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3210. (exit $ac_status); }; }; then
  3211. ac_cv_header_stdc=yes
  3212. else
  3213. echo "$as_me: failed program was:" >&5
  3214. sed 's/^/| /' conftest.$ac_ext >&5
  3215. ac_cv_header_stdc=no
  3216. fi
  3217. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3218. if test $ac_cv_header_stdc = yes; then
  3219. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3220. cat >conftest.$ac_ext <<_ACEOF
  3221. /* confdefs.h. */
  3222. _ACEOF
  3223. cat confdefs.h >>conftest.$ac_ext
  3224. cat >>conftest.$ac_ext <<_ACEOF
  3225. /* end confdefs.h. */
  3226. #include <string.h>
  3227. _ACEOF
  3228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3229. $EGREP "memchr" >/dev/null 2>&1; then
  3230. :
  3231. else
  3232. ac_cv_header_stdc=no
  3233. fi
  3234. rm -f conftest*
  3235. fi
  3236. if test $ac_cv_header_stdc = yes; then
  3237. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3238. cat >conftest.$ac_ext <<_ACEOF
  3239. /* confdefs.h. */
  3240. _ACEOF
  3241. cat confdefs.h >>conftest.$ac_ext
  3242. cat >>conftest.$ac_ext <<_ACEOF
  3243. /* end confdefs.h. */
  3244. #include <stdlib.h>
  3245. _ACEOF
  3246. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3247. $EGREP "free" >/dev/null 2>&1; then
  3248. :
  3249. else
  3250. ac_cv_header_stdc=no
  3251. fi
  3252. rm -f conftest*
  3253. fi
  3254. if test $ac_cv_header_stdc = yes; then
  3255. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3256. if test "$cross_compiling" = yes; then
  3257. :
  3258. else
  3259. cat >conftest.$ac_ext <<_ACEOF
  3260. /* confdefs.h. */
  3261. _ACEOF
  3262. cat confdefs.h >>conftest.$ac_ext
  3263. cat >>conftest.$ac_ext <<_ACEOF
  3264. /* end confdefs.h. */
  3265. #include <ctype.h>
  3266. #if ((' ' & 0x0FF) == 0x020)
  3267. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3268. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3269. #else
  3270. # define ISLOWER(c) \
  3271. (('a' <= (c) && (c) <= 'i') \
  3272. || ('j' <= (c) && (c) <= 'r') \
  3273. || ('s' <= (c) && (c) <= 'z'))
  3274. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3275. #endif
  3276. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3277. int
  3278. main ()
  3279. {
  3280. int i;
  3281. for (i = 0; i < 256; i++)
  3282. if (XOR (islower (i), ISLOWER (i))
  3283. || toupper (i) != TOUPPER (i))
  3284. exit(2);
  3285. exit (0);
  3286. }
  3287. _ACEOF
  3288. rm -f conftest$ac_exeext
  3289. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3290. (eval $ac_link) 2>&5
  3291. ac_status=$?
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3295. (eval $ac_try) 2>&5
  3296. ac_status=$?
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); }; }; then
  3299. :
  3300. else
  3301. echo "$as_me: program exited with status $ac_status" >&5
  3302. echo "$as_me: failed program was:" >&5
  3303. sed 's/^/| /' conftest.$ac_ext >&5
  3304. ( exit $ac_status )
  3305. ac_cv_header_stdc=no
  3306. fi
  3307. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3308. fi
  3309. fi
  3310. fi
  3311. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3312. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3313. if test $ac_cv_header_stdc = yes; then
  3314. cat >>confdefs.h <<\_ACEOF
  3315. #define STDC_HEADERS 1
  3316. _ACEOF
  3317. fi
  3318. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3319. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3320. inttypes.h stdint.h unistd.h
  3321. do
  3322. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3323. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3324. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3325. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3326. echo $ECHO_N "(cached) $ECHO_C" >&6
  3327. else
  3328. cat >conftest.$ac_ext <<_ACEOF
  3329. /* confdefs.h. */
  3330. _ACEOF
  3331. cat confdefs.h >>conftest.$ac_ext
  3332. cat >>conftest.$ac_ext <<_ACEOF
  3333. /* end confdefs.h. */
  3334. $ac_includes_default
  3335. #include <$ac_header>
  3336. _ACEOF
  3337. rm -f conftest.$ac_objext
  3338. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3339. (eval $ac_compile) 2>conftest.er1
  3340. ac_status=$?
  3341. grep -v '^ *+' conftest.er1 >conftest.err
  3342. rm -f conftest.er1
  3343. cat conftest.err >&5
  3344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3345. (exit $ac_status); } &&
  3346. { ac_try='test -z "$ac_c_werror_flag"
  3347. || test ! -s conftest.err'
  3348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3349. (eval $ac_try) 2>&5
  3350. ac_status=$?
  3351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3352. (exit $ac_status); }; } &&
  3353. { ac_try='test -s conftest.$ac_objext'
  3354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3355. (eval $ac_try) 2>&5
  3356. ac_status=$?
  3357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3358. (exit $ac_status); }; }; then
  3359. eval "$as_ac_Header=yes"
  3360. else
  3361. echo "$as_me: failed program was:" >&5
  3362. sed 's/^/| /' conftest.$ac_ext >&5
  3363. eval "$as_ac_Header=no"
  3364. fi
  3365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3366. fi
  3367. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3368. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3369. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3370. cat >>confdefs.h <<_ACEOF
  3371. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3372. _ACEOF
  3373. fi
  3374. done
  3375. for ac_header in dlfcn.h
  3376. do
  3377. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3378. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3379. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3380. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3381. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3382. echo $ECHO_N "(cached) $ECHO_C" >&6
  3383. fi
  3384. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3385. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3386. else
  3387. # Is the header compilable?
  3388. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3389. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3390. cat >conftest.$ac_ext <<_ACEOF
  3391. /* confdefs.h. */
  3392. _ACEOF
  3393. cat confdefs.h >>conftest.$ac_ext
  3394. cat >>conftest.$ac_ext <<_ACEOF
  3395. /* end confdefs.h. */
  3396. $ac_includes_default
  3397. #include <$ac_header>
  3398. _ACEOF
  3399. rm -f conftest.$ac_objext
  3400. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3401. (eval $ac_compile) 2>conftest.er1
  3402. ac_status=$?
  3403. grep -v '^ *+' conftest.er1 >conftest.err
  3404. rm -f conftest.er1
  3405. cat conftest.err >&5
  3406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3407. (exit $ac_status); } &&
  3408. { ac_try='test -z "$ac_c_werror_flag"
  3409. || test ! -s conftest.err'
  3410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3411. (eval $ac_try) 2>&5
  3412. ac_status=$?
  3413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3414. (exit $ac_status); }; } &&
  3415. { ac_try='test -s conftest.$ac_objext'
  3416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3417. (eval $ac_try) 2>&5
  3418. ac_status=$?
  3419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3420. (exit $ac_status); }; }; then
  3421. ac_header_compiler=yes
  3422. else
  3423. echo "$as_me: failed program was:" >&5
  3424. sed 's/^/| /' conftest.$ac_ext >&5
  3425. ac_header_compiler=no
  3426. fi
  3427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3428. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3429. echo "${ECHO_T}$ac_header_compiler" >&6
  3430. # Is the header present?
  3431. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3432. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3433. cat >conftest.$ac_ext <<_ACEOF
  3434. /* confdefs.h. */
  3435. _ACEOF
  3436. cat confdefs.h >>conftest.$ac_ext
  3437. cat >>conftest.$ac_ext <<_ACEOF
  3438. /* end confdefs.h. */
  3439. #include <$ac_header>
  3440. _ACEOF
  3441. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3442. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3443. ac_status=$?
  3444. grep -v '^ *+' conftest.er1 >conftest.err
  3445. rm -f conftest.er1
  3446. cat conftest.err >&5
  3447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3448. (exit $ac_status); } >/dev/null; then
  3449. if test -s conftest.err; then
  3450. ac_cpp_err=$ac_c_preproc_warn_flag
  3451. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3452. else
  3453. ac_cpp_err=
  3454. fi
  3455. else
  3456. ac_cpp_err=yes
  3457. fi
  3458. if test -z "$ac_cpp_err"; then
  3459. ac_header_preproc=yes
  3460. else
  3461. echo "$as_me: failed program was:" >&5
  3462. sed 's/^/| /' conftest.$ac_ext >&5
  3463. ac_header_preproc=no
  3464. fi
  3465. rm -f conftest.err conftest.$ac_ext
  3466. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3467. echo "${ECHO_T}$ac_header_preproc" >&6
  3468. # So? What about this header?
  3469. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3470. yes:no: )
  3471. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3472. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3473. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3474. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3475. ac_header_preproc=yes
  3476. ;;
  3477. no:yes:* )
  3478. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3479. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3480. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3481. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3482. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3483. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3484. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3485. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3486. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3487. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3488. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3489. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3490. (
  3491. cat <<\_ASBOX
  3492. ## ------------------------------------------ ##
  3493. ## Report this to the AC_PACKAGE_NAME lists. ##
  3494. ## ------------------------------------------ ##
  3495. _ASBOX
  3496. ) |
  3497. sed "s/^/$as_me: WARNING: /" >&2
  3498. ;;
  3499. esac
  3500. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3501. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3502. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. eval "$as_ac_Header=\$ac_header_preproc"
  3506. fi
  3507. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3508. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3509. fi
  3510. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3511. cat >>confdefs.h <<_ACEOF
  3512. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3513. _ACEOF
  3514. fi
  3515. done
  3516. ac_ext=cc
  3517. ac_cpp='$CXXCPP $CPPFLAGS'
  3518. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3519. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3520. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3521. if test -n "$ac_tool_prefix"; then
  3522. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3523. do
  3524. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3525. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3526. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3527. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3528. if test "${ac_cv_prog_CXX+set}" = set; then
  3529. echo $ECHO_N "(cached) $ECHO_C" >&6
  3530. else
  3531. if test -n "$CXX"; then
  3532. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3533. else
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. for as_dir in $PATH
  3536. do
  3537. IFS=$as_save_IFS
  3538. test -z "$as_dir" && as_dir=.
  3539. for ac_exec_ext in '' $ac_executable_extensions; do
  3540. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3541. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3542. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3543. break 2
  3544. fi
  3545. done
  3546. done
  3547. fi
  3548. fi
  3549. CXX=$ac_cv_prog_CXX
  3550. if test -n "$CXX"; then
  3551. echo "$as_me:$LINENO: result: $CXX" >&5
  3552. echo "${ECHO_T}$CXX" >&6
  3553. else
  3554. echo "$as_me:$LINENO: result: no" >&5
  3555. echo "${ECHO_T}no" >&6
  3556. fi
  3557. test -n "$CXX" && break
  3558. done
  3559. fi
  3560. if test -z "$CXX"; then
  3561. ac_ct_CXX=$CXX
  3562. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3563. do
  3564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3565. set dummy $ac_prog; ac_word=$2
  3566. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3567. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3568. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3569. echo $ECHO_N "(cached) $ECHO_C" >&6
  3570. else
  3571. if test -n "$ac_ct_CXX"; then
  3572. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3573. else
  3574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3575. for as_dir in $PATH
  3576. do
  3577. IFS=$as_save_IFS
  3578. test -z "$as_dir" && as_dir=.
  3579. for ac_exec_ext in '' $ac_executable_extensions; do
  3580. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3581. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3582. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3583. break 2
  3584. fi
  3585. done
  3586. done
  3587. fi
  3588. fi
  3589. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3590. if test -n "$ac_ct_CXX"; then
  3591. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3592. echo "${ECHO_T}$ac_ct_CXX" >&6
  3593. else
  3594. echo "$as_me:$LINENO: result: no" >&5
  3595. echo "${ECHO_T}no" >&6
  3596. fi
  3597. test -n "$ac_ct_CXX" && break
  3598. done
  3599. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3600. CXX=$ac_ct_CXX
  3601. fi
  3602. # Provide some information about the compiler.
  3603. echo "$as_me:$LINENO:" \
  3604. "checking for C++ compiler version" >&5
  3605. ac_compiler=`set X $ac_compile; echo $2`
  3606. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3607. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3608. ac_status=$?
  3609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3610. (exit $ac_status); }
  3611. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3612. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3613. ac_status=$?
  3614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3615. (exit $ac_status); }
  3616. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3617. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3618. ac_status=$?
  3619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3620. (exit $ac_status); }
  3621. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3622. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3623. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3624. echo $ECHO_N "(cached) $ECHO_C" >&6
  3625. else
  3626. cat >conftest.$ac_ext <<_ACEOF
  3627. /* confdefs.h. */
  3628. _ACEOF
  3629. cat confdefs.h >>conftest.$ac_ext
  3630. cat >>conftest.$ac_ext <<_ACEOF
  3631. /* end confdefs.h. */
  3632. int
  3633. main ()
  3634. {
  3635. #ifndef __GNUC__
  3636. choke me
  3637. #endif
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. rm -f conftest.$ac_objext
  3643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3644. (eval $ac_compile) 2>conftest.er1
  3645. ac_status=$?
  3646. grep -v '^ *+' conftest.er1 >conftest.err
  3647. rm -f conftest.er1
  3648. cat conftest.err >&5
  3649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3650. (exit $ac_status); } &&
  3651. { ac_try='test -z "$ac_cxx_werror_flag"
  3652. || test ! -s conftest.err'
  3653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3654. (eval $ac_try) 2>&5
  3655. ac_status=$?
  3656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3657. (exit $ac_status); }; } &&
  3658. { ac_try='test -s conftest.$ac_objext'
  3659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3660. (eval $ac_try) 2>&5
  3661. ac_status=$?
  3662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663. (exit $ac_status); }; }; then
  3664. ac_compiler_gnu=yes
  3665. else
  3666. echo "$as_me: failed program was:" >&5
  3667. sed 's/^/| /' conftest.$ac_ext >&5
  3668. ac_compiler_gnu=no
  3669. fi
  3670. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3672. fi
  3673. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3674. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3675. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3676. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3677. ac_save_CXXFLAGS=$CXXFLAGS
  3678. CXXFLAGS="-g"
  3679. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3680. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3681. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3682. echo $ECHO_N "(cached) $ECHO_C" >&6
  3683. else
  3684. cat >conftest.$ac_ext <<_ACEOF
  3685. /* confdefs.h. */
  3686. _ACEOF
  3687. cat confdefs.h >>conftest.$ac_ext
  3688. cat >>conftest.$ac_ext <<_ACEOF
  3689. /* end confdefs.h. */
  3690. int
  3691. main ()
  3692. {
  3693. ;
  3694. return 0;
  3695. }
  3696. _ACEOF
  3697. rm -f conftest.$ac_objext
  3698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3699. (eval $ac_compile) 2>conftest.er1
  3700. ac_status=$?
  3701. grep -v '^ *+' conftest.er1 >conftest.err
  3702. rm -f conftest.er1
  3703. cat conftest.err >&5
  3704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3705. (exit $ac_status); } &&
  3706. { ac_try='test -z "$ac_cxx_werror_flag"
  3707. || test ! -s conftest.err'
  3708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3709. (eval $ac_try) 2>&5
  3710. ac_status=$?
  3711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3712. (exit $ac_status); }; } &&
  3713. { ac_try='test -s conftest.$ac_objext'
  3714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3715. (eval $ac_try) 2>&5
  3716. ac_status=$?
  3717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3718. (exit $ac_status); }; }; then
  3719. ac_cv_prog_cxx_g=yes
  3720. else
  3721. echo "$as_me: failed program was:" >&5
  3722. sed 's/^/| /' conftest.$ac_ext >&5
  3723. ac_cv_prog_cxx_g=no
  3724. fi
  3725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3726. fi
  3727. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3728. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3729. if test "$ac_test_CXXFLAGS" = set; then
  3730. CXXFLAGS=$ac_save_CXXFLAGS
  3731. elif test $ac_cv_prog_cxx_g = yes; then
  3732. if test "$GXX" = yes; then
  3733. CXXFLAGS="-g -O2"
  3734. else
  3735. CXXFLAGS="-g"
  3736. fi
  3737. else
  3738. if test "$GXX" = yes; then
  3739. CXXFLAGS="-O2"
  3740. else
  3741. CXXFLAGS=
  3742. fi
  3743. fi
  3744. for ac_declaration in \
  3745. '' \
  3746. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3747. 'extern "C" void std::exit (int); using std::exit;' \
  3748. 'extern "C" void exit (int) throw ();' \
  3749. 'extern "C" void exit (int);' \
  3750. 'void exit (int);'
  3751. do
  3752. cat >conftest.$ac_ext <<_ACEOF
  3753. /* confdefs.h. */
  3754. _ACEOF
  3755. cat confdefs.h >>conftest.$ac_ext
  3756. cat >>conftest.$ac_ext <<_ACEOF
  3757. /* end confdefs.h. */
  3758. $ac_declaration
  3759. #include <stdlib.h>
  3760. int
  3761. main ()
  3762. {
  3763. exit (42);
  3764. ;
  3765. return 0;
  3766. }
  3767. _ACEOF
  3768. rm -f conftest.$ac_objext
  3769. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3770. (eval $ac_compile) 2>conftest.er1
  3771. ac_status=$?
  3772. grep -v '^ *+' conftest.er1 >conftest.err
  3773. rm -f conftest.er1
  3774. cat conftest.err >&5
  3775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3776. (exit $ac_status); } &&
  3777. { ac_try='test -z "$ac_cxx_werror_flag"
  3778. || test ! -s conftest.err'
  3779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3780. (eval $ac_try) 2>&5
  3781. ac_status=$?
  3782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3783. (exit $ac_status); }; } &&
  3784. { ac_try='test -s conftest.$ac_objext'
  3785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3786. (eval $ac_try) 2>&5
  3787. ac_status=$?
  3788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3789. (exit $ac_status); }; }; then
  3790. :
  3791. else
  3792. echo "$as_me: failed program was:" >&5
  3793. sed 's/^/| /' conftest.$ac_ext >&5
  3794. continue
  3795. fi
  3796. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3797. cat >conftest.$ac_ext <<_ACEOF
  3798. /* confdefs.h. */
  3799. _ACEOF
  3800. cat confdefs.h >>conftest.$ac_ext
  3801. cat >>conftest.$ac_ext <<_ACEOF
  3802. /* end confdefs.h. */
  3803. $ac_declaration
  3804. int
  3805. main ()
  3806. {
  3807. exit (42);
  3808. ;
  3809. return 0;
  3810. }
  3811. _ACEOF
  3812. rm -f conftest.$ac_objext
  3813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3814. (eval $ac_compile) 2>conftest.er1
  3815. ac_status=$?
  3816. grep -v '^ *+' conftest.er1 >conftest.err
  3817. rm -f conftest.er1
  3818. cat conftest.err >&5
  3819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3820. (exit $ac_status); } &&
  3821. { ac_try='test -z "$ac_cxx_werror_flag"
  3822. || test ! -s conftest.err'
  3823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3824. (eval $ac_try) 2>&5
  3825. ac_status=$?
  3826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3827. (exit $ac_status); }; } &&
  3828. { ac_try='test -s conftest.$ac_objext'
  3829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3830. (eval $ac_try) 2>&5
  3831. ac_status=$?
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); }; }; then
  3834. break
  3835. else
  3836. echo "$as_me: failed program was:" >&5
  3837. sed 's/^/| /' conftest.$ac_ext >&5
  3838. fi
  3839. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3840. done
  3841. rm -f conftest*
  3842. if test -n "$ac_declaration"; then
  3843. echo '#ifdef __cplusplus' >>confdefs.h
  3844. echo $ac_declaration >>confdefs.h
  3845. echo '#endif' >>confdefs.h
  3846. fi
  3847. ac_ext=cc
  3848. ac_cpp='$CXXCPP $CPPFLAGS'
  3849. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3850. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3851. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3852. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3853. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3854. (test "X$CXX" != "Xg++"))) ; then
  3855. ac_ext=cc
  3856. ac_cpp='$CXXCPP $CPPFLAGS'
  3857. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3858. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3859. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3860. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3861. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  3862. if test -z "$CXXCPP"; then
  3863. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3864. echo $ECHO_N "(cached) $ECHO_C" >&6
  3865. else
  3866. # Double quotes because CXXCPP needs to be expanded
  3867. for CXXCPP in "$CXX -E" "/lib/cpp"
  3868. do
  3869. ac_preproc_ok=false
  3870. for ac_cxx_preproc_warn_flag in '' yes
  3871. do
  3872. # Use a header file that comes with gcc, so configuring glibc
  3873. # with a fresh cross-compiler works.
  3874. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3875. # <limits.h> exists even on freestanding compilers.
  3876. # On the NeXT, cc -E runs the code through the compiler's parser,
  3877. # not just through cpp. "Syntax error" is here to catch this case.
  3878. cat >conftest.$ac_ext <<_ACEOF
  3879. /* confdefs.h. */
  3880. _ACEOF
  3881. cat confdefs.h >>conftest.$ac_ext
  3882. cat >>conftest.$ac_ext <<_ACEOF
  3883. /* end confdefs.h. */
  3884. #ifdef __STDC__
  3885. # include <limits.h>
  3886. #else
  3887. # include <assert.h>
  3888. #endif
  3889. Syntax error
  3890. _ACEOF
  3891. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3892. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3893. ac_status=$?
  3894. grep -v '^ *+' conftest.er1 >conftest.err
  3895. rm -f conftest.er1
  3896. cat conftest.err >&5
  3897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3898. (exit $ac_status); } >/dev/null; then
  3899. if test -s conftest.err; then
  3900. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3901. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3902. else
  3903. ac_cpp_err=
  3904. fi
  3905. else
  3906. ac_cpp_err=yes
  3907. fi
  3908. if test -z "$ac_cpp_err"; then
  3909. :
  3910. else
  3911. echo "$as_me: failed program was:" >&5
  3912. sed 's/^/| /' conftest.$ac_ext >&5
  3913. # Broken: fails on valid input.
  3914. continue
  3915. fi
  3916. rm -f conftest.err conftest.$ac_ext
  3917. # OK, works on sane cases. Now check whether non-existent headers
  3918. # can be detected and how.
  3919. cat >conftest.$ac_ext <<_ACEOF
  3920. /* confdefs.h. */
  3921. _ACEOF
  3922. cat confdefs.h >>conftest.$ac_ext
  3923. cat >>conftest.$ac_ext <<_ACEOF
  3924. /* end confdefs.h. */
  3925. #include <ac_nonexistent.h>
  3926. _ACEOF
  3927. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3928. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3929. ac_status=$?
  3930. grep -v '^ *+' conftest.er1 >conftest.err
  3931. rm -f conftest.er1
  3932. cat conftest.err >&5
  3933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3934. (exit $ac_status); } >/dev/null; then
  3935. if test -s conftest.err; then
  3936. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3937. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3938. else
  3939. ac_cpp_err=
  3940. fi
  3941. else
  3942. ac_cpp_err=yes
  3943. fi
  3944. if test -z "$ac_cpp_err"; then
  3945. # Broken: success on invalid input.
  3946. continue
  3947. else
  3948. echo "$as_me: failed program was:" >&5
  3949. sed 's/^/| /' conftest.$ac_ext >&5
  3950. # Passes both tests.
  3951. ac_preproc_ok=:
  3952. break
  3953. fi
  3954. rm -f conftest.err conftest.$ac_ext
  3955. done
  3956. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3957. rm -f conftest.err conftest.$ac_ext
  3958. if $ac_preproc_ok; then
  3959. break
  3960. fi
  3961. done
  3962. ac_cv_prog_CXXCPP=$CXXCPP
  3963. fi
  3964. CXXCPP=$ac_cv_prog_CXXCPP
  3965. else
  3966. ac_cv_prog_CXXCPP=$CXXCPP
  3967. fi
  3968. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  3969. echo "${ECHO_T}$CXXCPP" >&6
  3970. ac_preproc_ok=false
  3971. for ac_cxx_preproc_warn_flag in '' yes
  3972. do
  3973. # Use a header file that comes with gcc, so configuring glibc
  3974. # with a fresh cross-compiler works.
  3975. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3976. # <limits.h> exists even on freestanding compilers.
  3977. # On the NeXT, cc -E runs the code through the compiler's parser,
  3978. # not just through cpp. "Syntax error" is here to catch this case.
  3979. cat >conftest.$ac_ext <<_ACEOF
  3980. /* confdefs.h. */
  3981. _ACEOF
  3982. cat confdefs.h >>conftest.$ac_ext
  3983. cat >>conftest.$ac_ext <<_ACEOF
  3984. /* end confdefs.h. */
  3985. #ifdef __STDC__
  3986. # include <limits.h>
  3987. #else
  3988. # include <assert.h>
  3989. #endif
  3990. Syntax error
  3991. _ACEOF
  3992. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3993. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3994. ac_status=$?
  3995. grep -v '^ *+' conftest.er1 >conftest.err
  3996. rm -f conftest.er1
  3997. cat conftest.err >&5
  3998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3999. (exit $ac_status); } >/dev/null; then
  4000. if test -s conftest.err; then
  4001. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4002. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4003. else
  4004. ac_cpp_err=
  4005. fi
  4006. else
  4007. ac_cpp_err=yes
  4008. fi
  4009. if test -z "$ac_cpp_err"; then
  4010. :
  4011. else
  4012. echo "$as_me: failed program was:" >&5
  4013. sed 's/^/| /' conftest.$ac_ext >&5
  4014. # Broken: fails on valid input.
  4015. continue
  4016. fi
  4017. rm -f conftest.err conftest.$ac_ext
  4018. # OK, works on sane cases. Now check whether non-existent headers
  4019. # can be detected and how.
  4020. cat >conftest.$ac_ext <<_ACEOF
  4021. /* confdefs.h. */
  4022. _ACEOF
  4023. cat confdefs.h >>conftest.$ac_ext
  4024. cat >>conftest.$ac_ext <<_ACEOF
  4025. /* end confdefs.h. */
  4026. #include <ac_nonexistent.h>
  4027. _ACEOF
  4028. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4029. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4030. ac_status=$?
  4031. grep -v '^ *+' conftest.er1 >conftest.err
  4032. rm -f conftest.er1
  4033. cat conftest.err >&5
  4034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4035. (exit $ac_status); } >/dev/null; then
  4036. if test -s conftest.err; then
  4037. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4038. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4039. else
  4040. ac_cpp_err=
  4041. fi
  4042. else
  4043. ac_cpp_err=yes
  4044. fi
  4045. if test -z "$ac_cpp_err"; then
  4046. # Broken: success on invalid input.
  4047. continue
  4048. else
  4049. echo "$as_me: failed program was:" >&5
  4050. sed 's/^/| /' conftest.$ac_ext >&5
  4051. # Passes both tests.
  4052. ac_preproc_ok=:
  4053. break
  4054. fi
  4055. rm -f conftest.err conftest.$ac_ext
  4056. done
  4057. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4058. rm -f conftest.err conftest.$ac_ext
  4059. if $ac_preproc_ok; then
  4060. :
  4061. else
  4062. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4063. See \`config.log' for more details." >&5
  4064. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4065. See \`config.log' for more details." >&2;}
  4066. { (exit 1); exit 1; }; }
  4067. fi
  4068. ac_ext=cc
  4069. ac_cpp='$CXXCPP $CPPFLAGS'
  4070. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4071. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4072. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4073. fi
  4074. ac_ext=f
  4075. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4076. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4077. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4078. if test -n "$ac_tool_prefix"; then
  4079. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4080. do
  4081. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4082. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4083. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4084. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4085. if test "${ac_cv_prog_F77+set}" = set; then
  4086. echo $ECHO_N "(cached) $ECHO_C" >&6
  4087. else
  4088. if test -n "$F77"; then
  4089. ac_cv_prog_F77="$F77" # Let the user override the test.
  4090. else
  4091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4092. for as_dir in $PATH
  4093. do
  4094. IFS=$as_save_IFS
  4095. test -z "$as_dir" && as_dir=.
  4096. for ac_exec_ext in '' $ac_executable_extensions; do
  4097. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4098. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4099. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4100. break 2
  4101. fi
  4102. done
  4103. done
  4104. fi
  4105. fi
  4106. F77=$ac_cv_prog_F77
  4107. if test -n "$F77"; then
  4108. echo "$as_me:$LINENO: result: $F77" >&5
  4109. echo "${ECHO_T}$F77" >&6
  4110. else
  4111. echo "$as_me:$LINENO: result: no" >&5
  4112. echo "${ECHO_T}no" >&6
  4113. fi
  4114. test -n "$F77" && break
  4115. done
  4116. fi
  4117. if test -z "$F77"; then
  4118. ac_ct_F77=$F77
  4119. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4120. do
  4121. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4122. set dummy $ac_prog; ac_word=$2
  4123. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4124. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4125. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4126. echo $ECHO_N "(cached) $ECHO_C" >&6
  4127. else
  4128. if test -n "$ac_ct_F77"; then
  4129. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4130. else
  4131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4132. for as_dir in $PATH
  4133. do
  4134. IFS=$as_save_IFS
  4135. test -z "$as_dir" && as_dir=.
  4136. for ac_exec_ext in '' $ac_executable_extensions; do
  4137. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4138. ac_cv_prog_ac_ct_F77="$ac_prog"
  4139. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4140. break 2
  4141. fi
  4142. done
  4143. done
  4144. fi
  4145. fi
  4146. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4147. if test -n "$ac_ct_F77"; then
  4148. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4149. echo "${ECHO_T}$ac_ct_F77" >&6
  4150. else
  4151. echo "$as_me:$LINENO: result: no" >&5
  4152. echo "${ECHO_T}no" >&6
  4153. fi
  4154. test -n "$ac_ct_F77" && break
  4155. done
  4156. F77=$ac_ct_F77
  4157. fi
  4158. # Provide some information about the compiler.
  4159. echo "$as_me:4570:" \
  4160. "checking for Fortran 77 compiler version" >&5
  4161. ac_compiler=`set X $ac_compile; echo $2`
  4162. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4163. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4164. ac_status=$?
  4165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4166. (exit $ac_status); }
  4167. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4168. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4169. ac_status=$?
  4170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4171. (exit $ac_status); }
  4172. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4173. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4174. ac_status=$?
  4175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4176. (exit $ac_status); }
  4177. rm -f a.out
  4178. # If we don't use `.F' as extension, the preprocessor is not run on the
  4179. # input file. (Note that this only needs to work for GNU compilers.)
  4180. ac_save_ext=$ac_ext
  4181. ac_ext=F
  4182. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4183. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4184. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4185. echo $ECHO_N "(cached) $ECHO_C" >&6
  4186. else
  4187. cat >conftest.$ac_ext <<_ACEOF
  4188. program main
  4189. #ifndef __GNUC__
  4190. choke me
  4191. #endif
  4192. end
  4193. _ACEOF
  4194. rm -f conftest.$ac_objext
  4195. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4196. (eval $ac_compile) 2>conftest.er1
  4197. ac_status=$?
  4198. grep -v '^ *+' conftest.er1 >conftest.err
  4199. rm -f conftest.er1
  4200. cat conftest.err >&5
  4201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4202. (exit $ac_status); } &&
  4203. { ac_try='test -z "$ac_f77_werror_flag"
  4204. || test ! -s conftest.err'
  4205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4206. (eval $ac_try) 2>&5
  4207. ac_status=$?
  4208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4209. (exit $ac_status); }; } &&
  4210. { ac_try='test -s conftest.$ac_objext'
  4211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4212. (eval $ac_try) 2>&5
  4213. ac_status=$?
  4214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4215. (exit $ac_status); }; }; then
  4216. ac_compiler_gnu=yes
  4217. else
  4218. echo "$as_me: failed program was:" >&5
  4219. sed 's/^/| /' conftest.$ac_ext >&5
  4220. ac_compiler_gnu=no
  4221. fi
  4222. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4223. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4224. fi
  4225. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4226. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4227. ac_ext=$ac_save_ext
  4228. ac_test_FFLAGS=${FFLAGS+set}
  4229. ac_save_FFLAGS=$FFLAGS
  4230. FFLAGS=
  4231. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4232. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4233. if test "${ac_cv_prog_f77_g+set}" = set; then
  4234. echo $ECHO_N "(cached) $ECHO_C" >&6
  4235. else
  4236. FFLAGS=-g
  4237. cat >conftest.$ac_ext <<_ACEOF
  4238. program main
  4239. end
  4240. _ACEOF
  4241. rm -f conftest.$ac_objext
  4242. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4243. (eval $ac_compile) 2>conftest.er1
  4244. ac_status=$?
  4245. grep -v '^ *+' conftest.er1 >conftest.err
  4246. rm -f conftest.er1
  4247. cat conftest.err >&5
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); } &&
  4250. { ac_try='test -z "$ac_f77_werror_flag"
  4251. || test ! -s conftest.err'
  4252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4253. (eval $ac_try) 2>&5
  4254. ac_status=$?
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); }; } &&
  4257. { ac_try='test -s conftest.$ac_objext'
  4258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4259. (eval $ac_try) 2>&5
  4260. ac_status=$?
  4261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4262. (exit $ac_status); }; }; then
  4263. ac_cv_prog_f77_g=yes
  4264. else
  4265. echo "$as_me: failed program was:" >&5
  4266. sed 's/^/| /' conftest.$ac_ext >&5
  4267. ac_cv_prog_f77_g=no
  4268. fi
  4269. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4270. fi
  4271. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4272. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4273. if test "$ac_test_FFLAGS" = set; then
  4274. FFLAGS=$ac_save_FFLAGS
  4275. elif test $ac_cv_prog_f77_g = yes; then
  4276. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4277. FFLAGS="-g -O2"
  4278. else
  4279. FFLAGS="-g"
  4280. fi
  4281. else
  4282. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4283. FFLAGS="-O2"
  4284. else
  4285. FFLAGS=
  4286. fi
  4287. fi
  4288. G77=`test $ac_compiler_gnu = yes && echo yes`
  4289. ac_ext=c
  4290. ac_cpp='$CPP $CPPFLAGS'
  4291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4294. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4295. # find the maximum length of command line arguments
  4296. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4297. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4298. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4299. echo $ECHO_N "(cached) $ECHO_C" >&6
  4300. else
  4301. i=0
  4302. teststring="ABCD"
  4303. case $build_os in
  4304. msdosdjgpp*)
  4305. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4306. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4307. # during glob expansion). Even if it were fixed, the result of this
  4308. # check would be larger than it should be.
  4309. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4310. ;;
  4311. gnu*)
  4312. # Under GNU Hurd, this test is not required because there is
  4313. # no limit to the length of command line arguments.
  4314. # Libtool will interpret -1 as no limit whatsoever
  4315. lt_cv_sys_max_cmd_len=-1;
  4316. ;;
  4317. cygwin* | mingw*)
  4318. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4319. # about 5 minutes as the teststring grows exponentially.
  4320. # Worse, since 9x/ME are not pre-emptively multitasking,
  4321. # you end up with a "frozen" computer, even though with patience
  4322. # the test eventually succeeds (with a max line length of 256k).
  4323. # Instead, let's just punt: use the minimum linelength reported by
  4324. # all of the supported platforms: 8192 (on NT/2K/XP).
  4325. lt_cv_sys_max_cmd_len=8192;
  4326. ;;
  4327. amigaos*)
  4328. # On AmigaOS with pdksh, this test takes hours, literally.
  4329. # So we just punt and use a minimum line length of 8192.
  4330. lt_cv_sys_max_cmd_len=8192;
  4331. ;;
  4332. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4333. # This has been around since 386BSD, at least. Likely further.
  4334. if test -x /sbin/sysctl; then
  4335. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4336. elif test -x /usr/sbin/sysctl; then
  4337. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4338. else
  4339. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  4340. fi
  4341. # And add a safety zone
  4342. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4343. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4344. ;;
  4345. osf*)
  4346. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4347. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4348. # nice to cause kernel panics so lets avoid the loop below.
  4349. # First set a reasonable default.
  4350. lt_cv_sys_max_cmd_len=16384
  4351. #
  4352. if test -x /sbin/sysconfig; then
  4353. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4354. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4355. esac
  4356. fi
  4357. ;;
  4358. *)
  4359. # If test is not a shell built-in, we'll probably end up computing a
  4360. # maximum length that is only half of the actual maximum length, but
  4361. # we can't tell.
  4362. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4363. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4364. = "XX$teststring") >/dev/null 2>&1 &&
  4365. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4366. lt_cv_sys_max_cmd_len=$new_result &&
  4367. test $i != 17 # 1/2 MB should be enough
  4368. do
  4369. i=`expr $i + 1`
  4370. teststring=$teststring$teststring
  4371. done
  4372. teststring=
  4373. # Add a significant safety factor because C++ compilers can tack on massive
  4374. # amounts of additional arguments before passing them to the linker.
  4375. # It appears as though 1/2 is a usable value.
  4376. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4377. ;;
  4378. esac
  4379. fi
  4380. if test -n $lt_cv_sys_max_cmd_len ; then
  4381. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4382. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4383. else
  4384. echo "$as_me:$LINENO: result: none" >&5
  4385. echo "${ECHO_T}none" >&6
  4386. fi
  4387. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4388. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4389. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4390. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4391. echo $ECHO_N "(cached) $ECHO_C" >&6
  4392. else
  4393. # These are sane defaults that work on at least a few old systems.
  4394. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4395. # Character class describing NM global symbol codes.
  4396. symcode='[BCDEGRST]'
  4397. # Regexp to match symbols that can be accessed directly from C.
  4398. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4399. # Transform an extracted symbol line into a proper C declaration
  4400. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4401. # Transform an extracted symbol line into symbol name and symbol address
  4402. 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'"
  4403. # Define system-specific variables.
  4404. case $host_os in
  4405. aix*)
  4406. symcode='[BCDT]'
  4407. ;;
  4408. cygwin* | mingw* | pw32*)
  4409. symcode='[ABCDGISTW]'
  4410. ;;
  4411. hpux*) # Its linker distinguishes data from code symbols
  4412. if test "$host_cpu" = ia64; then
  4413. symcode='[ABCDEGRST]'
  4414. fi
  4415. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4416. 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'"
  4417. ;;
  4418. linux*)
  4419. if test "$host_cpu" = ia64; then
  4420. symcode='[ABCDGIRSTW]'
  4421. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4422. 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'"
  4423. fi
  4424. ;;
  4425. irix* | nonstopux*)
  4426. symcode='[BCDEGRST]'
  4427. ;;
  4428. osf*)
  4429. symcode='[BCDEGQRST]'
  4430. ;;
  4431. solaris* | sysv5*)
  4432. symcode='[BDRT]'
  4433. ;;
  4434. sysv4)
  4435. symcode='[DFNSTU]'
  4436. ;;
  4437. esac
  4438. # Handle CRLF in mingw tool chain
  4439. opt_cr=
  4440. case $build_os in
  4441. mingw*)
  4442. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4443. ;;
  4444. esac
  4445. # If we're using GNU nm, then use its standard symbol codes.
  4446. case `$NM -V 2>&1` in
  4447. *GNU* | *'with BFD'*)
  4448. symcode='[ABCDGIRSTW]' ;;
  4449. esac
  4450. # Try without a prefix undercore, then with it.
  4451. for ac_symprfx in "" "_"; do
  4452. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4453. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4454. # Write the raw and C identifiers.
  4455. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4456. # Check to see that the pipe works correctly.
  4457. pipe_works=no
  4458. rm -f conftest*
  4459. cat > conftest.$ac_ext <<EOF
  4460. #ifdef __cplusplus
  4461. extern "C" {
  4462. #endif
  4463. char nm_test_var;
  4464. void nm_test_func(){}
  4465. #ifdef __cplusplus
  4466. }
  4467. #endif
  4468. int main(){nm_test_var='a';nm_test_func();return(0);}
  4469. EOF
  4470. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4471. (eval $ac_compile) 2>&5
  4472. ac_status=$?
  4473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4474. (exit $ac_status); }; then
  4475. # Now try to grab the symbols.
  4476. nlist=conftest.nm
  4477. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4478. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4479. ac_status=$?
  4480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4481. (exit $ac_status); } && test -s "$nlist"; then
  4482. # Try sorting and uniquifying the output.
  4483. if sort "$nlist" | uniq > "$nlist"T; then
  4484. mv -f "$nlist"T "$nlist"
  4485. else
  4486. rm -f "$nlist"T
  4487. fi
  4488. # Make sure that we snagged all the symbols we need.
  4489. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4490. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4491. cat <<EOF > conftest.$ac_ext
  4492. #ifdef __cplusplus
  4493. extern "C" {
  4494. #endif
  4495. EOF
  4496. # Now generate the symbol file.
  4497. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4498. cat <<EOF >> conftest.$ac_ext
  4499. #if defined (__STDC__) && __STDC__
  4500. # define lt_ptr_t void *
  4501. #else
  4502. # define lt_ptr_t char *
  4503. # define const
  4504. #endif
  4505. /* The mapping between symbol names and symbols. */
  4506. const struct {
  4507. const char *name;
  4508. lt_ptr_t address;
  4509. }
  4510. lt_preloaded_symbols[] =
  4511. {
  4512. EOF
  4513. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4514. cat <<\EOF >> conftest.$ac_ext
  4515. {0, (lt_ptr_t) 0}
  4516. };
  4517. #ifdef __cplusplus
  4518. }
  4519. #endif
  4520. EOF
  4521. # Now try linking the two files.
  4522. mv conftest.$ac_objext conftstm.$ac_objext
  4523. lt_save_LIBS="$LIBS"
  4524. lt_save_CFLAGS="$CFLAGS"
  4525. LIBS="conftstm.$ac_objext"
  4526. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4527. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4528. (eval $ac_link) 2>&5
  4529. ac_status=$?
  4530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4531. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4532. pipe_works=yes
  4533. fi
  4534. LIBS="$lt_save_LIBS"
  4535. CFLAGS="$lt_save_CFLAGS"
  4536. else
  4537. echo "cannot find nm_test_func in $nlist" >&5
  4538. fi
  4539. else
  4540. echo "cannot find nm_test_var in $nlist" >&5
  4541. fi
  4542. else
  4543. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4544. fi
  4545. else
  4546. echo "$progname: failed program was:" >&5
  4547. cat conftest.$ac_ext >&5
  4548. fi
  4549. rm -f conftest* conftst*
  4550. # Do not use the global_symbol_pipe unless it works.
  4551. if test "$pipe_works" = yes; then
  4552. break
  4553. else
  4554. lt_cv_sys_global_symbol_pipe=
  4555. fi
  4556. done
  4557. fi
  4558. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4559. lt_cv_sys_global_symbol_to_cdecl=
  4560. fi
  4561. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4562. echo "$as_me:$LINENO: result: failed" >&5
  4563. echo "${ECHO_T}failed" >&6
  4564. else
  4565. echo "$as_me:$LINENO: result: ok" >&5
  4566. echo "${ECHO_T}ok" >&6
  4567. fi
  4568. echo "$as_me:$LINENO: checking for objdir" >&5
  4569. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4570. if test "${lt_cv_objdir+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. rm -f .libs 2>/dev/null
  4574. mkdir .libs 2>/dev/null
  4575. if test -d .libs; then
  4576. lt_cv_objdir=.libs
  4577. else
  4578. # MS-DOS does not allow filenames that begin with a dot.
  4579. lt_cv_objdir=_libs
  4580. fi
  4581. rmdir .libs 2>/dev/null
  4582. fi
  4583. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  4584. echo "${ECHO_T}$lt_cv_objdir" >&6
  4585. objdir=$lt_cv_objdir
  4586. case $host_os in
  4587. aix3*)
  4588. # AIX sometimes has problems with the GCC collect2 program. For some
  4589. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4590. # vanish in a puff of smoke.
  4591. if test "X${COLLECT_NAMES+set}" != Xset; then
  4592. COLLECT_NAMES=
  4593. export COLLECT_NAMES
  4594. fi
  4595. ;;
  4596. esac
  4597. # Sed substitution that helps us do robust quoting. It backslashifies
  4598. # metacharacters that are still active within double-quoted strings.
  4599. Xsed='sed -e 1s/^X//'
  4600. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4601. # Same as above, but do not quote variable references.
  4602. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4603. # Sed substitution to delay expansion of an escaped shell variable in a
  4604. # double_quote_subst'ed string.
  4605. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4606. # Sed substitution to avoid accidental globbing in evaled expressions
  4607. no_glob_subst='s/\*/\\\*/g'
  4608. # Constants:
  4609. rm="rm -f"
  4610. # Global variables:
  4611. default_ofile=libtool
  4612. can_build_shared=yes
  4613. # All known linkers require a `.a' archive for static linking (except M$VC,
  4614. # which needs '.lib').
  4615. libext=a
  4616. ltmain="$ac_aux_dir/ltmain.sh"
  4617. ofile="$default_ofile"
  4618. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4619. if test -n "$ac_tool_prefix"; then
  4620. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4621. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4622. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4623. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4624. if test "${ac_cv_prog_AR+set}" = set; then
  4625. echo $ECHO_N "(cached) $ECHO_C" >&6
  4626. else
  4627. if test -n "$AR"; then
  4628. ac_cv_prog_AR="$AR" # Let the user override the test.
  4629. else
  4630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4631. for as_dir in $PATH
  4632. do
  4633. IFS=$as_save_IFS
  4634. test -z "$as_dir" && as_dir=.
  4635. for ac_exec_ext in '' $ac_executable_extensions; do
  4636. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4637. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4638. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4639. break 2
  4640. fi
  4641. done
  4642. done
  4643. fi
  4644. fi
  4645. AR=$ac_cv_prog_AR
  4646. if test -n "$AR"; then
  4647. echo "$as_me:$LINENO: result: $AR" >&5
  4648. echo "${ECHO_T}$AR" >&6
  4649. else
  4650. echo "$as_me:$LINENO: result: no" >&5
  4651. echo "${ECHO_T}no" >&6
  4652. fi
  4653. fi
  4654. if test -z "$ac_cv_prog_AR"; then
  4655. ac_ct_AR=$AR
  4656. # Extract the first word of "ar", so it can be a program name with args.
  4657. set dummy ar; ac_word=$2
  4658. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4659. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4660. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4661. echo $ECHO_N "(cached) $ECHO_C" >&6
  4662. else
  4663. if test -n "$ac_ct_AR"; then
  4664. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4665. else
  4666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4667. for as_dir in $PATH
  4668. do
  4669. IFS=$as_save_IFS
  4670. test -z "$as_dir" && as_dir=.
  4671. for ac_exec_ext in '' $ac_executable_extensions; do
  4672. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4673. ac_cv_prog_ac_ct_AR="ar"
  4674. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4675. break 2
  4676. fi
  4677. done
  4678. done
  4679. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  4680. fi
  4681. fi
  4682. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4683. if test -n "$ac_ct_AR"; then
  4684. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4685. echo "${ECHO_T}$ac_ct_AR" >&6
  4686. else
  4687. echo "$as_me:$LINENO: result: no" >&5
  4688. echo "${ECHO_T}no" >&6
  4689. fi
  4690. AR=$ac_ct_AR
  4691. else
  4692. AR="$ac_cv_prog_AR"
  4693. fi
  4694. if test -n "$ac_tool_prefix"; then
  4695. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4696. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4697. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4698. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4699. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4700. echo $ECHO_N "(cached) $ECHO_C" >&6
  4701. else
  4702. if test -n "$RANLIB"; then
  4703. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4704. else
  4705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4706. for as_dir in $PATH
  4707. do
  4708. IFS=$as_save_IFS
  4709. test -z "$as_dir" && as_dir=.
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4712. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4713. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4714. break 2
  4715. fi
  4716. done
  4717. done
  4718. fi
  4719. fi
  4720. RANLIB=$ac_cv_prog_RANLIB
  4721. if test -n "$RANLIB"; then
  4722. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4723. echo "${ECHO_T}$RANLIB" >&6
  4724. else
  4725. echo "$as_me:$LINENO: result: no" >&5
  4726. echo "${ECHO_T}no" >&6
  4727. fi
  4728. fi
  4729. if test -z "$ac_cv_prog_RANLIB"; then
  4730. ac_ct_RANLIB=$RANLIB
  4731. # Extract the first word of "ranlib", so it can be a program name with args.
  4732. set dummy ranlib; ac_word=$2
  4733. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4734. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4735. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4736. echo $ECHO_N "(cached) $ECHO_C" >&6
  4737. else
  4738. if test -n "$ac_ct_RANLIB"; then
  4739. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4740. else
  4741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4742. for as_dir in $PATH
  4743. do
  4744. IFS=$as_save_IFS
  4745. test -z "$as_dir" && as_dir=.
  4746. for ac_exec_ext in '' $ac_executable_extensions; do
  4747. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4748. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4749. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4750. break 2
  4751. fi
  4752. done
  4753. done
  4754. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4755. fi
  4756. fi
  4757. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4758. if test -n "$ac_ct_RANLIB"; then
  4759. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4760. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4761. else
  4762. echo "$as_me:$LINENO: result: no" >&5
  4763. echo "${ECHO_T}no" >&6
  4764. fi
  4765. RANLIB=$ac_ct_RANLIB
  4766. else
  4767. RANLIB="$ac_cv_prog_RANLIB"
  4768. fi
  4769. if test -n "$ac_tool_prefix"; then
  4770. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4771. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4772. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4773. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4774. if test "${ac_cv_prog_STRIP+set}" = set; then
  4775. echo $ECHO_N "(cached) $ECHO_C" >&6
  4776. else
  4777. if test -n "$STRIP"; then
  4778. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4779. else
  4780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4781. for as_dir in $PATH
  4782. do
  4783. IFS=$as_save_IFS
  4784. test -z "$as_dir" && as_dir=.
  4785. for ac_exec_ext in '' $ac_executable_extensions; do
  4786. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4787. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4788. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4789. break 2
  4790. fi
  4791. done
  4792. done
  4793. fi
  4794. fi
  4795. STRIP=$ac_cv_prog_STRIP
  4796. if test -n "$STRIP"; then
  4797. echo "$as_me:$LINENO: result: $STRIP" >&5
  4798. echo "${ECHO_T}$STRIP" >&6
  4799. else
  4800. echo "$as_me:$LINENO: result: no" >&5
  4801. echo "${ECHO_T}no" >&6
  4802. fi
  4803. fi
  4804. if test -z "$ac_cv_prog_STRIP"; then
  4805. ac_ct_STRIP=$STRIP
  4806. # Extract the first word of "strip", so it can be a program name with args.
  4807. set dummy strip; ac_word=$2
  4808. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4809. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4810. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4811. echo $ECHO_N "(cached) $ECHO_C" >&6
  4812. else
  4813. if test -n "$ac_ct_STRIP"; then
  4814. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4815. else
  4816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4817. for as_dir in $PATH
  4818. do
  4819. IFS=$as_save_IFS
  4820. test -z "$as_dir" && as_dir=.
  4821. for ac_exec_ext in '' $ac_executable_extensions; do
  4822. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4823. ac_cv_prog_ac_ct_STRIP="strip"
  4824. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4825. break 2
  4826. fi
  4827. done
  4828. done
  4829. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4830. fi
  4831. fi
  4832. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4833. if test -n "$ac_ct_STRIP"; then
  4834. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4835. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4836. else
  4837. echo "$as_me:$LINENO: result: no" >&5
  4838. echo "${ECHO_T}no" >&6
  4839. fi
  4840. STRIP=$ac_ct_STRIP
  4841. else
  4842. STRIP="$ac_cv_prog_STRIP"
  4843. fi
  4844. old_CC="$CC"
  4845. old_CFLAGS="$CFLAGS"
  4846. # Set sane defaults for various variables
  4847. test -z "$AR" && AR=ar
  4848. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4849. test -z "$AS" && AS=as
  4850. test -z "$CC" && CC=cc
  4851. test -z "$LTCC" && LTCC=$CC
  4852. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4853. test -z "$LD" && LD=ld
  4854. test -z "$LN_S" && LN_S="ln -s"
  4855. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4856. test -z "$NM" && NM=nm
  4857. test -z "$SED" && SED=sed
  4858. test -z "$OBJDUMP" && OBJDUMP=objdump
  4859. test -z "$RANLIB" && RANLIB=:
  4860. test -z "$STRIP" && STRIP=:
  4861. test -z "$ac_objext" && ac_objext=o
  4862. # Determine commands to create old-style static archives.
  4863. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4864. old_postinstall_cmds='chmod 644 $oldlib'
  4865. old_postuninstall_cmds=
  4866. if test -n "$RANLIB"; then
  4867. case $host_os in
  4868. openbsd*)
  4869. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  4870. ;;
  4871. *)
  4872. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  4873. ;;
  4874. esac
  4875. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4876. fi
  4877. for cc_temp in $compiler""; do
  4878. case $cc_temp in
  4879. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4880. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  4881. \-*) ;;
  4882. *) break;;
  4883. esac
  4884. done
  4885. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4886. # Only perform the check for file, if the check method requires it
  4887. case $deplibs_check_method in
  4888. file_magic*)
  4889. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4890. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4891. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4892. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4893. echo $ECHO_N "(cached) $ECHO_C" >&6
  4894. else
  4895. case $MAGIC_CMD in
  4896. [\\/*] | ?:[\\/]*)
  4897. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4898. ;;
  4899. *)
  4900. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4901. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4902. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4903. for ac_dir in $ac_dummy; do
  4904. IFS="$lt_save_ifs"
  4905. test -z "$ac_dir" && ac_dir=.
  4906. if test -f $ac_dir/${ac_tool_prefix}file; then
  4907. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4908. if test -n "$file_magic_test_file"; then
  4909. case $deplibs_check_method in
  4910. "file_magic "*)
  4911. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4912. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4913. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4914. $EGREP "$file_magic_regex" > /dev/null; then
  4915. :
  4916. else
  4917. cat <<EOF 1>&2
  4918. *** Warning: the command libtool uses to detect shared libraries,
  4919. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4920. *** The result is that libtool may fail to recognize shared libraries
  4921. *** as such. This will affect the creation of libtool libraries that
  4922. *** depend on shared libraries, but programs linked with such libtool
  4923. *** libraries will work regardless of this problem. Nevertheless, you
  4924. *** may want to report the problem to your system manager and/or to
  4925. *** bug-libtool@gnu.org
  4926. EOF
  4927. fi ;;
  4928. esac
  4929. fi
  4930. break
  4931. fi
  4932. done
  4933. IFS="$lt_save_ifs"
  4934. MAGIC_CMD="$lt_save_MAGIC_CMD"
  4935. ;;
  4936. esac
  4937. fi
  4938. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4939. if test -n "$MAGIC_CMD"; then
  4940. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4941. echo "${ECHO_T}$MAGIC_CMD" >&6
  4942. else
  4943. echo "$as_me:$LINENO: result: no" >&5
  4944. echo "${ECHO_T}no" >&6
  4945. fi
  4946. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4947. if test -n "$ac_tool_prefix"; then
  4948. echo "$as_me:$LINENO: checking for file" >&5
  4949. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4950. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4951. echo $ECHO_N "(cached) $ECHO_C" >&6
  4952. else
  4953. case $MAGIC_CMD in
  4954. [\\/*] | ?:[\\/]*)
  4955. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4956. ;;
  4957. *)
  4958. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4959. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4960. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4961. for ac_dir in $ac_dummy; do
  4962. IFS="$lt_save_ifs"
  4963. test -z "$ac_dir" && ac_dir=.
  4964. if test -f $ac_dir/file; then
  4965. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4966. if test -n "$file_magic_test_file"; then
  4967. case $deplibs_check_method in
  4968. "file_magic "*)
  4969. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4970. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4971. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4972. $EGREP "$file_magic_regex" > /dev/null; then
  4973. :
  4974. else
  4975. cat <<EOF 1>&2
  4976. *** Warning: the command libtool uses to detect shared libraries,
  4977. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4978. *** The result is that libtool may fail to recognize shared libraries
  4979. *** as such. This will affect the creation of libtool libraries that
  4980. *** depend on shared libraries, but programs linked with such libtool
  4981. *** libraries will work regardless of this problem. Nevertheless, you
  4982. *** may want to report the problem to your system manager and/or to
  4983. *** bug-libtool@gnu.org
  4984. EOF
  4985. fi ;;
  4986. esac
  4987. fi
  4988. break
  4989. fi
  4990. done
  4991. IFS="$lt_save_ifs"
  4992. MAGIC_CMD="$lt_save_MAGIC_CMD"
  4993. ;;
  4994. esac
  4995. fi
  4996. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4997. if test -n "$MAGIC_CMD"; then
  4998. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4999. echo "${ECHO_T}$MAGIC_CMD" >&6
  5000. else
  5001. echo "$as_me:$LINENO: result: no" >&5
  5002. echo "${ECHO_T}no" >&6
  5003. fi
  5004. else
  5005. MAGIC_CMD=:
  5006. fi
  5007. fi
  5008. fi
  5009. ;;
  5010. esac
  5011. enable_dlopen=no
  5012. enable_win32_dll=no
  5013. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5014. if test "${enable_libtool_lock+set}" = set; then
  5015. enableval="$enable_libtool_lock"
  5016. fi;
  5017. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5018. # Check whether --with-pic or --without-pic was given.
  5019. if test "${with_pic+set}" = set; then
  5020. withval="$with_pic"
  5021. pic_mode="$withval"
  5022. else
  5023. pic_mode=default
  5024. fi;
  5025. test -z "$pic_mode" && pic_mode=default
  5026. # Use C for the default configuration in the libtool script
  5027. tagname=
  5028. lt_save_CC="$CC"
  5029. ac_ext=c
  5030. ac_cpp='$CPP $CPPFLAGS'
  5031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5034. # Source file extension for C test sources.
  5035. ac_ext=c
  5036. # Object file extension for compiled C test sources.
  5037. objext=o
  5038. objext=$objext
  5039. # Code to be used in simple compile tests
  5040. lt_simple_compile_test_code="int some_variable = 0;\n"
  5041. # Code to be used in simple link tests
  5042. lt_simple_link_test_code='int main(){return(0);}\n'
  5043. # If no C compiler was specified, use CC.
  5044. LTCC=${LTCC-"$CC"}
  5045. # Allow CC to be a program name with arguments.
  5046. compiler=$CC
  5047. # save warnings/boilerplate of simple test code
  5048. ac_outfile=conftest.$ac_objext
  5049. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5050. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5051. _lt_compiler_boilerplate=`cat conftest.err`
  5052. $rm conftest*
  5053. ac_outfile=conftest.$ac_objext
  5054. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5055. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5056. _lt_linker_boilerplate=`cat conftest.err`
  5057. $rm conftest*
  5058. #
  5059. # Check for any special shared library compilation flags.
  5060. #
  5061. lt_prog_cc_shlib=
  5062. if test "$GCC" = no; then
  5063. case $host_os in
  5064. sco3.2v5*)
  5065. lt_prog_cc_shlib='-belf'
  5066. ;;
  5067. esac
  5068. fi
  5069. if test -n "$lt_prog_cc_shlib"; then
  5070. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5071. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5072. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5073. else
  5074. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5075. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5076. lt_cv_prog_cc_can_build_shared=no
  5077. fi
  5078. fi
  5079. #
  5080. # Check to make sure the static flag actually works.
  5081. #
  5082. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5083. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  5084. if test "${lt_prog_compiler_static_works+set}" = set; then
  5085. echo $ECHO_N "(cached) $ECHO_C" >&6
  5086. else
  5087. lt_prog_compiler_static_works=no
  5088. save_LDFLAGS="$LDFLAGS"
  5089. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5090. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5091. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5092. # The compiler can only warn and ignore the option if not recognized
  5093. # So say no if there are warnings
  5094. if test -s conftest.err; then
  5095. # Append any errors to the config.log.
  5096. cat conftest.err 1>&5
  5097. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  5098. $SED '/^$/d' conftest.err >conftest.er2
  5099. if diff conftest.exp conftest.er2 >/dev/null; then
  5100. lt_prog_compiler_static_works=yes
  5101. fi
  5102. else
  5103. lt_prog_compiler_static_works=yes
  5104. fi
  5105. fi
  5106. $rm conftest*
  5107. LDFLAGS="$save_LDFLAGS"
  5108. fi
  5109. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5110. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5111. if test x"$lt_prog_compiler_static_works" = xyes; then
  5112. :
  5113. else
  5114. lt_prog_compiler_static=
  5115. fi
  5116. ## CAVEAT EMPTOR:
  5117. ## There is no encapsulation within the following macros, do not change
  5118. ## the running order or otherwise move them around unless you know exactly
  5119. ## what you are doing...
  5120. lt_prog_compiler_no_builtin_flag=
  5121. if test "$GCC" = yes; then
  5122. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5123. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5124. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5125. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5126. echo $ECHO_N "(cached) $ECHO_C" >&6
  5127. else
  5128. lt_cv_prog_compiler_rtti_exceptions=no
  5129. ac_outfile=conftest.$ac_objext
  5130. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5131. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5132. # Insert the option either (1) after the last *FLAGS variable, or
  5133. # (2) before a word containing "conftest.", or (3) at the end.
  5134. # Note that $ac_compile itself does not contain backslashes and begins
  5135. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5136. # The option is referenced via a variable to avoid confusing sed.
  5137. lt_compile=`echo "$ac_compile" | $SED \
  5138. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5139. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5140. -e 's:$: $lt_compiler_flag:'`
  5141. (eval echo "\"\$as_me:5672: $lt_compile\"" >&5)
  5142. (eval "$lt_compile" 2>conftest.err)
  5143. ac_status=$?
  5144. cat conftest.err >&5
  5145. echo "$as_me:5676: \$? = $ac_status" >&5
  5146. if (exit $ac_status) && test -s "$ac_outfile"; then
  5147. # The compiler can only warn and ignore the option if not recognized
  5148. # So say no if there are warnings other than the usual output.
  5149. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5150. $SED '/^$/d' conftest.err >conftest.er2
  5151. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5152. lt_cv_prog_compiler_rtti_exceptions=yes
  5153. fi
  5154. fi
  5155. $rm conftest*
  5156. fi
  5157. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5158. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5159. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5160. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5161. else
  5162. :
  5163. fi
  5164. fi
  5165. lt_prog_compiler_wl=
  5166. lt_prog_compiler_pic=
  5167. lt_prog_compiler_static=
  5168. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5169. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5170. if test "$GCC" = yes; then
  5171. lt_prog_compiler_wl='-Wl,'
  5172. lt_prog_compiler_static='-static'
  5173. case $host_os in
  5174. aix*)
  5175. # All AIX code is PIC.
  5176. if test "$host_cpu" = ia64; then
  5177. # AIX 5 now supports IA64 processor
  5178. lt_prog_compiler_static='-Bstatic'
  5179. fi
  5180. ;;
  5181. amigaos*)
  5182. # FIXME: we need at least 68020 code to build shared libraries, but
  5183. # adding the `-m68020' flag to GCC prevents building anything better,
  5184. # like `-m68040'.
  5185. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5186. ;;
  5187. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5188. # PIC is the default for these OSes.
  5189. ;;
  5190. mingw* | pw32* | os2*)
  5191. # This hack is so that the source file can tell whether it is being
  5192. # built for inclusion in a dll (and should export symbols for example).
  5193. lt_prog_compiler_pic='-DDLL_EXPORT'
  5194. ;;
  5195. darwin* | rhapsody*)
  5196. # PIC is the default on this platform
  5197. # Common symbols not allowed in MH_DYLIB files
  5198. lt_prog_compiler_pic='-fno-common'
  5199. ;;
  5200. msdosdjgpp*)
  5201. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5202. # on systems that don't support them.
  5203. lt_prog_compiler_can_build_shared=no
  5204. enable_shared=no
  5205. ;;
  5206. sysv4*MP*)
  5207. if test -d /usr/nec; then
  5208. lt_prog_compiler_pic=-Kconform_pic
  5209. fi
  5210. ;;
  5211. hpux*)
  5212. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5213. # not for PA HP-UX.
  5214. case "$host_cpu" in
  5215. hppa*64*|ia64*)
  5216. # +Z the default
  5217. ;;
  5218. *)
  5219. lt_prog_compiler_pic='-fPIC'
  5220. ;;
  5221. esac
  5222. ;;
  5223. *)
  5224. lt_prog_compiler_pic='-fPIC'
  5225. ;;
  5226. esac
  5227. else
  5228. # PORTME Check for flag to pass linker flags through the system compiler.
  5229. case $host_os in
  5230. aix*)
  5231. lt_prog_compiler_wl='-Wl,'
  5232. if test "$host_cpu" = ia64; then
  5233. # AIX 5 now supports IA64 processor
  5234. lt_prog_compiler_static='-Bstatic'
  5235. else
  5236. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5237. fi
  5238. ;;
  5239. darwin*)
  5240. # PIC is the default on this platform
  5241. # Common symbols not allowed in MH_DYLIB files
  5242. case $cc_basename in
  5243. xlc*)
  5244. lt_prog_compiler_pic='-qnocommon'
  5245. lt_prog_compiler_wl='-Wl,'
  5246. ;;
  5247. esac
  5248. ;;
  5249. mingw* | pw32* | os2*)
  5250. # This hack is so that the source file can tell whether it is being
  5251. # built for inclusion in a dll (and should export symbols for example).
  5252. lt_prog_compiler_pic='-DDLL_EXPORT'
  5253. ;;
  5254. hpux9* | hpux10* | hpux11*)
  5255. lt_prog_compiler_wl='-Wl,'
  5256. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5257. # not for PA HP-UX.
  5258. case "$host_cpu" in
  5259. hppa*64*|ia64*)
  5260. # +Z the default
  5261. ;;
  5262. *)
  5263. lt_prog_compiler_pic='+Z'
  5264. ;;
  5265. esac
  5266. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5267. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5268. ;;
  5269. irix5* | irix6* | nonstopux*)
  5270. lt_prog_compiler_wl='-Wl,'
  5271. # PIC (with -KPIC) is the default.
  5272. lt_prog_compiler_static='-non_shared'
  5273. ;;
  5274. newsos6)
  5275. lt_prog_compiler_pic='-KPIC'
  5276. lt_prog_compiler_static='-Bstatic'
  5277. ;;
  5278. linux*)
  5279. case $cc_basename in
  5280. icc* | ecc*)
  5281. lt_prog_compiler_wl='-Wl,'
  5282. lt_prog_compiler_pic='-KPIC'
  5283. lt_prog_compiler_static='-static'
  5284. ;;
  5285. pgcc* | pgf77* | pgf90*)
  5286. # Portland Group compilers (*not* the Pentium gcc compiler,
  5287. # which looks to be a dead project)
  5288. lt_prog_compiler_wl='-Wl,'
  5289. lt_prog_compiler_pic='-fpic'
  5290. lt_prog_compiler_static='-static'
  5291. ;;
  5292. ccc*)
  5293. lt_prog_compiler_wl='-Wl,'
  5294. # All Alpha code is PIC.
  5295. lt_prog_compiler_static='-non_shared'
  5296. ;;
  5297. esac
  5298. ;;
  5299. osf3* | osf4* | osf5*)
  5300. lt_prog_compiler_wl='-Wl,'
  5301. # All OSF/1 code is PIC.
  5302. lt_prog_compiler_static='-non_shared'
  5303. ;;
  5304. sco3.2v5*)
  5305. lt_prog_compiler_pic='-Kpic'
  5306. lt_prog_compiler_static='-dn'
  5307. ;;
  5308. solaris*)
  5309. lt_prog_compiler_pic='-KPIC'
  5310. lt_prog_compiler_static='-Bstatic'
  5311. case $cc_basename in
  5312. f77* | f90* | f95*)
  5313. lt_prog_compiler_wl='-Qoption ld ';;
  5314. *)
  5315. lt_prog_compiler_wl='-Wl,';;
  5316. esac
  5317. ;;
  5318. sunos4*)
  5319. lt_prog_compiler_wl='-Qoption ld '
  5320. lt_prog_compiler_pic='-PIC'
  5321. lt_prog_compiler_static='-Bstatic'
  5322. ;;
  5323. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5324. lt_prog_compiler_wl='-Wl,'
  5325. lt_prog_compiler_pic='-KPIC'
  5326. lt_prog_compiler_static='-Bstatic'
  5327. ;;
  5328. sysv4*MP*)
  5329. if test -d /usr/nec ;then
  5330. lt_prog_compiler_pic='-Kconform_pic'
  5331. lt_prog_compiler_static='-Bstatic'
  5332. fi
  5333. ;;
  5334. unicos*)
  5335. lt_prog_compiler_wl='-Wl,'
  5336. lt_prog_compiler_can_build_shared=no
  5337. ;;
  5338. uts4*)
  5339. lt_prog_compiler_pic='-pic'
  5340. lt_prog_compiler_static='-Bstatic'
  5341. ;;
  5342. *)
  5343. lt_prog_compiler_can_build_shared=no
  5344. ;;
  5345. esac
  5346. fi
  5347. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5348. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5349. #
  5350. # Check to make sure the PIC flag actually works.
  5351. #
  5352. if test -n "$lt_prog_compiler_pic"; then
  5353. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5354. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5355. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5356. echo $ECHO_N "(cached) $ECHO_C" >&6
  5357. else
  5358. lt_prog_compiler_pic_works=no
  5359. ac_outfile=conftest.$ac_objext
  5360. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5361. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5362. # Insert the option either (1) after the last *FLAGS variable, or
  5363. # (2) before a word containing "conftest.", or (3) at the end.
  5364. # Note that $ac_compile itself does not contain backslashes and begins
  5365. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5366. # The option is referenced via a variable to avoid confusing sed.
  5367. lt_compile=`echo "$ac_compile" | $SED \
  5368. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5370. -e 's:$: $lt_compiler_flag:'`
  5371. (eval echo "\"\$as_me:5934: $lt_compile\"" >&5)
  5372. (eval "$lt_compile" 2>conftest.err)
  5373. ac_status=$?
  5374. cat conftest.err >&5
  5375. echo "$as_me:5938: \$? = $ac_status" >&5
  5376. if (exit $ac_status) && test -s "$ac_outfile"; then
  5377. # The compiler can only warn and ignore the option if not recognized
  5378. # So say no if there are warnings other than the usual output.
  5379. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5380. $SED '/^$/d' conftest.err >conftest.er2
  5381. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5382. lt_prog_compiler_pic_works=yes
  5383. fi
  5384. fi
  5385. $rm conftest*
  5386. fi
  5387. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5388. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5389. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5390. case $lt_prog_compiler_pic in
  5391. "" | " "*) ;;
  5392. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5393. esac
  5394. else
  5395. lt_prog_compiler_pic=
  5396. lt_prog_compiler_can_build_shared=no
  5397. fi
  5398. fi
  5399. case "$host_os" in
  5400. # For platforms which do not support PIC, -DPIC is meaningless:
  5401. *djgpp*)
  5402. lt_prog_compiler_pic=
  5403. ;;
  5404. *)
  5405. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5406. ;;
  5407. esac
  5408. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5409. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5410. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5411. echo $ECHO_N "(cached) $ECHO_C" >&6
  5412. else
  5413. lt_cv_prog_compiler_c_o=no
  5414. $rm -r conftest 2>/dev/null
  5415. mkdir conftest
  5416. cd conftest
  5417. mkdir out
  5418. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5419. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5420. # Insert the option either (1) after the last *FLAGS variable, or
  5421. # (2) before a word containing "conftest.", or (3) at the end.
  5422. # Note that $ac_compile itself does not contain backslashes and begins
  5423. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5424. lt_compile=`echo "$ac_compile" | $SED \
  5425. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5426. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5427. -e 's:$: $lt_compiler_flag:'`
  5428. (eval echo "\"\$as_me:5996: $lt_compile\"" >&5)
  5429. (eval "$lt_compile" 2>out/conftest.err)
  5430. ac_status=$?
  5431. cat out/conftest.err >&5
  5432. echo "$as_me:6000: \$? = $ac_status" >&5
  5433. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5434. then
  5435. # The compiler can only warn and ignore the option if not recognized
  5436. # So say no if there are warnings
  5437. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  5438. $SED '/^$/d' out/conftest.err >out/conftest.er2
  5439. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5440. lt_cv_prog_compiler_c_o=yes
  5441. fi
  5442. fi
  5443. chmod u+w .
  5444. $rm conftest*
  5445. # SGI C++ compiler will create directory out/ii_files/ for
  5446. # template instantiation
  5447. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5448. $rm out/* && rmdir out
  5449. cd ..
  5450. rmdir conftest
  5451. $rm conftest*
  5452. fi
  5453. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5454. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  5455. hard_links="nottested"
  5456. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5457. # do not overwrite the value of need_locks provided by the user
  5458. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5459. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5460. hard_links=yes
  5461. $rm conftest*
  5462. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5463. touch conftest.a
  5464. ln conftest.a conftest.b 2>&5 || hard_links=no
  5465. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5466. echo "$as_me:$LINENO: result: $hard_links" >&5
  5467. echo "${ECHO_T}$hard_links" >&6
  5468. if test "$hard_links" = no; then
  5469. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5470. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5471. need_locks=warn
  5472. fi
  5473. else
  5474. need_locks=no
  5475. fi
  5476. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5477. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  5478. runpath_var=
  5479. allow_undefined_flag=
  5480. enable_shared_with_static_runtimes=no
  5481. archive_cmds=
  5482. archive_expsym_cmds=
  5483. old_archive_From_new_cmds=
  5484. old_archive_from_expsyms_cmds=
  5485. export_dynamic_flag_spec=
  5486. whole_archive_flag_spec=
  5487. thread_safe_flag_spec=
  5488. hardcode_libdir_flag_spec=
  5489. hardcode_libdir_flag_spec_ld=
  5490. hardcode_libdir_separator=
  5491. hardcode_direct=no
  5492. hardcode_minus_L=no
  5493. hardcode_shlibpath_var=unsupported
  5494. link_all_deplibs=unknown
  5495. hardcode_automatic=no
  5496. module_cmds=
  5497. module_expsym_cmds=
  5498. always_export_symbols=no
  5499. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5500. # include_expsyms should be a list of space-separated symbols to be *always*
  5501. # included in the symbol list
  5502. include_expsyms=
  5503. # exclude_expsyms can be an extended regexp of symbols to exclude
  5504. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5505. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5506. # as well as any symbol that contains `d'.
  5507. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5508. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5509. # platforms (ab)use it in PIC code, but their linkers get confused if
  5510. # the symbol is explicitly referenced. Since portable code cannot
  5511. # rely on this symbol name, it's probably fine to never include it in
  5512. # preloaded symbol tables.
  5513. extract_expsyms_cmds=
  5514. # Just being paranoid about ensuring that cc_basename is set.
  5515. for cc_temp in $compiler""; do
  5516. case $cc_temp in
  5517. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5518. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5519. \-*) ;;
  5520. *) break;;
  5521. esac
  5522. done
  5523. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5524. case $host_os in
  5525. cygwin* | mingw* | pw32*)
  5526. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5527. # When not using gcc, we currently assume that we are using
  5528. # Microsoft Visual C++.
  5529. if test "$GCC" != yes; then
  5530. with_gnu_ld=no
  5531. fi
  5532. ;;
  5533. openbsd*)
  5534. with_gnu_ld=no
  5535. ;;
  5536. esac
  5537. ld_shlibs=yes
  5538. if test "$with_gnu_ld" = yes; then
  5539. # If archive_cmds runs LD, not CC, wlarc should be empty
  5540. wlarc='${wl}'
  5541. # Set some defaults for GNU ld with shared library support. These
  5542. # are reset later if shared libraries are not supported. Putting them
  5543. # here allows them to be overridden if necessary.
  5544. runpath_var=LD_RUN_PATH
  5545. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5546. export_dynamic_flag_spec='${wl}--export-dynamic'
  5547. # ancient GNU ld didn't support --whole-archive et. al.
  5548. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5549. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5550. else
  5551. whole_archive_flag_spec=
  5552. fi
  5553. supports_anon_versioning=no
  5554. case `$LD -v 2>/dev/null` in
  5555. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5556. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5557. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5558. *\ 2.11.*) ;; # other 2.11 versions
  5559. *) supports_anon_versioning=yes ;;
  5560. esac
  5561. # See if GNU ld supports shared libraries.
  5562. case $host_os in
  5563. aix3* | aix4* | aix5*)
  5564. # On AIX/PPC, the GNU linker is very broken
  5565. if test "$host_cpu" != ia64; then
  5566. ld_shlibs=no
  5567. cat <<EOF 1>&2
  5568. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5569. *** to be unable to reliably create shared libraries on AIX.
  5570. *** Therefore, libtool is disabling shared libraries support. If you
  5571. *** really care for shared libraries, you may want to modify your PATH
  5572. *** so that a non-GNU linker is found, and then restart.
  5573. EOF
  5574. fi
  5575. ;;
  5576. amigaos*)
  5577. 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)'
  5578. hardcode_libdir_flag_spec='-L$libdir'
  5579. hardcode_minus_L=yes
  5580. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5581. # that the semantics of dynamic libraries on AmigaOS, at least up
  5582. # to version 4, is to share data among multiple programs linked
  5583. # with the same dynamic library. Since this doesn't match the
  5584. # behavior of shared libraries on other platforms, we can't use
  5585. # them.
  5586. ld_shlibs=no
  5587. ;;
  5588. beos*)
  5589. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5590. allow_undefined_flag=unsupported
  5591. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5592. # support --undefined. This deserves some investigation. FIXME
  5593. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5594. else
  5595. ld_shlibs=no
  5596. fi
  5597. ;;
  5598. cygwin* | mingw* | pw32*)
  5599. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5600. # as there is no search path for DLLs.
  5601. hardcode_libdir_flag_spec='-L$libdir'
  5602. allow_undefined_flag=unsupported
  5603. always_export_symbols=no
  5604. enable_shared_with_static_runtimes=yes
  5605. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  5606. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5607. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5608. # If the export-symbols file already is a .def file (1st line
  5609. # is EXPORTS), use it as is; otherwise, prepend...
  5610. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5611. cp $export_symbols $output_objdir/$soname.def;
  5612. else
  5613. echo EXPORTS > $output_objdir/$soname.def;
  5614. cat $export_symbols >> $output_objdir/$soname.def;
  5615. fi~
  5616. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5617. else
  5618. ld_shlibs=no
  5619. fi
  5620. ;;
  5621. linux*)
  5622. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5623. tmp_addflag=
  5624. case $cc_basename,$host_cpu in
  5625. pgcc*) # Portland Group C compiler
  5626. 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'
  5627. tmp_addflag=' $pic_flag'
  5628. ;;
  5629. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  5630. 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'
  5631. tmp_addflag=' $pic_flag -Mnomain' ;;
  5632. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5633. tmp_addflag=' -i_dynamic' ;;
  5634. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5635. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5636. ifc* | ifort*) # Intel Fortran compiler
  5637. tmp_addflag=' -nofor_main' ;;
  5638. esac
  5639. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5640. if test $supports_anon_versioning = yes; then
  5641. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  5642. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5643. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5644. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5645. fi
  5646. else
  5647. ld_shlibs=no
  5648. fi
  5649. ;;
  5650. netbsd*)
  5651. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5652. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5653. wlarc=
  5654. else
  5655. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5656. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5657. fi
  5658. ;;
  5659. solaris* | sysv5*)
  5660. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5661. ld_shlibs=no
  5662. cat <<EOF 1>&2
  5663. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5664. *** create shared libraries on Solaris systems. Therefore, libtool
  5665. *** is disabling shared libraries support. We urge you to upgrade GNU
  5666. *** binutils to release 2.9.1 or newer. Another option is to modify
  5667. *** your PATH or compiler configuration so that the native linker is
  5668. *** used, and then restart.
  5669. EOF
  5670. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5671. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5672. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5673. else
  5674. ld_shlibs=no
  5675. fi
  5676. ;;
  5677. sunos4*)
  5678. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5679. wlarc=
  5680. hardcode_direct=yes
  5681. hardcode_shlibpath_var=no
  5682. ;;
  5683. *)
  5684. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5685. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5686. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5687. else
  5688. ld_shlibs=no
  5689. fi
  5690. ;;
  5691. esac
  5692. if test "$ld_shlibs" = no; then
  5693. runpath_var=
  5694. hardcode_libdir_flag_spec=
  5695. export_dynamic_flag_spec=
  5696. whole_archive_flag_spec=
  5697. fi
  5698. else
  5699. # PORTME fill in a description of your system's linker (not GNU ld)
  5700. case $host_os in
  5701. aix3*)
  5702. allow_undefined_flag=unsupported
  5703. always_export_symbols=yes
  5704. 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'
  5705. # Note: this linker hardcodes the directories in LIBPATH if there
  5706. # are no directories specified by -L.
  5707. hardcode_minus_L=yes
  5708. if test "$GCC" = yes && test -z "$link_static_flag"; then
  5709. # Neither direct hardcoding nor static linking is supported with a
  5710. # broken collect2.
  5711. hardcode_direct=unsupported
  5712. fi
  5713. ;;
  5714. aix4* | aix5*)
  5715. if test "$host_cpu" = ia64; then
  5716. # On IA64, the linker does run time linking by default, so we don't
  5717. # have to do anything special.
  5718. aix_use_runtimelinking=no
  5719. exp_sym_flag='-Bexport'
  5720. no_entry_flag=""
  5721. else
  5722. # If we're using GNU nm, then we don't want the "-C" option.
  5723. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5724. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5725. 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'
  5726. else
  5727. 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'
  5728. fi
  5729. aix_use_runtimelinking=no
  5730. # Test if we are trying to use run time linking or normal
  5731. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5732. # need to do runtime linking.
  5733. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5734. for ld_flag in $LDFLAGS; do
  5735. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5736. aix_use_runtimelinking=yes
  5737. break
  5738. fi
  5739. done
  5740. esac
  5741. exp_sym_flag='-bexport'
  5742. no_entry_flag='-bnoentry'
  5743. fi
  5744. # When large executables or shared objects are built, AIX ld can
  5745. # have problems creating the table of contents. If linking a library
  5746. # or program results in "error TOC overflow" add -mminimal-toc to
  5747. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5748. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5749. archive_cmds=''
  5750. hardcode_direct=yes
  5751. hardcode_libdir_separator=':'
  5752. link_all_deplibs=yes
  5753. if test "$GCC" = yes; then
  5754. case $host_os in aix4.[012]|aix4.[012].*)
  5755. # We only want to do this on AIX 4.2 and lower, the check
  5756. # below for broken collect2 doesn't work under 4.3+
  5757. collect2name=`${CC} -print-prog-name=collect2`
  5758. if test -f "$collect2name" && \
  5759. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5760. then
  5761. # We have reworked collect2
  5762. hardcode_direct=yes
  5763. else
  5764. # We have old collect2
  5765. hardcode_direct=unsupported
  5766. # It fails to find uninstalled libraries when the uninstalled
  5767. # path is not listed in the libpath. Setting hardcode_minus_L
  5768. # to unsupported forces relinking
  5769. hardcode_minus_L=yes
  5770. hardcode_libdir_flag_spec='-L$libdir'
  5771. hardcode_libdir_separator=
  5772. fi
  5773. esac
  5774. shared_flag='-shared'
  5775. if test "$aix_use_runtimelinking" = yes; then
  5776. shared_flag="$shared_flag "'${wl}-G'
  5777. fi
  5778. else
  5779. # not using gcc
  5780. if test "$host_cpu" = ia64; then
  5781. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5782. # chokes on -Wl,-G. The following line is correct:
  5783. shared_flag='-G'
  5784. else
  5785. if test "$aix_use_runtimelinking" = yes; then
  5786. shared_flag='${wl}-G'
  5787. else
  5788. shared_flag='${wl}-bM:SRE'
  5789. fi
  5790. fi
  5791. fi
  5792. # It seems that -bexpall does not export symbols beginning with
  5793. # underscore (_), so it is better to generate a list of symbols to export.
  5794. always_export_symbols=yes
  5795. if test "$aix_use_runtimelinking" = yes; then
  5796. # Warning - without using the other runtime loading flags (-brtl),
  5797. # -berok will link without error, but may produce a broken library.
  5798. allow_undefined_flag='-berok'
  5799. # Determine the default libpath from the value encoded in an empty executable.
  5800. cat >conftest.$ac_ext <<_ACEOF
  5801. /* confdefs.h. */
  5802. _ACEOF
  5803. cat confdefs.h >>conftest.$ac_ext
  5804. cat >>conftest.$ac_ext <<_ACEOF
  5805. /* end confdefs.h. */
  5806. int
  5807. main ()
  5808. {
  5809. ;
  5810. return 0;
  5811. }
  5812. _ACEOF
  5813. rm -f conftest.$ac_objext conftest$ac_exeext
  5814. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5815. (eval $ac_link) 2>conftest.er1
  5816. ac_status=$?
  5817. grep -v '^ *+' conftest.er1 >conftest.err
  5818. rm -f conftest.er1
  5819. cat conftest.err >&5
  5820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5821. (exit $ac_status); } &&
  5822. { ac_try='test -z "$ac_c_werror_flag"
  5823. || test ! -s conftest.err'
  5824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5825. (eval $ac_try) 2>&5
  5826. ac_status=$?
  5827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5828. (exit $ac_status); }; } &&
  5829. { ac_try='test -s conftest$ac_exeext'
  5830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5831. (eval $ac_try) 2>&5
  5832. ac_status=$?
  5833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5834. (exit $ac_status); }; }; then
  5835. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5836. }'`
  5837. # Check for a 64-bit object if we didn't find anything.
  5838. 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; }
  5839. }'`; fi
  5840. else
  5841. echo "$as_me: failed program was:" >&5
  5842. sed 's/^/| /' conftest.$ac_ext >&5
  5843. fi
  5844. rm -f conftest.err conftest.$ac_objext \
  5845. conftest$ac_exeext conftest.$ac_ext
  5846. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5847. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5848. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5849. else
  5850. if test "$host_cpu" = ia64; then
  5851. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5852. allow_undefined_flag="-z nodefs"
  5853. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5854. else
  5855. # Determine the default libpath from the value encoded in an empty executable.
  5856. cat >conftest.$ac_ext <<_ACEOF
  5857. /* confdefs.h. */
  5858. _ACEOF
  5859. cat confdefs.h >>conftest.$ac_ext
  5860. cat >>conftest.$ac_ext <<_ACEOF
  5861. /* end confdefs.h. */
  5862. int
  5863. main ()
  5864. {
  5865. ;
  5866. return 0;
  5867. }
  5868. _ACEOF
  5869. rm -f conftest.$ac_objext conftest$ac_exeext
  5870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5871. (eval $ac_link) 2>conftest.er1
  5872. ac_status=$?
  5873. grep -v '^ *+' conftest.er1 >conftest.err
  5874. rm -f conftest.er1
  5875. cat conftest.err >&5
  5876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5877. (exit $ac_status); } &&
  5878. { ac_try='test -z "$ac_c_werror_flag"
  5879. || test ! -s conftest.err'
  5880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5881. (eval $ac_try) 2>&5
  5882. ac_status=$?
  5883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5884. (exit $ac_status); }; } &&
  5885. { ac_try='test -s conftest$ac_exeext'
  5886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5887. (eval $ac_try) 2>&5
  5888. ac_status=$?
  5889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5890. (exit $ac_status); }; }; then
  5891. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5892. }'`
  5893. # Check for a 64-bit object if we didn't find anything.
  5894. 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; }
  5895. }'`; fi
  5896. else
  5897. echo "$as_me: failed program was:" >&5
  5898. sed 's/^/| /' conftest.$ac_ext >&5
  5899. fi
  5900. rm -f conftest.err conftest.$ac_objext \
  5901. conftest$ac_exeext conftest.$ac_ext
  5902. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5903. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5904. # Warning - without using the other run time loading flags,
  5905. # -berok will link without error, but may produce a broken library.
  5906. no_undefined_flag=' ${wl}-bernotok'
  5907. allow_undefined_flag=' ${wl}-berok'
  5908. # -bexpall does not export symbols beginning with underscore (_)
  5909. always_export_symbols=yes
  5910. # Exported symbols can be pulled into shared objects from archives
  5911. whole_archive_flag_spec=' '
  5912. archive_cmds_need_lc=yes
  5913. # This is similar to how AIX traditionally builds it's shared libraries.
  5914. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5915. fi
  5916. fi
  5917. ;;
  5918. amigaos*)
  5919. 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)'
  5920. hardcode_libdir_flag_spec='-L$libdir'
  5921. hardcode_minus_L=yes
  5922. # see comment about different semantics on the GNU ld section
  5923. ld_shlibs=no
  5924. ;;
  5925. bsdi[45]*)
  5926. export_dynamic_flag_spec=-rdynamic
  5927. ;;
  5928. cygwin* | mingw* | pw32*)
  5929. # When not using gcc, we currently assume that we are using
  5930. # Microsoft Visual C++.
  5931. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5932. # no search path for DLLs.
  5933. hardcode_libdir_flag_spec=' '
  5934. allow_undefined_flag=unsupported
  5935. # Tell ltmain to make .lib files, not .a files.
  5936. libext=lib
  5937. # Tell ltmain to make .dll files, not .so files.
  5938. shrext_cmds=".dll"
  5939. # FIXME: Setting linknames here is a bad hack.
  5940. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5941. # The linker will automatically build a .lib file if we build a DLL.
  5942. old_archive_From_new_cmds='true'
  5943. # FIXME: Should let the user specify the lib program.
  5944. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5945. fix_srcfile_path='`cygpath -w "$srcfile"`'
  5946. enable_shared_with_static_runtimes=yes
  5947. ;;
  5948. darwin* | rhapsody*)
  5949. case "$host_os" in
  5950. rhapsody* | darwin1.[012])
  5951. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  5952. ;;
  5953. *) # Darwin 1.3 on
  5954. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5955. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5956. else
  5957. case ${MACOSX_DEPLOYMENT_TARGET} in
  5958. 10.[012])
  5959. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5960. ;;
  5961. 10.*)
  5962. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  5963. ;;
  5964. esac
  5965. fi
  5966. ;;
  5967. esac
  5968. archive_cmds_need_lc=no
  5969. hardcode_direct=no
  5970. hardcode_automatic=yes
  5971. hardcode_shlibpath_var=unsupported
  5972. whole_archive_flag_spec=''
  5973. link_all_deplibs=yes
  5974. if test "$GCC" = yes ; then
  5975. output_verbose_link_cmd='echo'
  5976. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5977. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5978. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5979. 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}'
  5980. 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}'
  5981. else
  5982. case $cc_basename in
  5983. xlc*)
  5984. output_verbose_link_cmd='echo'
  5985. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5986. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5987. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5988. 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}'
  5989. 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}'
  5990. ;;
  5991. *)
  5992. ld_shlibs=no
  5993. ;;
  5994. esac
  5995. fi
  5996. ;;
  5997. dgux*)
  5998. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5999. hardcode_libdir_flag_spec='-L$libdir'
  6000. hardcode_shlibpath_var=no
  6001. ;;
  6002. freebsd1*)
  6003. ld_shlibs=no
  6004. ;;
  6005. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6006. # support. Future versions do this automatically, but an explicit c++rt0.o
  6007. # does not break anything, and helps significantly (at the cost of a little
  6008. # extra space).
  6009. freebsd2.2*)
  6010. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6011. hardcode_libdir_flag_spec='-R$libdir'
  6012. hardcode_direct=yes
  6013. hardcode_shlibpath_var=no
  6014. ;;
  6015. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6016. freebsd2*)
  6017. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6018. hardcode_direct=yes
  6019. hardcode_minus_L=yes
  6020. hardcode_shlibpath_var=no
  6021. ;;
  6022. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6023. freebsd* | kfreebsd*-gnu | dragonfly*)
  6024. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6025. hardcode_libdir_flag_spec='-R$libdir'
  6026. hardcode_direct=yes
  6027. hardcode_shlibpath_var=no
  6028. ;;
  6029. hpux9*)
  6030. if test "$GCC" = yes; then
  6031. 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'
  6032. else
  6033. 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'
  6034. fi
  6035. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6036. hardcode_libdir_separator=:
  6037. hardcode_direct=yes
  6038. # hardcode_minus_L: Not really in the search PATH,
  6039. # but as the default location of the library.
  6040. hardcode_minus_L=yes
  6041. export_dynamic_flag_spec='${wl}-E'
  6042. ;;
  6043. hpux10* | hpux11*)
  6044. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6045. case "$host_cpu" in
  6046. hppa*64*|ia64*)
  6047. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6048. ;;
  6049. *)
  6050. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6051. ;;
  6052. esac
  6053. else
  6054. case "$host_cpu" in
  6055. hppa*64*|ia64*)
  6056. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6057. ;;
  6058. *)
  6059. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6060. ;;
  6061. esac
  6062. fi
  6063. if test "$with_gnu_ld" = no; then
  6064. case "$host_cpu" in
  6065. hppa*64*)
  6066. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6067. hardcode_libdir_flag_spec_ld='+b $libdir'
  6068. hardcode_libdir_separator=:
  6069. hardcode_direct=no
  6070. hardcode_shlibpath_var=no
  6071. ;;
  6072. ia64*)
  6073. hardcode_libdir_flag_spec='-L$libdir'
  6074. hardcode_direct=no
  6075. hardcode_shlibpath_var=no
  6076. # hardcode_minus_L: Not really in the search PATH,
  6077. # but as the default location of the library.
  6078. hardcode_minus_L=yes
  6079. ;;
  6080. *)
  6081. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6082. hardcode_libdir_separator=:
  6083. hardcode_direct=yes
  6084. export_dynamic_flag_spec='${wl}-E'
  6085. # hardcode_minus_L: Not really in the search PATH,
  6086. # but as the default location of the library.
  6087. hardcode_minus_L=yes
  6088. ;;
  6089. esac
  6090. fi
  6091. ;;
  6092. irix5* | irix6* | nonstopux*)
  6093. if test "$GCC" = yes; then
  6094. 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'
  6095. else
  6096. 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'
  6097. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6098. fi
  6099. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6100. hardcode_libdir_separator=:
  6101. link_all_deplibs=yes
  6102. ;;
  6103. netbsd*)
  6104. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6105. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6106. else
  6107. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6108. fi
  6109. hardcode_libdir_flag_spec='-R$libdir'
  6110. hardcode_direct=yes
  6111. hardcode_shlibpath_var=no
  6112. ;;
  6113. newsos6)
  6114. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6115. hardcode_direct=yes
  6116. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6117. hardcode_libdir_separator=:
  6118. hardcode_shlibpath_var=no
  6119. ;;
  6120. openbsd*)
  6121. hardcode_direct=yes
  6122. hardcode_shlibpath_var=no
  6123. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6124. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6125. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6126. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6127. export_dynamic_flag_spec='${wl}-E'
  6128. else
  6129. case $host_os in
  6130. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6131. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6132. hardcode_libdir_flag_spec='-R$libdir'
  6133. ;;
  6134. *)
  6135. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6136. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6137. ;;
  6138. esac
  6139. fi
  6140. ;;
  6141. os2*)
  6142. hardcode_libdir_flag_spec='-L$libdir'
  6143. hardcode_minus_L=yes
  6144. allow_undefined_flag=unsupported
  6145. 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'
  6146. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6147. ;;
  6148. osf3*)
  6149. if test "$GCC" = yes; then
  6150. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6151. 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'
  6152. else
  6153. allow_undefined_flag=' -expect_unresolved \*'
  6154. 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'
  6155. fi
  6156. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6157. hardcode_libdir_separator=:
  6158. ;;
  6159. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6160. if test "$GCC" = yes; then
  6161. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6162. 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'
  6163. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6164. else
  6165. allow_undefined_flag=' -expect_unresolved \*'
  6166. 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'
  6167. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6168. $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'
  6169. # Both c and cxx compiler support -rpath directly
  6170. hardcode_libdir_flag_spec='-rpath $libdir'
  6171. fi
  6172. hardcode_libdir_separator=:
  6173. ;;
  6174. sco3.2v5*)
  6175. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6176. hardcode_shlibpath_var=no
  6177. export_dynamic_flag_spec='${wl}-Bexport'
  6178. runpath_var=LD_RUN_PATH
  6179. hardcode_runpath_var=yes
  6180. ;;
  6181. solaris*)
  6182. no_undefined_flag=' -z text'
  6183. if test "$GCC" = yes; then
  6184. wlarc='${wl}'
  6185. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6186. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6187. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6188. else
  6189. wlarc=''
  6190. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6191. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6192. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6193. fi
  6194. hardcode_libdir_flag_spec='-R$libdir'
  6195. hardcode_shlibpath_var=no
  6196. case $host_os in
  6197. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6198. *)
  6199. # The compiler driver will combine linker options so we
  6200. # cannot just pass the convience library names through
  6201. # without $wl, iff we do not link with $LD.
  6202. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6203. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6204. case $wlarc in
  6205. '')
  6206. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6207. *)
  6208. 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' ;;
  6209. esac ;;
  6210. esac
  6211. link_all_deplibs=yes
  6212. ;;
  6213. sunos4*)
  6214. if test "x$host_vendor" = xsequent; then
  6215. # Use $CC to link under sequent, because it throws in some extra .o
  6216. # files that make .init and .fini sections work.
  6217. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6218. else
  6219. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6220. fi
  6221. hardcode_libdir_flag_spec='-L$libdir'
  6222. hardcode_direct=yes
  6223. hardcode_minus_L=yes
  6224. hardcode_shlibpath_var=no
  6225. ;;
  6226. sysv4)
  6227. case $host_vendor in
  6228. sni)
  6229. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6230. hardcode_direct=yes # is this really true???
  6231. ;;
  6232. siemens)
  6233. ## LD is ld it makes a PLAMLIB
  6234. ## CC just makes a GrossModule.
  6235. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6236. reload_cmds='$CC -r -o $output$reload_objs'
  6237. hardcode_direct=no
  6238. ;;
  6239. motorola)
  6240. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6241. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6242. ;;
  6243. esac
  6244. runpath_var='LD_RUN_PATH'
  6245. hardcode_shlibpath_var=no
  6246. ;;
  6247. sysv4.3*)
  6248. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6249. hardcode_shlibpath_var=no
  6250. export_dynamic_flag_spec='-Bexport'
  6251. ;;
  6252. sysv4*MP*)
  6253. if test -d /usr/nec; then
  6254. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6255. hardcode_shlibpath_var=no
  6256. runpath_var=LD_RUN_PATH
  6257. hardcode_runpath_var=yes
  6258. ld_shlibs=yes
  6259. fi
  6260. ;;
  6261. sysv4.2uw2*)
  6262. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6263. hardcode_direct=yes
  6264. hardcode_minus_L=no
  6265. hardcode_shlibpath_var=no
  6266. hardcode_runpath_var=yes
  6267. runpath_var=LD_RUN_PATH
  6268. ;;
  6269. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6270. no_undefined_flag='${wl}-z ${wl}text'
  6271. if test "$GCC" = yes; then
  6272. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6273. else
  6274. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6275. fi
  6276. runpath_var='LD_RUN_PATH'
  6277. hardcode_shlibpath_var=no
  6278. ;;
  6279. sysv5*)
  6280. no_undefined_flag=' -z text'
  6281. # $CC -shared without GNU ld will not create a library from C++
  6282. # object files and a static libstdc++, better avoid it by now
  6283. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6284. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6285. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6286. hardcode_libdir_flag_spec=
  6287. hardcode_shlibpath_var=no
  6288. runpath_var='LD_RUN_PATH'
  6289. ;;
  6290. uts4*)
  6291. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6292. hardcode_libdir_flag_spec='-L$libdir'
  6293. hardcode_shlibpath_var=no
  6294. ;;
  6295. *)
  6296. ld_shlibs=no
  6297. ;;
  6298. esac
  6299. fi
  6300. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6301. echo "${ECHO_T}$ld_shlibs" >&6
  6302. test "$ld_shlibs" = no && can_build_shared=no
  6303. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6304. if test "$GCC" = yes; then
  6305. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6306. fi
  6307. #
  6308. # Do we need to explicitly link libc?
  6309. #
  6310. case "x$archive_cmds_need_lc" in
  6311. x|xyes)
  6312. # Assume -lc should be added
  6313. archive_cmds_need_lc=yes
  6314. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6315. case $archive_cmds in
  6316. *'~'*)
  6317. # FIXME: we may have to deal with multi-command sequences.
  6318. ;;
  6319. '$CC '*)
  6320. # Test whether the compiler implicitly links with -lc since on some
  6321. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6322. # to ld, don't add -lc before -lgcc.
  6323. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6324. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6325. $rm conftest*
  6326. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6328. (eval $ac_compile) 2>&5
  6329. ac_status=$?
  6330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6331. (exit $ac_status); } 2>conftest.err; then
  6332. soname=conftest
  6333. lib=conftest
  6334. libobjs=conftest.$ac_objext
  6335. deplibs=
  6336. wl=$lt_prog_compiler_wl
  6337. compiler_flags=-v
  6338. linker_flags=-v
  6339. verstring=
  6340. output_objdir=.
  6341. libname=conftest
  6342. lt_save_allow_undefined_flag=$allow_undefined_flag
  6343. allow_undefined_flag=
  6344. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6345. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6346. ac_status=$?
  6347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6348. (exit $ac_status); }
  6349. then
  6350. archive_cmds_need_lc=no
  6351. else
  6352. archive_cmds_need_lc=yes
  6353. fi
  6354. allow_undefined_flag=$lt_save_allow_undefined_flag
  6355. else
  6356. cat conftest.err 1>&5
  6357. fi
  6358. $rm conftest*
  6359. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6360. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6361. ;;
  6362. esac
  6363. fi
  6364. ;;
  6365. esac
  6366. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6367. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6368. library_names_spec=
  6369. libname_spec='lib$name'
  6370. soname_spec=
  6371. shrext_cmds=".so"
  6372. postinstall_cmds=
  6373. postuninstall_cmds=
  6374. finish_cmds=
  6375. finish_eval=
  6376. shlibpath_var=
  6377. shlibpath_overrides_runpath=unknown
  6378. version_type=none
  6379. dynamic_linker="$host_os ld.so"
  6380. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6381. if test "$GCC" = yes; then
  6382. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6383. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6384. # if the path contains ";" then we assume it to be the separator
  6385. # otherwise default to the standard path separator (i.e. ":") - it is
  6386. # assumed that no part of a normal pathname contains ";" but that should
  6387. # okay in the real world where ";" in dirpaths is itself problematic.
  6388. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6389. else
  6390. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6391. fi
  6392. else
  6393. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6394. fi
  6395. need_lib_prefix=unknown
  6396. hardcode_into_libs=no
  6397. # when you set need_version to no, make sure it does not cause -set_version
  6398. # flags to be left without arguments
  6399. need_version=unknown
  6400. case $host_os in
  6401. aix3*)
  6402. version_type=linux
  6403. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6404. shlibpath_var=LIBPATH
  6405. # AIX 3 has no versioning support, so we append a major version to the name.
  6406. soname_spec='${libname}${release}${shared_ext}$major'
  6407. ;;
  6408. aix4* | aix5*)
  6409. version_type=linux
  6410. need_lib_prefix=no
  6411. need_version=no
  6412. hardcode_into_libs=yes
  6413. if test "$host_cpu" = ia64; then
  6414. # AIX 5 supports IA64
  6415. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6416. shlibpath_var=LD_LIBRARY_PATH
  6417. else
  6418. # With GCC up to 2.95.x, collect2 would create an import file
  6419. # for dependence libraries. The import file would start with
  6420. # the line `#! .'. This would cause the generated library to
  6421. # depend on `.', always an invalid library. This was fixed in
  6422. # development snapshots of GCC prior to 3.0.
  6423. case $host_os in
  6424. aix4 | aix4.[01] | aix4.[01].*)
  6425. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6426. echo ' yes '
  6427. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6428. :
  6429. else
  6430. can_build_shared=no
  6431. fi
  6432. ;;
  6433. esac
  6434. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6435. # soname into executable. Probably we can add versioning support to
  6436. # collect2, so additional links can be useful in future.
  6437. if test "$aix_use_runtimelinking" = yes; then
  6438. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6439. # instead of lib<name>.a to let people know that these are not
  6440. # typical AIX shared libraries.
  6441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6442. else
  6443. # We preserve .a as extension for shared libraries through AIX4.2
  6444. # and later when we are not doing run time linking.
  6445. library_names_spec='${libname}${release}.a $libname.a'
  6446. soname_spec='${libname}${release}${shared_ext}$major'
  6447. fi
  6448. shlibpath_var=LIBPATH
  6449. fi
  6450. ;;
  6451. amigaos*)
  6452. library_names_spec='$libname.ixlibrary $libname.a'
  6453. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6454. 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'
  6455. ;;
  6456. beos*)
  6457. library_names_spec='${libname}${shared_ext}'
  6458. dynamic_linker="$host_os ld.so"
  6459. shlibpath_var=LIBRARY_PATH
  6460. ;;
  6461. bsdi[45]*)
  6462. version_type=linux
  6463. need_version=no
  6464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6465. soname_spec='${libname}${release}${shared_ext}$major'
  6466. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6467. shlibpath_var=LD_LIBRARY_PATH
  6468. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6469. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6470. # the default ld.so.conf also contains /usr/contrib/lib and
  6471. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6472. # libtool to hard-code these into programs
  6473. ;;
  6474. cygwin* | mingw* | pw32*)
  6475. version_type=windows
  6476. shrext_cmds=".dll"
  6477. need_version=no
  6478. need_lib_prefix=no
  6479. case $GCC,$host_os in
  6480. yes,cygwin* | yes,mingw* | yes,pw32*)
  6481. library_names_spec='$libname.dll.a'
  6482. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6483. postinstall_cmds='base_file=`basename \${file}`~
  6484. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6485. dldir=$destdir/`dirname \$dlpath`~
  6486. test -d \$dldir || mkdir -p \$dldir~
  6487. $install_prog $dir/$dlname \$dldir/$dlname'
  6488. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6489. dlpath=$dir/\$dldll~
  6490. $rm \$dlpath'
  6491. shlibpath_overrides_runpath=yes
  6492. case $host_os in
  6493. cygwin*)
  6494. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6495. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6496. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6497. ;;
  6498. mingw*)
  6499. # MinGW DLLs use traditional 'lib' prefix
  6500. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6501. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6502. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6503. # It is most probably a Windows format PATH printed by
  6504. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6505. # path with ; separators, and with drive letters. We can handle the
  6506. # drive letters (cygwin fileutils understands them), so leave them,
  6507. # especially as we might pass files found there to a mingw objdump,
  6508. # which wouldn't understand a cygwinified path. Ahh.
  6509. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6510. else
  6511. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6512. fi
  6513. ;;
  6514. pw32*)
  6515. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6516. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6517. ;;
  6518. esac
  6519. ;;
  6520. *)
  6521. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6522. ;;
  6523. esac
  6524. dynamic_linker='Win32 ld.exe'
  6525. # FIXME: first we should search . and the directory the executable is in
  6526. shlibpath_var=PATH
  6527. ;;
  6528. darwin* | rhapsody*)
  6529. dynamic_linker="$host_os dyld"
  6530. version_type=darwin
  6531. need_lib_prefix=no
  6532. need_version=no
  6533. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6534. soname_spec='${libname}${release}${major}$shared_ext'
  6535. shlibpath_overrides_runpath=yes
  6536. shlibpath_var=DYLD_LIBRARY_PATH
  6537. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  6538. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6539. if test "$GCC" = yes; then
  6540. 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"`
  6541. else
  6542. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6543. fi
  6544. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6545. ;;
  6546. dgux*)
  6547. version_type=linux
  6548. need_lib_prefix=no
  6549. need_version=no
  6550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6551. soname_spec='${libname}${release}${shared_ext}$major'
  6552. shlibpath_var=LD_LIBRARY_PATH
  6553. ;;
  6554. freebsd1*)
  6555. dynamic_linker=no
  6556. ;;
  6557. kfreebsd*-gnu)
  6558. version_type=linux
  6559. need_lib_prefix=no
  6560. need_version=no
  6561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6562. soname_spec='${libname}${release}${shared_ext}$major'
  6563. shlibpath_var=LD_LIBRARY_PATH
  6564. shlibpath_overrides_runpath=no
  6565. hardcode_into_libs=yes
  6566. dynamic_linker='GNU ld.so'
  6567. ;;
  6568. freebsd* | dragonfly*)
  6569. # DragonFly does not have aout. When/if they implement a new
  6570. # versioning mechanism, adjust this.
  6571. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  6572. version_type=freebsd-$objformat
  6573. case $version_type in
  6574. freebsd-elf*)
  6575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6576. need_version=no
  6577. need_lib_prefix=no
  6578. ;;
  6579. freebsd-*)
  6580. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6581. need_version=yes
  6582. ;;
  6583. esac
  6584. shlibpath_var=LD_LIBRARY_PATH
  6585. case $host_os in
  6586. freebsd2*)
  6587. shlibpath_overrides_runpath=yes
  6588. ;;
  6589. freebsd3.[01]* | freebsdelf3.[01]*)
  6590. shlibpath_overrides_runpath=yes
  6591. hardcode_into_libs=yes
  6592. ;;
  6593. *) # from 3.2 on
  6594. shlibpath_overrides_runpath=no
  6595. hardcode_into_libs=yes
  6596. ;;
  6597. esac
  6598. ;;
  6599. gnu*)
  6600. version_type=linux
  6601. need_lib_prefix=no
  6602. need_version=no
  6603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6604. soname_spec='${libname}${release}${shared_ext}$major'
  6605. shlibpath_var=LD_LIBRARY_PATH
  6606. hardcode_into_libs=yes
  6607. ;;
  6608. hpux9* | hpux10* | hpux11*)
  6609. # Give a soname corresponding to the major version so that dld.sl refuses to
  6610. # link against other versions.
  6611. version_type=sunos
  6612. need_lib_prefix=no
  6613. need_version=no
  6614. case "$host_cpu" in
  6615. ia64*)
  6616. shrext_cmds='.so'
  6617. hardcode_into_libs=yes
  6618. dynamic_linker="$host_os dld.so"
  6619. shlibpath_var=LD_LIBRARY_PATH
  6620. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6622. soname_spec='${libname}${release}${shared_ext}$major'
  6623. if test "X$HPUX_IA64_MODE" = X32; then
  6624. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  6625. else
  6626. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  6627. fi
  6628. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6629. ;;
  6630. hppa*64*)
  6631. shrext_cmds='.sl'
  6632. hardcode_into_libs=yes
  6633. dynamic_linker="$host_os dld.sl"
  6634. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6635. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6637. soname_spec='${libname}${release}${shared_ext}$major'
  6638. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6639. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6640. ;;
  6641. *)
  6642. shrext_cmds='.sl'
  6643. dynamic_linker="$host_os dld.sl"
  6644. shlibpath_var=SHLIB_PATH
  6645. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6647. soname_spec='${libname}${release}${shared_ext}$major'
  6648. ;;
  6649. esac
  6650. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6651. postinstall_cmds='chmod 555 $lib'
  6652. ;;
  6653. irix5* | irix6* | nonstopux*)
  6654. case $host_os in
  6655. nonstopux*) version_type=nonstopux ;;
  6656. *)
  6657. if test "$lt_cv_prog_gnu_ld" = yes; then
  6658. version_type=linux
  6659. else
  6660. version_type=irix
  6661. fi ;;
  6662. esac
  6663. need_lib_prefix=no
  6664. need_version=no
  6665. soname_spec='${libname}${release}${shared_ext}$major'
  6666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  6667. case $host_os in
  6668. irix5* | nonstopux*)
  6669. libsuff= shlibsuff=
  6670. ;;
  6671. *)
  6672. case $LD in # libtool.m4 will add one of these switches to LD
  6673. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  6674. libsuff= shlibsuff= libmagic=32-bit;;
  6675. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  6676. libsuff=32 shlibsuff=N32 libmagic=N32;;
  6677. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  6678. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6679. *) libsuff= shlibsuff= libmagic=never-match;;
  6680. esac
  6681. ;;
  6682. esac
  6683. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6684. shlibpath_overrides_runpath=no
  6685. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6686. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6687. hardcode_into_libs=yes
  6688. ;;
  6689. # No shared lib support for Linux oldld, aout, or coff.
  6690. linux*oldld* | linux*aout* | linux*coff*)
  6691. dynamic_linker=no
  6692. ;;
  6693. # This must be Linux ELF.
  6694. linux*)
  6695. version_type=linux
  6696. need_lib_prefix=no
  6697. need_version=no
  6698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6699. soname_spec='${libname}${release}${shared_ext}$major'
  6700. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6701. shlibpath_var=LD_LIBRARY_PATH
  6702. shlibpath_overrides_runpath=no
  6703. # This implies no fast_install, which is unacceptable.
  6704. # Some rework will be needed to allow for fast_install
  6705. # before this can be enabled.
  6706. hardcode_into_libs=yes
  6707. # find out which ABI we are using
  6708. libsuff=
  6709. case "$host_cpu" in
  6710. x86_64*|s390x*|powerpc64*)
  6711. echo '#line 7382 "configure"' > conftest.$ac_ext
  6712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6713. (eval $ac_compile) 2>&5
  6714. ac_status=$?
  6715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6716. (exit $ac_status); }; then
  6717. case `/usr/bin/file conftest.$ac_objext` in
  6718. *64-bit*)
  6719. libsuff=64
  6720. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  6721. ;;
  6722. esac
  6723. fi
  6724. rm -rf conftest*
  6725. ;;
  6726. esac
  6727. # Append ld.so.conf contents to the search path
  6728. if test -f /etc/ld.so.conf; then
  6729. 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' ' '`
  6730. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  6731. fi
  6732. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6733. # powerpc, because MkLinux only supported shared libraries with the
  6734. # GNU dynamic linker. Since this was broken with cross compilers,
  6735. # most powerpc-linux boxes support dynamic linking these days and
  6736. # people can always --disable-shared, the test was removed, and we
  6737. # assume the GNU/Linux dynamic linker is in use.
  6738. dynamic_linker='GNU/Linux ld.so'
  6739. ;;
  6740. knetbsd*-gnu)
  6741. version_type=linux
  6742. need_lib_prefix=no
  6743. need_version=no
  6744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6745. soname_spec='${libname}${release}${shared_ext}$major'
  6746. shlibpath_var=LD_LIBRARY_PATH
  6747. shlibpath_overrides_runpath=no
  6748. hardcode_into_libs=yes
  6749. dynamic_linker='GNU ld.so'
  6750. ;;
  6751. netbsd*)
  6752. version_type=sunos
  6753. need_lib_prefix=no
  6754. need_version=no
  6755. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6757. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6758. dynamic_linker='NetBSD (a.out) ld.so'
  6759. else
  6760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6761. soname_spec='${libname}${release}${shared_ext}$major'
  6762. dynamic_linker='NetBSD ld.elf_so'
  6763. fi
  6764. shlibpath_var=LD_LIBRARY_PATH
  6765. shlibpath_overrides_runpath=yes
  6766. hardcode_into_libs=yes
  6767. ;;
  6768. newsos6)
  6769. version_type=linux
  6770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6771. shlibpath_var=LD_LIBRARY_PATH
  6772. shlibpath_overrides_runpath=yes
  6773. ;;
  6774. nto-qnx*)
  6775. version_type=linux
  6776. need_lib_prefix=no
  6777. need_version=no
  6778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6779. soname_spec='${libname}${release}${shared_ext}$major'
  6780. shlibpath_var=LD_LIBRARY_PATH
  6781. shlibpath_overrides_runpath=yes
  6782. ;;
  6783. openbsd*)
  6784. version_type=sunos
  6785. need_lib_prefix=no
  6786. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6787. case $host_os in
  6788. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6789. *) need_version=no ;;
  6790. esac
  6791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6792. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6793. shlibpath_var=LD_LIBRARY_PATH
  6794. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6795. case $host_os in
  6796. openbsd2.[89] | openbsd2.[89].*)
  6797. shlibpath_overrides_runpath=no
  6798. ;;
  6799. *)
  6800. shlibpath_overrides_runpath=yes
  6801. ;;
  6802. esac
  6803. else
  6804. shlibpath_overrides_runpath=yes
  6805. fi
  6806. ;;
  6807. os2*)
  6808. libname_spec='$name'
  6809. shrext_cmds=".dll"
  6810. need_lib_prefix=no
  6811. library_names_spec='$libname${shared_ext} $libname.a'
  6812. dynamic_linker='OS/2 ld.exe'
  6813. shlibpath_var=LIBPATH
  6814. ;;
  6815. osf3* | osf4* | osf5*)
  6816. version_type=osf
  6817. need_lib_prefix=no
  6818. need_version=no
  6819. soname_spec='${libname}${release}${shared_ext}$major'
  6820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6821. shlibpath_var=LD_LIBRARY_PATH
  6822. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6823. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6824. ;;
  6825. sco3.2v5*)
  6826. version_type=osf
  6827. soname_spec='${libname}${release}${shared_ext}$major'
  6828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6829. shlibpath_var=LD_LIBRARY_PATH
  6830. ;;
  6831. solaris*)
  6832. version_type=linux
  6833. need_lib_prefix=no
  6834. need_version=no
  6835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6836. soname_spec='${libname}${release}${shared_ext}$major'
  6837. shlibpath_var=LD_LIBRARY_PATH
  6838. shlibpath_overrides_runpath=yes
  6839. hardcode_into_libs=yes
  6840. # ldd complains unless libraries are executable
  6841. postinstall_cmds='chmod +x $lib'
  6842. ;;
  6843. sunos4*)
  6844. version_type=sunos
  6845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6846. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6847. shlibpath_var=LD_LIBRARY_PATH
  6848. shlibpath_overrides_runpath=yes
  6849. if test "$with_gnu_ld" = yes; then
  6850. need_lib_prefix=no
  6851. fi
  6852. need_version=yes
  6853. ;;
  6854. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6855. version_type=linux
  6856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6857. soname_spec='${libname}${release}${shared_ext}$major'
  6858. shlibpath_var=LD_LIBRARY_PATH
  6859. case $host_vendor in
  6860. sni)
  6861. shlibpath_overrides_runpath=no
  6862. need_lib_prefix=no
  6863. export_dynamic_flag_spec='${wl}-Blargedynsym'
  6864. runpath_var=LD_RUN_PATH
  6865. ;;
  6866. siemens)
  6867. need_lib_prefix=no
  6868. ;;
  6869. motorola)
  6870. need_lib_prefix=no
  6871. need_version=no
  6872. shlibpath_overrides_runpath=no
  6873. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6874. ;;
  6875. esac
  6876. ;;
  6877. sysv4*MP*)
  6878. if test -d /usr/nec ;then
  6879. version_type=linux
  6880. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  6881. soname_spec='$libname${shared_ext}.$major'
  6882. shlibpath_var=LD_LIBRARY_PATH
  6883. fi
  6884. ;;
  6885. uts4*)
  6886. version_type=linux
  6887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6888. soname_spec='${libname}${release}${shared_ext}$major'
  6889. shlibpath_var=LD_LIBRARY_PATH
  6890. ;;
  6891. *)
  6892. dynamic_linker=no
  6893. ;;
  6894. esac
  6895. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  6896. echo "${ECHO_T}$dynamic_linker" >&6
  6897. test "$dynamic_linker" = no && can_build_shared=no
  6898. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  6899. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  6900. hardcode_action=
  6901. if test -n "$hardcode_libdir_flag_spec" || \
  6902. test -n "$runpath_var" || \
  6903. test "X$hardcode_automatic" = "Xyes" ; then
  6904. # We can hardcode non-existant directories.
  6905. if test "$hardcode_direct" != no &&
  6906. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  6907. # have to relink, otherwise we might link with an installed library
  6908. # when we should be linking with a yet-to-be-installed one
  6909. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  6910. test "$hardcode_minus_L" != no; then
  6911. # Linking always hardcodes the temporary library directory.
  6912. hardcode_action=relink
  6913. else
  6914. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  6915. hardcode_action=immediate
  6916. fi
  6917. else
  6918. # We cannot hardcode anything, or else we can only hardcode existing
  6919. # directories.
  6920. hardcode_action=unsupported
  6921. fi
  6922. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  6923. echo "${ECHO_T}$hardcode_action" >&6
  6924. if test "$hardcode_action" = relink; then
  6925. # Fast installation is not supported
  6926. enable_fast_install=no
  6927. elif test "$shlibpath_overrides_runpath" = yes ||
  6928. test "$enable_shared" = no; then
  6929. # Fast installation is not necessary
  6930. enable_fast_install=needless
  6931. fi
  6932. striplib=
  6933. old_striplib=
  6934. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  6935. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  6936. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  6937. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  6938. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  6939. echo "$as_me:$LINENO: result: yes" >&5
  6940. echo "${ECHO_T}yes" >&6
  6941. else
  6942. # FIXME - insert some real tests, host_os isn't really good enough
  6943. case $host_os in
  6944. darwin*)
  6945. if test -n "$STRIP" ; then
  6946. striplib="$STRIP -x"
  6947. echo "$as_me:$LINENO: result: yes" >&5
  6948. echo "${ECHO_T}yes" >&6
  6949. else
  6950. echo "$as_me:$LINENO: result: no" >&5
  6951. echo "${ECHO_T}no" >&6
  6952. fi
  6953. ;;
  6954. *)
  6955. echo "$as_me:$LINENO: result: no" >&5
  6956. echo "${ECHO_T}no" >&6
  6957. ;;
  6958. esac
  6959. fi
  6960. if test "x$enable_dlopen" != xyes; then
  6961. enable_dlopen=unknown
  6962. enable_dlopen_self=unknown
  6963. enable_dlopen_self_static=unknown
  6964. else
  6965. lt_cv_dlopen=no
  6966. lt_cv_dlopen_libs=
  6967. case $host_os in
  6968. beos*)
  6969. lt_cv_dlopen="load_add_on"
  6970. lt_cv_dlopen_libs=
  6971. lt_cv_dlopen_self=yes
  6972. ;;
  6973. mingw* | pw32*)
  6974. lt_cv_dlopen="LoadLibrary"
  6975. lt_cv_dlopen_libs=
  6976. ;;
  6977. cygwin*)
  6978. lt_cv_dlopen="dlopen"
  6979. lt_cv_dlopen_libs=
  6980. ;;
  6981. darwin*)
  6982. # if libdl is installed we need to link against it
  6983. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  6984. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  6985. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  6986. echo $ECHO_N "(cached) $ECHO_C" >&6
  6987. else
  6988. ac_check_lib_save_LIBS=$LIBS
  6989. LIBS="-ldl $LIBS"
  6990. cat >conftest.$ac_ext <<_ACEOF
  6991. /* confdefs.h. */
  6992. _ACEOF
  6993. cat confdefs.h >>conftest.$ac_ext
  6994. cat >>conftest.$ac_ext <<_ACEOF
  6995. /* end confdefs.h. */
  6996. /* Override any gcc2 internal prototype to avoid an error. */
  6997. #ifdef __cplusplus
  6998. extern "C"
  6999. #endif
  7000. /* We use char because int might match the return type of a gcc2
  7001. builtin and then its argument prototype would still apply. */
  7002. char dlopen ();
  7003. int
  7004. main ()
  7005. {
  7006. dlopen ();
  7007. ;
  7008. return 0;
  7009. }
  7010. _ACEOF
  7011. rm -f conftest.$ac_objext conftest$ac_exeext
  7012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7013. (eval $ac_link) 2>conftest.er1
  7014. ac_status=$?
  7015. grep -v '^ *+' conftest.er1 >conftest.err
  7016. rm -f conftest.er1
  7017. cat conftest.err >&5
  7018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019. (exit $ac_status); } &&
  7020. { ac_try='test -z "$ac_c_werror_flag"
  7021. || test ! -s conftest.err'
  7022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7023. (eval $ac_try) 2>&5
  7024. ac_status=$?
  7025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7026. (exit $ac_status); }; } &&
  7027. { ac_try='test -s conftest$ac_exeext'
  7028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7029. (eval $ac_try) 2>&5
  7030. ac_status=$?
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. (exit $ac_status); }; }; then
  7033. ac_cv_lib_dl_dlopen=yes
  7034. else
  7035. echo "$as_me: failed program was:" >&5
  7036. sed 's/^/| /' conftest.$ac_ext >&5
  7037. ac_cv_lib_dl_dlopen=no
  7038. fi
  7039. rm -f conftest.err conftest.$ac_objext \
  7040. conftest$ac_exeext conftest.$ac_ext
  7041. LIBS=$ac_check_lib_save_LIBS
  7042. fi
  7043. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7044. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7045. if test $ac_cv_lib_dl_dlopen = yes; then
  7046. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7047. else
  7048. lt_cv_dlopen="dyld"
  7049. lt_cv_dlopen_libs=
  7050. lt_cv_dlopen_self=yes
  7051. fi
  7052. ;;
  7053. *)
  7054. echo "$as_me:$LINENO: checking for shl_load" >&5
  7055. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7056. if test "${ac_cv_func_shl_load+set}" = set; then
  7057. echo $ECHO_N "(cached) $ECHO_C" >&6
  7058. else
  7059. cat >conftest.$ac_ext <<_ACEOF
  7060. /* confdefs.h. */
  7061. _ACEOF
  7062. cat confdefs.h >>conftest.$ac_ext
  7063. cat >>conftest.$ac_ext <<_ACEOF
  7064. /* end confdefs.h. */
  7065. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7066. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7067. #define shl_load innocuous_shl_load
  7068. /* System header to define __stub macros and hopefully few prototypes,
  7069. which can conflict with char shl_load (); below.
  7070. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7071. <limits.h> exists even on freestanding compilers. */
  7072. #ifdef __STDC__
  7073. # include <limits.h>
  7074. #else
  7075. # include <assert.h>
  7076. #endif
  7077. #undef shl_load
  7078. /* Override any gcc2 internal prototype to avoid an error. */
  7079. #ifdef __cplusplus
  7080. extern "C"
  7081. {
  7082. #endif
  7083. /* We use char because int might match the return type of a gcc2
  7084. builtin and then its argument prototype would still apply. */
  7085. char shl_load ();
  7086. /* The GNU C library defines this for functions which it implements
  7087. to always fail with ENOSYS. Some functions are actually named
  7088. something starting with __ and the normal name is an alias. */
  7089. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7090. choke me
  7091. #else
  7092. char (*f) () = shl_load;
  7093. #endif
  7094. #ifdef __cplusplus
  7095. }
  7096. #endif
  7097. int
  7098. main ()
  7099. {
  7100. return f != shl_load;
  7101. ;
  7102. return 0;
  7103. }
  7104. _ACEOF
  7105. rm -f conftest.$ac_objext conftest$ac_exeext
  7106. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7107. (eval $ac_link) 2>conftest.er1
  7108. ac_status=$?
  7109. grep -v '^ *+' conftest.er1 >conftest.err
  7110. rm -f conftest.er1
  7111. cat conftest.err >&5
  7112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7113. (exit $ac_status); } &&
  7114. { ac_try='test -z "$ac_c_werror_flag"
  7115. || test ! -s conftest.err'
  7116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7117. (eval $ac_try) 2>&5
  7118. ac_status=$?
  7119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); }; } &&
  7121. { ac_try='test -s conftest$ac_exeext'
  7122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7123. (eval $ac_try) 2>&5
  7124. ac_status=$?
  7125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7126. (exit $ac_status); }; }; then
  7127. ac_cv_func_shl_load=yes
  7128. else
  7129. echo "$as_me: failed program was:" >&5
  7130. sed 's/^/| /' conftest.$ac_ext >&5
  7131. ac_cv_func_shl_load=no
  7132. fi
  7133. rm -f conftest.err conftest.$ac_objext \
  7134. conftest$ac_exeext conftest.$ac_ext
  7135. fi
  7136. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7137. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7138. if test $ac_cv_func_shl_load = yes; then
  7139. lt_cv_dlopen="shl_load"
  7140. else
  7141. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7142. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7143. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7144. echo $ECHO_N "(cached) $ECHO_C" >&6
  7145. else
  7146. ac_check_lib_save_LIBS=$LIBS
  7147. LIBS="-ldld $LIBS"
  7148. cat >conftest.$ac_ext <<_ACEOF
  7149. /* confdefs.h. */
  7150. _ACEOF
  7151. cat confdefs.h >>conftest.$ac_ext
  7152. cat >>conftest.$ac_ext <<_ACEOF
  7153. /* end confdefs.h. */
  7154. /* Override any gcc2 internal prototype to avoid an error. */
  7155. #ifdef __cplusplus
  7156. extern "C"
  7157. #endif
  7158. /* We use char because int might match the return type of a gcc2
  7159. builtin and then its argument prototype would still apply. */
  7160. char shl_load ();
  7161. int
  7162. main ()
  7163. {
  7164. shl_load ();
  7165. ;
  7166. return 0;
  7167. }
  7168. _ACEOF
  7169. rm -f conftest.$ac_objext conftest$ac_exeext
  7170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7171. (eval $ac_link) 2>conftest.er1
  7172. ac_status=$?
  7173. grep -v '^ *+' conftest.er1 >conftest.err
  7174. rm -f conftest.er1
  7175. cat conftest.err >&5
  7176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7177. (exit $ac_status); } &&
  7178. { ac_try='test -z "$ac_c_werror_flag"
  7179. || test ! -s conftest.err'
  7180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7181. (eval $ac_try) 2>&5
  7182. ac_status=$?
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); }; } &&
  7185. { ac_try='test -s conftest$ac_exeext'
  7186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7187. (eval $ac_try) 2>&5
  7188. ac_status=$?
  7189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7190. (exit $ac_status); }; }; then
  7191. ac_cv_lib_dld_shl_load=yes
  7192. else
  7193. echo "$as_me: failed program was:" >&5
  7194. sed 's/^/| /' conftest.$ac_ext >&5
  7195. ac_cv_lib_dld_shl_load=no
  7196. fi
  7197. rm -f conftest.err conftest.$ac_objext \
  7198. conftest$ac_exeext conftest.$ac_ext
  7199. LIBS=$ac_check_lib_save_LIBS
  7200. fi
  7201. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7202. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7203. if test $ac_cv_lib_dld_shl_load = yes; then
  7204. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7205. else
  7206. echo "$as_me:$LINENO: checking for dlopen" >&5
  7207. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7208. if test "${ac_cv_func_dlopen+set}" = set; then
  7209. echo $ECHO_N "(cached) $ECHO_C" >&6
  7210. else
  7211. cat >conftest.$ac_ext <<_ACEOF
  7212. /* confdefs.h. */
  7213. _ACEOF
  7214. cat confdefs.h >>conftest.$ac_ext
  7215. cat >>conftest.$ac_ext <<_ACEOF
  7216. /* end confdefs.h. */
  7217. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7218. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7219. #define dlopen innocuous_dlopen
  7220. /* System header to define __stub macros and hopefully few prototypes,
  7221. which can conflict with char dlopen (); below.
  7222. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7223. <limits.h> exists even on freestanding compilers. */
  7224. #ifdef __STDC__
  7225. # include <limits.h>
  7226. #else
  7227. # include <assert.h>
  7228. #endif
  7229. #undef dlopen
  7230. /* Override any gcc2 internal prototype to avoid an error. */
  7231. #ifdef __cplusplus
  7232. extern "C"
  7233. {
  7234. #endif
  7235. /* We use char because int might match the return type of a gcc2
  7236. builtin and then its argument prototype would still apply. */
  7237. char dlopen ();
  7238. /* The GNU C library defines this for functions which it implements
  7239. to always fail with ENOSYS. Some functions are actually named
  7240. something starting with __ and the normal name is an alias. */
  7241. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7242. choke me
  7243. #else
  7244. char (*f) () = dlopen;
  7245. #endif
  7246. #ifdef __cplusplus
  7247. }
  7248. #endif
  7249. int
  7250. main ()
  7251. {
  7252. return f != dlopen;
  7253. ;
  7254. return 0;
  7255. }
  7256. _ACEOF
  7257. rm -f conftest.$ac_objext conftest$ac_exeext
  7258. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7259. (eval $ac_link) 2>conftest.er1
  7260. ac_status=$?
  7261. grep -v '^ *+' conftest.er1 >conftest.err
  7262. rm -f conftest.er1
  7263. cat conftest.err >&5
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); } &&
  7266. { ac_try='test -z "$ac_c_werror_flag"
  7267. || test ! -s conftest.err'
  7268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7269. (eval $ac_try) 2>&5
  7270. ac_status=$?
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); }; } &&
  7273. { ac_try='test -s conftest$ac_exeext'
  7274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7275. (eval $ac_try) 2>&5
  7276. ac_status=$?
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); }; }; then
  7279. ac_cv_func_dlopen=yes
  7280. else
  7281. echo "$as_me: failed program was:" >&5
  7282. sed 's/^/| /' conftest.$ac_ext >&5
  7283. ac_cv_func_dlopen=no
  7284. fi
  7285. rm -f conftest.err conftest.$ac_objext \
  7286. conftest$ac_exeext conftest.$ac_ext
  7287. fi
  7288. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7289. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7290. if test $ac_cv_func_dlopen = yes; then
  7291. lt_cv_dlopen="dlopen"
  7292. else
  7293. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7294. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7295. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7296. echo $ECHO_N "(cached) $ECHO_C" >&6
  7297. else
  7298. ac_check_lib_save_LIBS=$LIBS
  7299. LIBS="-ldl $LIBS"
  7300. cat >conftest.$ac_ext <<_ACEOF
  7301. /* confdefs.h. */
  7302. _ACEOF
  7303. cat confdefs.h >>conftest.$ac_ext
  7304. cat >>conftest.$ac_ext <<_ACEOF
  7305. /* end confdefs.h. */
  7306. /* Override any gcc2 internal prototype to avoid an error. */
  7307. #ifdef __cplusplus
  7308. extern "C"
  7309. #endif
  7310. /* We use char because int might match the return type of a gcc2
  7311. builtin and then its argument prototype would still apply. */
  7312. char dlopen ();
  7313. int
  7314. main ()
  7315. {
  7316. dlopen ();
  7317. ;
  7318. return 0;
  7319. }
  7320. _ACEOF
  7321. rm -f conftest.$ac_objext conftest$ac_exeext
  7322. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7323. (eval $ac_link) 2>conftest.er1
  7324. ac_status=$?
  7325. grep -v '^ *+' conftest.er1 >conftest.err
  7326. rm -f conftest.er1
  7327. cat conftest.err >&5
  7328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7329. (exit $ac_status); } &&
  7330. { ac_try='test -z "$ac_c_werror_flag"
  7331. || test ! -s conftest.err'
  7332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7333. (eval $ac_try) 2>&5
  7334. ac_status=$?
  7335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7336. (exit $ac_status); }; } &&
  7337. { ac_try='test -s conftest$ac_exeext'
  7338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7339. (eval $ac_try) 2>&5
  7340. ac_status=$?
  7341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7342. (exit $ac_status); }; }; then
  7343. ac_cv_lib_dl_dlopen=yes
  7344. else
  7345. echo "$as_me: failed program was:" >&5
  7346. sed 's/^/| /' conftest.$ac_ext >&5
  7347. ac_cv_lib_dl_dlopen=no
  7348. fi
  7349. rm -f conftest.err conftest.$ac_objext \
  7350. conftest$ac_exeext conftest.$ac_ext
  7351. LIBS=$ac_check_lib_save_LIBS
  7352. fi
  7353. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7354. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7355. if test $ac_cv_lib_dl_dlopen = yes; then
  7356. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7357. else
  7358. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7359. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7360. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7361. echo $ECHO_N "(cached) $ECHO_C" >&6
  7362. else
  7363. ac_check_lib_save_LIBS=$LIBS
  7364. LIBS="-lsvld $LIBS"
  7365. cat >conftest.$ac_ext <<_ACEOF
  7366. /* confdefs.h. */
  7367. _ACEOF
  7368. cat confdefs.h >>conftest.$ac_ext
  7369. cat >>conftest.$ac_ext <<_ACEOF
  7370. /* end confdefs.h. */
  7371. /* Override any gcc2 internal prototype to avoid an error. */
  7372. #ifdef __cplusplus
  7373. extern "C"
  7374. #endif
  7375. /* We use char because int might match the return type of a gcc2
  7376. builtin and then its argument prototype would still apply. */
  7377. char dlopen ();
  7378. int
  7379. main ()
  7380. {
  7381. dlopen ();
  7382. ;
  7383. return 0;
  7384. }
  7385. _ACEOF
  7386. rm -f conftest.$ac_objext conftest$ac_exeext
  7387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7388. (eval $ac_link) 2>conftest.er1
  7389. ac_status=$?
  7390. grep -v '^ *+' conftest.er1 >conftest.err
  7391. rm -f conftest.er1
  7392. cat conftest.err >&5
  7393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7394. (exit $ac_status); } &&
  7395. { ac_try='test -z "$ac_c_werror_flag"
  7396. || test ! -s conftest.err'
  7397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7398. (eval $ac_try) 2>&5
  7399. ac_status=$?
  7400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7401. (exit $ac_status); }; } &&
  7402. { ac_try='test -s conftest$ac_exeext'
  7403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7404. (eval $ac_try) 2>&5
  7405. ac_status=$?
  7406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7407. (exit $ac_status); }; }; then
  7408. ac_cv_lib_svld_dlopen=yes
  7409. else
  7410. echo "$as_me: failed program was:" >&5
  7411. sed 's/^/| /' conftest.$ac_ext >&5
  7412. ac_cv_lib_svld_dlopen=no
  7413. fi
  7414. rm -f conftest.err conftest.$ac_objext \
  7415. conftest$ac_exeext conftest.$ac_ext
  7416. LIBS=$ac_check_lib_save_LIBS
  7417. fi
  7418. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  7419. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  7420. if test $ac_cv_lib_svld_dlopen = yes; then
  7421. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7422. else
  7423. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  7424. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  7425. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7426. echo $ECHO_N "(cached) $ECHO_C" >&6
  7427. else
  7428. ac_check_lib_save_LIBS=$LIBS
  7429. LIBS="-ldld $LIBS"
  7430. cat >conftest.$ac_ext <<_ACEOF
  7431. /* confdefs.h. */
  7432. _ACEOF
  7433. cat confdefs.h >>conftest.$ac_ext
  7434. cat >>conftest.$ac_ext <<_ACEOF
  7435. /* end confdefs.h. */
  7436. /* Override any gcc2 internal prototype to avoid an error. */
  7437. #ifdef __cplusplus
  7438. extern "C"
  7439. #endif
  7440. /* We use char because int might match the return type of a gcc2
  7441. builtin and then its argument prototype would still apply. */
  7442. char dld_link ();
  7443. int
  7444. main ()
  7445. {
  7446. dld_link ();
  7447. ;
  7448. return 0;
  7449. }
  7450. _ACEOF
  7451. rm -f conftest.$ac_objext conftest$ac_exeext
  7452. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7453. (eval $ac_link) 2>conftest.er1
  7454. ac_status=$?
  7455. grep -v '^ *+' conftest.er1 >conftest.err
  7456. rm -f conftest.er1
  7457. cat conftest.err >&5
  7458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7459. (exit $ac_status); } &&
  7460. { ac_try='test -z "$ac_c_werror_flag"
  7461. || test ! -s conftest.err'
  7462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7463. (eval $ac_try) 2>&5
  7464. ac_status=$?
  7465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7466. (exit $ac_status); }; } &&
  7467. { ac_try='test -s conftest$ac_exeext'
  7468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7469. (eval $ac_try) 2>&5
  7470. ac_status=$?
  7471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7472. (exit $ac_status); }; }; then
  7473. ac_cv_lib_dld_dld_link=yes
  7474. else
  7475. echo "$as_me: failed program was:" >&5
  7476. sed 's/^/| /' conftest.$ac_ext >&5
  7477. ac_cv_lib_dld_dld_link=no
  7478. fi
  7479. rm -f conftest.err conftest.$ac_objext \
  7480. conftest$ac_exeext conftest.$ac_ext
  7481. LIBS=$ac_check_lib_save_LIBS
  7482. fi
  7483. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  7484. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7485. if test $ac_cv_lib_dld_dld_link = yes; then
  7486. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7487. fi
  7488. fi
  7489. fi
  7490. fi
  7491. fi
  7492. fi
  7493. ;;
  7494. esac
  7495. if test "x$lt_cv_dlopen" != xno; then
  7496. enable_dlopen=yes
  7497. else
  7498. enable_dlopen=no
  7499. fi
  7500. case $lt_cv_dlopen in
  7501. dlopen)
  7502. save_CPPFLAGS="$CPPFLAGS"
  7503. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7504. save_LDFLAGS="$LDFLAGS"
  7505. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7506. save_LIBS="$LIBS"
  7507. LIBS="$lt_cv_dlopen_libs $LIBS"
  7508. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  7509. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7510. if test "${lt_cv_dlopen_self+set}" = set; then
  7511. echo $ECHO_N "(cached) $ECHO_C" >&6
  7512. else
  7513. if test "$cross_compiling" = yes; then :
  7514. lt_cv_dlopen_self=cross
  7515. else
  7516. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7517. lt_status=$lt_dlunknown
  7518. cat > conftest.$ac_ext <<EOF
  7519. #line 8257 "configure"
  7520. #include "confdefs.h"
  7521. #if HAVE_DLFCN_H
  7522. #include <dlfcn.h>
  7523. #endif
  7524. #include <stdio.h>
  7525. #ifdef RTLD_GLOBAL
  7526. # define LT_DLGLOBAL RTLD_GLOBAL
  7527. #else
  7528. # ifdef DL_GLOBAL
  7529. # define LT_DLGLOBAL DL_GLOBAL
  7530. # else
  7531. # define LT_DLGLOBAL 0
  7532. # endif
  7533. #endif
  7534. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7535. find out it does not work in some platform. */
  7536. #ifndef LT_DLLAZY_OR_NOW
  7537. # ifdef RTLD_LAZY
  7538. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7539. # else
  7540. # ifdef DL_LAZY
  7541. # define LT_DLLAZY_OR_NOW DL_LAZY
  7542. # else
  7543. # ifdef RTLD_NOW
  7544. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7545. # else
  7546. # ifdef DL_NOW
  7547. # define LT_DLLAZY_OR_NOW DL_NOW
  7548. # else
  7549. # define LT_DLLAZY_OR_NOW 0
  7550. # endif
  7551. # endif
  7552. # endif
  7553. # endif
  7554. #endif
  7555. #ifdef __cplusplus
  7556. extern "C" void exit (int);
  7557. #endif
  7558. void fnord() { int i=42;}
  7559. int main ()
  7560. {
  7561. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7562. int status = $lt_dlunknown;
  7563. if (self)
  7564. {
  7565. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7566. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7567. /* dlclose (self); */
  7568. }
  7569. exit (status);
  7570. }
  7571. EOF
  7572. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7573. (eval $ac_link) 2>&5
  7574. ac_status=$?
  7575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7576. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7577. (./conftest; exit; ) 2>/dev/null
  7578. lt_status=$?
  7579. case x$lt_status in
  7580. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7581. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7582. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7583. esac
  7584. else :
  7585. # compilation failed
  7586. lt_cv_dlopen_self=no
  7587. fi
  7588. fi
  7589. rm -fr conftest*
  7590. fi
  7591. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  7592. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7593. if test "x$lt_cv_dlopen_self" = xyes; then
  7594. LDFLAGS="$LDFLAGS $link_static_flag"
  7595. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  7596. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7597. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7598. echo $ECHO_N "(cached) $ECHO_C" >&6
  7599. else
  7600. if test "$cross_compiling" = yes; then :
  7601. lt_cv_dlopen_self_static=cross
  7602. else
  7603. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7604. lt_status=$lt_dlunknown
  7605. cat > conftest.$ac_ext <<EOF
  7606. #line 8355 "configure"
  7607. #include "confdefs.h"
  7608. #if HAVE_DLFCN_H
  7609. #include <dlfcn.h>
  7610. #endif
  7611. #include <stdio.h>
  7612. #ifdef RTLD_GLOBAL
  7613. # define LT_DLGLOBAL RTLD_GLOBAL
  7614. #else
  7615. # ifdef DL_GLOBAL
  7616. # define LT_DLGLOBAL DL_GLOBAL
  7617. # else
  7618. # define LT_DLGLOBAL 0
  7619. # endif
  7620. #endif
  7621. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7622. find out it does not work in some platform. */
  7623. #ifndef LT_DLLAZY_OR_NOW
  7624. # ifdef RTLD_LAZY
  7625. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7626. # else
  7627. # ifdef DL_LAZY
  7628. # define LT_DLLAZY_OR_NOW DL_LAZY
  7629. # else
  7630. # ifdef RTLD_NOW
  7631. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7632. # else
  7633. # ifdef DL_NOW
  7634. # define LT_DLLAZY_OR_NOW DL_NOW
  7635. # else
  7636. # define LT_DLLAZY_OR_NOW 0
  7637. # endif
  7638. # endif
  7639. # endif
  7640. # endif
  7641. #endif
  7642. #ifdef __cplusplus
  7643. extern "C" void exit (int);
  7644. #endif
  7645. void fnord() { int i=42;}
  7646. int main ()
  7647. {
  7648. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7649. int status = $lt_dlunknown;
  7650. if (self)
  7651. {
  7652. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7653. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7654. /* dlclose (self); */
  7655. }
  7656. exit (status);
  7657. }
  7658. EOF
  7659. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7660. (eval $ac_link) 2>&5
  7661. ac_status=$?
  7662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7663. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7664. (./conftest; exit; ) 2>/dev/null
  7665. lt_status=$?
  7666. case x$lt_status in
  7667. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7668. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7669. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  7670. esac
  7671. else :
  7672. # compilation failed
  7673. lt_cv_dlopen_self_static=no
  7674. fi
  7675. fi
  7676. rm -fr conftest*
  7677. fi
  7678. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  7679. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  7680. fi
  7681. CPPFLAGS="$save_CPPFLAGS"
  7682. LDFLAGS="$save_LDFLAGS"
  7683. LIBS="$save_LIBS"
  7684. ;;
  7685. esac
  7686. case $lt_cv_dlopen_self in
  7687. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7688. *) enable_dlopen_self=unknown ;;
  7689. esac
  7690. case $lt_cv_dlopen_self_static in
  7691. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7692. *) enable_dlopen_self_static=unknown ;;
  7693. esac
  7694. fi
  7695. # Report which librarie types wil actually be built
  7696. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  7697. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  7698. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  7699. echo "${ECHO_T}$can_build_shared" >&6
  7700. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  7701. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  7702. test "$can_build_shared" = "no" && enable_shared=no
  7703. # On AIX, shared libraries and static libraries use the same namespace, and
  7704. # are all built from PIC.
  7705. case "$host_os" in
  7706. aix3*)
  7707. test "$enable_shared" = yes && enable_static=no
  7708. if test -n "$RANLIB"; then
  7709. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7710. postinstall_cmds='$RANLIB $lib'
  7711. fi
  7712. ;;
  7713. aix4* | aix5*)
  7714. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7715. test "$enable_shared" = yes && enable_static=no
  7716. fi
  7717. ;;
  7718. esac
  7719. echo "$as_me:$LINENO: result: $enable_shared" >&5
  7720. echo "${ECHO_T}$enable_shared" >&6
  7721. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7722. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  7723. # Make sure either enable_shared or enable_static is yes.
  7724. test "$enable_shared" = yes || enable_static=yes
  7725. echo "$as_me:$LINENO: result: $enable_static" >&5
  7726. echo "${ECHO_T}$enable_static" >&6
  7727. # The else clause should only fire when bootstrapping the
  7728. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7729. # with your package, and you will get complaints that there are
  7730. # no rules to generate ltmain.sh.
  7731. if test -f "$ltmain"; then
  7732. # See if we are running on zsh, and set the options which allow our commands through
  7733. # without removal of \ escapes.
  7734. if test -n "${ZSH_VERSION+set}" ; then
  7735. setopt NO_GLOB_SUBST
  7736. fi
  7737. # Now quote all the things that may contain metacharacters while being
  7738. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7739. # variables and quote the copies for generation of the libtool script.
  7740. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  7741. SED SHELL STRIP \
  7742. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7743. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7744. deplibs_check_method reload_flag reload_cmds need_locks \
  7745. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7746. lt_cv_sys_global_symbol_to_c_name_address \
  7747. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7748. old_postinstall_cmds old_postuninstall_cmds \
  7749. compiler \
  7750. CC \
  7751. LD \
  7752. lt_prog_compiler_wl \
  7753. lt_prog_compiler_pic \
  7754. lt_prog_compiler_static \
  7755. lt_prog_compiler_no_builtin_flag \
  7756. export_dynamic_flag_spec \
  7757. thread_safe_flag_spec \
  7758. whole_archive_flag_spec \
  7759. enable_shared_with_static_runtimes \
  7760. old_archive_cmds \
  7761. old_archive_from_new_cmds \
  7762. predep_objects \
  7763. postdep_objects \
  7764. predeps \
  7765. postdeps \
  7766. compiler_lib_search_path \
  7767. archive_cmds \
  7768. archive_expsym_cmds \
  7769. postinstall_cmds \
  7770. postuninstall_cmds \
  7771. old_archive_from_expsyms_cmds \
  7772. allow_undefined_flag \
  7773. no_undefined_flag \
  7774. export_symbols_cmds \
  7775. hardcode_libdir_flag_spec \
  7776. hardcode_libdir_flag_spec_ld \
  7777. hardcode_libdir_separator \
  7778. hardcode_automatic \
  7779. module_cmds \
  7780. module_expsym_cmds \
  7781. lt_cv_prog_compiler_c_o \
  7782. exclude_expsyms \
  7783. include_expsyms; do
  7784. case $var in
  7785. old_archive_cmds | \
  7786. old_archive_from_new_cmds | \
  7787. archive_cmds | \
  7788. archive_expsym_cmds | \
  7789. module_cmds | \
  7790. module_expsym_cmds | \
  7791. old_archive_from_expsyms_cmds | \
  7792. export_symbols_cmds | \
  7793. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7794. postinstall_cmds | postuninstall_cmds | \
  7795. old_postinstall_cmds | old_postuninstall_cmds | \
  7796. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7797. # Double-quote double-evaled strings.
  7798. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7799. ;;
  7800. *)
  7801. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7802. ;;
  7803. esac
  7804. done
  7805. case $lt_echo in
  7806. *'\$0 --fallback-echo"')
  7807. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7808. ;;
  7809. esac
  7810. cfgfile="${ofile}T"
  7811. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7812. $rm -f "$cfgfile"
  7813. { echo "$as_me:$LINENO: creating $ofile" >&5
  7814. echo "$as_me: creating $ofile" >&6;}
  7815. cat <<__EOF__ >> "$cfgfile"
  7816. #! $SHELL
  7817. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7818. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7819. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7820. #
  7821. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7822. # Free Software Foundation, Inc.
  7823. #
  7824. # This file is part of GNU Libtool:
  7825. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7826. #
  7827. # This program is free software; you can redistribute it and/or modify
  7828. # it under the terms of the GNU General Public License as published by
  7829. # the Free Software Foundation; either version 2 of the License, or
  7830. # (at your option) any later version.
  7831. #
  7832. # This program is distributed in the hope that it will be useful, but
  7833. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7834. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7835. # General Public License for more details.
  7836. #
  7837. # You should have received a copy of the GNU General Public License
  7838. # along with this program; if not, write to the Free Software
  7839. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7840. #
  7841. # As a special exception to the GNU General Public License, if you
  7842. # distribute this file as part of a program that contains a
  7843. # configuration script generated by Autoconf, you may include it under
  7844. # the same distribution terms that you use for the rest of that program.
  7845. # A sed program that does not truncate output.
  7846. SED=$lt_SED
  7847. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7848. Xsed="$SED -e 1s/^X//"
  7849. # The HP-UX ksh and POSIX shell print the target directory to stdout
  7850. # if CDPATH is set.
  7851. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7852. # The names of the tagged configurations supported by this script.
  7853. available_tags=
  7854. # ### BEGIN LIBTOOL CONFIG
  7855. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7856. # Shell to use when invoking shell scripts.
  7857. SHELL=$lt_SHELL
  7858. # Whether or not to build shared libraries.
  7859. build_libtool_libs=$enable_shared
  7860. # Whether or not to build static libraries.
  7861. build_old_libs=$enable_static
  7862. # Whether or not to add -lc for building shared libraries.
  7863. build_libtool_need_lc=$archive_cmds_need_lc
  7864. # Whether or not to disallow shared libs when runtime libs are static
  7865. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  7866. # Whether or not to optimize for fast installation.
  7867. fast_install=$enable_fast_install
  7868. # The host system.
  7869. host_alias=$host_alias
  7870. host=$host
  7871. host_os=$host_os
  7872. # The build system.
  7873. build_alias=$build_alias
  7874. build=$build
  7875. build_os=$build_os
  7876. # An echo program that does not interpret backslashes.
  7877. echo=$lt_echo
  7878. # The archiver.
  7879. AR=$lt_AR
  7880. AR_FLAGS=$lt_AR_FLAGS
  7881. # A C compiler.
  7882. LTCC=$lt_LTCC
  7883. # A language-specific compiler.
  7884. CC=$lt_compiler
  7885. # Is the compiler the GNU C compiler?
  7886. with_gcc=$GCC
  7887. # An ERE matcher.
  7888. EGREP=$lt_EGREP
  7889. # The linker used to build libraries.
  7890. LD=$lt_LD
  7891. # Whether we need hard or soft links.
  7892. LN_S=$lt_LN_S
  7893. # A BSD-compatible nm program.
  7894. NM=$lt_NM
  7895. # A symbol stripping program
  7896. STRIP=$lt_STRIP
  7897. # Used to examine libraries when file_magic_cmd begins "file"
  7898. MAGIC_CMD=$MAGIC_CMD
  7899. # Used on cygwin: DLL creation program.
  7900. DLLTOOL="$DLLTOOL"
  7901. # Used on cygwin: object dumper.
  7902. OBJDUMP="$OBJDUMP"
  7903. # Used on cygwin: assembler.
  7904. AS="$AS"
  7905. # The name of the directory that contains temporary libtool files.
  7906. objdir=$objdir
  7907. # How to create reloadable object files.
  7908. reload_flag=$lt_reload_flag
  7909. reload_cmds=$lt_reload_cmds
  7910. # How to pass a linker flag through the compiler.
  7911. wl=$lt_lt_prog_compiler_wl
  7912. # Object file suffix (normally "o").
  7913. objext="$ac_objext"
  7914. # Old archive suffix (normally "a").
  7915. libext="$libext"
  7916. # Shared library suffix (normally ".so").
  7917. shrext_cmds='$shrext_cmds'
  7918. # Executable file suffix (normally "").
  7919. exeext="$exeext"
  7920. # Additional compiler flags for building library objects.
  7921. pic_flag=$lt_lt_prog_compiler_pic
  7922. pic_mode=$pic_mode
  7923. # What is the maximum length of a command?
  7924. max_cmd_len=$lt_cv_sys_max_cmd_len
  7925. # Does compiler simultaneously support -c and -o options?
  7926. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  7927. # Must we lock files when doing compilation?
  7928. need_locks=$lt_need_locks
  7929. # Do we need the lib prefix for modules?
  7930. need_lib_prefix=$need_lib_prefix
  7931. # Do we need a version for libraries?
  7932. need_version=$need_version
  7933. # Whether dlopen is supported.
  7934. dlopen_support=$enable_dlopen
  7935. # Whether dlopen of programs is supported.
  7936. dlopen_self=$enable_dlopen_self
  7937. # Whether dlopen of statically linked programs is supported.
  7938. dlopen_self_static=$enable_dlopen_self_static
  7939. # Compiler flag to prevent dynamic linking.
  7940. link_static_flag=$lt_lt_prog_compiler_static
  7941. # Compiler flag to turn off builtin functions.
  7942. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  7943. # Compiler flag to allow reflexive dlopens.
  7944. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  7945. # Compiler flag to generate shared objects directly from archives.
  7946. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  7947. # Compiler flag to generate thread-safe objects.
  7948. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  7949. # Library versioning type.
  7950. version_type=$version_type
  7951. # Format of library name prefix.
  7952. libname_spec=$lt_libname_spec
  7953. # List of archive names. First name is the real one, the rest are links.
  7954. # The last name is the one that the linker finds with -lNAME.
  7955. library_names_spec=$lt_library_names_spec
  7956. # The coded name of the library, if different from the real name.
  7957. soname_spec=$lt_soname_spec
  7958. # Commands used to build and install an old-style archive.
  7959. RANLIB=$lt_RANLIB
  7960. old_archive_cmds=$lt_old_archive_cmds
  7961. old_postinstall_cmds=$lt_old_postinstall_cmds
  7962. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7963. # Create an old-style archive from a shared archive.
  7964. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  7965. # Create a temporary old-style archive to link instead of a shared archive.
  7966. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  7967. # Commands used to build and install a shared archive.
  7968. archive_cmds=$lt_archive_cmds
  7969. archive_expsym_cmds=$lt_archive_expsym_cmds
  7970. postinstall_cmds=$lt_postinstall_cmds
  7971. postuninstall_cmds=$lt_postuninstall_cmds
  7972. # Commands used to build a loadable module (assumed same as above if empty)
  7973. module_cmds=$lt_module_cmds
  7974. module_expsym_cmds=$lt_module_expsym_cmds
  7975. # Commands to strip libraries.
  7976. old_striplib=$lt_old_striplib
  7977. striplib=$lt_striplib
  7978. # Dependencies to place before the objects being linked to create a
  7979. # shared library.
  7980. predep_objects=$lt_predep_objects
  7981. # Dependencies to place after the objects being linked to create a
  7982. # shared library.
  7983. postdep_objects=$lt_postdep_objects
  7984. # Dependencies to place before the objects being linked to create a
  7985. # shared library.
  7986. predeps=$lt_predeps
  7987. # Dependencies to place after the objects being linked to create a
  7988. # shared library.
  7989. postdeps=$lt_postdeps
  7990. # The library search path used internally by the compiler when linking
  7991. # a shared library.
  7992. compiler_lib_search_path=$lt_compiler_lib_search_path
  7993. # Method to check whether dependent libraries are shared objects.
  7994. deplibs_check_method=$lt_deplibs_check_method
  7995. # Command to use when deplibs_check_method == file_magic.
  7996. file_magic_cmd=$lt_file_magic_cmd
  7997. # Flag that allows shared libraries with undefined symbols to be built.
  7998. allow_undefined_flag=$lt_allow_undefined_flag
  7999. # Flag that forces no undefined symbols.
  8000. no_undefined_flag=$lt_no_undefined_flag
  8001. # Commands used to finish a libtool library installation in a directory.
  8002. finish_cmds=$lt_finish_cmds
  8003. # Same as above, but a single script fragment to be evaled but not shown.
  8004. finish_eval=$lt_finish_eval
  8005. # Take the output of nm and produce a listing of raw symbols and C names.
  8006. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8007. # Transform the output of nm in a proper C declaration
  8008. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8009. # Transform the output of nm in a C name address pair
  8010. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8011. # This is the shared library runtime path variable.
  8012. runpath_var=$runpath_var
  8013. # This is the shared library path variable.
  8014. shlibpath_var=$shlibpath_var
  8015. # Is shlibpath searched before the hard-coded library search path?
  8016. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8017. # How to hardcode a shared library path into an executable.
  8018. hardcode_action=$hardcode_action
  8019. # Whether we should hardcode library paths into libraries.
  8020. hardcode_into_libs=$hardcode_into_libs
  8021. # Flag to hardcode \$libdir into a binary during linking.
  8022. # This must work even if \$libdir does not exist.
  8023. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8024. # If ld is used when linking, flag to hardcode \$libdir into
  8025. # a binary during linking. This must work even if \$libdir does
  8026. # not exist.
  8027. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8028. # Whether we need a single -rpath flag with a separated argument.
  8029. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8030. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8031. # resulting binary.
  8032. hardcode_direct=$hardcode_direct
  8033. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8034. # resulting binary.
  8035. hardcode_minus_L=$hardcode_minus_L
  8036. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8037. # the resulting binary.
  8038. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8039. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8040. # and all subsequent libraries and executables linked against it.
  8041. hardcode_automatic=$hardcode_automatic
  8042. # Variables whose values should be saved in libtool wrapper scripts and
  8043. # restored at relink time.
  8044. variables_saved_for_relink="$variables_saved_for_relink"
  8045. # Whether libtool must link a program against all its dependency libraries.
  8046. link_all_deplibs=$link_all_deplibs
  8047. # Compile-time system search path for libraries
  8048. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8049. # Run-time system search path for libraries
  8050. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8051. # Fix the shell variable \$srcfile for the compiler.
  8052. fix_srcfile_path="$fix_srcfile_path"
  8053. # Set to yes if exported symbols are required.
  8054. always_export_symbols=$always_export_symbols
  8055. # The commands to list exported symbols.
  8056. export_symbols_cmds=$lt_export_symbols_cmds
  8057. # The commands to extract the exported symbol list from a shared archive.
  8058. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8059. # Symbols that should not be listed in the preloaded symbols.
  8060. exclude_expsyms=$lt_exclude_expsyms
  8061. # Symbols that must always be exported.
  8062. include_expsyms=$lt_include_expsyms
  8063. # ### END LIBTOOL CONFIG
  8064. __EOF__
  8065. case $host_os in
  8066. aix3*)
  8067. cat <<\EOF >> "$cfgfile"
  8068. # AIX sometimes has problems with the GCC collect2 program. For some
  8069. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8070. # vanish in a puff of smoke.
  8071. if test "X${COLLECT_NAMES+set}" != Xset; then
  8072. COLLECT_NAMES=
  8073. export COLLECT_NAMES
  8074. fi
  8075. EOF
  8076. ;;
  8077. esac
  8078. # We use sed instead of cat because bash on DJGPP gets confused if
  8079. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8080. # text mode, it properly converts lines to CR/LF. This bash problem
  8081. # is reportedly fixed, but why not run on old versions too?
  8082. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8083. mv -f "$cfgfile" "$ofile" || \
  8084. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8085. chmod +x "$ofile"
  8086. else
  8087. # If there is no Makefile yet, we rely on a make rule to execute
  8088. # `config.status --recheck' to rerun these tests and create the
  8089. # libtool script then.
  8090. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8091. if test -f "$ltmain_in"; then
  8092. test -f Makefile && make "$ltmain"
  8093. fi
  8094. fi
  8095. ac_ext=c
  8096. ac_cpp='$CPP $CPPFLAGS'
  8097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8100. CC="$lt_save_CC"
  8101. # Check whether --with-tags or --without-tags was given.
  8102. if test "${with_tags+set}" = set; then
  8103. withval="$with_tags"
  8104. tagnames="$withval"
  8105. fi;
  8106. if test -f "$ltmain" && test -n "$tagnames"; then
  8107. if test ! -f "${ofile}"; then
  8108. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8109. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8110. fi
  8111. if test -z "$LTCC"; then
  8112. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8113. if test -z "$LTCC"; then
  8114. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8115. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8116. else
  8117. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8118. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8119. fi
  8120. fi
  8121. # Extract list of available tagged configurations in $ofile.
  8122. # Note that this assumes the entire list is on one line.
  8123. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8124. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8125. for tagname in $tagnames; do
  8126. IFS="$lt_save_ifs"
  8127. # Check whether tagname contains only valid characters
  8128. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8129. "") ;;
  8130. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8131. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8132. { (exit 1); exit 1; }; }
  8133. ;;
  8134. esac
  8135. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8136. then
  8137. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8138. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8139. { (exit 1); exit 1; }; }
  8140. fi
  8141. # Update the list of available tags.
  8142. if test -n "$tagname"; then
  8143. echo appending configuration tag \"$tagname\" to $ofile
  8144. case $tagname in
  8145. CXX)
  8146. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8147. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8148. (test "X$CXX" != "Xg++"))) ; then
  8149. ac_ext=cc
  8150. ac_cpp='$CXXCPP $CPPFLAGS'
  8151. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8152. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8153. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8154. archive_cmds_need_lc_CXX=no
  8155. allow_undefined_flag_CXX=
  8156. always_export_symbols_CXX=no
  8157. archive_expsym_cmds_CXX=
  8158. export_dynamic_flag_spec_CXX=
  8159. hardcode_direct_CXX=no
  8160. hardcode_libdir_flag_spec_CXX=
  8161. hardcode_libdir_flag_spec_ld_CXX=
  8162. hardcode_libdir_separator_CXX=
  8163. hardcode_minus_L_CXX=no
  8164. hardcode_automatic_CXX=no
  8165. module_cmds_CXX=
  8166. module_expsym_cmds_CXX=
  8167. link_all_deplibs_CXX=unknown
  8168. old_archive_cmds_CXX=$old_archive_cmds
  8169. no_undefined_flag_CXX=
  8170. whole_archive_flag_spec_CXX=
  8171. enable_shared_with_static_runtimes_CXX=no
  8172. # Dependencies to place before and after the object being linked:
  8173. predep_objects_CXX=
  8174. postdep_objects_CXX=
  8175. predeps_CXX=
  8176. postdeps_CXX=
  8177. compiler_lib_search_path_CXX=
  8178. # Source file extension for C++ test sources.
  8179. ac_ext=cc
  8180. # Object file extension for compiled C++ test sources.
  8181. objext=o
  8182. objext_CXX=$objext
  8183. # Code to be used in simple compile tests
  8184. lt_simple_compile_test_code="int some_variable = 0;\n"
  8185. # Code to be used in simple link tests
  8186. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  8187. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8188. # If no C compiler was specified, use CC.
  8189. LTCC=${LTCC-"$CC"}
  8190. # Allow CC to be a program name with arguments.
  8191. compiler=$CC
  8192. # save warnings/boilerplate of simple test code
  8193. ac_outfile=conftest.$ac_objext
  8194. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8195. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8196. _lt_compiler_boilerplate=`cat conftest.err`
  8197. $rm conftest*
  8198. ac_outfile=conftest.$ac_objext
  8199. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8200. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8201. _lt_linker_boilerplate=`cat conftest.err`
  8202. $rm conftest*
  8203. # Allow CC to be a program name with arguments.
  8204. lt_save_CC=$CC
  8205. lt_save_LD=$LD
  8206. lt_save_GCC=$GCC
  8207. GCC=$GXX
  8208. lt_save_with_gnu_ld=$with_gnu_ld
  8209. lt_save_path_LD=$lt_cv_path_LD
  8210. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8211. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8212. else
  8213. unset lt_cv_prog_gnu_ld
  8214. fi
  8215. if test -n "${lt_cv_path_LDCXX+set}"; then
  8216. lt_cv_path_LD=$lt_cv_path_LDCXX
  8217. else
  8218. unset lt_cv_path_LD
  8219. fi
  8220. test -z "${LDCXX+set}" || LD=$LDCXX
  8221. CC=${CXX-"c++"}
  8222. compiler=$CC
  8223. compiler_CXX=$CC
  8224. for cc_temp in $compiler""; do
  8225. case $cc_temp in
  8226. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8227. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8228. \-*) ;;
  8229. *) break;;
  8230. esac
  8231. done
  8232. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8233. # We don't want -fno-exception wen compiling C++ code, so set the
  8234. # no_builtin_flag separately
  8235. if test "$GXX" = yes; then
  8236. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8237. else
  8238. lt_prog_compiler_no_builtin_flag_CXX=
  8239. fi
  8240. if test "$GXX" = yes; then
  8241. # Set up default GNU C++ configuration
  8242. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8243. if test "${with_gnu_ld+set}" = set; then
  8244. withval="$with_gnu_ld"
  8245. test "$withval" = no || with_gnu_ld=yes
  8246. else
  8247. with_gnu_ld=no
  8248. fi;
  8249. ac_prog=ld
  8250. if test "$GCC" = yes; then
  8251. # Check if gcc -print-prog-name=ld gives a path.
  8252. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8253. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8254. case $host in
  8255. *-*-mingw*)
  8256. # gcc leaves a trailing carriage return which upsets mingw
  8257. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8258. *)
  8259. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8260. esac
  8261. case $ac_prog in
  8262. # Accept absolute paths.
  8263. [\\/]* | ?:[\\/]*)
  8264. re_direlt='/[^/][^/]*/\.\./'
  8265. # Canonicalize the pathname of ld
  8266. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8267. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8268. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8269. done
  8270. test -z "$LD" && LD="$ac_prog"
  8271. ;;
  8272. "")
  8273. # If it fails, then pretend we aren't using GCC.
  8274. ac_prog=ld
  8275. ;;
  8276. *)
  8277. # If it is relative, then search for the first ld in PATH.
  8278. with_gnu_ld=unknown
  8279. ;;
  8280. esac
  8281. elif test "$with_gnu_ld" = yes; then
  8282. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8283. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8284. else
  8285. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8286. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8287. fi
  8288. if test "${lt_cv_path_LD+set}" = set; then
  8289. echo $ECHO_N "(cached) $ECHO_C" >&6
  8290. else
  8291. if test -z "$LD"; then
  8292. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8293. for ac_dir in $PATH; do
  8294. IFS="$lt_save_ifs"
  8295. test -z "$ac_dir" && ac_dir=.
  8296. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8297. lt_cv_path_LD="$ac_dir/$ac_prog"
  8298. # Check to see if the program is GNU ld. I'd rather use --version,
  8299. # but apparently some GNU ld's only accept -v.
  8300. # Break only if it was the GNU/non-GNU ld that we prefer.
  8301. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8302. *GNU* | *'with BFD'*)
  8303. test "$with_gnu_ld" != no && break
  8304. ;;
  8305. *)
  8306. test "$with_gnu_ld" != yes && break
  8307. ;;
  8308. esac
  8309. fi
  8310. done
  8311. IFS="$lt_save_ifs"
  8312. else
  8313. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8314. fi
  8315. fi
  8316. LD="$lt_cv_path_LD"
  8317. if test -n "$LD"; then
  8318. echo "$as_me:$LINENO: result: $LD" >&5
  8319. echo "${ECHO_T}$LD" >&6
  8320. else
  8321. echo "$as_me:$LINENO: result: no" >&5
  8322. echo "${ECHO_T}no" >&6
  8323. fi
  8324. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8325. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8326. { (exit 1); exit 1; }; }
  8327. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8328. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8329. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8330. echo $ECHO_N "(cached) $ECHO_C" >&6
  8331. else
  8332. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8333. case `$LD -v 2>&1 </dev/null` in
  8334. *GNU* | *'with BFD'*)
  8335. lt_cv_prog_gnu_ld=yes
  8336. ;;
  8337. *)
  8338. lt_cv_prog_gnu_ld=no
  8339. ;;
  8340. esac
  8341. fi
  8342. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8343. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8344. with_gnu_ld=$lt_cv_prog_gnu_ld
  8345. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8346. # archiving commands below assume that GNU ld is being used.
  8347. if test "$with_gnu_ld" = yes; then
  8348. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8349. 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'
  8350. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8351. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8352. # If archive_cmds runs LD, not CC, wlarc should be empty
  8353. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8354. # investigate it a little bit more. (MM)
  8355. wlarc='${wl}'
  8356. # ancient GNU ld didn't support --whole-archive et. al.
  8357. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8358. grep 'no-whole-archive' > /dev/null; then
  8359. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8360. else
  8361. whole_archive_flag_spec_CXX=
  8362. fi
  8363. else
  8364. with_gnu_ld=no
  8365. wlarc=
  8366. # A generic and very simple default shared library creation
  8367. # command for GNU C++ for the case where it uses the native
  8368. # linker, instead of GNU ld. If possible, this setting should
  8369. # overridden to take advantage of the native linker features on
  8370. # the platform it is being used on.
  8371. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8372. fi
  8373. # Commands to make compiler produce verbose output that lists
  8374. # what "hidden" libraries, object files and flags are used when
  8375. # linking a shared library.
  8376. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8377. else
  8378. GXX=no
  8379. with_gnu_ld=no
  8380. wlarc=
  8381. fi
  8382. # PORTME: fill in a description of your system's C++ link characteristics
  8383. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8384. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8385. ld_shlibs_CXX=yes
  8386. case $host_os in
  8387. aix3*)
  8388. # FIXME: insert proper C++ library support
  8389. ld_shlibs_CXX=no
  8390. ;;
  8391. aix4* | aix5*)
  8392. if test "$host_cpu" = ia64; then
  8393. # On IA64, the linker does run time linking by default, so we don't
  8394. # have to do anything special.
  8395. aix_use_runtimelinking=no
  8396. exp_sym_flag='-Bexport'
  8397. no_entry_flag=""
  8398. else
  8399. aix_use_runtimelinking=no
  8400. # Test if we are trying to use run time linking or normal
  8401. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8402. # need to do runtime linking.
  8403. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8404. for ld_flag in $LDFLAGS; do
  8405. case $ld_flag in
  8406. *-brtl*)
  8407. aix_use_runtimelinking=yes
  8408. break
  8409. ;;
  8410. esac
  8411. done
  8412. esac
  8413. exp_sym_flag='-bexport'
  8414. no_entry_flag='-bnoentry'
  8415. fi
  8416. # When large executables or shared objects are built, AIX ld can
  8417. # have problems creating the table of contents. If linking a library
  8418. # or program results in "error TOC overflow" add -mminimal-toc to
  8419. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8420. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8421. archive_cmds_CXX=''
  8422. hardcode_direct_CXX=yes
  8423. hardcode_libdir_separator_CXX=':'
  8424. link_all_deplibs_CXX=yes
  8425. if test "$GXX" = yes; then
  8426. case $host_os in aix4.[012]|aix4.[012].*)
  8427. # We only want to do this on AIX 4.2 and lower, the check
  8428. # below for broken collect2 doesn't work under 4.3+
  8429. collect2name=`${CC} -print-prog-name=collect2`
  8430. if test -f "$collect2name" && \
  8431. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8432. then
  8433. # We have reworked collect2
  8434. hardcode_direct_CXX=yes
  8435. else
  8436. # We have old collect2
  8437. hardcode_direct_CXX=unsupported
  8438. # It fails to find uninstalled libraries when the uninstalled
  8439. # path is not listed in the libpath. Setting hardcode_minus_L
  8440. # to unsupported forces relinking
  8441. hardcode_minus_L_CXX=yes
  8442. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8443. hardcode_libdir_separator_CXX=
  8444. fi
  8445. esac
  8446. shared_flag='-shared'
  8447. if test "$aix_use_runtimelinking" = yes; then
  8448. shared_flag="$shared_flag "'${wl}-G'
  8449. fi
  8450. else
  8451. # not using gcc
  8452. if test "$host_cpu" = ia64; then
  8453. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8454. # chokes on -Wl,-G. The following line is correct:
  8455. shared_flag='-G'
  8456. else
  8457. if test "$aix_use_runtimelinking" = yes; then
  8458. shared_flag='${wl}-G'
  8459. else
  8460. shared_flag='${wl}-bM:SRE'
  8461. fi
  8462. fi
  8463. fi
  8464. # It seems that -bexpall does not export symbols beginning with
  8465. # underscore (_), so it is better to generate a list of symbols to export.
  8466. always_export_symbols_CXX=yes
  8467. if test "$aix_use_runtimelinking" = yes; then
  8468. # Warning - without using the other runtime loading flags (-brtl),
  8469. # -berok will link without error, but may produce a broken library.
  8470. allow_undefined_flag_CXX='-berok'
  8471. # Determine the default libpath from the value encoded in an empty executable.
  8472. cat >conftest.$ac_ext <<_ACEOF
  8473. /* confdefs.h. */
  8474. _ACEOF
  8475. cat confdefs.h >>conftest.$ac_ext
  8476. cat >>conftest.$ac_ext <<_ACEOF
  8477. /* end confdefs.h. */
  8478. int
  8479. main ()
  8480. {
  8481. ;
  8482. return 0;
  8483. }
  8484. _ACEOF
  8485. rm -f conftest.$ac_objext conftest$ac_exeext
  8486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8487. (eval $ac_link) 2>conftest.er1
  8488. ac_status=$?
  8489. grep -v '^ *+' conftest.er1 >conftest.err
  8490. rm -f conftest.er1
  8491. cat conftest.err >&5
  8492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8493. (exit $ac_status); } &&
  8494. { ac_try='test -z "$ac_cxx_werror_flag"
  8495. || test ! -s conftest.err'
  8496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8497. (eval $ac_try) 2>&5
  8498. ac_status=$?
  8499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8500. (exit $ac_status); }; } &&
  8501. { ac_try='test -s conftest$ac_exeext'
  8502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8503. (eval $ac_try) 2>&5
  8504. ac_status=$?
  8505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8506. (exit $ac_status); }; }; then
  8507. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8508. }'`
  8509. # Check for a 64-bit object if we didn't find anything.
  8510. 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; }
  8511. }'`; fi
  8512. else
  8513. echo "$as_me: failed program was:" >&5
  8514. sed 's/^/| /' conftest.$ac_ext >&5
  8515. fi
  8516. rm -f conftest.err conftest.$ac_objext \
  8517. conftest$ac_exeext conftest.$ac_ext
  8518. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8519. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8520. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8521. else
  8522. if test "$host_cpu" = ia64; then
  8523. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8524. allow_undefined_flag_CXX="-z nodefs"
  8525. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  8526. else
  8527. # Determine the default libpath from the value encoded in an empty executable.
  8528. cat >conftest.$ac_ext <<_ACEOF
  8529. /* confdefs.h. */
  8530. _ACEOF
  8531. cat confdefs.h >>conftest.$ac_ext
  8532. cat >>conftest.$ac_ext <<_ACEOF
  8533. /* end confdefs.h. */
  8534. int
  8535. main ()
  8536. {
  8537. ;
  8538. return 0;
  8539. }
  8540. _ACEOF
  8541. rm -f conftest.$ac_objext conftest$ac_exeext
  8542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8543. (eval $ac_link) 2>conftest.er1
  8544. ac_status=$?
  8545. grep -v '^ *+' conftest.er1 >conftest.err
  8546. rm -f conftest.er1
  8547. cat conftest.err >&5
  8548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8549. (exit $ac_status); } &&
  8550. { ac_try='test -z "$ac_cxx_werror_flag"
  8551. || test ! -s conftest.err'
  8552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8553. (eval $ac_try) 2>&5
  8554. ac_status=$?
  8555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8556. (exit $ac_status); }; } &&
  8557. { ac_try='test -s conftest$ac_exeext'
  8558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8559. (eval $ac_try) 2>&5
  8560. ac_status=$?
  8561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. (exit $ac_status); }; }; then
  8563. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8564. }'`
  8565. # Check for a 64-bit object if we didn't find anything.
  8566. 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; }
  8567. }'`; fi
  8568. else
  8569. echo "$as_me: failed program was:" >&5
  8570. sed 's/^/| /' conftest.$ac_ext >&5
  8571. fi
  8572. rm -f conftest.err conftest.$ac_objext \
  8573. conftest$ac_exeext conftest.$ac_ext
  8574. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8575. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8576. # Warning - without using the other run time loading flags,
  8577. # -berok will link without error, but may produce a broken library.
  8578. no_undefined_flag_CXX=' ${wl}-bernotok'
  8579. allow_undefined_flag_CXX=' ${wl}-berok'
  8580. # -bexpall does not export symbols beginning with underscore (_)
  8581. always_export_symbols_CXX=yes
  8582. # Exported symbols can be pulled into shared objects from archives
  8583. whole_archive_flag_spec_CXX=' '
  8584. archive_cmds_need_lc_CXX=yes
  8585. # This is similar to how AIX traditionally builds it's shared libraries.
  8586. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8587. fi
  8588. fi
  8589. ;;
  8590. chorus*)
  8591. case $cc_basename in
  8592. *)
  8593. # FIXME: insert proper C++ library support
  8594. ld_shlibs_CXX=no
  8595. ;;
  8596. esac
  8597. ;;
  8598. cygwin* | mingw* | pw32*)
  8599. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8600. # as there is no search path for DLLs.
  8601. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8602. allow_undefined_flag_CXX=unsupported
  8603. always_export_symbols_CXX=no
  8604. enable_shared_with_static_runtimes_CXX=yes
  8605. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8606. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8607. # If the export-symbols file already is a .def file (1st line
  8608. # is EXPORTS), use it as is; otherwise, prepend...
  8609. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8610. cp $export_symbols $output_objdir/$soname.def;
  8611. else
  8612. echo EXPORTS > $output_objdir/$soname.def;
  8613. cat $export_symbols >> $output_objdir/$soname.def;
  8614. fi~
  8615. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8616. else
  8617. ld_shlibs_CXX=no
  8618. fi
  8619. ;;
  8620. darwin* | rhapsody*)
  8621. case "$host_os" in
  8622. rhapsody* | darwin1.[012])
  8623. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  8624. ;;
  8625. *) # Darwin 1.3 on
  8626. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8627. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8628. else
  8629. case ${MACOSX_DEPLOYMENT_TARGET} in
  8630. 10.[012])
  8631. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8632. ;;
  8633. 10.*)
  8634. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  8635. ;;
  8636. esac
  8637. fi
  8638. ;;
  8639. esac
  8640. archive_cmds_need_lc_CXX=no
  8641. hardcode_direct_CXX=no
  8642. hardcode_automatic_CXX=yes
  8643. hardcode_shlibpath_var_CXX=unsupported
  8644. whole_archive_flag_spec_CXX=''
  8645. link_all_deplibs_CXX=yes
  8646. if test "$GXX" = yes ; then
  8647. lt_int_apple_cc_single_mod=no
  8648. output_verbose_link_cmd='echo'
  8649. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  8650. lt_int_apple_cc_single_mod=yes
  8651. fi
  8652. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8653. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8654. else
  8655. 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'
  8656. fi
  8657. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8658. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8659. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8660. 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}'
  8661. else
  8662. 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}'
  8663. fi
  8664. 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}'
  8665. else
  8666. case $cc_basename in
  8667. xlc*)
  8668. output_verbose_link_cmd='echo'
  8669. 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'
  8670. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8671. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8672. 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}'
  8673. 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}'
  8674. ;;
  8675. *)
  8676. ld_shlibs_CXX=no
  8677. ;;
  8678. esac
  8679. fi
  8680. ;;
  8681. dgux*)
  8682. case $cc_basename in
  8683. ec++*)
  8684. # FIXME: insert proper C++ library support
  8685. ld_shlibs_CXX=no
  8686. ;;
  8687. ghcx*)
  8688. # Green Hills C++ Compiler
  8689. # FIXME: insert proper C++ library support
  8690. ld_shlibs_CXX=no
  8691. ;;
  8692. *)
  8693. # FIXME: insert proper C++ library support
  8694. ld_shlibs_CXX=no
  8695. ;;
  8696. esac
  8697. ;;
  8698. freebsd[12]*)
  8699. # C++ shared libraries reported to be fairly broken before switch to ELF
  8700. ld_shlibs_CXX=no
  8701. ;;
  8702. freebsd-elf*)
  8703. archive_cmds_need_lc_CXX=no
  8704. ;;
  8705. freebsd* | kfreebsd*-gnu | dragonfly*)
  8706. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8707. # conventions
  8708. ld_shlibs_CXX=yes
  8709. ;;
  8710. gnu*)
  8711. ;;
  8712. hpux9*)
  8713. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8714. hardcode_libdir_separator_CXX=:
  8715. export_dynamic_flag_spec_CXX='${wl}-E'
  8716. hardcode_direct_CXX=yes
  8717. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8718. # but as the default
  8719. # location of the library.
  8720. case $cc_basename in
  8721. CC*)
  8722. # FIXME: insert proper C++ library support
  8723. ld_shlibs_CXX=no
  8724. ;;
  8725. aCC*)
  8726. 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'
  8727. # Commands to make compiler produce verbose output that lists
  8728. # what "hidden" libraries, object files and flags are used when
  8729. # linking a shared library.
  8730. #
  8731. # There doesn't appear to be a way to prevent this compiler from
  8732. # explicitly linking system object files so we need to strip them
  8733. # from the output so that they don't get included in the library
  8734. # dependencies.
  8735. 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'
  8736. ;;
  8737. *)
  8738. if test "$GXX" = yes; then
  8739. 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'
  8740. else
  8741. # FIXME: insert proper C++ library support
  8742. ld_shlibs_CXX=no
  8743. fi
  8744. ;;
  8745. esac
  8746. ;;
  8747. hpux10*|hpux11*)
  8748. if test $with_gnu_ld = no; then
  8749. case "$host_cpu" in
  8750. hppa*64*)
  8751. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8752. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  8753. hardcode_libdir_separator_CXX=:
  8754. ;;
  8755. ia64*)
  8756. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8757. ;;
  8758. *)
  8759. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8760. hardcode_libdir_separator_CXX=:
  8761. export_dynamic_flag_spec_CXX='${wl}-E'
  8762. ;;
  8763. esac
  8764. fi
  8765. case "$host_cpu" in
  8766. hppa*64*)
  8767. hardcode_direct_CXX=no
  8768. hardcode_shlibpath_var_CXX=no
  8769. ;;
  8770. ia64*)
  8771. hardcode_direct_CXX=no
  8772. hardcode_shlibpath_var_CXX=no
  8773. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8774. # but as the default
  8775. # location of the library.
  8776. ;;
  8777. *)
  8778. hardcode_direct_CXX=yes
  8779. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8780. # but as the default
  8781. # location of the library.
  8782. ;;
  8783. esac
  8784. case $cc_basename in
  8785. CC*)
  8786. # FIXME: insert proper C++ library support
  8787. ld_shlibs_CXX=no
  8788. ;;
  8789. aCC*)
  8790. case "$host_cpu" in
  8791. hppa*64*|ia64*)
  8792. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  8793. ;;
  8794. *)
  8795. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8796. ;;
  8797. esac
  8798. # Commands to make compiler produce verbose output that lists
  8799. # what "hidden" libraries, object files and flags are used when
  8800. # linking a shared library.
  8801. #
  8802. # There doesn't appear to be a way to prevent this compiler from
  8803. # explicitly linking system object files so we need to strip them
  8804. # from the output so that they don't get included in the library
  8805. # dependencies.
  8806. 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'
  8807. ;;
  8808. *)
  8809. if test "$GXX" = yes; then
  8810. if test $with_gnu_ld = no; then
  8811. case "$host_cpu" in
  8812. ia64*|hppa*64*)
  8813. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  8814. ;;
  8815. *)
  8816. 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'
  8817. ;;
  8818. esac
  8819. fi
  8820. else
  8821. # FIXME: insert proper C++ library support
  8822. ld_shlibs_CXX=no
  8823. fi
  8824. ;;
  8825. esac
  8826. ;;
  8827. irix5* | irix6*)
  8828. case $cc_basename in
  8829. CC*)
  8830. # SGI C++
  8831. 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'
  8832. # Archives containing C++ object files must be created using
  8833. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  8834. # necessary to make sure instantiated templates are included
  8835. # in the archive.
  8836. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  8837. ;;
  8838. *)
  8839. if test "$GXX" = yes; then
  8840. if test "$with_gnu_ld" = no; then
  8841. 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'
  8842. else
  8843. 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'
  8844. fi
  8845. fi
  8846. link_all_deplibs_CXX=yes
  8847. ;;
  8848. esac
  8849. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8850. hardcode_libdir_separator_CXX=:
  8851. ;;
  8852. linux*)
  8853. case $cc_basename in
  8854. KCC*)
  8855. # Kuck and Associates, Inc. (KAI) C++ Compiler
  8856. # KCC will only create a shared library if the output file
  8857. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8858. # to its proper name (with version) after linking.
  8859. 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'
  8860. 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'
  8861. # Commands to make compiler produce verbose output that lists
  8862. # what "hidden" libraries, object files and flags are used when
  8863. # linking a shared library.
  8864. #
  8865. # There doesn't appear to be a way to prevent this compiler from
  8866. # explicitly linking system object files so we need to strip them
  8867. # from the output so that they don't get included in the library
  8868. # dependencies.
  8869. 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'
  8870. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  8871. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8872. # Archives containing C++ object files must be created using
  8873. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8874. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8875. ;;
  8876. icpc*)
  8877. # Intel C++
  8878. with_gnu_ld=yes
  8879. # version 8.0 and above of icpc choke on multiply defined symbols
  8880. # if we add $predep_objects and $postdep_objects, however 7.1 and
  8881. # earlier do not add the objects themselves.
  8882. case `$CC -V 2>&1` in
  8883. *"Version 7."*)
  8884. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8885. 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'
  8886. ;;
  8887. *) # Version 8.0 or newer
  8888. tmp_idyn=
  8889. case $host_cpu in
  8890. ia64*) tmp_idyn=' -i_dynamic';;
  8891. esac
  8892. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8893. 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'
  8894. ;;
  8895. esac
  8896. archive_cmds_need_lc_CXX=no
  8897. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8898. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8899. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8900. ;;
  8901. pgCC*)
  8902. # Portland Group C++ compiler
  8903. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8904. 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'
  8905. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8906. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8907. 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'
  8908. ;;
  8909. cxx*)
  8910. # Compaq C++
  8911. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8912. 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'
  8913. runpath_var=LD_RUN_PATH
  8914. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  8915. hardcode_libdir_separator_CXX=:
  8916. # Commands to make compiler produce verbose output that lists
  8917. # what "hidden" libraries, object files and flags are used when
  8918. # linking a shared library.
  8919. #
  8920. # There doesn't appear to be a way to prevent this compiler from
  8921. # explicitly linking system object files so we need to strip them
  8922. # from the output so that they don't get included in the library
  8923. # dependencies.
  8924. 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'
  8925. ;;
  8926. esac
  8927. ;;
  8928. lynxos*)
  8929. # FIXME: insert proper C++ library support
  8930. ld_shlibs_CXX=no
  8931. ;;
  8932. m88k*)
  8933. # FIXME: insert proper C++ library support
  8934. ld_shlibs_CXX=no
  8935. ;;
  8936. mvs*)
  8937. case $cc_basename in
  8938. cxx*)
  8939. # FIXME: insert proper C++ library support
  8940. ld_shlibs_CXX=no
  8941. ;;
  8942. *)
  8943. # FIXME: insert proper C++ library support
  8944. ld_shlibs_CXX=no
  8945. ;;
  8946. esac
  8947. ;;
  8948. netbsd*)
  8949. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8950. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  8951. wlarc=
  8952. hardcode_libdir_flag_spec_CXX='-R$libdir'
  8953. hardcode_direct_CXX=yes
  8954. hardcode_shlibpath_var_CXX=no
  8955. fi
  8956. # Workaround some broken pre-1.5 toolchains
  8957. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  8958. ;;
  8959. openbsd2*)
  8960. # C++ shared libraries are fairly broken
  8961. ld_shlibs_CXX=no
  8962. ;;
  8963. openbsd*)
  8964. hardcode_direct_CXX=yes
  8965. hardcode_shlibpath_var_CXX=no
  8966. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8967. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8968. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8969. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  8970. export_dynamic_flag_spec_CXX='${wl}-E'
  8971. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8972. fi
  8973. output_verbose_link_cmd='echo'
  8974. ;;
  8975. osf3*)
  8976. case $cc_basename in
  8977. KCC*)
  8978. # Kuck and Associates, Inc. (KAI) C++ Compiler
  8979. # KCC will only create a shared library if the output file
  8980. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8981. # to its proper name (with version) after linking.
  8982. 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'
  8983. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8984. hardcode_libdir_separator_CXX=:
  8985. # Archives containing C++ object files must be created using
  8986. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8987. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8988. ;;
  8989. RCC*)
  8990. # Rational C++ 2.4.1
  8991. # FIXME: insert proper C++ library support
  8992. ld_shlibs_CXX=no
  8993. ;;
  8994. cxx*)
  8995. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  8996. 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'
  8997. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8998. hardcode_libdir_separator_CXX=:
  8999. # Commands to make compiler produce verbose output that lists
  9000. # what "hidden" libraries, object files and flags are used when
  9001. # linking a shared library.
  9002. #
  9003. # There doesn't appear to be a way to prevent this compiler from
  9004. # explicitly linking system object files so we need to strip them
  9005. # from the output so that they don't get included in the library
  9006. # dependencies.
  9007. 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'
  9008. ;;
  9009. *)
  9010. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9011. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9012. 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'
  9013. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9014. hardcode_libdir_separator_CXX=:
  9015. # Commands to make compiler produce verbose output that lists
  9016. # what "hidden" libraries, object files and flags are used when
  9017. # linking a shared library.
  9018. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9019. else
  9020. # FIXME: insert proper C++ library support
  9021. ld_shlibs_CXX=no
  9022. fi
  9023. ;;
  9024. esac
  9025. ;;
  9026. osf4* | osf5*)
  9027. case $cc_basename in
  9028. KCC*)
  9029. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9030. # KCC will only create a shared library if the output file
  9031. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9032. # to its proper name (with version) after linking.
  9033. 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'
  9034. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9035. hardcode_libdir_separator_CXX=:
  9036. # Archives containing C++ object files must be created using
  9037. # the KAI C++ compiler.
  9038. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9039. ;;
  9040. RCC*)
  9041. # Rational C++ 2.4.1
  9042. # FIXME: insert proper C++ library support
  9043. ld_shlibs_CXX=no
  9044. ;;
  9045. cxx*)
  9046. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9047. 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'
  9048. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9049. echo "-hidden">> $lib.exp~
  9050. $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~
  9051. $rm $lib.exp'
  9052. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9053. hardcode_libdir_separator_CXX=:
  9054. # Commands to make compiler produce verbose output that lists
  9055. # what "hidden" libraries, object files and flags are used when
  9056. # linking a shared library.
  9057. #
  9058. # There doesn't appear to be a way to prevent this compiler from
  9059. # explicitly linking system object files so we need to strip them
  9060. # from the output so that they don't get included in the library
  9061. # dependencies.
  9062. 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'
  9063. ;;
  9064. *)
  9065. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9066. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9067. 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'
  9068. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9069. hardcode_libdir_separator_CXX=:
  9070. # Commands to make compiler produce verbose output that lists
  9071. # what "hidden" libraries, object files and flags are used when
  9072. # linking a shared library.
  9073. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9074. else
  9075. # FIXME: insert proper C++ library support
  9076. ld_shlibs_CXX=no
  9077. fi
  9078. ;;
  9079. esac
  9080. ;;
  9081. psos*)
  9082. # FIXME: insert proper C++ library support
  9083. ld_shlibs_CXX=no
  9084. ;;
  9085. sco*)
  9086. archive_cmds_need_lc_CXX=no
  9087. case $cc_basename in
  9088. CC*)
  9089. # FIXME: insert proper C++ library support
  9090. ld_shlibs_CXX=no
  9091. ;;
  9092. *)
  9093. # FIXME: insert proper C++ library support
  9094. ld_shlibs_CXX=no
  9095. ;;
  9096. esac
  9097. ;;
  9098. sunos4*)
  9099. case $cc_basename in
  9100. CC*)
  9101. # Sun C++ 4.x
  9102. # FIXME: insert proper C++ library support
  9103. ld_shlibs_CXX=no
  9104. ;;
  9105. lcc*)
  9106. # Lucid
  9107. # FIXME: insert proper C++ library support
  9108. ld_shlibs_CXX=no
  9109. ;;
  9110. *)
  9111. # FIXME: insert proper C++ library support
  9112. ld_shlibs_CXX=no
  9113. ;;
  9114. esac
  9115. ;;
  9116. solaris*)
  9117. case $cc_basename in
  9118. CC*)
  9119. # Sun C++ 4.2, 5.x and Centerline C++
  9120. no_undefined_flag_CXX=' -zdefs'
  9121. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9122. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9123. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9124. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9125. hardcode_shlibpath_var_CXX=no
  9126. case $host_os in
  9127. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9128. *)
  9129. # The C++ compiler is used as linker so we must use $wl
  9130. # flag to pass the commands to the underlying system
  9131. # linker. We must also pass each convience library through
  9132. # to the system linker between allextract/defaultextract.
  9133. # The C++ compiler will combine linker options so we
  9134. # cannot just pass the convience library names through
  9135. # without $wl.
  9136. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9137. 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'
  9138. ;;
  9139. esac
  9140. link_all_deplibs_CXX=yes
  9141. # Commands to make compiler produce verbose output that lists
  9142. # what "hidden" libraries, object files and flags are used when
  9143. # linking a shared library.
  9144. #
  9145. # There doesn't appear to be a way to prevent this compiler from
  9146. # explicitly linking system object files so we need to strip them
  9147. # from the output so that they don't get included in the library
  9148. # dependencies.
  9149. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9150. # Archives containing C++ object files must be created using
  9151. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9152. # necessary to make sure instantiated templates are included
  9153. # in the archive.
  9154. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9155. ;;
  9156. gcx*)
  9157. # Green Hills C++ Compiler
  9158. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9159. # The C++ compiler must be used to create the archive.
  9160. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9161. ;;
  9162. *)
  9163. # GNU C++ compiler with Solaris linker
  9164. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9165. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9166. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9167. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9168. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9169. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9170. # Commands to make compiler produce verbose output that lists
  9171. # what "hidden" libraries, object files and flags are used when
  9172. # linking a shared library.
  9173. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9174. else
  9175. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9176. # platform.
  9177. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9178. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9179. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9180. # Commands to make compiler produce verbose output that lists
  9181. # what "hidden" libraries, object files and flags are used when
  9182. # linking a shared library.
  9183. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9184. fi
  9185. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9186. fi
  9187. ;;
  9188. esac
  9189. ;;
  9190. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9191. archive_cmds_need_lc_CXX=no
  9192. ;;
  9193. tandem*)
  9194. case $cc_basename in
  9195. NCC*)
  9196. # NonStop-UX NCC 3.20
  9197. # FIXME: insert proper C++ library support
  9198. ld_shlibs_CXX=no
  9199. ;;
  9200. *)
  9201. # FIXME: insert proper C++ library support
  9202. ld_shlibs_CXX=no
  9203. ;;
  9204. esac
  9205. ;;
  9206. vxworks*)
  9207. # FIXME: insert proper C++ library support
  9208. ld_shlibs_CXX=no
  9209. ;;
  9210. *)
  9211. # FIXME: insert proper C++ library support
  9212. ld_shlibs_CXX=no
  9213. ;;
  9214. esac
  9215. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9216. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9217. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9218. GCC_CXX="$GXX"
  9219. LD_CXX="$LD"
  9220. ## CAVEAT EMPTOR:
  9221. ## There is no encapsulation within the following macros, do not change
  9222. ## the running order or otherwise move them around unless you know exactly
  9223. ## what you are doing...
  9224. cat > conftest.$ac_ext <<EOF
  9225. class Foo
  9226. {
  9227. public:
  9228. Foo (void) { a = 0; }
  9229. private:
  9230. int a;
  9231. };
  9232. EOF
  9233. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9234. (eval $ac_compile) 2>&5
  9235. ac_status=$?
  9236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9237. (exit $ac_status); }; then
  9238. # Parse the compiler output and extract the necessary
  9239. # objects, libraries and library flags.
  9240. # Sentinel used to keep track of whether or not we are before
  9241. # the conftest object file.
  9242. pre_test_object_deps_done=no
  9243. # The `*' in the case matches for architectures that use `case' in
  9244. # $output_verbose_cmd can trigger glob expansion during the loop
  9245. # eval without this substitution.
  9246. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  9247. for p in `eval $output_verbose_link_cmd`; do
  9248. case $p in
  9249. -L* | -R* | -l*)
  9250. # Some compilers place space between "-{L,R}" and the path.
  9251. # Remove the space.
  9252. if test $p = "-L" \
  9253. || test $p = "-R"; then
  9254. prev=$p
  9255. continue
  9256. else
  9257. prev=
  9258. fi
  9259. if test "$pre_test_object_deps_done" = no; then
  9260. case $p in
  9261. -L* | -R*)
  9262. # Internal compiler library paths should come after those
  9263. # provided the user. The postdeps already come after the
  9264. # user supplied libs so there is no need to process them.
  9265. if test -z "$compiler_lib_search_path_CXX"; then
  9266. compiler_lib_search_path_CXX="${prev}${p}"
  9267. else
  9268. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9269. fi
  9270. ;;
  9271. # The "-l" case would never come before the object being
  9272. # linked, so don't bother handling this case.
  9273. esac
  9274. else
  9275. if test -z "$postdeps_CXX"; then
  9276. postdeps_CXX="${prev}${p}"
  9277. else
  9278. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9279. fi
  9280. fi
  9281. ;;
  9282. *.$objext)
  9283. # This assumes that the test object file only shows up
  9284. # once in the compiler output.
  9285. if test "$p" = "conftest.$objext"; then
  9286. pre_test_object_deps_done=yes
  9287. continue
  9288. fi
  9289. if test "$pre_test_object_deps_done" = no; then
  9290. if test -z "$predep_objects_CXX"; then
  9291. predep_objects_CXX="$p"
  9292. else
  9293. predep_objects_CXX="$predep_objects_CXX $p"
  9294. fi
  9295. else
  9296. if test -z "$postdep_objects_CXX"; then
  9297. postdep_objects_CXX="$p"
  9298. else
  9299. postdep_objects_CXX="$postdep_objects_CXX $p"
  9300. fi
  9301. fi
  9302. ;;
  9303. *) ;; # Ignore the rest.
  9304. esac
  9305. done
  9306. # Clean up.
  9307. rm -f a.out a.exe
  9308. else
  9309. echo "libtool.m4: error: problem compiling CXX test program"
  9310. fi
  9311. $rm -f confest.$objext
  9312. case " $postdeps_CXX " in
  9313. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9314. esac
  9315. lt_prog_compiler_wl_CXX=
  9316. lt_prog_compiler_pic_CXX=
  9317. lt_prog_compiler_static_CXX=
  9318. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9319. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9320. # C++ specific cases for pic, static, wl, etc.
  9321. if test "$GXX" = yes; then
  9322. lt_prog_compiler_wl_CXX='-Wl,'
  9323. lt_prog_compiler_static_CXX='-static'
  9324. case $host_os in
  9325. aix*)
  9326. # All AIX code is PIC.
  9327. if test "$host_cpu" = ia64; then
  9328. # AIX 5 now supports IA64 processor
  9329. lt_prog_compiler_static_CXX='-Bstatic'
  9330. fi
  9331. ;;
  9332. amigaos*)
  9333. # FIXME: we need at least 68020 code to build shared libraries, but
  9334. # adding the `-m68020' flag to GCC prevents building anything better,
  9335. # like `-m68040'.
  9336. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9337. ;;
  9338. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9339. # PIC is the default for these OSes.
  9340. ;;
  9341. mingw* | os2* | pw32*)
  9342. # This hack is so that the source file can tell whether it is being
  9343. # built for inclusion in a dll (and should export symbols for example).
  9344. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9345. ;;
  9346. darwin* | rhapsody*)
  9347. # PIC is the default on this platform
  9348. # Common symbols not allowed in MH_DYLIB files
  9349. lt_prog_compiler_pic_CXX='-fno-common'
  9350. ;;
  9351. *djgpp*)
  9352. # DJGPP does not support shared libraries at all
  9353. lt_prog_compiler_pic_CXX=
  9354. ;;
  9355. sysv4*MP*)
  9356. if test -d /usr/nec; then
  9357. lt_prog_compiler_pic_CXX=-Kconform_pic
  9358. fi
  9359. ;;
  9360. hpux*)
  9361. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9362. # not for PA HP-UX.
  9363. case "$host_cpu" in
  9364. hppa*64*|ia64*)
  9365. ;;
  9366. *)
  9367. lt_prog_compiler_pic_CXX='-fPIC'
  9368. ;;
  9369. esac
  9370. ;;
  9371. *)
  9372. lt_prog_compiler_pic_CXX='-fPIC'
  9373. ;;
  9374. esac
  9375. else
  9376. case $host_os in
  9377. aix4* | aix5*)
  9378. # All AIX code is PIC.
  9379. if test "$host_cpu" = ia64; then
  9380. # AIX 5 now supports IA64 processor
  9381. lt_prog_compiler_static_CXX='-Bstatic'
  9382. else
  9383. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9384. fi
  9385. ;;
  9386. chorus*)
  9387. case $cc_basename in
  9388. cxch68*)
  9389. # Green Hills C++ Compiler
  9390. # _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"
  9391. ;;
  9392. esac
  9393. ;;
  9394. darwin*)
  9395. # PIC is the default on this platform
  9396. # Common symbols not allowed in MH_DYLIB files
  9397. case $cc_basename in
  9398. xlc*)
  9399. lt_prog_compiler_pic_CXX='-qnocommon'
  9400. lt_prog_compiler_wl_CXX='-Wl,'
  9401. ;;
  9402. esac
  9403. ;;
  9404. dgux*)
  9405. case $cc_basename in
  9406. ec++*)
  9407. lt_prog_compiler_pic_CXX='-KPIC'
  9408. ;;
  9409. ghcx*)
  9410. # Green Hills C++ Compiler
  9411. lt_prog_compiler_pic_CXX='-pic'
  9412. ;;
  9413. *)
  9414. ;;
  9415. esac
  9416. ;;
  9417. freebsd* | kfreebsd*-gnu | dragonfly*)
  9418. # FreeBSD uses GNU C++
  9419. ;;
  9420. hpux9* | hpux10* | hpux11*)
  9421. case $cc_basename in
  9422. CC*)
  9423. lt_prog_compiler_wl_CXX='-Wl,'
  9424. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9425. if test "$host_cpu" != ia64; then
  9426. lt_prog_compiler_pic_CXX='+Z'
  9427. fi
  9428. ;;
  9429. aCC*)
  9430. lt_prog_compiler_wl_CXX='-Wl,'
  9431. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9432. case "$host_cpu" in
  9433. hppa*64*|ia64*)
  9434. # +Z the default
  9435. ;;
  9436. *)
  9437. lt_prog_compiler_pic_CXX='+Z'
  9438. ;;
  9439. esac
  9440. ;;
  9441. *)
  9442. ;;
  9443. esac
  9444. ;;
  9445. irix5* | irix6* | nonstopux*)
  9446. case $cc_basename in
  9447. CC*)
  9448. lt_prog_compiler_wl_CXX='-Wl,'
  9449. lt_prog_compiler_static_CXX='-non_shared'
  9450. # CC pic flag -KPIC is the default.
  9451. ;;
  9452. *)
  9453. ;;
  9454. esac
  9455. ;;
  9456. linux*)
  9457. case $cc_basename in
  9458. KCC*)
  9459. # KAI C++ Compiler
  9460. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9461. lt_prog_compiler_pic_CXX='-fPIC'
  9462. ;;
  9463. icpc* | ecpc*)
  9464. # Intel C++
  9465. lt_prog_compiler_wl_CXX='-Wl,'
  9466. lt_prog_compiler_pic_CXX='-KPIC'
  9467. lt_prog_compiler_static_CXX='-static'
  9468. ;;
  9469. pgCC*)
  9470. # Portland Group C++ compiler.
  9471. lt_prog_compiler_wl_CXX='-Wl,'
  9472. lt_prog_compiler_pic_CXX='-fpic'
  9473. lt_prog_compiler_static_CXX='-static'
  9474. ;;
  9475. cxx*)
  9476. # Compaq C++
  9477. # Make sure the PIC flag is empty. It appears that all Alpha
  9478. # Linux and Compaq Tru64 Unix objects are PIC.
  9479. lt_prog_compiler_pic_CXX=
  9480. lt_prog_compiler_static_CXX='-non_shared'
  9481. ;;
  9482. *)
  9483. ;;
  9484. esac
  9485. ;;
  9486. lynxos*)
  9487. ;;
  9488. m88k*)
  9489. ;;
  9490. mvs*)
  9491. case $cc_basename in
  9492. cxx*)
  9493. lt_prog_compiler_pic_CXX='-W c,exportall'
  9494. ;;
  9495. *)
  9496. ;;
  9497. esac
  9498. ;;
  9499. netbsd*)
  9500. ;;
  9501. osf3* | osf4* | osf5*)
  9502. case $cc_basename in
  9503. KCC*)
  9504. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9505. ;;
  9506. RCC*)
  9507. # Rational C++ 2.4.1
  9508. lt_prog_compiler_pic_CXX='-pic'
  9509. ;;
  9510. cxx*)
  9511. # Digital/Compaq C++
  9512. lt_prog_compiler_wl_CXX='-Wl,'
  9513. # Make sure the PIC flag is empty. It appears that all Alpha
  9514. # Linux and Compaq Tru64 Unix objects are PIC.
  9515. lt_prog_compiler_pic_CXX=
  9516. lt_prog_compiler_static_CXX='-non_shared'
  9517. ;;
  9518. *)
  9519. ;;
  9520. esac
  9521. ;;
  9522. psos*)
  9523. ;;
  9524. sco*)
  9525. case $cc_basename in
  9526. CC*)
  9527. lt_prog_compiler_pic_CXX='-fPIC'
  9528. ;;
  9529. *)
  9530. ;;
  9531. esac
  9532. ;;
  9533. solaris*)
  9534. case $cc_basename in
  9535. CC*)
  9536. # Sun C++ 4.2, 5.x and Centerline C++
  9537. lt_prog_compiler_pic_CXX='-KPIC'
  9538. lt_prog_compiler_static_CXX='-Bstatic'
  9539. lt_prog_compiler_wl_CXX='-Qoption ld '
  9540. ;;
  9541. gcx*)
  9542. # Green Hills C++ Compiler
  9543. lt_prog_compiler_pic_CXX='-PIC'
  9544. ;;
  9545. *)
  9546. ;;
  9547. esac
  9548. ;;
  9549. sunos4*)
  9550. case $cc_basename in
  9551. CC*)
  9552. # Sun C++ 4.x
  9553. lt_prog_compiler_pic_CXX='-pic'
  9554. lt_prog_compiler_static_CXX='-Bstatic'
  9555. ;;
  9556. lcc*)
  9557. # Lucid
  9558. lt_prog_compiler_pic_CXX='-pic'
  9559. ;;
  9560. *)
  9561. ;;
  9562. esac
  9563. ;;
  9564. tandem*)
  9565. case $cc_basename in
  9566. NCC*)
  9567. # NonStop-UX NCC 3.20
  9568. lt_prog_compiler_pic_CXX='-KPIC'
  9569. ;;
  9570. *)
  9571. ;;
  9572. esac
  9573. ;;
  9574. unixware*)
  9575. ;;
  9576. vxworks*)
  9577. ;;
  9578. *)
  9579. lt_prog_compiler_can_build_shared_CXX=no
  9580. ;;
  9581. esac
  9582. fi
  9583. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9584. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  9585. #
  9586. # Check to make sure the PIC flag actually works.
  9587. #
  9588. if test -n "$lt_prog_compiler_pic_CXX"; then
  9589. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9590. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  9591. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  9592. echo $ECHO_N "(cached) $ECHO_C" >&6
  9593. else
  9594. lt_prog_compiler_pic_works_CXX=no
  9595. ac_outfile=conftest.$ac_objext
  9596. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9597. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9598. # Insert the option either (1) after the last *FLAGS variable, or
  9599. # (2) before a word containing "conftest.", or (3) at the end.
  9600. # Note that $ac_compile itself does not contain backslashes and begins
  9601. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9602. # The option is referenced via a variable to avoid confusing sed.
  9603. lt_compile=`echo "$ac_compile" | $SED \
  9604. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9605. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9606. -e 's:$: $lt_compiler_flag:'`
  9607. (eval echo "\"\$as_me:10607: $lt_compile\"" >&5)
  9608. (eval "$lt_compile" 2>conftest.err)
  9609. ac_status=$?
  9610. cat conftest.err >&5
  9611. echo "$as_me:10611: \$? = $ac_status" >&5
  9612. if (exit $ac_status) && test -s "$ac_outfile"; then
  9613. # The compiler can only warn and ignore the option if not recognized
  9614. # So say no if there are warnings other than the usual output.
  9615. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9616. $SED '/^$/d' conftest.err >conftest.er2
  9617. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9618. lt_prog_compiler_pic_works_CXX=yes
  9619. fi
  9620. fi
  9621. $rm conftest*
  9622. fi
  9623. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  9624. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  9625. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  9626. case $lt_prog_compiler_pic_CXX in
  9627. "" | " "*) ;;
  9628. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9629. esac
  9630. else
  9631. lt_prog_compiler_pic_CXX=
  9632. lt_prog_compiler_can_build_shared_CXX=no
  9633. fi
  9634. fi
  9635. case "$host_os" in
  9636. # For platforms which do not support PIC, -DPIC is meaningless:
  9637. *djgpp*)
  9638. lt_prog_compiler_pic_CXX=
  9639. ;;
  9640. *)
  9641. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9642. ;;
  9643. esac
  9644. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9645. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  9646. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9647. echo $ECHO_N "(cached) $ECHO_C" >&6
  9648. else
  9649. lt_cv_prog_compiler_c_o_CXX=no
  9650. $rm -r conftest 2>/dev/null
  9651. mkdir conftest
  9652. cd conftest
  9653. mkdir out
  9654. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9655. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9656. # Insert the option either (1) after the last *FLAGS variable, or
  9657. # (2) before a word containing "conftest.", or (3) at the end.
  9658. # Note that $ac_compile itself does not contain backslashes and begins
  9659. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9660. lt_compile=`echo "$ac_compile" | $SED \
  9661. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  9662. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9663. -e 's:$: $lt_compiler_flag:'`
  9664. (eval echo "\"\$as_me:10669: $lt_compile\"" >&5)
  9665. (eval "$lt_compile" 2>out/conftest.err)
  9666. ac_status=$?
  9667. cat out/conftest.err >&5
  9668. echo "$as_me:10673: \$? = $ac_status" >&5
  9669. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9670. then
  9671. # The compiler can only warn and ignore the option if not recognized
  9672. # So say no if there are warnings
  9673. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  9674. $SED '/^$/d' out/conftest.err >out/conftest.er2
  9675. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9676. lt_cv_prog_compiler_c_o_CXX=yes
  9677. fi
  9678. fi
  9679. chmod u+w .
  9680. $rm conftest*
  9681. # SGI C++ compiler will create directory out/ii_files/ for
  9682. # template instantiation
  9683. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9684. $rm out/* && rmdir out
  9685. cd ..
  9686. rmdir conftest
  9687. $rm conftest*
  9688. fi
  9689. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  9690. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  9691. hard_links="nottested"
  9692. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  9693. # do not overwrite the value of need_locks provided by the user
  9694. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9695. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  9696. hard_links=yes
  9697. $rm conftest*
  9698. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9699. touch conftest.a
  9700. ln conftest.a conftest.b 2>&5 || hard_links=no
  9701. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9702. echo "$as_me:$LINENO: result: $hard_links" >&5
  9703. echo "${ECHO_T}$hard_links" >&6
  9704. if test "$hard_links" = no; then
  9705. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9706. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9707. need_locks=warn
  9708. fi
  9709. else
  9710. need_locks=no
  9711. fi
  9712. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9713. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9714. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9715. case $host_os in
  9716. aix4* | aix5*)
  9717. # If we're using GNU nm, then we don't want the "-C" option.
  9718. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9719. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9720. 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'
  9721. else
  9722. 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'
  9723. fi
  9724. ;;
  9725. pw32*)
  9726. export_symbols_cmds_CXX="$ltdll_cmds"
  9727. ;;
  9728. cygwin* | mingw*)
  9729. 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'
  9730. ;;
  9731. *)
  9732. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9733. ;;
  9734. esac
  9735. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9736. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9737. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9738. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9739. if test "$GCC" = yes; then
  9740. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9741. fi
  9742. #
  9743. # Do we need to explicitly link libc?
  9744. #
  9745. case "x$archive_cmds_need_lc_CXX" in
  9746. x|xyes)
  9747. # Assume -lc should be added
  9748. archive_cmds_need_lc_CXX=yes
  9749. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9750. case $archive_cmds_CXX in
  9751. *'~'*)
  9752. # FIXME: we may have to deal with multi-command sequences.
  9753. ;;
  9754. '$CC '*)
  9755. # Test whether the compiler implicitly links with -lc since on some
  9756. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9757. # to ld, don't add -lc before -lgcc.
  9758. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9759. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  9760. $rm conftest*
  9761. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9762. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9763. (eval $ac_compile) 2>&5
  9764. ac_status=$?
  9765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9766. (exit $ac_status); } 2>conftest.err; then
  9767. soname=conftest
  9768. lib=conftest
  9769. libobjs=conftest.$ac_objext
  9770. deplibs=
  9771. wl=$lt_prog_compiler_wl_CXX
  9772. compiler_flags=-v
  9773. linker_flags=-v
  9774. verstring=
  9775. output_objdir=.
  9776. libname=conftest
  9777. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  9778. allow_undefined_flag_CXX=
  9779. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9780. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9781. ac_status=$?
  9782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9783. (exit $ac_status); }
  9784. then
  9785. archive_cmds_need_lc_CXX=no
  9786. else
  9787. archive_cmds_need_lc_CXX=yes
  9788. fi
  9789. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  9790. else
  9791. cat conftest.err 1>&5
  9792. fi
  9793. $rm conftest*
  9794. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  9795. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  9796. ;;
  9797. esac
  9798. fi
  9799. ;;
  9800. esac
  9801. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9802. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  9803. library_names_spec=
  9804. libname_spec='lib$name'
  9805. soname_spec=
  9806. shrext_cmds=".so"
  9807. postinstall_cmds=
  9808. postuninstall_cmds=
  9809. finish_cmds=
  9810. finish_eval=
  9811. shlibpath_var=
  9812. shlibpath_overrides_runpath=unknown
  9813. version_type=none
  9814. dynamic_linker="$host_os ld.so"
  9815. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9816. if test "$GCC" = yes; then
  9817. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9818. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9819. # if the path contains ";" then we assume it to be the separator
  9820. # otherwise default to the standard path separator (i.e. ":") - it is
  9821. # assumed that no part of a normal pathname contains ";" but that should
  9822. # okay in the real world where ";" in dirpaths is itself problematic.
  9823. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9824. else
  9825. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9826. fi
  9827. else
  9828. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9829. fi
  9830. need_lib_prefix=unknown
  9831. hardcode_into_libs=no
  9832. # when you set need_version to no, make sure it does not cause -set_version
  9833. # flags to be left without arguments
  9834. need_version=unknown
  9835. case $host_os in
  9836. aix3*)
  9837. version_type=linux
  9838. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9839. shlibpath_var=LIBPATH
  9840. # AIX 3 has no versioning support, so we append a major version to the name.
  9841. soname_spec='${libname}${release}${shared_ext}$major'
  9842. ;;
  9843. aix4* | aix5*)
  9844. version_type=linux
  9845. need_lib_prefix=no
  9846. need_version=no
  9847. hardcode_into_libs=yes
  9848. if test "$host_cpu" = ia64; then
  9849. # AIX 5 supports IA64
  9850. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9851. shlibpath_var=LD_LIBRARY_PATH
  9852. else
  9853. # With GCC up to 2.95.x, collect2 would create an import file
  9854. # for dependence libraries. The import file would start with
  9855. # the line `#! .'. This would cause the generated library to
  9856. # depend on `.', always an invalid library. This was fixed in
  9857. # development snapshots of GCC prior to 3.0.
  9858. case $host_os in
  9859. aix4 | aix4.[01] | aix4.[01].*)
  9860. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9861. echo ' yes '
  9862. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9863. :
  9864. else
  9865. can_build_shared=no
  9866. fi
  9867. ;;
  9868. esac
  9869. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9870. # soname into executable. Probably we can add versioning support to
  9871. # collect2, so additional links can be useful in future.
  9872. if test "$aix_use_runtimelinking" = yes; then
  9873. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9874. # instead of lib<name>.a to let people know that these are not
  9875. # typical AIX shared libraries.
  9876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9877. else
  9878. # We preserve .a as extension for shared libraries through AIX4.2
  9879. # and later when we are not doing run time linking.
  9880. library_names_spec='${libname}${release}.a $libname.a'
  9881. soname_spec='${libname}${release}${shared_ext}$major'
  9882. fi
  9883. shlibpath_var=LIBPATH
  9884. fi
  9885. ;;
  9886. amigaos*)
  9887. library_names_spec='$libname.ixlibrary $libname.a'
  9888. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9889. 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'
  9890. ;;
  9891. beos*)
  9892. library_names_spec='${libname}${shared_ext}'
  9893. dynamic_linker="$host_os ld.so"
  9894. shlibpath_var=LIBRARY_PATH
  9895. ;;
  9896. bsdi[45]*)
  9897. version_type=linux
  9898. need_version=no
  9899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9900. soname_spec='${libname}${release}${shared_ext}$major'
  9901. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9902. shlibpath_var=LD_LIBRARY_PATH
  9903. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9904. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9905. # the default ld.so.conf also contains /usr/contrib/lib and
  9906. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9907. # libtool to hard-code these into programs
  9908. ;;
  9909. cygwin* | mingw* | pw32*)
  9910. version_type=windows
  9911. shrext_cmds=".dll"
  9912. need_version=no
  9913. need_lib_prefix=no
  9914. case $GCC,$host_os in
  9915. yes,cygwin* | yes,mingw* | yes,pw32*)
  9916. library_names_spec='$libname.dll.a'
  9917. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9918. postinstall_cmds='base_file=`basename \${file}`~
  9919. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9920. dldir=$destdir/`dirname \$dlpath`~
  9921. test -d \$dldir || mkdir -p \$dldir~
  9922. $install_prog $dir/$dlname \$dldir/$dlname'
  9923. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9924. dlpath=$dir/\$dldll~
  9925. $rm \$dlpath'
  9926. shlibpath_overrides_runpath=yes
  9927. case $host_os in
  9928. cygwin*)
  9929. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9930. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9931. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9932. ;;
  9933. mingw*)
  9934. # MinGW DLLs use traditional 'lib' prefix
  9935. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9936. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9937. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9938. # It is most probably a Windows format PATH printed by
  9939. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9940. # path with ; separators, and with drive letters. We can handle the
  9941. # drive letters (cygwin fileutils understands them), so leave them,
  9942. # especially as we might pass files found there to a mingw objdump,
  9943. # which wouldn't understand a cygwinified path. Ahh.
  9944. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9945. else
  9946. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9947. fi
  9948. ;;
  9949. pw32*)
  9950. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9951. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9952. ;;
  9953. esac
  9954. ;;
  9955. *)
  9956. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9957. ;;
  9958. esac
  9959. dynamic_linker='Win32 ld.exe'
  9960. # FIXME: first we should search . and the directory the executable is in
  9961. shlibpath_var=PATH
  9962. ;;
  9963. darwin* | rhapsody*)
  9964. dynamic_linker="$host_os dyld"
  9965. version_type=darwin
  9966. need_lib_prefix=no
  9967. need_version=no
  9968. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9969. soname_spec='${libname}${release}${major}$shared_ext'
  9970. shlibpath_overrides_runpath=yes
  9971. shlibpath_var=DYLD_LIBRARY_PATH
  9972. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  9973. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9974. if test "$GCC" = yes; then
  9975. 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"`
  9976. else
  9977. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9978. fi
  9979. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9980. ;;
  9981. dgux*)
  9982. version_type=linux
  9983. need_lib_prefix=no
  9984. need_version=no
  9985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9986. soname_spec='${libname}${release}${shared_ext}$major'
  9987. shlibpath_var=LD_LIBRARY_PATH
  9988. ;;
  9989. freebsd1*)
  9990. dynamic_linker=no
  9991. ;;
  9992. kfreebsd*-gnu)
  9993. version_type=linux
  9994. need_lib_prefix=no
  9995. need_version=no
  9996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9997. soname_spec='${libname}${release}${shared_ext}$major'
  9998. shlibpath_var=LD_LIBRARY_PATH
  9999. shlibpath_overrides_runpath=no
  10000. hardcode_into_libs=yes
  10001. dynamic_linker='GNU ld.so'
  10002. ;;
  10003. freebsd* | dragonfly*)
  10004. # DragonFly does not have aout. When/if they implement a new
  10005. # versioning mechanism, adjust this.
  10006. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  10007. version_type=freebsd-$objformat
  10008. case $version_type in
  10009. freebsd-elf*)
  10010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10011. need_version=no
  10012. need_lib_prefix=no
  10013. ;;
  10014. freebsd-*)
  10015. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10016. need_version=yes
  10017. ;;
  10018. esac
  10019. shlibpath_var=LD_LIBRARY_PATH
  10020. case $host_os in
  10021. freebsd2*)
  10022. shlibpath_overrides_runpath=yes
  10023. ;;
  10024. freebsd3.[01]* | freebsdelf3.[01]*)
  10025. shlibpath_overrides_runpath=yes
  10026. hardcode_into_libs=yes
  10027. ;;
  10028. *) # from 3.2 on
  10029. shlibpath_overrides_runpath=no
  10030. hardcode_into_libs=yes
  10031. ;;
  10032. esac
  10033. ;;
  10034. gnu*)
  10035. version_type=linux
  10036. need_lib_prefix=no
  10037. need_version=no
  10038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10039. soname_spec='${libname}${release}${shared_ext}$major'
  10040. shlibpath_var=LD_LIBRARY_PATH
  10041. hardcode_into_libs=yes
  10042. ;;
  10043. hpux9* | hpux10* | hpux11*)
  10044. # Give a soname corresponding to the major version so that dld.sl refuses to
  10045. # link against other versions.
  10046. version_type=sunos
  10047. need_lib_prefix=no
  10048. need_version=no
  10049. case "$host_cpu" in
  10050. ia64*)
  10051. shrext_cmds='.so'
  10052. hardcode_into_libs=yes
  10053. dynamic_linker="$host_os dld.so"
  10054. shlibpath_var=LD_LIBRARY_PATH
  10055. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10057. soname_spec='${libname}${release}${shared_ext}$major'
  10058. if test "X$HPUX_IA64_MODE" = X32; then
  10059. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10060. else
  10061. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10062. fi
  10063. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10064. ;;
  10065. hppa*64*)
  10066. shrext_cmds='.sl'
  10067. hardcode_into_libs=yes
  10068. dynamic_linker="$host_os dld.sl"
  10069. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10070. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10072. soname_spec='${libname}${release}${shared_ext}$major'
  10073. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10075. ;;
  10076. *)
  10077. shrext_cmds='.sl'
  10078. dynamic_linker="$host_os dld.sl"
  10079. shlibpath_var=SHLIB_PATH
  10080. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10082. soname_spec='${libname}${release}${shared_ext}$major'
  10083. ;;
  10084. esac
  10085. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10086. postinstall_cmds='chmod 555 $lib'
  10087. ;;
  10088. irix5* | irix6* | nonstopux*)
  10089. case $host_os in
  10090. nonstopux*) version_type=nonstopux ;;
  10091. *)
  10092. if test "$lt_cv_prog_gnu_ld" = yes; then
  10093. version_type=linux
  10094. else
  10095. version_type=irix
  10096. fi ;;
  10097. esac
  10098. need_lib_prefix=no
  10099. need_version=no
  10100. soname_spec='${libname}${release}${shared_ext}$major'
  10101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10102. case $host_os in
  10103. irix5* | nonstopux*)
  10104. libsuff= shlibsuff=
  10105. ;;
  10106. *)
  10107. case $LD in # libtool.m4 will add one of these switches to LD
  10108. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10109. libsuff= shlibsuff= libmagic=32-bit;;
  10110. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10111. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10112. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10113. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10114. *) libsuff= shlibsuff= libmagic=never-match;;
  10115. esac
  10116. ;;
  10117. esac
  10118. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10119. shlibpath_overrides_runpath=no
  10120. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10121. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10122. hardcode_into_libs=yes
  10123. ;;
  10124. # No shared lib support for Linux oldld, aout, or coff.
  10125. linux*oldld* | linux*aout* | linux*coff*)
  10126. dynamic_linker=no
  10127. ;;
  10128. # This must be Linux ELF.
  10129. linux*)
  10130. version_type=linux
  10131. need_lib_prefix=no
  10132. need_version=no
  10133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10134. soname_spec='${libname}${release}${shared_ext}$major'
  10135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10136. shlibpath_var=LD_LIBRARY_PATH
  10137. shlibpath_overrides_runpath=no
  10138. # This implies no fast_install, which is unacceptable.
  10139. # Some rework will be needed to allow for fast_install
  10140. # before this can be enabled.
  10141. hardcode_into_libs=yes
  10142. # find out which ABI we are using
  10143. libsuff=
  10144. case "$host_cpu" in
  10145. x86_64*|s390x*|powerpc64*)
  10146. echo '#line 11184 "configure"' > conftest.$ac_ext
  10147. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10148. (eval $ac_compile) 2>&5
  10149. ac_status=$?
  10150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10151. (exit $ac_status); }; then
  10152. case `/usr/bin/file conftest.$ac_objext` in
  10153. *64-bit*)
  10154. libsuff=64
  10155. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  10156. ;;
  10157. esac
  10158. fi
  10159. rm -rf conftest*
  10160. ;;
  10161. esac
  10162. # Append ld.so.conf contents to the search path
  10163. if test -f /etc/ld.so.conf; then
  10164. 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' ' '`
  10165. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  10166. fi
  10167. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10168. # powerpc, because MkLinux only supported shared libraries with the
  10169. # GNU dynamic linker. Since this was broken with cross compilers,
  10170. # most powerpc-linux boxes support dynamic linking these days and
  10171. # people can always --disable-shared, the test was removed, and we
  10172. # assume the GNU/Linux dynamic linker is in use.
  10173. dynamic_linker='GNU/Linux ld.so'
  10174. ;;
  10175. knetbsd*-gnu)
  10176. version_type=linux
  10177. need_lib_prefix=no
  10178. need_version=no
  10179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10180. soname_spec='${libname}${release}${shared_ext}$major'
  10181. shlibpath_var=LD_LIBRARY_PATH
  10182. shlibpath_overrides_runpath=no
  10183. hardcode_into_libs=yes
  10184. dynamic_linker='GNU ld.so'
  10185. ;;
  10186. netbsd*)
  10187. version_type=sunos
  10188. need_lib_prefix=no
  10189. need_version=no
  10190. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10192. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10193. dynamic_linker='NetBSD (a.out) ld.so'
  10194. else
  10195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10196. soname_spec='${libname}${release}${shared_ext}$major'
  10197. dynamic_linker='NetBSD ld.elf_so'
  10198. fi
  10199. shlibpath_var=LD_LIBRARY_PATH
  10200. shlibpath_overrides_runpath=yes
  10201. hardcode_into_libs=yes
  10202. ;;
  10203. newsos6)
  10204. version_type=linux
  10205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=yes
  10208. ;;
  10209. nto-qnx*)
  10210. version_type=linux
  10211. need_lib_prefix=no
  10212. need_version=no
  10213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10214. soname_spec='${libname}${release}${shared_ext}$major'
  10215. shlibpath_var=LD_LIBRARY_PATH
  10216. shlibpath_overrides_runpath=yes
  10217. ;;
  10218. openbsd*)
  10219. version_type=sunos
  10220. need_lib_prefix=no
  10221. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10222. case $host_os in
  10223. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10224. *) need_version=no ;;
  10225. esac
  10226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10227. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10228. shlibpath_var=LD_LIBRARY_PATH
  10229. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10230. case $host_os in
  10231. openbsd2.[89] | openbsd2.[89].*)
  10232. shlibpath_overrides_runpath=no
  10233. ;;
  10234. *)
  10235. shlibpath_overrides_runpath=yes
  10236. ;;
  10237. esac
  10238. else
  10239. shlibpath_overrides_runpath=yes
  10240. fi
  10241. ;;
  10242. os2*)
  10243. libname_spec='$name'
  10244. shrext_cmds=".dll"
  10245. need_lib_prefix=no
  10246. library_names_spec='$libname${shared_ext} $libname.a'
  10247. dynamic_linker='OS/2 ld.exe'
  10248. shlibpath_var=LIBPATH
  10249. ;;
  10250. osf3* | osf4* | osf5*)
  10251. version_type=osf
  10252. need_lib_prefix=no
  10253. need_version=no
  10254. soname_spec='${libname}${release}${shared_ext}$major'
  10255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10258. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10259. ;;
  10260. sco3.2v5*)
  10261. version_type=osf
  10262. soname_spec='${libname}${release}${shared_ext}$major'
  10263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10264. shlibpath_var=LD_LIBRARY_PATH
  10265. ;;
  10266. solaris*)
  10267. version_type=linux
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10271. soname_spec='${libname}${release}${shared_ext}$major'
  10272. shlibpath_var=LD_LIBRARY_PATH
  10273. shlibpath_overrides_runpath=yes
  10274. hardcode_into_libs=yes
  10275. # ldd complains unless libraries are executable
  10276. postinstall_cmds='chmod +x $lib'
  10277. ;;
  10278. sunos4*)
  10279. version_type=sunos
  10280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10281. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10282. shlibpath_var=LD_LIBRARY_PATH
  10283. shlibpath_overrides_runpath=yes
  10284. if test "$with_gnu_ld" = yes; then
  10285. need_lib_prefix=no
  10286. fi
  10287. need_version=yes
  10288. ;;
  10289. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10290. version_type=linux
  10291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10292. soname_spec='${libname}${release}${shared_ext}$major'
  10293. shlibpath_var=LD_LIBRARY_PATH
  10294. case $host_vendor in
  10295. sni)
  10296. shlibpath_overrides_runpath=no
  10297. need_lib_prefix=no
  10298. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10299. runpath_var=LD_RUN_PATH
  10300. ;;
  10301. siemens)
  10302. need_lib_prefix=no
  10303. ;;
  10304. motorola)
  10305. need_lib_prefix=no
  10306. need_version=no
  10307. shlibpath_overrides_runpath=no
  10308. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10309. ;;
  10310. esac
  10311. ;;
  10312. sysv4*MP*)
  10313. if test -d /usr/nec ;then
  10314. version_type=linux
  10315. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10316. soname_spec='$libname${shared_ext}.$major'
  10317. shlibpath_var=LD_LIBRARY_PATH
  10318. fi
  10319. ;;
  10320. uts4*)
  10321. version_type=linux
  10322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10323. soname_spec='${libname}${release}${shared_ext}$major'
  10324. shlibpath_var=LD_LIBRARY_PATH
  10325. ;;
  10326. *)
  10327. dynamic_linker=no
  10328. ;;
  10329. esac
  10330. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10331. echo "${ECHO_T}$dynamic_linker" >&6
  10332. test "$dynamic_linker" = no && can_build_shared=no
  10333. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10334. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10335. hardcode_action_CXX=
  10336. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10337. test -n "$runpath_var_CXX" || \
  10338. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10339. # We can hardcode non-existant directories.
  10340. if test "$hardcode_direct_CXX" != no &&
  10341. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10342. # have to relink, otherwise we might link with an installed library
  10343. # when we should be linking with a yet-to-be-installed one
  10344. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10345. test "$hardcode_minus_L_CXX" != no; then
  10346. # Linking always hardcodes the temporary library directory.
  10347. hardcode_action_CXX=relink
  10348. else
  10349. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10350. hardcode_action_CXX=immediate
  10351. fi
  10352. else
  10353. # We cannot hardcode anything, or else we can only hardcode existing
  10354. # directories.
  10355. hardcode_action_CXX=unsupported
  10356. fi
  10357. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10358. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10359. if test "$hardcode_action_CXX" = relink; then
  10360. # Fast installation is not supported
  10361. enable_fast_install=no
  10362. elif test "$shlibpath_overrides_runpath" = yes ||
  10363. test "$enable_shared" = no; then
  10364. # Fast installation is not necessary
  10365. enable_fast_install=needless
  10366. fi
  10367. striplib=
  10368. old_striplib=
  10369. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10370. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  10371. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10372. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10373. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10374. echo "$as_me:$LINENO: result: yes" >&5
  10375. echo "${ECHO_T}yes" >&6
  10376. else
  10377. # FIXME - insert some real tests, host_os isn't really good enough
  10378. case $host_os in
  10379. darwin*)
  10380. if test -n "$STRIP" ; then
  10381. striplib="$STRIP -x"
  10382. echo "$as_me:$LINENO: result: yes" >&5
  10383. echo "${ECHO_T}yes" >&6
  10384. else
  10385. echo "$as_me:$LINENO: result: no" >&5
  10386. echo "${ECHO_T}no" >&6
  10387. fi
  10388. ;;
  10389. *)
  10390. echo "$as_me:$LINENO: result: no" >&5
  10391. echo "${ECHO_T}no" >&6
  10392. ;;
  10393. esac
  10394. fi
  10395. if test "x$enable_dlopen" != xyes; then
  10396. enable_dlopen=unknown
  10397. enable_dlopen_self=unknown
  10398. enable_dlopen_self_static=unknown
  10399. else
  10400. lt_cv_dlopen=no
  10401. lt_cv_dlopen_libs=
  10402. case $host_os in
  10403. beos*)
  10404. lt_cv_dlopen="load_add_on"
  10405. lt_cv_dlopen_libs=
  10406. lt_cv_dlopen_self=yes
  10407. ;;
  10408. mingw* | pw32*)
  10409. lt_cv_dlopen="LoadLibrary"
  10410. lt_cv_dlopen_libs=
  10411. ;;
  10412. cygwin*)
  10413. lt_cv_dlopen="dlopen"
  10414. lt_cv_dlopen_libs=
  10415. ;;
  10416. darwin*)
  10417. # if libdl is installed we need to link against it
  10418. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10419. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10420. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10421. echo $ECHO_N "(cached) $ECHO_C" >&6
  10422. else
  10423. ac_check_lib_save_LIBS=$LIBS
  10424. LIBS="-ldl $LIBS"
  10425. cat >conftest.$ac_ext <<_ACEOF
  10426. /* confdefs.h. */
  10427. _ACEOF
  10428. cat confdefs.h >>conftest.$ac_ext
  10429. cat >>conftest.$ac_ext <<_ACEOF
  10430. /* end confdefs.h. */
  10431. /* Override any gcc2 internal prototype to avoid an error. */
  10432. #ifdef __cplusplus
  10433. extern "C"
  10434. #endif
  10435. /* We use char because int might match the return type of a gcc2
  10436. builtin and then its argument prototype would still apply. */
  10437. char dlopen ();
  10438. int
  10439. main ()
  10440. {
  10441. dlopen ();
  10442. ;
  10443. return 0;
  10444. }
  10445. _ACEOF
  10446. rm -f conftest.$ac_objext conftest$ac_exeext
  10447. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10448. (eval $ac_link) 2>conftest.er1
  10449. ac_status=$?
  10450. grep -v '^ *+' conftest.er1 >conftest.err
  10451. rm -f conftest.er1
  10452. cat conftest.err >&5
  10453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10454. (exit $ac_status); } &&
  10455. { ac_try='test -z "$ac_cxx_werror_flag"
  10456. || test ! -s conftest.err'
  10457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10458. (eval $ac_try) 2>&5
  10459. ac_status=$?
  10460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10461. (exit $ac_status); }; } &&
  10462. { ac_try='test -s conftest$ac_exeext'
  10463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10464. (eval $ac_try) 2>&5
  10465. ac_status=$?
  10466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10467. (exit $ac_status); }; }; then
  10468. ac_cv_lib_dl_dlopen=yes
  10469. else
  10470. echo "$as_me: failed program was:" >&5
  10471. sed 's/^/| /' conftest.$ac_ext >&5
  10472. ac_cv_lib_dl_dlopen=no
  10473. fi
  10474. rm -f conftest.err conftest.$ac_objext \
  10475. conftest$ac_exeext conftest.$ac_ext
  10476. LIBS=$ac_check_lib_save_LIBS
  10477. fi
  10478. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10479. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10480. if test $ac_cv_lib_dl_dlopen = yes; then
  10481. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10482. else
  10483. lt_cv_dlopen="dyld"
  10484. lt_cv_dlopen_libs=
  10485. lt_cv_dlopen_self=yes
  10486. fi
  10487. ;;
  10488. *)
  10489. echo "$as_me:$LINENO: checking for shl_load" >&5
  10490. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  10491. if test "${ac_cv_func_shl_load+set}" = set; then
  10492. echo $ECHO_N "(cached) $ECHO_C" >&6
  10493. else
  10494. cat >conftest.$ac_ext <<_ACEOF
  10495. /* confdefs.h. */
  10496. _ACEOF
  10497. cat confdefs.h >>conftest.$ac_ext
  10498. cat >>conftest.$ac_ext <<_ACEOF
  10499. /* end confdefs.h. */
  10500. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10501. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10502. #define shl_load innocuous_shl_load
  10503. /* System header to define __stub macros and hopefully few prototypes,
  10504. which can conflict with char shl_load (); below.
  10505. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10506. <limits.h> exists even on freestanding compilers. */
  10507. #ifdef __STDC__
  10508. # include <limits.h>
  10509. #else
  10510. # include <assert.h>
  10511. #endif
  10512. #undef shl_load
  10513. /* Override any gcc2 internal prototype to avoid an error. */
  10514. #ifdef __cplusplus
  10515. extern "C"
  10516. {
  10517. #endif
  10518. /* We use char because int might match the return type of a gcc2
  10519. builtin and then its argument prototype would still apply. */
  10520. char shl_load ();
  10521. /* The GNU C library defines this for functions which it implements
  10522. to always fail with ENOSYS. Some functions are actually named
  10523. something starting with __ and the normal name is an alias. */
  10524. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  10525. choke me
  10526. #else
  10527. char (*f) () = shl_load;
  10528. #endif
  10529. #ifdef __cplusplus
  10530. }
  10531. #endif
  10532. int
  10533. main ()
  10534. {
  10535. return f != shl_load;
  10536. ;
  10537. return 0;
  10538. }
  10539. _ACEOF
  10540. rm -f conftest.$ac_objext conftest$ac_exeext
  10541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10542. (eval $ac_link) 2>conftest.er1
  10543. ac_status=$?
  10544. grep -v '^ *+' conftest.er1 >conftest.err
  10545. rm -f conftest.er1
  10546. cat conftest.err >&5
  10547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10548. (exit $ac_status); } &&
  10549. { ac_try='test -z "$ac_cxx_werror_flag"
  10550. || test ! -s conftest.err'
  10551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10552. (eval $ac_try) 2>&5
  10553. ac_status=$?
  10554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10555. (exit $ac_status); }; } &&
  10556. { ac_try='test -s conftest$ac_exeext'
  10557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10558. (eval $ac_try) 2>&5
  10559. ac_status=$?
  10560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10561. (exit $ac_status); }; }; then
  10562. ac_cv_func_shl_load=yes
  10563. else
  10564. echo "$as_me: failed program was:" >&5
  10565. sed 's/^/| /' conftest.$ac_ext >&5
  10566. ac_cv_func_shl_load=no
  10567. fi
  10568. rm -f conftest.err conftest.$ac_objext \
  10569. conftest$ac_exeext conftest.$ac_ext
  10570. fi
  10571. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10572. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  10573. if test $ac_cv_func_shl_load = yes; then
  10574. lt_cv_dlopen="shl_load"
  10575. else
  10576. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10577. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  10578. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10579. echo $ECHO_N "(cached) $ECHO_C" >&6
  10580. else
  10581. ac_check_lib_save_LIBS=$LIBS
  10582. LIBS="-ldld $LIBS"
  10583. cat >conftest.$ac_ext <<_ACEOF
  10584. /* confdefs.h. */
  10585. _ACEOF
  10586. cat confdefs.h >>conftest.$ac_ext
  10587. cat >>conftest.$ac_ext <<_ACEOF
  10588. /* end confdefs.h. */
  10589. /* Override any gcc2 internal prototype to avoid an error. */
  10590. #ifdef __cplusplus
  10591. extern "C"
  10592. #endif
  10593. /* We use char because int might match the return type of a gcc2
  10594. builtin and then its argument prototype would still apply. */
  10595. char shl_load ();
  10596. int
  10597. main ()
  10598. {
  10599. shl_load ();
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. rm -f conftest.$ac_objext conftest$ac_exeext
  10605. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10606. (eval $ac_link) 2>conftest.er1
  10607. ac_status=$?
  10608. grep -v '^ *+' conftest.er1 >conftest.err
  10609. rm -f conftest.er1
  10610. cat conftest.err >&5
  10611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10612. (exit $ac_status); } &&
  10613. { ac_try='test -z "$ac_cxx_werror_flag"
  10614. || test ! -s conftest.err'
  10615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10616. (eval $ac_try) 2>&5
  10617. ac_status=$?
  10618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10619. (exit $ac_status); }; } &&
  10620. { ac_try='test -s conftest$ac_exeext'
  10621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10622. (eval $ac_try) 2>&5
  10623. ac_status=$?
  10624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10625. (exit $ac_status); }; }; then
  10626. ac_cv_lib_dld_shl_load=yes
  10627. else
  10628. echo "$as_me: failed program was:" >&5
  10629. sed 's/^/| /' conftest.$ac_ext >&5
  10630. ac_cv_lib_dld_shl_load=no
  10631. fi
  10632. rm -f conftest.err conftest.$ac_objext \
  10633. conftest$ac_exeext conftest.$ac_ext
  10634. LIBS=$ac_check_lib_save_LIBS
  10635. fi
  10636. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10637. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  10638. if test $ac_cv_lib_dld_shl_load = yes; then
  10639. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10640. else
  10641. echo "$as_me:$LINENO: checking for dlopen" >&5
  10642. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  10643. if test "${ac_cv_func_dlopen+set}" = set; then
  10644. echo $ECHO_N "(cached) $ECHO_C" >&6
  10645. else
  10646. cat >conftest.$ac_ext <<_ACEOF
  10647. /* confdefs.h. */
  10648. _ACEOF
  10649. cat confdefs.h >>conftest.$ac_ext
  10650. cat >>conftest.$ac_ext <<_ACEOF
  10651. /* end confdefs.h. */
  10652. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10653. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10654. #define dlopen innocuous_dlopen
  10655. /* System header to define __stub macros and hopefully few prototypes,
  10656. which can conflict with char dlopen (); below.
  10657. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10658. <limits.h> exists even on freestanding compilers. */
  10659. #ifdef __STDC__
  10660. # include <limits.h>
  10661. #else
  10662. # include <assert.h>
  10663. #endif
  10664. #undef dlopen
  10665. /* Override any gcc2 internal prototype to avoid an error. */
  10666. #ifdef __cplusplus
  10667. extern "C"
  10668. {
  10669. #endif
  10670. /* We use char because int might match the return type of a gcc2
  10671. builtin and then its argument prototype would still apply. */
  10672. char dlopen ();
  10673. /* The GNU C library defines this for functions which it implements
  10674. to always fail with ENOSYS. Some functions are actually named
  10675. something starting with __ and the normal name is an alias. */
  10676. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  10677. choke me
  10678. #else
  10679. char (*f) () = dlopen;
  10680. #endif
  10681. #ifdef __cplusplus
  10682. }
  10683. #endif
  10684. int
  10685. main ()
  10686. {
  10687. return f != dlopen;
  10688. ;
  10689. return 0;
  10690. }
  10691. _ACEOF
  10692. rm -f conftest.$ac_objext conftest$ac_exeext
  10693. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10694. (eval $ac_link) 2>conftest.er1
  10695. ac_status=$?
  10696. grep -v '^ *+' conftest.er1 >conftest.err
  10697. rm -f conftest.er1
  10698. cat conftest.err >&5
  10699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10700. (exit $ac_status); } &&
  10701. { ac_try='test -z "$ac_cxx_werror_flag"
  10702. || test ! -s conftest.err'
  10703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10704. (eval $ac_try) 2>&5
  10705. ac_status=$?
  10706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10707. (exit $ac_status); }; } &&
  10708. { ac_try='test -s conftest$ac_exeext'
  10709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10710. (eval $ac_try) 2>&5
  10711. ac_status=$?
  10712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10713. (exit $ac_status); }; }; then
  10714. ac_cv_func_dlopen=yes
  10715. else
  10716. echo "$as_me: failed program was:" >&5
  10717. sed 's/^/| /' conftest.$ac_ext >&5
  10718. ac_cv_func_dlopen=no
  10719. fi
  10720. rm -f conftest.err conftest.$ac_objext \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. fi
  10723. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10724. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  10725. if test $ac_cv_func_dlopen = yes; then
  10726. lt_cv_dlopen="dlopen"
  10727. else
  10728. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10729. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  10730. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10731. echo $ECHO_N "(cached) $ECHO_C" >&6
  10732. else
  10733. ac_check_lib_save_LIBS=$LIBS
  10734. LIBS="-ldl $LIBS"
  10735. cat >conftest.$ac_ext <<_ACEOF
  10736. /* confdefs.h. */
  10737. _ACEOF
  10738. cat confdefs.h >>conftest.$ac_ext
  10739. cat >>conftest.$ac_ext <<_ACEOF
  10740. /* end confdefs.h. */
  10741. /* Override any gcc2 internal prototype to avoid an error. */
  10742. #ifdef __cplusplus
  10743. extern "C"
  10744. #endif
  10745. /* We use char because int might match the return type of a gcc2
  10746. builtin and then its argument prototype would still apply. */
  10747. char dlopen ();
  10748. int
  10749. main ()
  10750. {
  10751. dlopen ();
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. rm -f conftest.$ac_objext conftest$ac_exeext
  10757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10758. (eval $ac_link) 2>conftest.er1
  10759. ac_status=$?
  10760. grep -v '^ *+' conftest.er1 >conftest.err
  10761. rm -f conftest.er1
  10762. cat conftest.err >&5
  10763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10764. (exit $ac_status); } &&
  10765. { ac_try='test -z "$ac_cxx_werror_flag"
  10766. || test ! -s conftest.err'
  10767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10768. (eval $ac_try) 2>&5
  10769. ac_status=$?
  10770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10771. (exit $ac_status); }; } &&
  10772. { ac_try='test -s conftest$ac_exeext'
  10773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10774. (eval $ac_try) 2>&5
  10775. ac_status=$?
  10776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10777. (exit $ac_status); }; }; then
  10778. ac_cv_lib_dl_dlopen=yes
  10779. else
  10780. echo "$as_me: failed program was:" >&5
  10781. sed 's/^/| /' conftest.$ac_ext >&5
  10782. ac_cv_lib_dl_dlopen=no
  10783. fi
  10784. rm -f conftest.err conftest.$ac_objext \
  10785. conftest$ac_exeext conftest.$ac_ext
  10786. LIBS=$ac_check_lib_save_LIBS
  10787. fi
  10788. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10789. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  10790. if test $ac_cv_lib_dl_dlopen = yes; then
  10791. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10792. else
  10793. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10794. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  10795. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10796. echo $ECHO_N "(cached) $ECHO_C" >&6
  10797. else
  10798. ac_check_lib_save_LIBS=$LIBS
  10799. LIBS="-lsvld $LIBS"
  10800. cat >conftest.$ac_ext <<_ACEOF
  10801. /* confdefs.h. */
  10802. _ACEOF
  10803. cat confdefs.h >>conftest.$ac_ext
  10804. cat >>conftest.$ac_ext <<_ACEOF
  10805. /* end confdefs.h. */
  10806. /* Override any gcc2 internal prototype to avoid an error. */
  10807. #ifdef __cplusplus
  10808. extern "C"
  10809. #endif
  10810. /* We use char because int might match the return type of a gcc2
  10811. builtin and then its argument prototype would still apply. */
  10812. char dlopen ();
  10813. int
  10814. main ()
  10815. {
  10816. dlopen ();
  10817. ;
  10818. return 0;
  10819. }
  10820. _ACEOF
  10821. rm -f conftest.$ac_objext conftest$ac_exeext
  10822. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10823. (eval $ac_link) 2>conftest.er1
  10824. ac_status=$?
  10825. grep -v '^ *+' conftest.er1 >conftest.err
  10826. rm -f conftest.er1
  10827. cat conftest.err >&5
  10828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10829. (exit $ac_status); } &&
  10830. { ac_try='test -z "$ac_cxx_werror_flag"
  10831. || test ! -s conftest.err'
  10832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10833. (eval $ac_try) 2>&5
  10834. ac_status=$?
  10835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10836. (exit $ac_status); }; } &&
  10837. { ac_try='test -s conftest$ac_exeext'
  10838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10839. (eval $ac_try) 2>&5
  10840. ac_status=$?
  10841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10842. (exit $ac_status); }; }; then
  10843. ac_cv_lib_svld_dlopen=yes
  10844. else
  10845. echo "$as_me: failed program was:" >&5
  10846. sed 's/^/| /' conftest.$ac_ext >&5
  10847. ac_cv_lib_svld_dlopen=no
  10848. fi
  10849. rm -f conftest.err conftest.$ac_objext \
  10850. conftest$ac_exeext conftest.$ac_ext
  10851. LIBS=$ac_check_lib_save_LIBS
  10852. fi
  10853. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10854. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  10855. if test $ac_cv_lib_svld_dlopen = yes; then
  10856. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10857. else
  10858. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10859. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  10860. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10861. echo $ECHO_N "(cached) $ECHO_C" >&6
  10862. else
  10863. ac_check_lib_save_LIBS=$LIBS
  10864. LIBS="-ldld $LIBS"
  10865. cat >conftest.$ac_ext <<_ACEOF
  10866. /* confdefs.h. */
  10867. _ACEOF
  10868. cat confdefs.h >>conftest.$ac_ext
  10869. cat >>conftest.$ac_ext <<_ACEOF
  10870. /* end confdefs.h. */
  10871. /* Override any gcc2 internal prototype to avoid an error. */
  10872. #ifdef __cplusplus
  10873. extern "C"
  10874. #endif
  10875. /* We use char because int might match the return type of a gcc2
  10876. builtin and then its argument prototype would still apply. */
  10877. char dld_link ();
  10878. int
  10879. main ()
  10880. {
  10881. dld_link ();
  10882. ;
  10883. return 0;
  10884. }
  10885. _ACEOF
  10886. rm -f conftest.$ac_objext conftest$ac_exeext
  10887. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10888. (eval $ac_link) 2>conftest.er1
  10889. ac_status=$?
  10890. grep -v '^ *+' conftest.er1 >conftest.err
  10891. rm -f conftest.er1
  10892. cat conftest.err >&5
  10893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10894. (exit $ac_status); } &&
  10895. { ac_try='test -z "$ac_cxx_werror_flag"
  10896. || test ! -s conftest.err'
  10897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10898. (eval $ac_try) 2>&5
  10899. ac_status=$?
  10900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10901. (exit $ac_status); }; } &&
  10902. { ac_try='test -s conftest$ac_exeext'
  10903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10904. (eval $ac_try) 2>&5
  10905. ac_status=$?
  10906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10907. (exit $ac_status); }; }; then
  10908. ac_cv_lib_dld_dld_link=yes
  10909. else
  10910. echo "$as_me: failed program was:" >&5
  10911. sed 's/^/| /' conftest.$ac_ext >&5
  10912. ac_cv_lib_dld_dld_link=no
  10913. fi
  10914. rm -f conftest.err conftest.$ac_objext \
  10915. conftest$ac_exeext conftest.$ac_ext
  10916. LIBS=$ac_check_lib_save_LIBS
  10917. fi
  10918. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10919. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  10920. if test $ac_cv_lib_dld_dld_link = yes; then
  10921. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10922. fi
  10923. fi
  10924. fi
  10925. fi
  10926. fi
  10927. fi
  10928. ;;
  10929. esac
  10930. if test "x$lt_cv_dlopen" != xno; then
  10931. enable_dlopen=yes
  10932. else
  10933. enable_dlopen=no
  10934. fi
  10935. case $lt_cv_dlopen in
  10936. dlopen)
  10937. save_CPPFLAGS="$CPPFLAGS"
  10938. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10939. save_LDFLAGS="$LDFLAGS"
  10940. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10941. save_LIBS="$LIBS"
  10942. LIBS="$lt_cv_dlopen_libs $LIBS"
  10943. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10944. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  10945. if test "${lt_cv_dlopen_self+set}" = set; then
  10946. echo $ECHO_N "(cached) $ECHO_C" >&6
  10947. else
  10948. if test "$cross_compiling" = yes; then :
  10949. lt_cv_dlopen_self=cross
  10950. else
  10951. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10952. lt_status=$lt_dlunknown
  10953. cat > conftest.$ac_ext <<EOF
  10954. #line 12059 "configure"
  10955. #include "confdefs.h"
  10956. #if HAVE_DLFCN_H
  10957. #include <dlfcn.h>
  10958. #endif
  10959. #include <stdio.h>
  10960. #ifdef RTLD_GLOBAL
  10961. # define LT_DLGLOBAL RTLD_GLOBAL
  10962. #else
  10963. # ifdef DL_GLOBAL
  10964. # define LT_DLGLOBAL DL_GLOBAL
  10965. # else
  10966. # define LT_DLGLOBAL 0
  10967. # endif
  10968. #endif
  10969. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10970. find out it does not work in some platform. */
  10971. #ifndef LT_DLLAZY_OR_NOW
  10972. # ifdef RTLD_LAZY
  10973. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10974. # else
  10975. # ifdef DL_LAZY
  10976. # define LT_DLLAZY_OR_NOW DL_LAZY
  10977. # else
  10978. # ifdef RTLD_NOW
  10979. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10980. # else
  10981. # ifdef DL_NOW
  10982. # define LT_DLLAZY_OR_NOW DL_NOW
  10983. # else
  10984. # define LT_DLLAZY_OR_NOW 0
  10985. # endif
  10986. # endif
  10987. # endif
  10988. # endif
  10989. #endif
  10990. #ifdef __cplusplus
  10991. extern "C" void exit (int);
  10992. #endif
  10993. void fnord() { int i=42;}
  10994. int main ()
  10995. {
  10996. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10997. int status = $lt_dlunknown;
  10998. if (self)
  10999. {
  11000. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11001. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11002. /* dlclose (self); */
  11003. }
  11004. exit (status);
  11005. }
  11006. EOF
  11007. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11008. (eval $ac_link) 2>&5
  11009. ac_status=$?
  11010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11011. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11012. (./conftest; exit; ) 2>/dev/null
  11013. lt_status=$?
  11014. case x$lt_status in
  11015. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11016. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11017. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11018. esac
  11019. else :
  11020. # compilation failed
  11021. lt_cv_dlopen_self=no
  11022. fi
  11023. fi
  11024. rm -fr conftest*
  11025. fi
  11026. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11027. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  11028. if test "x$lt_cv_dlopen_self" = xyes; then
  11029. LDFLAGS="$LDFLAGS $link_static_flag"
  11030. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11031. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  11032. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11033. echo $ECHO_N "(cached) $ECHO_C" >&6
  11034. else
  11035. if test "$cross_compiling" = yes; then :
  11036. lt_cv_dlopen_self_static=cross
  11037. else
  11038. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11039. lt_status=$lt_dlunknown
  11040. cat > conftest.$ac_ext <<EOF
  11041. #line 12157 "configure"
  11042. #include "confdefs.h"
  11043. #if HAVE_DLFCN_H
  11044. #include <dlfcn.h>
  11045. #endif
  11046. #include <stdio.h>
  11047. #ifdef RTLD_GLOBAL
  11048. # define LT_DLGLOBAL RTLD_GLOBAL
  11049. #else
  11050. # ifdef DL_GLOBAL
  11051. # define LT_DLGLOBAL DL_GLOBAL
  11052. # else
  11053. # define LT_DLGLOBAL 0
  11054. # endif
  11055. #endif
  11056. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11057. find out it does not work in some platform. */
  11058. #ifndef LT_DLLAZY_OR_NOW
  11059. # ifdef RTLD_LAZY
  11060. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11061. # else
  11062. # ifdef DL_LAZY
  11063. # define LT_DLLAZY_OR_NOW DL_LAZY
  11064. # else
  11065. # ifdef RTLD_NOW
  11066. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11067. # else
  11068. # ifdef DL_NOW
  11069. # define LT_DLLAZY_OR_NOW DL_NOW
  11070. # else
  11071. # define LT_DLLAZY_OR_NOW 0
  11072. # endif
  11073. # endif
  11074. # endif
  11075. # endif
  11076. #endif
  11077. #ifdef __cplusplus
  11078. extern "C" void exit (int);
  11079. #endif
  11080. void fnord() { int i=42;}
  11081. int main ()
  11082. {
  11083. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11084. int status = $lt_dlunknown;
  11085. if (self)
  11086. {
  11087. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11088. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11089. /* dlclose (self); */
  11090. }
  11091. exit (status);
  11092. }
  11093. EOF
  11094. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11095. (eval $ac_link) 2>&5
  11096. ac_status=$?
  11097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11098. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11099. (./conftest; exit; ) 2>/dev/null
  11100. lt_status=$?
  11101. case x$lt_status in
  11102. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11103. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11104. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11105. esac
  11106. else :
  11107. # compilation failed
  11108. lt_cv_dlopen_self_static=no
  11109. fi
  11110. fi
  11111. rm -fr conftest*
  11112. fi
  11113. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11114. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  11115. fi
  11116. CPPFLAGS="$save_CPPFLAGS"
  11117. LDFLAGS="$save_LDFLAGS"
  11118. LIBS="$save_LIBS"
  11119. ;;
  11120. esac
  11121. case $lt_cv_dlopen_self in
  11122. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11123. *) enable_dlopen_self=unknown ;;
  11124. esac
  11125. case $lt_cv_dlopen_self_static in
  11126. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11127. *) enable_dlopen_self_static=unknown ;;
  11128. esac
  11129. fi
  11130. # The else clause should only fire when bootstrapping the
  11131. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11132. # with your package, and you will get complaints that there are
  11133. # no rules to generate ltmain.sh.
  11134. if test -f "$ltmain"; then
  11135. # See if we are running on zsh, and set the options which allow our commands through
  11136. # without removal of \ escapes.
  11137. if test -n "${ZSH_VERSION+set}" ; then
  11138. setopt NO_GLOB_SUBST
  11139. fi
  11140. # Now quote all the things that may contain metacharacters while being
  11141. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11142. # variables and quote the copies for generation of the libtool script.
  11143. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11144. SED SHELL STRIP \
  11145. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11146. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11147. deplibs_check_method reload_flag reload_cmds need_locks \
  11148. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11149. lt_cv_sys_global_symbol_to_c_name_address \
  11150. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11151. old_postinstall_cmds old_postuninstall_cmds \
  11152. compiler_CXX \
  11153. CC_CXX \
  11154. LD_CXX \
  11155. lt_prog_compiler_wl_CXX \
  11156. lt_prog_compiler_pic_CXX \
  11157. lt_prog_compiler_static_CXX \
  11158. lt_prog_compiler_no_builtin_flag_CXX \
  11159. export_dynamic_flag_spec_CXX \
  11160. thread_safe_flag_spec_CXX \
  11161. whole_archive_flag_spec_CXX \
  11162. enable_shared_with_static_runtimes_CXX \
  11163. old_archive_cmds_CXX \
  11164. old_archive_from_new_cmds_CXX \
  11165. predep_objects_CXX \
  11166. postdep_objects_CXX \
  11167. predeps_CXX \
  11168. postdeps_CXX \
  11169. compiler_lib_search_path_CXX \
  11170. archive_cmds_CXX \
  11171. archive_expsym_cmds_CXX \
  11172. postinstall_cmds_CXX \
  11173. postuninstall_cmds_CXX \
  11174. old_archive_from_expsyms_cmds_CXX \
  11175. allow_undefined_flag_CXX \
  11176. no_undefined_flag_CXX \
  11177. export_symbols_cmds_CXX \
  11178. hardcode_libdir_flag_spec_CXX \
  11179. hardcode_libdir_flag_spec_ld_CXX \
  11180. hardcode_libdir_separator_CXX \
  11181. hardcode_automatic_CXX \
  11182. module_cmds_CXX \
  11183. module_expsym_cmds_CXX \
  11184. lt_cv_prog_compiler_c_o_CXX \
  11185. exclude_expsyms_CXX \
  11186. include_expsyms_CXX; do
  11187. case $var in
  11188. old_archive_cmds_CXX | \
  11189. old_archive_from_new_cmds_CXX | \
  11190. archive_cmds_CXX | \
  11191. archive_expsym_cmds_CXX | \
  11192. module_cmds_CXX | \
  11193. module_expsym_cmds_CXX | \
  11194. old_archive_from_expsyms_cmds_CXX | \
  11195. export_symbols_cmds_CXX | \
  11196. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11197. postinstall_cmds | postuninstall_cmds | \
  11198. old_postinstall_cmds | old_postuninstall_cmds | \
  11199. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11200. # Double-quote double-evaled strings.
  11201. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11202. ;;
  11203. *)
  11204. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11205. ;;
  11206. esac
  11207. done
  11208. case $lt_echo in
  11209. *'\$0 --fallback-echo"')
  11210. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11211. ;;
  11212. esac
  11213. cfgfile="$ofile"
  11214. cat <<__EOF__ >> "$cfgfile"
  11215. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11216. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11217. # Shell to use when invoking shell scripts.
  11218. SHELL=$lt_SHELL
  11219. # Whether or not to build shared libraries.
  11220. build_libtool_libs=$enable_shared
  11221. # Whether or not to build static libraries.
  11222. build_old_libs=$enable_static
  11223. # Whether or not to add -lc for building shared libraries.
  11224. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11225. # Whether or not to disallow shared libs when runtime libs are static
  11226. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11227. # Whether or not to optimize for fast installation.
  11228. fast_install=$enable_fast_install
  11229. # The host system.
  11230. host_alias=$host_alias
  11231. host=$host
  11232. host_os=$host_os
  11233. # The build system.
  11234. build_alias=$build_alias
  11235. build=$build
  11236. build_os=$build_os
  11237. # An echo program that does not interpret backslashes.
  11238. echo=$lt_echo
  11239. # The archiver.
  11240. AR=$lt_AR
  11241. AR_FLAGS=$lt_AR_FLAGS
  11242. # A C compiler.
  11243. LTCC=$lt_LTCC
  11244. # A language-specific compiler.
  11245. CC=$lt_compiler_CXX
  11246. # Is the compiler the GNU C compiler?
  11247. with_gcc=$GCC_CXX
  11248. # An ERE matcher.
  11249. EGREP=$lt_EGREP
  11250. # The linker used to build libraries.
  11251. LD=$lt_LD_CXX
  11252. # Whether we need hard or soft links.
  11253. LN_S=$lt_LN_S
  11254. # A BSD-compatible nm program.
  11255. NM=$lt_NM
  11256. # A symbol stripping program
  11257. STRIP=$lt_STRIP
  11258. # Used to examine libraries when file_magic_cmd begins "file"
  11259. MAGIC_CMD=$MAGIC_CMD
  11260. # Used on cygwin: DLL creation program.
  11261. DLLTOOL="$DLLTOOL"
  11262. # Used on cygwin: object dumper.
  11263. OBJDUMP="$OBJDUMP"
  11264. # Used on cygwin: assembler.
  11265. AS="$AS"
  11266. # The name of the directory that contains temporary libtool files.
  11267. objdir=$objdir
  11268. # How to create reloadable object files.
  11269. reload_flag=$lt_reload_flag
  11270. reload_cmds=$lt_reload_cmds
  11271. # How to pass a linker flag through the compiler.
  11272. wl=$lt_lt_prog_compiler_wl_CXX
  11273. # Object file suffix (normally "o").
  11274. objext="$ac_objext"
  11275. # Old archive suffix (normally "a").
  11276. libext="$libext"
  11277. # Shared library suffix (normally ".so").
  11278. shrext_cmds='$shrext_cmds'
  11279. # Executable file suffix (normally "").
  11280. exeext="$exeext"
  11281. # Additional compiler flags for building library objects.
  11282. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11283. pic_mode=$pic_mode
  11284. # What is the maximum length of a command?
  11285. max_cmd_len=$lt_cv_sys_max_cmd_len
  11286. # Does compiler simultaneously support -c and -o options?
  11287. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11288. # Must we lock files when doing compilation?
  11289. need_locks=$lt_need_locks
  11290. # Do we need the lib prefix for modules?
  11291. need_lib_prefix=$need_lib_prefix
  11292. # Do we need a version for libraries?
  11293. need_version=$need_version
  11294. # Whether dlopen is supported.
  11295. dlopen_support=$enable_dlopen
  11296. # Whether dlopen of programs is supported.
  11297. dlopen_self=$enable_dlopen_self
  11298. # Whether dlopen of statically linked programs is supported.
  11299. dlopen_self_static=$enable_dlopen_self_static
  11300. # Compiler flag to prevent dynamic linking.
  11301. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11302. # Compiler flag to turn off builtin functions.
  11303. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11304. # Compiler flag to allow reflexive dlopens.
  11305. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11306. # Compiler flag to generate shared objects directly from archives.
  11307. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11308. # Compiler flag to generate thread-safe objects.
  11309. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11310. # Library versioning type.
  11311. version_type=$version_type
  11312. # Format of library name prefix.
  11313. libname_spec=$lt_libname_spec
  11314. # List of archive names. First name is the real one, the rest are links.
  11315. # The last name is the one that the linker finds with -lNAME.
  11316. library_names_spec=$lt_library_names_spec
  11317. # The coded name of the library, if different from the real name.
  11318. soname_spec=$lt_soname_spec
  11319. # Commands used to build and install an old-style archive.
  11320. RANLIB=$lt_RANLIB
  11321. old_archive_cmds=$lt_old_archive_cmds_CXX
  11322. old_postinstall_cmds=$lt_old_postinstall_cmds
  11323. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11324. # Create an old-style archive from a shared archive.
  11325. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11326. # Create a temporary old-style archive to link instead of a shared archive.
  11327. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11328. # Commands used to build and install a shared archive.
  11329. archive_cmds=$lt_archive_cmds_CXX
  11330. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11331. postinstall_cmds=$lt_postinstall_cmds
  11332. postuninstall_cmds=$lt_postuninstall_cmds
  11333. # Commands used to build a loadable module (assumed same as above if empty)
  11334. module_cmds=$lt_module_cmds_CXX
  11335. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11336. # Commands to strip libraries.
  11337. old_striplib=$lt_old_striplib
  11338. striplib=$lt_striplib
  11339. # Dependencies to place before the objects being linked to create a
  11340. # shared library.
  11341. predep_objects=$lt_predep_objects_CXX
  11342. # Dependencies to place after the objects being linked to create a
  11343. # shared library.
  11344. postdep_objects=$lt_postdep_objects_CXX
  11345. # Dependencies to place before the objects being linked to create a
  11346. # shared library.
  11347. predeps=$lt_predeps_CXX
  11348. # Dependencies to place after the objects being linked to create a
  11349. # shared library.
  11350. postdeps=$lt_postdeps_CXX
  11351. # The library search path used internally by the compiler when linking
  11352. # a shared library.
  11353. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11354. # Method to check whether dependent libraries are shared objects.
  11355. deplibs_check_method=$lt_deplibs_check_method
  11356. # Command to use when deplibs_check_method == file_magic.
  11357. file_magic_cmd=$lt_file_magic_cmd
  11358. # Flag that allows shared libraries with undefined symbols to be built.
  11359. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11360. # Flag that forces no undefined symbols.
  11361. no_undefined_flag=$lt_no_undefined_flag_CXX
  11362. # Commands used to finish a libtool library installation in a directory.
  11363. finish_cmds=$lt_finish_cmds
  11364. # Same as above, but a single script fragment to be evaled but not shown.
  11365. finish_eval=$lt_finish_eval
  11366. # Take the output of nm and produce a listing of raw symbols and C names.
  11367. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11368. # Transform the output of nm in a proper C declaration
  11369. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11370. # Transform the output of nm in a C name address pair
  11371. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11372. # This is the shared library runtime path variable.
  11373. runpath_var=$runpath_var
  11374. # This is the shared library path variable.
  11375. shlibpath_var=$shlibpath_var
  11376. # Is shlibpath searched before the hard-coded library search path?
  11377. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11378. # How to hardcode a shared library path into an executable.
  11379. hardcode_action=$hardcode_action_CXX
  11380. # Whether we should hardcode library paths into libraries.
  11381. hardcode_into_libs=$hardcode_into_libs
  11382. # Flag to hardcode \$libdir into a binary during linking.
  11383. # This must work even if \$libdir does not exist.
  11384. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11385. # If ld is used when linking, flag to hardcode \$libdir into
  11386. # a binary during linking. This must work even if \$libdir does
  11387. # not exist.
  11388. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11389. # Whether we need a single -rpath flag with a separated argument.
  11390. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11391. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11392. # resulting binary.
  11393. hardcode_direct=$hardcode_direct_CXX
  11394. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11395. # resulting binary.
  11396. hardcode_minus_L=$hardcode_minus_L_CXX
  11397. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11398. # the resulting binary.
  11399. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11400. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11401. # and all subsequent libraries and executables linked against it.
  11402. hardcode_automatic=$hardcode_automatic_CXX
  11403. # Variables whose values should be saved in libtool wrapper scripts and
  11404. # restored at relink time.
  11405. variables_saved_for_relink="$variables_saved_for_relink"
  11406. # Whether libtool must link a program against all its dependency libraries.
  11407. link_all_deplibs=$link_all_deplibs_CXX
  11408. # Compile-time system search path for libraries
  11409. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11410. # Run-time system search path for libraries
  11411. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11412. # Fix the shell variable \$srcfile for the compiler.
  11413. fix_srcfile_path="$fix_srcfile_path_CXX"
  11414. # Set to yes if exported symbols are required.
  11415. always_export_symbols=$always_export_symbols_CXX
  11416. # The commands to list exported symbols.
  11417. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11418. # The commands to extract the exported symbol list from a shared archive.
  11419. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11420. # Symbols that should not be listed in the preloaded symbols.
  11421. exclude_expsyms=$lt_exclude_expsyms_CXX
  11422. # Symbols that must always be exported.
  11423. include_expsyms=$lt_include_expsyms_CXX
  11424. # ### END LIBTOOL TAG CONFIG: $tagname
  11425. __EOF__
  11426. else
  11427. # If there is no Makefile yet, we rely on a make rule to execute
  11428. # `config.status --recheck' to rerun these tests and create the
  11429. # libtool script then.
  11430. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11431. if test -f "$ltmain_in"; then
  11432. test -f Makefile && make "$ltmain"
  11433. fi
  11434. fi
  11435. ac_ext=c
  11436. ac_cpp='$CPP $CPPFLAGS'
  11437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11440. CC=$lt_save_CC
  11441. LDCXX=$LD
  11442. LD=$lt_save_LD
  11443. GCC=$lt_save_GCC
  11444. with_gnu_ldcxx=$with_gnu_ld
  11445. with_gnu_ld=$lt_save_with_gnu_ld
  11446. lt_cv_path_LDCXX=$lt_cv_path_LD
  11447. lt_cv_path_LD=$lt_save_path_LD
  11448. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11449. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11450. else
  11451. tagname=""
  11452. fi
  11453. ;;
  11454. F77)
  11455. if test -n "$F77" && test "X$F77" != "Xno"; then
  11456. ac_ext=f
  11457. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11458. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11459. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11460. archive_cmds_need_lc_F77=no
  11461. allow_undefined_flag_F77=
  11462. always_export_symbols_F77=no
  11463. archive_expsym_cmds_F77=
  11464. export_dynamic_flag_spec_F77=
  11465. hardcode_direct_F77=no
  11466. hardcode_libdir_flag_spec_F77=
  11467. hardcode_libdir_flag_spec_ld_F77=
  11468. hardcode_libdir_separator_F77=
  11469. hardcode_minus_L_F77=no
  11470. hardcode_automatic_F77=no
  11471. module_cmds_F77=
  11472. module_expsym_cmds_F77=
  11473. link_all_deplibs_F77=unknown
  11474. old_archive_cmds_F77=$old_archive_cmds
  11475. no_undefined_flag_F77=
  11476. whole_archive_flag_spec_F77=
  11477. enable_shared_with_static_runtimes_F77=no
  11478. # Source file extension for f77 test sources.
  11479. ac_ext=f
  11480. # Object file extension for compiled f77 test sources.
  11481. objext=o
  11482. objext_F77=$objext
  11483. # Code to be used in simple compile tests
  11484. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11485. # Code to be used in simple link tests
  11486. lt_simple_link_test_code=" program t\n end\n"
  11487. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11488. # If no C compiler was specified, use CC.
  11489. LTCC=${LTCC-"$CC"}
  11490. # Allow CC to be a program name with arguments.
  11491. compiler=$CC
  11492. # save warnings/boilerplate of simple test code
  11493. ac_outfile=conftest.$ac_objext
  11494. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11495. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11496. _lt_compiler_boilerplate=`cat conftest.err`
  11497. $rm conftest*
  11498. ac_outfile=conftest.$ac_objext
  11499. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11500. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11501. _lt_linker_boilerplate=`cat conftest.err`
  11502. $rm conftest*
  11503. # Allow CC to be a program name with arguments.
  11504. lt_save_CC="$CC"
  11505. CC=${F77-"f77"}
  11506. compiler=$CC
  11507. compiler_F77=$CC
  11508. for cc_temp in $compiler""; do
  11509. case $cc_temp in
  11510. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11511. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11512. \-*) ;;
  11513. *) break;;
  11514. esac
  11515. done
  11516. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11517. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11518. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11519. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11520. echo "${ECHO_T}$can_build_shared" >&6
  11521. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11522. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11523. test "$can_build_shared" = "no" && enable_shared=no
  11524. # On AIX, shared libraries and static libraries use the same namespace, and
  11525. # are all built from PIC.
  11526. case "$host_os" in
  11527. aix3*)
  11528. test "$enable_shared" = yes && enable_static=no
  11529. if test -n "$RANLIB"; then
  11530. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11531. postinstall_cmds='$RANLIB $lib'
  11532. fi
  11533. ;;
  11534. aix4* | aix5*)
  11535. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11536. test "$enable_shared" = yes && enable_static=no
  11537. fi
  11538. ;;
  11539. esac
  11540. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11541. echo "${ECHO_T}$enable_shared" >&6
  11542. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11543. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11544. # Make sure either enable_shared or enable_static is yes.
  11545. test "$enable_shared" = yes || enable_static=yes
  11546. echo "$as_me:$LINENO: result: $enable_static" >&5
  11547. echo "${ECHO_T}$enable_static" >&6
  11548. test "$ld_shlibs_F77" = no && can_build_shared=no
  11549. GCC_F77="$G77"
  11550. LD_F77="$LD"
  11551. lt_prog_compiler_wl_F77=
  11552. lt_prog_compiler_pic_F77=
  11553. lt_prog_compiler_static_F77=
  11554. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11555. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11556. if test "$GCC" = yes; then
  11557. lt_prog_compiler_wl_F77='-Wl,'
  11558. lt_prog_compiler_static_F77='-static'
  11559. case $host_os in
  11560. aix*)
  11561. # All AIX code is PIC.
  11562. if test "$host_cpu" = ia64; then
  11563. # AIX 5 now supports IA64 processor
  11564. lt_prog_compiler_static_F77='-Bstatic'
  11565. fi
  11566. ;;
  11567. amigaos*)
  11568. # FIXME: we need at least 68020 code to build shared libraries, but
  11569. # adding the `-m68020' flag to GCC prevents building anything better,
  11570. # like `-m68040'.
  11571. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11572. ;;
  11573. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11574. # PIC is the default for these OSes.
  11575. ;;
  11576. mingw* | pw32* | os2*)
  11577. # This hack is so that the source file can tell whether it is being
  11578. # built for inclusion in a dll (and should export symbols for example).
  11579. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11580. ;;
  11581. darwin* | rhapsody*)
  11582. # PIC is the default on this platform
  11583. # Common symbols not allowed in MH_DYLIB files
  11584. lt_prog_compiler_pic_F77='-fno-common'
  11585. ;;
  11586. msdosdjgpp*)
  11587. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11588. # on systems that don't support them.
  11589. lt_prog_compiler_can_build_shared_F77=no
  11590. enable_shared=no
  11591. ;;
  11592. sysv4*MP*)
  11593. if test -d /usr/nec; then
  11594. lt_prog_compiler_pic_F77=-Kconform_pic
  11595. fi
  11596. ;;
  11597. hpux*)
  11598. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11599. # not for PA HP-UX.
  11600. case "$host_cpu" in
  11601. hppa*64*|ia64*)
  11602. # +Z the default
  11603. ;;
  11604. *)
  11605. lt_prog_compiler_pic_F77='-fPIC'
  11606. ;;
  11607. esac
  11608. ;;
  11609. *)
  11610. lt_prog_compiler_pic_F77='-fPIC'
  11611. ;;
  11612. esac
  11613. else
  11614. # PORTME Check for flag to pass linker flags through the system compiler.
  11615. case $host_os in
  11616. aix*)
  11617. lt_prog_compiler_wl_F77='-Wl,'
  11618. if test "$host_cpu" = ia64; then
  11619. # AIX 5 now supports IA64 processor
  11620. lt_prog_compiler_static_F77='-Bstatic'
  11621. else
  11622. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11623. fi
  11624. ;;
  11625. darwin*)
  11626. # PIC is the default on this platform
  11627. # Common symbols not allowed in MH_DYLIB files
  11628. case $cc_basename in
  11629. xlc*)
  11630. lt_prog_compiler_pic_F77='-qnocommon'
  11631. lt_prog_compiler_wl_F77='-Wl,'
  11632. ;;
  11633. esac
  11634. ;;
  11635. mingw* | pw32* | os2*)
  11636. # This hack is so that the source file can tell whether it is being
  11637. # built for inclusion in a dll (and should export symbols for example).
  11638. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11639. ;;
  11640. hpux9* | hpux10* | hpux11*)
  11641. lt_prog_compiler_wl_F77='-Wl,'
  11642. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11643. # not for PA HP-UX.
  11644. case "$host_cpu" in
  11645. hppa*64*|ia64*)
  11646. # +Z the default
  11647. ;;
  11648. *)
  11649. lt_prog_compiler_pic_F77='+Z'
  11650. ;;
  11651. esac
  11652. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11653. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11654. ;;
  11655. irix5* | irix6* | nonstopux*)
  11656. lt_prog_compiler_wl_F77='-Wl,'
  11657. # PIC (with -KPIC) is the default.
  11658. lt_prog_compiler_static_F77='-non_shared'
  11659. ;;
  11660. newsos6)
  11661. lt_prog_compiler_pic_F77='-KPIC'
  11662. lt_prog_compiler_static_F77='-Bstatic'
  11663. ;;
  11664. linux*)
  11665. case $cc_basename in
  11666. icc* | ecc*)
  11667. lt_prog_compiler_wl_F77='-Wl,'
  11668. lt_prog_compiler_pic_F77='-KPIC'
  11669. lt_prog_compiler_static_F77='-static'
  11670. ;;
  11671. pgcc* | pgf77* | pgf90*)
  11672. # Portland Group compilers (*not* the Pentium gcc compiler,
  11673. # which looks to be a dead project)
  11674. lt_prog_compiler_wl_F77='-Wl,'
  11675. lt_prog_compiler_pic_F77='-fpic'
  11676. lt_prog_compiler_static_F77='-static'
  11677. ;;
  11678. ccc*)
  11679. lt_prog_compiler_wl_F77='-Wl,'
  11680. # All Alpha code is PIC.
  11681. lt_prog_compiler_static_F77='-non_shared'
  11682. ;;
  11683. esac
  11684. ;;
  11685. osf3* | osf4* | osf5*)
  11686. lt_prog_compiler_wl_F77='-Wl,'
  11687. # All OSF/1 code is PIC.
  11688. lt_prog_compiler_static_F77='-non_shared'
  11689. ;;
  11690. sco3.2v5*)
  11691. lt_prog_compiler_pic_F77='-Kpic'
  11692. lt_prog_compiler_static_F77='-dn'
  11693. ;;
  11694. solaris*)
  11695. lt_prog_compiler_pic_F77='-KPIC'
  11696. lt_prog_compiler_static_F77='-Bstatic'
  11697. case $cc_basename in
  11698. f77* | f90* | f95*)
  11699. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11700. *)
  11701. lt_prog_compiler_wl_F77='-Wl,';;
  11702. esac
  11703. ;;
  11704. sunos4*)
  11705. lt_prog_compiler_wl_F77='-Qoption ld '
  11706. lt_prog_compiler_pic_F77='-PIC'
  11707. lt_prog_compiler_static_F77='-Bstatic'
  11708. ;;
  11709. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11710. lt_prog_compiler_wl_F77='-Wl,'
  11711. lt_prog_compiler_pic_F77='-KPIC'
  11712. lt_prog_compiler_static_F77='-Bstatic'
  11713. ;;
  11714. sysv4*MP*)
  11715. if test -d /usr/nec ;then
  11716. lt_prog_compiler_pic_F77='-Kconform_pic'
  11717. lt_prog_compiler_static_F77='-Bstatic'
  11718. fi
  11719. ;;
  11720. unicos*)
  11721. lt_prog_compiler_wl_F77='-Wl,'
  11722. lt_prog_compiler_can_build_shared_F77=no
  11723. ;;
  11724. uts4*)
  11725. lt_prog_compiler_pic_F77='-pic'
  11726. lt_prog_compiler_static_F77='-Bstatic'
  11727. ;;
  11728. *)
  11729. lt_prog_compiler_can_build_shared_F77=no
  11730. ;;
  11731. esac
  11732. fi
  11733. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11734. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11735. #
  11736. # Check to make sure the PIC flag actually works.
  11737. #
  11738. if test -n "$lt_prog_compiler_pic_F77"; then
  11739. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11740. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11741. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11742. echo $ECHO_N "(cached) $ECHO_C" >&6
  11743. else
  11744. lt_prog_compiler_pic_works_F77=no
  11745. ac_outfile=conftest.$ac_objext
  11746. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11747. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11748. # Insert the option either (1) after the last *FLAGS variable, or
  11749. # (2) before a word containing "conftest.", or (3) at the end.
  11750. # Note that $ac_compile itself does not contain backslashes and begins
  11751. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11752. # The option is referenced via a variable to avoid confusing sed.
  11753. lt_compile=`echo "$ac_compile" | $SED \
  11754. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11755. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11756. -e 's:$: $lt_compiler_flag:'`
  11757. (eval echo "\"\$as_me:13042: $lt_compile\"" >&5)
  11758. (eval "$lt_compile" 2>conftest.err)
  11759. ac_status=$?
  11760. cat conftest.err >&5
  11761. echo "$as_me:13046: \$? = $ac_status" >&5
  11762. if (exit $ac_status) && test -s "$ac_outfile"; then
  11763. # The compiler can only warn and ignore the option if not recognized
  11764. # So say no if there are warnings other than the usual output.
  11765. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  11766. $SED '/^$/d' conftest.err >conftest.er2
  11767. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  11768. lt_prog_compiler_pic_works_F77=yes
  11769. fi
  11770. fi
  11771. $rm conftest*
  11772. fi
  11773. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11774. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11775. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11776. case $lt_prog_compiler_pic_F77 in
  11777. "" | " "*) ;;
  11778. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11779. esac
  11780. else
  11781. lt_prog_compiler_pic_F77=
  11782. lt_prog_compiler_can_build_shared_F77=no
  11783. fi
  11784. fi
  11785. case "$host_os" in
  11786. # For platforms which do not support PIC, -DPIC is meaningless:
  11787. *djgpp*)
  11788. lt_prog_compiler_pic_F77=
  11789. ;;
  11790. *)
  11791. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11792. ;;
  11793. esac
  11794. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11795. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11796. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11797. echo $ECHO_N "(cached) $ECHO_C" >&6
  11798. else
  11799. lt_cv_prog_compiler_c_o_F77=no
  11800. $rm -r conftest 2>/dev/null
  11801. mkdir conftest
  11802. cd conftest
  11803. mkdir out
  11804. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11805. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11806. # Insert the option either (1) after the last *FLAGS variable, or
  11807. # (2) before a word containing "conftest.", or (3) at the end.
  11808. # Note that $ac_compile itself does not contain backslashes and begins
  11809. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11810. lt_compile=`echo "$ac_compile" | $SED \
  11811. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11812. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11813. -e 's:$: $lt_compiler_flag:'`
  11814. (eval echo "\"\$as_me:13104: $lt_compile\"" >&5)
  11815. (eval "$lt_compile" 2>out/conftest.err)
  11816. ac_status=$?
  11817. cat out/conftest.err >&5
  11818. echo "$as_me:13108: \$? = $ac_status" >&5
  11819. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11820. then
  11821. # The compiler can only warn and ignore the option if not recognized
  11822. # So say no if there are warnings
  11823. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  11824. $SED '/^$/d' out/conftest.err >out/conftest.er2
  11825. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11826. lt_cv_prog_compiler_c_o_F77=yes
  11827. fi
  11828. fi
  11829. chmod u+w .
  11830. $rm conftest*
  11831. # SGI C++ compiler will create directory out/ii_files/ for
  11832. # template instantiation
  11833. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11834. $rm out/* && rmdir out
  11835. cd ..
  11836. rmdir conftest
  11837. $rm conftest*
  11838. fi
  11839. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11840. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11841. hard_links="nottested"
  11842. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11843. # do not overwrite the value of need_locks provided by the user
  11844. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11845. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11846. hard_links=yes
  11847. $rm conftest*
  11848. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11849. touch conftest.a
  11850. ln conftest.a conftest.b 2>&5 || hard_links=no
  11851. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11852. echo "$as_me:$LINENO: result: $hard_links" >&5
  11853. echo "${ECHO_T}$hard_links" >&6
  11854. if test "$hard_links" = no; then
  11855. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11856. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11857. need_locks=warn
  11858. fi
  11859. else
  11860. need_locks=no
  11861. fi
  11862. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11863. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11864. runpath_var=
  11865. allow_undefined_flag_F77=
  11866. enable_shared_with_static_runtimes_F77=no
  11867. archive_cmds_F77=
  11868. archive_expsym_cmds_F77=
  11869. old_archive_From_new_cmds_F77=
  11870. old_archive_from_expsyms_cmds_F77=
  11871. export_dynamic_flag_spec_F77=
  11872. whole_archive_flag_spec_F77=
  11873. thread_safe_flag_spec_F77=
  11874. hardcode_libdir_flag_spec_F77=
  11875. hardcode_libdir_flag_spec_ld_F77=
  11876. hardcode_libdir_separator_F77=
  11877. hardcode_direct_F77=no
  11878. hardcode_minus_L_F77=no
  11879. hardcode_shlibpath_var_F77=unsupported
  11880. link_all_deplibs_F77=unknown
  11881. hardcode_automatic_F77=no
  11882. module_cmds_F77=
  11883. module_expsym_cmds_F77=
  11884. always_export_symbols_F77=no
  11885. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11886. # include_expsyms should be a list of space-separated symbols to be *always*
  11887. # included in the symbol list
  11888. include_expsyms_F77=
  11889. # exclude_expsyms can be an extended regexp of symbols to exclude
  11890. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11891. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11892. # as well as any symbol that contains `d'.
  11893. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11894. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11895. # platforms (ab)use it in PIC code, but their linkers get confused if
  11896. # the symbol is explicitly referenced. Since portable code cannot
  11897. # rely on this symbol name, it's probably fine to never include it in
  11898. # preloaded symbol tables.
  11899. extract_expsyms_cmds=
  11900. # Just being paranoid about ensuring that cc_basename is set.
  11901. for cc_temp in $compiler""; do
  11902. case $cc_temp in
  11903. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11904. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11905. \-*) ;;
  11906. *) break;;
  11907. esac
  11908. done
  11909. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11910. case $host_os in
  11911. cygwin* | mingw* | pw32*)
  11912. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11913. # When not using gcc, we currently assume that we are using
  11914. # Microsoft Visual C++.
  11915. if test "$GCC" != yes; then
  11916. with_gnu_ld=no
  11917. fi
  11918. ;;
  11919. openbsd*)
  11920. with_gnu_ld=no
  11921. ;;
  11922. esac
  11923. ld_shlibs_F77=yes
  11924. if test "$with_gnu_ld" = yes; then
  11925. # If archive_cmds runs LD, not CC, wlarc should be empty
  11926. wlarc='${wl}'
  11927. # Set some defaults for GNU ld with shared library support. These
  11928. # are reset later if shared libraries are not supported. Putting them
  11929. # here allows them to be overridden if necessary.
  11930. runpath_var=LD_RUN_PATH
  11931. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11932. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11933. # ancient GNU ld didn't support --whole-archive et. al.
  11934. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11935. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11936. else
  11937. whole_archive_flag_spec_F77=
  11938. fi
  11939. supports_anon_versioning=no
  11940. case `$LD -v 2>/dev/null` in
  11941. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11942. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11943. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11944. *\ 2.11.*) ;; # other 2.11 versions
  11945. *) supports_anon_versioning=yes ;;
  11946. esac
  11947. # See if GNU ld supports shared libraries.
  11948. case $host_os in
  11949. aix3* | aix4* | aix5*)
  11950. # On AIX/PPC, the GNU linker is very broken
  11951. if test "$host_cpu" != ia64; then
  11952. ld_shlibs_F77=no
  11953. cat <<EOF 1>&2
  11954. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11955. *** to be unable to reliably create shared libraries on AIX.
  11956. *** Therefore, libtool is disabling shared libraries support. If you
  11957. *** really care for shared libraries, you may want to modify your PATH
  11958. *** so that a non-GNU linker is found, and then restart.
  11959. EOF
  11960. fi
  11961. ;;
  11962. amigaos*)
  11963. 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)'
  11964. hardcode_libdir_flag_spec_F77='-L$libdir'
  11965. hardcode_minus_L_F77=yes
  11966. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11967. # that the semantics of dynamic libraries on AmigaOS, at least up
  11968. # to version 4, is to share data among multiple programs linked
  11969. # with the same dynamic library. Since this doesn't match the
  11970. # behavior of shared libraries on other platforms, we can't use
  11971. # them.
  11972. ld_shlibs_F77=no
  11973. ;;
  11974. beos*)
  11975. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11976. allow_undefined_flag_F77=unsupported
  11977. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11978. # support --undefined. This deserves some investigation. FIXME
  11979. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11980. else
  11981. ld_shlibs_F77=no
  11982. fi
  11983. ;;
  11984. cygwin* | mingw* | pw32*)
  11985. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  11986. # as there is no search path for DLLs.
  11987. hardcode_libdir_flag_spec_F77='-L$libdir'
  11988. allow_undefined_flag_F77=unsupported
  11989. always_export_symbols_F77=no
  11990. enable_shared_with_static_runtimes_F77=yes
  11991. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11992. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11993. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11994. # If the export-symbols file already is a .def file (1st line
  11995. # is EXPORTS), use it as is; otherwise, prepend...
  11996. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11997. cp $export_symbols $output_objdir/$soname.def;
  11998. else
  11999. echo EXPORTS > $output_objdir/$soname.def;
  12000. cat $export_symbols >> $output_objdir/$soname.def;
  12001. fi~
  12002. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12003. else
  12004. ld_shlibs_F77=no
  12005. fi
  12006. ;;
  12007. linux*)
  12008. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12009. tmp_addflag=
  12010. case $cc_basename,$host_cpu in
  12011. pgcc*) # Portland Group C compiler
  12012. 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'
  12013. tmp_addflag=' $pic_flag'
  12014. ;;
  12015. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  12016. 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'
  12017. tmp_addflag=' $pic_flag -Mnomain' ;;
  12018. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12019. tmp_addflag=' -i_dynamic' ;;
  12020. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12021. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12022. ifc* | ifort*) # Intel Fortran compiler
  12023. tmp_addflag=' -nofor_main' ;;
  12024. esac
  12025. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12026. if test $supports_anon_versioning = yes; then
  12027. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12028. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12029. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12030. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12031. fi
  12032. else
  12033. ld_shlibs_F77=no
  12034. fi
  12035. ;;
  12036. netbsd*)
  12037. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12038. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12039. wlarc=
  12040. else
  12041. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12042. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12043. fi
  12044. ;;
  12045. solaris* | sysv5*)
  12046. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12047. ld_shlibs_F77=no
  12048. cat <<EOF 1>&2
  12049. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12050. *** create shared libraries on Solaris systems. Therefore, libtool
  12051. *** is disabling shared libraries support. We urge you to upgrade GNU
  12052. *** binutils to release 2.9.1 or newer. Another option is to modify
  12053. *** your PATH or compiler configuration so that the native linker is
  12054. *** used, and then restart.
  12055. EOF
  12056. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12057. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12058. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12059. else
  12060. ld_shlibs_F77=no
  12061. fi
  12062. ;;
  12063. sunos4*)
  12064. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12065. wlarc=
  12066. hardcode_direct_F77=yes
  12067. hardcode_shlibpath_var_F77=no
  12068. ;;
  12069. *)
  12070. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12071. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12072. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12073. else
  12074. ld_shlibs_F77=no
  12075. fi
  12076. ;;
  12077. esac
  12078. if test "$ld_shlibs_F77" = no; then
  12079. runpath_var=
  12080. hardcode_libdir_flag_spec_F77=
  12081. export_dynamic_flag_spec_F77=
  12082. whole_archive_flag_spec_F77=
  12083. fi
  12084. else
  12085. # PORTME fill in a description of your system's linker (not GNU ld)
  12086. case $host_os in
  12087. aix3*)
  12088. allow_undefined_flag_F77=unsupported
  12089. always_export_symbols_F77=yes
  12090. 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'
  12091. # Note: this linker hardcodes the directories in LIBPATH if there
  12092. # are no directories specified by -L.
  12093. hardcode_minus_L_F77=yes
  12094. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12095. # Neither direct hardcoding nor static linking is supported with a
  12096. # broken collect2.
  12097. hardcode_direct_F77=unsupported
  12098. fi
  12099. ;;
  12100. aix4* | aix5*)
  12101. if test "$host_cpu" = ia64; then
  12102. # On IA64, the linker does run time linking by default, so we don't
  12103. # have to do anything special.
  12104. aix_use_runtimelinking=no
  12105. exp_sym_flag='-Bexport'
  12106. no_entry_flag=""
  12107. else
  12108. # If we're using GNU nm, then we don't want the "-C" option.
  12109. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12110. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12111. 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'
  12112. else
  12113. 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'
  12114. fi
  12115. aix_use_runtimelinking=no
  12116. # Test if we are trying to use run time linking or normal
  12117. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12118. # need to do runtime linking.
  12119. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12120. for ld_flag in $LDFLAGS; do
  12121. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12122. aix_use_runtimelinking=yes
  12123. break
  12124. fi
  12125. done
  12126. esac
  12127. exp_sym_flag='-bexport'
  12128. no_entry_flag='-bnoentry'
  12129. fi
  12130. # When large executables or shared objects are built, AIX ld can
  12131. # have problems creating the table of contents. If linking a library
  12132. # or program results in "error TOC overflow" add -mminimal-toc to
  12133. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12134. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12135. archive_cmds_F77=''
  12136. hardcode_direct_F77=yes
  12137. hardcode_libdir_separator_F77=':'
  12138. link_all_deplibs_F77=yes
  12139. if test "$GCC" = yes; then
  12140. case $host_os in aix4.[012]|aix4.[012].*)
  12141. # We only want to do this on AIX 4.2 and lower, the check
  12142. # below for broken collect2 doesn't work under 4.3+
  12143. collect2name=`${CC} -print-prog-name=collect2`
  12144. if test -f "$collect2name" && \
  12145. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12146. then
  12147. # We have reworked collect2
  12148. hardcode_direct_F77=yes
  12149. else
  12150. # We have old collect2
  12151. hardcode_direct_F77=unsupported
  12152. # It fails to find uninstalled libraries when the uninstalled
  12153. # path is not listed in the libpath. Setting hardcode_minus_L
  12154. # to unsupported forces relinking
  12155. hardcode_minus_L_F77=yes
  12156. hardcode_libdir_flag_spec_F77='-L$libdir'
  12157. hardcode_libdir_separator_F77=
  12158. fi
  12159. esac
  12160. shared_flag='-shared'
  12161. if test "$aix_use_runtimelinking" = yes; then
  12162. shared_flag="$shared_flag "'${wl}-G'
  12163. fi
  12164. else
  12165. # not using gcc
  12166. if test "$host_cpu" = ia64; then
  12167. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12168. # chokes on -Wl,-G. The following line is correct:
  12169. shared_flag='-G'
  12170. else
  12171. if test "$aix_use_runtimelinking" = yes; then
  12172. shared_flag='${wl}-G'
  12173. else
  12174. shared_flag='${wl}-bM:SRE'
  12175. fi
  12176. fi
  12177. fi
  12178. # It seems that -bexpall does not export symbols beginning with
  12179. # underscore (_), so it is better to generate a list of symbols to export.
  12180. always_export_symbols_F77=yes
  12181. if test "$aix_use_runtimelinking" = yes; then
  12182. # Warning - without using the other runtime loading flags (-brtl),
  12183. # -berok will link without error, but may produce a broken library.
  12184. allow_undefined_flag_F77='-berok'
  12185. # Determine the default libpath from the value encoded in an empty executable.
  12186. cat >conftest.$ac_ext <<_ACEOF
  12187. program main
  12188. end
  12189. _ACEOF
  12190. rm -f conftest.$ac_objext conftest$ac_exeext
  12191. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12192. (eval $ac_link) 2>conftest.er1
  12193. ac_status=$?
  12194. grep -v '^ *+' conftest.er1 >conftest.err
  12195. rm -f conftest.er1
  12196. cat conftest.err >&5
  12197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12198. (exit $ac_status); } &&
  12199. { ac_try='test -z "$ac_f77_werror_flag"
  12200. || test ! -s conftest.err'
  12201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12202. (eval $ac_try) 2>&5
  12203. ac_status=$?
  12204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12205. (exit $ac_status); }; } &&
  12206. { ac_try='test -s conftest$ac_exeext'
  12207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12208. (eval $ac_try) 2>&5
  12209. ac_status=$?
  12210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12211. (exit $ac_status); }; }; then
  12212. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12213. }'`
  12214. # Check for a 64-bit object if we didn't find anything.
  12215. 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; }
  12216. }'`; fi
  12217. else
  12218. echo "$as_me: failed program was:" >&5
  12219. sed 's/^/| /' conftest.$ac_ext >&5
  12220. fi
  12221. rm -f conftest.err conftest.$ac_objext \
  12222. conftest$ac_exeext conftest.$ac_ext
  12223. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12224. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12225. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12226. else
  12227. if test "$host_cpu" = ia64; then
  12228. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12229. allow_undefined_flag_F77="-z nodefs"
  12230. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12231. else
  12232. # Determine the default libpath from the value encoded in an empty executable.
  12233. cat >conftest.$ac_ext <<_ACEOF
  12234. program main
  12235. end
  12236. _ACEOF
  12237. rm -f conftest.$ac_objext conftest$ac_exeext
  12238. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12239. (eval $ac_link) 2>conftest.er1
  12240. ac_status=$?
  12241. grep -v '^ *+' conftest.er1 >conftest.err
  12242. rm -f conftest.er1
  12243. cat conftest.err >&5
  12244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12245. (exit $ac_status); } &&
  12246. { ac_try='test -z "$ac_f77_werror_flag"
  12247. || test ! -s conftest.err'
  12248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12249. (eval $ac_try) 2>&5
  12250. ac_status=$?
  12251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12252. (exit $ac_status); }; } &&
  12253. { ac_try='test -s conftest$ac_exeext'
  12254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12255. (eval $ac_try) 2>&5
  12256. ac_status=$?
  12257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12258. (exit $ac_status); }; }; then
  12259. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12260. }'`
  12261. # Check for a 64-bit object if we didn't find anything.
  12262. 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; }
  12263. }'`; fi
  12264. else
  12265. echo "$as_me: failed program was:" >&5
  12266. sed 's/^/| /' conftest.$ac_ext >&5
  12267. fi
  12268. rm -f conftest.err conftest.$ac_objext \
  12269. conftest$ac_exeext conftest.$ac_ext
  12270. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12271. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12272. # Warning - without using the other run time loading flags,
  12273. # -berok will link without error, but may produce a broken library.
  12274. no_undefined_flag_F77=' ${wl}-bernotok'
  12275. allow_undefined_flag_F77=' ${wl}-berok'
  12276. # -bexpall does not export symbols beginning with underscore (_)
  12277. always_export_symbols_F77=yes
  12278. # Exported symbols can be pulled into shared objects from archives
  12279. whole_archive_flag_spec_F77=' '
  12280. archive_cmds_need_lc_F77=yes
  12281. # This is similar to how AIX traditionally builds it's shared libraries.
  12282. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12283. fi
  12284. fi
  12285. ;;
  12286. amigaos*)
  12287. 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)'
  12288. hardcode_libdir_flag_spec_F77='-L$libdir'
  12289. hardcode_minus_L_F77=yes
  12290. # see comment about different semantics on the GNU ld section
  12291. ld_shlibs_F77=no
  12292. ;;
  12293. bsdi[45]*)
  12294. export_dynamic_flag_spec_F77=-rdynamic
  12295. ;;
  12296. cygwin* | mingw* | pw32*)
  12297. # When not using gcc, we currently assume that we are using
  12298. # Microsoft Visual C++.
  12299. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12300. # no search path for DLLs.
  12301. hardcode_libdir_flag_spec_F77=' '
  12302. allow_undefined_flag_F77=unsupported
  12303. # Tell ltmain to make .lib files, not .a files.
  12304. libext=lib
  12305. # Tell ltmain to make .dll files, not .so files.
  12306. shrext_cmds=".dll"
  12307. # FIXME: Setting linknames here is a bad hack.
  12308. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12309. # The linker will automatically build a .lib file if we build a DLL.
  12310. old_archive_From_new_cmds_F77='true'
  12311. # FIXME: Should let the user specify the lib program.
  12312. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12313. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12314. enable_shared_with_static_runtimes_F77=yes
  12315. ;;
  12316. darwin* | rhapsody*)
  12317. case "$host_os" in
  12318. rhapsody* | darwin1.[012])
  12319. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12320. ;;
  12321. *) # Darwin 1.3 on
  12322. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12323. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12324. else
  12325. case ${MACOSX_DEPLOYMENT_TARGET} in
  12326. 10.[012])
  12327. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12328. ;;
  12329. 10.*)
  12330. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12331. ;;
  12332. esac
  12333. fi
  12334. ;;
  12335. esac
  12336. archive_cmds_need_lc_F77=no
  12337. hardcode_direct_F77=no
  12338. hardcode_automatic_F77=yes
  12339. hardcode_shlibpath_var_F77=unsupported
  12340. whole_archive_flag_spec_F77=''
  12341. link_all_deplibs_F77=yes
  12342. if test "$GCC" = yes ; then
  12343. output_verbose_link_cmd='echo'
  12344. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12345. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12346. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12347. 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}'
  12348. 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}'
  12349. else
  12350. case $cc_basename in
  12351. xlc*)
  12352. output_verbose_link_cmd='echo'
  12353. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12354. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12355. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12356. 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}'
  12357. 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}'
  12358. ;;
  12359. *)
  12360. ld_shlibs_F77=no
  12361. ;;
  12362. esac
  12363. fi
  12364. ;;
  12365. dgux*)
  12366. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12367. hardcode_libdir_flag_spec_F77='-L$libdir'
  12368. hardcode_shlibpath_var_F77=no
  12369. ;;
  12370. freebsd1*)
  12371. ld_shlibs_F77=no
  12372. ;;
  12373. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12374. # support. Future versions do this automatically, but an explicit c++rt0.o
  12375. # does not break anything, and helps significantly (at the cost of a little
  12376. # extra space).
  12377. freebsd2.2*)
  12378. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12379. hardcode_libdir_flag_spec_F77='-R$libdir'
  12380. hardcode_direct_F77=yes
  12381. hardcode_shlibpath_var_F77=no
  12382. ;;
  12383. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12384. freebsd2*)
  12385. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12386. hardcode_direct_F77=yes
  12387. hardcode_minus_L_F77=yes
  12388. hardcode_shlibpath_var_F77=no
  12389. ;;
  12390. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12391. freebsd* | kfreebsd*-gnu | dragonfly*)
  12392. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12393. hardcode_libdir_flag_spec_F77='-R$libdir'
  12394. hardcode_direct_F77=yes
  12395. hardcode_shlibpath_var_F77=no
  12396. ;;
  12397. hpux9*)
  12398. if test "$GCC" = yes; then
  12399. 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'
  12400. else
  12401. 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'
  12402. fi
  12403. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12404. hardcode_libdir_separator_F77=:
  12405. hardcode_direct_F77=yes
  12406. # hardcode_minus_L: Not really in the search PATH,
  12407. # but as the default location of the library.
  12408. hardcode_minus_L_F77=yes
  12409. export_dynamic_flag_spec_F77='${wl}-E'
  12410. ;;
  12411. hpux10* | hpux11*)
  12412. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12413. case "$host_cpu" in
  12414. hppa*64*|ia64*)
  12415. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12416. ;;
  12417. *)
  12418. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12419. ;;
  12420. esac
  12421. else
  12422. case "$host_cpu" in
  12423. hppa*64*|ia64*)
  12424. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12425. ;;
  12426. *)
  12427. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12428. ;;
  12429. esac
  12430. fi
  12431. if test "$with_gnu_ld" = no; then
  12432. case "$host_cpu" in
  12433. hppa*64*)
  12434. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12435. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12436. hardcode_libdir_separator_F77=:
  12437. hardcode_direct_F77=no
  12438. hardcode_shlibpath_var_F77=no
  12439. ;;
  12440. ia64*)
  12441. hardcode_libdir_flag_spec_F77='-L$libdir'
  12442. hardcode_direct_F77=no
  12443. hardcode_shlibpath_var_F77=no
  12444. # hardcode_minus_L: Not really in the search PATH,
  12445. # but as the default location of the library.
  12446. hardcode_minus_L_F77=yes
  12447. ;;
  12448. *)
  12449. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12450. hardcode_libdir_separator_F77=:
  12451. hardcode_direct_F77=yes
  12452. export_dynamic_flag_spec_F77='${wl}-E'
  12453. # hardcode_minus_L: Not really in the search PATH,
  12454. # but as the default location of the library.
  12455. hardcode_minus_L_F77=yes
  12456. ;;
  12457. esac
  12458. fi
  12459. ;;
  12460. irix5* | irix6* | nonstopux*)
  12461. if test "$GCC" = yes; then
  12462. 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'
  12463. else
  12464. 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'
  12465. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12466. fi
  12467. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12468. hardcode_libdir_separator_F77=:
  12469. link_all_deplibs_F77=yes
  12470. ;;
  12471. netbsd*)
  12472. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12473. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12474. else
  12475. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12476. fi
  12477. hardcode_libdir_flag_spec_F77='-R$libdir'
  12478. hardcode_direct_F77=yes
  12479. hardcode_shlibpath_var_F77=no
  12480. ;;
  12481. newsos6)
  12482. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12483. hardcode_direct_F77=yes
  12484. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12485. hardcode_libdir_separator_F77=:
  12486. hardcode_shlibpath_var_F77=no
  12487. ;;
  12488. openbsd*)
  12489. hardcode_direct_F77=yes
  12490. hardcode_shlibpath_var_F77=no
  12491. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12492. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12493. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12494. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12495. export_dynamic_flag_spec_F77='${wl}-E'
  12496. else
  12497. case $host_os in
  12498. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12499. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12500. hardcode_libdir_flag_spec_F77='-R$libdir'
  12501. ;;
  12502. *)
  12503. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12504. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12505. ;;
  12506. esac
  12507. fi
  12508. ;;
  12509. os2*)
  12510. hardcode_libdir_flag_spec_F77='-L$libdir'
  12511. hardcode_minus_L_F77=yes
  12512. allow_undefined_flag_F77=unsupported
  12513. 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'
  12514. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12515. ;;
  12516. osf3*)
  12517. if test "$GCC" = yes; then
  12518. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12519. 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'
  12520. else
  12521. allow_undefined_flag_F77=' -expect_unresolved \*'
  12522. 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'
  12523. fi
  12524. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12525. hardcode_libdir_separator_F77=:
  12526. ;;
  12527. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12528. if test "$GCC" = yes; then
  12529. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12530. 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'
  12531. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12532. else
  12533. allow_undefined_flag_F77=' -expect_unresolved \*'
  12534. 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'
  12535. 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~
  12536. $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'
  12537. # Both c and cxx compiler support -rpath directly
  12538. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12539. fi
  12540. hardcode_libdir_separator_F77=:
  12541. ;;
  12542. sco3.2v5*)
  12543. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12544. hardcode_shlibpath_var_F77=no
  12545. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12546. runpath_var=LD_RUN_PATH
  12547. hardcode_runpath_var=yes
  12548. ;;
  12549. solaris*)
  12550. no_undefined_flag_F77=' -z text'
  12551. if test "$GCC" = yes; then
  12552. wlarc='${wl}'
  12553. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12554. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12555. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12556. else
  12557. wlarc=''
  12558. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12559. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12560. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12561. fi
  12562. hardcode_libdir_flag_spec_F77='-R$libdir'
  12563. hardcode_shlibpath_var_F77=no
  12564. case $host_os in
  12565. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12566. *)
  12567. # The compiler driver will combine linker options so we
  12568. # cannot just pass the convience library names through
  12569. # without $wl, iff we do not link with $LD.
  12570. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12571. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12572. case $wlarc in
  12573. '')
  12574. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12575. *)
  12576. 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' ;;
  12577. esac ;;
  12578. esac
  12579. link_all_deplibs_F77=yes
  12580. ;;
  12581. sunos4*)
  12582. if test "x$host_vendor" = xsequent; then
  12583. # Use $CC to link under sequent, because it throws in some extra .o
  12584. # files that make .init and .fini sections work.
  12585. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12586. else
  12587. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12588. fi
  12589. hardcode_libdir_flag_spec_F77='-L$libdir'
  12590. hardcode_direct_F77=yes
  12591. hardcode_minus_L_F77=yes
  12592. hardcode_shlibpath_var_F77=no
  12593. ;;
  12594. sysv4)
  12595. case $host_vendor in
  12596. sni)
  12597. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12598. hardcode_direct_F77=yes # is this really true???
  12599. ;;
  12600. siemens)
  12601. ## LD is ld it makes a PLAMLIB
  12602. ## CC just makes a GrossModule.
  12603. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12604. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12605. hardcode_direct_F77=no
  12606. ;;
  12607. motorola)
  12608. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12609. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12610. ;;
  12611. esac
  12612. runpath_var='LD_RUN_PATH'
  12613. hardcode_shlibpath_var_F77=no
  12614. ;;
  12615. sysv4.3*)
  12616. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12617. hardcode_shlibpath_var_F77=no
  12618. export_dynamic_flag_spec_F77='-Bexport'
  12619. ;;
  12620. sysv4*MP*)
  12621. if test -d /usr/nec; then
  12622. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12623. hardcode_shlibpath_var_F77=no
  12624. runpath_var=LD_RUN_PATH
  12625. hardcode_runpath_var=yes
  12626. ld_shlibs_F77=yes
  12627. fi
  12628. ;;
  12629. sysv4.2uw2*)
  12630. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12631. hardcode_direct_F77=yes
  12632. hardcode_minus_L_F77=no
  12633. hardcode_shlibpath_var_F77=no
  12634. hardcode_runpath_var=yes
  12635. runpath_var=LD_RUN_PATH
  12636. ;;
  12637. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  12638. no_undefined_flag_F77='${wl}-z ${wl}text'
  12639. if test "$GCC" = yes; then
  12640. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12641. else
  12642. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12643. fi
  12644. runpath_var='LD_RUN_PATH'
  12645. hardcode_shlibpath_var_F77=no
  12646. ;;
  12647. sysv5*)
  12648. no_undefined_flag_F77=' -z text'
  12649. # $CC -shared without GNU ld will not create a library from C++
  12650. # object files and a static libstdc++, better avoid it by now
  12651. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12652. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12653. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12654. hardcode_libdir_flag_spec_F77=
  12655. hardcode_shlibpath_var_F77=no
  12656. runpath_var='LD_RUN_PATH'
  12657. ;;
  12658. uts4*)
  12659. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12660. hardcode_libdir_flag_spec_F77='-L$libdir'
  12661. hardcode_shlibpath_var_F77=no
  12662. ;;
  12663. *)
  12664. ld_shlibs_F77=no
  12665. ;;
  12666. esac
  12667. fi
  12668. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12669. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12670. test "$ld_shlibs_F77" = no && can_build_shared=no
  12671. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12672. if test "$GCC" = yes; then
  12673. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12674. fi
  12675. #
  12676. # Do we need to explicitly link libc?
  12677. #
  12678. case "x$archive_cmds_need_lc_F77" in
  12679. x|xyes)
  12680. # Assume -lc should be added
  12681. archive_cmds_need_lc_F77=yes
  12682. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12683. case $archive_cmds_F77 in
  12684. *'~'*)
  12685. # FIXME: we may have to deal with multi-command sequences.
  12686. ;;
  12687. '$CC '*)
  12688. # Test whether the compiler implicitly links with -lc since on some
  12689. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12690. # to ld, don't add -lc before -lgcc.
  12691. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12692. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12693. $rm conftest*
  12694. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12695. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12696. (eval $ac_compile) 2>&5
  12697. ac_status=$?
  12698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12699. (exit $ac_status); } 2>conftest.err; then
  12700. soname=conftest
  12701. lib=conftest
  12702. libobjs=conftest.$ac_objext
  12703. deplibs=
  12704. wl=$lt_prog_compiler_wl_F77
  12705. compiler_flags=-v
  12706. linker_flags=-v
  12707. verstring=
  12708. output_objdir=.
  12709. libname=conftest
  12710. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12711. allow_undefined_flag_F77=
  12712. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12713. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12714. ac_status=$?
  12715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12716. (exit $ac_status); }
  12717. then
  12718. archive_cmds_need_lc_F77=no
  12719. else
  12720. archive_cmds_need_lc_F77=yes
  12721. fi
  12722. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12723. else
  12724. cat conftest.err 1>&5
  12725. fi
  12726. $rm conftest*
  12727. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12728. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12729. ;;
  12730. esac
  12731. fi
  12732. ;;
  12733. esac
  12734. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12735. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12736. library_names_spec=
  12737. libname_spec='lib$name'
  12738. soname_spec=
  12739. shrext_cmds=".so"
  12740. postinstall_cmds=
  12741. postuninstall_cmds=
  12742. finish_cmds=
  12743. finish_eval=
  12744. shlibpath_var=
  12745. shlibpath_overrides_runpath=unknown
  12746. version_type=none
  12747. dynamic_linker="$host_os ld.so"
  12748. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12749. if test "$GCC" = yes; then
  12750. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12751. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12752. # if the path contains ";" then we assume it to be the separator
  12753. # otherwise default to the standard path separator (i.e. ":") - it is
  12754. # assumed that no part of a normal pathname contains ";" but that should
  12755. # okay in the real world where ";" in dirpaths is itself problematic.
  12756. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12757. else
  12758. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12759. fi
  12760. else
  12761. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12762. fi
  12763. need_lib_prefix=unknown
  12764. hardcode_into_libs=no
  12765. # when you set need_version to no, make sure it does not cause -set_version
  12766. # flags to be left without arguments
  12767. need_version=unknown
  12768. case $host_os in
  12769. aix3*)
  12770. version_type=linux
  12771. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12772. shlibpath_var=LIBPATH
  12773. # AIX 3 has no versioning support, so we append a major version to the name.
  12774. soname_spec='${libname}${release}${shared_ext}$major'
  12775. ;;
  12776. aix4* | aix5*)
  12777. version_type=linux
  12778. need_lib_prefix=no
  12779. need_version=no
  12780. hardcode_into_libs=yes
  12781. if test "$host_cpu" = ia64; then
  12782. # AIX 5 supports IA64
  12783. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12784. shlibpath_var=LD_LIBRARY_PATH
  12785. else
  12786. # With GCC up to 2.95.x, collect2 would create an import file
  12787. # for dependence libraries. The import file would start with
  12788. # the line `#! .'. This would cause the generated library to
  12789. # depend on `.', always an invalid library. This was fixed in
  12790. # development snapshots of GCC prior to 3.0.
  12791. case $host_os in
  12792. aix4 | aix4.[01] | aix4.[01].*)
  12793. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12794. echo ' yes '
  12795. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12796. :
  12797. else
  12798. can_build_shared=no
  12799. fi
  12800. ;;
  12801. esac
  12802. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12803. # soname into executable. Probably we can add versioning support to
  12804. # collect2, so additional links can be useful in future.
  12805. if test "$aix_use_runtimelinking" = yes; then
  12806. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12807. # instead of lib<name>.a to let people know that these are not
  12808. # typical AIX shared libraries.
  12809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12810. else
  12811. # We preserve .a as extension for shared libraries through AIX4.2
  12812. # and later when we are not doing run time linking.
  12813. library_names_spec='${libname}${release}.a $libname.a'
  12814. soname_spec='${libname}${release}${shared_ext}$major'
  12815. fi
  12816. shlibpath_var=LIBPATH
  12817. fi
  12818. ;;
  12819. amigaos*)
  12820. library_names_spec='$libname.ixlibrary $libname.a'
  12821. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12822. 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'
  12823. ;;
  12824. beos*)
  12825. library_names_spec='${libname}${shared_ext}'
  12826. dynamic_linker="$host_os ld.so"
  12827. shlibpath_var=LIBRARY_PATH
  12828. ;;
  12829. bsdi[45]*)
  12830. version_type=linux
  12831. need_version=no
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12833. soname_spec='${libname}${release}${shared_ext}$major'
  12834. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12835. shlibpath_var=LD_LIBRARY_PATH
  12836. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12837. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12838. # the default ld.so.conf also contains /usr/contrib/lib and
  12839. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12840. # libtool to hard-code these into programs
  12841. ;;
  12842. cygwin* | mingw* | pw32*)
  12843. version_type=windows
  12844. shrext_cmds=".dll"
  12845. need_version=no
  12846. need_lib_prefix=no
  12847. case $GCC,$host_os in
  12848. yes,cygwin* | yes,mingw* | yes,pw32*)
  12849. library_names_spec='$libname.dll.a'
  12850. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12851. postinstall_cmds='base_file=`basename \${file}`~
  12852. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12853. dldir=$destdir/`dirname \$dlpath`~
  12854. test -d \$dldir || mkdir -p \$dldir~
  12855. $install_prog $dir/$dlname \$dldir/$dlname'
  12856. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12857. dlpath=$dir/\$dldll~
  12858. $rm \$dlpath'
  12859. shlibpath_overrides_runpath=yes
  12860. case $host_os in
  12861. cygwin*)
  12862. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12863. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12864. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12865. ;;
  12866. mingw*)
  12867. # MinGW DLLs use traditional 'lib' prefix
  12868. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12869. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12870. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12871. # It is most probably a Windows format PATH printed by
  12872. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12873. # path with ; separators, and with drive letters. We can handle the
  12874. # drive letters (cygwin fileutils understands them), so leave them,
  12875. # especially as we might pass files found there to a mingw objdump,
  12876. # which wouldn't understand a cygwinified path. Ahh.
  12877. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12878. else
  12879. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12880. fi
  12881. ;;
  12882. pw32*)
  12883. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12884. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12885. ;;
  12886. esac
  12887. ;;
  12888. *)
  12889. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12890. ;;
  12891. esac
  12892. dynamic_linker='Win32 ld.exe'
  12893. # FIXME: first we should search . and the directory the executable is in
  12894. shlibpath_var=PATH
  12895. ;;
  12896. darwin* | rhapsody*)
  12897. dynamic_linker="$host_os dyld"
  12898. version_type=darwin
  12899. need_lib_prefix=no
  12900. need_version=no
  12901. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12902. soname_spec='${libname}${release}${major}$shared_ext'
  12903. shlibpath_overrides_runpath=yes
  12904. shlibpath_var=DYLD_LIBRARY_PATH
  12905. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  12906. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  12907. if test "$GCC" = yes; then
  12908. 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"`
  12909. else
  12910. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  12911. fi
  12912. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12913. ;;
  12914. dgux*)
  12915. version_type=linux
  12916. need_lib_prefix=no
  12917. need_version=no
  12918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12919. soname_spec='${libname}${release}${shared_ext}$major'
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. ;;
  12922. freebsd1*)
  12923. dynamic_linker=no
  12924. ;;
  12925. kfreebsd*-gnu)
  12926. version_type=linux
  12927. need_lib_prefix=no
  12928. need_version=no
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. shlibpath_var=LD_LIBRARY_PATH
  12932. shlibpath_overrides_runpath=no
  12933. hardcode_into_libs=yes
  12934. dynamic_linker='GNU ld.so'
  12935. ;;
  12936. freebsd* | dragonfly*)
  12937. # DragonFly does not have aout. When/if they implement a new
  12938. # versioning mechanism, adjust this.
  12939. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  12940. version_type=freebsd-$objformat
  12941. case $version_type in
  12942. freebsd-elf*)
  12943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12944. need_version=no
  12945. need_lib_prefix=no
  12946. ;;
  12947. freebsd-*)
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12949. need_version=yes
  12950. ;;
  12951. esac
  12952. shlibpath_var=LD_LIBRARY_PATH
  12953. case $host_os in
  12954. freebsd2*)
  12955. shlibpath_overrides_runpath=yes
  12956. ;;
  12957. freebsd3.[01]* | freebsdelf3.[01]*)
  12958. shlibpath_overrides_runpath=yes
  12959. hardcode_into_libs=yes
  12960. ;;
  12961. *) # from 3.2 on
  12962. shlibpath_overrides_runpath=no
  12963. hardcode_into_libs=yes
  12964. ;;
  12965. esac
  12966. ;;
  12967. gnu*)
  12968. version_type=linux
  12969. need_lib_prefix=no
  12970. need_version=no
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. shlibpath_var=LD_LIBRARY_PATH
  12974. hardcode_into_libs=yes
  12975. ;;
  12976. hpux9* | hpux10* | hpux11*)
  12977. # Give a soname corresponding to the major version so that dld.sl refuses to
  12978. # link against other versions.
  12979. version_type=sunos
  12980. need_lib_prefix=no
  12981. need_version=no
  12982. case "$host_cpu" in
  12983. ia64*)
  12984. shrext_cmds='.so'
  12985. hardcode_into_libs=yes
  12986. dynamic_linker="$host_os dld.so"
  12987. shlibpath_var=LD_LIBRARY_PATH
  12988. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. if test "X$HPUX_IA64_MODE" = X32; then
  12992. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12993. else
  12994. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12995. fi
  12996. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12997. ;;
  12998. hppa*64*)
  12999. shrext_cmds='.sl'
  13000. hardcode_into_libs=yes
  13001. dynamic_linker="$host_os dld.sl"
  13002. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13003. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13005. soname_spec='${libname}${release}${shared_ext}$major'
  13006. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13007. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13008. ;;
  13009. *)
  13010. shrext_cmds='.sl'
  13011. dynamic_linker="$host_os dld.sl"
  13012. shlibpath_var=SHLIB_PATH
  13013. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13015. soname_spec='${libname}${release}${shared_ext}$major'
  13016. ;;
  13017. esac
  13018. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13019. postinstall_cmds='chmod 555 $lib'
  13020. ;;
  13021. irix5* | irix6* | nonstopux*)
  13022. case $host_os in
  13023. nonstopux*) version_type=nonstopux ;;
  13024. *)
  13025. if test "$lt_cv_prog_gnu_ld" = yes; then
  13026. version_type=linux
  13027. else
  13028. version_type=irix
  13029. fi ;;
  13030. esac
  13031. need_lib_prefix=no
  13032. need_version=no
  13033. soname_spec='${libname}${release}${shared_ext}$major'
  13034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13035. case $host_os in
  13036. irix5* | nonstopux*)
  13037. libsuff= shlibsuff=
  13038. ;;
  13039. *)
  13040. case $LD in # libtool.m4 will add one of these switches to LD
  13041. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13042. libsuff= shlibsuff= libmagic=32-bit;;
  13043. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13044. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13045. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13046. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13047. *) libsuff= shlibsuff= libmagic=never-match;;
  13048. esac
  13049. ;;
  13050. esac
  13051. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13052. shlibpath_overrides_runpath=no
  13053. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13054. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13055. hardcode_into_libs=yes
  13056. ;;
  13057. # No shared lib support for Linux oldld, aout, or coff.
  13058. linux*oldld* | linux*aout* | linux*coff*)
  13059. dynamic_linker=no
  13060. ;;
  13061. # This must be Linux ELF.
  13062. linux*)
  13063. version_type=linux
  13064. need_lib_prefix=no
  13065. need_version=no
  13066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13067. soname_spec='${libname}${release}${shared_ext}$major'
  13068. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. shlibpath_overrides_runpath=no
  13071. # This implies no fast_install, which is unacceptable.
  13072. # Some rework will be needed to allow for fast_install
  13073. # before this can be enabled.
  13074. hardcode_into_libs=yes
  13075. # find out which ABI we are using
  13076. libsuff=
  13077. case "$host_cpu" in
  13078. x86_64*|s390x*|powerpc64*)
  13079. echo '#line 14470 "configure"' > conftest.$ac_ext
  13080. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13081. (eval $ac_compile) 2>&5
  13082. ac_status=$?
  13083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13084. (exit $ac_status); }; then
  13085. case `/usr/bin/file conftest.$ac_objext` in
  13086. *64-bit*)
  13087. libsuff=64
  13088. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13089. ;;
  13090. esac
  13091. fi
  13092. rm -rf conftest*
  13093. ;;
  13094. esac
  13095. # Append ld.so.conf contents to the search path
  13096. if test -f /etc/ld.so.conf; then
  13097. 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' ' '`
  13098. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13099. fi
  13100. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13101. # powerpc, because MkLinux only supported shared libraries with the
  13102. # GNU dynamic linker. Since this was broken with cross compilers,
  13103. # most powerpc-linux boxes support dynamic linking these days and
  13104. # people can always --disable-shared, the test was removed, and we
  13105. # assume the GNU/Linux dynamic linker is in use.
  13106. dynamic_linker='GNU/Linux ld.so'
  13107. ;;
  13108. knetbsd*-gnu)
  13109. version_type=linux
  13110. need_lib_prefix=no
  13111. need_version=no
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13113. soname_spec='${libname}${release}${shared_ext}$major'
  13114. shlibpath_var=LD_LIBRARY_PATH
  13115. shlibpath_overrides_runpath=no
  13116. hardcode_into_libs=yes
  13117. dynamic_linker='GNU ld.so'
  13118. ;;
  13119. netbsd*)
  13120. version_type=sunos
  13121. need_lib_prefix=no
  13122. need_version=no
  13123. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13125. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13126. dynamic_linker='NetBSD (a.out) ld.so'
  13127. else
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13129. soname_spec='${libname}${release}${shared_ext}$major'
  13130. dynamic_linker='NetBSD ld.elf_so'
  13131. fi
  13132. shlibpath_var=LD_LIBRARY_PATH
  13133. shlibpath_overrides_runpath=yes
  13134. hardcode_into_libs=yes
  13135. ;;
  13136. newsos6)
  13137. version_type=linux
  13138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. shlibpath_overrides_runpath=yes
  13141. ;;
  13142. nto-qnx*)
  13143. version_type=linux
  13144. need_lib_prefix=no
  13145. need_version=no
  13146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13147. soname_spec='${libname}${release}${shared_ext}$major'
  13148. shlibpath_var=LD_LIBRARY_PATH
  13149. shlibpath_overrides_runpath=yes
  13150. ;;
  13151. openbsd*)
  13152. version_type=sunos
  13153. need_lib_prefix=no
  13154. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13155. case $host_os in
  13156. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13157. *) need_version=no ;;
  13158. esac
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13163. case $host_os in
  13164. openbsd2.[89] | openbsd2.[89].*)
  13165. shlibpath_overrides_runpath=no
  13166. ;;
  13167. *)
  13168. shlibpath_overrides_runpath=yes
  13169. ;;
  13170. esac
  13171. else
  13172. shlibpath_overrides_runpath=yes
  13173. fi
  13174. ;;
  13175. os2*)
  13176. libname_spec='$name'
  13177. shrext_cmds=".dll"
  13178. need_lib_prefix=no
  13179. library_names_spec='$libname${shared_ext} $libname.a'
  13180. dynamic_linker='OS/2 ld.exe'
  13181. shlibpath_var=LIBPATH
  13182. ;;
  13183. osf3* | osf4* | osf5*)
  13184. version_type=osf
  13185. need_lib_prefix=no
  13186. need_version=no
  13187. soname_spec='${libname}${release}${shared_ext}$major'
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13191. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13192. ;;
  13193. sco3.2v5*)
  13194. version_type=osf
  13195. soname_spec='${libname}${release}${shared_ext}$major'
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. ;;
  13199. solaris*)
  13200. version_type=linux
  13201. need_lib_prefix=no
  13202. need_version=no
  13203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13204. soname_spec='${libname}${release}${shared_ext}$major'
  13205. shlibpath_var=LD_LIBRARY_PATH
  13206. shlibpath_overrides_runpath=yes
  13207. hardcode_into_libs=yes
  13208. # ldd complains unless libraries are executable
  13209. postinstall_cmds='chmod +x $lib'
  13210. ;;
  13211. sunos4*)
  13212. version_type=sunos
  13213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13214. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13215. shlibpath_var=LD_LIBRARY_PATH
  13216. shlibpath_overrides_runpath=yes
  13217. if test "$with_gnu_ld" = yes; then
  13218. need_lib_prefix=no
  13219. fi
  13220. need_version=yes
  13221. ;;
  13222. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13223. version_type=linux
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13225. soname_spec='${libname}${release}${shared_ext}$major'
  13226. shlibpath_var=LD_LIBRARY_PATH
  13227. case $host_vendor in
  13228. sni)
  13229. shlibpath_overrides_runpath=no
  13230. need_lib_prefix=no
  13231. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13232. runpath_var=LD_RUN_PATH
  13233. ;;
  13234. siemens)
  13235. need_lib_prefix=no
  13236. ;;
  13237. motorola)
  13238. need_lib_prefix=no
  13239. need_version=no
  13240. shlibpath_overrides_runpath=no
  13241. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13242. ;;
  13243. esac
  13244. ;;
  13245. sysv4*MP*)
  13246. if test -d /usr/nec ;then
  13247. version_type=linux
  13248. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13249. soname_spec='$libname${shared_ext}.$major'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. fi
  13252. ;;
  13253. uts4*)
  13254. version_type=linux
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13256. soname_spec='${libname}${release}${shared_ext}$major'
  13257. shlibpath_var=LD_LIBRARY_PATH
  13258. ;;
  13259. *)
  13260. dynamic_linker=no
  13261. ;;
  13262. esac
  13263. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13264. echo "${ECHO_T}$dynamic_linker" >&6
  13265. test "$dynamic_linker" = no && can_build_shared=no
  13266. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13267. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13268. hardcode_action_F77=
  13269. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13270. test -n "$runpath_var_F77" || \
  13271. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13272. # We can hardcode non-existant directories.
  13273. if test "$hardcode_direct_F77" != no &&
  13274. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13275. # have to relink, otherwise we might link with an installed library
  13276. # when we should be linking with a yet-to-be-installed one
  13277. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13278. test "$hardcode_minus_L_F77" != no; then
  13279. # Linking always hardcodes the temporary library directory.
  13280. hardcode_action_F77=relink
  13281. else
  13282. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13283. hardcode_action_F77=immediate
  13284. fi
  13285. else
  13286. # We cannot hardcode anything, or else we can only hardcode existing
  13287. # directories.
  13288. hardcode_action_F77=unsupported
  13289. fi
  13290. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13291. echo "${ECHO_T}$hardcode_action_F77" >&6
  13292. if test "$hardcode_action_F77" = relink; then
  13293. # Fast installation is not supported
  13294. enable_fast_install=no
  13295. elif test "$shlibpath_overrides_runpath" = yes ||
  13296. test "$enable_shared" = no; then
  13297. # Fast installation is not necessary
  13298. enable_fast_install=needless
  13299. fi
  13300. striplib=
  13301. old_striplib=
  13302. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13303. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13304. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13305. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13306. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13307. echo "$as_me:$LINENO: result: yes" >&5
  13308. echo "${ECHO_T}yes" >&6
  13309. else
  13310. # FIXME - insert some real tests, host_os isn't really good enough
  13311. case $host_os in
  13312. darwin*)
  13313. if test -n "$STRIP" ; then
  13314. striplib="$STRIP -x"
  13315. echo "$as_me:$LINENO: result: yes" >&5
  13316. echo "${ECHO_T}yes" >&6
  13317. else
  13318. echo "$as_me:$LINENO: result: no" >&5
  13319. echo "${ECHO_T}no" >&6
  13320. fi
  13321. ;;
  13322. *)
  13323. echo "$as_me:$LINENO: result: no" >&5
  13324. echo "${ECHO_T}no" >&6
  13325. ;;
  13326. esac
  13327. fi
  13328. # The else clause should only fire when bootstrapping the
  13329. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13330. # with your package, and you will get complaints that there are
  13331. # no rules to generate ltmain.sh.
  13332. if test -f "$ltmain"; then
  13333. # See if we are running on zsh, and set the options which allow our commands through
  13334. # without removal of \ escapes.
  13335. if test -n "${ZSH_VERSION+set}" ; then
  13336. setopt NO_GLOB_SUBST
  13337. fi
  13338. # Now quote all the things that may contain metacharacters while being
  13339. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13340. # variables and quote the copies for generation of the libtool script.
  13341. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  13342. SED SHELL STRIP \
  13343. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13344. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13345. deplibs_check_method reload_flag reload_cmds need_locks \
  13346. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13347. lt_cv_sys_global_symbol_to_c_name_address \
  13348. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13349. old_postinstall_cmds old_postuninstall_cmds \
  13350. compiler_F77 \
  13351. CC_F77 \
  13352. LD_F77 \
  13353. lt_prog_compiler_wl_F77 \
  13354. lt_prog_compiler_pic_F77 \
  13355. lt_prog_compiler_static_F77 \
  13356. lt_prog_compiler_no_builtin_flag_F77 \
  13357. export_dynamic_flag_spec_F77 \
  13358. thread_safe_flag_spec_F77 \
  13359. whole_archive_flag_spec_F77 \
  13360. enable_shared_with_static_runtimes_F77 \
  13361. old_archive_cmds_F77 \
  13362. old_archive_from_new_cmds_F77 \
  13363. predep_objects_F77 \
  13364. postdep_objects_F77 \
  13365. predeps_F77 \
  13366. postdeps_F77 \
  13367. compiler_lib_search_path_F77 \
  13368. archive_cmds_F77 \
  13369. archive_expsym_cmds_F77 \
  13370. postinstall_cmds_F77 \
  13371. postuninstall_cmds_F77 \
  13372. old_archive_from_expsyms_cmds_F77 \
  13373. allow_undefined_flag_F77 \
  13374. no_undefined_flag_F77 \
  13375. export_symbols_cmds_F77 \
  13376. hardcode_libdir_flag_spec_F77 \
  13377. hardcode_libdir_flag_spec_ld_F77 \
  13378. hardcode_libdir_separator_F77 \
  13379. hardcode_automatic_F77 \
  13380. module_cmds_F77 \
  13381. module_expsym_cmds_F77 \
  13382. lt_cv_prog_compiler_c_o_F77 \
  13383. exclude_expsyms_F77 \
  13384. include_expsyms_F77; do
  13385. case $var in
  13386. old_archive_cmds_F77 | \
  13387. old_archive_from_new_cmds_F77 | \
  13388. archive_cmds_F77 | \
  13389. archive_expsym_cmds_F77 | \
  13390. module_cmds_F77 | \
  13391. module_expsym_cmds_F77 | \
  13392. old_archive_from_expsyms_cmds_F77 | \
  13393. export_symbols_cmds_F77 | \
  13394. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13395. postinstall_cmds | postuninstall_cmds | \
  13396. old_postinstall_cmds | old_postuninstall_cmds | \
  13397. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13398. # Double-quote double-evaled strings.
  13399. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13400. ;;
  13401. *)
  13402. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13403. ;;
  13404. esac
  13405. done
  13406. case $lt_echo in
  13407. *'\$0 --fallback-echo"')
  13408. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13409. ;;
  13410. esac
  13411. cfgfile="$ofile"
  13412. cat <<__EOF__ >> "$cfgfile"
  13413. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13414. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13415. # Shell to use when invoking shell scripts.
  13416. SHELL=$lt_SHELL
  13417. # Whether or not to build shared libraries.
  13418. build_libtool_libs=$enable_shared
  13419. # Whether or not to build static libraries.
  13420. build_old_libs=$enable_static
  13421. # Whether or not to add -lc for building shared libraries.
  13422. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13423. # Whether or not to disallow shared libs when runtime libs are static
  13424. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13425. # Whether or not to optimize for fast installation.
  13426. fast_install=$enable_fast_install
  13427. # The host system.
  13428. host_alias=$host_alias
  13429. host=$host
  13430. host_os=$host_os
  13431. # The build system.
  13432. build_alias=$build_alias
  13433. build=$build
  13434. build_os=$build_os
  13435. # An echo program that does not interpret backslashes.
  13436. echo=$lt_echo
  13437. # The archiver.
  13438. AR=$lt_AR
  13439. AR_FLAGS=$lt_AR_FLAGS
  13440. # A C compiler.
  13441. LTCC=$lt_LTCC
  13442. # A language-specific compiler.
  13443. CC=$lt_compiler_F77
  13444. # Is the compiler the GNU C compiler?
  13445. with_gcc=$GCC_F77
  13446. # An ERE matcher.
  13447. EGREP=$lt_EGREP
  13448. # The linker used to build libraries.
  13449. LD=$lt_LD_F77
  13450. # Whether we need hard or soft links.
  13451. LN_S=$lt_LN_S
  13452. # A BSD-compatible nm program.
  13453. NM=$lt_NM
  13454. # A symbol stripping program
  13455. STRIP=$lt_STRIP
  13456. # Used to examine libraries when file_magic_cmd begins "file"
  13457. MAGIC_CMD=$MAGIC_CMD
  13458. # Used on cygwin: DLL creation program.
  13459. DLLTOOL="$DLLTOOL"
  13460. # Used on cygwin: object dumper.
  13461. OBJDUMP="$OBJDUMP"
  13462. # Used on cygwin: assembler.
  13463. AS="$AS"
  13464. # The name of the directory that contains temporary libtool files.
  13465. objdir=$objdir
  13466. # How to create reloadable object files.
  13467. reload_flag=$lt_reload_flag
  13468. reload_cmds=$lt_reload_cmds
  13469. # How to pass a linker flag through the compiler.
  13470. wl=$lt_lt_prog_compiler_wl_F77
  13471. # Object file suffix (normally "o").
  13472. objext="$ac_objext"
  13473. # Old archive suffix (normally "a").
  13474. libext="$libext"
  13475. # Shared library suffix (normally ".so").
  13476. shrext_cmds='$shrext_cmds'
  13477. # Executable file suffix (normally "").
  13478. exeext="$exeext"
  13479. # Additional compiler flags for building library objects.
  13480. pic_flag=$lt_lt_prog_compiler_pic_F77
  13481. pic_mode=$pic_mode
  13482. # What is the maximum length of a command?
  13483. max_cmd_len=$lt_cv_sys_max_cmd_len
  13484. # Does compiler simultaneously support -c and -o options?
  13485. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13486. # Must we lock files when doing compilation?
  13487. need_locks=$lt_need_locks
  13488. # Do we need the lib prefix for modules?
  13489. need_lib_prefix=$need_lib_prefix
  13490. # Do we need a version for libraries?
  13491. need_version=$need_version
  13492. # Whether dlopen is supported.
  13493. dlopen_support=$enable_dlopen
  13494. # Whether dlopen of programs is supported.
  13495. dlopen_self=$enable_dlopen_self
  13496. # Whether dlopen of statically linked programs is supported.
  13497. dlopen_self_static=$enable_dlopen_self_static
  13498. # Compiler flag to prevent dynamic linking.
  13499. link_static_flag=$lt_lt_prog_compiler_static_F77
  13500. # Compiler flag to turn off builtin functions.
  13501. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13502. # Compiler flag to allow reflexive dlopens.
  13503. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13504. # Compiler flag to generate shared objects directly from archives.
  13505. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13506. # Compiler flag to generate thread-safe objects.
  13507. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13508. # Library versioning type.
  13509. version_type=$version_type
  13510. # Format of library name prefix.
  13511. libname_spec=$lt_libname_spec
  13512. # List of archive names. First name is the real one, the rest are links.
  13513. # The last name is the one that the linker finds with -lNAME.
  13514. library_names_spec=$lt_library_names_spec
  13515. # The coded name of the library, if different from the real name.
  13516. soname_spec=$lt_soname_spec
  13517. # Commands used to build and install an old-style archive.
  13518. RANLIB=$lt_RANLIB
  13519. old_archive_cmds=$lt_old_archive_cmds_F77
  13520. old_postinstall_cmds=$lt_old_postinstall_cmds
  13521. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13522. # Create an old-style archive from a shared archive.
  13523. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13524. # Create a temporary old-style archive to link instead of a shared archive.
  13525. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13526. # Commands used to build and install a shared archive.
  13527. archive_cmds=$lt_archive_cmds_F77
  13528. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13529. postinstall_cmds=$lt_postinstall_cmds
  13530. postuninstall_cmds=$lt_postuninstall_cmds
  13531. # Commands used to build a loadable module (assumed same as above if empty)
  13532. module_cmds=$lt_module_cmds_F77
  13533. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13534. # Commands to strip libraries.
  13535. old_striplib=$lt_old_striplib
  13536. striplib=$lt_striplib
  13537. # Dependencies to place before the objects being linked to create a
  13538. # shared library.
  13539. predep_objects=$lt_predep_objects_F77
  13540. # Dependencies to place after the objects being linked to create a
  13541. # shared library.
  13542. postdep_objects=$lt_postdep_objects_F77
  13543. # Dependencies to place before the objects being linked to create a
  13544. # shared library.
  13545. predeps=$lt_predeps_F77
  13546. # Dependencies to place after the objects being linked to create a
  13547. # shared library.
  13548. postdeps=$lt_postdeps_F77
  13549. # The library search path used internally by the compiler when linking
  13550. # a shared library.
  13551. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13552. # Method to check whether dependent libraries are shared objects.
  13553. deplibs_check_method=$lt_deplibs_check_method
  13554. # Command to use when deplibs_check_method == file_magic.
  13555. file_magic_cmd=$lt_file_magic_cmd
  13556. # Flag that allows shared libraries with undefined symbols to be built.
  13557. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13558. # Flag that forces no undefined symbols.
  13559. no_undefined_flag=$lt_no_undefined_flag_F77
  13560. # Commands used to finish a libtool library installation in a directory.
  13561. finish_cmds=$lt_finish_cmds
  13562. # Same as above, but a single script fragment to be evaled but not shown.
  13563. finish_eval=$lt_finish_eval
  13564. # Take the output of nm and produce a listing of raw symbols and C names.
  13565. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13566. # Transform the output of nm in a proper C declaration
  13567. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13568. # Transform the output of nm in a C name address pair
  13569. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13570. # This is the shared library runtime path variable.
  13571. runpath_var=$runpath_var
  13572. # This is the shared library path variable.
  13573. shlibpath_var=$shlibpath_var
  13574. # Is shlibpath searched before the hard-coded library search path?
  13575. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13576. # How to hardcode a shared library path into an executable.
  13577. hardcode_action=$hardcode_action_F77
  13578. # Whether we should hardcode library paths into libraries.
  13579. hardcode_into_libs=$hardcode_into_libs
  13580. # Flag to hardcode \$libdir into a binary during linking.
  13581. # This must work even if \$libdir does not exist.
  13582. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13583. # If ld is used when linking, flag to hardcode \$libdir into
  13584. # a binary during linking. This must work even if \$libdir does
  13585. # not exist.
  13586. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13587. # Whether we need a single -rpath flag with a separated argument.
  13588. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13589. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13590. # resulting binary.
  13591. hardcode_direct=$hardcode_direct_F77
  13592. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13593. # resulting binary.
  13594. hardcode_minus_L=$hardcode_minus_L_F77
  13595. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13596. # the resulting binary.
  13597. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13598. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13599. # and all subsequent libraries and executables linked against it.
  13600. hardcode_automatic=$hardcode_automatic_F77
  13601. # Variables whose values should be saved in libtool wrapper scripts and
  13602. # restored at relink time.
  13603. variables_saved_for_relink="$variables_saved_for_relink"
  13604. # Whether libtool must link a program against all its dependency libraries.
  13605. link_all_deplibs=$link_all_deplibs_F77
  13606. # Compile-time system search path for libraries
  13607. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13608. # Run-time system search path for libraries
  13609. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13610. # Fix the shell variable \$srcfile for the compiler.
  13611. fix_srcfile_path="$fix_srcfile_path_F77"
  13612. # Set to yes if exported symbols are required.
  13613. always_export_symbols=$always_export_symbols_F77
  13614. # The commands to list exported symbols.
  13615. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13616. # The commands to extract the exported symbol list from a shared archive.
  13617. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13618. # Symbols that should not be listed in the preloaded symbols.
  13619. exclude_expsyms=$lt_exclude_expsyms_F77
  13620. # Symbols that must always be exported.
  13621. include_expsyms=$lt_include_expsyms_F77
  13622. # ### END LIBTOOL TAG CONFIG: $tagname
  13623. __EOF__
  13624. else
  13625. # If there is no Makefile yet, we rely on a make rule to execute
  13626. # `config.status --recheck' to rerun these tests and create the
  13627. # libtool script then.
  13628. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13629. if test -f "$ltmain_in"; then
  13630. test -f Makefile && make "$ltmain"
  13631. fi
  13632. fi
  13633. ac_ext=c
  13634. ac_cpp='$CPP $CPPFLAGS'
  13635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13638. CC="$lt_save_CC"
  13639. else
  13640. tagname=""
  13641. fi
  13642. ;;
  13643. GCJ)
  13644. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13645. # Source file extension for Java test sources.
  13646. ac_ext=java
  13647. # Object file extension for compiled Java test sources.
  13648. objext=o
  13649. objext_GCJ=$objext
  13650. # Code to be used in simple compile tests
  13651. lt_simple_compile_test_code="class foo {}\n"
  13652. # Code to be used in simple link tests
  13653. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13654. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13655. # If no C compiler was specified, use CC.
  13656. LTCC=${LTCC-"$CC"}
  13657. # Allow CC to be a program name with arguments.
  13658. compiler=$CC
  13659. # save warnings/boilerplate of simple test code
  13660. ac_outfile=conftest.$ac_objext
  13661. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13662. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  13663. _lt_compiler_boilerplate=`cat conftest.err`
  13664. $rm conftest*
  13665. ac_outfile=conftest.$ac_objext
  13666. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13667. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  13668. _lt_linker_boilerplate=`cat conftest.err`
  13669. $rm conftest*
  13670. # Allow CC to be a program name with arguments.
  13671. lt_save_CC="$CC"
  13672. CC=${GCJ-"gcj"}
  13673. compiler=$CC
  13674. compiler_GCJ=$CC
  13675. for cc_temp in $compiler""; do
  13676. case $cc_temp in
  13677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13679. \-*) ;;
  13680. *) break;;
  13681. esac
  13682. done
  13683. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13684. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13685. archive_cmds_need_lc_GCJ=no
  13686. old_archive_cmds_GCJ=$old_archive_cmds
  13687. ## CAVEAT EMPTOR:
  13688. ## There is no encapsulation within the following macros, do not change
  13689. ## the running order or otherwise move them around unless you know exactly
  13690. ## what you are doing...
  13691. lt_prog_compiler_no_builtin_flag_GCJ=
  13692. if test "$GCC" = yes; then
  13693. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13694. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13695. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13696. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13697. echo $ECHO_N "(cached) $ECHO_C" >&6
  13698. else
  13699. lt_cv_prog_compiler_rtti_exceptions=no
  13700. ac_outfile=conftest.$ac_objext
  13701. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13702. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13703. # Insert the option either (1) after the last *FLAGS variable, or
  13704. # (2) before a word containing "conftest.", or (3) at the end.
  13705. # Note that $ac_compile itself does not contain backslashes and begins
  13706. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13707. # The option is referenced via a variable to avoid confusing sed.
  13708. lt_compile=`echo "$ac_compile" | $SED \
  13709. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13710. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13711. -e 's:$: $lt_compiler_flag:'`
  13712. (eval echo "\"\$as_me:15251: $lt_compile\"" >&5)
  13713. (eval "$lt_compile" 2>conftest.err)
  13714. ac_status=$?
  13715. cat conftest.err >&5
  13716. echo "$as_me:15255: \$? = $ac_status" >&5
  13717. if (exit $ac_status) && test -s "$ac_outfile"; then
  13718. # The compiler can only warn and ignore the option if not recognized
  13719. # So say no if there are warnings other than the usual output.
  13720. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13721. $SED '/^$/d' conftest.err >conftest.er2
  13722. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13723. lt_cv_prog_compiler_rtti_exceptions=yes
  13724. fi
  13725. fi
  13726. $rm conftest*
  13727. fi
  13728. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13729. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13730. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13731. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13732. else
  13733. :
  13734. fi
  13735. fi
  13736. lt_prog_compiler_wl_GCJ=
  13737. lt_prog_compiler_pic_GCJ=
  13738. lt_prog_compiler_static_GCJ=
  13739. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13740. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13741. if test "$GCC" = yes; then
  13742. lt_prog_compiler_wl_GCJ='-Wl,'
  13743. lt_prog_compiler_static_GCJ='-static'
  13744. case $host_os in
  13745. aix*)
  13746. # All AIX code is PIC.
  13747. if test "$host_cpu" = ia64; then
  13748. # AIX 5 now supports IA64 processor
  13749. lt_prog_compiler_static_GCJ='-Bstatic'
  13750. fi
  13751. ;;
  13752. amigaos*)
  13753. # FIXME: we need at least 68020 code to build shared libraries, but
  13754. # adding the `-m68020' flag to GCC prevents building anything better,
  13755. # like `-m68040'.
  13756. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13757. ;;
  13758. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13759. # PIC is the default for these OSes.
  13760. ;;
  13761. mingw* | pw32* | os2*)
  13762. # This hack is so that the source file can tell whether it is being
  13763. # built for inclusion in a dll (and should export symbols for example).
  13764. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13765. ;;
  13766. darwin* | rhapsody*)
  13767. # PIC is the default on this platform
  13768. # Common symbols not allowed in MH_DYLIB files
  13769. lt_prog_compiler_pic_GCJ='-fno-common'
  13770. ;;
  13771. msdosdjgpp*)
  13772. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13773. # on systems that don't support them.
  13774. lt_prog_compiler_can_build_shared_GCJ=no
  13775. enable_shared=no
  13776. ;;
  13777. sysv4*MP*)
  13778. if test -d /usr/nec; then
  13779. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13780. fi
  13781. ;;
  13782. hpux*)
  13783. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13784. # not for PA HP-UX.
  13785. case "$host_cpu" in
  13786. hppa*64*|ia64*)
  13787. # +Z the default
  13788. ;;
  13789. *)
  13790. lt_prog_compiler_pic_GCJ='-fPIC'
  13791. ;;
  13792. esac
  13793. ;;
  13794. *)
  13795. lt_prog_compiler_pic_GCJ='-fPIC'
  13796. ;;
  13797. esac
  13798. else
  13799. # PORTME Check for flag to pass linker flags through the system compiler.
  13800. case $host_os in
  13801. aix*)
  13802. lt_prog_compiler_wl_GCJ='-Wl,'
  13803. if test "$host_cpu" = ia64; then
  13804. # AIX 5 now supports IA64 processor
  13805. lt_prog_compiler_static_GCJ='-Bstatic'
  13806. else
  13807. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13808. fi
  13809. ;;
  13810. darwin*)
  13811. # PIC is the default on this platform
  13812. # Common symbols not allowed in MH_DYLIB files
  13813. case $cc_basename in
  13814. xlc*)
  13815. lt_prog_compiler_pic_GCJ='-qnocommon'
  13816. lt_prog_compiler_wl_GCJ='-Wl,'
  13817. ;;
  13818. esac
  13819. ;;
  13820. mingw* | pw32* | os2*)
  13821. # This hack is so that the source file can tell whether it is being
  13822. # built for inclusion in a dll (and should export symbols for example).
  13823. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13824. ;;
  13825. hpux9* | hpux10* | hpux11*)
  13826. lt_prog_compiler_wl_GCJ='-Wl,'
  13827. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13828. # not for PA HP-UX.
  13829. case "$host_cpu" in
  13830. hppa*64*|ia64*)
  13831. # +Z the default
  13832. ;;
  13833. *)
  13834. lt_prog_compiler_pic_GCJ='+Z'
  13835. ;;
  13836. esac
  13837. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13838. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13839. ;;
  13840. irix5* | irix6* | nonstopux*)
  13841. lt_prog_compiler_wl_GCJ='-Wl,'
  13842. # PIC (with -KPIC) is the default.
  13843. lt_prog_compiler_static_GCJ='-non_shared'
  13844. ;;
  13845. newsos6)
  13846. lt_prog_compiler_pic_GCJ='-KPIC'
  13847. lt_prog_compiler_static_GCJ='-Bstatic'
  13848. ;;
  13849. linux*)
  13850. case $cc_basename in
  13851. icc* | ecc*)
  13852. lt_prog_compiler_wl_GCJ='-Wl,'
  13853. lt_prog_compiler_pic_GCJ='-KPIC'
  13854. lt_prog_compiler_static_GCJ='-static'
  13855. ;;
  13856. pgcc* | pgf77* | pgf90*)
  13857. # Portland Group compilers (*not* the Pentium gcc compiler,
  13858. # which looks to be a dead project)
  13859. lt_prog_compiler_wl_GCJ='-Wl,'
  13860. lt_prog_compiler_pic_GCJ='-fpic'
  13861. lt_prog_compiler_static_GCJ='-static'
  13862. ;;
  13863. ccc*)
  13864. lt_prog_compiler_wl_GCJ='-Wl,'
  13865. # All Alpha code is PIC.
  13866. lt_prog_compiler_static_GCJ='-non_shared'
  13867. ;;
  13868. esac
  13869. ;;
  13870. osf3* | osf4* | osf5*)
  13871. lt_prog_compiler_wl_GCJ='-Wl,'
  13872. # All OSF/1 code is PIC.
  13873. lt_prog_compiler_static_GCJ='-non_shared'
  13874. ;;
  13875. sco3.2v5*)
  13876. lt_prog_compiler_pic_GCJ='-Kpic'
  13877. lt_prog_compiler_static_GCJ='-dn'
  13878. ;;
  13879. solaris*)
  13880. lt_prog_compiler_pic_GCJ='-KPIC'
  13881. lt_prog_compiler_static_GCJ='-Bstatic'
  13882. case $cc_basename in
  13883. f77* | f90* | f95*)
  13884. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13885. *)
  13886. lt_prog_compiler_wl_GCJ='-Wl,';;
  13887. esac
  13888. ;;
  13889. sunos4*)
  13890. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13891. lt_prog_compiler_pic_GCJ='-PIC'
  13892. lt_prog_compiler_static_GCJ='-Bstatic'
  13893. ;;
  13894. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13895. lt_prog_compiler_wl_GCJ='-Wl,'
  13896. lt_prog_compiler_pic_GCJ='-KPIC'
  13897. lt_prog_compiler_static_GCJ='-Bstatic'
  13898. ;;
  13899. sysv4*MP*)
  13900. if test -d /usr/nec ;then
  13901. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  13902. lt_prog_compiler_static_GCJ='-Bstatic'
  13903. fi
  13904. ;;
  13905. unicos*)
  13906. lt_prog_compiler_wl_GCJ='-Wl,'
  13907. lt_prog_compiler_can_build_shared_GCJ=no
  13908. ;;
  13909. uts4*)
  13910. lt_prog_compiler_pic_GCJ='-pic'
  13911. lt_prog_compiler_static_GCJ='-Bstatic'
  13912. ;;
  13913. *)
  13914. lt_prog_compiler_can_build_shared_GCJ=no
  13915. ;;
  13916. esac
  13917. fi
  13918. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  13919. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  13920. #
  13921. # Check to make sure the PIC flag actually works.
  13922. #
  13923. if test -n "$lt_prog_compiler_pic_GCJ"; then
  13924. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  13925. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  13926. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  13927. echo $ECHO_N "(cached) $ECHO_C" >&6
  13928. else
  13929. lt_prog_compiler_pic_works_GCJ=no
  13930. ac_outfile=conftest.$ac_objext
  13931. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13932. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  13933. # Insert the option either (1) after the last *FLAGS variable, or
  13934. # (2) before a word containing "conftest.", or (3) at the end.
  13935. # Note that $ac_compile itself does not contain backslashes and begins
  13936. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13937. # The option is referenced via a variable to avoid confusing sed.
  13938. lt_compile=`echo "$ac_compile" | $SED \
  13939. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13940. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13941. -e 's:$: $lt_compiler_flag:'`
  13942. (eval echo "\"\$as_me:15513: $lt_compile\"" >&5)
  13943. (eval "$lt_compile" 2>conftest.err)
  13944. ac_status=$?
  13945. cat conftest.err >&5
  13946. echo "$as_me:15517: \$? = $ac_status" >&5
  13947. if (exit $ac_status) && test -s "$ac_outfile"; then
  13948. # The compiler can only warn and ignore the option if not recognized
  13949. # So say no if there are warnings other than the usual output.
  13950. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  13951. $SED '/^$/d' conftest.err >conftest.er2
  13952. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  13953. lt_prog_compiler_pic_works_GCJ=yes
  13954. fi
  13955. fi
  13956. $rm conftest*
  13957. fi
  13958. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  13959. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  13960. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  13961. case $lt_prog_compiler_pic_GCJ in
  13962. "" | " "*) ;;
  13963. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  13964. esac
  13965. else
  13966. lt_prog_compiler_pic_GCJ=
  13967. lt_prog_compiler_can_build_shared_GCJ=no
  13968. fi
  13969. fi
  13970. case "$host_os" in
  13971. # For platforms which do not support PIC, -DPIC is meaningless:
  13972. *djgpp*)
  13973. lt_prog_compiler_pic_GCJ=
  13974. ;;
  13975. *)
  13976. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  13977. ;;
  13978. esac
  13979. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13980. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13981. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  13982. echo $ECHO_N "(cached) $ECHO_C" >&6
  13983. else
  13984. lt_cv_prog_compiler_c_o_GCJ=no
  13985. $rm -r conftest 2>/dev/null
  13986. mkdir conftest
  13987. cd conftest
  13988. mkdir out
  13989. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13990. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13991. # Insert the option either (1) after the last *FLAGS variable, or
  13992. # (2) before a word containing "conftest.", or (3) at the end.
  13993. # Note that $ac_compile itself does not contain backslashes and begins
  13994. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13995. lt_compile=`echo "$ac_compile" | $SED \
  13996. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13997. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13998. -e 's:$: $lt_compiler_flag:'`
  13999. (eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
  14000. (eval "$lt_compile" 2>out/conftest.err)
  14001. ac_status=$?
  14002. cat out/conftest.err >&5
  14003. echo "$as_me:15579: \$? = $ac_status" >&5
  14004. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14005. then
  14006. # The compiler can only warn and ignore the option if not recognized
  14007. # So say no if there are warnings
  14008. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  14009. $SED '/^$/d' out/conftest.err >out/conftest.er2
  14010. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14011. lt_cv_prog_compiler_c_o_GCJ=yes
  14012. fi
  14013. fi
  14014. chmod u+w .
  14015. $rm conftest*
  14016. # SGI C++ compiler will create directory out/ii_files/ for
  14017. # template instantiation
  14018. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14019. $rm out/* && rmdir out
  14020. cd ..
  14021. rmdir conftest
  14022. $rm conftest*
  14023. fi
  14024. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14025. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14026. hard_links="nottested"
  14027. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14028. # do not overwrite the value of need_locks provided by the user
  14029. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14030. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14031. hard_links=yes
  14032. $rm conftest*
  14033. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14034. touch conftest.a
  14035. ln conftest.a conftest.b 2>&5 || hard_links=no
  14036. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14037. echo "$as_me:$LINENO: result: $hard_links" >&5
  14038. echo "${ECHO_T}$hard_links" >&6
  14039. if test "$hard_links" = no; then
  14040. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14041. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14042. need_locks=warn
  14043. fi
  14044. else
  14045. need_locks=no
  14046. fi
  14047. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14048. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14049. runpath_var=
  14050. allow_undefined_flag_GCJ=
  14051. enable_shared_with_static_runtimes_GCJ=no
  14052. archive_cmds_GCJ=
  14053. archive_expsym_cmds_GCJ=
  14054. old_archive_From_new_cmds_GCJ=
  14055. old_archive_from_expsyms_cmds_GCJ=
  14056. export_dynamic_flag_spec_GCJ=
  14057. whole_archive_flag_spec_GCJ=
  14058. thread_safe_flag_spec_GCJ=
  14059. hardcode_libdir_flag_spec_GCJ=
  14060. hardcode_libdir_flag_spec_ld_GCJ=
  14061. hardcode_libdir_separator_GCJ=
  14062. hardcode_direct_GCJ=no
  14063. hardcode_minus_L_GCJ=no
  14064. hardcode_shlibpath_var_GCJ=unsupported
  14065. link_all_deplibs_GCJ=unknown
  14066. hardcode_automatic_GCJ=no
  14067. module_cmds_GCJ=
  14068. module_expsym_cmds_GCJ=
  14069. always_export_symbols_GCJ=no
  14070. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14071. # include_expsyms should be a list of space-separated symbols to be *always*
  14072. # included in the symbol list
  14073. include_expsyms_GCJ=
  14074. # exclude_expsyms can be an extended regexp of symbols to exclude
  14075. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14076. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14077. # as well as any symbol that contains `d'.
  14078. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14079. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14080. # platforms (ab)use it in PIC code, but their linkers get confused if
  14081. # the symbol is explicitly referenced. Since portable code cannot
  14082. # rely on this symbol name, it's probably fine to never include it in
  14083. # preloaded symbol tables.
  14084. extract_expsyms_cmds=
  14085. # Just being paranoid about ensuring that cc_basename is set.
  14086. for cc_temp in $compiler""; do
  14087. case $cc_temp in
  14088. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14089. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14090. \-*) ;;
  14091. *) break;;
  14092. esac
  14093. done
  14094. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14095. case $host_os in
  14096. cygwin* | mingw* | pw32*)
  14097. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14098. # When not using gcc, we currently assume that we are using
  14099. # Microsoft Visual C++.
  14100. if test "$GCC" != yes; then
  14101. with_gnu_ld=no
  14102. fi
  14103. ;;
  14104. openbsd*)
  14105. with_gnu_ld=no
  14106. ;;
  14107. esac
  14108. ld_shlibs_GCJ=yes
  14109. if test "$with_gnu_ld" = yes; then
  14110. # If archive_cmds runs LD, not CC, wlarc should be empty
  14111. wlarc='${wl}'
  14112. # Set some defaults for GNU ld with shared library support. These
  14113. # are reset later if shared libraries are not supported. Putting them
  14114. # here allows them to be overridden if necessary.
  14115. runpath_var=LD_RUN_PATH
  14116. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14117. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14118. # ancient GNU ld didn't support --whole-archive et. al.
  14119. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14120. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14121. else
  14122. whole_archive_flag_spec_GCJ=
  14123. fi
  14124. supports_anon_versioning=no
  14125. case `$LD -v 2>/dev/null` in
  14126. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14127. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14128. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14129. *\ 2.11.*) ;; # other 2.11 versions
  14130. *) supports_anon_versioning=yes ;;
  14131. esac
  14132. # See if GNU ld supports shared libraries.
  14133. case $host_os in
  14134. aix3* | aix4* | aix5*)
  14135. # On AIX/PPC, the GNU linker is very broken
  14136. if test "$host_cpu" != ia64; then
  14137. ld_shlibs_GCJ=no
  14138. cat <<EOF 1>&2
  14139. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14140. *** to be unable to reliably create shared libraries on AIX.
  14141. *** Therefore, libtool is disabling shared libraries support. If you
  14142. *** really care for shared libraries, you may want to modify your PATH
  14143. *** so that a non-GNU linker is found, and then restart.
  14144. EOF
  14145. fi
  14146. ;;
  14147. amigaos*)
  14148. 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)'
  14149. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14150. hardcode_minus_L_GCJ=yes
  14151. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14152. # that the semantics of dynamic libraries on AmigaOS, at least up
  14153. # to version 4, is to share data among multiple programs linked
  14154. # with the same dynamic library. Since this doesn't match the
  14155. # behavior of shared libraries on other platforms, we can't use
  14156. # them.
  14157. ld_shlibs_GCJ=no
  14158. ;;
  14159. beos*)
  14160. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14161. allow_undefined_flag_GCJ=unsupported
  14162. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14163. # support --undefined. This deserves some investigation. FIXME
  14164. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14165. else
  14166. ld_shlibs_GCJ=no
  14167. fi
  14168. ;;
  14169. cygwin* | mingw* | pw32*)
  14170. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14171. # as there is no search path for DLLs.
  14172. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14173. allow_undefined_flag_GCJ=unsupported
  14174. always_export_symbols_GCJ=no
  14175. enable_shared_with_static_runtimes_GCJ=yes
  14176. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14177. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14178. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14179. # If the export-symbols file already is a .def file (1st line
  14180. # is EXPORTS), use it as is; otherwise, prepend...
  14181. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14182. cp $export_symbols $output_objdir/$soname.def;
  14183. else
  14184. echo EXPORTS > $output_objdir/$soname.def;
  14185. cat $export_symbols >> $output_objdir/$soname.def;
  14186. fi~
  14187. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14188. else
  14189. ld_shlibs_GCJ=no
  14190. fi
  14191. ;;
  14192. linux*)
  14193. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14194. tmp_addflag=
  14195. case $cc_basename,$host_cpu in
  14196. pgcc*) # Portland Group C compiler
  14197. 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'
  14198. tmp_addflag=' $pic_flag'
  14199. ;;
  14200. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  14201. 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'
  14202. tmp_addflag=' $pic_flag -Mnomain' ;;
  14203. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14204. tmp_addflag=' -i_dynamic' ;;
  14205. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14206. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14207. ifc* | ifort*) # Intel Fortran compiler
  14208. tmp_addflag=' -nofor_main' ;;
  14209. esac
  14210. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14211. if test $supports_anon_versioning = yes; then
  14212. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14213. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14214. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14215. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14216. fi
  14217. else
  14218. ld_shlibs_GCJ=no
  14219. fi
  14220. ;;
  14221. netbsd*)
  14222. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14223. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14224. wlarc=
  14225. else
  14226. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14227. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14228. fi
  14229. ;;
  14230. solaris* | sysv5*)
  14231. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14232. ld_shlibs_GCJ=no
  14233. cat <<EOF 1>&2
  14234. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14235. *** create shared libraries on Solaris systems. Therefore, libtool
  14236. *** is disabling shared libraries support. We urge you to upgrade GNU
  14237. *** binutils to release 2.9.1 or newer. Another option is to modify
  14238. *** your PATH or compiler configuration so that the native linker is
  14239. *** used, and then restart.
  14240. EOF
  14241. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14242. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14243. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14244. else
  14245. ld_shlibs_GCJ=no
  14246. fi
  14247. ;;
  14248. sunos4*)
  14249. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14250. wlarc=
  14251. hardcode_direct_GCJ=yes
  14252. hardcode_shlibpath_var_GCJ=no
  14253. ;;
  14254. *)
  14255. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14256. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14257. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14258. else
  14259. ld_shlibs_GCJ=no
  14260. fi
  14261. ;;
  14262. esac
  14263. if test "$ld_shlibs_GCJ" = no; then
  14264. runpath_var=
  14265. hardcode_libdir_flag_spec_GCJ=
  14266. export_dynamic_flag_spec_GCJ=
  14267. whole_archive_flag_spec_GCJ=
  14268. fi
  14269. else
  14270. # PORTME fill in a description of your system's linker (not GNU ld)
  14271. case $host_os in
  14272. aix3*)
  14273. allow_undefined_flag_GCJ=unsupported
  14274. always_export_symbols_GCJ=yes
  14275. 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'
  14276. # Note: this linker hardcodes the directories in LIBPATH if there
  14277. # are no directories specified by -L.
  14278. hardcode_minus_L_GCJ=yes
  14279. if test "$GCC" = yes && test -z "$link_static_flag"; then
  14280. # Neither direct hardcoding nor static linking is supported with a
  14281. # broken collect2.
  14282. hardcode_direct_GCJ=unsupported
  14283. fi
  14284. ;;
  14285. aix4* | aix5*)
  14286. if test "$host_cpu" = ia64; then
  14287. # On IA64, the linker does run time linking by default, so we don't
  14288. # have to do anything special.
  14289. aix_use_runtimelinking=no
  14290. exp_sym_flag='-Bexport'
  14291. no_entry_flag=""
  14292. else
  14293. # If we're using GNU nm, then we don't want the "-C" option.
  14294. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14295. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14296. 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'
  14297. else
  14298. 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'
  14299. fi
  14300. aix_use_runtimelinking=no
  14301. # Test if we are trying to use run time linking or normal
  14302. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14303. # need to do runtime linking.
  14304. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14305. for ld_flag in $LDFLAGS; do
  14306. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14307. aix_use_runtimelinking=yes
  14308. break
  14309. fi
  14310. done
  14311. esac
  14312. exp_sym_flag='-bexport'
  14313. no_entry_flag='-bnoentry'
  14314. fi
  14315. # When large executables or shared objects are built, AIX ld can
  14316. # have problems creating the table of contents. If linking a library
  14317. # or program results in "error TOC overflow" add -mminimal-toc to
  14318. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14319. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14320. archive_cmds_GCJ=''
  14321. hardcode_direct_GCJ=yes
  14322. hardcode_libdir_separator_GCJ=':'
  14323. link_all_deplibs_GCJ=yes
  14324. if test "$GCC" = yes; then
  14325. case $host_os in aix4.[012]|aix4.[012].*)
  14326. # We only want to do this on AIX 4.2 and lower, the check
  14327. # below for broken collect2 doesn't work under 4.3+
  14328. collect2name=`${CC} -print-prog-name=collect2`
  14329. if test -f "$collect2name" && \
  14330. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14331. then
  14332. # We have reworked collect2
  14333. hardcode_direct_GCJ=yes
  14334. else
  14335. # We have old collect2
  14336. hardcode_direct_GCJ=unsupported
  14337. # It fails to find uninstalled libraries when the uninstalled
  14338. # path is not listed in the libpath. Setting hardcode_minus_L
  14339. # to unsupported forces relinking
  14340. hardcode_minus_L_GCJ=yes
  14341. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14342. hardcode_libdir_separator_GCJ=
  14343. fi
  14344. esac
  14345. shared_flag='-shared'
  14346. if test "$aix_use_runtimelinking" = yes; then
  14347. shared_flag="$shared_flag "'${wl}-G'
  14348. fi
  14349. else
  14350. # not using gcc
  14351. if test "$host_cpu" = ia64; then
  14352. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14353. # chokes on -Wl,-G. The following line is correct:
  14354. shared_flag='-G'
  14355. else
  14356. if test "$aix_use_runtimelinking" = yes; then
  14357. shared_flag='${wl}-G'
  14358. else
  14359. shared_flag='${wl}-bM:SRE'
  14360. fi
  14361. fi
  14362. fi
  14363. # It seems that -bexpall does not export symbols beginning with
  14364. # underscore (_), so it is better to generate a list of symbols to export.
  14365. always_export_symbols_GCJ=yes
  14366. if test "$aix_use_runtimelinking" = yes; then
  14367. # Warning - without using the other runtime loading flags (-brtl),
  14368. # -berok will link without error, but may produce a broken library.
  14369. allow_undefined_flag_GCJ='-berok'
  14370. # Determine the default libpath from the value encoded in an empty executable.
  14371. cat >conftest.$ac_ext <<_ACEOF
  14372. /* confdefs.h. */
  14373. _ACEOF
  14374. cat confdefs.h >>conftest.$ac_ext
  14375. cat >>conftest.$ac_ext <<_ACEOF
  14376. /* end confdefs.h. */
  14377. int
  14378. main ()
  14379. {
  14380. ;
  14381. return 0;
  14382. }
  14383. _ACEOF
  14384. rm -f conftest.$ac_objext conftest$ac_exeext
  14385. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14386. (eval $ac_link) 2>conftest.er1
  14387. ac_status=$?
  14388. grep -v '^ *+' conftest.er1 >conftest.err
  14389. rm -f conftest.er1
  14390. cat conftest.err >&5
  14391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14392. (exit $ac_status); } &&
  14393. { ac_try='test -z "$ac_c_werror_flag"
  14394. || test ! -s conftest.err'
  14395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14396. (eval $ac_try) 2>&5
  14397. ac_status=$?
  14398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14399. (exit $ac_status); }; } &&
  14400. { ac_try='test -s conftest$ac_exeext'
  14401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14402. (eval $ac_try) 2>&5
  14403. ac_status=$?
  14404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14405. (exit $ac_status); }; }; then
  14406. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14407. }'`
  14408. # Check for a 64-bit object if we didn't find anything.
  14409. 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; }
  14410. }'`; fi
  14411. else
  14412. echo "$as_me: failed program was:" >&5
  14413. sed 's/^/| /' conftest.$ac_ext >&5
  14414. fi
  14415. rm -f conftest.err conftest.$ac_objext \
  14416. conftest$ac_exeext conftest.$ac_ext
  14417. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14418. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14419. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14420. else
  14421. if test "$host_cpu" = ia64; then
  14422. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14423. allow_undefined_flag_GCJ="-z nodefs"
  14424. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14425. else
  14426. # Determine the default libpath from the value encoded in an empty executable.
  14427. cat >conftest.$ac_ext <<_ACEOF
  14428. /* confdefs.h. */
  14429. _ACEOF
  14430. cat confdefs.h >>conftest.$ac_ext
  14431. cat >>conftest.$ac_ext <<_ACEOF
  14432. /* end confdefs.h. */
  14433. int
  14434. main ()
  14435. {
  14436. ;
  14437. return 0;
  14438. }
  14439. _ACEOF
  14440. rm -f conftest.$ac_objext conftest$ac_exeext
  14441. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14442. (eval $ac_link) 2>conftest.er1
  14443. ac_status=$?
  14444. grep -v '^ *+' conftest.er1 >conftest.err
  14445. rm -f conftest.er1
  14446. cat conftest.err >&5
  14447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14448. (exit $ac_status); } &&
  14449. { ac_try='test -z "$ac_c_werror_flag"
  14450. || test ! -s conftest.err'
  14451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14452. (eval $ac_try) 2>&5
  14453. ac_status=$?
  14454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14455. (exit $ac_status); }; } &&
  14456. { ac_try='test -s conftest$ac_exeext'
  14457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14458. (eval $ac_try) 2>&5
  14459. ac_status=$?
  14460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14461. (exit $ac_status); }; }; then
  14462. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14463. }'`
  14464. # Check for a 64-bit object if we didn't find anything.
  14465. 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; }
  14466. }'`; fi
  14467. else
  14468. echo "$as_me: failed program was:" >&5
  14469. sed 's/^/| /' conftest.$ac_ext >&5
  14470. fi
  14471. rm -f conftest.err conftest.$ac_objext \
  14472. conftest$ac_exeext conftest.$ac_ext
  14473. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14474. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14475. # Warning - without using the other run time loading flags,
  14476. # -berok will link without error, but may produce a broken library.
  14477. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14478. allow_undefined_flag_GCJ=' ${wl}-berok'
  14479. # -bexpall does not export symbols beginning with underscore (_)
  14480. always_export_symbols_GCJ=yes
  14481. # Exported symbols can be pulled into shared objects from archives
  14482. whole_archive_flag_spec_GCJ=' '
  14483. archive_cmds_need_lc_GCJ=yes
  14484. # This is similar to how AIX traditionally builds it's shared libraries.
  14485. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14486. fi
  14487. fi
  14488. ;;
  14489. amigaos*)
  14490. 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)'
  14491. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14492. hardcode_minus_L_GCJ=yes
  14493. # see comment about different semantics on the GNU ld section
  14494. ld_shlibs_GCJ=no
  14495. ;;
  14496. bsdi[45]*)
  14497. export_dynamic_flag_spec_GCJ=-rdynamic
  14498. ;;
  14499. cygwin* | mingw* | pw32*)
  14500. # When not using gcc, we currently assume that we are using
  14501. # Microsoft Visual C++.
  14502. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14503. # no search path for DLLs.
  14504. hardcode_libdir_flag_spec_GCJ=' '
  14505. allow_undefined_flag_GCJ=unsupported
  14506. # Tell ltmain to make .lib files, not .a files.
  14507. libext=lib
  14508. # Tell ltmain to make .dll files, not .so files.
  14509. shrext_cmds=".dll"
  14510. # FIXME: Setting linknames here is a bad hack.
  14511. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14512. # The linker will automatically build a .lib file if we build a DLL.
  14513. old_archive_From_new_cmds_GCJ='true'
  14514. # FIXME: Should let the user specify the lib program.
  14515. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14516. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14517. enable_shared_with_static_runtimes_GCJ=yes
  14518. ;;
  14519. darwin* | rhapsody*)
  14520. case "$host_os" in
  14521. rhapsody* | darwin1.[012])
  14522. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14523. ;;
  14524. *) # Darwin 1.3 on
  14525. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14526. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14527. else
  14528. case ${MACOSX_DEPLOYMENT_TARGET} in
  14529. 10.[012])
  14530. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14531. ;;
  14532. 10.*)
  14533. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14534. ;;
  14535. esac
  14536. fi
  14537. ;;
  14538. esac
  14539. archive_cmds_need_lc_GCJ=no
  14540. hardcode_direct_GCJ=no
  14541. hardcode_automatic_GCJ=yes
  14542. hardcode_shlibpath_var_GCJ=unsupported
  14543. whole_archive_flag_spec_GCJ=''
  14544. link_all_deplibs_GCJ=yes
  14545. if test "$GCC" = yes ; then
  14546. output_verbose_link_cmd='echo'
  14547. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14548. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14549. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14550. 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}'
  14551. 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}'
  14552. else
  14553. case $cc_basename in
  14554. xlc*)
  14555. output_verbose_link_cmd='echo'
  14556. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14557. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14558. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14559. 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}'
  14560. 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}'
  14561. ;;
  14562. *)
  14563. ld_shlibs_GCJ=no
  14564. ;;
  14565. esac
  14566. fi
  14567. ;;
  14568. dgux*)
  14569. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14570. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14571. hardcode_shlibpath_var_GCJ=no
  14572. ;;
  14573. freebsd1*)
  14574. ld_shlibs_GCJ=no
  14575. ;;
  14576. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14577. # support. Future versions do this automatically, but an explicit c++rt0.o
  14578. # does not break anything, and helps significantly (at the cost of a little
  14579. # extra space).
  14580. freebsd2.2*)
  14581. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14582. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14583. hardcode_direct_GCJ=yes
  14584. hardcode_shlibpath_var_GCJ=no
  14585. ;;
  14586. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14587. freebsd2*)
  14588. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14589. hardcode_direct_GCJ=yes
  14590. hardcode_minus_L_GCJ=yes
  14591. hardcode_shlibpath_var_GCJ=no
  14592. ;;
  14593. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14594. freebsd* | kfreebsd*-gnu | dragonfly*)
  14595. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14596. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14597. hardcode_direct_GCJ=yes
  14598. hardcode_shlibpath_var_GCJ=no
  14599. ;;
  14600. hpux9*)
  14601. if test "$GCC" = yes; then
  14602. 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'
  14603. else
  14604. 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'
  14605. fi
  14606. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14607. hardcode_libdir_separator_GCJ=:
  14608. hardcode_direct_GCJ=yes
  14609. # hardcode_minus_L: Not really in the search PATH,
  14610. # but as the default location of the library.
  14611. hardcode_minus_L_GCJ=yes
  14612. export_dynamic_flag_spec_GCJ='${wl}-E'
  14613. ;;
  14614. hpux10* | hpux11*)
  14615. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14616. case "$host_cpu" in
  14617. hppa*64*|ia64*)
  14618. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14619. ;;
  14620. *)
  14621. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14622. ;;
  14623. esac
  14624. else
  14625. case "$host_cpu" in
  14626. hppa*64*|ia64*)
  14627. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14628. ;;
  14629. *)
  14630. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14631. ;;
  14632. esac
  14633. fi
  14634. if test "$with_gnu_ld" = no; then
  14635. case "$host_cpu" in
  14636. hppa*64*)
  14637. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14638. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14639. hardcode_libdir_separator_GCJ=:
  14640. hardcode_direct_GCJ=no
  14641. hardcode_shlibpath_var_GCJ=no
  14642. ;;
  14643. ia64*)
  14644. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14645. hardcode_direct_GCJ=no
  14646. hardcode_shlibpath_var_GCJ=no
  14647. # hardcode_minus_L: Not really in the search PATH,
  14648. # but as the default location of the library.
  14649. hardcode_minus_L_GCJ=yes
  14650. ;;
  14651. *)
  14652. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14653. hardcode_libdir_separator_GCJ=:
  14654. hardcode_direct_GCJ=yes
  14655. export_dynamic_flag_spec_GCJ='${wl}-E'
  14656. # hardcode_minus_L: Not really in the search PATH,
  14657. # but as the default location of the library.
  14658. hardcode_minus_L_GCJ=yes
  14659. ;;
  14660. esac
  14661. fi
  14662. ;;
  14663. irix5* | irix6* | nonstopux*)
  14664. if test "$GCC" = yes; then
  14665. 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'
  14666. else
  14667. 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'
  14668. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14669. fi
  14670. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14671. hardcode_libdir_separator_GCJ=:
  14672. link_all_deplibs_GCJ=yes
  14673. ;;
  14674. netbsd*)
  14675. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14676. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14677. else
  14678. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14679. fi
  14680. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14681. hardcode_direct_GCJ=yes
  14682. hardcode_shlibpath_var_GCJ=no
  14683. ;;
  14684. newsos6)
  14685. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14686. hardcode_direct_GCJ=yes
  14687. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14688. hardcode_libdir_separator_GCJ=:
  14689. hardcode_shlibpath_var_GCJ=no
  14690. ;;
  14691. openbsd*)
  14692. hardcode_direct_GCJ=yes
  14693. hardcode_shlibpath_var_GCJ=no
  14694. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14695. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14696. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14697. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14698. export_dynamic_flag_spec_GCJ='${wl}-E'
  14699. else
  14700. case $host_os in
  14701. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14702. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14703. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14704. ;;
  14705. *)
  14706. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14707. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14708. ;;
  14709. esac
  14710. fi
  14711. ;;
  14712. os2*)
  14713. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14714. hardcode_minus_L_GCJ=yes
  14715. allow_undefined_flag_GCJ=unsupported
  14716. 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'
  14717. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14718. ;;
  14719. osf3*)
  14720. if test "$GCC" = yes; then
  14721. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14722. 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'
  14723. else
  14724. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14725. 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'
  14726. fi
  14727. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14728. hardcode_libdir_separator_GCJ=:
  14729. ;;
  14730. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14731. if test "$GCC" = yes; then
  14732. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14733. 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'
  14734. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14735. else
  14736. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14737. 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'
  14738. 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~
  14739. $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'
  14740. # Both c and cxx compiler support -rpath directly
  14741. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14742. fi
  14743. hardcode_libdir_separator_GCJ=:
  14744. ;;
  14745. sco3.2v5*)
  14746. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14747. hardcode_shlibpath_var_GCJ=no
  14748. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14749. runpath_var=LD_RUN_PATH
  14750. hardcode_runpath_var=yes
  14751. ;;
  14752. solaris*)
  14753. no_undefined_flag_GCJ=' -z text'
  14754. if test "$GCC" = yes; then
  14755. wlarc='${wl}'
  14756. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14757. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14758. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14759. else
  14760. wlarc=''
  14761. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14762. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14763. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14764. fi
  14765. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14766. hardcode_shlibpath_var_GCJ=no
  14767. case $host_os in
  14768. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14769. *)
  14770. # The compiler driver will combine linker options so we
  14771. # cannot just pass the convience library names through
  14772. # without $wl, iff we do not link with $LD.
  14773. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14774. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14775. case $wlarc in
  14776. '')
  14777. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14778. *)
  14779. 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' ;;
  14780. esac ;;
  14781. esac
  14782. link_all_deplibs_GCJ=yes
  14783. ;;
  14784. sunos4*)
  14785. if test "x$host_vendor" = xsequent; then
  14786. # Use $CC to link under sequent, because it throws in some extra .o
  14787. # files that make .init and .fini sections work.
  14788. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14789. else
  14790. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14791. fi
  14792. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14793. hardcode_direct_GCJ=yes
  14794. hardcode_minus_L_GCJ=yes
  14795. hardcode_shlibpath_var_GCJ=no
  14796. ;;
  14797. sysv4)
  14798. case $host_vendor in
  14799. sni)
  14800. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14801. hardcode_direct_GCJ=yes # is this really true???
  14802. ;;
  14803. siemens)
  14804. ## LD is ld it makes a PLAMLIB
  14805. ## CC just makes a GrossModule.
  14806. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14807. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14808. hardcode_direct_GCJ=no
  14809. ;;
  14810. motorola)
  14811. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14812. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14813. ;;
  14814. esac
  14815. runpath_var='LD_RUN_PATH'
  14816. hardcode_shlibpath_var_GCJ=no
  14817. ;;
  14818. sysv4.3*)
  14819. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14820. hardcode_shlibpath_var_GCJ=no
  14821. export_dynamic_flag_spec_GCJ='-Bexport'
  14822. ;;
  14823. sysv4*MP*)
  14824. if test -d /usr/nec; then
  14825. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14826. hardcode_shlibpath_var_GCJ=no
  14827. runpath_var=LD_RUN_PATH
  14828. hardcode_runpath_var=yes
  14829. ld_shlibs_GCJ=yes
  14830. fi
  14831. ;;
  14832. sysv4.2uw2*)
  14833. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14834. hardcode_direct_GCJ=yes
  14835. hardcode_minus_L_GCJ=no
  14836. hardcode_shlibpath_var_GCJ=no
  14837. hardcode_runpath_var=yes
  14838. runpath_var=LD_RUN_PATH
  14839. ;;
  14840. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14841. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  14842. if test "$GCC" = yes; then
  14843. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14844. else
  14845. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14846. fi
  14847. runpath_var='LD_RUN_PATH'
  14848. hardcode_shlibpath_var_GCJ=no
  14849. ;;
  14850. sysv5*)
  14851. no_undefined_flag_GCJ=' -z text'
  14852. # $CC -shared without GNU ld will not create a library from C++
  14853. # object files and a static libstdc++, better avoid it by now
  14854. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14855. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14856. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14857. hardcode_libdir_flag_spec_GCJ=
  14858. hardcode_shlibpath_var_GCJ=no
  14859. runpath_var='LD_RUN_PATH'
  14860. ;;
  14861. uts4*)
  14862. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14863. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14864. hardcode_shlibpath_var_GCJ=no
  14865. ;;
  14866. *)
  14867. ld_shlibs_GCJ=no
  14868. ;;
  14869. esac
  14870. fi
  14871. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14872. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  14873. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14874. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14875. if test "$GCC" = yes; then
  14876. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14877. fi
  14878. #
  14879. # Do we need to explicitly link libc?
  14880. #
  14881. case "x$archive_cmds_need_lc_GCJ" in
  14882. x|xyes)
  14883. # Assume -lc should be added
  14884. archive_cmds_need_lc_GCJ=yes
  14885. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14886. case $archive_cmds_GCJ in
  14887. *'~'*)
  14888. # FIXME: we may have to deal with multi-command sequences.
  14889. ;;
  14890. '$CC '*)
  14891. # Test whether the compiler implicitly links with -lc since on some
  14892. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14893. # to ld, don't add -lc before -lgcc.
  14894. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14895. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14896. $rm conftest*
  14897. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14898. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14899. (eval $ac_compile) 2>&5
  14900. ac_status=$?
  14901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14902. (exit $ac_status); } 2>conftest.err; then
  14903. soname=conftest
  14904. lib=conftest
  14905. libobjs=conftest.$ac_objext
  14906. deplibs=
  14907. wl=$lt_prog_compiler_wl_GCJ
  14908. compiler_flags=-v
  14909. linker_flags=-v
  14910. verstring=
  14911. output_objdir=.
  14912. libname=conftest
  14913. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14914. allow_undefined_flag_GCJ=
  14915. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14916. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14917. ac_status=$?
  14918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14919. (exit $ac_status); }
  14920. then
  14921. archive_cmds_need_lc_GCJ=no
  14922. else
  14923. archive_cmds_need_lc_GCJ=yes
  14924. fi
  14925. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14926. else
  14927. cat conftest.err 1>&5
  14928. fi
  14929. $rm conftest*
  14930. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14931. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  14932. ;;
  14933. esac
  14934. fi
  14935. ;;
  14936. esac
  14937. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14938. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14939. library_names_spec=
  14940. libname_spec='lib$name'
  14941. soname_spec=
  14942. shrext_cmds=".so"
  14943. postinstall_cmds=
  14944. postuninstall_cmds=
  14945. finish_cmds=
  14946. finish_eval=
  14947. shlibpath_var=
  14948. shlibpath_overrides_runpath=unknown
  14949. version_type=none
  14950. dynamic_linker="$host_os ld.so"
  14951. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14952. if test "$GCC" = yes; then
  14953. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14954. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14955. # if the path contains ";" then we assume it to be the separator
  14956. # otherwise default to the standard path separator (i.e. ":") - it is
  14957. # assumed that no part of a normal pathname contains ";" but that should
  14958. # okay in the real world where ";" in dirpaths is itself problematic.
  14959. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14960. else
  14961. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14962. fi
  14963. else
  14964. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14965. fi
  14966. need_lib_prefix=unknown
  14967. hardcode_into_libs=no
  14968. # when you set need_version to no, make sure it does not cause -set_version
  14969. # flags to be left without arguments
  14970. need_version=unknown
  14971. case $host_os in
  14972. aix3*)
  14973. version_type=linux
  14974. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14975. shlibpath_var=LIBPATH
  14976. # AIX 3 has no versioning support, so we append a major version to the name.
  14977. soname_spec='${libname}${release}${shared_ext}$major'
  14978. ;;
  14979. aix4* | aix5*)
  14980. version_type=linux
  14981. need_lib_prefix=no
  14982. need_version=no
  14983. hardcode_into_libs=yes
  14984. if test "$host_cpu" = ia64; then
  14985. # AIX 5 supports IA64
  14986. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14987. shlibpath_var=LD_LIBRARY_PATH
  14988. else
  14989. # With GCC up to 2.95.x, collect2 would create an import file
  14990. # for dependence libraries. The import file would start with
  14991. # the line `#! .'. This would cause the generated library to
  14992. # depend on `.', always an invalid library. This was fixed in
  14993. # development snapshots of GCC prior to 3.0.
  14994. case $host_os in
  14995. aix4 | aix4.[01] | aix4.[01].*)
  14996. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14997. echo ' yes '
  14998. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14999. :
  15000. else
  15001. can_build_shared=no
  15002. fi
  15003. ;;
  15004. esac
  15005. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15006. # soname into executable. Probably we can add versioning support to
  15007. # collect2, so additional links can be useful in future.
  15008. if test "$aix_use_runtimelinking" = yes; then
  15009. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15010. # instead of lib<name>.a to let people know that these are not
  15011. # typical AIX shared libraries.
  15012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15013. else
  15014. # We preserve .a as extension for shared libraries through AIX4.2
  15015. # and later when we are not doing run time linking.
  15016. library_names_spec='${libname}${release}.a $libname.a'
  15017. soname_spec='${libname}${release}${shared_ext}$major'
  15018. fi
  15019. shlibpath_var=LIBPATH
  15020. fi
  15021. ;;
  15022. amigaos*)
  15023. library_names_spec='$libname.ixlibrary $libname.a'
  15024. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15025. 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'
  15026. ;;
  15027. beos*)
  15028. library_names_spec='${libname}${shared_ext}'
  15029. dynamic_linker="$host_os ld.so"
  15030. shlibpath_var=LIBRARY_PATH
  15031. ;;
  15032. bsdi[45]*)
  15033. version_type=linux
  15034. need_version=no
  15035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15036. soname_spec='${libname}${release}${shared_ext}$major'
  15037. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15038. shlibpath_var=LD_LIBRARY_PATH
  15039. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15040. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15041. # the default ld.so.conf also contains /usr/contrib/lib and
  15042. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15043. # libtool to hard-code these into programs
  15044. ;;
  15045. cygwin* | mingw* | pw32*)
  15046. version_type=windows
  15047. shrext_cmds=".dll"
  15048. need_version=no
  15049. need_lib_prefix=no
  15050. case $GCC,$host_os in
  15051. yes,cygwin* | yes,mingw* | yes,pw32*)
  15052. library_names_spec='$libname.dll.a'
  15053. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15054. postinstall_cmds='base_file=`basename \${file}`~
  15055. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15056. dldir=$destdir/`dirname \$dlpath`~
  15057. test -d \$dldir || mkdir -p \$dldir~
  15058. $install_prog $dir/$dlname \$dldir/$dlname'
  15059. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15060. dlpath=$dir/\$dldll~
  15061. $rm \$dlpath'
  15062. shlibpath_overrides_runpath=yes
  15063. case $host_os in
  15064. cygwin*)
  15065. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15066. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15067. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15068. ;;
  15069. mingw*)
  15070. # MinGW DLLs use traditional 'lib' prefix
  15071. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15072. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15073. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15074. # It is most probably a Windows format PATH printed by
  15075. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15076. # path with ; separators, and with drive letters. We can handle the
  15077. # drive letters (cygwin fileutils understands them), so leave them,
  15078. # especially as we might pass files found there to a mingw objdump,
  15079. # which wouldn't understand a cygwinified path. Ahh.
  15080. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15081. else
  15082. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15083. fi
  15084. ;;
  15085. pw32*)
  15086. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15087. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15088. ;;
  15089. esac
  15090. ;;
  15091. *)
  15092. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15093. ;;
  15094. esac
  15095. dynamic_linker='Win32 ld.exe'
  15096. # FIXME: first we should search . and the directory the executable is in
  15097. shlibpath_var=PATH
  15098. ;;
  15099. darwin* | rhapsody*)
  15100. dynamic_linker="$host_os dyld"
  15101. version_type=darwin
  15102. need_lib_prefix=no
  15103. need_version=no
  15104. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15105. soname_spec='${libname}${release}${major}$shared_ext'
  15106. shlibpath_overrides_runpath=yes
  15107. shlibpath_var=DYLD_LIBRARY_PATH
  15108. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  15109. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15110. if test "$GCC" = yes; then
  15111. 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"`
  15112. else
  15113. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15114. fi
  15115. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15116. ;;
  15117. dgux*)
  15118. version_type=linux
  15119. need_lib_prefix=no
  15120. need_version=no
  15121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15122. soname_spec='${libname}${release}${shared_ext}$major'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. ;;
  15125. freebsd1*)
  15126. dynamic_linker=no
  15127. ;;
  15128. kfreebsd*-gnu)
  15129. version_type=linux
  15130. need_lib_prefix=no
  15131. need_version=no
  15132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15133. soname_spec='${libname}${release}${shared_ext}$major'
  15134. shlibpath_var=LD_LIBRARY_PATH
  15135. shlibpath_overrides_runpath=no
  15136. hardcode_into_libs=yes
  15137. dynamic_linker='GNU ld.so'
  15138. ;;
  15139. freebsd* | dragonfly*)
  15140. # DragonFly does not have aout. When/if they implement a new
  15141. # versioning mechanism, adjust this.
  15142. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15143. version_type=freebsd-$objformat
  15144. case $version_type in
  15145. freebsd-elf*)
  15146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15147. need_version=no
  15148. need_lib_prefix=no
  15149. ;;
  15150. freebsd-*)
  15151. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15152. need_version=yes
  15153. ;;
  15154. esac
  15155. shlibpath_var=LD_LIBRARY_PATH
  15156. case $host_os in
  15157. freebsd2*)
  15158. shlibpath_overrides_runpath=yes
  15159. ;;
  15160. freebsd3.[01]* | freebsdelf3.[01]*)
  15161. shlibpath_overrides_runpath=yes
  15162. hardcode_into_libs=yes
  15163. ;;
  15164. *) # from 3.2 on
  15165. shlibpath_overrides_runpath=no
  15166. hardcode_into_libs=yes
  15167. ;;
  15168. esac
  15169. ;;
  15170. gnu*)
  15171. version_type=linux
  15172. need_lib_prefix=no
  15173. need_version=no
  15174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15175. soname_spec='${libname}${release}${shared_ext}$major'
  15176. shlibpath_var=LD_LIBRARY_PATH
  15177. hardcode_into_libs=yes
  15178. ;;
  15179. hpux9* | hpux10* | hpux11*)
  15180. # Give a soname corresponding to the major version so that dld.sl refuses to
  15181. # link against other versions.
  15182. version_type=sunos
  15183. need_lib_prefix=no
  15184. need_version=no
  15185. case "$host_cpu" in
  15186. ia64*)
  15187. shrext_cmds='.so'
  15188. hardcode_into_libs=yes
  15189. dynamic_linker="$host_os dld.so"
  15190. shlibpath_var=LD_LIBRARY_PATH
  15191. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15193. soname_spec='${libname}${release}${shared_ext}$major'
  15194. if test "X$HPUX_IA64_MODE" = X32; then
  15195. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15196. else
  15197. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15198. fi
  15199. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15200. ;;
  15201. hppa*64*)
  15202. shrext_cmds='.sl'
  15203. hardcode_into_libs=yes
  15204. dynamic_linker="$host_os dld.sl"
  15205. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15206. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15208. soname_spec='${libname}${release}${shared_ext}$major'
  15209. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15210. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15211. ;;
  15212. *)
  15213. shrext_cmds='.sl'
  15214. dynamic_linker="$host_os dld.sl"
  15215. shlibpath_var=SHLIB_PATH
  15216. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15218. soname_spec='${libname}${release}${shared_ext}$major'
  15219. ;;
  15220. esac
  15221. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15222. postinstall_cmds='chmod 555 $lib'
  15223. ;;
  15224. irix5* | irix6* | nonstopux*)
  15225. case $host_os in
  15226. nonstopux*) version_type=nonstopux ;;
  15227. *)
  15228. if test "$lt_cv_prog_gnu_ld" = yes; then
  15229. version_type=linux
  15230. else
  15231. version_type=irix
  15232. fi ;;
  15233. esac
  15234. need_lib_prefix=no
  15235. need_version=no
  15236. soname_spec='${libname}${release}${shared_ext}$major'
  15237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15238. case $host_os in
  15239. irix5* | nonstopux*)
  15240. libsuff= shlibsuff=
  15241. ;;
  15242. *)
  15243. case $LD in # libtool.m4 will add one of these switches to LD
  15244. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15245. libsuff= shlibsuff= libmagic=32-bit;;
  15246. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15247. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15248. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15249. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15250. *) libsuff= shlibsuff= libmagic=never-match;;
  15251. esac
  15252. ;;
  15253. esac
  15254. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15255. shlibpath_overrides_runpath=no
  15256. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15257. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15258. hardcode_into_libs=yes
  15259. ;;
  15260. # No shared lib support for Linux oldld, aout, or coff.
  15261. linux*oldld* | linux*aout* | linux*coff*)
  15262. dynamic_linker=no
  15263. ;;
  15264. # This must be Linux ELF.
  15265. linux*)
  15266. version_type=linux
  15267. need_lib_prefix=no
  15268. need_version=no
  15269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15270. soname_spec='${libname}${release}${shared_ext}$major'
  15271. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15272. shlibpath_var=LD_LIBRARY_PATH
  15273. shlibpath_overrides_runpath=no
  15274. # This implies no fast_install, which is unacceptable.
  15275. # Some rework will be needed to allow for fast_install
  15276. # before this can be enabled.
  15277. hardcode_into_libs=yes
  15278. # find out which ABI we are using
  15279. libsuff=
  15280. case "$host_cpu" in
  15281. x86_64*|s390x*|powerpc64*)
  15282. echo '#line 16961 "configure"' > conftest.$ac_ext
  15283. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15284. (eval $ac_compile) 2>&5
  15285. ac_status=$?
  15286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15287. (exit $ac_status); }; then
  15288. case `/usr/bin/file conftest.$ac_objext` in
  15289. *64-bit*)
  15290. libsuff=64
  15291. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15292. ;;
  15293. esac
  15294. fi
  15295. rm -rf conftest*
  15296. ;;
  15297. esac
  15298. # Append ld.so.conf contents to the search path
  15299. if test -f /etc/ld.so.conf; then
  15300. 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' ' '`
  15301. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15302. fi
  15303. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15304. # powerpc, because MkLinux only supported shared libraries with the
  15305. # GNU dynamic linker. Since this was broken with cross compilers,
  15306. # most powerpc-linux boxes support dynamic linking these days and
  15307. # people can always --disable-shared, the test was removed, and we
  15308. # assume the GNU/Linux dynamic linker is in use.
  15309. dynamic_linker='GNU/Linux ld.so'
  15310. ;;
  15311. knetbsd*-gnu)
  15312. version_type=linux
  15313. need_lib_prefix=no
  15314. need_version=no
  15315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15316. soname_spec='${libname}${release}${shared_ext}$major'
  15317. shlibpath_var=LD_LIBRARY_PATH
  15318. shlibpath_overrides_runpath=no
  15319. hardcode_into_libs=yes
  15320. dynamic_linker='GNU ld.so'
  15321. ;;
  15322. netbsd*)
  15323. version_type=sunos
  15324. need_lib_prefix=no
  15325. need_version=no
  15326. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15328. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15329. dynamic_linker='NetBSD (a.out) ld.so'
  15330. else
  15331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15332. soname_spec='${libname}${release}${shared_ext}$major'
  15333. dynamic_linker='NetBSD ld.elf_so'
  15334. fi
  15335. shlibpath_var=LD_LIBRARY_PATH
  15336. shlibpath_overrides_runpath=yes
  15337. hardcode_into_libs=yes
  15338. ;;
  15339. newsos6)
  15340. version_type=linux
  15341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15342. shlibpath_var=LD_LIBRARY_PATH
  15343. shlibpath_overrides_runpath=yes
  15344. ;;
  15345. nto-qnx*)
  15346. version_type=linux
  15347. need_lib_prefix=no
  15348. need_version=no
  15349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15350. soname_spec='${libname}${release}${shared_ext}$major'
  15351. shlibpath_var=LD_LIBRARY_PATH
  15352. shlibpath_overrides_runpath=yes
  15353. ;;
  15354. openbsd*)
  15355. version_type=sunos
  15356. need_lib_prefix=no
  15357. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15358. case $host_os in
  15359. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15360. *) need_version=no ;;
  15361. esac
  15362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15363. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15364. shlibpath_var=LD_LIBRARY_PATH
  15365. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15366. case $host_os in
  15367. openbsd2.[89] | openbsd2.[89].*)
  15368. shlibpath_overrides_runpath=no
  15369. ;;
  15370. *)
  15371. shlibpath_overrides_runpath=yes
  15372. ;;
  15373. esac
  15374. else
  15375. shlibpath_overrides_runpath=yes
  15376. fi
  15377. ;;
  15378. os2*)
  15379. libname_spec='$name'
  15380. shrext_cmds=".dll"
  15381. need_lib_prefix=no
  15382. library_names_spec='$libname${shared_ext} $libname.a'
  15383. dynamic_linker='OS/2 ld.exe'
  15384. shlibpath_var=LIBPATH
  15385. ;;
  15386. osf3* | osf4* | osf5*)
  15387. version_type=osf
  15388. need_lib_prefix=no
  15389. need_version=no
  15390. soname_spec='${libname}${release}${shared_ext}$major'
  15391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15392. shlibpath_var=LD_LIBRARY_PATH
  15393. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15394. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15395. ;;
  15396. sco3.2v5*)
  15397. version_type=osf
  15398. soname_spec='${libname}${release}${shared_ext}$major'
  15399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15400. shlibpath_var=LD_LIBRARY_PATH
  15401. ;;
  15402. solaris*)
  15403. version_type=linux
  15404. need_lib_prefix=no
  15405. need_version=no
  15406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15407. soname_spec='${libname}${release}${shared_ext}$major'
  15408. shlibpath_var=LD_LIBRARY_PATH
  15409. shlibpath_overrides_runpath=yes
  15410. hardcode_into_libs=yes
  15411. # ldd complains unless libraries are executable
  15412. postinstall_cmds='chmod +x $lib'
  15413. ;;
  15414. sunos4*)
  15415. version_type=sunos
  15416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15417. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15418. shlibpath_var=LD_LIBRARY_PATH
  15419. shlibpath_overrides_runpath=yes
  15420. if test "$with_gnu_ld" = yes; then
  15421. need_lib_prefix=no
  15422. fi
  15423. need_version=yes
  15424. ;;
  15425. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15426. version_type=linux
  15427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15428. soname_spec='${libname}${release}${shared_ext}$major'
  15429. shlibpath_var=LD_LIBRARY_PATH
  15430. case $host_vendor in
  15431. sni)
  15432. shlibpath_overrides_runpath=no
  15433. need_lib_prefix=no
  15434. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15435. runpath_var=LD_RUN_PATH
  15436. ;;
  15437. siemens)
  15438. need_lib_prefix=no
  15439. ;;
  15440. motorola)
  15441. need_lib_prefix=no
  15442. need_version=no
  15443. shlibpath_overrides_runpath=no
  15444. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15445. ;;
  15446. esac
  15447. ;;
  15448. sysv4*MP*)
  15449. if test -d /usr/nec ;then
  15450. version_type=linux
  15451. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15452. soname_spec='$libname${shared_ext}.$major'
  15453. shlibpath_var=LD_LIBRARY_PATH
  15454. fi
  15455. ;;
  15456. uts4*)
  15457. version_type=linux
  15458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15459. soname_spec='${libname}${release}${shared_ext}$major'
  15460. shlibpath_var=LD_LIBRARY_PATH
  15461. ;;
  15462. *)
  15463. dynamic_linker=no
  15464. ;;
  15465. esac
  15466. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15467. echo "${ECHO_T}$dynamic_linker" >&6
  15468. test "$dynamic_linker" = no && can_build_shared=no
  15469. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15470. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15471. hardcode_action_GCJ=
  15472. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15473. test -n "$runpath_var_GCJ" || \
  15474. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15475. # We can hardcode non-existant directories.
  15476. if test "$hardcode_direct_GCJ" != no &&
  15477. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15478. # have to relink, otherwise we might link with an installed library
  15479. # when we should be linking with a yet-to-be-installed one
  15480. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15481. test "$hardcode_minus_L_GCJ" != no; then
  15482. # Linking always hardcodes the temporary library directory.
  15483. hardcode_action_GCJ=relink
  15484. else
  15485. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15486. hardcode_action_GCJ=immediate
  15487. fi
  15488. else
  15489. # We cannot hardcode anything, or else we can only hardcode existing
  15490. # directories.
  15491. hardcode_action_GCJ=unsupported
  15492. fi
  15493. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15494. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15495. if test "$hardcode_action_GCJ" = relink; then
  15496. # Fast installation is not supported
  15497. enable_fast_install=no
  15498. elif test "$shlibpath_overrides_runpath" = yes ||
  15499. test "$enable_shared" = no; then
  15500. # Fast installation is not necessary
  15501. enable_fast_install=needless
  15502. fi
  15503. striplib=
  15504. old_striplib=
  15505. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15506. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15507. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15508. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15509. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15510. echo "$as_me:$LINENO: result: yes" >&5
  15511. echo "${ECHO_T}yes" >&6
  15512. else
  15513. # FIXME - insert some real tests, host_os isn't really good enough
  15514. case $host_os in
  15515. darwin*)
  15516. if test -n "$STRIP" ; then
  15517. striplib="$STRIP -x"
  15518. echo "$as_me:$LINENO: result: yes" >&5
  15519. echo "${ECHO_T}yes" >&6
  15520. else
  15521. echo "$as_me:$LINENO: result: no" >&5
  15522. echo "${ECHO_T}no" >&6
  15523. fi
  15524. ;;
  15525. *)
  15526. echo "$as_me:$LINENO: result: no" >&5
  15527. echo "${ECHO_T}no" >&6
  15528. ;;
  15529. esac
  15530. fi
  15531. if test "x$enable_dlopen" != xyes; then
  15532. enable_dlopen=unknown
  15533. enable_dlopen_self=unknown
  15534. enable_dlopen_self_static=unknown
  15535. else
  15536. lt_cv_dlopen=no
  15537. lt_cv_dlopen_libs=
  15538. case $host_os in
  15539. beos*)
  15540. lt_cv_dlopen="load_add_on"
  15541. lt_cv_dlopen_libs=
  15542. lt_cv_dlopen_self=yes
  15543. ;;
  15544. mingw* | pw32*)
  15545. lt_cv_dlopen="LoadLibrary"
  15546. lt_cv_dlopen_libs=
  15547. ;;
  15548. cygwin*)
  15549. lt_cv_dlopen="dlopen"
  15550. lt_cv_dlopen_libs=
  15551. ;;
  15552. darwin*)
  15553. # if libdl is installed we need to link against it
  15554. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15555. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15556. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15557. echo $ECHO_N "(cached) $ECHO_C" >&6
  15558. else
  15559. ac_check_lib_save_LIBS=$LIBS
  15560. LIBS="-ldl $LIBS"
  15561. cat >conftest.$ac_ext <<_ACEOF
  15562. /* confdefs.h. */
  15563. _ACEOF
  15564. cat confdefs.h >>conftest.$ac_ext
  15565. cat >>conftest.$ac_ext <<_ACEOF
  15566. /* end confdefs.h. */
  15567. /* Override any gcc2 internal prototype to avoid an error. */
  15568. #ifdef __cplusplus
  15569. extern "C"
  15570. #endif
  15571. /* We use char because int might match the return type of a gcc2
  15572. builtin and then its argument prototype would still apply. */
  15573. char dlopen ();
  15574. int
  15575. main ()
  15576. {
  15577. dlopen ();
  15578. ;
  15579. return 0;
  15580. }
  15581. _ACEOF
  15582. rm -f conftest.$ac_objext conftest$ac_exeext
  15583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15584. (eval $ac_link) 2>conftest.er1
  15585. ac_status=$?
  15586. grep -v '^ *+' conftest.er1 >conftest.err
  15587. rm -f conftest.er1
  15588. cat conftest.err >&5
  15589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15590. (exit $ac_status); } &&
  15591. { ac_try='test -z "$ac_c_werror_flag"
  15592. || test ! -s conftest.err'
  15593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15594. (eval $ac_try) 2>&5
  15595. ac_status=$?
  15596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15597. (exit $ac_status); }; } &&
  15598. { ac_try='test -s conftest$ac_exeext'
  15599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15600. (eval $ac_try) 2>&5
  15601. ac_status=$?
  15602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15603. (exit $ac_status); }; }; then
  15604. ac_cv_lib_dl_dlopen=yes
  15605. else
  15606. echo "$as_me: failed program was:" >&5
  15607. sed 's/^/| /' conftest.$ac_ext >&5
  15608. ac_cv_lib_dl_dlopen=no
  15609. fi
  15610. rm -f conftest.err conftest.$ac_objext \
  15611. conftest$ac_exeext conftest.$ac_ext
  15612. LIBS=$ac_check_lib_save_LIBS
  15613. fi
  15614. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15615. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15616. if test $ac_cv_lib_dl_dlopen = yes; then
  15617. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15618. else
  15619. lt_cv_dlopen="dyld"
  15620. lt_cv_dlopen_libs=
  15621. lt_cv_dlopen_self=yes
  15622. fi
  15623. ;;
  15624. *)
  15625. echo "$as_me:$LINENO: checking for shl_load" >&5
  15626. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  15627. if test "${ac_cv_func_shl_load+set}" = set; then
  15628. echo $ECHO_N "(cached) $ECHO_C" >&6
  15629. else
  15630. cat >conftest.$ac_ext <<_ACEOF
  15631. /* confdefs.h. */
  15632. _ACEOF
  15633. cat confdefs.h >>conftest.$ac_ext
  15634. cat >>conftest.$ac_ext <<_ACEOF
  15635. /* end confdefs.h. */
  15636. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15638. #define shl_load innocuous_shl_load
  15639. /* System header to define __stub macros and hopefully few prototypes,
  15640. which can conflict with char shl_load (); below.
  15641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15642. <limits.h> exists even on freestanding compilers. */
  15643. #ifdef __STDC__
  15644. # include <limits.h>
  15645. #else
  15646. # include <assert.h>
  15647. #endif
  15648. #undef shl_load
  15649. /* Override any gcc2 internal prototype to avoid an error. */
  15650. #ifdef __cplusplus
  15651. extern "C"
  15652. {
  15653. #endif
  15654. /* We use char because int might match the return type of a gcc2
  15655. builtin and then its argument prototype would still apply. */
  15656. char shl_load ();
  15657. /* The GNU C library defines this for functions which it implements
  15658. to always fail with ENOSYS. Some functions are actually named
  15659. something starting with __ and the normal name is an alias. */
  15660. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  15661. choke me
  15662. #else
  15663. char (*f) () = shl_load;
  15664. #endif
  15665. #ifdef __cplusplus
  15666. }
  15667. #endif
  15668. int
  15669. main ()
  15670. {
  15671. return f != shl_load;
  15672. ;
  15673. return 0;
  15674. }
  15675. _ACEOF
  15676. rm -f conftest.$ac_objext conftest$ac_exeext
  15677. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15678. (eval $ac_link) 2>conftest.er1
  15679. ac_status=$?
  15680. grep -v '^ *+' conftest.er1 >conftest.err
  15681. rm -f conftest.er1
  15682. cat conftest.err >&5
  15683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15684. (exit $ac_status); } &&
  15685. { ac_try='test -z "$ac_c_werror_flag"
  15686. || test ! -s conftest.err'
  15687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15688. (eval $ac_try) 2>&5
  15689. ac_status=$?
  15690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15691. (exit $ac_status); }; } &&
  15692. { ac_try='test -s conftest$ac_exeext'
  15693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15694. (eval $ac_try) 2>&5
  15695. ac_status=$?
  15696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15697. (exit $ac_status); }; }; then
  15698. ac_cv_func_shl_load=yes
  15699. else
  15700. echo "$as_me: failed program was:" >&5
  15701. sed 's/^/| /' conftest.$ac_ext >&5
  15702. ac_cv_func_shl_load=no
  15703. fi
  15704. rm -f conftest.err conftest.$ac_objext \
  15705. conftest$ac_exeext conftest.$ac_ext
  15706. fi
  15707. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15708. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  15709. if test $ac_cv_func_shl_load = yes; then
  15710. lt_cv_dlopen="shl_load"
  15711. else
  15712. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15713. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  15714. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15715. echo $ECHO_N "(cached) $ECHO_C" >&6
  15716. else
  15717. ac_check_lib_save_LIBS=$LIBS
  15718. LIBS="-ldld $LIBS"
  15719. cat >conftest.$ac_ext <<_ACEOF
  15720. /* confdefs.h. */
  15721. _ACEOF
  15722. cat confdefs.h >>conftest.$ac_ext
  15723. cat >>conftest.$ac_ext <<_ACEOF
  15724. /* end confdefs.h. */
  15725. /* Override any gcc2 internal prototype to avoid an error. */
  15726. #ifdef __cplusplus
  15727. extern "C"
  15728. #endif
  15729. /* We use char because int might match the return type of a gcc2
  15730. builtin and then its argument prototype would still apply. */
  15731. char shl_load ();
  15732. int
  15733. main ()
  15734. {
  15735. shl_load ();
  15736. ;
  15737. return 0;
  15738. }
  15739. _ACEOF
  15740. rm -f conftest.$ac_objext conftest$ac_exeext
  15741. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15742. (eval $ac_link) 2>conftest.er1
  15743. ac_status=$?
  15744. grep -v '^ *+' conftest.er1 >conftest.err
  15745. rm -f conftest.er1
  15746. cat conftest.err >&5
  15747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15748. (exit $ac_status); } &&
  15749. { ac_try='test -z "$ac_c_werror_flag"
  15750. || test ! -s conftest.err'
  15751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15752. (eval $ac_try) 2>&5
  15753. ac_status=$?
  15754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15755. (exit $ac_status); }; } &&
  15756. { ac_try='test -s conftest$ac_exeext'
  15757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15758. (eval $ac_try) 2>&5
  15759. ac_status=$?
  15760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15761. (exit $ac_status); }; }; then
  15762. ac_cv_lib_dld_shl_load=yes
  15763. else
  15764. echo "$as_me: failed program was:" >&5
  15765. sed 's/^/| /' conftest.$ac_ext >&5
  15766. ac_cv_lib_dld_shl_load=no
  15767. fi
  15768. rm -f conftest.err conftest.$ac_objext \
  15769. conftest$ac_exeext conftest.$ac_ext
  15770. LIBS=$ac_check_lib_save_LIBS
  15771. fi
  15772. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  15773. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  15774. if test $ac_cv_lib_dld_shl_load = yes; then
  15775. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  15776. else
  15777. echo "$as_me:$LINENO: checking for dlopen" >&5
  15778. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  15779. if test "${ac_cv_func_dlopen+set}" = set; then
  15780. echo $ECHO_N "(cached) $ECHO_C" >&6
  15781. else
  15782. cat >conftest.$ac_ext <<_ACEOF
  15783. /* confdefs.h. */
  15784. _ACEOF
  15785. cat confdefs.h >>conftest.$ac_ext
  15786. cat >>conftest.$ac_ext <<_ACEOF
  15787. /* end confdefs.h. */
  15788. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  15789. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15790. #define dlopen innocuous_dlopen
  15791. /* System header to define __stub macros and hopefully few prototypes,
  15792. which can conflict with char dlopen (); below.
  15793. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15794. <limits.h> exists even on freestanding compilers. */
  15795. #ifdef __STDC__
  15796. # include <limits.h>
  15797. #else
  15798. # include <assert.h>
  15799. #endif
  15800. #undef dlopen
  15801. /* Override any gcc2 internal prototype to avoid an error. */
  15802. #ifdef __cplusplus
  15803. extern "C"
  15804. {
  15805. #endif
  15806. /* We use char because int might match the return type of a gcc2
  15807. builtin and then its argument prototype would still apply. */
  15808. char dlopen ();
  15809. /* The GNU C library defines this for functions which it implements
  15810. to always fail with ENOSYS. Some functions are actually named
  15811. something starting with __ and the normal name is an alias. */
  15812. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  15813. choke me
  15814. #else
  15815. char (*f) () = dlopen;
  15816. #endif
  15817. #ifdef __cplusplus
  15818. }
  15819. #endif
  15820. int
  15821. main ()
  15822. {
  15823. return f != dlopen;
  15824. ;
  15825. return 0;
  15826. }
  15827. _ACEOF
  15828. rm -f conftest.$ac_objext conftest$ac_exeext
  15829. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15830. (eval $ac_link) 2>conftest.er1
  15831. ac_status=$?
  15832. grep -v '^ *+' conftest.er1 >conftest.err
  15833. rm -f conftest.er1
  15834. cat conftest.err >&5
  15835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15836. (exit $ac_status); } &&
  15837. { ac_try='test -z "$ac_c_werror_flag"
  15838. || test ! -s conftest.err'
  15839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15840. (eval $ac_try) 2>&5
  15841. ac_status=$?
  15842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15843. (exit $ac_status); }; } &&
  15844. { ac_try='test -s conftest$ac_exeext'
  15845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15846. (eval $ac_try) 2>&5
  15847. ac_status=$?
  15848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15849. (exit $ac_status); }; }; then
  15850. ac_cv_func_dlopen=yes
  15851. else
  15852. echo "$as_me: failed program was:" >&5
  15853. sed 's/^/| /' conftest.$ac_ext >&5
  15854. ac_cv_func_dlopen=no
  15855. fi
  15856. rm -f conftest.err conftest.$ac_objext \
  15857. conftest$ac_exeext conftest.$ac_ext
  15858. fi
  15859. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  15860. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  15861. if test $ac_cv_func_dlopen = yes; then
  15862. lt_cv_dlopen="dlopen"
  15863. else
  15864. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15865. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  15866. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15867. echo $ECHO_N "(cached) $ECHO_C" >&6
  15868. else
  15869. ac_check_lib_save_LIBS=$LIBS
  15870. LIBS="-ldl $LIBS"
  15871. cat >conftest.$ac_ext <<_ACEOF
  15872. /* confdefs.h. */
  15873. _ACEOF
  15874. cat confdefs.h >>conftest.$ac_ext
  15875. cat >>conftest.$ac_ext <<_ACEOF
  15876. /* end confdefs.h. */
  15877. /* Override any gcc2 internal prototype to avoid an error. */
  15878. #ifdef __cplusplus
  15879. extern "C"
  15880. #endif
  15881. /* We use char because int might match the return type of a gcc2
  15882. builtin and then its argument prototype would still apply. */
  15883. char dlopen ();
  15884. int
  15885. main ()
  15886. {
  15887. dlopen ();
  15888. ;
  15889. return 0;
  15890. }
  15891. _ACEOF
  15892. rm -f conftest.$ac_objext conftest$ac_exeext
  15893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15894. (eval $ac_link) 2>conftest.er1
  15895. ac_status=$?
  15896. grep -v '^ *+' conftest.er1 >conftest.err
  15897. rm -f conftest.er1
  15898. cat conftest.err >&5
  15899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15900. (exit $ac_status); } &&
  15901. { ac_try='test -z "$ac_c_werror_flag"
  15902. || test ! -s conftest.err'
  15903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15904. (eval $ac_try) 2>&5
  15905. ac_status=$?
  15906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15907. (exit $ac_status); }; } &&
  15908. { ac_try='test -s conftest$ac_exeext'
  15909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15910. (eval $ac_try) 2>&5
  15911. ac_status=$?
  15912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15913. (exit $ac_status); }; }; then
  15914. ac_cv_lib_dl_dlopen=yes
  15915. else
  15916. echo "$as_me: failed program was:" >&5
  15917. sed 's/^/| /' conftest.$ac_ext >&5
  15918. ac_cv_lib_dl_dlopen=no
  15919. fi
  15920. rm -f conftest.err conftest.$ac_objext \
  15921. conftest$ac_exeext conftest.$ac_ext
  15922. LIBS=$ac_check_lib_save_LIBS
  15923. fi
  15924. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15925. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  15926. if test $ac_cv_lib_dl_dlopen = yes; then
  15927. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15928. else
  15929. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  15930. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  15931. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  15932. echo $ECHO_N "(cached) $ECHO_C" >&6
  15933. else
  15934. ac_check_lib_save_LIBS=$LIBS
  15935. LIBS="-lsvld $LIBS"
  15936. cat >conftest.$ac_ext <<_ACEOF
  15937. /* confdefs.h. */
  15938. _ACEOF
  15939. cat confdefs.h >>conftest.$ac_ext
  15940. cat >>conftest.$ac_ext <<_ACEOF
  15941. /* end confdefs.h. */
  15942. /* Override any gcc2 internal prototype to avoid an error. */
  15943. #ifdef __cplusplus
  15944. extern "C"
  15945. #endif
  15946. /* We use char because int might match the return type of a gcc2
  15947. builtin and then its argument prototype would still apply. */
  15948. char dlopen ();
  15949. int
  15950. main ()
  15951. {
  15952. dlopen ();
  15953. ;
  15954. return 0;
  15955. }
  15956. _ACEOF
  15957. rm -f conftest.$ac_objext conftest$ac_exeext
  15958. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15959. (eval $ac_link) 2>conftest.er1
  15960. ac_status=$?
  15961. grep -v '^ *+' conftest.er1 >conftest.err
  15962. rm -f conftest.er1
  15963. cat conftest.err >&5
  15964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15965. (exit $ac_status); } &&
  15966. { ac_try='test -z "$ac_c_werror_flag"
  15967. || test ! -s conftest.err'
  15968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15969. (eval $ac_try) 2>&5
  15970. ac_status=$?
  15971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15972. (exit $ac_status); }; } &&
  15973. { ac_try='test -s conftest$ac_exeext'
  15974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15975. (eval $ac_try) 2>&5
  15976. ac_status=$?
  15977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15978. (exit $ac_status); }; }; then
  15979. ac_cv_lib_svld_dlopen=yes
  15980. else
  15981. echo "$as_me: failed program was:" >&5
  15982. sed 's/^/| /' conftest.$ac_ext >&5
  15983. ac_cv_lib_svld_dlopen=no
  15984. fi
  15985. rm -f conftest.err conftest.$ac_objext \
  15986. conftest$ac_exeext conftest.$ac_ext
  15987. LIBS=$ac_check_lib_save_LIBS
  15988. fi
  15989. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  15990. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  15991. if test $ac_cv_lib_svld_dlopen = yes; then
  15992. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15993. else
  15994. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  15995. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  15996. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  15997. echo $ECHO_N "(cached) $ECHO_C" >&6
  15998. else
  15999. ac_check_lib_save_LIBS=$LIBS
  16000. LIBS="-ldld $LIBS"
  16001. cat >conftest.$ac_ext <<_ACEOF
  16002. /* confdefs.h. */
  16003. _ACEOF
  16004. cat confdefs.h >>conftest.$ac_ext
  16005. cat >>conftest.$ac_ext <<_ACEOF
  16006. /* end confdefs.h. */
  16007. /* Override any gcc2 internal prototype to avoid an error. */
  16008. #ifdef __cplusplus
  16009. extern "C"
  16010. #endif
  16011. /* We use char because int might match the return type of a gcc2
  16012. builtin and then its argument prototype would still apply. */
  16013. char dld_link ();
  16014. int
  16015. main ()
  16016. {
  16017. dld_link ();
  16018. ;
  16019. return 0;
  16020. }
  16021. _ACEOF
  16022. rm -f conftest.$ac_objext conftest$ac_exeext
  16023. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16024. (eval $ac_link) 2>conftest.er1
  16025. ac_status=$?
  16026. grep -v '^ *+' conftest.er1 >conftest.err
  16027. rm -f conftest.er1
  16028. cat conftest.err >&5
  16029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16030. (exit $ac_status); } &&
  16031. { ac_try='test -z "$ac_c_werror_flag"
  16032. || test ! -s conftest.err'
  16033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16034. (eval $ac_try) 2>&5
  16035. ac_status=$?
  16036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16037. (exit $ac_status); }; } &&
  16038. { ac_try='test -s conftest$ac_exeext'
  16039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16040. (eval $ac_try) 2>&5
  16041. ac_status=$?
  16042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16043. (exit $ac_status); }; }; then
  16044. ac_cv_lib_dld_dld_link=yes
  16045. else
  16046. echo "$as_me: failed program was:" >&5
  16047. sed 's/^/| /' conftest.$ac_ext >&5
  16048. ac_cv_lib_dld_dld_link=no
  16049. fi
  16050. rm -f conftest.err conftest.$ac_objext \
  16051. conftest$ac_exeext conftest.$ac_ext
  16052. LIBS=$ac_check_lib_save_LIBS
  16053. fi
  16054. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  16055. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  16056. if test $ac_cv_lib_dld_dld_link = yes; then
  16057. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  16058. fi
  16059. fi
  16060. fi
  16061. fi
  16062. fi
  16063. fi
  16064. ;;
  16065. esac
  16066. if test "x$lt_cv_dlopen" != xno; then
  16067. enable_dlopen=yes
  16068. else
  16069. enable_dlopen=no
  16070. fi
  16071. case $lt_cv_dlopen in
  16072. dlopen)
  16073. save_CPPFLAGS="$CPPFLAGS"
  16074. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16075. save_LDFLAGS="$LDFLAGS"
  16076. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16077. save_LIBS="$LIBS"
  16078. LIBS="$lt_cv_dlopen_libs $LIBS"
  16079. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16080. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16081. if test "${lt_cv_dlopen_self+set}" = set; then
  16082. echo $ECHO_N "(cached) $ECHO_C" >&6
  16083. else
  16084. if test "$cross_compiling" = yes; then :
  16085. lt_cv_dlopen_self=cross
  16086. else
  16087. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16088. lt_status=$lt_dlunknown
  16089. cat > conftest.$ac_ext <<EOF
  16090. #line 17836 "configure"
  16091. #include "confdefs.h"
  16092. #if HAVE_DLFCN_H
  16093. #include <dlfcn.h>
  16094. #endif
  16095. #include <stdio.h>
  16096. #ifdef RTLD_GLOBAL
  16097. # define LT_DLGLOBAL RTLD_GLOBAL
  16098. #else
  16099. # ifdef DL_GLOBAL
  16100. # define LT_DLGLOBAL DL_GLOBAL
  16101. # else
  16102. # define LT_DLGLOBAL 0
  16103. # endif
  16104. #endif
  16105. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16106. find out it does not work in some platform. */
  16107. #ifndef LT_DLLAZY_OR_NOW
  16108. # ifdef RTLD_LAZY
  16109. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16110. # else
  16111. # ifdef DL_LAZY
  16112. # define LT_DLLAZY_OR_NOW DL_LAZY
  16113. # else
  16114. # ifdef RTLD_NOW
  16115. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16116. # else
  16117. # ifdef DL_NOW
  16118. # define LT_DLLAZY_OR_NOW DL_NOW
  16119. # else
  16120. # define LT_DLLAZY_OR_NOW 0
  16121. # endif
  16122. # endif
  16123. # endif
  16124. # endif
  16125. #endif
  16126. #ifdef __cplusplus
  16127. extern "C" void exit (int);
  16128. #endif
  16129. void fnord() { int i=42;}
  16130. int main ()
  16131. {
  16132. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16133. int status = $lt_dlunknown;
  16134. if (self)
  16135. {
  16136. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16137. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16138. /* dlclose (self); */
  16139. }
  16140. exit (status);
  16141. }
  16142. EOF
  16143. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16144. (eval $ac_link) 2>&5
  16145. ac_status=$?
  16146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16147. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16148. (./conftest; exit; ) 2>/dev/null
  16149. lt_status=$?
  16150. case x$lt_status in
  16151. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16152. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16153. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16154. esac
  16155. else :
  16156. # compilation failed
  16157. lt_cv_dlopen_self=no
  16158. fi
  16159. fi
  16160. rm -fr conftest*
  16161. fi
  16162. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16163. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16164. if test "x$lt_cv_dlopen_self" = xyes; then
  16165. LDFLAGS="$LDFLAGS $link_static_flag"
  16166. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16167. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16168. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16169. echo $ECHO_N "(cached) $ECHO_C" >&6
  16170. else
  16171. if test "$cross_compiling" = yes; then :
  16172. lt_cv_dlopen_self_static=cross
  16173. else
  16174. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16175. lt_status=$lt_dlunknown
  16176. cat > conftest.$ac_ext <<EOF
  16177. #line 17934 "configure"
  16178. #include "confdefs.h"
  16179. #if HAVE_DLFCN_H
  16180. #include <dlfcn.h>
  16181. #endif
  16182. #include <stdio.h>
  16183. #ifdef RTLD_GLOBAL
  16184. # define LT_DLGLOBAL RTLD_GLOBAL
  16185. #else
  16186. # ifdef DL_GLOBAL
  16187. # define LT_DLGLOBAL DL_GLOBAL
  16188. # else
  16189. # define LT_DLGLOBAL 0
  16190. # endif
  16191. #endif
  16192. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16193. find out it does not work in some platform. */
  16194. #ifndef LT_DLLAZY_OR_NOW
  16195. # ifdef RTLD_LAZY
  16196. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16197. # else
  16198. # ifdef DL_LAZY
  16199. # define LT_DLLAZY_OR_NOW DL_LAZY
  16200. # else
  16201. # ifdef RTLD_NOW
  16202. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16203. # else
  16204. # ifdef DL_NOW
  16205. # define LT_DLLAZY_OR_NOW DL_NOW
  16206. # else
  16207. # define LT_DLLAZY_OR_NOW 0
  16208. # endif
  16209. # endif
  16210. # endif
  16211. # endif
  16212. #endif
  16213. #ifdef __cplusplus
  16214. extern "C" void exit (int);
  16215. #endif
  16216. void fnord() { int i=42;}
  16217. int main ()
  16218. {
  16219. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16220. int status = $lt_dlunknown;
  16221. if (self)
  16222. {
  16223. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16224. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16225. /* dlclose (self); */
  16226. }
  16227. exit (status);
  16228. }
  16229. EOF
  16230. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16231. (eval $ac_link) 2>&5
  16232. ac_status=$?
  16233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16234. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16235. (./conftest; exit; ) 2>/dev/null
  16236. lt_status=$?
  16237. case x$lt_status in
  16238. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16239. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16240. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16241. esac
  16242. else :
  16243. # compilation failed
  16244. lt_cv_dlopen_self_static=no
  16245. fi
  16246. fi
  16247. rm -fr conftest*
  16248. fi
  16249. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16250. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16251. fi
  16252. CPPFLAGS="$save_CPPFLAGS"
  16253. LDFLAGS="$save_LDFLAGS"
  16254. LIBS="$save_LIBS"
  16255. ;;
  16256. esac
  16257. case $lt_cv_dlopen_self in
  16258. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16259. *) enable_dlopen_self=unknown ;;
  16260. esac
  16261. case $lt_cv_dlopen_self_static in
  16262. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16263. *) enable_dlopen_self_static=unknown ;;
  16264. esac
  16265. fi
  16266. # The else clause should only fire when bootstrapping the
  16267. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16268. # with your package, and you will get complaints that there are
  16269. # no rules to generate ltmain.sh.
  16270. if test -f "$ltmain"; then
  16271. # See if we are running on zsh, and set the options which allow our commands through
  16272. # without removal of \ escapes.
  16273. if test -n "${ZSH_VERSION+set}" ; then
  16274. setopt NO_GLOB_SUBST
  16275. fi
  16276. # Now quote all the things that may contain metacharacters while being
  16277. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16278. # variables and quote the copies for generation of the libtool script.
  16279. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16280. SED SHELL STRIP \
  16281. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16282. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16283. deplibs_check_method reload_flag reload_cmds need_locks \
  16284. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16285. lt_cv_sys_global_symbol_to_c_name_address \
  16286. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16287. old_postinstall_cmds old_postuninstall_cmds \
  16288. compiler_GCJ \
  16289. CC_GCJ \
  16290. LD_GCJ \
  16291. lt_prog_compiler_wl_GCJ \
  16292. lt_prog_compiler_pic_GCJ \
  16293. lt_prog_compiler_static_GCJ \
  16294. lt_prog_compiler_no_builtin_flag_GCJ \
  16295. export_dynamic_flag_spec_GCJ \
  16296. thread_safe_flag_spec_GCJ \
  16297. whole_archive_flag_spec_GCJ \
  16298. enable_shared_with_static_runtimes_GCJ \
  16299. old_archive_cmds_GCJ \
  16300. old_archive_from_new_cmds_GCJ \
  16301. predep_objects_GCJ \
  16302. postdep_objects_GCJ \
  16303. predeps_GCJ \
  16304. postdeps_GCJ \
  16305. compiler_lib_search_path_GCJ \
  16306. archive_cmds_GCJ \
  16307. archive_expsym_cmds_GCJ \
  16308. postinstall_cmds_GCJ \
  16309. postuninstall_cmds_GCJ \
  16310. old_archive_from_expsyms_cmds_GCJ \
  16311. allow_undefined_flag_GCJ \
  16312. no_undefined_flag_GCJ \
  16313. export_symbols_cmds_GCJ \
  16314. hardcode_libdir_flag_spec_GCJ \
  16315. hardcode_libdir_flag_spec_ld_GCJ \
  16316. hardcode_libdir_separator_GCJ \
  16317. hardcode_automatic_GCJ \
  16318. module_cmds_GCJ \
  16319. module_expsym_cmds_GCJ \
  16320. lt_cv_prog_compiler_c_o_GCJ \
  16321. exclude_expsyms_GCJ \
  16322. include_expsyms_GCJ; do
  16323. case $var in
  16324. old_archive_cmds_GCJ | \
  16325. old_archive_from_new_cmds_GCJ | \
  16326. archive_cmds_GCJ | \
  16327. archive_expsym_cmds_GCJ | \
  16328. module_cmds_GCJ | \
  16329. module_expsym_cmds_GCJ | \
  16330. old_archive_from_expsyms_cmds_GCJ | \
  16331. export_symbols_cmds_GCJ | \
  16332. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16333. postinstall_cmds | postuninstall_cmds | \
  16334. old_postinstall_cmds | old_postuninstall_cmds | \
  16335. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16336. # Double-quote double-evaled strings.
  16337. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16338. ;;
  16339. *)
  16340. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16341. ;;
  16342. esac
  16343. done
  16344. case $lt_echo in
  16345. *'\$0 --fallback-echo"')
  16346. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16347. ;;
  16348. esac
  16349. cfgfile="$ofile"
  16350. cat <<__EOF__ >> "$cfgfile"
  16351. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16352. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16353. # Shell to use when invoking shell scripts.
  16354. SHELL=$lt_SHELL
  16355. # Whether or not to build shared libraries.
  16356. build_libtool_libs=$enable_shared
  16357. # Whether or not to build static libraries.
  16358. build_old_libs=$enable_static
  16359. # Whether or not to add -lc for building shared libraries.
  16360. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16361. # Whether or not to disallow shared libs when runtime libs are static
  16362. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16363. # Whether or not to optimize for fast installation.
  16364. fast_install=$enable_fast_install
  16365. # The host system.
  16366. host_alias=$host_alias
  16367. host=$host
  16368. host_os=$host_os
  16369. # The build system.
  16370. build_alias=$build_alias
  16371. build=$build
  16372. build_os=$build_os
  16373. # An echo program that does not interpret backslashes.
  16374. echo=$lt_echo
  16375. # The archiver.
  16376. AR=$lt_AR
  16377. AR_FLAGS=$lt_AR_FLAGS
  16378. # A C compiler.
  16379. LTCC=$lt_LTCC
  16380. # A language-specific compiler.
  16381. CC=$lt_compiler_GCJ
  16382. # Is the compiler the GNU C compiler?
  16383. with_gcc=$GCC_GCJ
  16384. # An ERE matcher.
  16385. EGREP=$lt_EGREP
  16386. # The linker used to build libraries.
  16387. LD=$lt_LD_GCJ
  16388. # Whether we need hard or soft links.
  16389. LN_S=$lt_LN_S
  16390. # A BSD-compatible nm program.
  16391. NM=$lt_NM
  16392. # A symbol stripping program
  16393. STRIP=$lt_STRIP
  16394. # Used to examine libraries when file_magic_cmd begins "file"
  16395. MAGIC_CMD=$MAGIC_CMD
  16396. # Used on cygwin: DLL creation program.
  16397. DLLTOOL="$DLLTOOL"
  16398. # Used on cygwin: object dumper.
  16399. OBJDUMP="$OBJDUMP"
  16400. # Used on cygwin: assembler.
  16401. AS="$AS"
  16402. # The name of the directory that contains temporary libtool files.
  16403. objdir=$objdir
  16404. # How to create reloadable object files.
  16405. reload_flag=$lt_reload_flag
  16406. reload_cmds=$lt_reload_cmds
  16407. # How to pass a linker flag through the compiler.
  16408. wl=$lt_lt_prog_compiler_wl_GCJ
  16409. # Object file suffix (normally "o").
  16410. objext="$ac_objext"
  16411. # Old archive suffix (normally "a").
  16412. libext="$libext"
  16413. # Shared library suffix (normally ".so").
  16414. shrext_cmds='$shrext_cmds'
  16415. # Executable file suffix (normally "").
  16416. exeext="$exeext"
  16417. # Additional compiler flags for building library objects.
  16418. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16419. pic_mode=$pic_mode
  16420. # What is the maximum length of a command?
  16421. max_cmd_len=$lt_cv_sys_max_cmd_len
  16422. # Does compiler simultaneously support -c and -o options?
  16423. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16424. # Must we lock files when doing compilation?
  16425. need_locks=$lt_need_locks
  16426. # Do we need the lib prefix for modules?
  16427. need_lib_prefix=$need_lib_prefix
  16428. # Do we need a version for libraries?
  16429. need_version=$need_version
  16430. # Whether dlopen is supported.
  16431. dlopen_support=$enable_dlopen
  16432. # Whether dlopen of programs is supported.
  16433. dlopen_self=$enable_dlopen_self
  16434. # Whether dlopen of statically linked programs is supported.
  16435. dlopen_self_static=$enable_dlopen_self_static
  16436. # Compiler flag to prevent dynamic linking.
  16437. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16438. # Compiler flag to turn off builtin functions.
  16439. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16440. # Compiler flag to allow reflexive dlopens.
  16441. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16442. # Compiler flag to generate shared objects directly from archives.
  16443. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16444. # Compiler flag to generate thread-safe objects.
  16445. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16446. # Library versioning type.
  16447. version_type=$version_type
  16448. # Format of library name prefix.
  16449. libname_spec=$lt_libname_spec
  16450. # List of archive names. First name is the real one, the rest are links.
  16451. # The last name is the one that the linker finds with -lNAME.
  16452. library_names_spec=$lt_library_names_spec
  16453. # The coded name of the library, if different from the real name.
  16454. soname_spec=$lt_soname_spec
  16455. # Commands used to build and install an old-style archive.
  16456. RANLIB=$lt_RANLIB
  16457. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16458. old_postinstall_cmds=$lt_old_postinstall_cmds
  16459. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16460. # Create an old-style archive from a shared archive.
  16461. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16462. # Create a temporary old-style archive to link instead of a shared archive.
  16463. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16464. # Commands used to build and install a shared archive.
  16465. archive_cmds=$lt_archive_cmds_GCJ
  16466. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16467. postinstall_cmds=$lt_postinstall_cmds
  16468. postuninstall_cmds=$lt_postuninstall_cmds
  16469. # Commands used to build a loadable module (assumed same as above if empty)
  16470. module_cmds=$lt_module_cmds_GCJ
  16471. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16472. # Commands to strip libraries.
  16473. old_striplib=$lt_old_striplib
  16474. striplib=$lt_striplib
  16475. # Dependencies to place before the objects being linked to create a
  16476. # shared library.
  16477. predep_objects=$lt_predep_objects_GCJ
  16478. # Dependencies to place after the objects being linked to create a
  16479. # shared library.
  16480. postdep_objects=$lt_postdep_objects_GCJ
  16481. # Dependencies to place before the objects being linked to create a
  16482. # shared library.
  16483. predeps=$lt_predeps_GCJ
  16484. # Dependencies to place after the objects being linked to create a
  16485. # shared library.
  16486. postdeps=$lt_postdeps_GCJ
  16487. # The library search path used internally by the compiler when linking
  16488. # a shared library.
  16489. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16490. # Method to check whether dependent libraries are shared objects.
  16491. deplibs_check_method=$lt_deplibs_check_method
  16492. # Command to use when deplibs_check_method == file_magic.
  16493. file_magic_cmd=$lt_file_magic_cmd
  16494. # Flag that allows shared libraries with undefined symbols to be built.
  16495. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16496. # Flag that forces no undefined symbols.
  16497. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16498. # Commands used to finish a libtool library installation in a directory.
  16499. finish_cmds=$lt_finish_cmds
  16500. # Same as above, but a single script fragment to be evaled but not shown.
  16501. finish_eval=$lt_finish_eval
  16502. # Take the output of nm and produce a listing of raw symbols and C names.
  16503. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16504. # Transform the output of nm in a proper C declaration
  16505. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16506. # Transform the output of nm in a C name address pair
  16507. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16508. # This is the shared library runtime path variable.
  16509. runpath_var=$runpath_var
  16510. # This is the shared library path variable.
  16511. shlibpath_var=$shlibpath_var
  16512. # Is shlibpath searched before the hard-coded library search path?
  16513. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16514. # How to hardcode a shared library path into an executable.
  16515. hardcode_action=$hardcode_action_GCJ
  16516. # Whether we should hardcode library paths into libraries.
  16517. hardcode_into_libs=$hardcode_into_libs
  16518. # Flag to hardcode \$libdir into a binary during linking.
  16519. # This must work even if \$libdir does not exist.
  16520. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16521. # If ld is used when linking, flag to hardcode \$libdir into
  16522. # a binary during linking. This must work even if \$libdir does
  16523. # not exist.
  16524. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16525. # Whether we need a single -rpath flag with a separated argument.
  16526. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16527. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16528. # resulting binary.
  16529. hardcode_direct=$hardcode_direct_GCJ
  16530. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16531. # resulting binary.
  16532. hardcode_minus_L=$hardcode_minus_L_GCJ
  16533. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16534. # the resulting binary.
  16535. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16536. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16537. # and all subsequent libraries and executables linked against it.
  16538. hardcode_automatic=$hardcode_automatic_GCJ
  16539. # Variables whose values should be saved in libtool wrapper scripts and
  16540. # restored at relink time.
  16541. variables_saved_for_relink="$variables_saved_for_relink"
  16542. # Whether libtool must link a program against all its dependency libraries.
  16543. link_all_deplibs=$link_all_deplibs_GCJ
  16544. # Compile-time system search path for libraries
  16545. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16546. # Run-time system search path for libraries
  16547. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16548. # Fix the shell variable \$srcfile for the compiler.
  16549. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16550. # Set to yes if exported symbols are required.
  16551. always_export_symbols=$always_export_symbols_GCJ
  16552. # The commands to list exported symbols.
  16553. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16554. # The commands to extract the exported symbol list from a shared archive.
  16555. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16556. # Symbols that should not be listed in the preloaded symbols.
  16557. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16558. # Symbols that must always be exported.
  16559. include_expsyms=$lt_include_expsyms_GCJ
  16560. # ### END LIBTOOL TAG CONFIG: $tagname
  16561. __EOF__
  16562. else
  16563. # If there is no Makefile yet, we rely on a make rule to execute
  16564. # `config.status --recheck' to rerun these tests and create the
  16565. # libtool script then.
  16566. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16567. if test -f "$ltmain_in"; then
  16568. test -f Makefile && make "$ltmain"
  16569. fi
  16570. fi
  16571. ac_ext=c
  16572. ac_cpp='$CPP $CPPFLAGS'
  16573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16576. CC="$lt_save_CC"
  16577. else
  16578. tagname=""
  16579. fi
  16580. ;;
  16581. RC)
  16582. # Source file extension for RC test sources.
  16583. ac_ext=rc
  16584. # Object file extension for compiled RC test sources.
  16585. objext=o
  16586. objext_RC=$objext
  16587. # Code to be used in simple compile tests
  16588. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16589. # Code to be used in simple link tests
  16590. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16591. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16592. # If no C compiler was specified, use CC.
  16593. LTCC=${LTCC-"$CC"}
  16594. # Allow CC to be a program name with arguments.
  16595. compiler=$CC
  16596. # save warnings/boilerplate of simple test code
  16597. ac_outfile=conftest.$ac_objext
  16598. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16599. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  16600. _lt_compiler_boilerplate=`cat conftest.err`
  16601. $rm conftest*
  16602. ac_outfile=conftest.$ac_objext
  16603. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16604. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  16605. _lt_linker_boilerplate=`cat conftest.err`
  16606. $rm conftest*
  16607. # Allow CC to be a program name with arguments.
  16608. lt_save_CC="$CC"
  16609. CC=${RC-"windres"}
  16610. compiler=$CC
  16611. compiler_RC=$CC
  16612. for cc_temp in $compiler""; do
  16613. case $cc_temp in
  16614. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16615. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16616. \-*) ;;
  16617. *) break;;
  16618. esac
  16619. done
  16620. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16621. lt_cv_prog_compiler_c_o_RC=yes
  16622. # The else clause should only fire when bootstrapping the
  16623. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16624. # with your package, and you will get complaints that there are
  16625. # no rules to generate ltmain.sh.
  16626. if test -f "$ltmain"; then
  16627. # See if we are running on zsh, and set the options which allow our commands through
  16628. # without removal of \ escapes.
  16629. if test -n "${ZSH_VERSION+set}" ; then
  16630. setopt NO_GLOB_SUBST
  16631. fi
  16632. # Now quote all the things that may contain metacharacters while being
  16633. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16634. # variables and quote the copies for generation of the libtool script.
  16635. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16636. SED SHELL STRIP \
  16637. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16638. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16639. deplibs_check_method reload_flag reload_cmds need_locks \
  16640. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16641. lt_cv_sys_global_symbol_to_c_name_address \
  16642. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16643. old_postinstall_cmds old_postuninstall_cmds \
  16644. compiler_RC \
  16645. CC_RC \
  16646. LD_RC \
  16647. lt_prog_compiler_wl_RC \
  16648. lt_prog_compiler_pic_RC \
  16649. lt_prog_compiler_static_RC \
  16650. lt_prog_compiler_no_builtin_flag_RC \
  16651. export_dynamic_flag_spec_RC \
  16652. thread_safe_flag_spec_RC \
  16653. whole_archive_flag_spec_RC \
  16654. enable_shared_with_static_runtimes_RC \
  16655. old_archive_cmds_RC \
  16656. old_archive_from_new_cmds_RC \
  16657. predep_objects_RC \
  16658. postdep_objects_RC \
  16659. predeps_RC \
  16660. postdeps_RC \
  16661. compiler_lib_search_path_RC \
  16662. archive_cmds_RC \
  16663. archive_expsym_cmds_RC \
  16664. postinstall_cmds_RC \
  16665. postuninstall_cmds_RC \
  16666. old_archive_from_expsyms_cmds_RC \
  16667. allow_undefined_flag_RC \
  16668. no_undefined_flag_RC \
  16669. export_symbols_cmds_RC \
  16670. hardcode_libdir_flag_spec_RC \
  16671. hardcode_libdir_flag_spec_ld_RC \
  16672. hardcode_libdir_separator_RC \
  16673. hardcode_automatic_RC \
  16674. module_cmds_RC \
  16675. module_expsym_cmds_RC \
  16676. lt_cv_prog_compiler_c_o_RC \
  16677. exclude_expsyms_RC \
  16678. include_expsyms_RC; do
  16679. case $var in
  16680. old_archive_cmds_RC | \
  16681. old_archive_from_new_cmds_RC | \
  16682. archive_cmds_RC | \
  16683. archive_expsym_cmds_RC | \
  16684. module_cmds_RC | \
  16685. module_expsym_cmds_RC | \
  16686. old_archive_from_expsyms_cmds_RC | \
  16687. export_symbols_cmds_RC | \
  16688. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16689. postinstall_cmds | postuninstall_cmds | \
  16690. old_postinstall_cmds | old_postuninstall_cmds | \
  16691. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16692. # Double-quote double-evaled strings.
  16693. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16694. ;;
  16695. *)
  16696. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16697. ;;
  16698. esac
  16699. done
  16700. case $lt_echo in
  16701. *'\$0 --fallback-echo"')
  16702. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16703. ;;
  16704. esac
  16705. cfgfile="$ofile"
  16706. cat <<__EOF__ >> "$cfgfile"
  16707. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16708. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16709. # Shell to use when invoking shell scripts.
  16710. SHELL=$lt_SHELL
  16711. # Whether or not to build shared libraries.
  16712. build_libtool_libs=$enable_shared
  16713. # Whether or not to build static libraries.
  16714. build_old_libs=$enable_static
  16715. # Whether or not to add -lc for building shared libraries.
  16716. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16717. # Whether or not to disallow shared libs when runtime libs are static
  16718. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16719. # Whether or not to optimize for fast installation.
  16720. fast_install=$enable_fast_install
  16721. # The host system.
  16722. host_alias=$host_alias
  16723. host=$host
  16724. host_os=$host_os
  16725. # The build system.
  16726. build_alias=$build_alias
  16727. build=$build
  16728. build_os=$build_os
  16729. # An echo program that does not interpret backslashes.
  16730. echo=$lt_echo
  16731. # The archiver.
  16732. AR=$lt_AR
  16733. AR_FLAGS=$lt_AR_FLAGS
  16734. # A C compiler.
  16735. LTCC=$lt_LTCC
  16736. # A language-specific compiler.
  16737. CC=$lt_compiler_RC
  16738. # Is the compiler the GNU C compiler?
  16739. with_gcc=$GCC_RC
  16740. # An ERE matcher.
  16741. EGREP=$lt_EGREP
  16742. # The linker used to build libraries.
  16743. LD=$lt_LD_RC
  16744. # Whether we need hard or soft links.
  16745. LN_S=$lt_LN_S
  16746. # A BSD-compatible nm program.
  16747. NM=$lt_NM
  16748. # A symbol stripping program
  16749. STRIP=$lt_STRIP
  16750. # Used to examine libraries when file_magic_cmd begins "file"
  16751. MAGIC_CMD=$MAGIC_CMD
  16752. # Used on cygwin: DLL creation program.
  16753. DLLTOOL="$DLLTOOL"
  16754. # Used on cygwin: object dumper.
  16755. OBJDUMP="$OBJDUMP"
  16756. # Used on cygwin: assembler.
  16757. AS="$AS"
  16758. # The name of the directory that contains temporary libtool files.
  16759. objdir=$objdir
  16760. # How to create reloadable object files.
  16761. reload_flag=$lt_reload_flag
  16762. reload_cmds=$lt_reload_cmds
  16763. # How to pass a linker flag through the compiler.
  16764. wl=$lt_lt_prog_compiler_wl_RC
  16765. # Object file suffix (normally "o").
  16766. objext="$ac_objext"
  16767. # Old archive suffix (normally "a").
  16768. libext="$libext"
  16769. # Shared library suffix (normally ".so").
  16770. shrext_cmds='$shrext_cmds'
  16771. # Executable file suffix (normally "").
  16772. exeext="$exeext"
  16773. # Additional compiler flags for building library objects.
  16774. pic_flag=$lt_lt_prog_compiler_pic_RC
  16775. pic_mode=$pic_mode
  16776. # What is the maximum length of a command?
  16777. max_cmd_len=$lt_cv_sys_max_cmd_len
  16778. # Does compiler simultaneously support -c and -o options?
  16779. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16780. # Must we lock files when doing compilation?
  16781. need_locks=$lt_need_locks
  16782. # Do we need the lib prefix for modules?
  16783. need_lib_prefix=$need_lib_prefix
  16784. # Do we need a version for libraries?
  16785. need_version=$need_version
  16786. # Whether dlopen is supported.
  16787. dlopen_support=$enable_dlopen
  16788. # Whether dlopen of programs is supported.
  16789. dlopen_self=$enable_dlopen_self
  16790. # Whether dlopen of statically linked programs is supported.
  16791. dlopen_self_static=$enable_dlopen_self_static
  16792. # Compiler flag to prevent dynamic linking.
  16793. link_static_flag=$lt_lt_prog_compiler_static_RC
  16794. # Compiler flag to turn off builtin functions.
  16795. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16796. # Compiler flag to allow reflexive dlopens.
  16797. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16798. # Compiler flag to generate shared objects directly from archives.
  16799. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16800. # Compiler flag to generate thread-safe objects.
  16801. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16802. # Library versioning type.
  16803. version_type=$version_type
  16804. # Format of library name prefix.
  16805. libname_spec=$lt_libname_spec
  16806. # List of archive names. First name is the real one, the rest are links.
  16807. # The last name is the one that the linker finds with -lNAME.
  16808. library_names_spec=$lt_library_names_spec
  16809. # The coded name of the library, if different from the real name.
  16810. soname_spec=$lt_soname_spec
  16811. # Commands used to build and install an old-style archive.
  16812. RANLIB=$lt_RANLIB
  16813. old_archive_cmds=$lt_old_archive_cmds_RC
  16814. old_postinstall_cmds=$lt_old_postinstall_cmds
  16815. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16816. # Create an old-style archive from a shared archive.
  16817. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16818. # Create a temporary old-style archive to link instead of a shared archive.
  16819. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16820. # Commands used to build and install a shared archive.
  16821. archive_cmds=$lt_archive_cmds_RC
  16822. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16823. postinstall_cmds=$lt_postinstall_cmds
  16824. postuninstall_cmds=$lt_postuninstall_cmds
  16825. # Commands used to build a loadable module (assumed same as above if empty)
  16826. module_cmds=$lt_module_cmds_RC
  16827. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16828. # Commands to strip libraries.
  16829. old_striplib=$lt_old_striplib
  16830. striplib=$lt_striplib
  16831. # Dependencies to place before the objects being linked to create a
  16832. # shared library.
  16833. predep_objects=$lt_predep_objects_RC
  16834. # Dependencies to place after the objects being linked to create a
  16835. # shared library.
  16836. postdep_objects=$lt_postdep_objects_RC
  16837. # Dependencies to place before the objects being linked to create a
  16838. # shared library.
  16839. predeps=$lt_predeps_RC
  16840. # Dependencies to place after the objects being linked to create a
  16841. # shared library.
  16842. postdeps=$lt_postdeps_RC
  16843. # The library search path used internally by the compiler when linking
  16844. # a shared library.
  16845. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16846. # Method to check whether dependent libraries are shared objects.
  16847. deplibs_check_method=$lt_deplibs_check_method
  16848. # Command to use when deplibs_check_method == file_magic.
  16849. file_magic_cmd=$lt_file_magic_cmd
  16850. # Flag that allows shared libraries with undefined symbols to be built.
  16851. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16852. # Flag that forces no undefined symbols.
  16853. no_undefined_flag=$lt_no_undefined_flag_RC
  16854. # Commands used to finish a libtool library installation in a directory.
  16855. finish_cmds=$lt_finish_cmds
  16856. # Same as above, but a single script fragment to be evaled but not shown.
  16857. finish_eval=$lt_finish_eval
  16858. # Take the output of nm and produce a listing of raw symbols and C names.
  16859. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16860. # Transform the output of nm in a proper C declaration
  16861. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16862. # Transform the output of nm in a C name address pair
  16863. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16864. # This is the shared library runtime path variable.
  16865. runpath_var=$runpath_var
  16866. # This is the shared library path variable.
  16867. shlibpath_var=$shlibpath_var
  16868. # Is shlibpath searched before the hard-coded library search path?
  16869. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16870. # How to hardcode a shared library path into an executable.
  16871. hardcode_action=$hardcode_action_RC
  16872. # Whether we should hardcode library paths into libraries.
  16873. hardcode_into_libs=$hardcode_into_libs
  16874. # Flag to hardcode \$libdir into a binary during linking.
  16875. # This must work even if \$libdir does not exist.
  16876. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16877. # If ld is used when linking, flag to hardcode \$libdir into
  16878. # a binary during linking. This must work even if \$libdir does
  16879. # not exist.
  16880. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16881. # Whether we need a single -rpath flag with a separated argument.
  16882. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16883. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16884. # resulting binary.
  16885. hardcode_direct=$hardcode_direct_RC
  16886. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16887. # resulting binary.
  16888. hardcode_minus_L=$hardcode_minus_L_RC
  16889. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16890. # the resulting binary.
  16891. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16892. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16893. # and all subsequent libraries and executables linked against it.
  16894. hardcode_automatic=$hardcode_automatic_RC
  16895. # Variables whose values should be saved in libtool wrapper scripts and
  16896. # restored at relink time.
  16897. variables_saved_for_relink="$variables_saved_for_relink"
  16898. # Whether libtool must link a program against all its dependency libraries.
  16899. link_all_deplibs=$link_all_deplibs_RC
  16900. # Compile-time system search path for libraries
  16901. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16902. # Run-time system search path for libraries
  16903. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16904. # Fix the shell variable \$srcfile for the compiler.
  16905. fix_srcfile_path="$fix_srcfile_path_RC"
  16906. # Set to yes if exported symbols are required.
  16907. always_export_symbols=$always_export_symbols_RC
  16908. # The commands to list exported symbols.
  16909. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16910. # The commands to extract the exported symbol list from a shared archive.
  16911. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16912. # Symbols that should not be listed in the preloaded symbols.
  16913. exclude_expsyms=$lt_exclude_expsyms_RC
  16914. # Symbols that must always be exported.
  16915. include_expsyms=$lt_include_expsyms_RC
  16916. # ### END LIBTOOL TAG CONFIG: $tagname
  16917. __EOF__
  16918. else
  16919. # If there is no Makefile yet, we rely on a make rule to execute
  16920. # `config.status --recheck' to rerun these tests and create the
  16921. # libtool script then.
  16922. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16923. if test -f "$ltmain_in"; then
  16924. test -f Makefile && make "$ltmain"
  16925. fi
  16926. fi
  16927. ac_ext=c
  16928. ac_cpp='$CPP $CPPFLAGS'
  16929. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16930. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16932. CC="$lt_save_CC"
  16933. ;;
  16934. *)
  16935. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16936. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16937. { (exit 1); exit 1; }; }
  16938. ;;
  16939. esac
  16940. # Append the new tag name to the list of available tags.
  16941. if test -n "$tagname" ; then
  16942. available_tags="$available_tags $tagname"
  16943. fi
  16944. fi
  16945. done
  16946. IFS="$lt_save_ifs"
  16947. # Now substitute the updated list of available tags.
  16948. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16949. mv "${ofile}T" "$ofile"
  16950. chmod +x "$ofile"
  16951. else
  16952. rm -f "${ofile}T"
  16953. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16954. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16955. { (exit 1); exit 1; }; }
  16956. fi
  16957. fi
  16958. # This can be used to rebuild libtool when needed
  16959. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16960. # Always use our own libtool.
  16961. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16962. # Prevent multiple expansion
  16963. # end of SCO fixes
  16964. am__api_version="1.9"
  16965. # Find a good install program. We prefer a C program (faster),
  16966. # so one script is as good as another. But avoid the broken or
  16967. # incompatible versions:
  16968. # SysV /etc/install, /usr/sbin/install
  16969. # SunOS /usr/etc/install
  16970. # IRIX /sbin/install
  16971. # AIX /bin/install
  16972. # AmigaOS /C/install, which installs bootblocks on floppy discs
  16973. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16974. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16975. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16976. # OS/2's system install, which has a completely different semantic
  16977. # ./install, which can be erroneously created by make from ./install.sh.
  16978. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16979. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16980. if test -z "$INSTALL"; then
  16981. if test "${ac_cv_path_install+set}" = set; then
  16982. echo $ECHO_N "(cached) $ECHO_C" >&6
  16983. else
  16984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16985. for as_dir in $PATH
  16986. do
  16987. IFS=$as_save_IFS
  16988. test -z "$as_dir" && as_dir=.
  16989. # Account for people who put trailing slashes in PATH elements.
  16990. case $as_dir/ in
  16991. ./ | .// | /cC/* | \
  16992. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16993. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16994. /usr/ucb/* ) ;;
  16995. *)
  16996. # OSF1 and SCO ODT 3.0 have their own names for install.
  16997. # Don't use installbsd from OSF since it installs stuff as root
  16998. # by default.
  16999. for ac_prog in ginstall scoinst install; do
  17000. for ac_exec_ext in '' $ac_executable_extensions; do
  17001. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  17002. if test $ac_prog = install &&
  17003. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17004. # AIX install. It has an incompatible calling convention.
  17005. :
  17006. elif test $ac_prog = install &&
  17007. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17008. # program-specific install script used by HP pwplus--don't use.
  17009. :
  17010. else
  17011. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17012. break 3
  17013. fi
  17014. fi
  17015. done
  17016. done
  17017. ;;
  17018. esac
  17019. done
  17020. fi
  17021. if test "${ac_cv_path_install+set}" = set; then
  17022. INSTALL=$ac_cv_path_install
  17023. else
  17024. # As a last resort, use the slow shell script. We don't cache a
  17025. # path for INSTALL within a source directory, because that will
  17026. # break other packages using the cache if that directory is
  17027. # removed, or if the path is relative.
  17028. INSTALL=$ac_install_sh
  17029. fi
  17030. fi
  17031. echo "$as_me:$LINENO: result: $INSTALL" >&5
  17032. echo "${ECHO_T}$INSTALL" >&6
  17033. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17034. # It thinks the first close brace ends the variable substitution.
  17035. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17036. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17037. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17038. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17039. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  17040. # Just in case
  17041. sleep 1
  17042. echo timestamp > conftest.file
  17043. # Do `set' in a subshell so we don't clobber the current shell's
  17044. # arguments. Must try -L first in case configure is actually a
  17045. # symlink; some systems play weird games with the mod time of symlinks
  17046. # (eg FreeBSD returns the mod time of the symlink's containing
  17047. # directory).
  17048. if (
  17049. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17050. if test "$*" = "X"; then
  17051. # -L didn't work.
  17052. set X `ls -t $srcdir/configure conftest.file`
  17053. fi
  17054. rm -f conftest.file
  17055. if test "$*" != "X $srcdir/configure conftest.file" \
  17056. && test "$*" != "X conftest.file $srcdir/configure"; then
  17057. # If neither matched, then we have a broken ls. This can happen
  17058. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17059. # broken ls alias from the environment. This has actually
  17060. # happened. Such a system could not be considered "sane".
  17061. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17062. alias in your environment" >&5
  17063. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17064. alias in your environment" >&2;}
  17065. { (exit 1); exit 1; }; }
  17066. fi
  17067. test "$2" = conftest.file
  17068. )
  17069. then
  17070. # Ok.
  17071. :
  17072. else
  17073. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17074. Check your system clock" >&5
  17075. echo "$as_me: error: newly created file is older than distributed files!
  17076. Check your system clock" >&2;}
  17077. { (exit 1); exit 1; }; }
  17078. fi
  17079. echo "$as_me:$LINENO: result: yes" >&5
  17080. echo "${ECHO_T}yes" >&6
  17081. test "$program_prefix" != NONE &&
  17082. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  17083. # Use a double $ so make ignores it.
  17084. test "$program_suffix" != NONE &&
  17085. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  17086. # Double any \ or $. echo might interpret backslashes.
  17087. # By default was `s,x,x', remove it if useless.
  17088. cat <<\_ACEOF >conftest.sed
  17089. s/[\\$]/&&/g;s/;s,x,x,$//
  17090. _ACEOF
  17091. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17092. rm conftest.sed
  17093. # expand $ac_aux_dir to an absolute path
  17094. am_aux_dir=`cd $ac_aux_dir && pwd`
  17095. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17096. # Use eval to expand $SHELL
  17097. if eval "$MISSING --run true"; then
  17098. am_missing_run="$MISSING --run "
  17099. else
  17100. am_missing_run=
  17101. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17102. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17103. fi
  17104. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  17105. # We used to keeping the `.' as first argument, in order to
  17106. # allow $(mkdir_p) to be used without argument. As in
  17107. # $(mkdir_p) $(somedir)
  17108. # where $(somedir) is conditionally defined. However this is wrong
  17109. # for two reasons:
  17110. # 1. if the package is installed by a user who cannot write `.'
  17111. # make install will fail,
  17112. # 2. the above comment should most certainly read
  17113. # $(mkdir_p) $(DESTDIR)$(somedir)
  17114. # so it does not work when $(somedir) is undefined and
  17115. # $(DESTDIR) is not.
  17116. # To support the latter case, we have to write
  17117. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  17118. # so the `.' trick is pointless.
  17119. mkdir_p='mkdir -p --'
  17120. else
  17121. # On NextStep and OpenStep, the `mkdir' command does not
  17122. # recognize any option. It will interpret all options as
  17123. # directories to create, and then abort because `.' already
  17124. # exists.
  17125. for d in ./-p ./--version;
  17126. do
  17127. test -d $d && rmdir $d
  17128. done
  17129. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  17130. if test -f "$ac_aux_dir/mkinstalldirs"; then
  17131. mkdir_p='$(mkinstalldirs)'
  17132. else
  17133. mkdir_p='$(install_sh) -d'
  17134. fi
  17135. fi
  17136. for ac_prog in gawk mawk nawk awk
  17137. do
  17138. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17139. set dummy $ac_prog; ac_word=$2
  17140. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17141. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17142. if test "${ac_cv_prog_AWK+set}" = set; then
  17143. echo $ECHO_N "(cached) $ECHO_C" >&6
  17144. else
  17145. if test -n "$AWK"; then
  17146. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17147. else
  17148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17149. for as_dir in $PATH
  17150. do
  17151. IFS=$as_save_IFS
  17152. test -z "$as_dir" && as_dir=.
  17153. for ac_exec_ext in '' $ac_executable_extensions; do
  17154. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17155. ac_cv_prog_AWK="$ac_prog"
  17156. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17157. break 2
  17158. fi
  17159. done
  17160. done
  17161. fi
  17162. fi
  17163. AWK=$ac_cv_prog_AWK
  17164. if test -n "$AWK"; then
  17165. echo "$as_me:$LINENO: result: $AWK" >&5
  17166. echo "${ECHO_T}$AWK" >&6
  17167. else
  17168. echo "$as_me:$LINENO: result: no" >&5
  17169. echo "${ECHO_T}no" >&6
  17170. fi
  17171. test -n "$AWK" && break
  17172. done
  17173. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17174. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  17175. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  17176. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  17177. echo $ECHO_N "(cached) $ECHO_C" >&6
  17178. else
  17179. cat >conftest.make <<\_ACEOF
  17180. all:
  17181. @echo 'ac_maketemp="$(MAKE)"'
  17182. _ACEOF
  17183. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17184. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  17185. if test -n "$ac_maketemp"; then
  17186. eval ac_cv_prog_make_${ac_make}_set=yes
  17187. else
  17188. eval ac_cv_prog_make_${ac_make}_set=no
  17189. fi
  17190. rm -f conftest.make
  17191. fi
  17192. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  17193. echo "$as_me:$LINENO: result: yes" >&5
  17194. echo "${ECHO_T}yes" >&6
  17195. SET_MAKE=
  17196. else
  17197. echo "$as_me:$LINENO: result: no" >&5
  17198. echo "${ECHO_T}no" >&6
  17199. SET_MAKE="MAKE=${MAKE-make}"
  17200. fi
  17201. rm -rf .tst 2>/dev/null
  17202. mkdir .tst 2>/dev/null
  17203. if test -d .tst; then
  17204. am__leading_dot=.
  17205. else
  17206. am__leading_dot=_
  17207. fi
  17208. rmdir .tst 2>/dev/null
  17209. DEPDIR="${am__leading_dot}deps"
  17210. ac_config_commands="$ac_config_commands depfiles"
  17211. am_make=${MAKE-make}
  17212. cat > confinc << 'END'
  17213. am__doit:
  17214. @echo done
  17215. .PHONY: am__doit
  17216. END
  17217. # If we don't find an include directive, just comment out the code.
  17218. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  17219. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  17220. am__include="#"
  17221. am__quote=
  17222. _am_result=none
  17223. # First try GNU make style include.
  17224. echo "include confinc" > confmf
  17225. # We grep out `Entering directory' and `Leaving directory'
  17226. # messages which can occur if `w' ends up in MAKEFLAGS.
  17227. # In particular we don't look at `^make:' because GNU make might
  17228. # be invoked under some other name (usually "gmake"), in which
  17229. # case it prints its new name instead of `make'.
  17230. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  17231. am__include=include
  17232. am__quote=
  17233. _am_result=GNU
  17234. fi
  17235. # Now try BSD make style include.
  17236. if test "$am__include" = "#"; then
  17237. echo '.include "confinc"' > confmf
  17238. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  17239. am__include=.include
  17240. am__quote="\""
  17241. _am_result=BSD
  17242. fi
  17243. fi
  17244. echo "$as_me:$LINENO: result: $_am_result" >&5
  17245. echo "${ECHO_T}$_am_result" >&6
  17246. rm -f confinc confmf
  17247. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  17248. if test "${enable_dependency_tracking+set}" = set; then
  17249. enableval="$enable_dependency_tracking"
  17250. fi;
  17251. if test "x$enable_dependency_tracking" != xno; then
  17252. am_depcomp="$ac_aux_dir/depcomp"
  17253. AMDEPBACKSLASH='\'
  17254. fi
  17255. if test "x$enable_dependency_tracking" != xno; then
  17256. AMDEP_TRUE=
  17257. AMDEP_FALSE='#'
  17258. else
  17259. AMDEP_TRUE='#'
  17260. AMDEP_FALSE=
  17261. fi
  17262. # test to see if srcdir already configured
  17263. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  17264. test -f $srcdir/config.status; then
  17265. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17266. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17267. { (exit 1); exit 1; }; }
  17268. fi
  17269. # test whether we have cygpath
  17270. if test -z "$CYGPATH_W"; then
  17271. if (cygpath --version) >/dev/null 2>/dev/null; then
  17272. CYGPATH_W='cygpath -w'
  17273. else
  17274. CYGPATH_W=echo
  17275. fi
  17276. fi
  17277. # Define the identity of the package.
  17278. PACKAGE=Serial
  17279. VERSION=2.1-7
  17280. cat >>confdefs.h <<_ACEOF
  17281. #define PACKAGE "$PACKAGE"
  17282. _ACEOF
  17283. cat >>confdefs.h <<_ACEOF
  17284. #define VERSION "$VERSION"
  17285. _ACEOF
  17286. # Some tools Automake needs.
  17287. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  17288. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  17289. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  17290. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  17291. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17292. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  17293. # Installed binaries are usually stripped using `strip' when the user
  17294. # run `make install-strip'. However `strip' might not be the right
  17295. # tool to use in cross-compilation environments, therefore Automake
  17296. # will honor the `STRIP' environment variable to overrule this program.
  17297. if test "$cross_compiling" != no; then
  17298. if test -n "$ac_tool_prefix"; then
  17299. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17300. set dummy ${ac_tool_prefix}strip; ac_word=$2
  17301. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17302. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17303. if test "${ac_cv_prog_STRIP+set}" = set; then
  17304. echo $ECHO_N "(cached) $ECHO_C" >&6
  17305. else
  17306. if test -n "$STRIP"; then
  17307. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17308. else
  17309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17310. for as_dir in $PATH
  17311. do
  17312. IFS=$as_save_IFS
  17313. test -z "$as_dir" && as_dir=.
  17314. for ac_exec_ext in '' $ac_executable_extensions; do
  17315. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17316. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17317. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17318. break 2
  17319. fi
  17320. done
  17321. done
  17322. fi
  17323. fi
  17324. STRIP=$ac_cv_prog_STRIP
  17325. if test -n "$STRIP"; then
  17326. echo "$as_me:$LINENO: result: $STRIP" >&5
  17327. echo "${ECHO_T}$STRIP" >&6
  17328. else
  17329. echo "$as_me:$LINENO: result: no" >&5
  17330. echo "${ECHO_T}no" >&6
  17331. fi
  17332. fi
  17333. if test -z "$ac_cv_prog_STRIP"; then
  17334. ac_ct_STRIP=$STRIP
  17335. # Extract the first word of "strip", so it can be a program name with args.
  17336. set dummy strip; ac_word=$2
  17337. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17338. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17339. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17340. echo $ECHO_N "(cached) $ECHO_C" >&6
  17341. else
  17342. if test -n "$ac_ct_STRIP"; then
  17343. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17344. else
  17345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17346. for as_dir in $PATH
  17347. do
  17348. IFS=$as_save_IFS
  17349. test -z "$as_dir" && as_dir=.
  17350. for ac_exec_ext in '' $ac_executable_extensions; do
  17351. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17352. ac_cv_prog_ac_ct_STRIP="strip"
  17353. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17354. break 2
  17355. fi
  17356. done
  17357. done
  17358. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  17359. fi
  17360. fi
  17361. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17362. if test -n "$ac_ct_STRIP"; then
  17363. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17364. echo "${ECHO_T}$ac_ct_STRIP" >&6
  17365. else
  17366. echo "$as_me:$LINENO: result: no" >&5
  17367. echo "${ECHO_T}no" >&6
  17368. fi
  17369. STRIP=$ac_ct_STRIP
  17370. else
  17371. STRIP="$ac_cv_prog_STRIP"
  17372. fi
  17373. fi
  17374. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  17375. # We need awk for the "check" target. The system "awk" is bad on
  17376. # some platforms.
  17377. # Always define AMTAR for backward compatibility.
  17378. AMTAR=${AMTAR-"${am_missing_run}tar"}
  17379. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  17380. depcc="$CC" am_compiler_list=
  17381. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17382. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  17383. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17384. echo $ECHO_N "(cached) $ECHO_C" >&6
  17385. else
  17386. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17387. # We make a subdir and do the tests there. Otherwise we can end up
  17388. # making bogus files that we don't know about and never remove. For
  17389. # instance it was reported that on HP-UX the gcc test will end up
  17390. # making a dummy file named `D' -- because `-MD' means `put the output
  17391. # in D'.
  17392. mkdir conftest.dir
  17393. # Copy depcomp to subdir because otherwise we won't find it if we're
  17394. # using a relative directory.
  17395. cp "$am_depcomp" conftest.dir
  17396. cd conftest.dir
  17397. # We will build objects and dependencies in a subdirectory because
  17398. # it helps to detect inapplicable dependency modes. For instance
  17399. # both Tru64's cc and ICC support -MD to output dependencies as a
  17400. # side effect of compilation, but ICC will put the dependencies in
  17401. # the current directory while Tru64 will put them in the object
  17402. # directory.
  17403. mkdir sub
  17404. am_cv_CC_dependencies_compiler_type=none
  17405. if test "$am_compiler_list" = ""; then
  17406. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17407. fi
  17408. for depmode in $am_compiler_list; do
  17409. # Setup a source with many dependencies, because some compilers
  17410. # like to wrap large dependency lists on column 80 (with \), and
  17411. # we should not choose a depcomp mode which is confused by this.
  17412. #
  17413. # We need to recreate these files for each test, as the compiler may
  17414. # overwrite some of them when testing with obscure command lines.
  17415. # This happens at least with the AIX C compiler.
  17416. : > sub/conftest.c
  17417. for i in 1 2 3 4 5 6; do
  17418. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17419. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17420. # Solaris 8's {/usr,}/bin/sh.
  17421. touch sub/conftst$i.h
  17422. done
  17423. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17424. case $depmode in
  17425. nosideeffect)
  17426. # after this tag, mechanisms are not by side-effect, so they'll
  17427. # only be used when explicitly requested
  17428. if test "x$enable_dependency_tracking" = xyes; then
  17429. continue
  17430. else
  17431. break
  17432. fi
  17433. ;;
  17434. none) break ;;
  17435. esac
  17436. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17437. # mode. It turns out that the SunPro C++ compiler does not properly
  17438. # handle `-M -o', and we need to detect this.
  17439. if depmode=$depmode \
  17440. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17441. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17442. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17443. >/dev/null 2>conftest.err &&
  17444. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17445. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17446. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17447. # icc doesn't choke on unknown options, it will just issue warnings
  17448. # or remarks (even with -Werror). So we grep stderr for any message
  17449. # that says an option was ignored or not supported.
  17450. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17451. # icc: Command line warning: ignoring option '-M'; no argument required
  17452. # The diagnosis changed in icc 8.0:
  17453. # icc: Command line remark: option '-MP' not supported
  17454. if (grep 'ignoring option' conftest.err ||
  17455. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17456. am_cv_CC_dependencies_compiler_type=$depmode
  17457. break
  17458. fi
  17459. fi
  17460. done
  17461. cd ..
  17462. rm -rf conftest.dir
  17463. else
  17464. am_cv_CC_dependencies_compiler_type=none
  17465. fi
  17466. fi
  17467. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17468. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  17469. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17470. if
  17471. test "x$enable_dependency_tracking" != xno \
  17472. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  17473. am__fastdepCC_TRUE=
  17474. am__fastdepCC_FALSE='#'
  17475. else
  17476. am__fastdepCC_TRUE='#'
  17477. am__fastdepCC_FALSE=
  17478. fi
  17479. depcc="$CXX" am_compiler_list=
  17480. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17481. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  17482. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  17483. echo $ECHO_N "(cached) $ECHO_C" >&6
  17484. else
  17485. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17486. # We make a subdir and do the tests there. Otherwise we can end up
  17487. # making bogus files that we don't know about and never remove. For
  17488. # instance it was reported that on HP-UX the gcc test will end up
  17489. # making a dummy file named `D' -- because `-MD' means `put the output
  17490. # in D'.
  17491. mkdir conftest.dir
  17492. # Copy depcomp to subdir because otherwise we won't find it if we're
  17493. # using a relative directory.
  17494. cp "$am_depcomp" conftest.dir
  17495. cd conftest.dir
  17496. # We will build objects and dependencies in a subdirectory because
  17497. # it helps to detect inapplicable dependency modes. For instance
  17498. # both Tru64's cc and ICC support -MD to output dependencies as a
  17499. # side effect of compilation, but ICC will put the dependencies in
  17500. # the current directory while Tru64 will put them in the object
  17501. # directory.
  17502. mkdir sub
  17503. am_cv_CXX_dependencies_compiler_type=none
  17504. if test "$am_compiler_list" = ""; then
  17505. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17506. fi
  17507. for depmode in $am_compiler_list; do
  17508. # Setup a source with many dependencies, because some compilers
  17509. # like to wrap large dependency lists on column 80 (with \), and
  17510. # we should not choose a depcomp mode which is confused by this.
  17511. #
  17512. # We need to recreate these files for each test, as the compiler may
  17513. # overwrite some of them when testing with obscure command lines.
  17514. # This happens at least with the AIX C compiler.
  17515. : > sub/conftest.c
  17516. for i in 1 2 3 4 5 6; do
  17517. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17518. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17519. # Solaris 8's {/usr,}/bin/sh.
  17520. touch sub/conftst$i.h
  17521. done
  17522. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17523. case $depmode in
  17524. nosideeffect)
  17525. # after this tag, mechanisms are not by side-effect, so they'll
  17526. # only be used when explicitly requested
  17527. if test "x$enable_dependency_tracking" = xyes; then
  17528. continue
  17529. else
  17530. break
  17531. fi
  17532. ;;
  17533. none) break ;;
  17534. esac
  17535. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17536. # mode. It turns out that the SunPro C++ compiler does not properly
  17537. # handle `-M -o', and we need to detect this.
  17538. if depmode=$depmode \
  17539. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17540. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17541. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17542. >/dev/null 2>conftest.err &&
  17543. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17544. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17545. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17546. # icc doesn't choke on unknown options, it will just issue warnings
  17547. # or remarks (even with -Werror). So we grep stderr for any message
  17548. # that says an option was ignored or not supported.
  17549. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17550. # icc: Command line warning: ignoring option '-M'; no argument required
  17551. # The diagnosis changed in icc 8.0:
  17552. # icc: Command line remark: option '-MP' not supported
  17553. if (grep 'ignoring option' conftest.err ||
  17554. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17555. am_cv_CXX_dependencies_compiler_type=$depmode
  17556. break
  17557. fi
  17558. fi
  17559. done
  17560. cd ..
  17561. rm -rf conftest.dir
  17562. else
  17563. am_cv_CXX_dependencies_compiler_type=none
  17564. fi
  17565. fi
  17566. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17567. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  17568. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  17569. if
  17570. test "x$enable_dependency_tracking" != xno \
  17571. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  17572. am__fastdepCXX_TRUE=
  17573. am__fastdepCXX_FALSE='#'
  17574. else
  17575. am__fastdepCXX_TRUE='#'
  17576. am__fastdepCXX_FALSE=
  17577. fi
  17578. for ac_header in fcntl.h
  17579. do
  17580. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17581. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17582. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17583. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17584. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17585. echo $ECHO_N "(cached) $ECHO_C" >&6
  17586. fi
  17587. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17588. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17589. else
  17590. # Is the header compilable?
  17591. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17592. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17593. cat >conftest.$ac_ext <<_ACEOF
  17594. /* confdefs.h. */
  17595. _ACEOF
  17596. cat confdefs.h >>conftest.$ac_ext
  17597. cat >>conftest.$ac_ext <<_ACEOF
  17598. /* end confdefs.h. */
  17599. $ac_includes_default
  17600. #include <$ac_header>
  17601. _ACEOF
  17602. rm -f conftest.$ac_objext
  17603. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17604. (eval $ac_compile) 2>conftest.er1
  17605. ac_status=$?
  17606. grep -v '^ *+' conftest.er1 >conftest.err
  17607. rm -f conftest.er1
  17608. cat conftest.err >&5
  17609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17610. (exit $ac_status); } &&
  17611. { ac_try='test -z "$ac_c_werror_flag"
  17612. || test ! -s conftest.err'
  17613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17614. (eval $ac_try) 2>&5
  17615. ac_status=$?
  17616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17617. (exit $ac_status); }; } &&
  17618. { ac_try='test -s conftest.$ac_objext'
  17619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17620. (eval $ac_try) 2>&5
  17621. ac_status=$?
  17622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17623. (exit $ac_status); }; }; then
  17624. ac_header_compiler=yes
  17625. else
  17626. echo "$as_me: failed program was:" >&5
  17627. sed 's/^/| /' conftest.$ac_ext >&5
  17628. ac_header_compiler=no
  17629. fi
  17630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17631. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17632. echo "${ECHO_T}$ac_header_compiler" >&6
  17633. # Is the header present?
  17634. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17635. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17636. cat >conftest.$ac_ext <<_ACEOF
  17637. /* confdefs.h. */
  17638. _ACEOF
  17639. cat confdefs.h >>conftest.$ac_ext
  17640. cat >>conftest.$ac_ext <<_ACEOF
  17641. /* end confdefs.h. */
  17642. #include <$ac_header>
  17643. _ACEOF
  17644. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17645. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17646. ac_status=$?
  17647. grep -v '^ *+' conftest.er1 >conftest.err
  17648. rm -f conftest.er1
  17649. cat conftest.err >&5
  17650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17651. (exit $ac_status); } >/dev/null; then
  17652. if test -s conftest.err; then
  17653. ac_cpp_err=$ac_c_preproc_warn_flag
  17654. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17655. else
  17656. ac_cpp_err=
  17657. fi
  17658. else
  17659. ac_cpp_err=yes
  17660. fi
  17661. if test -z "$ac_cpp_err"; then
  17662. ac_header_preproc=yes
  17663. else
  17664. echo "$as_me: failed program was:" >&5
  17665. sed 's/^/| /' conftest.$ac_ext >&5
  17666. ac_header_preproc=no
  17667. fi
  17668. rm -f conftest.err conftest.$ac_ext
  17669. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17670. echo "${ECHO_T}$ac_header_preproc" >&6
  17671. # So? What about this header?
  17672. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17673. yes:no: )
  17674. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17675. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17676. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17677. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17678. ac_header_preproc=yes
  17679. ;;
  17680. no:yes:* )
  17681. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17682. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17683. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17684. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17685. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17686. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17687. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17688. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17689. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17690. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17691. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17692. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17693. (
  17694. cat <<\_ASBOX
  17695. ## ------------------------------------------ ##
  17696. ## Report this to the AC_PACKAGE_NAME lists. ##
  17697. ## ------------------------------------------ ##
  17698. _ASBOX
  17699. ) |
  17700. sed "s/^/$as_me: WARNING: /" >&2
  17701. ;;
  17702. esac
  17703. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17704. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17705. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17706. echo $ECHO_N "(cached) $ECHO_C" >&6
  17707. else
  17708. eval "$as_ac_Header=\$ac_header_preproc"
  17709. fi
  17710. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17711. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17712. fi
  17713. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17714. cat >>confdefs.h <<_ACEOF
  17715. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17716. _ACEOF
  17717. fi
  17718. done
  17719. for ac_header in sys/fcntl.h
  17720. do
  17721. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17722. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17723. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17724. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17725. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17726. echo $ECHO_N "(cached) $ECHO_C" >&6
  17727. fi
  17728. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17729. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17730. else
  17731. # Is the header compilable?
  17732. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17733. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17734. cat >conftest.$ac_ext <<_ACEOF
  17735. /* confdefs.h. */
  17736. _ACEOF
  17737. cat confdefs.h >>conftest.$ac_ext
  17738. cat >>conftest.$ac_ext <<_ACEOF
  17739. /* end confdefs.h. */
  17740. $ac_includes_default
  17741. #include <$ac_header>
  17742. _ACEOF
  17743. rm -f conftest.$ac_objext
  17744. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17745. (eval $ac_compile) 2>conftest.er1
  17746. ac_status=$?
  17747. grep -v '^ *+' conftest.er1 >conftest.err
  17748. rm -f conftest.er1
  17749. cat conftest.err >&5
  17750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17751. (exit $ac_status); } &&
  17752. { ac_try='test -z "$ac_c_werror_flag"
  17753. || test ! -s conftest.err'
  17754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17755. (eval $ac_try) 2>&5
  17756. ac_status=$?
  17757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17758. (exit $ac_status); }; } &&
  17759. { ac_try='test -s conftest.$ac_objext'
  17760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17761. (eval $ac_try) 2>&5
  17762. ac_status=$?
  17763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17764. (exit $ac_status); }; }; then
  17765. ac_header_compiler=yes
  17766. else
  17767. echo "$as_me: failed program was:" >&5
  17768. sed 's/^/| /' conftest.$ac_ext >&5
  17769. ac_header_compiler=no
  17770. fi
  17771. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17772. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17773. echo "${ECHO_T}$ac_header_compiler" >&6
  17774. # Is the header present?
  17775. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17776. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17777. cat >conftest.$ac_ext <<_ACEOF
  17778. /* confdefs.h. */
  17779. _ACEOF
  17780. cat confdefs.h >>conftest.$ac_ext
  17781. cat >>conftest.$ac_ext <<_ACEOF
  17782. /* end confdefs.h. */
  17783. #include <$ac_header>
  17784. _ACEOF
  17785. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17786. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17787. ac_status=$?
  17788. grep -v '^ *+' conftest.er1 >conftest.err
  17789. rm -f conftest.er1
  17790. cat conftest.err >&5
  17791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17792. (exit $ac_status); } >/dev/null; then
  17793. if test -s conftest.err; then
  17794. ac_cpp_err=$ac_c_preproc_warn_flag
  17795. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17796. else
  17797. ac_cpp_err=
  17798. fi
  17799. else
  17800. ac_cpp_err=yes
  17801. fi
  17802. if test -z "$ac_cpp_err"; then
  17803. ac_header_preproc=yes
  17804. else
  17805. echo "$as_me: failed program was:" >&5
  17806. sed 's/^/| /' conftest.$ac_ext >&5
  17807. ac_header_preproc=no
  17808. fi
  17809. rm -f conftest.err conftest.$ac_ext
  17810. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17811. echo "${ECHO_T}$ac_header_preproc" >&6
  17812. # So? What about this header?
  17813. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17814. yes:no: )
  17815. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17816. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17817. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17818. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17819. ac_header_preproc=yes
  17820. ;;
  17821. no:yes:* )
  17822. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17823. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17824. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17825. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17826. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17827. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17828. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17829. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17830. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17831. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17832. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17833. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17834. (
  17835. cat <<\_ASBOX
  17836. ## ------------------------------------------ ##
  17837. ## Report this to the AC_PACKAGE_NAME lists. ##
  17838. ## ------------------------------------------ ##
  17839. _ASBOX
  17840. ) |
  17841. sed "s/^/$as_me: WARNING: /" >&2
  17842. ;;
  17843. esac
  17844. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17845. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17846. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17847. echo $ECHO_N "(cached) $ECHO_C" >&6
  17848. else
  17849. eval "$as_ac_Header=\$ac_header_preproc"
  17850. fi
  17851. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17852. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17853. fi
  17854. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17855. cat >>confdefs.h <<_ACEOF
  17856. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17857. _ACEOF
  17858. fi
  17859. done
  17860. for ac_header in sys/file.h
  17861. do
  17862. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17863. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17864. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17865. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17866. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17867. echo $ECHO_N "(cached) $ECHO_C" >&6
  17868. fi
  17869. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17870. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17871. else
  17872. # Is the header compilable?
  17873. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17874. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17875. cat >conftest.$ac_ext <<_ACEOF
  17876. /* confdefs.h. */
  17877. _ACEOF
  17878. cat confdefs.h >>conftest.$ac_ext
  17879. cat >>conftest.$ac_ext <<_ACEOF
  17880. /* end confdefs.h. */
  17881. $ac_includes_default
  17882. #include <$ac_header>
  17883. _ACEOF
  17884. rm -f conftest.$ac_objext
  17885. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17886. (eval $ac_compile) 2>conftest.er1
  17887. ac_status=$?
  17888. grep -v '^ *+' conftest.er1 >conftest.err
  17889. rm -f conftest.er1
  17890. cat conftest.err >&5
  17891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17892. (exit $ac_status); } &&
  17893. { ac_try='test -z "$ac_c_werror_flag"
  17894. || test ! -s conftest.err'
  17895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17896. (eval $ac_try) 2>&5
  17897. ac_status=$?
  17898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17899. (exit $ac_status); }; } &&
  17900. { ac_try='test -s conftest.$ac_objext'
  17901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17902. (eval $ac_try) 2>&5
  17903. ac_status=$?
  17904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17905. (exit $ac_status); }; }; then
  17906. ac_header_compiler=yes
  17907. else
  17908. echo "$as_me: failed program was:" >&5
  17909. sed 's/^/| /' conftest.$ac_ext >&5
  17910. ac_header_compiler=no
  17911. fi
  17912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17913. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17914. echo "${ECHO_T}$ac_header_compiler" >&6
  17915. # Is the header present?
  17916. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17917. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17918. cat >conftest.$ac_ext <<_ACEOF
  17919. /* confdefs.h. */
  17920. _ACEOF
  17921. cat confdefs.h >>conftest.$ac_ext
  17922. cat >>conftest.$ac_ext <<_ACEOF
  17923. /* end confdefs.h. */
  17924. #include <$ac_header>
  17925. _ACEOF
  17926. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17927. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17928. ac_status=$?
  17929. grep -v '^ *+' conftest.er1 >conftest.err
  17930. rm -f conftest.er1
  17931. cat conftest.err >&5
  17932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17933. (exit $ac_status); } >/dev/null; then
  17934. if test -s conftest.err; then
  17935. ac_cpp_err=$ac_c_preproc_warn_flag
  17936. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17937. else
  17938. ac_cpp_err=
  17939. fi
  17940. else
  17941. ac_cpp_err=yes
  17942. fi
  17943. if test -z "$ac_cpp_err"; then
  17944. ac_header_preproc=yes
  17945. else
  17946. echo "$as_me: failed program was:" >&5
  17947. sed 's/^/| /' conftest.$ac_ext >&5
  17948. ac_header_preproc=no
  17949. fi
  17950. rm -f conftest.err conftest.$ac_ext
  17951. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17952. echo "${ECHO_T}$ac_header_preproc" >&6
  17953. # So? What about this header?
  17954. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17955. yes:no: )
  17956. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17957. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17958. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17959. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17960. ac_header_preproc=yes
  17961. ;;
  17962. no:yes:* )
  17963. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17964. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17965. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17966. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17967. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17968. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17969. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17970. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17971. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17972. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17973. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17974. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17975. (
  17976. cat <<\_ASBOX
  17977. ## ------------------------------------------ ##
  17978. ## Report this to the AC_PACKAGE_NAME lists. ##
  17979. ## ------------------------------------------ ##
  17980. _ASBOX
  17981. ) |
  17982. sed "s/^/$as_me: WARNING: /" >&2
  17983. ;;
  17984. esac
  17985. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17986. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17987. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17988. echo $ECHO_N "(cached) $ECHO_C" >&6
  17989. else
  17990. eval "$as_ac_Header=\$ac_header_preproc"
  17991. fi
  17992. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17993. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17994. fi
  17995. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17996. cat >>confdefs.h <<_ACEOF
  17997. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17998. _ACEOF
  17999. fi
  18000. done
  18001. for ac_header in sys/time.h
  18002. do
  18003. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18004. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18005. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18006. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18007. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18008. echo $ECHO_N "(cached) $ECHO_C" >&6
  18009. fi
  18010. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18011. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18012. else
  18013. # Is the header compilable?
  18014. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18015. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18016. cat >conftest.$ac_ext <<_ACEOF
  18017. /* confdefs.h. */
  18018. _ACEOF
  18019. cat confdefs.h >>conftest.$ac_ext
  18020. cat >>conftest.$ac_ext <<_ACEOF
  18021. /* end confdefs.h. */
  18022. $ac_includes_default
  18023. #include <$ac_header>
  18024. _ACEOF
  18025. rm -f conftest.$ac_objext
  18026. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18027. (eval $ac_compile) 2>conftest.er1
  18028. ac_status=$?
  18029. grep -v '^ *+' conftest.er1 >conftest.err
  18030. rm -f conftest.er1
  18031. cat conftest.err >&5
  18032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18033. (exit $ac_status); } &&
  18034. { ac_try='test -z "$ac_c_werror_flag"
  18035. || test ! -s conftest.err'
  18036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18037. (eval $ac_try) 2>&5
  18038. ac_status=$?
  18039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18040. (exit $ac_status); }; } &&
  18041. { ac_try='test -s conftest.$ac_objext'
  18042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18043. (eval $ac_try) 2>&5
  18044. ac_status=$?
  18045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18046. (exit $ac_status); }; }; then
  18047. ac_header_compiler=yes
  18048. else
  18049. echo "$as_me: failed program was:" >&5
  18050. sed 's/^/| /' conftest.$ac_ext >&5
  18051. ac_header_compiler=no
  18052. fi
  18053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18054. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18055. echo "${ECHO_T}$ac_header_compiler" >&6
  18056. # Is the header present?
  18057. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18058. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18059. cat >conftest.$ac_ext <<_ACEOF
  18060. /* confdefs.h. */
  18061. _ACEOF
  18062. cat confdefs.h >>conftest.$ac_ext
  18063. cat >>conftest.$ac_ext <<_ACEOF
  18064. /* end confdefs.h. */
  18065. #include <$ac_header>
  18066. _ACEOF
  18067. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18068. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18069. ac_status=$?
  18070. grep -v '^ *+' conftest.er1 >conftest.err
  18071. rm -f conftest.er1
  18072. cat conftest.err >&5
  18073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18074. (exit $ac_status); } >/dev/null; then
  18075. if test -s conftest.err; then
  18076. ac_cpp_err=$ac_c_preproc_warn_flag
  18077. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18078. else
  18079. ac_cpp_err=
  18080. fi
  18081. else
  18082. ac_cpp_err=yes
  18083. fi
  18084. if test -z "$ac_cpp_err"; then
  18085. ac_header_preproc=yes
  18086. else
  18087. echo "$as_me: failed program was:" >&5
  18088. sed 's/^/| /' conftest.$ac_ext >&5
  18089. ac_header_preproc=no
  18090. fi
  18091. rm -f conftest.err conftest.$ac_ext
  18092. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18093. echo "${ECHO_T}$ac_header_preproc" >&6
  18094. # So? What about this header?
  18095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18096. yes:no: )
  18097. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18098. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18099. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18100. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18101. ac_header_preproc=yes
  18102. ;;
  18103. no:yes:* )
  18104. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18105. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18106. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18107. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18108. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18109. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18110. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18111. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18113. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18114. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18115. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18116. (
  18117. cat <<\_ASBOX
  18118. ## ------------------------------------------ ##
  18119. ## Report this to the AC_PACKAGE_NAME lists. ##
  18120. ## ------------------------------------------ ##
  18121. _ASBOX
  18122. ) |
  18123. sed "s/^/$as_me: WARNING: /" >&2
  18124. ;;
  18125. esac
  18126. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18127. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18128. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18129. echo $ECHO_N "(cached) $ECHO_C" >&6
  18130. else
  18131. eval "$as_ac_Header=\$ac_header_preproc"
  18132. fi
  18133. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18134. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18135. fi
  18136. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18137. cat >>confdefs.h <<_ACEOF
  18138. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18139. _ACEOF
  18140. fi
  18141. done
  18142. for ac_header in sys/signal.h
  18143. do
  18144. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18145. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18146. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18147. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18148. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18149. echo $ECHO_N "(cached) $ECHO_C" >&6
  18150. fi
  18151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18152. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18153. else
  18154. # Is the header compilable?
  18155. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18156. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18157. cat >conftest.$ac_ext <<_ACEOF
  18158. /* confdefs.h. */
  18159. _ACEOF
  18160. cat confdefs.h >>conftest.$ac_ext
  18161. cat >>conftest.$ac_ext <<_ACEOF
  18162. /* end confdefs.h. */
  18163. $ac_includes_default
  18164. #include <$ac_header>
  18165. _ACEOF
  18166. rm -f conftest.$ac_objext
  18167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18168. (eval $ac_compile) 2>conftest.er1
  18169. ac_status=$?
  18170. grep -v '^ *+' conftest.er1 >conftest.err
  18171. rm -f conftest.er1
  18172. cat conftest.err >&5
  18173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18174. (exit $ac_status); } &&
  18175. { ac_try='test -z "$ac_c_werror_flag"
  18176. || test ! -s conftest.err'
  18177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18178. (eval $ac_try) 2>&5
  18179. ac_status=$?
  18180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18181. (exit $ac_status); }; } &&
  18182. { ac_try='test -s conftest.$ac_objext'
  18183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18184. (eval $ac_try) 2>&5
  18185. ac_status=$?
  18186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18187. (exit $ac_status); }; }; then
  18188. ac_header_compiler=yes
  18189. else
  18190. echo "$as_me: failed program was:" >&5
  18191. sed 's/^/| /' conftest.$ac_ext >&5
  18192. ac_header_compiler=no
  18193. fi
  18194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18195. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18196. echo "${ECHO_T}$ac_header_compiler" >&6
  18197. # Is the header present?
  18198. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18199. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18200. cat >conftest.$ac_ext <<_ACEOF
  18201. /* confdefs.h. */
  18202. _ACEOF
  18203. cat confdefs.h >>conftest.$ac_ext
  18204. cat >>conftest.$ac_ext <<_ACEOF
  18205. /* end confdefs.h. */
  18206. #include <$ac_header>
  18207. _ACEOF
  18208. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18209. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18210. ac_status=$?
  18211. grep -v '^ *+' conftest.er1 >conftest.err
  18212. rm -f conftest.er1
  18213. cat conftest.err >&5
  18214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18215. (exit $ac_status); } >/dev/null; then
  18216. if test -s conftest.err; then
  18217. ac_cpp_err=$ac_c_preproc_warn_flag
  18218. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18219. else
  18220. ac_cpp_err=
  18221. fi
  18222. else
  18223. ac_cpp_err=yes
  18224. fi
  18225. if test -z "$ac_cpp_err"; then
  18226. ac_header_preproc=yes
  18227. else
  18228. echo "$as_me: failed program was:" >&5
  18229. sed 's/^/| /' conftest.$ac_ext >&5
  18230. ac_header_preproc=no
  18231. fi
  18232. rm -f conftest.err conftest.$ac_ext
  18233. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18234. echo "${ECHO_T}$ac_header_preproc" >&6
  18235. # So? What about this header?
  18236. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18237. yes:no: )
  18238. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18239. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18240. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18241. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18242. ac_header_preproc=yes
  18243. ;;
  18244. no:yes:* )
  18245. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18246. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18247. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18248. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18249. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18250. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18251. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18252. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18253. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18254. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18255. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18256. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18257. (
  18258. cat <<\_ASBOX
  18259. ## ------------------------------------------ ##
  18260. ## Report this to the AC_PACKAGE_NAME lists. ##
  18261. ## ------------------------------------------ ##
  18262. _ASBOX
  18263. ) |
  18264. sed "s/^/$as_me: WARNING: /" >&2
  18265. ;;
  18266. esac
  18267. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18268. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18269. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18270. echo $ECHO_N "(cached) $ECHO_C" >&6
  18271. else
  18272. eval "$as_ac_Header=\$ac_header_preproc"
  18273. fi
  18274. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18275. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18276. fi
  18277. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18278. cat >>confdefs.h <<_ACEOF
  18279. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18280. _ACEOF
  18281. fi
  18282. done
  18283. for ac_header in signal.h
  18284. do
  18285. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18286. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18287. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18288. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18289. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18290. echo $ECHO_N "(cached) $ECHO_C" >&6
  18291. fi
  18292. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18293. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18294. else
  18295. # Is the header compilable?
  18296. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18297. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18298. cat >conftest.$ac_ext <<_ACEOF
  18299. /* confdefs.h. */
  18300. _ACEOF
  18301. cat confdefs.h >>conftest.$ac_ext
  18302. cat >>conftest.$ac_ext <<_ACEOF
  18303. /* end confdefs.h. */
  18304. $ac_includes_default
  18305. #include <$ac_header>
  18306. _ACEOF
  18307. rm -f conftest.$ac_objext
  18308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18309. (eval $ac_compile) 2>conftest.er1
  18310. ac_status=$?
  18311. grep -v '^ *+' conftest.er1 >conftest.err
  18312. rm -f conftest.er1
  18313. cat conftest.err >&5
  18314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18315. (exit $ac_status); } &&
  18316. { ac_try='test -z "$ac_c_werror_flag"
  18317. || test ! -s conftest.err'
  18318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18319. (eval $ac_try) 2>&5
  18320. ac_status=$?
  18321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18322. (exit $ac_status); }; } &&
  18323. { ac_try='test -s conftest.$ac_objext'
  18324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18325. (eval $ac_try) 2>&5
  18326. ac_status=$?
  18327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18328. (exit $ac_status); }; }; then
  18329. ac_header_compiler=yes
  18330. else
  18331. echo "$as_me: failed program was:" >&5
  18332. sed 's/^/| /' conftest.$ac_ext >&5
  18333. ac_header_compiler=no
  18334. fi
  18335. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18336. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18337. echo "${ECHO_T}$ac_header_compiler" >&6
  18338. # Is the header present?
  18339. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18340. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18341. cat >conftest.$ac_ext <<_ACEOF
  18342. /* confdefs.h. */
  18343. _ACEOF
  18344. cat confdefs.h >>conftest.$ac_ext
  18345. cat >>conftest.$ac_ext <<_ACEOF
  18346. /* end confdefs.h. */
  18347. #include <$ac_header>
  18348. _ACEOF
  18349. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18350. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18351. ac_status=$?
  18352. grep -v '^ *+' conftest.er1 >conftest.err
  18353. rm -f conftest.er1
  18354. cat conftest.err >&5
  18355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18356. (exit $ac_status); } >/dev/null; then
  18357. if test -s conftest.err; then
  18358. ac_cpp_err=$ac_c_preproc_warn_flag
  18359. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18360. else
  18361. ac_cpp_err=
  18362. fi
  18363. else
  18364. ac_cpp_err=yes
  18365. fi
  18366. if test -z "$ac_cpp_err"; then
  18367. ac_header_preproc=yes
  18368. else
  18369. echo "$as_me: failed program was:" >&5
  18370. sed 's/^/| /' conftest.$ac_ext >&5
  18371. ac_header_preproc=no
  18372. fi
  18373. rm -f conftest.err conftest.$ac_ext
  18374. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18375. echo "${ECHO_T}$ac_header_preproc" >&6
  18376. # So? What about this header?
  18377. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18378. yes:no: )
  18379. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18380. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18381. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18382. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18383. ac_header_preproc=yes
  18384. ;;
  18385. no:yes:* )
  18386. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18387. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18388. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18389. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18390. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18391. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18392. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18393. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18394. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18395. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18396. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18397. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18398. (
  18399. cat <<\_ASBOX
  18400. ## ------------------------------------------ ##
  18401. ## Report this to the AC_PACKAGE_NAME lists. ##
  18402. ## ------------------------------------------ ##
  18403. _ASBOX
  18404. ) |
  18405. sed "s/^/$as_me: WARNING: /" >&2
  18406. ;;
  18407. esac
  18408. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18409. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18410. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18411. echo $ECHO_N "(cached) $ECHO_C" >&6
  18412. else
  18413. eval "$as_ac_Header=\$ac_header_preproc"
  18414. fi
  18415. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18416. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18417. fi
  18418. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18419. cat >>confdefs.h <<_ACEOF
  18420. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18421. _ACEOF
  18422. fi
  18423. done
  18424. for ac_header in termios.h
  18425. do
  18426. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18427. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18428. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18429. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18430. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18431. echo $ECHO_N "(cached) $ECHO_C" >&6
  18432. fi
  18433. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18434. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18435. else
  18436. # Is the header compilable?
  18437. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18438. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18439. cat >conftest.$ac_ext <<_ACEOF
  18440. /* confdefs.h. */
  18441. _ACEOF
  18442. cat confdefs.h >>conftest.$ac_ext
  18443. cat >>conftest.$ac_ext <<_ACEOF
  18444. /* end confdefs.h. */
  18445. $ac_includes_default
  18446. #include <$ac_header>
  18447. _ACEOF
  18448. rm -f conftest.$ac_objext
  18449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18450. (eval $ac_compile) 2>conftest.er1
  18451. ac_status=$?
  18452. grep -v '^ *+' conftest.er1 >conftest.err
  18453. rm -f conftest.er1
  18454. cat conftest.err >&5
  18455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18456. (exit $ac_status); } &&
  18457. { ac_try='test -z "$ac_c_werror_flag"
  18458. || test ! -s conftest.err'
  18459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18460. (eval $ac_try) 2>&5
  18461. ac_status=$?
  18462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18463. (exit $ac_status); }; } &&
  18464. { ac_try='test -s conftest.$ac_objext'
  18465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18466. (eval $ac_try) 2>&5
  18467. ac_status=$?
  18468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18469. (exit $ac_status); }; }; then
  18470. ac_header_compiler=yes
  18471. else
  18472. echo "$as_me: failed program was:" >&5
  18473. sed 's/^/| /' conftest.$ac_ext >&5
  18474. ac_header_compiler=no
  18475. fi
  18476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18477. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18478. echo "${ECHO_T}$ac_header_compiler" >&6
  18479. # Is the header present?
  18480. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18481. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18482. cat >conftest.$ac_ext <<_ACEOF
  18483. /* confdefs.h. */
  18484. _ACEOF
  18485. cat confdefs.h >>conftest.$ac_ext
  18486. cat >>conftest.$ac_ext <<_ACEOF
  18487. /* end confdefs.h. */
  18488. #include <$ac_header>
  18489. _ACEOF
  18490. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18491. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18492. ac_status=$?
  18493. grep -v '^ *+' conftest.er1 >conftest.err
  18494. rm -f conftest.er1
  18495. cat conftest.err >&5
  18496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18497. (exit $ac_status); } >/dev/null; then
  18498. if test -s conftest.err; then
  18499. ac_cpp_err=$ac_c_preproc_warn_flag
  18500. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18501. else
  18502. ac_cpp_err=
  18503. fi
  18504. else
  18505. ac_cpp_err=yes
  18506. fi
  18507. if test -z "$ac_cpp_err"; then
  18508. ac_header_preproc=yes
  18509. else
  18510. echo "$as_me: failed program was:" >&5
  18511. sed 's/^/| /' conftest.$ac_ext >&5
  18512. ac_header_preproc=no
  18513. fi
  18514. rm -f conftest.err conftest.$ac_ext
  18515. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18516. echo "${ECHO_T}$ac_header_preproc" >&6
  18517. # So? What about this header?
  18518. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18519. yes:no: )
  18520. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18521. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18522. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18523. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18524. ac_header_preproc=yes
  18525. ;;
  18526. no:yes:* )
  18527. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18528. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18529. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18530. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18531. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18532. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18533. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18534. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18535. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18536. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18537. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18538. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18539. (
  18540. cat <<\_ASBOX
  18541. ## ------------------------------------------ ##
  18542. ## Report this to the AC_PACKAGE_NAME lists. ##
  18543. ## ------------------------------------------ ##
  18544. _ASBOX
  18545. ) |
  18546. sed "s/^/$as_me: WARNING: /" >&2
  18547. ;;
  18548. esac
  18549. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18550. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18551. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18552. echo $ECHO_N "(cached) $ECHO_C" >&6
  18553. else
  18554. eval "$as_ac_Header=\$ac_header_preproc"
  18555. fi
  18556. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18557. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18558. fi
  18559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18560. cat >>confdefs.h <<_ACEOF
  18561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18562. _ACEOF
  18563. fi
  18564. done
  18565. for ac_header in grp.h
  18566. do
  18567. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18568. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18569. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18570. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18571. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18572. echo $ECHO_N "(cached) $ECHO_C" >&6
  18573. fi
  18574. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18575. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18576. else
  18577. # Is the header compilable?
  18578. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18579. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18580. cat >conftest.$ac_ext <<_ACEOF
  18581. /* confdefs.h. */
  18582. _ACEOF
  18583. cat confdefs.h >>conftest.$ac_ext
  18584. cat >>conftest.$ac_ext <<_ACEOF
  18585. /* end confdefs.h. */
  18586. $ac_includes_default
  18587. #include <$ac_header>
  18588. _ACEOF
  18589. rm -f conftest.$ac_objext
  18590. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18591. (eval $ac_compile) 2>conftest.er1
  18592. ac_status=$?
  18593. grep -v '^ *+' conftest.er1 >conftest.err
  18594. rm -f conftest.er1
  18595. cat conftest.err >&5
  18596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18597. (exit $ac_status); } &&
  18598. { ac_try='test -z "$ac_c_werror_flag"
  18599. || test ! -s conftest.err'
  18600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18601. (eval $ac_try) 2>&5
  18602. ac_status=$?
  18603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18604. (exit $ac_status); }; } &&
  18605. { ac_try='test -s conftest.$ac_objext'
  18606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18607. (eval $ac_try) 2>&5
  18608. ac_status=$?
  18609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18610. (exit $ac_status); }; }; then
  18611. ac_header_compiler=yes
  18612. else
  18613. echo "$as_me: failed program was:" >&5
  18614. sed 's/^/| /' conftest.$ac_ext >&5
  18615. ac_header_compiler=no
  18616. fi
  18617. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18618. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18619. echo "${ECHO_T}$ac_header_compiler" >&6
  18620. # Is the header present?
  18621. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18622. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18623. cat >conftest.$ac_ext <<_ACEOF
  18624. /* confdefs.h. */
  18625. _ACEOF
  18626. cat confdefs.h >>conftest.$ac_ext
  18627. cat >>conftest.$ac_ext <<_ACEOF
  18628. /* end confdefs.h. */
  18629. #include <$ac_header>
  18630. _ACEOF
  18631. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18632. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18633. ac_status=$?
  18634. grep -v '^ *+' conftest.er1 >conftest.err
  18635. rm -f conftest.er1
  18636. cat conftest.err >&5
  18637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18638. (exit $ac_status); } >/dev/null; then
  18639. if test -s conftest.err; then
  18640. ac_cpp_err=$ac_c_preproc_warn_flag
  18641. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18642. else
  18643. ac_cpp_err=
  18644. fi
  18645. else
  18646. ac_cpp_err=yes
  18647. fi
  18648. if test -z "$ac_cpp_err"; then
  18649. ac_header_preproc=yes
  18650. else
  18651. echo "$as_me: failed program was:" >&5
  18652. sed 's/^/| /' conftest.$ac_ext >&5
  18653. ac_header_preproc=no
  18654. fi
  18655. rm -f conftest.err conftest.$ac_ext
  18656. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18657. echo "${ECHO_T}$ac_header_preproc" >&6
  18658. # So? What about this header?
  18659. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18660. yes:no: )
  18661. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18662. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18663. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18664. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18665. ac_header_preproc=yes
  18666. ;;
  18667. no:yes:* )
  18668. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18669. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18670. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18671. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18672. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18673. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18674. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18675. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18676. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18677. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18678. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18679. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18680. (
  18681. cat <<\_ASBOX
  18682. ## ------------------------------------------ ##
  18683. ## Report this to the AC_PACKAGE_NAME lists. ##
  18684. ## ------------------------------------------ ##
  18685. _ASBOX
  18686. ) |
  18687. sed "s/^/$as_me: WARNING: /" >&2
  18688. ;;
  18689. esac
  18690. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18691. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18692. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18693. echo $ECHO_N "(cached) $ECHO_C" >&6
  18694. else
  18695. eval "$as_ac_Header=\$ac_header_preproc"
  18696. fi
  18697. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18698. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18699. fi
  18700. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18701. cat >>confdefs.h <<_ACEOF
  18702. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18703. _ACEOF
  18704. fi
  18705. done
  18706. for ac_header in pwd.h
  18707. do
  18708. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18709. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18710. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18711. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18712. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18713. echo $ECHO_N "(cached) $ECHO_C" >&6
  18714. fi
  18715. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18716. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18717. else
  18718. # Is the header compilable?
  18719. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18720. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18721. cat >conftest.$ac_ext <<_ACEOF
  18722. /* confdefs.h. */
  18723. _ACEOF
  18724. cat confdefs.h >>conftest.$ac_ext
  18725. cat >>conftest.$ac_ext <<_ACEOF
  18726. /* end confdefs.h. */
  18727. $ac_includes_default
  18728. #include <$ac_header>
  18729. _ACEOF
  18730. rm -f conftest.$ac_objext
  18731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18732. (eval $ac_compile) 2>conftest.er1
  18733. ac_status=$?
  18734. grep -v '^ *+' conftest.er1 >conftest.err
  18735. rm -f conftest.er1
  18736. cat conftest.err >&5
  18737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18738. (exit $ac_status); } &&
  18739. { ac_try='test -z "$ac_c_werror_flag"
  18740. || test ! -s conftest.err'
  18741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18742. (eval $ac_try) 2>&5
  18743. ac_status=$?
  18744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18745. (exit $ac_status); }; } &&
  18746. { ac_try='test -s conftest.$ac_objext'
  18747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18748. (eval $ac_try) 2>&5
  18749. ac_status=$?
  18750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18751. (exit $ac_status); }; }; then
  18752. ac_header_compiler=yes
  18753. else
  18754. echo "$as_me: failed program was:" >&5
  18755. sed 's/^/| /' conftest.$ac_ext >&5
  18756. ac_header_compiler=no
  18757. fi
  18758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18759. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18760. echo "${ECHO_T}$ac_header_compiler" >&6
  18761. # Is the header present?
  18762. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18763. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18764. cat >conftest.$ac_ext <<_ACEOF
  18765. /* confdefs.h. */
  18766. _ACEOF
  18767. cat confdefs.h >>conftest.$ac_ext
  18768. cat >>conftest.$ac_ext <<_ACEOF
  18769. /* end confdefs.h. */
  18770. #include <$ac_header>
  18771. _ACEOF
  18772. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18773. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18774. ac_status=$?
  18775. grep -v '^ *+' conftest.er1 >conftest.err
  18776. rm -f conftest.er1
  18777. cat conftest.err >&5
  18778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18779. (exit $ac_status); } >/dev/null; then
  18780. if test -s conftest.err; then
  18781. ac_cpp_err=$ac_c_preproc_warn_flag
  18782. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18783. else
  18784. ac_cpp_err=
  18785. fi
  18786. else
  18787. ac_cpp_err=yes
  18788. fi
  18789. if test -z "$ac_cpp_err"; then
  18790. ac_header_preproc=yes
  18791. else
  18792. echo "$as_me: failed program was:" >&5
  18793. sed 's/^/| /' conftest.$ac_ext >&5
  18794. ac_header_preproc=no
  18795. fi
  18796. rm -f conftest.err conftest.$ac_ext
  18797. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18798. echo "${ECHO_T}$ac_header_preproc" >&6
  18799. # So? What about this header?
  18800. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18801. yes:no: )
  18802. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18803. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18804. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18805. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18806. ac_header_preproc=yes
  18807. ;;
  18808. no:yes:* )
  18809. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18810. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18811. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18812. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18813. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18814. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18815. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18816. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18817. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18818. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18819. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18820. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18821. (
  18822. cat <<\_ASBOX
  18823. ## ------------------------------------------ ##
  18824. ## Report this to the AC_PACKAGE_NAME lists. ##
  18825. ## ------------------------------------------ ##
  18826. _ASBOX
  18827. ) |
  18828. sed "s/^/$as_me: WARNING: /" >&2
  18829. ;;
  18830. esac
  18831. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18832. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18833. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18834. echo $ECHO_N "(cached) $ECHO_C" >&6
  18835. else
  18836. eval "$as_ac_Header=\$ac_header_preproc"
  18837. fi
  18838. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18839. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18840. fi
  18841. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18842. cat >>confdefs.h <<_ACEOF
  18843. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18844. _ACEOF
  18845. fi
  18846. done
  18847. if test $ac_cv_c_compiler_gnu = yes; then
  18848. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  18849. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  18850. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  18851. echo $ECHO_N "(cached) $ECHO_C" >&6
  18852. else
  18853. ac_pattern="Autoconf.*'x'"
  18854. cat >conftest.$ac_ext <<_ACEOF
  18855. /* confdefs.h. */
  18856. _ACEOF
  18857. cat confdefs.h >>conftest.$ac_ext
  18858. cat >>conftest.$ac_ext <<_ACEOF
  18859. /* end confdefs.h. */
  18860. #include <sgtty.h>
  18861. Autoconf TIOCGETP
  18862. _ACEOF
  18863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18864. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  18865. ac_cv_prog_gcc_traditional=yes
  18866. else
  18867. ac_cv_prog_gcc_traditional=no
  18868. fi
  18869. rm -f conftest*
  18870. if test $ac_cv_prog_gcc_traditional = no; then
  18871. cat >conftest.$ac_ext <<_ACEOF
  18872. /* confdefs.h. */
  18873. _ACEOF
  18874. cat confdefs.h >>conftest.$ac_ext
  18875. cat >>conftest.$ac_ext <<_ACEOF
  18876. /* end confdefs.h. */
  18877. #include <termio.h>
  18878. Autoconf TCGETA
  18879. _ACEOF
  18880. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18881. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  18882. ac_cv_prog_gcc_traditional=yes
  18883. fi
  18884. rm -f conftest*
  18885. fi
  18886. fi
  18887. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  18888. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  18889. if test $ac_cv_prog_gcc_traditional = yes; then
  18890. CC="$CC -traditional"
  18891. fi
  18892. fi
  18893. # ftsoy
  18894. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  18895. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  18896. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  18897. if test "${enable_maintainer_mode+set}" = set; then
  18898. enableval="$enable_maintainer_mode"
  18899. USE_MAINTAINER_MODE=$enableval
  18900. else
  18901. USE_MAINTAINER_MODE=no
  18902. fi;
  18903. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  18904. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  18905. if test $USE_MAINTAINER_MODE = yes; then
  18906. MAINTAINER_MODE_TRUE=
  18907. MAINTAINER_MODE_FALSE='#'
  18908. else
  18909. MAINTAINER_MODE_TRUE='#'
  18910. MAINTAINER_MODE_FALSE=
  18911. fi
  18912. MAINT=$MAINTAINER_MODE_TRUE
  18913. JHOME=
  18914. RXTX_PATH=
  18915. EXTENSION="c"
  18916. OBJECT_EXTENSION="lo"
  18917. LIB_EXTENSION="la"
  18918. COMPILE="cc "
  18919. TOP="`pwd`"
  18920. GLIBTOOL="\$(SHELL) \$(TOP)/libtool"
  18921. LINK="\$(GLIBTOOL) --mode=link \$(CC) \$(CFLAGS) \$(LDFLAGS) -release \$(VERSION) -o librxtx\$*.la -rpath \$(RXTX_PATH)"
  18922. case "$host_os" in
  18923. *-gnu)
  18924. CFLAGS=$CFLAGS" -D_POSIX_SOURCE";;
  18925. *);;
  18926. esac
  18927. # Check whether --enable-PRINTER or --disable-PRINTER was given.
  18928. if test "${enable_PRINTER+set}" = set; then
  18929. enableval="$enable_PRINTER"
  18930. echo $enable_PRINTER
  18931. else
  18932. enable_PRINTER="yes"
  18933. fi;
  18934. if test x$enable_PRINTER = xyes; then
  18935. TARGETLIB="\$(target_triplet)/librxtxSerial.la \
  18936. \$(target_triplet)/librxtxParallel.la \
  18937. \$(target_triplet)/librxtxI2C.la \
  18938. \$(target_triplet)/librxtxRaw.la \
  18939. \$(target_triplet)/librxtxRS485.la"
  18940. else
  18941. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  18942. fi
  18943. # Check whether --enable-lockfiles or --disable-lockfiles was given.
  18944. if test "${enable_lockfiles+set}" = set; then
  18945. enableval="$enable_lockfiles"
  18946. if test x$lockfiles = xyes; then
  18947. echo "Using lock files"
  18948. else
  18949. echo "Disabling lock files"
  18950. CFLAGS=$CFLAGS" -DDISABLE_LOCKFILES"
  18951. fi
  18952. fi;
  18953. # Check whether --enable-liblock or --disable-liblock was given.
  18954. if test "${enable_liblock+set}" = set; then
  18955. enableval="$enable_liblock"
  18956. if test "x$liblock" != "xno"; then
  18957. echo "Using liblock"
  18958. CFLAGS=$CFLAGS" -DLIBLOCKDEV"
  18959. LDFLAGS=$LDFLAGS" -llockdev"
  18960. else
  18961. echo $liblock
  18962. echo "Disabling liblock"
  18963. fi
  18964. fi;
  18965. # Check whether --enable-lockfile_server or --disable-lockfile_server was given.
  18966. if test "${enable_lockfile_server+set}" = set; then
  18967. enableval="$enable_lockfile_server"
  18968. if test x$enable_lockfile_server = xyes; then
  18969. CFLAGS=$CFLAGS" -DLFS"
  18970. fi
  18971. fi;
  18972. # Check whether --enable-DEBUG or --disable-DEBUG was given.
  18973. if test "${enable_DEBUG+set}" = set; then
  18974. enableval="$enable_DEBUG"
  18975. if test x$enable_DEBUG = xyes; then
  18976. CFLAGS=$CFLAGS" -DDEBUG"
  18977. fi
  18978. fi;
  18979. find_java_native_include()
  18980. {
  18981. JAVANATINC="-I\$(JAVAINCLUDEDIR)/`cd $JAVAINCLUDEDIR; find . -name $1|sed s#$1##|head -n1`"
  18982. if test `cd $JAVAINCLUDEDIR; find . -name $1|wc -l` != "1" ; then
  18983. echo 1>&2
  18984. echo WARNING: configure is having a hard time determining which 1>&2
  18985. echo directory contains the file $1. Edit Makefile and fix the 1>&2
  18986. echo variable JAVANATINC to point to the correct directory. 1>&2
  18987. echo 1>&2
  18988. echo The following options are available: 1>&2
  18989. find $JAVAINCLUDEDIR -name $1|sed s#jni_md\.h## 1>&2
  18990. echo 1>&2
  18991. echo If there are more than one option available the first was selected. 1>&2
  18992. echo 1>&2
  18993. fi
  18994. }
  18995. build_conftest()
  18996. {
  18997. cat > conftest.java << EOF
  18998. /* this may be usefull for getting around java cobwebs during build */
  18999. public class conftest
  19000. {
  19001. public static void main(String[] args)
  19002. {
  19003. System.out.println(System.getProperty(args[0]));
  19004. }
  19005. }
  19006. EOF
  19007. CLASSPATH=.:$CLASSPATH
  19008. if test x$JAVA_HOME = x; then
  19009. javac -classpath .:$CLASSPATH: conftest.java
  19010. else
  19011. $JAVA_HOME/bin/javac -classpath .:$CLASSPATH: conftest.java
  19012. fi
  19013. }
  19014. run_conftest()
  19015. {
  19016. echo $ECHO_N checking $1 " " 1>&6
  19017. if test x$JPATH = x; then
  19018. VAR=`java -classpath .:$CLASSPATH: conftest $1`
  19019. else
  19020. VAR=`$JPATH/bin/java -classpath .:$CLASSPATH: conftest $1`
  19021. fi
  19022. echo $VAR 1>&6
  19023. echo $VAR
  19024. return
  19025. }
  19026. build_conftest
  19027. if test x$JAVA_HOME = x; then
  19028. JPATH=`run_conftest java.home| sed s#\/jre\\$##g`
  19029. else
  19030. JPATH=$JAVA_HOME
  19031. echo $JAVA_HOME
  19032. { echo "$as_me:$LINENO: WARNING: using JAVA_HOME environmental variable" >&5
  19033. echo "$as_me: WARNING: using JAVA_HOME environmental variable" >&2;}
  19034. fi
  19035. if test x$JPATH = x; then
  19036. { { echo "$as_me:$LINENO: error: Make sure java is in your path before running configure" >&5
  19037. echo "$as_me: error: Make sure java is in your path before running configure" >&2;}
  19038. { (exit 1); exit 1; }; }
  19039. fi
  19040. echo adjusted java.home is $JPATH
  19041. if test "$target_alias" = i386-mingw32 ;then
  19042. OS_NAME=WIN32
  19043. else
  19044. OS_NAME=`run_conftest os.name`
  19045. fi
  19046. OS_ARCH=`run_conftest os.arch`
  19047. #JAVA_CLASS_PATH=`run_conftest java.class.path`
  19048. #JAVA_LIBRARY_PATH=`run_conftest java.library.path`
  19049. JAVA_VENDOR=`run_conftest java.vendor`
  19050. JAVA_VERSION=`run_conftest java.version`
  19051. rm -f conftest.java
  19052. rm -f conftest.class
  19053. echo $ECHO_N checking os.version " " 1>&6
  19054. OS_VERSION=`uname -r`
  19055. echo $OS_VERSION 1>&6
  19056. check_prefix()
  19057. {
  19058. if test $prefix != "/usr";then
  19059. echo 1>&2
  19060. echo "WARNING: configure was not run with option --prefix=/usr" 1>&2
  19061. echo " Unless /usr/local/lib or the specified prefix is in" 1>&2
  19062. echo " the linkers path this will cause problems later on." 1>&2
  19063. echo 1>&2
  19064. fi
  19065. }
  19066. # an attempt to compile on libc5 linux machines
  19067. check_java_headers()
  19068. {
  19069. cat > conftest.c << EOF
  19070. #include <features.h>
  19071. #include <stdio.h>
  19072. #include <stdlib.h>
  19073. int main(int argc, char *argv)
  19074. {
  19075. #if defined (__GLIBC__)
  19076. printf("%i\n",__GLIBC__);
  19077. #else
  19078. printf("0\n");
  19079. #endif
  19080. exit(0);
  19081. }
  19082. EOF
  19083. cc conftest.c -o conftest
  19084. if test `./conftest` -lt 2 ;then
  19085. echo 1>&2
  19086. echo " WARNING: Older libc on linux detected. Patching a local copy of jni_md.h" 1>&2
  19087. echo 1>&2
  19088. ln -s `find $JAVAINCLUDEDIR -name jni.h` .
  19089. cp `find $JAVAINCLUDEDIR -name typedefs_md.h` .
  19090. # not pretty. could be cleaned up
  19091. patch << EOF
  19092. --- typedefs_md.h Tue Jan 11 14:17:08 2000
  19093. +++ typedefs_md.h.patchtaj Tue Jan 11 14:15:53 2000
  19094. @@ -17,9 +17,6 @@
  19095. */
  19096. /* sbb: Johan Vos, why isn't this #ifndef inside the solaris header guard? */
  19097. -#ifndef BITSPERCHAR
  19098. -#define BITSPERCHAR 8
  19099. -#endif
  19100. #ifndef _SOLARIS_TYPES_MD_H_
  19101. #define _SOLARIS_TYPES_MD_H_
  19102. @@ -28,50 +25,19 @@
  19103. #include <sys/stat.h>
  19104. #include "bool.h"
  19105. -#if defined(__alpha__)
  19106. -typedef unsigned long ptr_int;
  19107. -#define PTR_IS_64 1
  19108. -#define LONG_IS_64 1
  19109. -#else
  19110. typedef unsigned int ptr_int;
  19111. #define PTR_IS_32 1
  19112. -#endif
  19113. /* don't redefine typedef's on Solaris 2.6 or Later */
  19114. -#if !defined(_ILP32) && !defined(_LP64)
  19115. -
  19116. -#ifndef _UINT64_T
  19117. -#define _UINT64_T
  19118. -#ifdef LONG_IS_64
  19119. -typedef unsigned long uint64_t;
  19120. -#else
  19121. typedef unsigned long long uint64_t;
  19122. -#endif
  19123. -#define _UINT32_T
  19124. typedef unsigned int uint32_t;
  19125. -#if defined(__linux__)
  19126. typedef unsigned int uint_t;
  19127. -#endif
  19128. -#endif
  19129. -#ifndef __BIT_TYPES_DEFINED__
  19130. -#ifdef (__i386__)
  19131. -/* that should get Linux, at least */
  19132. #ifndef _INT64_T
  19133. #define _INT64_T
  19134. -#ifdef LONG_IS_64
  19135. -typedef long int64_t;
  19136. -#else
  19137. typedef long long int64_t;
  19138. -#endif
  19139. -#define _INT32_T
  19140. -typedef int int32_t;
  19141. -#if defined(__linux__)
  19142. -typdef int int_t;
  19143. -#endif
  19144. -#endif
  19145. -#endif /* i386 */
  19146. +typedef int int_t;
  19147. #endif /* __BIT_TYPES_DEFINED__ */
  19148. #endif /* !defined(_ILP32) && !defined(_LP64) */
  19149. @@ -110,27 +76,15 @@
  19150. #endif
  19151. -/* On Intel these conversions have to be method calls and not typecasts.
  19152. - See the win32 typedefs_md.h file */
  19153. -#if ((defined(i386) || defined (__i386)) && defined(__solaris__)) || defined(__powerpc__)
  19154. -
  19155. -extern int32_t float2l(float f);
  19156. -extern int32_t double2l(double d);
  19157. -extern int64_t float2ll(float f);
  19158. -extern int64_t double2ll(double d);
  19159. -
  19160. -#else /* not solaris x386 or linux powerpc*/
  19161. -
  19162. #define float2l(f) (f)
  19163. #define double2l(f) (f)
  19164. #define float2ll(f) ((int64_t) (f))
  19165. #define double2ll(f) ((int64_t) (f))
  19166. -#endif /* i386 */
  19167. -
  19168. #define ll2float(a) ((float) (a))
  19169. #define ll2double(a) ((double) (a))
  19170. +#define double2ll(f) ((int64_t) (f))
  19171. /* comparison operators */
  19172. #define ll_ltz(ll) ((ll)<0)
  19173. @@ -148,13 +102,7 @@
  19174. extern void ll2str(int64_t a, char *s, char *limit);
  19175. -#if defined(ppc) || defined(__ppc__) || defined(__alpha__) || defined(__sparc__)
  19176. -#ifndef HAVE_ALIGNED_DOUBLES
  19177. +#if defined(ppc) || defined(__ppc__) || defined(__alpha__)
  19178. #define HAVE_ALIGNED_DOUBLES
  19179. -#endif
  19180. -#ifndef HAVE_ALIGNED_LONGLONGS
  19181. #define HAVE_ALIGNED_LONGLONGS
  19182. #endif
  19183. -#endif
  19184. -
  19185. -#endif /* !_SOLARIS_TYPES_MD_H_ */
  19186. EOF
  19187. fi
  19188. rm -f conftest.c
  19189. rm -f conftest
  19190. }
  19191. check_kernel_headers()
  19192. {
  19193. cat > conftest.c << EOF
  19194. #include <linux/version.h>
  19195. #include <stdio.h>
  19196. #include <stdlib.h>
  19197. int main(int argc, char *argv)
  19198. {
  19199. printf(UTS_RELEASE"\n");
  19200. exit(0);
  19201. }
  19202. EOF
  19203. cc conftest.c -o conftest
  19204. if test `uname -r` != `./conftest` ;then
  19205. echo 1>&2
  19206. echo " WARNING: Kernel include files do not match the current kernel" 1>&2
  19207. echo 1>&2
  19208. fi
  19209. rm -f conftest.c
  19210. rm -f conftest
  19211. }
  19212. #fix_mac_groups()
  19213. #{
  19214. #this is what the Mac OS X installer does... untested
  19215. # sudo mkdir /var/spool/uucp
  19216. # sudo chmod 775 /var/spool/uucp
  19217. # sudo niutil -destroyval / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'`
  19218. # sudo niutil -appendprop / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'`
  19219. #}
  19220. fix_comm_jar()
  19221. {
  19222. if test -f $1 ;then
  19223. echo "------------------------------------------------------" 1>&2
  19224. echo "WARNING: A comm.jar file is already installed" 1>&2
  19225. echo "make sure your CLASSPATH points to RXTXcomm.jar!" 1>&2
  19226. echo 1>&2
  19227. echo $1
  19228. echo 1>&2
  19229. echo "------------------------------------------------------" 1>&2
  19230. fi;
  19231. }
  19232. case $OS_NAME in
  19233. Mac\ OS\ X)
  19234. JAVAINCLUDEDIR=$JPATH/../../../Headers
  19235. ;;
  19236. *)
  19237. JAVAINCLUDEDIR=$JPATH/include
  19238. ;;
  19239. esac
  19240. JAVAINCLUDE="-I\$(JAVAINCLUDEDIR)"
  19241. if test "$CC" = "gcc" || test "$CC"="egcs"; then
  19242. case $JAVA_VENDOR in
  19243. Tran*)
  19244. find_java_native_include jni.h
  19245. JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(CLASSPATH) -d \$(DEST) -jni"
  19246. JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
  19247. JAR="\$(JPATH)/bin/jar"
  19248. JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)"
  19249. CFLAGS=$CFLAGS" -D_BSD_SOURCE"
  19250. JAVAINCLUDE=""
  19251. JAVAH_FIX="if test ! -d \$(target_triplet);then mkdir \$(target_triplet);fi;"
  19252. JHOME=$JPATH"/share/kaffe/"
  19253. RXTX_PATH=$JPATH"/lib/kaffe/"
  19254. ;;
  19255. *)
  19256. find_java_native_include jni_md.h
  19257. JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni"
  19258. JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
  19259. JAR="\$(JPATH)/bin/jar"
  19260. JAVADOC="\$(JPATH)/bin/javadoc"
  19261. CFLAGS=$CFLAGS" -D_BSD_SOURCE"
  19262. ;;
  19263. esac
  19264. fi
  19265. if test -d $JPATH/share/kaffe/
  19266. then fix_comm_jar $JPATH/share/kaffe/comm.jar
  19267. elif test -d $JPATH/jre/lib/ext
  19268. then fix_comm_jar $JPATH/jre/lib/ext/comm.jar
  19269. elif test -d $JPATH/lib/ext
  19270. then fix_comm_jar $JPATH/lib/ext/comm.jar
  19271. elif test -d $JPATH/lib
  19272. then fix_comm_jar $JPATH/lib/comm.jar
  19273. fi
  19274. # http://www.tolstoy.com/samizdat/sysprops.html
  19275. case $OS_NAME in
  19276. Linux)
  19277. LDFLAGS=$LDFLAGS" -lpthread"
  19278. check_kernel_headers
  19279. check_java_headers
  19280. CFLAGS=$CFLAGS" -D__need_timespec"
  19281. case $JAVA_VERSION in
  19282. 1.2*|1.3*|1.4*|1.5*)
  19283. #fix_parameters $JPATH/jre/lib/javax.comm.properties
  19284. CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
  19285. JHOME=$JPATH"/jre/lib/ext"
  19286. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19287. ;;
  19288. 1.1*)
  19289. CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \
  19290. if [ -d $JPATH/share/kaffe/ ]; then
  19291. find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp]
  19292. elif [ -d $JPATH/lib/ ]; then
  19293. find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp]
  19294. fi`":"`
  19295. if [ -d $JPATH/share/kaffe/ ]; then
  19296. find $JPATH/share/kaffe/ -name RXTXcomm.jar
  19297. elif [ -d $JPATH/lib/ ]; then
  19298. find $JPATH/lib/ -name RXTXcomm.jar
  19299. fi`
  19300. if test x"$RXTX_PATH" = x;then
  19301. # We are not using Kaffe
  19302. #fix_parameters $JPATH/lib/javax.comm.properties
  19303. check_prefix
  19304. RXTX_PATH="\$(prefix)/lib/"
  19305. JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;";
  19306. else
  19307. # Kaffe
  19308. CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar`
  19309. echo "Warning! Kaffe's comm.jar does not support rxtx"
  19310. echo "See INSTALL for details"
  19311. fi;
  19312. if test x"$JHOME" = x;then
  19313. JHOME=$JPATH/"lib"
  19314. fi
  19315. ;;
  19316. esac
  19317. # Cross Compilers
  19318. #echo ----------------------------
  19319. #echo $target_os
  19320. #echo ----------------------------
  19321. case $target_os in
  19322. linux*)
  19323. ;;
  19324. beos*)
  19325. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19326. EXTENSION="cpp"
  19327. LDFLAGS=$LDFLAGS" -ldevice"
  19328. #echo ----------------------------
  19329. #echo $target_os
  19330. #echo ----------------------------
  19331. ;;
  19332. freebsd*)
  19333. ;;
  19334. solaris*)
  19335. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19336. #echo ----------------------------
  19337. #echo $target_os
  19338. #echo ----------------------------
  19339. ;;
  19340. esac
  19341. ;;
  19342. *BSD)
  19343. LDFLAGS=$LDFLAGS" -lc_r"
  19344. JHOME=$JPATH/"lib"
  19345. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19346. TARGETLIB="\$(target_triplet)/librxtxSerial.la \
  19347. \$(target_triplet)/librxtxParallel.la"
  19348. case $JAVA_VERSION in
  19349. 1.2*|1.3*|1.4*|1.5*)
  19350. #fix_parameters $JPATH/jre/lib/javax.comm.properties
  19351. CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
  19352. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19353. JHOME=$JPATH/"jre/lib/ext"
  19354. ;;
  19355. 1.1*)
  19356. check_prefix
  19357. #fix_parameters $JPATH/lib/javax.comm.properties
  19358. CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \
  19359. if [ -d $JPATH/share/kaffe/ ]; then
  19360. find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp]
  19361. elif [ -d $JPATH/lib/ ]; then
  19362. find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp]
  19363. fi`":"`
  19364. if [ -d $JPATH/share/kaffe/ ]; then
  19365. find $JPATH/share/kaffe/ -name RXTXcomm.jar
  19366. elif [ -d $JPATH/lib/ ]; then
  19367. find $JPATH/lib/ -name RXTXcomm.jar
  19368. fi`
  19369. if test x"$RXTX_PATH" = x;then
  19370. # We are not using Kaffe
  19371. #fix_parameters $JPATH/lib/javax.comm.properties
  19372. check_prefix
  19373. RXTX_PATH="\$(prefix)/lib/"
  19374. JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;";
  19375. else
  19376. # Kaffe
  19377. CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar`
  19378. echo "Warning! Kaffe's comm.jar does not support rxtx"
  19379. echo "See INSTALL for details"
  19380. fi;
  19381. RXTX_PATH="\$(prefix)/lib"
  19382. JHOME=$JPATH/"lib"
  19383. ;;
  19384. *)
  19385. ;;
  19386. esac
  19387. ;;
  19388. Irix*)
  19389. JHOME=$JPATH/"lib"
  19390. CFLAGS=$CFLAGS" -I/usr/include"
  19391. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19392. RXTX_PATH="\$(JPATH)/lib/\$(OS_ARCH)"
  19393. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19394. ;;
  19395. # since the os.name is different for UnixWare and OpenUNIX we could use it to
  19396. # differentiate the lock files See SerialImp.h for comments on the lock files
  19397. # in SCO. Currently that would be a build time fix though.
  19398. # FIXME
  19399. UnixWare|OpenUNIX)
  19400. LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent"
  19401. JHOME=$JPATH/"jre/lib"
  19402. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1 -D__unixware__"
  19403. CLASSPATH="-classpath .:\$(TOP):\$(TOP)/src:\$(JPATH)/jre/lib/rt.jar:\$(JPATH)/jre/lib/ext/comm.jar"
  19404. TARGETLIB="\$(target_triplet)/librxtxSerial.so \
  19405. \$(target_triplet)/librxtxParallel.so"
  19406. COMPILE="\$(CC) \$(INCLUDES) \$(CPPFLAGS) \$(CFLAGS) \$(VERBOSE_IOEXCEPTIONS) -c "
  19407. LINK="\$(CC) \$(CFLAGS) \$(LDFLAGS)"
  19408. echo "In UnixWare, CLASSPATH is $CLASSPATH"
  19409. ;;
  19410. HP-UX)
  19411. LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent"
  19412. CFLAGS=$CFLAGS" -g -Aa +e -D__hpux__ -D_HPUX_SOURCE -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19413. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19414. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19415. case $JAVA_VERSION in
  19416. HP-UX\ Java\ C.01.2*|HP-UX\ Java\ C.01.3*)
  19417. #fix_parameters $JPATH/jre/lib/javax.comm.properties
  19418. JHOME=$JPATH"/jre/lib/ext"
  19419. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/jre/lib/ext/RXTXcomm.jar:$CLASSPATH"
  19420. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19421. echo WARNING $JAVA_VERSION is untested please email this message to taj@www.linux.org.uk and let me know if it works.
  19422. ;;
  19423. HP-UX\ Java\ C.01.1*)
  19424. #fix_parameters $JPATH/lib/javax.comm.properties
  19425. JHOME=$JPATH/"lib"
  19426. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19427. RXTX_PATH="\$(prefix)/lib/"
  19428. ;;
  19429. *)
  19430. #fix_parameters $JPATH/lib/javax.comm.properties
  19431. JHOME=$JPATH"/lib"
  19432. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19433. RXTX_PATH="\$(prefix)/lib/"
  19434. echo WARNING $JAVA_VERSION is untested please email this message to taj@www.linux.org.uk and let me know if it works.
  19435. ;;
  19436. esac
  19437. case $OS_ARCH in
  19438. PA-RISC)
  19439. ;;
  19440. *)
  19441. ;;
  19442. esac
  19443. case $OS_VERSION in
  19444. B.10.20)
  19445. ;;
  19446. *)
  19447. ;;
  19448. esac
  19449. case $JAVA_VENDOR in
  19450. Hewlett\ Packard\ Co\.)
  19451. ;;
  19452. *)
  19453. ;;
  19454. esac
  19455. ;;
  19456. BeOS)
  19457. echo WARNING: BeOS support is in RXTX-1.5
  19458. JHOME=$JPATH"/share/kaffe"
  19459. RXTX_PATH="\$(JPATH)/lib/"
  19460. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19461. CLASSPATH=".:\$(TOP):\$(TOP)/../src:\$(JPATH)/share/kaffe/Klasses.jar:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19462. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19463. EXTENSION="cpp"
  19464. LDFLAGS=$LDFLAGS" -ldevice"
  19465. # sigh, from ltconfig
  19466. # beos*)
  19467. # if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  19468. # allow_undefined_flag=unsupported
  19469. # # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  19470. # # support --undefined. This deserves some investigation. FIXME
  19471. LIBTOOL_FIX="sed s/deplibs_check_method=\\\"unknown\\\"/deplibs_check_method=\\\"pass_all\\\"/1 libtool > libtool.tmp; sed s/allow_undefined_flag=\\\"unsupported\\\"/allow_undefined_flag=\\\"supported\\\"/1 libtool.tmp > libtool;rm libtool.tmp;"
  19472. ;;
  19473. WIN32)
  19474. case $JAVA_VERSION in
  19475. 1.2*|1.3*|1.4*|1.5*)
  19476. CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH"
  19477. JHOME=$JPATH"/jre/lib/ext"
  19478. ;;
  19479. 1.1*)
  19480. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19481. RXTX_PATH="\$(prefix)/lib/"
  19482. JHOME=$JPATH/"lib"
  19483. ;;
  19484. esac
  19485. if test x$WIN32INCLUDE = x; then
  19486. echo "We need to know what directory the windows java include files"
  19487. echo "are located in. Please enter the directory now."
  19488. echo
  19489. echo "example /home/jarvi/win32java/include"
  19490. echo
  19491. read REPLY
  19492. WINDOWS_JAVA_INCLUDE="-I$REPLY -I$REPLY/win32"
  19493. else
  19494. WINDOWS_JAVA_INCLUDE="-I$WIN32INCLUDE -I$WIN32INCLUDE/win32"
  19495. fi
  19496. TARGETLIB="\$(target_triplet)/rxtxSerial.dll \$(target_triplet)/rxtxParallel.dll"
  19497. echo "$WINDOWS_JAVA_INCLUDE"
  19498. ;;
  19499. Mac\ OS\ X)
  19500. #fix_mac_groups
  19501. #fix_parameters $JPATH/lib/javax.comm.properties
  19502. GLIBTOOL="\$(SHELL) glibtool"
  19503. LINK="cc -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib "
  19504. OBJECT_EXTENSION="o"
  19505. LIB_EXTENSION="jnilib"
  19506. TARGETLIB="\$(target_triplet)/librxtxSerial.jnilib"
  19507. RXTX_PATH="/usr/lib/java"
  19508. JHOME=$JPATH"/lib/ext"
  19509. CFLAGS=$CFLAGS" -bundle"
  19510. LDFLAGS=$LDFLAGS" -module -framework JavaVM -framework IOKit -framework CoreFoundation"
  19511. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/ext/RXTXcomm.jar:$CLASSPATH"
  19512. # email taj@www.linux.org.uk if you know a nicer fix. Needed anymore?
  19513. # this fix was really old taj 6/05
  19514. # LIBTOOL_FIX="sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool;"
  19515. ;;
  19516. Solaris*)
  19517. + LDFLAGS=$LDFLAGS" -lpthread"
  19518. TARGETLIB="\$(target_triplet)/librxtxSerial.la \
  19519. \$(target_triplet)/librxtxParallel.la"
  19520. JHOME=$JPATH/"lib"
  19521. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19522. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19523. case $JAVA_VERSION in
  19524. 1.2*|1.3*|1.4*|1.5*)
  19525. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19526. ;;
  19527. 1.1*)
  19528. RXTX_PATH="\$(JPATH)/lib/"
  19529. ;;
  19530. esac
  19531. ;;
  19532. OS*2)
  19533. # Place marker only
  19534. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19535. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19536. JHOME=$JPATH/"lib"
  19537. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19538. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19539. ;;
  19540. AIX)
  19541. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19542. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19543. JHOME=$JPATH/"lib"
  19544. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19545. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19546. ;;
  19547. Compaq\'s\ Digital\ Unix | OSF1 )
  19548. LDFLAGS=$LDFLAGS" -lpthread"
  19549. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19550. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19551. JHOME=$JPATH/"lib"
  19552. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19553. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19554. ;;
  19555. NetWare*)
  19556. # Place marker only
  19557. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19558. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19559. JHOME=$JPATH/"lib"
  19560. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19561. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19562. ;;
  19563. MPE*)
  19564. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19565. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19566. JHOME=$JPATH/"lib"
  19567. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19568. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19569. ;;
  19570. #os.name reported "QNX"
  19571. #java.vendor reported "IBM Corporation"
  19572. #java.version reported "1.3.0 subset"
  19573. #
  19574. #Originally nothing was reported. javac is called j9c and java is called
  19575. #j9 with the
  19576. #j9 vm. I created symbolic links temporarily to get by that. Currently
  19577. #I'm puking when
  19578. #it tries to jar things up since j9 doesn't ship with a jar tool.
  19579. #All right. Here is how things stand on porting 2.1 to QNX. (This is were
  19580. #I stumble and fall)
  19581. #I decided to try it without any mods initially. It made through
  19582. #./configure fine except for
  19583. #finding the java include dir. Since we are using j9, the include dir is
  19584. #under bin. I set
  19585. #JAVANATINC to point to it in Makefile and then ran make. J9 then puked
  19586. #on the -O arg to javac,
  19587. #so I removed it. Now it is puking on importing java.awt. What is the
  19588. #best way to filter out/
  19589. #isolate the gui pieces since I won't be using them on qnx?
  19590. QNX)
  19591. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19592. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19593. JHOME=$JPATH/"lib"
  19594. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19595. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19596. ;;
  19597. *)
  19598. TARGETLIB="\$(target_triplet)/librxtxSerial.la"
  19599. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
  19600. JHOME=$JPATH/"lib"
  19601. CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
  19602. CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
  19603. ;;
  19604. esac
  19605. ac_config_files="$ac_config_files Makefile"
  19606. cat >confcache <<\_ACEOF
  19607. # This file is a shell script that caches the results of configure
  19608. # tests run on this system so they can be shared between configure
  19609. # scripts and configure runs, see configure's option --config-cache.
  19610. # It is not useful on other systems. If it contains results you don't
  19611. # want to keep, you may remove or edit it.
  19612. #
  19613. # config.status only pays attention to the cache file if you give it
  19614. # the --recheck option to rerun configure.
  19615. #
  19616. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19617. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19618. # following values.
  19619. _ACEOF
  19620. # The following way of writing the cache mishandles newlines in values,
  19621. # but we know of no workaround that is simple, portable, and efficient.
  19622. # So, don't put newlines in cache variables' values.
  19623. # Ultrix sh set writes to stderr and can't be redirected directly,
  19624. # and sets the high bit in the cache file unless we assign to the vars.
  19625. {
  19626. (set) 2>&1 |
  19627. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  19628. *ac_space=\ *)
  19629. # `set' does not quote correctly, so add quotes (double-quote
  19630. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19631. sed -n \
  19632. "s/'/'\\\\''/g;
  19633. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19634. ;;
  19635. *)
  19636. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19637. sed -n \
  19638. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  19639. ;;
  19640. esac;
  19641. } |
  19642. sed '
  19643. t clear
  19644. : clear
  19645. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19646. t end
  19647. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19648. : end' >>confcache
  19649. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  19650. if test -w $cache_file; then
  19651. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  19652. cat confcache >$cache_file
  19653. else
  19654. echo "not updating unwritable cache $cache_file"
  19655. fi
  19656. fi
  19657. rm -f confcache
  19658. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19659. # Let make expand exec_prefix.
  19660. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19661. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19662. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19663. # trailing colons and then remove the whole line if VPATH becomes empty
  19664. # (actually we leave an empty line to preserve line numbers).
  19665. if test "x$srcdir" = x.; then
  19666. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19667. s/:*\$(srcdir):*/:/;
  19668. s/:*\${srcdir}:*/:/;
  19669. s/:*@srcdir@:*/:/;
  19670. s/^\([^=]*=[ ]*\):*/\1/;
  19671. s/:*$//;
  19672. s/^[^=]*=[ ]*$//;
  19673. }'
  19674. fi
  19675. DEFS=-DHAVE_CONFIG_H
  19676. ac_libobjs=
  19677. ac_ltlibobjs=
  19678. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19679. # 1. Remove the extension, and $U if already installed.
  19680. ac_i=`echo "$ac_i" |
  19681. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  19682. # 2. Add them.
  19683. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  19684. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  19685. done
  19686. LIBOBJS=$ac_libobjs
  19687. LTLIBOBJS=$ac_ltlibobjs
  19688. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19689. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19690. Usually this means the macro was only invoked conditionally." >&5
  19691. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19692. Usually this means the macro was only invoked conditionally." >&2;}
  19693. { (exit 1); exit 1; }; }
  19694. fi
  19695. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19696. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19697. Usually this means the macro was only invoked conditionally." >&5
  19698. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19699. Usually this means the macro was only invoked conditionally." >&2;}
  19700. { (exit 1); exit 1; }; }
  19701. fi
  19702. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19703. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19704. Usually this means the macro was only invoked conditionally." >&5
  19705. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19706. Usually this means the macro was only invoked conditionally." >&2;}
  19707. { (exit 1); exit 1; }; }
  19708. fi
  19709. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  19710. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  19711. Usually this means the macro was only invoked conditionally." >&5
  19712. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  19713. Usually this means the macro was only invoked conditionally." >&2;}
  19714. { (exit 1); exit 1; }; }
  19715. fi
  19716. : ${CONFIG_STATUS=./config.status}
  19717. ac_clean_files_save=$ac_clean_files
  19718. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19719. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19720. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19721. cat >$CONFIG_STATUS <<_ACEOF
  19722. #! $SHELL
  19723. # Generated by $as_me.
  19724. # Run this file to recreate the current configuration.
  19725. # Compiler output produced by configure, useful for debugging
  19726. # configure, is in config.log if it exists.
  19727. debug=false
  19728. ac_cs_recheck=false
  19729. ac_cs_silent=false
  19730. SHELL=\${CONFIG_SHELL-$SHELL}
  19731. _ACEOF
  19732. cat >>$CONFIG_STATUS <<\_ACEOF
  19733. ## --------------------- ##
  19734. ## M4sh Initialization. ##
  19735. ## --------------------- ##
  19736. # Be Bourne compatible
  19737. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19738. emulate sh
  19739. NULLCMD=:
  19740. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19741. # is contrary to our usage. Disable this feature.
  19742. alias -g '${1+"$@"}'='"$@"'
  19743. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19744. set -o posix
  19745. fi
  19746. DUALCASE=1; export DUALCASE # for MKS sh
  19747. # Support unset when possible.
  19748. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19749. as_unset=unset
  19750. else
  19751. as_unset=false
  19752. fi
  19753. # Work around bugs in pre-3.0 UWIN ksh.
  19754. $as_unset ENV MAIL MAILPATH
  19755. PS1='$ '
  19756. PS2='> '
  19757. PS4='+ '
  19758. # NLS nuisances.
  19759. for as_var in \
  19760. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19761. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19762. LC_TELEPHONE LC_TIME
  19763. do
  19764. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19765. eval $as_var=C; export $as_var
  19766. else
  19767. $as_unset $as_var
  19768. fi
  19769. done
  19770. # Required to use basename.
  19771. if expr a : '\(a\)' >/dev/null 2>&1; then
  19772. as_expr=expr
  19773. else
  19774. as_expr=false
  19775. fi
  19776. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  19777. as_basename=basename
  19778. else
  19779. as_basename=false
  19780. fi
  19781. # Name of the executable.
  19782. as_me=`$as_basename "$0" ||
  19783. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19784. X"$0" : 'X\(//\)$' \| \
  19785. X"$0" : 'X\(/\)$' \| \
  19786. . : '\(.\)' 2>/dev/null ||
  19787. echo X/"$0" |
  19788. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  19789. /^X\/\(\/\/\)$/{ s//\1/; q; }
  19790. /^X\/\(\/\).*/{ s//\1/; q; }
  19791. s/.*/./; q'`
  19792. # PATH needs CR, and LINENO needs CR and PATH.
  19793. # Avoid depending upon Character Ranges.
  19794. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19795. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19796. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19797. as_cr_digits='0123456789'
  19798. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19799. # The user is always right.
  19800. if test "${PATH_SEPARATOR+set}" != set; then
  19801. echo "#! /bin/sh" >conf$$.sh
  19802. echo "exit 0" >>conf$$.sh
  19803. chmod +x conf$$.sh
  19804. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19805. PATH_SEPARATOR=';'
  19806. else
  19807. PATH_SEPARATOR=:
  19808. fi
  19809. rm -f conf$$.sh
  19810. fi
  19811. as_lineno_1=$LINENO
  19812. as_lineno_2=$LINENO
  19813. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  19814. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19815. test "x$as_lineno_3" = "x$as_lineno_2" || {
  19816. # Find who we are. Look in the path if we contain no path at all
  19817. # relative or not.
  19818. case $0 in
  19819. *[\\/]* ) as_myself=$0 ;;
  19820. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19821. for as_dir in $PATH
  19822. do
  19823. IFS=$as_save_IFS
  19824. test -z "$as_dir" && as_dir=.
  19825. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19826. done
  19827. ;;
  19828. esac
  19829. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19830. # in which case we are not to be found in the path.
  19831. if test "x$as_myself" = x; then
  19832. as_myself=$0
  19833. fi
  19834. if test ! -f "$as_myself"; then
  19835. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  19836. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  19837. { (exit 1); exit 1; }; }
  19838. fi
  19839. case $CONFIG_SHELL in
  19840. '')
  19841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19842. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  19843. do
  19844. IFS=$as_save_IFS
  19845. test -z "$as_dir" && as_dir=.
  19846. for as_base in sh bash ksh sh5; do
  19847. case $as_dir in
  19848. /*)
  19849. if ("$as_dir/$as_base" -c '
  19850. as_lineno_1=$LINENO
  19851. as_lineno_2=$LINENO
  19852. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  19853. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19854. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  19855. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  19856. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  19857. CONFIG_SHELL=$as_dir/$as_base
  19858. export CONFIG_SHELL
  19859. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  19860. fi;;
  19861. esac
  19862. done
  19863. done
  19864. ;;
  19865. esac
  19866. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19867. # uniformly replaced by the line number. The first 'sed' inserts a
  19868. # line-number line before each line; the second 'sed' does the real
  19869. # work. The second script uses 'N' to pair each line-number line
  19870. # with the numbered line, and appends trailing '-' during
  19871. # substitution so that $LINENO is not a special case at line end.
  19872. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19873. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  19874. sed '=' <$as_myself |
  19875. sed '
  19876. N
  19877. s,$,-,
  19878. : loop
  19879. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  19880. t loop
  19881. s,-$,,
  19882. s,^['$as_cr_digits']*\n,,
  19883. ' >$as_me.lineno &&
  19884. chmod +x $as_me.lineno ||
  19885. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  19886. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  19887. { (exit 1); exit 1; }; }
  19888. # Don't try to exec as it changes $[0], causing all sort of problems
  19889. # (the dirname of $[0] is not the place where we might find the
  19890. # original and so on. Autoconf is especially sensible to this).
  19891. . ./$as_me.lineno
  19892. # Exit status is that of the last command.
  19893. exit
  19894. }
  19895. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  19896. *c*,-n*) ECHO_N= ECHO_C='
  19897. ' ECHO_T=' ' ;;
  19898. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  19899. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  19900. esac
  19901. if expr a : '\(a\)' >/dev/null 2>&1; then
  19902. as_expr=expr
  19903. else
  19904. as_expr=false
  19905. fi
  19906. rm -f conf$$ conf$$.exe conf$$.file
  19907. echo >conf$$.file
  19908. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19909. # We could just check for DJGPP; but this test a) works b) is more generic
  19910. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  19911. if test -f conf$$.exe; then
  19912. # Don't use ln at all; we don't have any links
  19913. as_ln_s='cp -p'
  19914. else
  19915. as_ln_s='ln -s'
  19916. fi
  19917. elif ln conf$$.file conf$$ 2>/dev/null; then
  19918. as_ln_s=ln
  19919. else
  19920. as_ln_s='cp -p'
  19921. fi
  19922. rm -f conf$$ conf$$.exe conf$$.file
  19923. if mkdir -p . 2>/dev/null; then
  19924. as_mkdir_p=:
  19925. else
  19926. test -d ./-p && rmdir ./-p
  19927. as_mkdir_p=false
  19928. fi
  19929. as_executable_p="test -f"
  19930. # Sed expression to map a string onto a valid CPP name.
  19931. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19932. # Sed expression to map a string onto a valid variable name.
  19933. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19934. # IFS
  19935. # We need space, tab and new line, in precisely that order.
  19936. as_nl='
  19937. '
  19938. IFS=" $as_nl"
  19939. # CDPATH.
  19940. $as_unset CDPATH
  19941. exec 6>&1
  19942. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  19943. # report actual input values of CONFIG_FILES etc. instead of their
  19944. # values after options handling. Logging --version etc. is OK.
  19945. exec 5>>config.log
  19946. {
  19947. echo
  19948. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19949. ## Running $as_me. ##
  19950. _ASBOX
  19951. } >&5
  19952. cat >&5 <<_CSEOF
  19953. This file was extended by $as_me, which was
  19954. generated by GNU Autoconf 2.59. Invocation command line was
  19955. CONFIG_FILES = $CONFIG_FILES
  19956. CONFIG_HEADERS = $CONFIG_HEADERS
  19957. CONFIG_LINKS = $CONFIG_LINKS
  19958. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19959. $ $0 $@
  19960. _CSEOF
  19961. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  19962. echo >&5
  19963. _ACEOF
  19964. # Files that config.status was made for.
  19965. if test -n "$ac_config_files"; then
  19966. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  19967. fi
  19968. if test -n "$ac_config_headers"; then
  19969. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  19970. fi
  19971. if test -n "$ac_config_links"; then
  19972. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  19973. fi
  19974. if test -n "$ac_config_commands"; then
  19975. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  19976. fi
  19977. cat >>$CONFIG_STATUS <<\_ACEOF
  19978. ac_cs_usage="\
  19979. \`$as_me' instantiates files from templates according to the
  19980. current configuration.
  19981. Usage: $0 [OPTIONS] [FILE]...
  19982. -h, --help print this help, then exit
  19983. -V, --version print version number, then exit
  19984. -q, --quiet do not print progress messages
  19985. -d, --debug don't remove temporary files
  19986. --recheck update $as_me by reconfiguring in the same conditions
  19987. --file=FILE[:TEMPLATE]
  19988. instantiate the configuration file FILE
  19989. --header=FILE[:TEMPLATE]
  19990. instantiate the configuration header FILE
  19991. Configuration files:
  19992. $config_files
  19993. Configuration headers:
  19994. $config_headers
  19995. Configuration commands:
  19996. $config_commands
  19997. Report bugs to <bug-autoconf@gnu.org>."
  19998. _ACEOF
  19999. cat >>$CONFIG_STATUS <<_ACEOF
  20000. ac_cs_version="\\
  20001. config.status
  20002. configured by $0, generated by GNU Autoconf 2.59,
  20003. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  20004. Copyright (C) 2003 Free Software Foundation, Inc.
  20005. This config.status script is free software; the Free Software Foundation
  20006. gives unlimited permission to copy, distribute and modify it."
  20007. srcdir=$srcdir
  20008. INSTALL="$INSTALL"
  20009. _ACEOF
  20010. cat >>$CONFIG_STATUS <<\_ACEOF
  20011. # If no file are specified by the user, then we need to provide default
  20012. # value. By we need to know if files were specified by the user.
  20013. ac_need_defaults=:
  20014. while test $# != 0
  20015. do
  20016. case $1 in
  20017. --*=*)
  20018. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  20019. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  20020. ac_shift=:
  20021. ;;
  20022. -*)
  20023. ac_option=$1
  20024. ac_optarg=$2
  20025. ac_shift=shift
  20026. ;;
  20027. *) # This is not an option, so the user has probably given explicit
  20028. # arguments.
  20029. ac_option=$1
  20030. ac_need_defaults=false;;
  20031. esac
  20032. case $ac_option in
  20033. # Handling of the options.
  20034. _ACEOF
  20035. cat >>$CONFIG_STATUS <<\_ACEOF
  20036. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20037. ac_cs_recheck=: ;;
  20038. --version | --vers* | -V )
  20039. echo "$ac_cs_version"; exit 0 ;;
  20040. --he | --h)
  20041. # Conflict between --help and --header
  20042. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  20043. Try \`$0 --help' for more information." >&5
  20044. echo "$as_me: error: ambiguous option: $1
  20045. Try \`$0 --help' for more information." >&2;}
  20046. { (exit 1); exit 1; }; };;
  20047. --help | --hel | -h )
  20048. echo "$ac_cs_usage"; exit 0 ;;
  20049. --debug | --d* | -d )
  20050. debug=: ;;
  20051. --file | --fil | --fi | --f )
  20052. $ac_shift
  20053. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20054. ac_need_defaults=false;;
  20055. --header | --heade | --head | --hea )
  20056. $ac_shift
  20057. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20058. ac_need_defaults=false;;
  20059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20060. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20061. ac_cs_silent=: ;;
  20062. # This is an error.
  20063. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  20064. Try \`$0 --help' for more information." >&5
  20065. echo "$as_me: error: unrecognized option: $1
  20066. Try \`$0 --help' for more information." >&2;}
  20067. { (exit 1); exit 1; }; } ;;
  20068. *) ac_config_targets="$ac_config_targets $1" ;;
  20069. esac
  20070. shift
  20071. done
  20072. ac_configure_extra_args=
  20073. if $ac_cs_silent; then
  20074. exec 6>/dev/null
  20075. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20076. fi
  20077. _ACEOF
  20078. cat >>$CONFIG_STATUS <<_ACEOF
  20079. if \$ac_cs_recheck; then
  20080. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20081. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20082. fi
  20083. _ACEOF
  20084. cat >>$CONFIG_STATUS <<_ACEOF
  20085. #
  20086. # INIT-COMMANDS section.
  20087. #
  20088. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20089. _ACEOF
  20090. cat >>$CONFIG_STATUS <<\_ACEOF
  20091. for ac_config_target in $ac_config_targets
  20092. do
  20093. case "$ac_config_target" in
  20094. # Handling of arguments.
  20095. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20096. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20097. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20098. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20099. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20100. { (exit 1); exit 1; }; };;
  20101. esac
  20102. done
  20103. # If the user did not use the arguments to specify the items to instantiate,
  20104. # then the envvar interface is used. Set only those that are not.
  20105. # We use the long form for the default assignment because of an extremely
  20106. # bizarre bug on SunOS 4.1.3.
  20107. if $ac_need_defaults; then
  20108. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20109. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20110. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20111. fi
  20112. # Have a temporary directory for convenience. Make it in the build tree
  20113. # simply because there is no reason to put it here, and in addition,
  20114. # creating and moving files from /tmp can sometimes cause problems.
  20115. # Create a temporary directory, and hook for its removal unless debugging.
  20116. $debug ||
  20117. {
  20118. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  20119. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20120. }
  20121. # Create a (secure) tmp directory for tmp files.
  20122. {
  20123. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  20124. test -n "$tmp" && test -d "$tmp"
  20125. } ||
  20126. {
  20127. tmp=./confstat$$-$RANDOM
  20128. (umask 077 && mkdir $tmp)
  20129. } ||
  20130. {
  20131. echo "$me: cannot create a temporary directory in ." >&2
  20132. { (exit 1); exit 1; }
  20133. }
  20134. _ACEOF
  20135. cat >>$CONFIG_STATUS <<_ACEOF
  20136. #
  20137. # CONFIG_FILES section.
  20138. #
  20139. # No need to generate the scripts if there are no CONFIG_FILES.
  20140. # This happens for instance when ./config.status config.h
  20141. if test -n "\$CONFIG_FILES"; then
  20142. # Protect against being on the right side of a sed subst in config.status.
  20143. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  20144. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  20145. s,@SHELL@,$SHELL,;t t
  20146. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  20147. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  20148. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  20149. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  20150. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  20151. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  20152. s,@exec_prefix@,$exec_prefix,;t t
  20153. s,@prefix@,$prefix,;t t
  20154. s,@program_transform_name@,$program_transform_name,;t t
  20155. s,@bindir@,$bindir,;t t
  20156. s,@sbindir@,$sbindir,;t t
  20157. s,@libexecdir@,$libexecdir,;t t
  20158. s,@datadir@,$datadir,;t t
  20159. s,@sysconfdir@,$sysconfdir,;t t
  20160. s,@sharedstatedir@,$sharedstatedir,;t t
  20161. s,@localstatedir@,$localstatedir,;t t
  20162. s,@libdir@,$libdir,;t t
  20163. s,@includedir@,$includedir,;t t
  20164. s,@oldincludedir@,$oldincludedir,;t t
  20165. s,@infodir@,$infodir,;t t
  20166. s,@mandir@,$mandir,;t t
  20167. s,@build_alias@,$build_alias,;t t
  20168. s,@host_alias@,$host_alias,;t t
  20169. s,@target_alias@,$target_alias,;t t
  20170. s,@DEFS@,$DEFS,;t t
  20171. s,@ECHO_C@,$ECHO_C,;t t
  20172. s,@ECHO_N@,$ECHO_N,;t t
  20173. s,@ECHO_T@,$ECHO_T,;t t
  20174. s,@LIBS@,$LIBS,;t t
  20175. s,@build@,$build,;t t
  20176. s,@build_cpu@,$build_cpu,;t t
  20177. s,@build_vendor@,$build_vendor,;t t
  20178. s,@build_os@,$build_os,;t t
  20179. s,@host@,$host,;t t
  20180. s,@host_cpu@,$host_cpu,;t t
  20181. s,@host_vendor@,$host_vendor,;t t
  20182. s,@host_os@,$host_os,;t t
  20183. s,@target@,$target,;t t
  20184. s,@target_cpu@,$target_cpu,;t t
  20185. s,@target_vendor@,$target_vendor,;t t
  20186. s,@target_os@,$target_os,;t t
  20187. s,@CC@,$CC,;t t
  20188. s,@CFLAGS@,$CFLAGS,;t t
  20189. s,@LDFLAGS@,$LDFLAGS,;t t
  20190. s,@CPPFLAGS@,$CPPFLAGS,;t t
  20191. s,@ac_ct_CC@,$ac_ct_CC,;t t
  20192. s,@EXEEXT@,$EXEEXT,;t t
  20193. s,@OBJEXT@,$OBJEXT,;t t
  20194. s,@EGREP@,$EGREP,;t t
  20195. s,@LN_S@,$LN_S,;t t
  20196. s,@ECHO@,$ECHO,;t t
  20197. s,@AR@,$AR,;t t
  20198. s,@ac_ct_AR@,$ac_ct_AR,;t t
  20199. s,@RANLIB@,$RANLIB,;t t
  20200. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  20201. s,@STRIP@,$STRIP,;t t
  20202. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  20203. s,@CPP@,$CPP,;t t
  20204. s,@CXX@,$CXX,;t t
  20205. s,@CXXFLAGS@,$CXXFLAGS,;t t
  20206. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  20207. s,@CXXCPP@,$CXXCPP,;t t
  20208. s,@F77@,$F77,;t t
  20209. s,@FFLAGS@,$FFLAGS,;t t
  20210. s,@ac_ct_F77@,$ac_ct_F77,;t t
  20211. s,@LIBTOOL@,$LIBTOOL,;t t
  20212. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  20213. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  20214. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  20215. s,@CYGPATH_W@,$CYGPATH_W,;t t
  20216. s,@PACKAGE@,$PACKAGE,;t t
  20217. s,@VERSION@,$VERSION,;t t
  20218. s,@ACLOCAL@,$ACLOCAL,;t t
  20219. s,@AUTOCONF@,$AUTOCONF,;t t
  20220. s,@AUTOMAKE@,$AUTOMAKE,;t t
  20221. s,@AUTOHEADER@,$AUTOHEADER,;t t
  20222. s,@MAKEINFO@,$MAKEINFO,;t t
  20223. s,@install_sh@,$install_sh,;t t
  20224. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  20225. s,@mkdir_p@,$mkdir_p,;t t
  20226. s,@AWK@,$AWK,;t t
  20227. s,@SET_MAKE@,$SET_MAKE,;t t
  20228. s,@am__leading_dot@,$am__leading_dot,;t t
  20229. s,@AMTAR@,$AMTAR,;t t
  20230. s,@am__tar@,$am__tar,;t t
  20231. s,@am__untar@,$am__untar,;t t
  20232. s,@DEPDIR@,$DEPDIR,;t t
  20233. s,@am__include@,$am__include,;t t
  20234. s,@am__quote@,$am__quote,;t t
  20235. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  20236. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  20237. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  20238. s,@CCDEPMODE@,$CCDEPMODE,;t t
  20239. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  20240. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  20241. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  20242. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  20243. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  20244. s,@WINDOWS_JAVA_INCLUDE@,$WINDOWS_JAVA_INCLUDE,;t t
  20245. s,@JAVAINCLUDEDIR@,$JAVAINCLUDEDIR,;t t
  20246. s,@JAVAINCLUDE@,$JAVAINCLUDE,;t t
  20247. s,@JAVANATINC@,$JAVANATINC,;t t
  20248. s,@CLASSPATH@,$CLASSPATH,;t t
  20249. s,@TOP@,$TOP,;t t
  20250. s,@TARGETLIB@,$TARGETLIB,;t t
  20251. s,@LDFLAG@,$LDFLAG,;t t
  20252. s,@THREAD_FLAG@,$THREAD_FLAG,;t t
  20253. s,@OS_NAME@,$OS_NAME,;t t
  20254. s,@OS_ARCH@,$OS_ARCH,;t t
  20255. s,@OS_VERSION@,$OS_VERSION,;t t
  20256. s,@JAVA_VERSION@,$JAVA_VERSION,;t t
  20257. s,@JAVA_VENDOR@,$JAVA_VENDOR,;t t
  20258. s,@JAVA_HOME@,$JAVA_HOME,;t t
  20259. s,@JAVA_LIBRARY_PATH@,$JAVA_LIBRARY_PATH,;t t
  20260. s,@JAVA_CLASS_PATH@,$JAVA_CLASS_PATH,;t t
  20261. s,@JAVA_CLASS_VERSION@,$JAVA_CLASS_VERSION,;t t
  20262. s,@JAVAH_FIX@,$JAVAH_FIX,;t t
  20263. s,@JPATH@,$JPATH,;t t
  20264. s,@JHOME@,$JHOME,;t t
  20265. s,@RXTX_PATH@,$RXTX_PATH,;t t
  20266. s,@JAVAH@,$JAVAH,;t t
  20267. s,@JAVAC@,$JAVAC,;t t
  20268. s,@JAR@,$JAR,;t t
  20269. s,@JAVADOC@,$JAVADOC,;t t
  20270. s,@EXTENSION@,$EXTENSION,;t t
  20271. s,@LIBTOOL_FIX@,$LIBTOOL_FIX,;t t
  20272. s,@LINK@,$LINK,;t t
  20273. s,@COMPILE@,$COMPILE,;t t
  20274. s,@OBJECT_EXTENSION@,$OBJECT_EXTENSION,;t t
  20275. s,@LIB_EXTENSION@,$LIB_EXTENSION,;t t
  20276. s,@GLIBTOOL@,$GLIBTOOL,;t t
  20277. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  20278. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  20279. s,@MAINT@,$MAINT,;t t
  20280. s,@LIBOBJS@,$LIBOBJS,;t t
  20281. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  20282. CEOF
  20283. _ACEOF
  20284. cat >>$CONFIG_STATUS <<\_ACEOF
  20285. # Split the substitutions into bite-sized pieces for seds with
  20286. # small command number limits, like on Digital OSF/1 and HP-UX.
  20287. ac_max_sed_lines=48
  20288. ac_sed_frag=1 # Number of current file.
  20289. ac_beg=1 # First line for current file.
  20290. ac_end=$ac_max_sed_lines # Line after last line for current file.
  20291. ac_more_lines=:
  20292. ac_sed_cmds=
  20293. while $ac_more_lines; do
  20294. if test $ac_beg -gt 1; then
  20295. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  20296. else
  20297. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  20298. fi
  20299. if test ! -s $tmp/subs.frag; then
  20300. ac_more_lines=false
  20301. else
  20302. # The purpose of the label and of the branching condition is to
  20303. # speed up the sed processing (if there are no `@' at all, there
  20304. # is no need to browse any of the substitutions).
  20305. # These are the two extra sed commands mentioned above.
  20306. (echo ':t
  20307. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  20308. if test -z "$ac_sed_cmds"; then
  20309. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  20310. else
  20311. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  20312. fi
  20313. ac_sed_frag=`expr $ac_sed_frag + 1`
  20314. ac_beg=$ac_end
  20315. ac_end=`expr $ac_end + $ac_max_sed_lines`
  20316. fi
  20317. done
  20318. if test -z "$ac_sed_cmds"; then
  20319. ac_sed_cmds=cat
  20320. fi
  20321. fi # test -n "$CONFIG_FILES"
  20322. _ACEOF
  20323. cat >>$CONFIG_STATUS <<\_ACEOF
  20324. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  20325. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  20326. case $ac_file in
  20327. - | *:- | *:-:* ) # input from stdin
  20328. cat >$tmp/stdin
  20329. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20330. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20331. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20332. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20333. * ) ac_file_in=$ac_file.in ;;
  20334. esac
  20335. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  20336. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  20337. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20338. X"$ac_file" : 'X\(//\)[^/]' \| \
  20339. X"$ac_file" : 'X\(//\)$' \| \
  20340. X"$ac_file" : 'X\(/\)' \| \
  20341. . : '\(.\)' 2>/dev/null ||
  20342. echo X"$ac_file" |
  20343. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20344. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20345. /^X\(\/\/\)$/{ s//\1/; q; }
  20346. /^X\(\/\).*/{ s//\1/; q; }
  20347. s/.*/./; q'`
  20348. { if $as_mkdir_p; then
  20349. mkdir -p "$ac_dir"
  20350. else
  20351. as_dir="$ac_dir"
  20352. as_dirs=
  20353. while test ! -d "$as_dir"; do
  20354. as_dirs="$as_dir $as_dirs"
  20355. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20356. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20357. X"$as_dir" : 'X\(//\)[^/]' \| \
  20358. X"$as_dir" : 'X\(//\)$' \| \
  20359. X"$as_dir" : 'X\(/\)' \| \
  20360. . : '\(.\)' 2>/dev/null ||
  20361. echo X"$as_dir" |
  20362. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20363. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20364. /^X\(\/\/\)$/{ s//\1/; q; }
  20365. /^X\(\/\).*/{ s//\1/; q; }
  20366. s/.*/./; q'`
  20367. done
  20368. test ! -n "$as_dirs" || mkdir $as_dirs
  20369. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20370. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20371. { (exit 1); exit 1; }; }; }
  20372. ac_builddir=.
  20373. if test "$ac_dir" != .; then
  20374. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20375. # A "../" for each directory in $ac_dir_suffix.
  20376. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  20377. else
  20378. ac_dir_suffix= ac_top_builddir=
  20379. fi
  20380. case $srcdir in
  20381. .) # No --srcdir option. We are building in place.
  20382. ac_srcdir=.
  20383. if test -z "$ac_top_builddir"; then
  20384. ac_top_srcdir=.
  20385. else
  20386. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  20387. fi ;;
  20388. [\\/]* | ?:[\\/]* ) # Absolute path.
  20389. ac_srcdir=$srcdir$ac_dir_suffix;
  20390. ac_top_srcdir=$srcdir ;;
  20391. *) # Relative path.
  20392. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  20393. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  20394. esac
  20395. # Do not use `cd foo && pwd` to compute absolute paths, because
  20396. # the directories may not exist.
  20397. case `pwd` in
  20398. .) ac_abs_builddir="$ac_dir";;
  20399. *)
  20400. case "$ac_dir" in
  20401. .) ac_abs_builddir=`pwd`;;
  20402. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  20403. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  20404. esac;;
  20405. esac
  20406. case $ac_abs_builddir in
  20407. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  20408. *)
  20409. case ${ac_top_builddir}. in
  20410. .) ac_abs_top_builddir=$ac_abs_builddir;;
  20411. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  20412. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  20413. esac;;
  20414. esac
  20415. case $ac_abs_builddir in
  20416. .) ac_abs_srcdir=$ac_srcdir;;
  20417. *)
  20418. case $ac_srcdir in
  20419. .) ac_abs_srcdir=$ac_abs_builddir;;
  20420. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  20421. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  20422. esac;;
  20423. esac
  20424. case $ac_abs_builddir in
  20425. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  20426. *)
  20427. case $ac_top_srcdir in
  20428. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  20429. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  20430. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  20431. esac;;
  20432. esac
  20433. case $INSTALL in
  20434. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20435. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  20436. esac
  20437. if test x"$ac_file" != x-; then
  20438. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20439. echo "$as_me: creating $ac_file" >&6;}
  20440. rm -f "$ac_file"
  20441. fi
  20442. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20443. # use $as_me), people would be surprised to read:
  20444. # /* config.h. Generated by config.status. */
  20445. if test x"$ac_file" = x-; then
  20446. configure_input=
  20447. else
  20448. configure_input="$ac_file. "
  20449. fi
  20450. configure_input=$configure_input"Generated from `echo $ac_file_in |
  20451. sed 's,.*/,,'` by configure."
  20452. # First look for the input files in the build tree, otherwise in the
  20453. # src tree.
  20454. ac_file_inputs=`IFS=:
  20455. for f in $ac_file_in; do
  20456. case $f in
  20457. -) echo $tmp/stdin ;;
  20458. [\\/$]*)
  20459. # Absolute (can't be DOS-style, as IFS=:)
  20460. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20461. echo "$as_me: error: cannot find input file: $f" >&2;}
  20462. { (exit 1); exit 1; }; }
  20463. echo "$f";;
  20464. *) # Relative
  20465. if test -f "$f"; then
  20466. # Build tree
  20467. echo "$f"
  20468. elif test -f "$srcdir/$f"; then
  20469. # Source tree
  20470. echo "$srcdir/$f"
  20471. else
  20472. # /dev/null tree
  20473. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20474. echo "$as_me: error: cannot find input file: $f" >&2;}
  20475. { (exit 1); exit 1; }; }
  20476. fi;;
  20477. esac
  20478. done` || { (exit 1); exit 1; }
  20479. _ACEOF
  20480. cat >>$CONFIG_STATUS <<_ACEOF
  20481. sed "$ac_vpsub
  20482. $extrasub
  20483. _ACEOF
  20484. cat >>$CONFIG_STATUS <<\_ACEOF
  20485. :t
  20486. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20487. s,@configure_input@,$configure_input,;t t
  20488. s,@srcdir@,$ac_srcdir,;t t
  20489. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  20490. s,@top_srcdir@,$ac_top_srcdir,;t t
  20491. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  20492. s,@builddir@,$ac_builddir,;t t
  20493. s,@abs_builddir@,$ac_abs_builddir,;t t
  20494. s,@top_builddir@,$ac_top_builddir,;t t
  20495. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  20496. s,@INSTALL@,$ac_INSTALL,;t t
  20497. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  20498. rm -f $tmp/stdin
  20499. if test x"$ac_file" != x-; then
  20500. mv $tmp/out $ac_file
  20501. else
  20502. cat $tmp/out
  20503. rm -f $tmp/out
  20504. fi
  20505. done
  20506. _ACEOF
  20507. cat >>$CONFIG_STATUS <<\_ACEOF
  20508. #
  20509. # CONFIG_HEADER section.
  20510. #
  20511. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  20512. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  20513. #
  20514. # ac_d sets the value in "#define NAME VALUE" lines.
  20515. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  20516. ac_dB='[ ].*$,\1#\2'
  20517. ac_dC=' '
  20518. ac_dD=',;t'
  20519. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  20520. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  20521. ac_uB='$,\1#\2define\3'
  20522. ac_uC=' '
  20523. ac_uD=',;t'
  20524. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  20525. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  20526. case $ac_file in
  20527. - | *:- | *:-:* ) # input from stdin
  20528. cat >$tmp/stdin
  20529. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20530. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20531. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20532. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20533. * ) ac_file_in=$ac_file.in ;;
  20534. esac
  20535. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  20536. echo "$as_me: creating $ac_file" >&6;}
  20537. # First look for the input files in the build tree, otherwise in the
  20538. # src tree.
  20539. ac_file_inputs=`IFS=:
  20540. for f in $ac_file_in; do
  20541. case $f in
  20542. -) echo $tmp/stdin ;;
  20543. [\\/$]*)
  20544. # Absolute (can't be DOS-style, as IFS=:)
  20545. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20546. echo "$as_me: error: cannot find input file: $f" >&2;}
  20547. { (exit 1); exit 1; }; }
  20548. # Do quote $f, to prevent DOS paths from being IFS'd.
  20549. echo "$f";;
  20550. *) # Relative
  20551. if test -f "$f"; then
  20552. # Build tree
  20553. echo "$f"
  20554. elif test -f "$srcdir/$f"; then
  20555. # Source tree
  20556. echo "$srcdir/$f"
  20557. else
  20558. # /dev/null tree
  20559. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20560. echo "$as_me: error: cannot find input file: $f" >&2;}
  20561. { (exit 1); exit 1; }; }
  20562. fi;;
  20563. esac
  20564. done` || { (exit 1); exit 1; }
  20565. # Remove the trailing spaces.
  20566. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  20567. _ACEOF
  20568. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  20569. # `conftest.undefs', that substitutes the proper values into
  20570. # config.h.in to produce config.h. The first handles `#define'
  20571. # templates, and the second `#undef' templates.
  20572. # And first: Protect against being on the right side of a sed subst in
  20573. # config.status. Protect against being in an unquoted here document
  20574. # in config.status.
  20575. rm -f conftest.defines conftest.undefs
  20576. # Using a here document instead of a string reduces the quoting nightmare.
  20577. # Putting comments in sed scripts is not portable.
  20578. #
  20579. # `end' is used to avoid that the second main sed command (meant for
  20580. # 0-ary CPP macros) applies to n-ary macro definitions.
  20581. # See the Autoconf documentation for `clear'.
  20582. cat >confdef2sed.sed <<\_ACEOF
  20583. s/[\\&,]/\\&/g
  20584. s,[\\$`],\\&,g
  20585. t clear
  20586. : clear
  20587. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  20588. t end
  20589. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  20590. : end
  20591. _ACEOF
  20592. # If some macros were called several times there might be several times
  20593. # the same #defines, which is useless. Nevertheless, we may not want to
  20594. # sort them, since we want the *last* AC-DEFINE to be honored.
  20595. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  20596. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  20597. rm -f confdef2sed.sed
  20598. # This sed command replaces #undef with comments. This is necessary, for
  20599. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20600. # on some systems where configure will not decide to define it.
  20601. cat >>conftest.undefs <<\_ACEOF
  20602. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  20603. _ACEOF
  20604. # Break up conftest.defines because some shells have a limit on the size
  20605. # of here documents, and old seds have small limits too (100 cmds).
  20606. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  20607. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  20608. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  20609. echo ' :' >>$CONFIG_STATUS
  20610. rm -f conftest.tail
  20611. while grep . conftest.defines >/dev/null
  20612. do
  20613. # Write a limited-size here document to $tmp/defines.sed.
  20614. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  20615. # Speed up: don't consider the non `#define' lines.
  20616. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  20617. # Work around the forget-to-reset-the-flag bug.
  20618. echo 't clr' >>$CONFIG_STATUS
  20619. echo ': clr' >>$CONFIG_STATUS
  20620. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  20621. echo 'CEOF
  20622. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  20623. rm -f $tmp/in
  20624. mv $tmp/out $tmp/in
  20625. ' >>$CONFIG_STATUS
  20626. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  20627. rm -f conftest.defines
  20628. mv conftest.tail conftest.defines
  20629. done
  20630. rm -f conftest.defines
  20631. echo ' fi # grep' >>$CONFIG_STATUS
  20632. echo >>$CONFIG_STATUS
  20633. # Break up conftest.undefs because some shells have a limit on the size
  20634. # of here documents, and old seds have small limits too (100 cmds).
  20635. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  20636. rm -f conftest.tail
  20637. while grep . conftest.undefs >/dev/null
  20638. do
  20639. # Write a limited-size here document to $tmp/undefs.sed.
  20640. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  20641. # Speed up: don't consider the non `#undef'
  20642. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  20643. # Work around the forget-to-reset-the-flag bug.
  20644. echo 't clr' >>$CONFIG_STATUS
  20645. echo ': clr' >>$CONFIG_STATUS
  20646. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  20647. echo 'CEOF
  20648. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  20649. rm -f $tmp/in
  20650. mv $tmp/out $tmp/in
  20651. ' >>$CONFIG_STATUS
  20652. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  20653. rm -f conftest.undefs
  20654. mv conftest.tail conftest.undefs
  20655. done
  20656. rm -f conftest.undefs
  20657. cat >>$CONFIG_STATUS <<\_ACEOF
  20658. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20659. # use $as_me), people would be surprised to read:
  20660. # /* config.h. Generated by config.status. */
  20661. if test x"$ac_file" = x-; then
  20662. echo "/* Generated by configure. */" >$tmp/config.h
  20663. else
  20664. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  20665. fi
  20666. cat $tmp/in >>$tmp/config.h
  20667. rm -f $tmp/in
  20668. if test x"$ac_file" != x-; then
  20669. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  20670. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20671. echo "$as_me: $ac_file is unchanged" >&6;}
  20672. else
  20673. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  20674. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20675. X"$ac_file" : 'X\(//\)[^/]' \| \
  20676. X"$ac_file" : 'X\(//\)$' \| \
  20677. X"$ac_file" : 'X\(/\)' \| \
  20678. . : '\(.\)' 2>/dev/null ||
  20679. echo X"$ac_file" |
  20680. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20681. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20682. /^X\(\/\/\)$/{ s//\1/; q; }
  20683. /^X\(\/\).*/{ s//\1/; q; }
  20684. s/.*/./; q'`
  20685. { if $as_mkdir_p; then
  20686. mkdir -p "$ac_dir"
  20687. else
  20688. as_dir="$ac_dir"
  20689. as_dirs=
  20690. while test ! -d "$as_dir"; do
  20691. as_dirs="$as_dir $as_dirs"
  20692. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20693. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20694. X"$as_dir" : 'X\(//\)[^/]' \| \
  20695. X"$as_dir" : 'X\(//\)$' \| \
  20696. X"$as_dir" : 'X\(/\)' \| \
  20697. . : '\(.\)' 2>/dev/null ||
  20698. echo X"$as_dir" |
  20699. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20700. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20701. /^X\(\/\/\)$/{ s//\1/; q; }
  20702. /^X\(\/\).*/{ s//\1/; q; }
  20703. s/.*/./; q'`
  20704. done
  20705. test ! -n "$as_dirs" || mkdir $as_dirs
  20706. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20707. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20708. { (exit 1); exit 1; }; }; }
  20709. rm -f $ac_file
  20710. mv $tmp/config.h $ac_file
  20711. fi
  20712. else
  20713. cat $tmp/config.h
  20714. rm -f $tmp/config.h
  20715. fi
  20716. # Compute $ac_file's index in $config_headers.
  20717. _am_stamp_count=1
  20718. for _am_header in $config_headers :; do
  20719. case $_am_header in
  20720. $ac_file | $ac_file:* )
  20721. break ;;
  20722. * )
  20723. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20724. esac
  20725. done
  20726. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  20727. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20728. X$ac_file : 'X\(//\)[^/]' \| \
  20729. X$ac_file : 'X\(//\)$' \| \
  20730. X$ac_file : 'X\(/\)' \| \
  20731. . : '\(.\)' 2>/dev/null ||
  20732. echo X$ac_file |
  20733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20734. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20735. /^X\(\/\/\)$/{ s//\1/; q; }
  20736. /^X\(\/\).*/{ s//\1/; q; }
  20737. s/.*/./; q'`/stamp-h$_am_stamp_count
  20738. done
  20739. _ACEOF
  20740. cat >>$CONFIG_STATUS <<\_ACEOF
  20741. #
  20742. # CONFIG_COMMANDS section.
  20743. #
  20744. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  20745. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  20746. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20747. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  20748. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20749. X"$ac_dest" : 'X\(//\)[^/]' \| \
  20750. X"$ac_dest" : 'X\(//\)$' \| \
  20751. X"$ac_dest" : 'X\(/\)' \| \
  20752. . : '\(.\)' 2>/dev/null ||
  20753. echo X"$ac_dest" |
  20754. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20755. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20756. /^X\(\/\/\)$/{ s//\1/; q; }
  20757. /^X\(\/\).*/{ s//\1/; q; }
  20758. s/.*/./; q'`
  20759. { if $as_mkdir_p; then
  20760. mkdir -p "$ac_dir"
  20761. else
  20762. as_dir="$ac_dir"
  20763. as_dirs=
  20764. while test ! -d "$as_dir"; do
  20765. as_dirs="$as_dir $as_dirs"
  20766. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20767. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20768. X"$as_dir" : 'X\(//\)[^/]' \| \
  20769. X"$as_dir" : 'X\(//\)$' \| \
  20770. X"$as_dir" : 'X\(/\)' \| \
  20771. . : '\(.\)' 2>/dev/null ||
  20772. echo X"$as_dir" |
  20773. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20774. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20775. /^X\(\/\/\)$/{ s//\1/; q; }
  20776. /^X\(\/\).*/{ s//\1/; q; }
  20777. s/.*/./; q'`
  20778. done
  20779. test ! -n "$as_dirs" || mkdir $as_dirs
  20780. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20781. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20782. { (exit 1); exit 1; }; }; }
  20783. ac_builddir=.
  20784. if test "$ac_dir" != .; then
  20785. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20786. # A "../" for each directory in $ac_dir_suffix.
  20787. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  20788. else
  20789. ac_dir_suffix= ac_top_builddir=
  20790. fi
  20791. case $srcdir in
  20792. .) # No --srcdir option. We are building in place.
  20793. ac_srcdir=.
  20794. if test -z "$ac_top_builddir"; then
  20795. ac_top_srcdir=.
  20796. else
  20797. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  20798. fi ;;
  20799. [\\/]* | ?:[\\/]* ) # Absolute path.
  20800. ac_srcdir=$srcdir$ac_dir_suffix;
  20801. ac_top_srcdir=$srcdir ;;
  20802. *) # Relative path.
  20803. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  20804. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  20805. esac
  20806. # Do not use `cd foo && pwd` to compute absolute paths, because
  20807. # the directories may not exist.
  20808. case `pwd` in
  20809. .) ac_abs_builddir="$ac_dir";;
  20810. *)
  20811. case "$ac_dir" in
  20812. .) ac_abs_builddir=`pwd`;;
  20813. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  20814. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  20815. esac;;
  20816. esac
  20817. case $ac_abs_builddir in
  20818. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  20819. *)
  20820. case ${ac_top_builddir}. in
  20821. .) ac_abs_top_builddir=$ac_abs_builddir;;
  20822. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  20823. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  20824. esac;;
  20825. esac
  20826. case $ac_abs_builddir in
  20827. .) ac_abs_srcdir=$ac_srcdir;;
  20828. *)
  20829. case $ac_srcdir in
  20830. .) ac_abs_srcdir=$ac_abs_builddir;;
  20831. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  20832. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  20833. esac;;
  20834. esac
  20835. case $ac_abs_builddir in
  20836. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  20837. *)
  20838. case $ac_top_srcdir in
  20839. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  20840. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  20841. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  20842. esac;;
  20843. esac
  20844. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  20845. echo "$as_me: executing $ac_dest commands" >&6;}
  20846. case $ac_dest in
  20847. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20848. # Strip MF so we end up with the name of the file.
  20849. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20850. # Check whether this is an Automake generated Makefile or not.
  20851. # We used to match only the files named `Makefile.in', but
  20852. # some people rename them; so instead we look at the file content.
  20853. # Grep'ing the first line is not enough: some people post-process
  20854. # each Makefile.in and add a new line on top of each file to say so.
  20855. # So let's grep whole file.
  20856. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  20857. dirpart=`(dirname "$mf") 2>/dev/null ||
  20858. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20859. X"$mf" : 'X\(//\)[^/]' \| \
  20860. X"$mf" : 'X\(//\)$' \| \
  20861. X"$mf" : 'X\(/\)' \| \
  20862. . : '\(.\)' 2>/dev/null ||
  20863. echo X"$mf" |
  20864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20865. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20866. /^X\(\/\/\)$/{ s//\1/; q; }
  20867. /^X\(\/\).*/{ s//\1/; q; }
  20868. s/.*/./; q'`
  20869. else
  20870. continue
  20871. fi
  20872. # Extract the definition of DEPDIR, am__include, and am__quote
  20873. # from the Makefile without running `make'.
  20874. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20875. test -z "$DEPDIR" && continue
  20876. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20877. test -z "am__include" && continue
  20878. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20879. # When using ansi2knr, U may be empty or an underscore; expand it
  20880. U=`sed -n 's/^U = //p' < "$mf"`
  20881. # Find all dependency output files, they are included files with
  20882. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20883. # simplest approach to changing $(DEPDIR) to its actual value in the
  20884. # expansion.
  20885. for file in `sed -n "
  20886. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20887. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20888. # Make sure the directory exists.
  20889. test -f "$dirpart/$file" && continue
  20890. fdir=`(dirname "$file") 2>/dev/null ||
  20891. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20892. X"$file" : 'X\(//\)[^/]' \| \
  20893. X"$file" : 'X\(//\)$' \| \
  20894. X"$file" : 'X\(/\)' \| \
  20895. . : '\(.\)' 2>/dev/null ||
  20896. echo X"$file" |
  20897. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20898. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20899. /^X\(\/\/\)$/{ s//\1/; q; }
  20900. /^X\(\/\).*/{ s//\1/; q; }
  20901. s/.*/./; q'`
  20902. { if $as_mkdir_p; then
  20903. mkdir -p $dirpart/$fdir
  20904. else
  20905. as_dir=$dirpart/$fdir
  20906. as_dirs=
  20907. while test ! -d "$as_dir"; do
  20908. as_dirs="$as_dir $as_dirs"
  20909. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20910. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20911. X"$as_dir" : 'X\(//\)[^/]' \| \
  20912. X"$as_dir" : 'X\(//\)$' \| \
  20913. X"$as_dir" : 'X\(/\)' \| \
  20914. . : '\(.\)' 2>/dev/null ||
  20915. echo X"$as_dir" |
  20916. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20917. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20918. /^X\(\/\/\)$/{ s//\1/; q; }
  20919. /^X\(\/\).*/{ s//\1/; q; }
  20920. s/.*/./; q'`
  20921. done
  20922. test ! -n "$as_dirs" || mkdir $as_dirs
  20923. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  20924. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  20925. { (exit 1); exit 1; }; }; }
  20926. # echo "creating $dirpart/$file"
  20927. echo '# dummy' > "$dirpart/$file"
  20928. done
  20929. done
  20930. ;;
  20931. esac
  20932. done
  20933. _ACEOF
  20934. cat >>$CONFIG_STATUS <<\_ACEOF
  20935. { (exit 0); exit 0; }
  20936. _ACEOF
  20937. chmod +x $CONFIG_STATUS
  20938. ac_clean_files=$ac_clean_files_save
  20939. # configure is writing to config.log, and then calls config.status.
  20940. # config.status does its own redirection, appending to config.log.
  20941. # Unfortunately, on DOS this fails, as config.log is still kept open
  20942. # by configure, so config.status won't be able to write to it; its
  20943. # output is simply discarded. So we exec the FD to /dev/null,
  20944. # effectively closing config.log, so it can be properly (re)opened and
  20945. # appended to by config.status. When coming back to configure, we
  20946. # need to make the FD available again.
  20947. if test "$no_create" != yes; then
  20948. ac_cs_success=:
  20949. ac_config_status_args=
  20950. test "$silent" = yes &&
  20951. ac_config_status_args="$ac_config_status_args --quiet"
  20952. exec 5>/dev/null
  20953. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20954. exec 5>>config.log
  20955. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20956. # would make configure fail if this is the last instruction.
  20957. $ac_cs_success || { (exit 1); exit 1; }
  20958. fi
  20959. ################################ END ########################################
  20960. # Toys. Gota lovem.
  20961. #echo $ECHO_N checking java.library.path " "
  20962. #JAVA_LIBRARY_PATH=`java conftest "java.library.path"`
  20963. #echo $JAVA_LIBRARY_PATH
  20964. #echo $ECHO_N checking java.class.version " "
  20965. #JAVA_CLASS_VERSION=`java conftest "java.class.version"`
  20966. #echo $JAVA_CLASS_VERSION