Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Modified automake/autoconf to deploy config.h as lsfconfig.h #50

Open
wants to merge 2 commits into from

2 participants

David Irvine openlava project
David Irvine

lsf.h includes config.h which is built but not deployed. Modified build to use lsfconfig.h rather than config.h and install lsfconfig.h into includedir.

openlava project
Owner

Hi. Isn't it easier to add the installation of config.h in lsf/Makefile.am?

david@bokis ~/openlava/lsf>git diff Makefile.am
diff --git a/lsf/Makefile.am b/lsf/Makefile.am
index b5abb57..3d42774 100644
--- a/lsf/Makefile.am
+++ b/lsf/Makefile.am
@@ -4,7 +4,7 @@

include $(top_srcdir)/common.mk

-include_HEADERS = lsf.h
+include_HEADERS = lsf.h ../config.h

SUBDIRS = intlib lib lim pim lstools lsadm man

When adding something new in openlava we should use the 'openlava' prefix rather than lsf. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 28, 2013
  1. Modified so that config.h gets installed.

    irvined authored
Commits on Feb 1, 2013
  1. David Irvine
This page is out of date. Refresh to see the latest.
1  Makefile.am
View
@@ -9,3 +9,4 @@ SUBDIRS = lsf lsbatch lsf/res eauth scripts chkpnt config examples
MISSING_FILES = aclocal.m4
MAINTAINERCLEANFILES = $(MISSING_FILES)
+include_HEADERS = lsfconfig.h
2  configure.ac
View
@@ -4,7 +4,7 @@
# Copyright (C) 2011 David Bigagli
#
AC_INIT(openlava, 2.0)
-AC_CONFIG_HEADERS(config.h)
+AC_CONFIG_HEADERS(lsfconfig.h)
AC_PREFIX_DEFAULT([/opt/openlava-2.0])
2  lsf/lsf.h
View
@@ -20,7 +20,7 @@
#ifndef _LSF_H_
#define _LSF_H_
-#include <config.h>
+#include <lsfconfig.h>
#include <stdio.h>
#include <stdint.h>
#include <errno.h>
1  spec/openlava.spec
View
@@ -412,6 +412,7 @@ exit 0
# headers
%{_includedir}/lsbatch.h
%{_includedir}/lsf.h
+%{_includedir}/lsfconfig.h
# docs
%doc COPYING
Something went wrong with that request. Please try again.