+# check for gsm
+
+# Check whether --with-gsm was given.
+if test "${with_gsm+set}" = set; then
+ withval=$with_gsm;
+else
+ with_gsm="check"
+fi
+
+
+if test "x$with_gsm" != xno; then
+ { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
+$as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
+if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ test "$cross_compiling" = yes &&
+ { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
+$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
+ { (exit 1); exit 1; }; }
+if test -r "openbsc/include/openbsc/gsm_data.h"; then
+ ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
+else
+ ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
+$as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
+if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
+ with_gsm="yes"
+else
+ if test "x$with_gsm" != xcheck ; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ .
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ .
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+ fi
+
+fi
+
+
+fi
+
+
+
+
+if test "x$with_gsm" == "xyes" ; then
+ ENABLE_GSM_TRUE=
+ ENABLE_GSM_FALSE='#'
+else
+ ENABLE_GSM_TRUE='#'
+ ENABLE_GSM_FALSE=
+fi
+
+
+# check for ss5
+
+# Check whether --with-ss5 was given.
+if test "${with_ss5+set}" = set; then
+ withval=$with_ss5;
+else
+ with_ss5="check"
+fi
+
+
+
+
+if test "x$with_ss5" == "xyes" ; then
+ ENABLE_SS5_TRUE=
+ ENABLE_SS5_FALSE='#'
+else
+ ENABLE_SS5_TRUE='#'
+ ENABLE_SS5_FALSE=
+fi
+
+