Skip to contentSkip to conversation

dmraid ./configure ./configure.in ./make.tmpl. ...

PATCH [email protected] 1 participant 1 message May 30, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: dmraid
Changes by: [email protected] 2010-05-30 17:44:56

Modified files:
. : configure configure.in make.tmpl.in
include : config.h.in
Added files:
lib : version.h.in

Log message:
Use LD_DEPS and CLDFLAGS in Makefiles
Move DEBUG and DEBUG_MALLOC to config.h Add _LARGEFILE64_SOURCE to config.h
Define DMRAID_LIB_MAJOR/MINOR/SUBMINOR/SUFFIX/DATE Generate lib/version.h
Use $(SED) in Makefiles
Move -include to $(INCLUDE)
Add DISTCLEAN_TARGETS to removed files by distclean

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/configure.diff?cvsroot=dm&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/configure.in.diff?cvsroot=dm&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/make.tmpl.in.diff?cvsroot=dm&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/include/config.h.in.diff?cvsroot=dm&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/version.h.in.diff?cvsroot=dm&r1=NONE&r2=1.1

configure +46 -8
@@ -642,9 +642,14 @@
 STATIC_LINK
 SOFLAG
 LIB_SO
-FLAVOUR
 LD_DEPS
 JOBS
+FLAVOUR
+DMRAID_LIB_SUFFIX
+DMRAID_LIB_SUBMINOR
+DMRAID_LIB_MINOR
+DMRAID_LIB_MAJOR
+DMRAID_LIB_DATE
 DIETLIBC
 DEBUG_MALLOC
 DEBUG
@@ -6334,8 +6339,8 @@
 	case "$host_os" in
 		linux*)
 			CFLAGS=-O2
-			CLDFLAGS="-Wl,--version-script,.export.sym"
-			LD_DEPS=".export.sym"
+			CLDFLAGS='-Wl,--version-script,$(top_srcdir)/lib/.export.sym'
+			LD_DEPS='$(top_srcdir)/lib/.export.sym'
 			SOFLAG="-shared" ;;
 	esac
 fi
@@ -6397,7 +6402,7 @@
 $as_echo "$as_me: error: You cannot enable both dietlibc and klibc!" >&2;}
    { (exit 1); exit 1; }; }
 	fi
-        CC="diet gcc"
+	CC="diet gcc"
 	FLAVOUR="dietlibc "
 fi
 
@@ -6509,7 +6514,7 @@
 #define DMRAID_INTEL_LED 1
 _ACEOF
 
-        DMRAID_LED=yes
+	DMRAID_LED=yes
 fi
 
 if test "$DMRAID_LED" = yes; then
@@ -6528,9 +6533,29 @@
 
 fi
 
+if test "$DEBUG" = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define DEBUG 1
+_ACEOF
+
+	FLAVOUR="${FLAVOUR}debug "
+fi
+
+if test "$DEBUG_MALLOC" = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define DEBUG_MALLOC 1
+_ACEOF
+
+	FLAVOUR="${FLAVOUR}debug_malloc "
+fi
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _LARGEFILE64_SOURCE 1
+_ACEOF
 
-test "$DEBUG" = yes && FLAVOUR="${FLAVOUR}debug "
-test "$DEBUG_MALLOC" = yes && FLAVOUR="${FLAVOUR}debug_malloc "
 
 test "$exec_prefix" = NONE -a "$prefix" = NONE && exec_prefix=""
 
@@ -8124,6 +8149,18 @@
 
 fi
 
+VERSION=$srcdir/tools/VERSION
+DMRAID_LIB_MAJOR=$(cut -d. -f1 $VERSION)
+DMRAID_LIB_MINOR=$(cut -d. -f2 $VERSION)
+DMRAID_LIB_SUBMINOR=$(cut -d. -f3 $VERSION)
+DMRAID_LIB_SUFFIX=$(cut -d. -f4 $VERSION | cut -d' ' -f1)
+DMRAID_LIB_DATE=$(cut -d' ' -f2 $VERSION)
+
+
+
+
+
+
 
 
 
@@ -8140,7 +8177,7 @@
 
 
 
-ac_config_files="$ac_config_files include/Makefile lib/Makefile man/Makefile tools/Makefile tools/version.h Makefile make.tmpl"
+ac_config_files="$ac_config_files include/Makefile lib/Makefile lib/version.h man/Makefile tools/Makefile tools/version.h Makefile make.tmpl"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -8741,6 +8778,7 @@
     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:include/config.h.in" ;;
     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
+    "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
     "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
configure.in +31 -10

88 lines not on this page · raw message

make.tmpl.in +18 -25

99 lines not on this page · raw message

include/config.h.in +9 -0
@@ -1,5 +1,11 @@
 /* include/config.h.in.  Generated from configure.in by autoheader.  */
 
+/* Define to 1 if you want debug. */
+#undef DEBUG
+
+/* Define to 1 if you want to debug malloc. */
+#undef DEBUG_MALLOC
+
 /* Define to 1 if you want Intel LED support. */
 #undef DMRAID_INTEL_LED
 
@@ -172,6 +178,9 @@
 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 #undef TIME_WITH_SYS_TIME
 
+/* Define to 1 if you want compile with large file. */
+#undef _LARGEFILE64_SOURCE
+
 /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
    <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
    #define below would cause a syntax error. */

/cvs/dm/dmraid/lib/version.h.in,v --> standard output revision 1.1

- renamed from lib/version.h.in +9 -0
@@ -0,0 +1,9 @@
+#ifndef	DMRAID_LIB_DATE
+
+#define	DMRAID_LIB_DATE			"@DMRAID_LIB_DATE@"
+#define	DMRAID_LIB_MAJOR_VERSION	@DMRAID_LIB_MAJOR@
+#define	DMRAID_LIB_MINOR_VERSION	@DMRAID_LIB_MINOR@
+#define	DMRAID_LIB_SUBMINOR_VERSION	@DMRAID_LIB_SUBMINOR@
+#define	DMRAID_LIB_VERSION_SUFFIX	"@DMRAID_LIB_SUFFIX@"
+
+#endif