diff options
author | jjako <jjako> | 2004-01-16 11:05:22 +0000 |
---|---|---|
committer | jjako <jjako> | 2004-01-16 11:05:22 +0000 |
commit | ff9985cb3686b38cd83d86968a0e339dadac7b08 (patch) | |
tree | f3000908f2d27c9caecc5953fa84aed5975a4534 /acinclude.m4 | |
parent | 1d3db978f4bef9cc09e29b4b2ca534036d98ffce (diff) |
Improved Solaris support
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..2aea10b --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,17 @@ +dnl Available from the GNU Autoconf Macro Archive at: +dnl http://www.gnu.org/software/ac-archive/htmldoc/adl_func_getopt_long.html +dnl +AC_DEFUN([adl_FUNC_GETOPT_LONG], + [AC_PREREQ(2.49)dnl + # clean out junk possibly left behind by a previous configuration + rm -f lib/getopt.h + # Check for getopt_long support + AC_CHECK_HEADERS([getopt.h]) + AC_CHECK_FUNCS([getopt_long],, + [# FreeBSD has a gnugetopt library for this + AC_CHECK_LIB([gnugetopt],[getopt_long],[AC_DEFINE([HAVE_GETOPT_LONG])], + [# use the GNU replacement + AC_LIBOBJ(getopt) + AC_LIBOBJ(getopt1) + AC_CONFIG_LINKS([ggsn/getopt.h:ggsn/gnugetopt.h]) + AC_CONFIG_LINKS([sgsnemu/getopt.h:sgsnemu/gnugetopt.h])])])]) |