332 if test "x$with_sys_root" != x; then 333 SYS_ROOT=$with_sys_root 334 else 335 SYS_ROOT=/ 336 fi 337 AC_SUBST(SYS_ROOT) 338 339 AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir], 340 [search this directory for compilers and tools (for cross-compiling)])], [TOOLS_DIR=$with_tools_dir]) 341 342 AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit], 343 [use this directory as base for tools-dir and sys-root (for cross-compiling)])], 344 [ 345 if test "x$with_sys_root" != x; then 346 AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time]) 347 fi 348 if test "x$with_tools_dir" != x; then 349 AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time]) 350 fi 351 TOOLS_DIR=$with_devkit/bin 352 SYS_ROOT=$with_devkit/$host_alias/libc 353 ]) 354 355 ]) 356 357 AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR], 358 [ 359 360 AC_ARG_WITH(conf-name, [AS_HELP_STRING([--with-conf-name], 361 [use this as the name of the configuration @<:@generated from important configuration options@:>@])], 362 [ CONF_NAME=${with_conf_name} ]) 363 364 # Test from where we are running configure, in or outside of src root. 365 # To enable comparison of directories, CURDIR needs to be symlink free 366 # just like SRC_ROOT already is 367 NOSYM_CURDIR="$CURDIR" 368 BASIC_REMOVE_SYMBOLIC_LINKS(NOSYM_CURDIR) 369 if test "x$NOSYM_CURDIR" = "x$SRC_ROOT" || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common" \ 370 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/autoconf" \ 371 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/makefiles" ; then 372 # We are running configure from the src root. | 332 if test "x$with_sys_root" != x; then 333 SYS_ROOT=$with_sys_root 334 else 335 SYS_ROOT=/ 336 fi 337 AC_SUBST(SYS_ROOT) 338 339 AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir], 340 [search this directory for compilers and tools (for cross-compiling)])], [TOOLS_DIR=$with_tools_dir]) 341 342 AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit], 343 [use this directory as base for tools-dir and sys-root (for cross-compiling)])], 344 [ 345 if test "x$with_sys_root" != x; then 346 AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time]) 347 fi 348 if test "x$with_tools_dir" != x; then 349 AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time]) 350 fi 351 TOOLS_DIR=$with_devkit/bin 352 if test -d "$with_devkit/$host_alias/libc"; then 353 SYS_ROOT=$with_devkit/$host_alias/libc 354 elif test -d "$with_devkit/$host/sys-root"; then 355 SYS_ROOT=$with_devkit/$host/sys-root 356 fi 357 ]) 358 359 ]) 360 361 AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR], 362 [ 363 364 AC_ARG_WITH(conf-name, [AS_HELP_STRING([--with-conf-name], 365 [use this as the name of the configuration @<:@generated from important configuration options@:>@])], 366 [ CONF_NAME=${with_conf_name} ]) 367 368 # Test from where we are running configure, in or outside of src root. 369 # To enable comparison of directories, CURDIR needs to be symlink free 370 # just like SRC_ROOT already is 371 NOSYM_CURDIR="$CURDIR" 372 BASIC_REMOVE_SYMBOLIC_LINKS(NOSYM_CURDIR) 373 if test "x$NOSYM_CURDIR" = "x$SRC_ROOT" || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common" \ 374 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/autoconf" \ 375 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/makefiles" ; then 376 # We are running configure from the src root. |