Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new_ldflags=${LDFLAGS}
- new_libs=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_net_pton in -lresolv" >&5
- $as_echo_n "checking for inet_net_pton in -lresolv... " >&6; }
- if test "${ac_cv_lib_resolv_inet_net_pton+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char inet_net_pton ();
- int
- main ()
- {
- return inet_net_pton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_inet_net_pton=yes
- else
- ac_cv_lib_resolv_inet_net_pton=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_net_pton" >&5
- $as_echo "$ac_cv_lib_resolv_inet_net_pton" >&6; }
- if test "x$ac_cv_lib_resolv_inet_net_pton" = x""yes; then :
- new_libs="-lresolv"; ext_lib_found="yes"
- else
- ext_lib_found="no"
- fi
- for dir in /lib64 /lib /usr/lib64 /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
- do
- if test $ext_lib_found = no
- then
- ext_haslib_cvdir=`echo $dir | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv library with -L$dir" >&5
- $as_echo_n "checking for resolv library with -L$dir... " >&6; }
- if { as_var=ext_cv${ext_haslib_cvdir}_haslib_resolv; eval "test \"\${$as_var+set}\" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- ext_func_search_save_LIBS=$LIBS
- ext_func_save_ldflags=${LDFLAGS}
- LIBS="-lresolv ${ext_func_search_save_LIBS}"
- LDFLAGS="-L$dir ${ext_func_save_ldflags}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char inet_net_pton ();
- int
- main ()
- {
- return inet_net_pton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "ext_cv${ext_haslib_cvdir}_haslib_resolv"="yes"
- else
- eval "ext_cv${ext_haslib_cvdir}_haslib_resolv"="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ext_func_search_save_LIBS
- LDFLAGS=$ext_func_save_ldflags
- fi
- eval ac_res=\$ext_cv${ext_haslib_cvdir}_haslib_resolv
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval `echo 'test x${'ext_cv${ext_haslib_cvdir}_haslib_resolv'}' = "xyes"`; then
- new_libs="-lresolv ${new_libs}"
- new_ldflags="-L${dir} ${new_ldflags}"
- ext_lib_found="yes"
- fi
- fi
- done
- LIBS=$new_libs
- LDFLAGS=$new_ldflags
- $as_echo $LIBS
- new_ldflags=${LDFLAGS}
- new_libs=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
- $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
- if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpthread $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pthread_create ();
- int
- main ()
- {
- return pthread_create ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pthread_pthread_create=yes
- else
- ac_cv_lib_pthread_pthread_create=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
- $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
- if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
- new_libs="-lpthread"; ext_lib_found="yes"
- else
- ext_lib_found="no"
- fi
- for dir in /lib64 /lib /usr/lib64 /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
- do
- if test $ext_lib_found = no
- then
- ext_haslib_cvdir=`echo $dir | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread library with -L$dir" >&5
- $as_echo_n "checking for pthread library with -L$dir... " >&6; }
- if { as_var=ext_cv${ext_haslib_cvdir}_haslib_pthread; eval "test \"\${$as_var+set}\" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- ext_func_search_save_LIBS=$LIBS
- ext_func_save_ldflags=${LDFLAGS}
- LIBS="-lpthread ${ext_func_search_save_LIBS}"
- LDFLAGS="-L$dir ${ext_func_save_ldflags}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pthread_create ();
- int
- main ()
- {
- return pthread_create ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "ext_cv${ext_haslib_cvdir}_haslib_pthread"="yes"
- else
- eval "ext_cv${ext_haslib_cvdir}_haslib_pthread"="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ext_func_search_save_LIBS
- LDFLAGS=$ext_func_save_ldflags
- fi
- eval ac_res=\$ext_cv${ext_haslib_cvdir}_haslib_pthread
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval `echo 'test x${'ext_cv${ext_haslib_cvdir}_haslib_pthread'}' = "xyes"`; then
- new_libs="-lpthread ${new_libs}"
- new_ldflags="-L${dir} ${new_ldflags}"
- ext_lib_found="yes"
- fi
- fi
- done
- LIBS=$new_libs
- LDFLAGS=$new_ldflags
- $as_echo $LIBS
- # SSL support
- # Check whether --with-ssl was given.
- if test "${with_ssl+set}" = set; then :
- withval=$with_ssl;
- else
- with_ssl=check
- fi
- if test "x$with_ssl" != xno; then :
- $as_echo new_libs:
- $as_echo $new_libs
- new_ldflags=${LDFLAGS}
- new_libs=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
- $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
- if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- $as_echo "cuando no esta definida ssl: $LIBS"
- LIBS="-lssl $LIBS"
- $as_echo "cuando no esta definida ssl: $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SSL_library_init ();
- int
- main ()
- {
- return SSL_library_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ssl_SSL_library_init=yes
- else
- ac_cv_lib_ssl_SSL_library_init=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- $as_echo "despues de ver ac_fn_c_try_link $LIBS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
- $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
- if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
- new_libs="-lssl"; ext_lib_found="yes"
- else
- ext_lib_found="no"
- fi
- for dir in /lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /usr/local/lib64/ssl /usr/lib/ssl
- do
- if test $ext_lib_found = no
- then
- ext_haslib_cvdir=`echo $dir | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl library with -L$dir" >&5
- $as_echo_n "checking for ssl library with -L$dir... " >&6; }
- if { as_var=ext_cv${ext_haslib_cvdir}_haslib_ssl; eval "test \"\${$as_var+set}\" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- ext_func_search_save_LIBS=$LIBS
- ext_func_save_ldflags=${LDFLAGS}
- LIBS="-lssl ${ext_func_search_save_LIBS}"
- $as_echo "al buscar por los dirs"
- LDFLAGS="-L$dir ${ext_func_save_ldflags}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SSL_library_init ();
- int
- main ()
- {
- return SSL_library_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "ext_cv${ext_haslib_cvdir}_haslib_ssl"="yes"
- else
- eval "ext_cv${ext_haslib_cvdir}_haslib_ssl"="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ext_func_search_save_LIBS
- $as_echo "$LIBS luego de ac_fn_c_try_link PULPO"
- LDFLAGS=$ext_func_save_ldflags
- fi
- eval ac_res=\$ext_cv${ext_haslib_cvdir}_haslib_ssl
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval `echo 'test x${'ext_cv${ext_haslib_cvdir}_haslib_ssl'}' = "xyes"`; then
- new_libs="-lssl ${new_libs}"
- new_ldflags="-L${dir} ${new_ldflags}"
- ext_lib_found="yes"
- fi
- fi
- done
- LIBS=$new_libs
- $as_echo "ultimo test $LIBS"
- LDFLAGS=$new_ldflags
- else
- if test "x$with_ssl" != xcheck -a "x$ext_lib_found" = xno
- then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error "ssl test failed (--without-ssl to disable)
- See \`config.log' for more details." "$LINENO" 5; }
- fi
- fi
- if test x"$ext_lib_found" = xyes
- then found_ssl=yes
- fi
- # SQL support
- # Check whether --with-mysql was given.
- if test "${with_mysql+set}" = set; then :
- withval=$with_mysql;
- else
- with_mysql=check
- fi
- if test "x$with_mysql" != xno; then :
- new_ldflags=${LDFLAGS}
- new_libs=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -lmysqlclient" >&5
- $as_echo_n "checking for mysql_close in -lmysqlclient... " >&6; }
- if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lmysqlclient $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_close ();
- int
- main ()
- {
- return mysql_close ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_mysqlclient_mysql_close=yes
- else
- ac_cv_lib_mysqlclient_mysql_close=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
- $as_echo "$ac_cv_lib_mysqlclient_mysql_close" >&6; }
- if test "x$ac_cv_lib_mysqlclient_mysql_close" = x""yes; then :
- new_libs="-lmysqlclient"; ext_lib_found="yes"
- else
- ext_lib_found="no"
- fi
- for dir in /lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /usr/local/lib64/mysql /usr/lib/mysql
- do
- if test $ext_lib_found = no
- then
- ext_haslib_cvdir=`echo $dir | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysqlclient library with -L$dir" >&5
- $as_echo_n "checking for mysqlclient library with -L$dir... " >&6; }
- if { as_var=ext_cv${ext_haslib_cvdir}_haslib_mysqlclient; eval "test \"\${$as_var+set}\" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- ext_func_search_save_LIBS=$LIBS
- ext_func_save_ldflags=${LDFLAGS}
- LIBS="-lmysqlclient ${ext_func_search_save_LIBS}"
- LDFLAGS="-L$dir ${ext_func_save_ldflags}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_close ();
- int
- main ()
- {
- return mysql_close ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "ext_cv${ext_haslib_cvdir}_haslib_mysqlclient"="yes"
- else
- eval "ext_cv${ext_haslib_cvdir}_haslib_mysqlclient"="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ext_func_search_save_LIBS
- LDFLAGS=$ext_func_save_ldflags
- fi
- eval ac_res=\$ext_cv${ext_haslib_cvdir}_haslib_mysqlclient
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval `echo 'test x${'ext_cv${ext_haslib_cvdir}_haslib_mysqlclient'}' = "xyes"`; then
- new_libs="-lmysqlclient ${new_libs}"
- new_ldflags="-L${dir} ${new_ldflags}"
- ext_lib_found="yes"
- fi
- fi
- done
- LIBS=$new_libs
- LDFLAGS=$new_ldflags
- else
- if test "x$with_mysql" != xcheck -a "x$ext_lib_found" = xno
- then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error "mysql test failed (--without-mysql to disable)
- See \`config.log' for more details." "$LINENO" 5; }
- fi
- fi
- if test x"$ext_lib_found" = xyes
- then found_mysql=yes
- fi
- #PQ
- # Check whether --with-postgresql was given.
- if test "${with_postgresql+set}" = set; then :
- withval=$with_postgresql;
- else
- with_postgresql=check
- fi
- if test "x$with_postgresql" != xno; then :
- new_ldflags=${LDFLAGS}
- new_libs=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfinish in -lpq" >&5
- $as_echo_n "checking for PQfinish in -lpq... " >&6; }
- if test "${ac_cv_lib_pq_PQfinish+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQfinish ();
- int
- main ()
- {
- return PQfinish ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQfinish=yes
- else
- ac_cv_lib_pq_PQfinish=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfinish" >&5
- $as_echo "$ac_cv_lib_pq_PQfinish" >&6; }
- if test "x$ac_cv_lib_pq_PQfinish" = x""yes; then :
- new_libs="-lpq"; ext_lib_found="yes"
- else
- ext_lib_found="no"
- fi
- for dir in /lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /usr/local/lib64/postgresql /usr/lib/postgresql
- do
- if test $ext_lib_found = no
- then
- ext_haslib_cvdir=`echo $dir | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pq library with -L$dir" >&5
- $as_echo_n "checking for pq library with -L$dir... " >&6; }
- if { as_var=ext_cv${ext_haslib_cvdir}_haslib_pq; eval "test \"\${$as_var+set}\" = set"; }; then :
- $as_echo_n "(cached) " >&6
- else
- ext_func_search_save_LIBS=$LIBS
- ext_func_save_ldflags=${LDFLAGS}
- LIBS="-lpq ${ext_func_search_save_LIBS}"
- LDFLAGS="-L$dir ${ext_func_save_ldflags}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQfinish ();
- int
- main ()
- {
- return PQfinish ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "ext_cv${ext_haslib_cvdir}_haslib_pq"="yes"
- else
- eval "ext_cv${ext_haslib_cvdir}_haslib_pq"="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ext_func_search_save_LIBS
- LDFLAGS=$ext_func_save_ldflags
- fi
- eval ac_res=\$ext_cv${ext_haslib_cvdir}_haslib_pq
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval `echo 'test x${'ext_cv${ext_haslib_cvdir}_haslib_pq'}' = "xyes"`; then
- new_libs="-lpq ${new_libs}"
- new_ldflags="-L${dir} ${new_ldflags}"
- ext_lib_found="yes"
- fi
- fi
- done
- LIBS=$new_libs
- LDFLAGS=$new_ldflags
- else
- if test "x$with_postgresql" != xcheck -a "x$ext_lib_found" = xno
- then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error "postgresql test failed (--without-postgresql to disable)
- See \`config.log' for more details." "$LINENO" 5; }
- fi
- fi
- if test x"$ext_lib_found" = xyes
- then found_postgresql=yes
- fi
Advertisement
Add Comment
Please, Sign In to add comment