From 2b01e6f71910a4e430577f43c0cb3fb1abcb7566 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 26 Oct 2008 15:18:33 +0000 Subject: [PATCH] make compilation on older OSX versios work by removing the # from the librrd.sym file git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1632 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 4 ++-- program/src/Makefile.am | 5 ++++- program/src/{librrd.sym.in => librrd.sym.in.in} | 0 3 files changed, 6 insertions(+), 3 deletions(-) rename program/src/{librrd.sym.in => librrd.sym.in.in} (100%) diff --git a/program/configure.ac b/program/configure.ac index 04f9a110..f08b4e97 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -367,7 +367,7 @@ CONFIGURE_PART(Resolve Portability Issues) dnl Do we need getopt_long build_getopt=no -RRD_GETOPT_LONG="#" +RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG" AC_CHECK_FUNC(getopt_long,[],[ RRD_GETOPT_LONG="getopt_long" build_getopt=yes @@ -873,7 +873,7 @@ AC_CONFIG_FILES([examples/Makefile]) AC_CONFIG_FILES([doc/Makefile]) AC_CONFIG_FILES([po/Makefile.in]) AC_CONFIG_FILES([src/Makefile]) -AC_CONFIG_FILES([src/librrd.sym]) +AC_CONFIG_FILES([src/librrd.sym.in]) AC_CONFIG_FILES([src/librrd.pc]) AC_CONFIG_FILES([bindings/Makefile]) AC_CONFIG_FILES([bindings/tcl/Makefile]) diff --git a/program/src/Makefile.am b/program/src/Makefile.am index 8a563f5a..9c14263c 100644 --- a/program/src/Makefile.am +++ b/program/src/Makefile.am @@ -115,5 +115,8 @@ pkgconfig_DATA = librrd.pc # strftime is here because we do not usually need it. unices have propper # iso date support EXTRA_DIST= librrd.pc.in strftime.c strftime.h rrd_getopt.c rrd_getopt1.c rrd_getopt.h \ - win32comp.c rrd_thread_safe_nt.c get_ver.awk librrd.sym + win32comp.c rrd_thread_safe_nt.c get_ver.awk librrd.sym.in.in + +librrd.sym: librrd.sym.in + grep -v LIBC_HAS_GETOPT_LONG librrd.sym.in >$@ diff --git a/program/src/librrd.sym.in b/program/src/librrd.sym.in.in similarity index 100% rename from program/src/librrd.sym.in rename to program/src/librrd.sym.in.in -- 2.30.2