| Index: simd/nasm_lt.sh
 | 
| diff --git a/simd/nasm_lt.sh b/simd/nasm_lt.sh
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..817be1612acb3378ba26b6c0919ced55bd261fef
 | 
| --- /dev/null
 | 
| +++ b/simd/nasm_lt.sh
 | 
| @@ -0,0 +1,60 @@
 | 
| +#! /bin/sh
 | 
| +command=""
 | 
| +infile=""
 | 
| +o_opt=no
 | 
| +pic=no
 | 
| +while [ $# -gt 0 ]; do
 | 
| +    case "$1" in
 | 
| +        --silent)
 | 
| +            exec > /dev/null
 | 
| +            ;;
 | 
| +        -DPIC|-fPIC|-fpic|-Kpic|-KPIC)
 | 
| +            if [ "$pic" != "yes" ] ; then
 | 
| +                command="$command -DPIC"
 | 
| +                pic=yes
 | 
| +            fi
 | 
| +            ;;
 | 
| +        -f|-fbin|-faout|-faoutb|-fcoff|-felf|-felf64|-fas86| \
 | 
| +        -fobj|-fwin32|-fwin64|-frdf|-fieee|-fmacho|-fmacho64)
 | 
| +            # it's a file format specifier for nasm.
 | 
| +            command="$command $1"
 | 
| +            ;;
 | 
| +        -f*)
 | 
| +            # maybe a code-generation flag for gcc.
 | 
| +            ;;
 | 
| +        -[Ii]*)
 | 
| +            incdir=`echo "$1" | sed 's/^-[Ii]//'`
 | 
| +            if [ "x$incdir" = x -a "x$2" != x ] ; then
 | 
| +                case "$2" in
 | 
| +                    -*) ;;
 | 
| +                    *) incdir="$2"; shift;;
 | 
| +                esac
 | 
| +            fi
 | 
| +            if [ "x$incdir" != x ] ; then
 | 
| +                # In the case of NASM, the trailing slash is necessary.
 | 
| +                incdir=`echo "$incdir" | sed 's%/*$%/%'`
 | 
| +                command="$command -I$incdir"
 | 
| +            fi
 | 
| +            ;;
 | 
| +        -o*)
 | 
| +            o_opt=yes
 | 
| +            command="$command $1"
 | 
| +            ;;
 | 
| +        *.asm)
 | 
| +            infile=$1
 | 
| +            command="$command $1"
 | 
| +            ;;
 | 
| +        *)
 | 
| +            command="$command $1"
 | 
| +            ;;
 | 
| +    esac
 | 
| +    shift
 | 
| +done
 | 
| +if [ "$o_opt" != yes ] ; then
 | 
| +    # By default, NASM creates an output file
 | 
| +    # in the same directory as the input file.
 | 
| +    outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o"
 | 
| +    command="$command $outfile"
 | 
| +fi
 | 
| +echo $command
 | 
| +exec $command
 | 
| 
 |