This PR fixes a build error: "fatal error: gsl/gsl_randist.h: No such file or directory".
The error occurs when the libgsl library is not installed on the system.
The patch adds a check to solve this problem. The check ensures that the gsl header files are included only when the libgsl library is installed and detected on the system. The detection is done by the AC_CHECK_LIB in configure.ac.
The patched version has been tested to build and run successfully: regardless of whether the library is missing and whether the --approx-threshold option is used, the program builds and runs successfully.
This PR fixes a build error: "fatal error: gsl/gsl_randist.h: No such file or directory".
The error occurs when the libgsl library is not installed on the system.
The patch adds a check to solve this problem. The check ensures that the gsl header files are included only when the libgsl library is installed and detected on the system. The detection is done by the AC_CHECK_LIB in configure.ac.
The patched version has been tested to build and run successfully: regardless of whether the library is missing and whether the --approx-threshold option is used, the program builds and runs successfully.