+fi # Cross-compiling with adb
+
+case "$usecrosscompile" in
+define)
+# The tests for this in Configure doesn't play nicely with
+# cross-compiling
+d_procselfexe="define"
+if $test "X$hostosname" = "Xdarwin"; then
+ firstmakefile=GNUmakefile;
+fi
+
+# When cross-compiling, full_csh and d_csh will get the
+# host's values, which is all sorts of wrong. So unless
+# full_csh has been set on the command line, set d_csh to
+# undef.
+case "$full_csh" in
+'') d_csh="$undef"
+;;
+esac
+
+;;
+*)
+ldflags="$ldflags -L/system/lib"
+;;
+esac
+
+osvers="`$run getprop ro.build.version.release`"
+
+# We want osname to be linux-android during Configure,
+# but plain 'android' afterwards.
+case "$src" in
+ /*) pwd="$src";;
+ *) pwd=`test -f ../Configure && cd ..; pwd`
+ ;;
+esac
+
+$cat <<'EOO' >> $pwd/config.arch
+
+osname='android'
+eval "libpth='$libpth /system/lib /vendor/lib'"
+
+if $test "X$procselfexe" = X; then
+ case "$d_procselfexe" in
+ define) procselfexe='"/proc/self/exe"';;
+ esac
+fi
+EOO
+
+# Android is a linux variant, so run those hints.
+. ./hints/linux.sh