Imported Upstream version 3.0
[debian/gnuradio] / config / lf_x11.m4
1 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
2 dnl  
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 2 of the License, or
6 dnl (at your option) any later version.
7 dnl 
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.
12 dnl 
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.
16 dnl 
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.
21
22  
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 
26 # the variable XLIB. 
27 # In your configure.in file add:
28 #   LF_PATH_XLIB
29 # In your Makefile.am add
30 #   program_LDADD = .... $(XLIB)
31 #------------------------------------------------------------------------
32
33 AC_DEFUN([LF_PATH_XLIB],[
34   AC_PATH_XTRA
35   CXXFLAGS="$CXXFLAGS $X_CFLAGS"
36   XLIB="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
37   AC_SUBST(XLIB)
38 ])
39