Ensure that optarg etc. get declared by <unistd.h>.
[pspp] / modules / getopt
1 Description:
2 Process command line arguments.
3
4 Files:
5 lib/getopt.in.h
6 lib/getopt.c
7 lib/getopt1.c
8 lib/getopt_int.h
9 m4/getopt.m4
10
11 Depends-on:
12 gettext-h
13 unistd
14 extensions
15
16 configure.ac:
17 gl_GETOPT
18
19 Makefile.am:
20 BUILT_SOURCES += $(GETOPT_H)
21
22 # We need the following in order to create <getopt.h> when the system
23 # doesn't have one that works with the given compiler.
24 getopt.h: getopt.in.h
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26           cat $(srcdir)/getopt.in.h; \
27         } > $@-t
28         mv -f $@-t $@
29 MOSTLYCLEANFILES += getopt.h getopt.h-t
30
31 Include:
32 <getopt.h>
33
34 License:
35 LGPL
36
37 Maintainer:
38 all, glibc