Issue with asterisk 1.8 and ODBC under FreePBX 12

Hello everybody,
i’m facing this problem one week ago, when i tried to resolve CDR report prb, after many search, i understood that i should install cdr_odbc module,
first time when launched ./config and make menuselect , and went to :
Resource Modules > res_odbc, i find XXX so i can’t select it, and in Call Detail Recording , i find only XXX cdr_adaptive_odbc
second time when launched
make distclean
./configure
make menuselect
the menu didn’t display , and i got this error :
**** The configure script must be executed before running ‘make’.
**** Please run “./configure”.

make: *** [makeopts] Error 1
So plz i need really your help cuz i looked for solution in many forums but no way.
I need to resolve this problem and also resolve CDR report.
Thanks for your precious help;

You should install all the odbc related dependencies before trying to compile asterisk with odbc enabled. Check for a guide to see which are those dependencies.

Thanks for your reply,
Yes this what i did, but when i compliled the modules weren’t loaded.
And now, when i try to execute :
make menuselect

after launching ./config, i get make: *** [makeopts] Error 1