-static const struct option longopts[]=
-{
- {"options",required_argument,NULL,'o'},
- {"longoptions",required_argument,NULL,'l'},
- {"quiet",no_argument,NULL,'q'},
- {"quiet-output",no_argument,NULL,'Q'},
- {"shell",required_argument,NULL,'s'},
- {"test",no_argument,NULL,'T'},
- {"unquoted",no_argument,NULL,'u'},
- {"alternative",no_argument,NULL,'a'},
- {"name",required_argument,NULL,'n'},
- {NULL,0,NULL,0}
+#if ENABLE_GETOPT_LONG
+static const struct option longopts[] = {
+ { "options", required_argument, NULL, 'o' },
+ { "longoptions", required_argument, NULL, 'l' },
+ { "quiet", no_argument, NULL, 'q' },
+ { "quiet-output", no_argument, NULL, 'Q' },
+ { "shell", required_argument, NULL, 's' },
+ { "test", no_argument, NULL, 'T' },
+ { "unquoted", no_argument, NULL, 'u' },
+ { "alternative", no_argument, NULL, 'a' },
+ { "name", required_argument, NULL, 'n' },
+ { NULL, 0, NULL, 0 }