libs.m4 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. # This file is part of Autoconf. -*- Autoconf -*-
  2. # Checking for libraries.
  3. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  4. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  18. # 02110-1301, USA.
  19. # As a special exception, the Free Software Foundation gives unlimited
  20. # permission to copy, distribute and modify the configure scripts that
  21. # are the output of Autoconf. You need not follow the terms of the GNU
  22. # General Public License when using or distributing such scripts, even
  23. # though portions of the text of Autoconf appear in them. The GNU
  24. # General Public License (GPL) does govern all other use of the material
  25. # that constitutes the Autoconf program.
  26. #
  27. # Certain portions of the Autoconf source text are designed to be copied
  28. # (in certain cases, depending on the input) into the output of
  29. # Autoconf. We call these the "data" portions. The rest of the Autoconf
  30. # source text consists of comments plus executable code that decides which
  31. # of the data portions to output in any given case. We call these
  32. # comments and executable code the "non-data" portions. Autoconf never
  33. # copies any of the non-data portions into its output.
  34. #
  35. # This special exception to the GPL applies to versions of Autoconf
  36. # released by the Free Software Foundation. When you make and
  37. # distribute a modified version of Autoconf, you may extend this special
  38. # exception to the GPL to apply to your modified version as well, *unless*
  39. # your modified version has the potential to copy into its output some
  40. # of the text that was the non-data portion of the version that you started
  41. # with. (In other words, unless your change moves or copies text from
  42. # the non-data portions to the data portions.) If your modification has
  43. # such potential, you must delete any notice of this special exception
  44. # to the GPL from your modified version.
  45. #
  46. # Written by David MacKenzie, with help from
  47. # Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
  48. # Roland McGrath, Noah Friedman, david d zuhn, and many others.
  49. # Table of contents
  50. #
  51. # 1. Generic tests for libraries
  52. # 2. Tests for specific libraries
  53. ## --------------------------------- ##
  54. ## 1. Generic tests for libraries.## ##
  55. ## --------------------------------- ##
  56. # AC_SEARCH_LIBS(FUNCTION, SEARCH-LIBS,
  57. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
  58. # [OTHER-LIBRARIES])
  59. # --------------------------------------------------------
  60. # Search for a library defining FUNC, if it's not already available.
  61. AC_DEFUN([AC_SEARCH_LIBS],
  62. [AS_VAR_PUSHDEF([ac_Search], [ac_cv_search_$1])dnl
  63. AC_CACHE_CHECK([for library containing $1], [ac_Search],
  64. [ac_func_search_save_LIBS=$LIBS
  65. AC_LANG_CONFTEST([AC_LANG_CALL([], [$1])])
  66. for ac_lib in '' $2; do
  67. if test -z "$ac_lib"; then
  68. ac_res="none required"
  69. else
  70. ac_res=-l$ac_lib
  71. LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"
  72. fi
  73. AC_LINK_IFELSE([], [AS_VAR_SET([ac_Search], [$ac_res])])
  74. AS_VAR_SET_IF([ac_Search], [break])dnl
  75. done
  76. AS_VAR_SET_IF([ac_Search], , [AS_VAR_SET([ac_Search], [no])])dnl
  77. rm conftest.$ac_ext
  78. LIBS=$ac_func_search_save_LIBS])
  79. ac_res=AS_VAR_GET([ac_Search])
  80. AS_IF([test "$ac_res" != no],
  81. [test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  82. $3],
  83. [$4])dnl
  84. AS_VAR_POPDEF([ac_Search])dnl
  85. ])
  86. # AC_CHECK_LIB(LIBRARY, FUNCTION,
  87. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
  88. # [OTHER-LIBRARIES])
  89. # ------------------------------------------------------
  90. #
  91. # Use a cache variable name containing both the library and function name,
  92. # because the test really is for library $1 defining function $2, not
  93. # just for library $1. Separate tests with the same $1 and different $2s
  94. # may have different results.
  95. #
  96. # Note that using directly AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$2])
  97. # is asking for troubles, since AC_CHECK_LIB($lib, fun) would give
  98. # ac_cv_lib_$lib_fun, which is definitely not what was meant. Hence
  99. # the AS_LITERAL_IF indirection.
  100. #
  101. # FIXME: This macro is extremely suspicious. It DEFINEs unconditionally,
  102. # whatever the FUNCTION, in addition to not being a *S macro. Note
  103. # that the cache does depend upon the function we are looking for.
  104. #
  105. # It is on purpose we used `ac_check_lib_save_LIBS' and not just
  106. # `ac_save_LIBS': there are many macros which don't want to see `LIBS'
  107. # changed but still want to use AC_CHECK_LIB, so they save `LIBS'.
  108. # And ``ac_save_LIBS' is too tempting a name, so let's leave them some
  109. # freedom.
  110. AC_DEFUN([AC_CHECK_LIB],
  111. [m4_ifval([$3], , [AH_CHECK_LIB([$1])])dnl
  112. AS_LITERAL_IF([$1],
  113. [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$2])],
  114. [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1''_$2])])dnl
  115. AC_CACHE_CHECK([for $2 in -l$1], [ac_Lib],
  116. [ac_check_lib_save_LIBS=$LIBS
  117. LIBS="-l$1 $5 $LIBS"
  118. AC_LINK_IFELSE([AC_LANG_CALL([], [$2])],
  119. [AS_VAR_SET([ac_Lib], [yes])],
  120. [AS_VAR_SET([ac_Lib], [no])])
  121. LIBS=$ac_check_lib_save_LIBS])
  122. AS_IF([test AS_VAR_GET([ac_Lib]) = yes],
  123. [m4_default([$3], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1))
  124. LIBS="-l$1 $LIBS"
  125. ])],
  126. [$4])dnl
  127. AS_VAR_POPDEF([ac_Lib])dnl
  128. ])# AC_CHECK_LIB
  129. # AH_CHECK_LIB(LIBNAME)
  130. # ---------------------
  131. m4_define([AH_CHECK_LIB],
  132. [AH_TEMPLATE(AS_TR_CPP([HAVE_LIB$1]),
  133. [Define to 1 if you have the `$1' library (-l$1).])])
  134. # AC_HAVE_LIBRARY(LIBRARY,
  135. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
  136. # [OTHER-LIBRARIES])
  137. # ---------------------------------------------------------
  138. #
  139. # This macro is equivalent to calling `AC_CHECK_LIB' with a FUNCTION
  140. # argument of `main'. In addition, LIBRARY can be written as any of
  141. # `foo', `-lfoo', or `libfoo.a'. In all of those cases, the compiler
  142. # is passed `-lfoo'. However, LIBRARY cannot be a shell variable;
  143. # it must be a literal name.
  144. AU_DEFUN([AC_HAVE_LIBRARY],
  145. [m4_pushdef([AC_Lib_Name],
  146. m4_bpatsubst(m4_bpatsubst([[$1]],
  147. [lib\([^\.]*\)\.a], [\1]),
  148. [-l], []))dnl
  149. AC_CHECK_LIB(AC_Lib_Name, main, [$2], [$3], [$4])dnl
  150. ac_cv_lib_[]AC_Lib_Name()=ac_cv_lib_[]AC_Lib_Name()_main
  151. m4_popdef([AC_Lib_Name])dnl
  152. ])
  153. ## --------------------------------- ##
  154. ## 2. Tests for specific libraries. ##
  155. ## --------------------------------- ##
  156. # --------------------- #
  157. # Checks for X window. #
  158. # --------------------- #
  159. # _AC_PATH_X_XMKMF
  160. # ----------------
  161. # Internal subroutine of _AC_PATH_X.
  162. # Set ac_x_includes and/or ac_x_libraries.
  163. m4_define([_AC_PATH_X_XMKMF],
  164. [AC_ARG_VAR(XMKMF, [Path to xmkmf, Makefile generator for X Window System])dnl
  165. rm -f -r conftest.dir
  166. if mkdir conftest.dir; then
  167. cd conftest.dir
  168. cat >Imakefile <<'_ACEOF'
  169. incroot:
  170. @echo incroot='${INCROOT}'
  171. usrlibdir:
  172. @echo usrlibdir='${USRLIBDIR}'
  173. libdir:
  174. @echo libdir='${LIBDIR}'
  175. _ACEOF
  176. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  177. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  178. for ac_var in incroot usrlibdir libdir; do
  179. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  180. done
  181. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  182. for ac_extension in a so sl; do
  183. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  184. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  185. ac_im_usrlibdir=$ac_im_libdir; break
  186. fi
  187. done
  188. # Screen out bogus values from the imake configuration. They are
  189. # bogus both because they are the default anyway, and because
  190. # using them would break gcc on systems where it needs fixed includes.
  191. case $ac_im_incroot in
  192. /usr/include) ac_x_includes= ;;
  193. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  194. esac
  195. case $ac_im_usrlibdir in
  196. /usr/lib | /lib) ;;
  197. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  198. esac
  199. fi
  200. cd ..
  201. rm -f -r conftest.dir
  202. fi
  203. ])# _AC_PATH_X_XMKMF
  204. # _AC_PATH_X_DIRECT
  205. # -----------------
  206. # Internal subroutine of _AC_PATH_X.
  207. # Set ac_x_includes and/or ac_x_libraries.
  208. m4_define([_AC_PATH_X_DIRECT],
  209. [# Standard set of common directories for X headers.
  210. # Check X11 before X11Rn because it is often a symlink to the current release.
  211. ac_x_header_dirs='
  212. /usr/X11/include
  213. /usr/X11R6/include
  214. /usr/X11R5/include
  215. /usr/X11R4/include
  216. /usr/include/X11
  217. /usr/include/X11R6
  218. /usr/include/X11R5
  219. /usr/include/X11R4
  220. /usr/local/X11/include
  221. /usr/local/X11R6/include
  222. /usr/local/X11R5/include
  223. /usr/local/X11R4/include
  224. /usr/local/include/X11
  225. /usr/local/include/X11R6
  226. /usr/local/include/X11R5
  227. /usr/local/include/X11R4
  228. /usr/X386/include
  229. /usr/x386/include
  230. /usr/XFree86/include/X11
  231. /usr/include
  232. /usr/local/include
  233. /usr/unsupported/include
  234. /usr/athena/include
  235. /usr/local/x11r5/include
  236. /usr/lpp/Xamples/include
  237. /usr/openwin/include
  238. /usr/openwin/share/include'
  239. if test "$ac_x_includes" = no; then
  240. # Guess where to find include files, by looking for Xlib.h.
  241. # First, try using that file with no special directory specified.
  242. AC_PREPROC_IFELSE([AC_LANG_SOURCE([@%:@include <X11/Xlib.h>])],
  243. [# We can compile using X headers with no special include directory.
  244. ac_x_includes=],
  245. [for ac_dir in $ac_x_header_dirs; do
  246. if test -r "$ac_dir/X11/Xlib.h"; then
  247. ac_x_includes=$ac_dir
  248. break
  249. fi
  250. done])
  251. fi # $ac_x_includes = no
  252. if test "$ac_x_libraries" = no; then
  253. # Check for the libraries.
  254. # See if we find them without any special options.
  255. # Don't add to $LIBS permanently.
  256. ac_save_LIBS=$LIBS
  257. LIBS="-lX11 $LIBS"
  258. AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <X11/Xlib.h>],
  259. [XrmInitialize ()])],
  260. [LIBS=$ac_save_LIBS
  261. # We can link X programs with no special library path.
  262. ac_x_libraries=],
  263. [LIBS=$ac_save_LIBS
  264. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  265. do
  266. # Don't even attempt the hair of trying to link an X program!
  267. for ac_extension in a so sl; do
  268. if test -r "$ac_dir/libX11.$ac_extension"; then
  269. ac_x_libraries=$ac_dir
  270. break 2
  271. fi
  272. done
  273. done])
  274. fi # $ac_x_libraries = no
  275. ])# _AC_PATH_X_DIRECT
  276. # _AC_PATH_X
  277. # ----------
  278. # Compute ac_cv_have_x.
  279. AC_DEFUN([_AC_PATH_X],
  280. [AC_CACHE_VAL(ac_cv_have_x,
  281. [# One or both of the vars are not set, and there is no cached value.
  282. ac_x_includes=no ac_x_libraries=no
  283. _AC_PATH_X_XMKMF
  284. _AC_PATH_X_DIRECT
  285. case $ac_x_includes,$ac_x_libraries in #(
  286. no,* | *,no | *\'*)
  287. # Didn't find X, or a directory has "'" in its name.
  288. ac_cv_have_x="have_x=no";; #(
  289. *)
  290. # Record where we found X for the cache.
  291. ac_cv_have_x="have_x=yes\
  292. ac_x_includes='$ac_x_includes'\
  293. ac_x_libraries='$ac_x_libraries'"
  294. esac])dnl
  295. ])
  296. # AC_PATH_X
  297. # ---------
  298. # If we find X, set shell vars x_includes and x_libraries to the
  299. # paths, otherwise set no_x=yes.
  300. # Uses ac_ vars as temps to allow command line to override cache and checks.
  301. # --without-x overrides everything else, but does not touch the cache.
  302. AN_HEADER([X11/Xlib.h], [AC_PATH_X])
  303. AC_DEFUN([AC_PATH_X],
  304. [dnl Document the X abnormal options inherited from history.
  305. m4_divert_once([HELP_BEGIN], [
  306. X features:
  307. --x-includes=DIR X include files are in DIR
  308. --x-libraries=DIR X library files are in DIR])dnl
  309. AC_MSG_CHECKING([for X])
  310. AC_ARG_WITH(x, [ --with-x use the X Window System])
  311. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  312. if test "x$with_x" = xno; then
  313. # The user explicitly disabled X.
  314. have_x=disabled
  315. else
  316. case $x_includes,$x_libraries in #(
  317. *\'*) AC_MSG_ERROR([Cannot use X directory names containing ']);; #(
  318. *,NONE | NONE,*) _AC_PATH_X;; #(
  319. *) have_x=yes;;
  320. esac
  321. eval "$ac_cv_have_x"
  322. fi # $with_x != no
  323. if test "$have_x" != yes; then
  324. AC_MSG_RESULT([$have_x])
  325. no_x=yes
  326. else
  327. # If each of the values was on the command line, it overrides each guess.
  328. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  329. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  330. # Update the cache value to reflect the command line values.
  331. ac_cv_have_x="have_x=yes\
  332. ac_x_includes='$x_includes'\
  333. ac_x_libraries='$x_libraries'"
  334. AC_MSG_RESULT([libraries $x_libraries, headers $x_includes])
  335. fi
  336. ])# AC_PATH_X
  337. # AC_PATH_XTRA
  338. # ------------
  339. # Find additional X libraries, magic flags, etc.
  340. AC_DEFUN([AC_PATH_XTRA],
  341. [AC_REQUIRE([AC_PATH_X])dnl
  342. if test "$no_x" = yes; then
  343. # Not all programs may use this symbol, but it does not hurt to define it.
  344. AC_DEFINE([X_DISPLAY_MISSING], 1,
  345. [Define to 1 if the X Window System is missing or not being used.])
  346. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  347. else
  348. if test -n "$x_includes"; then
  349. X_CFLAGS="$X_CFLAGS -I$x_includes"
  350. fi
  351. # It would also be nice to do this for all -L options, not just this one.
  352. if test -n "$x_libraries"; then
  353. X_LIBS="$X_LIBS -L$x_libraries"
  354. # For Solaris; some versions of Sun CC require a space after -R and
  355. # others require no space. Words are not sufficient . . . .
  356. AC_MSG_CHECKING([whether -R must be followed by a space])
  357. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  358. ac_xsave_[]_AC_LANG_ABBREV[]_werror_flag=$ac_[]_AC_LANG_ABBREV[]_werror_flag
  359. ac_[]_AC_LANG_ABBREV[]_werror_flag=yes
  360. AC_LINK_IFELSE([AC_LANG_PROGRAM()],
  361. [AC_MSG_RESULT([no])
  362. X_LIBS="$X_LIBS -R$x_libraries"],
  363. [LIBS="$ac_xsave_LIBS -R $x_libraries"
  364. AC_LINK_IFELSE([AC_LANG_PROGRAM()],
  365. [AC_MSG_RESULT([yes])
  366. X_LIBS="$X_LIBS -R $x_libraries"],
  367. [AC_MSG_RESULT([neither works])])])
  368. ac_[]_AC_LANG_ABBREV[]_werror_flag=$ac_xsave_[]_AC_LANG_ABBREV[]_werror_flag
  369. LIBS=$ac_xsave_LIBS
  370. fi
  371. # Check for system-dependent libraries X programs must link with.
  372. # Do this before checking for the system-independent R6 libraries
  373. # (-lICE), since we may need -lsocket or whatever for X linking.
  374. if test "$ISC" = yes; then
  375. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  376. else
  377. # Martyn Johnson says this is needed for Ultrix, if the X
  378. # libraries were built with DECnet support. And Karl Berry says
  379. # the Alpha needs dnet_stub (dnet does not exist).
  380. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  381. AC_LINK_IFELSE([AC_LANG_CALL([], [XOpenDisplay])],
  382. [],
  383. [AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])
  384. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  385. AC_CHECK_LIB(dnet_stub, dnet_ntoa,
  386. [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"])
  387. fi])
  388. LIBS="$ac_xsave_LIBS"
  389. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  390. # to get the SysV transport functions.
  391. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  392. # needs -lnsl.
  393. # The nsl library prevents programs from opening the X display
  394. # on Irix 5.2, according to T.E. Dickey.
  395. # The functions gethostbyname, getservbyname, and inet_addr are
  396. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  397. AC_CHECK_FUNC(gethostbyname)
  398. if test $ac_cv_func_gethostbyname = no; then
  399. AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl")
  400. if test $ac_cv_lib_nsl_gethostbyname = no; then
  401. AC_CHECK_LIB(bsd, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd")
  402. fi
  403. fi
  404. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  405. # socket/setsockopt and other routines are undefined under SCO ODT
  406. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  407. # on later versions), says Simon Leinen: it contains gethostby*
  408. # variants that don't use the name server (or something). -lsocket
  409. # must be given before -lnsl if both are needed. We assume that
  410. # if connect needs -lnsl, so does gethostbyname.
  411. AC_CHECK_FUNC(connect)
  412. if test $ac_cv_func_connect = no; then
  413. AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", ,
  414. $X_EXTRA_LIBS)
  415. fi
  416. # Guillermo Gomez says -lposix is necessary on A/UX.
  417. AC_CHECK_FUNC(remove)
  418. if test $ac_cv_func_remove = no; then
  419. AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix")
  420. fi
  421. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  422. AC_CHECK_FUNC(shmat)
  423. if test $ac_cv_func_shmat = no; then
  424. AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc")
  425. fi
  426. fi
  427. # Check for libraries that X11R6 Xt/Xaw programs need.
  428. ac_save_LDFLAGS=$LDFLAGS
  429. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  430. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  431. # check for ICE first), but we must link in the order -lSM -lICE or
  432. # we get undefined symbols. So assume we have SM if we have ICE.
  433. # These have to be linked with before -lX11, unlike the other
  434. # libraries we check for below, so use a different variable.
  435. # John Interrante, Karl Berry
  436. AC_CHECK_LIB(ICE, IceConnectionNumber,
  437. [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS)
  438. LDFLAGS=$ac_save_LDFLAGS
  439. fi
  440. AC_SUBST(X_CFLAGS)dnl
  441. AC_SUBST(X_PRE_LIBS)dnl
  442. AC_SUBST(X_LIBS)dnl
  443. AC_SUBST(X_EXTRA_LIBS)dnl
  444. ])# AC_PATH_XTRA