acinclude.m4
changeset 723 1e8865a3e127
parent 1 cf2af46e9e2a
child 729 dac996d69abb
equal deleted inserted replaced
722:90dfd3f5782c 723:1e8865a3e127
     2 
     2 
     3 dnl Function to link an architecture specific file
     3 dnl Function to link an architecture specific file
     4 dnl LINK_ARCH_SRC(source_dir, arch, source_file)
     4 dnl LINK_ARCH_SRC(source_dir, arch, source_file)
     5 AC_DEFUN(COPY_ARCH_SRC,
     5 AC_DEFUN(COPY_ARCH_SRC,
     6 [
     6 [
     7   echo "Copying $1/$2/$3 -> $1/$3"
       
     8   old="$srcdir/$1/$2/$3"
     7   old="$srcdir/$1/$2/$3"
     9   new="$srcdir/$1/$3"
     8   new="$1/$3"
       
     9   if test ! -d $1; then
       
    10     echo "Creating directory $1"
       
    11     mkdir -p $1
       
    12   fi
       
    13   echo "Copying $old -> $new"
    10   cat >$new <<__EOF__
    14   cat >$new <<__EOF__
    11 /* WARNING:  This file was automatically generated!
    15 /* WARNING:  This file was automatically generated!
    12  * Original: $old
    16  * Original: $old
    13  */
    17  */
    14 __EOF__
    18 __EOF__