Version 2 (modified by C Rempel, on Jan 30, 2013 at 10:35:34 AM) (diff)

When cross-compiling, it's sometimes helpful to store the settings in a shell script, such as For example: you may want to tell configure that RTEMS has a int32_t available to it, but the configure script can't find the int32_t, then can be used to tell configure there is an int32_t.

For RTEMS, a place that would make sense for might be: /opt/rtems-4.11/share/

# /opt/rtems-4.11/share/ for configure

# # Change some defaults. test "$prefix" = NONE && prefix=/opt/rtems-4.11/ test "$exec_prefix" = NONE && exec_prefix=/opt/rtems-4.11/ test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var test "$localstatedir" = '${prefix}/var' && localstatedir=/var

# Give Autoconf 2.x generated configure scripts a shared default # cache file for feature test results, architecture-specific. if test "$cache_file" = /dev/null; then

cache_file="$prefix/var/config.cache" # A cache file is only valid for one C compiler. CC=gcc


To get a configure script to read input on the command line: $ CONFIG_SITE=/opt/rtems-4.11/share/ References =