summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-03-09 13:20:21 -0500
committerPatrick Griffis <tingping@tingping.se>2018-03-09 13:20:21 -0500
commitcdefb8e2d65f94aa5f1e88dda487dcf72f92ef34 (patch)
tree2f5a430a24facbf1dc23422e92c5b533653aec7b
parent16ee8eb2337e5c12c42fad6529c52a3c95ce493a (diff)
build: Fix building with-text=true and with-plugin=false
Closes #2113
-rw-r--r--src/fe-text/fe-text.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-text/fe-text.c b/src/fe-text/fe-text.c
index 3d29533d..ac190325 100644
--- a/src/fe-text/fe-text.c
+++ b/src/fe-text/fe-text.c
@@ -508,6 +508,10 @@ fe_args (int argc, char *argv[])
 
 	if (arg_show_autoload)
 	{
+#ifndef USE_PLUGIN
+		printf (PACKAGE_NAME" was build without plugin support\n");
+		return 1;
+#else
 #ifdef WIN32
 		/* see the chdir() below */
 		char *sl, *exe = g_strdup (argv[0]);
@@ -521,6 +525,7 @@ fe_args (int argc, char *argv[])
 #else
 		printf ("%s\n", HEXCHATLIBDIR);
 #endif
+#endif
 		return 0;
 	}