diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-15 21:15:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-15 21:15:14 +0000 |
commit | 98a60eb782a11e3c86e0adc1282ffdd722a96c73 (patch) | |
tree | c724530677d0368973a26a9487ba152d6614549b /configure.ac | |
parent | 1ff75f944f66e60d81a1f4157f3f2cfb21fa4f89 (diff) |
check for existence of 'getopt' command line tool
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c0bf33421..30edf6285 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ # This file is part of GNUnet. -# (C) 2001--2014 Christian Grothoff (and other contributing authors) +# (C) 2001--2015 Christian Grothoff (and other contributing authors) # # GNUnet is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published @@ -202,6 +202,10 @@ AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(m, log) AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported])) +AC_CHECK_PROG(VAR_GETOPT_BINARY, getopt, true, false) +AM_CONDITIONAL(HAVE_GETOPT_BINARY, $VAR_GETOPT_BINARY) + + AC_CHECK_MEMBER(struct tm.tm_gmtoff, [AC_DEFINE(HAVE_TM_GMTOFF, 1, |