root@denixleen libjpeg]# CC=mips-linux-gcc ./configure --enable-static --enable-shared
checking for gcc... mips-linux-gcc
checking whether the C compiler (mips-linux-gcc ) works... yes
checking whether the C compiler (mips-linux-gcc ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking how to run the C preprocessor... mips-linux-gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... Assuming that char is signed on target machine.
If it is unsigned, this will be a little bit inefficient.
checking to see if right shift is signed... Assuming that right shift is signed on target machine.
checking to see if fopen accepts b spec... Assuming that it does.
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking host system type... ./config.guess: line 618: ./dummy: cannot execute binary file
./config.guess: line 848: ./dummy: cannot execute binary file
ltconfig: cannot guess host type; you must specify one
Try `ltconfig --help' for more information.
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged
and i do it: ./config.guess
get the result: i686-pc-linux-gnu
then i make it: CC=mips-linux-gcc ./configure --host=i686-pc-linux-gnu --enable-static --enable-shared
still get errors like this:
checking for gcc... mips-linux-gcc
checking whether the C compiler (mips-linux-gcc ) works... yes
checking whether the C compiler (mips-linux-gcc ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking how to run the C preprocessor... mips-linux-gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... Assuming that char is signed on target machine.
If it is unsigned, this will be a little bit inefficient.
checking to see if right shift is signed... Assuming that right shift is signed on target machine.
checking to see if fopen accepts b spec... Assuming that it does.
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking host system type... ./config.guess: line 618: ./dummy: cannot execute binary file
./config.guess: line 848: ./dummy: cannot execute binary file
ltconfig: cannot guess host type; you must specify one
Try `ltconfig --help' for more information.
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged