summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-09-11 03:08:36 +0200
committerCedric BAIL <cedric@osg.samsung.com>2017-09-12 17:03:23 -0700
commitda7876a9b80f6fb96f642612d115345254a617d9 (patch)
tree9f597d1db94da76a1d3d57788437bd7dc93bca95 /configure.ac
parent95dd799715e6ba7574dbc1fc1c244b91bf3a4927 (diff)
eina: compilation fixed on OpenIndiana
socket library must be passed as connect() is used in eina_db Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac47
1 files changed, 25 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac
index 9bdf7c3..2d4e048 100644
--- a/configure.ac
+++ b/configure.ac
@@ -957,9 +957,32 @@ AC_DEFINE_UNQUOTED([EVAS_DICTS_HYPHEN_DIR],["$evas_dicts_hyphen_dir"], [Hunspell
957### Checks for programs 957### Checks for programs
958 958
959### Checks for libraries 959### Checks for libraries
960
961# sockets
962
963case "$host_os" in
964 mingw*)
965 have_socket="no"
966 ;;
967 *solaris*)
968 AC_CHECK_LIB([socket], [connect],
969 [
970 have_socket="yes"
971 requirement_socket="-lsocket"
972 ],
973 [have_socket="no"])
974 ;;
975 darwin*)
976 have_socket="yes"
977 ;;
978 *)
979 have_socket="yes"
980 ;;
981esac
982
960EFL_PLATFORM_DEPEND([EINA], [all]) 983EFL_PLATFORM_DEPEND([EINA], [all])
961 984
962EFL_ADD_LIBS([EINA], [-lm]) 985EFL_ADD_LIBS([EINA], [${requirement_socket} -lm])
963 986
964## Options 987## Options
965 988
@@ -5409,27 +5432,7 @@ esac
5409 5432
5410### Checks for linker characteristics 5433### Checks for linker characteristics
5411 5434
5412# sockets 5435requirements_libs_elm="${requirement_socket} ${requirements_libs_elm}"
5413
5414case "$host_os" in
5415 mingw*)
5416 have_socket="no"
5417 ;;
5418 *solaris*)
5419 AC_CHECK_LIB([socket], [connect],
5420 [
5421 have_socket="yes"
5422 requirements_libs_elm="-lsocket ${requirements_libs_elm}"
5423 ],
5424 [have_socket="no"])
5425 ;;
5426 darwin*)
5427 have_socket="yes"
5428 ;;
5429 *)
5430 have_socket="yes"
5431 ;;
5432esac
5433 5436
5434AC_SUBST([requirements_libs_elm]) 5437AC_SUBST([requirements_libs_elm])
5435 5438