Browse Source

Use config.h to reduce `-D' options in Makefile

master
lolilolicon 7 years ago
parent
commit
f737d162c3
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      configure.ac
  2. +1
    -0
      xrectsel.c

+ 2
- 1
configure.ac View File

@ -1,7 +1,8 @@
AC_INIT([xrectsel], [0.3])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror])
AC_PROG_CC
AC_SEARCH_LIBS([XOpenDisplay], [X11], , AC_MSG_ERROR([libx11 is required]))
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

+ 1
- 0
xrectsel.c View File

@ -16,6 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>


Loading…
Cancel
Save