There were a few problems with the old code: * the error messages were not written to stderr * 'exit' takes an unsigned integer, so 'exit -1' is not correct * that's not the autoconf way to report an error --- configure.ac | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/configure.ac b/configure.ac index 9d5cdda..4b1b806 100644 --- a/configure.ac +++ b/configure.ac @@ -215,28 +215,22 @@ CC="$PTHREAD_CC" #Checks for libraries. AC_SEARCH_LIBS([dlopen],[dl],[],[ - echo "Error: libdl is required for building this project" - exit -1; + AC_MSG_ERROR([libdl is required for building this project]) ]) AC_SEARCH_LIBS([SQLWriteDSNToIni],[odbcinst iodbcinst],[],[ - echo "Error: ODBC is required for building this project" - exit -1; + AC_MSG_ERROR([ODBC is required for building this project]) ]) AC_SEARCH_LIBS([SQLConnect],[odbc iodbc],[], [ - echo "Error: ODBC is required for building this project" - exit -1; + AC_MSG_ERROR([ODBC is required for building this project]) ]) AC_SEARCH_LIBS([cryptInit], [cl],[],[ - echo "Error: cryptlib is required for building this project" - exit -1; + AC_MSG_ERROR([cryptlib is required for building this project]) ]) AC_SEARCH_LIBS([X509_VERIFY_PARAM_free], [crypto],[],[ - echo "Error: OpenSSL is required for building this project" - exit -1; + AC_MSG_ERROR([OpenSSL is required for building this project]) ]) AC_SEARCH_LIBS([v3_addr_validate_path], [crypto],[],[ - echo "Error: OpenSSL with RFC 3779 is required for building this project" - exit -1; + AC_MSG_ERROR([OpenSSL with RFC 3779 is required for building this project]) ]) # Checks for header files. -- 2.4.5 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ rpstir-devel mailing list rpstir-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpstir-devel