< prev index next >

common/autoconf/basics.m4

Print this page




 667         AC_MSG_NOTICE([Current directory is $CURDIR.])
 668         AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here])
 669         AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).])
 670         AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could])
 671         AC_MSG_NOTICE([seriously mess up just about everything.])
 672         AC_MSG_NOTICE([Try 'cd $SRC_ROOT' and restart configure])
 673         AC_MSG_NOTICE([(or create a new empty directory and cd to it).])
 674         AC_MSG_ERROR([Will not continue creating configuration in $CURDIR])
 675       fi
 676     fi
 677   fi
 678   AC_MSG_CHECKING([what configuration name to use])
 679   AC_MSG_RESULT([$CONF_NAME])
 680 
 681   BASIC_FIXUP_PATH(OUTPUT_ROOT)
 682 
 683   AC_SUBST(SPEC, $OUTPUT_ROOT/spec.gmk)
 684   AC_SUBST(CONF_NAME, $CONF_NAME)
 685   AC_SUBST(OUTPUT_ROOT, $OUTPUT_ROOT)
 686 
 687   # Most of the probed defines are put into config.h
 688   AC_CONFIG_HEADERS([$OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in])
 689   # The spec.gmk file contains all variables for the make system.
 690   AC_CONFIG_FILES([$OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in])
 691   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
 692   AC_CONFIG_FILES([$OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in])
 693   # The bootcycle-spec.gmk file contains support for boot cycle builds.
 694   AC_CONFIG_FILES([$OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in])
 695   # The compare.sh is used to compare the build output to other builds.
 696   AC_CONFIG_FILES([$OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in])
 697   # Spec.sh is currently used by compare-objects.sh
 698   AC_CONFIG_FILES([$OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in])
 699   # The generated Makefile knows where the spec.gmk is and where the source is.
 700   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
 701   # which will look for generated configurations
 702   AC_CONFIG_FILES([$OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in])
 703 ])
 704 
 705 AC_DEFUN_ONCE([BASIC_SETUP_LOGGING],
 706 [
 707   # Setup default logging of stdout and stderr to build.log in the output root.
 708   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
 709   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
 710   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
 711   AC_SUBST(BUILD_LOG)
 712   AC_SUBST(BUILD_LOG_PREVIOUS)
 713   AC_SUBST(BUILD_LOG_WRAPPER)
 714 ])
 715 
 716 
 717 #%%% Simple tools %%%
 718 




 667         AC_MSG_NOTICE([Current directory is $CURDIR.])
 668         AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here])
 669         AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).])
 670         AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could])
 671         AC_MSG_NOTICE([seriously mess up just about everything.])
 672         AC_MSG_NOTICE([Try 'cd $SRC_ROOT' and restart configure])
 673         AC_MSG_NOTICE([(or create a new empty directory and cd to it).])
 674         AC_MSG_ERROR([Will not continue creating configuration in $CURDIR])
 675       fi
 676     fi
 677   fi
 678   AC_MSG_CHECKING([what configuration name to use])
 679   AC_MSG_RESULT([$CONF_NAME])
 680 
 681   BASIC_FIXUP_PATH(OUTPUT_ROOT)
 682 
 683   AC_SUBST(SPEC, $OUTPUT_ROOT/spec.gmk)
 684   AC_SUBST(CONF_NAME, $CONF_NAME)
 685   AC_SUBST(OUTPUT_ROOT, $OUTPUT_ROOT)
 686 


 687   # The spec.gmk file contains all variables for the make system.
 688   AC_CONFIG_FILES([$OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in])
 689   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
 690   AC_CONFIG_FILES([$OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in])
 691   # The bootcycle-spec.gmk file contains support for boot cycle builds.
 692   AC_CONFIG_FILES([$OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in])
 693   # The compare.sh is used to compare the build output to other builds.
 694   AC_CONFIG_FILES([$OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in])


 695   # The generated Makefile knows where the spec.gmk is and where the source is.
 696   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
 697   # which will look for generated configurations
 698   AC_CONFIG_FILES([$OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in])
 699 ])
 700 
 701 AC_DEFUN_ONCE([BASIC_SETUP_LOGGING],
 702 [
 703   # Setup default logging of stdout and stderr to build.log in the output root.
 704   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
 705   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
 706   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
 707   AC_SUBST(BUILD_LOG)
 708   AC_SUBST(BUILD_LOG_PREVIOUS)
 709   AC_SUBST(BUILD_LOG_WRAPPER)
 710 ])
 711 
 712 
 713 #%%% Simple tools %%%
 714 


< prev index next >