$NetBSD: patch-ae,v 1.4 2009/05/13 22:08:21 wiz Exp $

--- src/fluidsynth.c.orig	2011-09-04 07:38:58.000000000 +0000
+++ src/fluidsynth.c
@@ -293,9 +293,9 @@ int main(int argc, char** argv)
   int with_server = 0;
   int dump = 0;
   int fast_render = 0;
-  int connect_lash = 1;
   char *optchars = "a:C:c:dE:f:F:G:g:hijK:L:lm:nO:o:p:R:r:sT:Vvz:";
 #ifdef LASH_ENABLED
+  int connect_lash = 1;
   int enabled_lash = 0;		/* set to TRUE if lash gets enabled */
   fluid_lash_args_t *lash_args;
 
@@ -323,7 +323,9 @@ int main(int argc, char** argv)
       {"audio-groups", 1, 0, 'G'},
       {"chorus", 1, 0, 'C'},
       {"connect-jack-outputs", 0, 0, 'j'},
+#ifdef LASH_ENABLED
       {"disable-lash", 0, 0, 'l'},
+#endif
       {"dump", 0, 0, 'd'},
       {"fast-render", 1, 0, 'F'},
       {"gain", 1, 0, 'g'},
@@ -458,9 +460,11 @@ int main(int argc, char** argv)
       audio_channels = atoi(optarg);
       fluid_settings_setint(settings, "synth.audio-channels", audio_channels);
       break;
+#ifdef LASH_ENABLED
     case 'l':			/* disable LASH */
       connect_lash = 0;
       break;
+#endif
     case 'm':
       if (FLUID_STRCMP (optarg, "help") == 0)
       {
@@ -572,6 +576,7 @@ int main(int argc, char** argv)
 #endif
 
 #ifdef LASH_ENABLED
+#ifdef LASH_ENABLED
   /* connect to the lash server */
   if (connect_lash)
     {
@@ -579,6 +584,7 @@ int main(int argc, char** argv)
       fluid_settings_setint (settings, "lash.enable", enabled_lash ? 1 : 0);
     }
 #endif
+#endif
 
   /* The 'groups' setting is only relevant for LADSPA operation
    * If not given, set number groups to number of audio channels, because
