Using autoheader Command In Linux (Examples)

autoheader command in Linux is used for creating a template file of C “#define” statements for ‘configure’ to use. In case if the command is used with an argument, will read the standard output despite reading configure.ac and writes the header file to standard output.

Running this command basically scans the configure.ac file and finds out which C preprocessor signs it might have defined. Here comes the syntax to use autoheader command in Linux.

autoheader [OPTION] [TEMPLATE-FILE]

Note: To learn all available options to use with autoheader command, run “autoheader -h” or “autoheader – -help”.

Example set of autoheader command

1: Displaying the version

autoheader -V

or

autoheader - -version

2: Considering all the files are obsolete

autoheader -f

or

autoheader - -force

3: Reporting the warnings falling in category

autoheader -w category

or

autoheader - -warnings category