Build: check for gencat
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 13 Apr 2012 15:58:02 +0000 (11:58 -0400)
committerDerrick Brashear <shadow@dementix.org>
Sat, 14 Apr 2012 00:46:38 +0000 (17:46 -0700)
Check for the gencat program and give a missing warning if
not present.

Change-Id: I71cdaa0840215b53071be4481a5f23b2f8667bda
Reviewed-on: http://gerrit.openafs.org/7203
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/afs/Makefile.in
src/cf/osconf.m4
src/config/Makefile.config.in

index 5e35972..7dbb9f4 100644 (file)
@@ -27,13 +27,13 @@ afszcm.cat: afs_trace.msf
        -$(RM) -f afszcm.cat
        case ${SYS_NAME} in \
                sgi_* ) \
-                       gencat -m afszcm.cat afs_trace.msf ;; \
+                       ${GENCAT} -m afszcm.cat afs_trace.msf ;; \
                *_linux* | *_umlinux* ) \
-                       gencat --new afszcm.cat afs_trace.msf ;; \
+                       ${GENCAT} --new afszcm.cat afs_trace.msf ;; \
                *_darwin_* ) \
-                       gencat -new afszcm.cat afs_trace.msf ;; \
+                       ${GENCAT} -new afszcm.cat afs_trace.msf ;; \
                * ) \
-                       gencat afszcm.cat afs_trace.msf ;; \
+                       ${GENCAT} afszcm.cat afs_trace.msf ;; \
        esac
 
 depinstall: afszcm.cat AFS_component_version_number.c \
index 7708462..f97bbc9 100644 (file)
@@ -33,6 +33,7 @@ AC_CHECK_PROGS(LD, ld, [${am_missing_run}ld])
 AC_CHECK_PROGS(CP, cp, [${am_missing_run}cp])
 AC_CHECK_PROGS(STRIP, strip, [${am_missing_run}strip])
 AC_CHECK_PROGS(LORDER, lorder, [${am_missing_run}lorder])
+AC_CHECK_PROGS(GENCAT, gencat, [${am_missing_run}gencat])
 
 dnl TODO - need to disable STRIP if we are doing debugging in any user space code
 
index 031bb54..8990a47 100644 (file)
@@ -47,6 +47,7 @@ DBG = @DBG@
 DEST = @DEST@
 DIR_roken = @DIR_roken@
 FSINCLUDES = @FSINCLUDES@
+GENCAT = @GENCAT@
 INCLUDE_LIBINTL = @INCLUDE_libintl@
 KERN_DBG = @KERN_DBG@
 KERN_OPTMZ = @KERN_OPTMZ@