Make it possible to disable conf.

Now the configure script has --disable-conf command-line argument
that can be used to turn off environment variables and use of
configuration files.
This commit is contained in:
Ahti Legonkov 2013-02-19 14:39:53 +02:00 committed by Philippe Teuwen
parent 72b10c5d9b
commit fd6d4db5b7
5 changed files with 33 additions and 1 deletions

View file

@ -21,6 +21,7 @@
# include "config.h"
#endif // HAVE_CONFIG_H
#ifdef CONF
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
@ -189,3 +190,5 @@ conf_load(nfc_context *context)
conf_devices_load(LIBNFC_DEVICECONFDIR, context);
}
#endif // CONF