build: Fix building with-text=true and with-plugin=false

Closes #2113
This commit is contained in:
Patrick Griffis 2018-03-09 13:20:21 -05:00
parent 16ee8eb233
commit cdefb8e2d6
1 changed files with 5 additions and 0 deletions

View File

@ -508,6 +508,10 @@ fe_args (int argc, char *argv[])
if (arg_show_autoload) if (arg_show_autoload)
{ {
#ifndef USE_PLUGIN
printf (PACKAGE_NAME" was build without plugin support\n");
return 1;
#else
#ifdef WIN32 #ifdef WIN32
/* see the chdir() below */ /* see the chdir() below */
char *sl, *exe = g_strdup (argv[0]); char *sl, *exe = g_strdup (argv[0]);
@ -520,6 +524,7 @@ fe_args (int argc, char *argv[])
g_free (exe); g_free (exe);
#else #else
printf ("%s\n", HEXCHATLIBDIR); printf ("%s\n", HEXCHATLIBDIR);
#endif
#endif #endif
return 0; return 0;
} }