[lwatch-cvs] files configure,1.29,1.30 configure.ac,1.24,1.25
Brought to you by:
arturcz
|
From: <ar...@us...> - 2003-03-25 11:16:28
|
Update of /cvsroot/lwatch/files
In directory sc8-pr-cvs1:/tmp/cvs-serv20681
Modified Files:
configure configure.ac
Log Message:
- platform specific directories
Index: configure
===================================================================
RCS file: /cvsroot/lwatch/files/configure,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** configure 25 Mar 2003 10:03:23 -0000 1.29
--- configure 25 Mar 2003 11:16:17 -0000 1.30
***************
*** 1,4 ****
#! /bin/sh
! # From configure.ac Revision: 1.23 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for lwatch 0.2.
--- 1,4 ----
#! /bin/sh
! # From configure.ac Revision: 1.24 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for lwatch 0.2.
***************
*** 1781,1788 ****
!
!
!
!
--- 1781,1802 ----
! echo "$as_me:$LINENO: checking for platform dependent directories" >&5
! echo $ECHO_N "checking for platform dependent directories... $ECHO_C" >&6
! case $target in
! *-*-*bsd*)
! CFLAGS="${CFLAGS} -I/usr/local/include"
! LDFLAGS="${LDFLAGS} -I/usr/local/lib"
! echo "$as_me:$LINENO: result: \"*BSD detected\"" >&5
! echo "${ECHO_T}\"*BSD detected\"" >&6
! echo "$as_me:$LINENO: result: \"Added /usr/local/include to CFLAGS\"" >&5
! echo "${ECHO_T}\"Added /usr/local/include to CFLAGS\"" >&6
! echo "$as_me:$LINENO: result: \"Added /usr/local/lib to LDFLAGS\"" >&5
! echo "${ECHO_T}\"Added /usr/local/lib to LDFLAGS\"" >&6
! ;;
! *)
! echo "$as_me:$LINENO: result: \"No special directories\"" >&5
! echo "${ECHO_T}\"No special directories\"" >&6
! ;;
! esac
***************
*** 3723,3727 ****
! for ac_header in errno.h fcntl.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/param.h sys/poll.h sys/stat.h sys/types.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
--- 3737,3743 ----
!
!
! for ac_header in errno.h fcntl.h getopt.h pcre.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/param.h sys/poll.h sys/stat.h sys/types.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
***************
*** 3865,3905 ****
-
-
-
- # Searching for include directory
- echo "$as_me:$LINENO: checking for location of getopt.h" >&5
- echo $ECHO_N "checking for location of getopt.h... $ECHO_C" >&6
- for d in /usr/include /usr/local/include; do
- if test -f "$d/getopt.h"; then
- CFLAGS="${CFLAGS} -I$d"
- cat >>confdefs.h <<_ACEOF
- #define HAVE_`echo getopt.h | tr "a-z." "A-Z_"` 1
- _ACEOF
-
- echo "$as_me:$LINENO: result: $d" >&5
- echo "${ECHO_T}$d" >&6
- break
- fi
- done
-
-
- # Searching for include directory
- echo "$as_me:$LINENO: checking for location of pcre.h" >&5
- echo $ECHO_N "checking for location of pcre.h... $ECHO_C" >&6
- for d in /usr/include /usr/local/include; do
- if test -f "$d/pcre.h"; then
- CFLAGS="${CFLAGS} -I$d"
- cat >>confdefs.h <<_ACEOF
- #define HAVE_`echo pcre.h | tr "a-z." "A-Z_"` 1
- _ACEOF
-
- echo "$as_me:$LINENO: result: $d" >&5
- echo "${ECHO_T}$d" >&6
- break
- fi
- done
-
-
# Checks for libraries.
--- 3881,3884 ----
***************
*** 4880,4883 ****
--- 4859,4867 ----
_ACEOF
+
+ #AC_MSG_CHECKING(for additional include directories)
+ #AC_ARG_WITH(include-dir,
+ # AC_HELP_STRING([--with-include-dir=dir1:dir2:dir3...],[Searching for headers in this directory]),withval="")
+ #AC_MSG_RESULT(:$withval:)
# Epilog
Index: configure.ac
===================================================================
RCS file: /cvsroot/lwatch/files/configure.ac,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** configure.ac 25 Mar 2003 10:03:28 -0000 1.24
--- configure.ac 25 Mar 2003 11:16:20 -0000 1.25
***************
*** 34,42 ****
[Default input file])
! AH_TEMPLATE([HAVE_GETOPT_H],
! [Define to 1 if you have the <getopt.h> header file.])
- AH_TEMPLATE([HAVE_PCRE_H],
- [Define to 1 if you have the <pcre.h> header file.])
# Checks for programs.
--- 34,51 ----
[Default input file])
! AC_MSG_CHECKING(for platform dependent directories)
! case $target in
! *-*-*bsd*)
! CFLAGS="${CFLAGS} -I/usr/local/include"
! LDFLAGS="${LDFLAGS} -I/usr/local/lib"
! AC_MSG_RESULT("*BSD detected")
! AC_MSG_RESULT("Added /usr/local/include to CFLAGS")
! AC_MSG_RESULT("Added /usr/local/lib to LDFLAGS")
! ;;
! *)
! AC_MSG_RESULT("No special directories")
! ;;
! esac
# Checks for programs.
***************
*** 57,77 ****
# Checks for header files.
AC_HEADER_STDC
! AC_CHECK_HEADERS([errno.h fcntl.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/param.h sys/poll.h sys/stat.h sys/types.h unistd.h])
!
! AC_DEFUN(ARC_FIND_HEADER, [
! # Searching for include directory
! AC_MSG_CHECKING(for location of $1)
! for d in /usr/include /usr/local/include; do
! if test -f "$d/$1"; then
! CFLAGS="${CFLAGS} -I$d"
! AC_DEFINE_UNQUOTED(HAVE_`echo $1 | tr "a-z." "A-Z_"`)
! AC_MSG_RESULT($d)
! break
! fi
! done
! ])
!
! ARC_FIND_HEADER(getopt.h)
! ARC_FIND_HEADER(pcre.h)
# Checks for libraries.
--- 66,70 ----
# Checks for header files.
AC_HEADER_STDC
! AC_CHECK_HEADERS([errno.h fcntl.h getopt.h pcre.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/param.h sys/poll.h sys/stat.h sys/types.h unistd.h])
# Checks for libraries.
***************
*** 117,120 ****
--- 110,118 ----
AC_SUBST(INPUTFILE)
AC_DEFINE_UNQUOTED(INPUTFILE,"${INPUTFILE}")
+
+ #AC_MSG_CHECKING(for additional include directories)
+ #AC_ARG_WITH(include-dir,
+ # AC_HELP_STRING([--with-include-dir=dir1:dir2:dir3...],[Searching for headers in this directory]),withval="")
+ #AC_MSG_RESULT(:$withval:)
# Epilog
|