summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-12-12 10:27:01 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-12-12 11:05:13 +0900
commitb1dde593cc29ccf499e2adfeb2e00a1149361fba (patch)
treea4c7fca6c0959be51433710a6686c966bf956806 /configure.ac
parent6991785df9e36d9b59ad04247a89113703a1ab02 (diff)
autotools: detect systemd to warn user they are required to use --enable-systemd to turn it on.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac39
1 files changed, 30 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index adb1225..c03a331 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,7 +188,7 @@ EFL_VERSION_MINOR="v_min"
188AC_SUBST(EFL_VERSION_MAJOR) 188AC_SUBST(EFL_VERSION_MAJOR)
189AC_SUBST(EFL_VERSION_MINOR) 189AC_SUBST(EFL_VERSION_MINOR)
190 190
191want_systemd="no" 191have_systemd_pkg="no"
192have_wince="no" 192have_wince="no"
193have_win32="no" 193have_win32="no"
194have_windows="no" 194have_windows="no"
@@ -211,7 +211,7 @@ case "$host_os" in
211 ;; 211 ;;
212 linux*) 212 linux*)
213 have_linux="yes" 213 have_linux="yes"
214 want_systemd="auto" 214 have_systemd_pkg="auto"
215 ;; 215 ;;
216esac 216esac
217 217
@@ -568,13 +568,19 @@ AC_ARG_ENABLE([systemd],
568 else 568 else
569 want_systemd="no" 569 want_systemd="no"
570 fi 570 fi
571 ], [
572 want_systemd="no"
571 ]) 573 ])
572 574
573# check for systemd library if requested 575if test "x${have_systemd_pkg}" = "xauto" -o "x${have_systemd_pkg}" = "xyes"; then
574if test "x${want_systemd}" = "xyes" -o "x${want_systemd}" = "xauto"; then
575 PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon >= 192 libsystemd-journal >= 192], 576 PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon >= 192 libsystemd-journal >= 192],
576 [want_systemd="yes"], 577 [have_systemd_pkg="yes"],
577 [want_systemd="no"]) 578 [have_systemd_pkg="no"])
579fi
580
581# check for systemd library if requested
582if test "x${want_systemd}" = "xyes" -a "x${have_systemd_pkg}" = "xno"; then
583 AC_MSG_ERROR([Systemd dependencie requested but not found])
578fi 584fi
579 585
580AM_CONDITIONAL([WANT_SYSTEMD], [test "${want_systemd}" = "yes"]) 586AM_CONDITIONAL([WANT_SYSTEMD], [test "${want_systemd}" = "yes"])
@@ -854,7 +860,7 @@ EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
854EINA_CHECK_MODULE([pass-through], [static], [pass through]) 860EINA_CHECK_MODULE([pass-through], [static], [pass through])
855EINA_CHECK_MODULE([one-big], [static], [one big]) 861EINA_CHECK_MODULE([one-big], [static], [one big])
856 862
857EFL_ADD_FEATURE([EINA], [systemd-journal], [${have_systemd}]) 863EFL_ADD_FEATURE([EINA], [systemd-journal], [${want_systemd}])
858 864
859EFL_LIB_END([Eina]) 865EFL_LIB_END([Eina])
860#### End of Eina 866#### End of Eina
@@ -1861,7 +1867,7 @@ fi
1861 1867
1862EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_systemd}], [SYSTEMD], [libsystemd-daemon]) 1868EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_systemd}], [SYSTEMD], [libsystemd-daemon])
1863 1869
1864EFL_ADD_FEATURE([ECORE], [systemd-daemon], [${have_systemd}]) 1870EFL_ADD_FEATURE([ECORE], [systemd-daemon], [${want_systemd}])
1865EFL_ADD_FEATURE([ECORE], [glib]) 1871EFL_ADD_FEATURE([ECORE], [glib])
1866EFL_ADD_FEATURE([ECORE], [g-main-loop]) 1872EFL_ADD_FEATURE([ECORE], [g-main-loop])
1867 1873
@@ -2064,7 +2070,7 @@ EFL_ADD_FEATURE([ECORE_CON], [cares])
2064EFL_ADD_FEATURE([ECORE_CON], [local-sockets], [${want_ecore_con_local_sockets}]) 2070EFL_ADD_FEATURE([ECORE_CON], [local-sockets], [${want_ecore_con_local_sockets}])
2065EFL_ADD_FEATURE([ECORE_CON], [abstract-sockets], [${want_ecore_con_abstract_sockets}]) 2071EFL_ADD_FEATURE([ECORE_CON], [abstract-sockets], [${want_ecore_con_abstract_sockets}])
2066EFL_ADD_FEATURE([ECORE_CON], [resolver], [${ecore_con_resolver}]) 2072EFL_ADD_FEATURE([ECORE_CON], [resolver], [${ecore_con_resolver}])
2067EFL_ADD_FEATURE([ECORE_CON], [systemd-daemon], [${have_systemd}]) 2073EFL_ADD_FEATURE([ECORE_CON], [systemd-daemon], [${want_systemd}])
2068 2074
2069EFL_EVAL_PKGS([ECORE_CON]) 2075EFL_EVAL_PKGS([ECORE_CON])
2070 2076
@@ -3939,3 +3945,18 @@ echo " LDFLAGS.......: $LDFLAGS"
3939echo "Installation....: make install (as root if needed, with 'su' or 'sudo')" 3945echo "Installation....: make install (as root if needed, with 'su' or 'sudo')"
3940echo " prefix........: $prefix" 3946echo " prefix........: $prefix"
3941echo 3947echo
3948
3949if test "x${have_systemd_pkg}" = "xyes" -a "x${want_systemd}" = "xno"; then
3950 echo " _________________________________________"
3951 echo "/ Systemd dependency is available on your \\"
3952 echo "| system, but you are building without |"
3953 echo "| systemd support. Don't forget to |"
3954 echo "| --enable-systemd if you want systemd |"
3955 echo "\\ integration for EFL. /"
3956 echo " -----------------------------------------"
3957 echo " \\ ^__^"
3958 echo " \\ (oo)\\_______"
3959 echo " (__)\\ )\\/\\"
3960 echo " ||----w |"
3961 echo " || ||"
3962fi