+if [ "x${gcc_lib}" == "x" ]; then
+ if [ "x${gcc_version}" == "x" ]; then
+ # The default (with mingw3)
+ export gcc_lib=$mingw_top/lib/gcc-lib/mingw32/3.2.3
+ else
+ export gcc_lib=$mingw_top/lib/gcc-lib/mingw32/${gcc_version}
+ fi
+fi
+if [ "x${gcc_libexec}" == "x" ]; then
+ if [ "x${gcc_version}" == "x" ]; then
+ # The default (with mingw3)
+ export gcc_libexec=$mingw_top/lib/gcc-lib/mingw32/3.2.3
+ else
+ if [ -d $mingw_top/lib/gcc-lib/mingw32/${gcc_version} ]; then
+ export gcc_libexec=$mingw_top/lib/gcc-lib/mingw32/${gcc_version}
+ elif [ -d $mingw_top/libexec/gcc/mingw32/${gcc_version} ]; then
+ export gcc_libexec=$mingw_top/libexec/gcc/mingw32/${gcc_version}
+ else
+ echo "WARNING: Unable to determine location of your gcc 'libexec' directory"
+ export gcc_libexec=$mingw_top/lib/gcc-lib/mingw32/${gcc_version}
+ fi
+ fi
+fi
+
+#Directory where a (cygwin-free) perl binary resides.
+if [ "x${perl_dir}" == "x" ]; then
+ export perl_dir=$old_ghc_top
+fi