summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 09:02:28 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 15:31:12 -0400
commita0b54c0c43103cdfd383e7bf0743974e9d203ee7 (patch)
treec718f1c7e69807606fe724e31380f081ab6a4ebf /configure.ac
parent30c6aed053ad7898cbe96aac9d74e6d4a27d9cc1 (diff)
ecore-drm: Move Eeze above Ecore_Drm
Summary: Ecore_Drm is going to be using Eeze for udev functionality, so we need to check for Eeze deps before Ecore_Drm @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac234
1 files changed, 117 insertions, 117 deletions
diff --git a/configure.ac b/configure.ac
index ac8ae99..2059db0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2899,6 +2899,123 @@ EFL_LIB_END([Eldbus])
2899#### End of Eldbus 2899#### End of Eldbus
2900 2900
2901 2901
2902#### Eeze
2903have_libmount_new="no"
2904have_libmount_old="no"
2905have_eeze_mount="no"
2906
2907EFL_LIB_START_OPTIONAL([Eeze], [test "${have_linux}" = "yes"])
2908
2909### Additional options to configure
2910AC_ARG_WITH([mount],
2911 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
2912 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
2913AC_ARG_WITH([umount],
2914 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
2915 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
2916AC_ARG_WITH([eject],
2917 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
2918 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
2919
2920### Default values
2921
2922### Checks for programs
2923
2924### Checks for libraries
2925EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
2926EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
2927EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
2928EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
2929EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
2930EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
2931
2932EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
2933
2934AC_ARG_ENABLE([libmount],
2935 [AS_HELP_STRING([--disable-libmount],[disable libmount support. @<:@default=enabled@:>@])],
2936 [
2937 if test "x${enableval}" = "xyes" ; then
2938 want_libmount="yes"
2939 else
2940 want_libmount="no"
2941 CFOPT_WARNING="xyes"
2942 fi
2943 ],
2944 [want_libmount="yes"])
2945
2946EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
2947 [EEZE_MOUNT], [mount >= 2.18.0])
2948EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
2949
2950PKG_CHECK_EXISTS([mount < 2.19.0],
2951 [have_libmount_old="yes"],
2952 [have_libmount_old="no"])
2953AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
2954AC_MSG_RESULT([${have_libmount_old}])
2955
2956PKG_CHECK_EXISTS([mount == 2.19.0],
2957 [have_libmount_219="yes"],
2958 [have_libmount_219="no"])
2959AC_MSG_CHECKING([Use libmount 2.19.0 API])
2960AC_MSG_RESULT([${have_libmount_219}])
2961
2962PKG_CHECK_EXISTS([mount > 2.19.0],
2963 [have_libmount_new="yes"],
2964 [have_libmount_new="no"])
2965AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
2966AC_MSG_RESULT([${have_libmount_new}])
2967
2968if test "x${have_libmount_old}" = "xyes"; then
2969 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
2970fi
2971
2972## modules
2973if test "${want_tizen}" = "yes"; then
2974 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
2975fi
2976EFL_ADD_FEATURE([EEZE], [tizen])
2977
2978EFL_EVAL_PKGS([EEZE])
2979
2980### Checks for header files
2981
2982### Checks for types
2983
2984### Checks for structures
2985
2986### Checks for compiler characteristics
2987
2988### Checks for linker characteristics
2989
2990### Checks for library functions
2991
2992### Checks for binaries
2993if test "x$with_eeze_mount" = "xdetect"; then
2994 AC_PATH_PROG([with_eeze_mount], [mount], [])
2995fi
2996AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
2997
2998if test "x$with_eeze_umount" = "xdetect";then
2999 AC_PATH_PROG([with_eeze_umount], [umount], [])
3000fi
3001AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3002
3003if test "x$with_eeze_eject" = "xdetect";then
3004 AC_PATH_PROG([with_eeze_eject], [eject], [])
3005fi
3006AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3007
3008EFL_LIB_END_OPTIONAL([Eeze])
3009
3010AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3011 [test "x${have_libmount_new}" = "xyes"])
3012AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3013 [test "x${have_libmount_old}" = "xyes"])
3014AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3015AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3016#### End of Eeze
3017
3018
2902#### Ecore_Drm 3019#### Ecore_Drm
2903EFL_LIB_START_OPTIONAL([Ecore_Drm], [test "${want_drm}" = "yes"]) 3020EFL_LIB_START_OPTIONAL([Ecore_Drm], [test "${want_drm}" = "yes"])
2904 3021
@@ -3574,123 +3691,6 @@ EFL_LIB_END_OPTIONAL([Ecore_Imf_Evas])
3574#### End of Ecore_Imf_Evas 3691#### End of Ecore_Imf_Evas
3575 3692
3576 3693
3577#### Eeze
3578have_libmount_new="no"
3579have_libmount_old="no"
3580have_eeze_mount="no"
3581
3582EFL_LIB_START_OPTIONAL([Eeze], [test "${have_linux}" = "yes"])
3583
3584### Additional options to configure
3585AC_ARG_WITH([mount],
3586 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
3587 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
3588AC_ARG_WITH([umount],
3589 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
3590 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
3591AC_ARG_WITH([eject],
3592 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
3593 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
3594
3595### Default values
3596
3597### Checks for programs
3598
3599### Checks for libraries
3600EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
3601EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
3602EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
3603EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
3604EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3605EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3606
3607EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3608
3609AC_ARG_ENABLE([libmount],
3610 [AS_HELP_STRING([--disable-libmount],[disable libmount support. @<:@default=enabled@:>@])],
3611 [
3612 if test "x${enableval}" = "xyes" ; then
3613 want_libmount="yes"
3614 else
3615 want_libmount="no"
3616 CFOPT_WARNING="xyes"
3617 fi
3618 ],
3619 [want_libmount="yes"])
3620
3621EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3622 [EEZE_MOUNT], [mount >= 2.18.0])
3623EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3624
3625PKG_CHECK_EXISTS([mount < 2.19.0],
3626 [have_libmount_old="yes"],
3627 [have_libmount_old="no"])
3628AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3629AC_MSG_RESULT([${have_libmount_old}])
3630
3631PKG_CHECK_EXISTS([mount == 2.19.0],
3632 [have_libmount_219="yes"],
3633 [have_libmount_219="no"])
3634AC_MSG_CHECKING([Use libmount 2.19.0 API])
3635AC_MSG_RESULT([${have_libmount_219}])
3636
3637PKG_CHECK_EXISTS([mount > 2.19.0],
3638 [have_libmount_new="yes"],
3639 [have_libmount_new="no"])
3640AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
3641AC_MSG_RESULT([${have_libmount_new}])
3642
3643if test "x${have_libmount_old}" = "xyes"; then
3644 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3645fi
3646
3647## modules
3648if test "${want_tizen}" = "yes"; then
3649 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
3650fi
3651EFL_ADD_FEATURE([EEZE], [tizen])
3652
3653EFL_EVAL_PKGS([EEZE])
3654
3655### Checks for header files
3656
3657### Checks for types
3658
3659### Checks for structures
3660
3661### Checks for compiler characteristics
3662
3663### Checks for linker characteristics
3664
3665### Checks for library functions
3666
3667### Checks for binaries
3668if test "x$with_eeze_mount" = "xdetect"; then
3669 AC_PATH_PROG([with_eeze_mount], [mount], [])
3670fi
3671AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
3672
3673if test "x$with_eeze_umount" = "xdetect";then
3674 AC_PATH_PROG([with_eeze_umount], [umount], [])
3675fi
3676AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3677
3678if test "x$with_eeze_eject" = "xdetect";then
3679 AC_PATH_PROG([with_eeze_eject], [eject], [])
3680fi
3681AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3682
3683EFL_LIB_END_OPTIONAL([Eeze])
3684
3685AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3686 [test "x${have_libmount_new}" = "xyes"])
3687AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3688 [test "x${have_libmount_old}" = "xyes"])
3689AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3690AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3691#### End of Eeze
3692
3693
3694#### Ecore_Evas 3694#### Ecore_Evas
3695EFL_LIB_START_OPTIONAL([Ecore_Evas], [test "x${build_gui}" = "xyes"]) 3695EFL_LIB_START_OPTIONAL([Ecore_Evas], [test "x${build_gui}" = "xyes"])
3696 3696