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 and writes the header file to standard output.

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


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


autoheader - -version

2: Considering all the files are obsolete

autoheader -f


autoheader - -force

3: Reporting the warnings falling in category

autoheader -w category


autoheader - -warnings category