aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-pilot.m4
diff options
context:
space:
mode:
authorFatih Demir <kabalak@src.gnome.org>2000-02-13 18:35:30 +0800
committerFatih Demir <kabalak@src.gnome.org>2000-02-13 18:35:30 +0800
commit61657f8452b1c1b2829610af9d0efd30076c1798 (patch)
tree6ec1afa61845b6cdec2a89e30c34923ce9e3e859 /macros/gnome-pilot.m4
parente07a05c550c1382031b7e57cf39765bb12165b85 (diff)
downloadgsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.tar
gsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.tar.gz
gsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.tar.bz2
gsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.tar.lz
gsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.tar.xz
gsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.tar.zst
gsoc2013-evolution-61657f8452b1c1b2829610af9d0efd30076c1798.zip
removed gtranslator for re-checkin
svn path=/trunk/; revision=1746
Diffstat (limited to 'macros/gnome-pilot.m4')
-rw-r--r--macros/gnome-pilot.m4128
1 files changed, 0 insertions, 128 deletions
diff --git a/macros/gnome-pilot.m4 b/macros/gnome-pilot.m4
deleted file mode 100644
index 16e081a366..0000000000
--- a/macros/gnome-pilot.m4
+++ /dev/null
@@ -1,128 +0,0 @@
-dnl
-dnl GNOME_PILOT_HOOK(script if found, fail)
-dnl if fail = "failure", abort if gnome-pilot not found
-dnl
-
-GNOME_PILOT_CFLAGS=
-GNOME_PILOT_LIBS=
-PISOCK_INCLUDEDIR=
-PISOCK_LIBS=
-PILOT_BINS=
-PILOT_LIBS=
-
-AC_SUBST(GNOME_PILOT_CFLAGS)
-AC_SUBST(GNOME_PILOT_LIBS)
-AC_SUBST(PISOCK_INCLUDEDIR)
-AC_SUBST(PISOCK_LIBS)
-AC_SUBST(PILOT_BINS)
-AC_SUBST(PILOT_LIBS)
-
-AC_DEFUN([PILOT_LINK_HOOK],[
- AC_ARG_WITH(pisock,
- [ --with-pisock Specify prefix for pisock files],[
- if test x$withval = xyes; then
- dnl Note that an empty true branch is not valid sh syntax.
- ifelse([$1], [], :, [$1])
- else
- PISOCK_INCLUDEDIR="-I$withval/include"
- PISOCK_LIBDIR="-L$withval/lib"
- PISOCK_LIBS="-lpisock"
- AC_MSG_CHECKING("for existance of $withval/lib/libpisock.so")
- if test -r $withval/lib/libpisock.so; then
- AC_MSG_RESULT("yes")
- else
- AC_MSG_ERROR("Unable to find libpisock. Try ftp://ryeham.ee.ryerson.ca/pub/PalmOS/.")
- fi
- AC_SUBST(PISOCK_INCLUDEDIR)
- AC_SUBST(PISOCK_LIBDIR)
- fi
- ])
-
- if test x$PISOCK_INCLUDEDIR = x; then
- AC_CHECK_HEADER(pi-version.h, [], [
- AC_CHECK_HEADER(libpisock/pi-version.h, [PISOCK_INCLUDEDIR="-I/usr/include/libpisock"
- piversion_include="libpisock/pi-version.h"],
- AC_MSG_ERROR("Unable to find pi-version.h")) ])
- fi
-
- AC_SUBST(PISOCK_INCLUDEDIR)
-
- if test x$PISOCK_LIBDIR = x; then
- AC_CHECK_LIB(pisock, pi_accept, [ PISOCK_LIBS=-lpisock ],
- [ AC_MSG_ERROR("Unable to find libpisock. Try ftp://ryeham.ee.ryerson.ca/pub/PalmOS/.") ])
- fi
-
- AC_ARG_ENABLE(pilotlinktest,
- [ --enable-pilotlinktest Test for correct version of pilot-link],
- [testplversion=$enableval],
- [ testplversion=yes ]
- )
-
- if test x$piversion_include = x; then
- piversion_include="pi-version.h"
- fi
-
- if test x$testplversion = xyes; then
- AC_MSG_CHECKING(for pilot-link version >= $1)
- pl_ve=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- pl_ma=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- pl_mi=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- AC_TRY_RUN(
- [
- #include <$piversion_include>
- int main(int argc,char *argv[]) {
- if (PILOT_LINK_VERSION == $pl_ve) {
- if (PILOT_LINK_MAJOR == $pl_ma) {
- if (PILOT_LINK_MINOR >= $pl_mi) {
- exit(0);
- }
- } else if (PILOT_LINK_MAJOR > $pl_ma) {
- exit(0);
- }
- } else if (PILOT_LINK_VERSION > $pl_ve) {
- exit(0);
- }
- exit(1);
- }
- ],
- [AC_MSG_RESULT(yes)],
- [AC_MSG_ERROR("pilot-link >= $1 required")],
- [AC_MSG_WARN("No action taken for crosscompile")]
- )
- fi
-])
-
-AC_DEFUN([PILOT_LINK_CHECK],[
- PILOT_LINK_HOOK($1,[],nofailure)
-])
-
-AC_DEFUN([GNOME_PILOT_HOOK],[
- AC_PATH_PROG(GNOME_PILOT_CONFIG,gnome-pilot-config,no)
- AC_CACHE_CHECK([for gnome-pilot environment],gnome_cv_pilot_found,[
- if test x$GNOME_PILOT_CONFIG = xno; then
- gnome_cv_pilot_found=no
- else
- gnome_cv_pilot_found=yes
- fi
- ])
- AM_CONDITIONAL(HAVE_GNOME_PILOT,test x$gnome_cv_pilot_found = xyes)
- if test x$gnome_cv_pilot_found = xyes; then
- PILOT_LINK_CHECK($1)
- GNOME_PILOT_CFLAGS=`gnome-pilot-config --cflags client conduitmgmt`
- GNOME_PILOT_LIBS=`gnome-pilot-config --libs client conduitmgmt`
- $2
- else
- if test x$3 = xfailure; then
- AC_MSG_ERROR(Gnome-pilot not installed or installation problem)
- fi
- fi
-])
-
-AC_DEFUN([GNOME_PILOT_CHECK],[
- if test x$1 = x; then
- GNOME_PILOT_HOOK(0.9.3,[],nofailure)
- else
- GNOME_PILOT_HOOK($1,[],nofailure)
- fi
-])
-