# Define the minimum version of Autoconf required AC_PREREQ([2.69]) # Adjust the version if necessary AC_INIT([MyProject], [1.0], [youremail@example.com]) # Project name, version, and contact info # Specify the source directory AC_CONFIG_SRCDIR([src/main.c]) # Point to a specific source file # Initialize Automake if you plan to use it AM_INIT_AUTOMAKE([-Wall -Werror]) # Enable warnings as errors # Check for the C compiler AC_PROG_CC # Detect the C compiler # Check for additional libraries or features if needed # Example: Check for the math library AC_CHECK_LIB([m], [main]) # This checks for the math library # Define the output files that will be generated AC_OUTPUT([Makefile]) # Generate a Makefile