Ticket #13060: arch_flag-configure.in.diff

File arch_flag-configure.in.diff, 1.0 KB (added by jpflori, 9 years ago)

Diff for configure.in; test -arch flag.

  • src/configure.in

    old new  
    11641164AC_SUBST(FLAG_M64)
    11651165
    11661166
     1167# does this compiler support -arch i386 ?
     1168AC_MSG_CHECKING([if gcc accepts -arch i386])
     1169
     1170safe_CFLAGS=$CFLAGS
     1171CFLAGS="-arch i386"
     1172
     1173AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
     1174  return 0;
     1175]])], [
     1176FLAG_ARCH_I386="-arch i386"
     1177AC_MSG_RESULT([yes])
     1178], [
     1179FLAG_ARCH_I386="$FLAG_M32"
     1180AC_MSG_RESULT([no])
     1181])
     1182CFLAGS=$safe_CFLAGS
     1183
     1184AC_SUBST(FLAG_ARCH_I386)
     1185
     1186
     1187# does this compiler support -arch x86_64 ?
     1188AC_MSG_CHECKING([if gcc accepts -arch x86_64])
     1189
     1190safe_CFLAGS=$CFLAGS
     1191CFLAGS="-arch x86_64"
     1192
     1193AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
     1194  return 0;
     1195]])], [
     1196FLAG_ARCH_X86_64="-arch x86_64"
     1197AC_MSG_RESULT([yes])
     1198], [
     1199FLAG_ARCH_X86_64="$FLAG_M64"
     1200AC_MSG_RESULT([no])
     1201])
     1202CFLAGS=$safe_CFLAGS
     1203
     1204AC_SUBST(FLAG_ARCH_X86_64)
     1205
     1206
    11671207# does this compiler support -mmmx ?
    11681208AC_MSG_CHECKING([if gcc accepts -mmmx])
    11691209