I have assumed that you have ACE_wrapper which is available through get_packages in ~/SonATA/packages/ACE_wrappers
There are many files which are saved in windows format which cause the errors related to ^M.
Therefore, you will need to convert some files format. Use dos2unix. Install it
sudo zypper install dos2unix
sudo yum install dos2unix
sudo apt-get install dos2unix
And then start converting the files:
You will have to manually convert the ./configure file and ./bin/bootstarp file as dos2unix will skip them. Open it with vi ( you can change these files using gui editor like gedit also) and then
Now remove some old files which might cause linker errors ( as the new files that will be genrated will have slight different names):
Now start building it.
../configure --disable-gperf --enable-ssl=no --prefix=$HOME/SonATA/packages/ACE_wrappers
cp lib/* ace/
Don't use the latest version of ace_wrapper as it is incompatible.