Add header file in CCache for _WIN32 environment

This commit is contained in:
FUTATSUKI YASUHITO 2017-06-20 01:33:10 +09:00
commit 93895f5a51
4 changed files with 6 additions and 2 deletions

View file

@ -70,7 +70,7 @@ test: test.sh
check: test check: test
distclean: clean distclean: clean
/bin/rm -f Makefile config.h config.sub config.log build-stamp config.status ccache_swig_config.h /bin/rm -f Makefile config.h config.sub config.log build-stamp config.status ccache_swig_config.h config_win32.h
/bin/rm -rf autom4te.cache /bin/rm -rf autom4te.cache
maintainer-clean: distclean maintainer-clean: distclean

View file

@ -6,7 +6,7 @@
#include "config.h" #include "config.h"
#else #else
#include <sys/locking.h> #include <sys/locking.h>
#define PACKAGE_NAME "ccache-swig.exe" #include "config_w32.h"
#endif #endif
#include <stdio.h> #include <stdio.h>

3
CCache/config_w32.h.in Normal file
View file

@ -0,0 +1,3 @@
#if !defined(MYNAME)
#define MYNAME "@MYNAME@@EXEEXT@"
#endif

View file

@ -7,6 +7,7 @@ AC_CONFIG_SRCDIR([ccache.h])
AC_MSG_NOTICE([Configuring ccache]) AC_MSG_NOTICE([Configuring ccache])
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
AC_CONFIG_FILES([config_w32.h])
dnl Checks for programs. dnl Checks for programs.
AC_PROG_CC AC_PROG_CC