annotate GEMBASSY-1.0.3/m4/lf_x11.m4 @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3 dnl This program is free software; you can redistribute it and/or modify
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 dnl it under the terms of the GNU General Public License as published by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5 dnl the Free Software Foundation; either version 2 of the License, or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 dnl (at your option) any later version.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 dnl This program is distributed in the hope that it will be useful,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 dnl GNU General Public License for more details.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13 dnl You should have received a copy of the GNU General Public License
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 dnl along with this program; if not, write to the Free Software
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 dnl As a special exception to the GNU General Public License, if you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 dnl distribute this file as part of a program that contains a configuration
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 dnl script generated by Autoconf, you may include it under the same
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 dnl distribution terms that you use for the rest of that program.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 #-----------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 # This macro searches for Xlib and when it finds it it adds the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 # appropriate flags to CFLAGS and export the link sequence to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 # the variable XLIB.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 # In your configure.in file add:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 # LF_PATH_XLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29 # In your Makefile.am add
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 # program_LDADD = .... $(XLIB)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 #------------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33 # Just added EMBOSS into LF_PATH_XLIB so that on the systems where
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34 # LF_PATH_XLIB exists there are no duplication errors.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 AC_DEFUN([LF_EMBOSS_PATH_XLIB],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38 CFLAGS="$CFLAGS $X_CFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41 irix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42 XLIB="-lX11 $X_EXTRA_LIBS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45 XLIB="$X_LIBS -lX11 $X_EXTRA_LIBS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 AC_SUBST([XLIB])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 AC_CHECK_HEADER(X11/Xlib.h,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53 AC_DEFINE([PLD_xwin], [1], [Define to 1 if X11 support is available])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54 ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55 [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 echo ""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57 echo "X11 graphics have been selected but no X11 header files"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58 echo "have been found."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 echo ""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60 echo "This error usually happens on Linux/MacOSX distributions"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 echo "where the optional X11 development files have not been installed."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 echo "On Linux RPM systems this package is usually called something"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 echo "like xorg-x11-proto-devel whereas on Debian/Ubuntu it may"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64 echo "be called x-dev. On MacOSX installation DVDs the X11 files"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 echo "can usually be found as an explicitly named optional"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66 echo "installation."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67 echo ""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68 echo "After installing the X11 development files you should do a"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69 echo "'make clean' and perform the configure stage again."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 echo ""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 echo "Alternatively, to install EMBOSS without X11 support, you can add"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 echo "the --without-x switch to the configure command."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 echo ""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 exit $?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78