~yolanda.robla/ubuntu/saucy/freeradius/dep-8-tests

« back to all changes in this revision

Viewing changes to src/modules/rlm_sql/drivers/rlm_sql_mysql/configure

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20091123035737-snauioz5r9tf8sdr
Tags: upstream-2.1.7+dfsg
ImportĀ upstreamĀ versionĀ 2.1.7+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
3447
3447
        mysql_cflags="$(mysql_config --cflags)"
3448
3448
        old_CFLAGS="$CFLAGS"
3449
3449
        CFLAGS="$CFLAGS $mysql_cflags"
3450
 
        { echo "$as_me:$LINENO: checking for mysql.h (using mysql_config)" >&5
3451
 
echo $ECHO_N "checking for mysql.h (using mysql_config)... $ECHO_C" >&6; }
 
3450
        { echo "$as_me:$LINENO: checking for mysql.h (using mysql_config --cflags)" >&5
 
3451
echo $ECHO_N "checking for mysql.h (using mysql_config --cflags)... $ECHO_C" >&6; }
3452
3452
        cat >conftest.$ac_ext <<_ACEOF
3453
3453
/* confdefs.h.  */
3454
3454
_ACEOF
3502
3502
        else
3503
3503
            { echo "$as_me:$LINENO: result: no" >&5
3504
3504
echo "${ECHO_T}no" >&6; }
3505
 
        fi
 
3505
 
 
3506
            mysql_cflags="$(mysql_config --include)"
 
3507
            CFLAGS="$old_CFLAGS $mysql_cflags"
 
3508
            { echo "$as_me:$LINENO: checking for mysql.h (using mysql_config --include)" >&5
 
3509
echo $ECHO_N "checking for mysql.h (using mysql_config --include)... $ECHO_C" >&6; }
 
3510
            cat >conftest.$ac_ext <<_ACEOF
 
3511
/* confdefs.h.  */
 
3512
_ACEOF
 
3513
cat confdefs.h >>conftest.$ac_ext
 
3514
cat >>conftest.$ac_ext <<_ACEOF
 
3515
/* end confdefs.h.  */
 
3516
#include <mysql.h>
 
3517
int
 
3518
main ()
 
3519
{
 
3520
int a = 1;
 
3521
  ;
 
3522
  return 0;
 
3523
}
 
3524
_ACEOF
 
3525
rm -f conftest.$ac_objext
 
3526
if { (ac_try="$ac_compile"
 
3527
case "(($ac_try" in
 
3528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3529
  *) ac_try_echo=$ac_try;;
 
3530
esac
 
3531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3532
  (eval "$ac_compile") 2>conftest.er1
 
3533
  ac_status=$?
 
3534
  grep -v '^ *+' conftest.er1 >conftest.err
 
3535
  rm -f conftest.er1
 
3536
  cat conftest.err >&5
 
3537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3538
  (exit $ac_status); } && {
 
3539
         test -z "$ac_c_werror_flag" ||
 
3540
         test ! -s conftest.err
 
3541
       } && test -s conftest.$ac_objext; then
 
3542
  have_mysql_h=yes
 
3543
else
 
3544
  echo "$as_me: failed program was:" >&5
 
3545
sed 's/^/| /' conftest.$ac_ext >&5
 
3546
 
 
3547
 
 
3548
fi
 
3549
 
 
3550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3551
            if test "x$have_mysql_h" = "xyes"; then
 
3552
                { echo "$as_me:$LINENO: result: yes" >&5
 
3553
echo "${ECHO_T}yes" >&6; }
 
3554
 
 
3555
cat >>confdefs.h <<\_ACEOF
 
3556
#define HAVE_MYSQL_H
 
3557
_ACEOF
 
3558
 
 
3559
                SMART_CFLAGS="$SMART_CFLAGS $mysql_cflags"
 
3560
            else
 
3561
                { echo "$as_me:$LINENO: result: no" >&5
 
3562
echo "${ECHO_T}no" >&6; }
 
3563
            fi
 
3564
        fi
 
3565
 
3506
3566
        CFLAGS="$old_CFLAGS"
3507
3567
    fi
3508
3568
    if test "x$have_mysql_h" != "xyes"; then