1 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
3 dnl This program is free software; you can redistribute it and/or modify
4 dnl it under the terms of the GNU General Public License as published by
5 dnl the Free Software Foundation; either version 3 of the License, or
6 dnl (at your option) any later version.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 dnl GNU General Public License for more details.
13 dnl You should have received a copy of the GNU General Public License
14 dnl along with this program; if not, write to the Free Software
15 dnl Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA.
17 dnl As a special exception to the GNU General Public License, if you
18 dnl distribute this file as part of a program that contains a configuration
19 dnl script generated by Autoconf, you may include it under the same
20 dnl distribution terms that you use for the rest of that program.
23 #-----------------------------------------------------------------------
24 # This macro searches for Xlib and when it finds it it adds the
25 # appropriate flags to CXXFLAGS and export the link sequence to
27 # In your configure.in file add:
29 # In your Makefile.am add
30 # program_LDADD = .... $(XLIB)
31 #------------------------------------------------------------------------
33 AC_DEFUN([LF_PATH_XLIB],[
35 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
36 XLIB="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"