Add HAVE_GLIB check instead of checking individual libraries that use GLib.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 3 Jun 2013 18:47:35 +0000 (20:47 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 3 Jun 2013 18:47:35 +0000 (20:47 +0200)
commit55a87246bae97514b6e927b9401b2b79592b8b91
treea262392c54564b2a26bd639be1e58eea10b5102c
parent3d5ee10aa258a500e0b70b5eabe9d58cb3ab051e
Add HAVE_GLIB check instead of checking individual libraries that use GLib.

* configure.ac (HAVE_GLIB): Add GLib check.  Set XGSELOBJ if GLib is
used.  Remove xgselect.o from XOBJ.

* src/Makefile.in (XGSELOBJ): New, xgselect.o if GLib is used, or empty.

* src/process.c (wait_reading_process_output): Call xg_select if HAVE_GLIB.

* src/xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.
ChangeLog
configure.ac
src/ChangeLog
src/Makefile.in
src/process.c
src/xgselect.c