4 dnl WM_CHECK_LIB
(NAME
, FUNCTION
, EXTRALIBS
)
9 LDFLAGS
="-DBEGIN $LDFLAGS -DEND $lib_search_path"
10 AC_CHECK_LIB
([$1],[$2],yes=yes,no
=no
,[$3])
11 LDFLAGS
="$LDFLAGS_old"
16 dnl WM_CHECK_HEADER
(NAME
)
18 AC_DEFUN
(WM_CHECK_HEADER
,
20 CPPFLAGS_old
="$CPPFLAGS"
21 CPPFLAGS
="$CPPFLAGS $inc_search_path"
23 CPPFLAGS
="$CPPFLAGS_old"
28 dnl WM_CHECK_REDCRAP_BUGS
(prefix
,bindir
,libdir
)
30 AC_DEFUN
(WM_CHECK_REDCRAP_BUGS
,
32 AC_MSG_CHECKING
(for RedHat system
)
34 if test -f /etc
/redhat-release
; then
37 AC_MSG_RESULT
($wm_check_flag)
41 if test "$wm_check_flag" = yes; then
43 AC_MSG_WARN
([it seems you are using a system packaged by RedHat.
44 I will now
do some checks
for RedHat specific bugs. If some check
45 fail
, please
read the INSTALL
file regarding RedHat
, resolve the
46 problem and retry to configure.
])
49 # Check old wmaker from RedHat
51 if test "[$1]" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
52 AC_MSG_CHECKING
(for multiple installed wmaker versions
)
53 if test -f /usr
/X11R
6/bin
/wmaker
; then
55 AC_MSG_WARN
([you seem to have an old version of Window Maker
56 installed
at /usr
/X11R
6/bin. It is recommended that you uninstall
57 any previously installed packages of WindowMaker before installing
61 AC_MSG_RESULT
(no apparent problems
)
65 # Check for infamous en_RN bug
66 # Wont work because autoconf will change LANG in the beginning of the
70 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
72 #if test "x$LANG" = xen_RN; then
74 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
75 #locale. Please unset it or you will have mysterious problems when
76 #using various software packages.])
79 #AC_MSG_RESULT(no problem)
82 # If binary installation path is /usr/local/bin, check if it's in PATH
84 if test "[$2]" = "/usr/local/bin"; then
85 AC_MSG_CHECKING
(if /usr
/local
/bin is
in the search PATH
)
90 if test "x$i" = "x/usr/local/bin"; then
96 if test "$wm_check_flag" = no
; then
98 AC_MSG_WARN
([/usr
/local
/bin is not
in the PATH environment variable.
99 Please resolve the problem.
])
102 AC_MSG_RESULT
(no problem
)
106 # If library installation path is /usr/local/lib,
107 # check if it's in /etc/ld.so.conf
109 if test "[$3]" = "/usr/local/lib"; then
111 AC_MSG_CHECKING
(if /usr
/local
/lib is
in /etc
/ld.so.conf
)
112 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
113 test "$?" -eq 0 && wm_check_flag
=no
114 if test "$wm_check_flag" = no
; then
116 AC_MSG_WARN
([/usr
/local
/lib is not
in the
/etc
/ld.so.conf
file.
117 Please add it there.
])
120 AC_MSG_RESULT
(no problem
)
124 # Check for symbolic links
126 AC_MSG_CHECKING
(for /usr
/X11 symbolic link
)
127 if test -d "/usr/X11"; then
131 AC_MSG_WARN
([Please create a symbolic link from
/usr
/X11R6 to
/usr
/X11.
])
134 AC_MSG_CHECKING
(for /usr
/include
/X11 symbolic link
)
135 if test -d "/usr/include/X11"; then
139 AC_MSG_WARN
([Please create a symbolic link from
/usr
/X11R
6/include
/X11
140 to
/usr
/include
/X11.
])
147 AC_MSG_CHECKING
(for /lib
/cpp
)
148 if test -f "/lib/cpp"; then
152 AC_MSG_WARN
([Please create a symbolic link from the cpp
(C preprocessor
)
153 program to
/lib
/cpp
])
157 if test "x$bugs_found" = xyes
; then
158 AC_MSG_ERROR
([Some bugs that can potentially cause problems during
159 installation
/execution were found. Please correct these problems
162 elif test "x$mins_found" = xyes
; then
163 AC_MSG_WARN
([Some minor problems that might or might not cause
164 problems were found. If you have any problems during
165 installation
/execution
, please resolve the pointed problems and try
167 echo "Press <Return> to continue."
171 echo "None of the RedHat problems known to this script were found."