common/autoconf/autogen.sh
changeset 13132 bd88bb8dd3af
parent 12801 948f8ad66ee7
child 13697 5262b00bc10c
equal deleted inserted replaced
13082:9b19b2302c28 13132:bd88bb8dd3af
    20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21 # or visit www.oracle.com if you need additional information or have any
    21 # or visit www.oracle.com if you need additional information or have any
    22 # questions.
    22 # questions.
    23 #
    23 #
    24 
    24 
    25 autoconf -W all configure.ac > configure
    25 script_dir=`dirname $0`
    26 rm -rf config.status config.log autom4te.cache
    26 closed_script_dir="$script_dir/../../jdk/make/closed/autoconf"
       
    27 
       
    28 # Create a timestamp as seconds since epoch
       
    29 TIMESTAMP=`date +%s`
       
    30 
       
    31 cat $script_dir/configure.ac  | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | autoconf -W all -I$script_dir - > $script_dir/generated-configure.sh
       
    32 rm -rf autom4te.cache
       
    33 
       
    34 if test -e $closed_script_dir/closed-hook.m4; then
       
    35   # We have closed sources available; also generate configure script
       
    36   # with closed hooks compiled in.
       
    37   cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | \
       
    38     sed -e "s|AC_DEFUN_ONCE(\[CLOSED_HOOK\])|m4_include([$closed_script_dir/closed-hook.m4])|" | autoconf -W all -I$script_dir - > $closed_script_dir/generated-configure.sh
       
    39   rm -rf autom4te.cache
       
    40 fi