dnl dnl AC_PROG_GPERF (MINIMUM-VERSION) dnl dnl Check for availability of gperf. dnl Abort if not found or if current version is not up to par. dnl AC_DEFUN([AC_PROG_GPERF],[ AC_PATH_PROG(GPERF, gperf, no) if test "$GPERF" = no; then AC_MSG_ERROR(Could not find gperf) fi min_gperf_version=ifelse([$1], ,2.7,$1) AC_MSG_CHECKING(for gperf - version >= $min_gperf_version) gperf_major_version=`$GPERF --version | \ sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\1/'` gperf_minor_version=`$GPERF --version | \ sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\2/'` no_gperf="" dnl dnl Now check if the installed gperf is sufficiently new. dnl AC_TRY_RUN([ #include #include #include static char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { char *tmp_version; int major; int minor; /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_gperf_version"); if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) { printf ("%s, bad version string\n", "$min_gperf_version"); exit (1); } if (($gperf_major_version > major) || (($gperf_major_version == major) && ($gperf_minor_version >= minor))) { return 0; } else { printf ("\n"); printf ("*** An old version of gperf ($gperf_major_version.$gperf_minor_version) was found.\n"); printf ("*** You need a version of gperf newer than %d.%d.%d. The latest version of\n", major, minor); printf ("*** gperf is always available from ftp://ftp.gnu.org.\n"); printf ("***\n"); return 1; } } ],,no_gperf=yes,[/bin/true]) if test "x$no_gperf" = x ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi ]) ub right'>
aboutsummaryrefslogtreecommitdiffstats
path: root/cad
Commit message (Expand)AuthorAgeFilesLines
* - Change dependency directory, since java/bsh is no lang/bsh.lippe2008-06-231-2/+2
* Upgrade to 2.2.2.thierry2008-06-222-4/+4
* Update my email address in 132 ports.amdmi32008-06-201-1/+1
* Upgrade to 2.2.1.thierry2008-06-194-25/+15
* - Update to 2008.06.08.stas2008-06-196-81/+13
* Fix dependency (m4>=1.4.11). The previous version of m4 (1.4.9)hrs2008-06-181-2/+2
* - Fix pkg-plist in NOPORTDOCS case.stas2008-06-142-9/+24
* Fix pkg-plist.hrs2008-06-112-2/+1
* Add a missing dependency.hrs2008-06-101-1/+2
* Update to 20080202 snapshot. Changes include:hrs2008-06-097-140/+1866
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-0636-24/+36
* - Update to 0.2.6.1gahr2008-06-042-5/+6
* - Update to 7.12.4miwi2008-05-304-7/+37
* - Unbreak: make fetchable againgahr2008-05-291-2/+0
* Remove librt dependency because it is not needed actually.hrs2008-05-182-1/+2
* Chase update to 3.1.10bms2008-05-172-4/+4
* - Update to 9.7.66.stas2008-05-153-5/+6
* Replace local patch with one from vendor.itetcu2008-05-061-11/+99
* Add a missing patch forgotten in the commit for updating to 0.14.hrs2008-05-061-0/+10
* Update to 0.14. Changes since version 0.10 include:hrs2008-05-065-33/+32
* Don't attempt to build on 5.x.bms2008-05-051-1/+7
* Add GTKWave 3.1.9 port.bms2008-05-03