]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc: sync top-level with binutils-gdb
authorSam James <sam@gentoo.org>
Mon, 3 Nov 2025 09:48:00 +0000 (09:48 +0000)
committerSam James <sam@gentoo.org>
Mon, 3 Nov 2025 20:25:00 +0000 (20:25 +0000)
This just pulls in Alan's:

commit 87b6078fc212ccba5f043399c6370ee20f6b355a
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Mon Nov 3 10:59:50 2025 +1030
Commit:     Alan Modra <amodra@gmail.com>
CommitDate: Mon Nov 3 10:59:50 2025 +1030

    tidy m4 plugin config support

    ...

It tidies up the configure test output.

config/ChangeLog:

* clang-plugin.m4: Sync with binutils.
* gcc-plugin.m4: Ditto.

ChangeLog:

* configure: Regenerate.

gcc/ChangeLog:

* configure: Regenerate.

libatomic/ChangeLog:

* configure: Regenerate.

libbacktrace/ChangeLog:

* configure: Regenerate.

libcc1/ChangeLog:

* configure: Regenerate.

libffi/ChangeLog:

* configure: Regenerate.

libgcobol/ChangeLog:

* configure: Regenerate.

libgfortran/ChangeLog:

* configure: Regenerate.

libgm2/ChangeLog:

* configure: Regenerate.

libgomp/ChangeLog:

* configure: Regenerate.

libgrust/ChangeLog:

* configure: Regenerate.

libiberty/ChangeLog:

* configure: Regenerate.

libitm/ChangeLog:

* configure: Regenerate.

libobjc/ChangeLog:

* configure: Regenerate.

libphobos/ChangeLog:

* configure: Regenerate.

libquadmath/ChangeLog:

* configure: Regenerate.

libsanitizer/ChangeLog:

* configure: Regenerate.

libssp/ChangeLog:

* configure: Regenerate.

libstdc++-v3/ChangeLog:

* configure: Regenerate.

libvtv/ChangeLog:

* configure: Regenerate.

lto-plugin/ChangeLog:

* configure: Regenerate.

zlib/ChangeLog:

* configure: Regenerate.

24 files changed:
config/clang-plugin.m4
config/gcc-plugin.m4
configure
gcc/configure
libatomic/configure
libbacktrace/configure
libcc1/configure
libffi/configure
libgcobol/configure
libgfortran/configure
libgm2/configure
libgomp/configure
libgrust/configure
libiberty/configure
libitm/configure
libobjc/configure
libphobos/configure
libquadmath/configure
libsanitizer/configure
libssp/configure
libstdc++-v3/configure
libvtv/configure
lto-plugin/configure
zlib/configure

index cc051fe48e32bf05daa2666b989735d6d34a017c..e94c4bbb6be90f9eac660489a71f9824f9702589 100644 (file)
@@ -20,43 +20,42 @@ AC_DEFUN([CLANG_PLUGIN_FILE],[dnl
   yes
 #endif
     ], clang_cv_is_clang=yes, clang_cv_is_clang=no)])
+  AC_CHECK_TOOL(LLVM_CONFIG, llvm-config)
   plugin_file=
   if test $clang_cv_is_clang = yes; then
     AC_MSG_CHECKING([for clang plugin file])
     plugin_names="LLVMgold.so"
     for plugin in $plugin_names; do
       plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       AC_CHECK_TOOL(LLVM_CONFIG, llvm-config)
-       if test "$?" != 0; then
-         AC_MSG_ERROR([Required tool 'llvm-config' not found on PATH.])
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
-    done
-    if test -z $plugin_file; then
-      AC_MSG_ERROR([Couldn't find clang plugin file for $CC.])
-    fi
-    dnl Check if ${AR} $plugin_option rc works.
-    AC_CHECK_TOOL(AR, ar)
-    if test "${AR}" = "" ; then
-      AC_MSG_ERROR([Required archive tool 'ar' not found on PATH.])
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      AC_MSG_WARN([Failed: $AR $plugin_option rc])
       plugin_file=
+    done
+    if test -z "$plugin_file"; then
+      AC_MSG_RESULT([no])
+    else
+      AC_MSG_RESULT($plugin_file)
+      dnl Check if ${AR} $plugin_option rc works.
+      AC_CHECK_TOOL(AR, ar)
+      if test -z "${AR}"; then
+       AC_MSG_ERROR([Required archive tool 'ar' not found on PATH.])
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       AC_MSG_WARN([Failed: $AR $plugin_option rc])
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    AC_MSG_RESULT($plugin_file)
   fi
   $1="$plugin_file"
 ])
@@ -84,30 +83,26 @@ AC_DEFUN([CLANG_PLUGIN_FILE_FOR_TARGET],[dnl
   CC="$saved_CC"
   plugin_file=
   if test $clang_target_cv_working = yes; then
+    GCC_TARGET_TOOL(llvm-config, LLVM_CONFIG_FOR_TARGET, LLVM_CONFIG)
     AC_MSG_CHECKING([for clang plugin file for target])
     plugin_names="LLVMgold.so"
-    dnl Check if the host compiler is used.
     for plugin in $plugin_names; do
       plugin_file=`${COMPILER_FOR_TARGET} ${CFLAGS_FOR_TARGET} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       GCC_TARGET_TOOL(llvm-config, LLVM_CONFIG_FOR_TARGET, LLVM_CONFIG)
-       if test "$?" != 0; then
-         AC_MSG_ERROR([Required target tool 'llvm-config' not found.])
-       fi
-       clang_lib_dir=`$LLVM_CONFIG_FOR_TARGET --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-      fi
-      if test x$plugin_file != x$plugin; then
+      if test "$plugin_file" != "$plugin"; then
        break;
       fi
+      if test -n "${LLVM_CONFIG_FOR_TARGET}"; then
+       plugin_file=`${LLVM_CONFIG_FOR_TARGET} --libdir`/$plugin
+       if test -f "$plugin_file"; then
+         break;
+       fi
+      fi
       plugin_file=
     done
-    if test -n $plugin_file; then
-      AC_MSG_RESULT($plugin_file)
-    else
+    if test -z "$plugin_file"; then
       AC_MSG_RESULT([no])
+    else
+      AC_MSG_RESULT($plugin_file)
     fi
   fi
   $1="$plugin_file"
index 0382147b3818aee17f9623a13f5dd75f13576458..fbccba4a4731862a577839210dcba11e3b42fe01 100644 (file)
@@ -136,8 +136,11 @@ dnl GCC_PLUGIN_OPTION
 dnl    (SHELL-CODE_HANDLER)
 dnl
 AC_DEFUN([GCC_PLUGIN_OPTION],[dnl
+AC_CHECK_TOOL(AR, ar)
+if test -z "${AR}"; then
+  AC_MSG_ERROR([Required archive tool 'ar' not found on PATH.])
+fi
 AC_MSG_CHECKING([for -plugin option])
-
 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
 plugin_option=
 for plugin in $plugin_names; do
@@ -150,24 +153,20 @@ for plugin in $plugin_names; do
     break
   fi
 done
-dnl Check if ${AR} $plugin_option rc works.
-AC_CHECK_TOOL(AR, ar)
-if test "${AR}" = "" ; then
-  AC_MSG_ERROR([Required archive tool 'ar' not found on PATH.])
-fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  AC_MSG_WARN([Failed: $AR $plugin_option rc])
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  $1="$plugin_option"
-  AC_MSG_RESULT($plugin_option)
-else
+if test -z "$plugin_option"; then
   AC_MSG_RESULT([no])
+else
+  AC_MSG_RESULT($plugin_option)
+  dnl Check if ${AR} $plugin_option rc works.
+  touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    AC_MSG_WARN([Failed: $AR $plugin_option rc])
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+$1="$plugin_option"
 ])
 
 dnl
@@ -190,7 +189,7 @@ AC_CACHE_CHECK([for gcc for target], gcc_target_cv_working, [
   gcc_target_cv_working=yes,
   gcc_target_cv_working=no)])
 CC="$saved_CC"
-AC_MSG_CHECKING([for -plugin option])
+AC_MSG_CHECKING([for target -plugin option])
 plugin_option=
 if test $gcc_target_cv_working = yes; then
   plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
@@ -205,10 +204,10 @@ if test $gcc_target_cv_working = yes; then
     fi
   done
 fi
-if test -n "$plugin_option"; then
-  $1="$plugin_option"
-  AC_MSG_RESULT($plugin_option)
-else
+if test -z "$plugin_option"; then
   AC_MSG_RESULT([no])
+else
+  AC_MSG_RESULT($plugin_option)
 fi
+$1="$plugin_option"
 ])
index 4f2ba5e8a0562d186306f0228007bd8abed6cbdf..2551fe0275280243948a73943527322e531c2b08 100755 (executable)
--- a/configure
+++ b/configure
@@ -14565,15 +14565,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -14665,22 +14657,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -14772,42 +14773,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   PLUGIN_FILE="$plugin_file"
 
 if test -n "$PLUGIN_FILE"; then
   PLUGIN_OPTION="--plugin $PLUGIN_FILE"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -14899,25 +14884,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  PLUGIN_OPTION="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+PLUGIN_OPTION="$plugin_option"
 
 fi
 AR_PLUGIN_OPTION=
@@ -20642,13 +20641,7 @@ $as_echo "$clang_target_cv_working" >&6; }
   CC="$saved_CC"
   plugin_file=
   if test $clang_target_cv_working = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file for target" >&5
-$as_echo_n "checking for clang plugin file for target... " >&6; }
-    plugin_names="LLVMgold.so"
-        for plugin in $plugin_names; do
-      plugin_file=`${COMPILER_FOR_TARGET} ${CFLAGS_FOR_TARGET} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target llvm-config" >&5
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target llvm-config" >&5
 $as_echo_n "checking where to find the target llvm-config... " >&6; }
 if test "x${build}" != "x${host}" ; then
   if expr "x$LLVM_CONFIG_FOR_TARGET" : "x/" > /dev/null; then
@@ -20679,25 +20672,28 @@ $as_echo "pre-installed" >&6; }
   fi
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required target tool 'llvm-config' not found." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG_FOR_TARGET --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-      fi
-      if test x$plugin_file != x$plugin; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file for target" >&5
+$as_echo_n "checking for clang plugin file for target... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${COMPILER_FOR_TARGET} ${CFLAGS_FOR_TARGET} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
        break;
       fi
+      if test -n "${LLVM_CONFIG_FOR_TARGET}"; then
+       plugin_file=`${LLVM_CONFIG_FOR_TARGET} --libdir`/$plugin
+       if test -f "$plugin_file"; then
+         break;
+       fi
+      fi
       plugin_file=
     done
-    if test -n $plugin_file; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
-    else
+    if test -z "$plugin_file"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
     fi
   fi
   PLUGIN_FILE_FOR_TARGET="$plugin_file"
@@ -20738,8 +20734,8 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_target_cv_working" >&5
 $as_echo "$gcc_target_cv_working" >&6; }
 CC="$saved_CC"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target -plugin option" >&5
+$as_echo_n "checking for target -plugin option... " >&6; }
 plugin_option=
 if test $gcc_target_cv_working = yes; then
   plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
@@ -20754,14 +20750,14 @@ if test $gcc_target_cv_working = yes; then
     fi
   done
 fi
-if test -n "$plugin_option"; then
-  PLUGIN_OPTION_FOR_TARGET="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
 fi
+PLUGIN_OPTION_FOR_TARGET="$plugin_option"
 
 fi
 if test -n "$PLUGIN_OPTION_FOR_TARGET"; then
index 962511f666cf5ade7463ac5dc65db02b6b6a8db4..611f691d7a7c8ad569b7f6fe21a1f9935b5535a7 100755 (executable)
@@ -16498,15 +16498,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -16598,22 +16590,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -16705,42 +16706,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -16832,25 +16817,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -21873,7 +21872,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 21876 "configure"
+#line 21875 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -21979,7 +21978,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 21982 "configure"
+#line 21981 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index cd9fcdb151818e9614402c0b8269a378dbc5fe77..349dc3caed6d72b6c365286f857008165c3ad438 100755 (executable)
@@ -6343,15 +6343,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6443,22 +6435,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6550,42 +6551,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6677,25 +6662,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11848,7 +11847,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11851 "configure"
+#line 11850 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11954,7 +11953,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11957 "configure"
+#line 11956 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index b956afe8c3456343dda842460091be61bebc117e..c810b22d7d0dd74db1c5f4f9134b8b4d26ad1153 100755 (executable)
@@ -6634,15 +6634,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6734,22 +6726,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6841,42 +6842,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6968,25 +6953,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12010,7 +12009,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12013 "configure"
+#line 12012 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12116,7 +12115,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12119 "configure"
+#line 12118 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 685f2abe178ee36a453e52a79857f0d9861169a2..00cb83e0c39a996aec7807624bb800e201c518c5 100755 (executable)
@@ -5890,15 +5890,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5990,22 +5982,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6097,42 +6098,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6224,25 +6209,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11265,7 +11264,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11268 "configure"
+#line 11267 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11371,7 +11370,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11374 "configure"
+#line 11373 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 3876ec06201af1a1ae62d5201186c2900f440c2b..8c59ad91816fa08cc83025fe9aae2e6f347e316b 100755 (executable)
@@ -6557,15 +6557,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6657,22 +6649,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6764,42 +6765,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6891,25 +6876,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12063,7 +12062,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12066 "configure"
+#line 12065 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12169,7 +12168,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12172 "configure"
+#line 12171 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index ecbfd33732a7a8318ed8ea2b2a4462028b9a06a5..48ccf3685b1a75c5aa8f5a4e3a1859df261d72f8 100755 (executable)
@@ -6776,15 +6776,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6876,22 +6868,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6983,42 +6984,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7110,25 +7095,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12185,7 +12184,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12188 "configure"
+#line 12187 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12291,7 +12290,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12294 "configure"
+#line 12293 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index c6b00a9a2a4ef0832ad6c6d90dd3ad1e5db05559..5cf3bf60f5d358891223d2318f4f834e82a1bd61 100755 (executable)
@@ -7815,15 +7815,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7915,22 +7907,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -8022,42 +8023,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -8149,25 +8134,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -13222,7 +13221,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 13225 "configure"
+#line 13224 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13328,7 +13327,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 13331 "configure"
+#line 13330 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 95fcbfe2ee5aa6843338fc28ad2e6b41c9bac5ea..3f5cae922c3d5b750cd72a720804c32282467bf0 100755 (executable)
@@ -9820,15 +9820,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -9920,22 +9912,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -10027,42 +10028,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -10154,25 +10139,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -15229,7 +15228,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 15232 "configure"
+#line 15231 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15335,7 +15334,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 15338 "configure"
+#line 15337 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 4136a0b8cd01a0b96a1744ab2536fd20bc7cd6a0..f522a6e5d273fa542598f7ca378fc66d4e4d6ffa 100755 (executable)
@@ -6339,15 +6339,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6439,22 +6431,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6546,42 +6547,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6673,25 +6658,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11844,7 +11843,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11847 "configure"
+#line 11846 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11950,7 +11949,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11953 "configure"
+#line 11952 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index b6f7c3eac4cdbf3e8abfd83b77d44793cabb624c..3e1d43c2c639ced78e188c17be3fa9600ed70d25 100755 (executable)
@@ -7622,15 +7622,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7722,22 +7714,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7829,42 +7830,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7956,25 +7941,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -13032,7 +13031,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 13035 "configure"
+#line 13034 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13138,7 +13137,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 13141 "configure"
+#line 13140 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 8996b6ea5e14629d591565f4fa91c9bb6a7ba99a..359f19ac0379a46ea92f9183a8e23aaad1eb6f60 100755 (executable)
@@ -4506,15 +4506,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -4606,22 +4598,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -4713,42 +4714,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   PLUGIN_FILE="$plugin_file"
 
 if test -n "$PLUGIN_FILE"; then
   PLUGIN_OPTION="--plugin $PLUGIN_FILE"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -4840,25 +4825,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  PLUGIN_OPTION="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+PLUGIN_OPTION="$plugin_option"
 
 fi
 if test -n "$PLUGIN_OPTION"; then
index a76c9f5040d2ad19479c57c2a044dea8b5926a1b..c655a9bf0ad3c25ea79e2c7b14770818f68e9adb 100755 (executable)
@@ -7000,15 +7000,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7100,22 +7092,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7207,42 +7208,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7334,25 +7319,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12506,7 +12505,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12509 "configure"
+#line 12508 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12612,7 +12611,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12615 "configure"
+#line 12614 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index c7a5c8f0825ab6d26d695c8665e0418583d2a8b3..ad8b637a7d3f40bd5253b637e2074f9a5d40a17a 100755 (executable)
@@ -5673,15 +5673,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5773,22 +5765,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5880,42 +5881,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6007,25 +5992,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11251,7 +11250,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11254 "configure"
+#line 11253 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11357,7 +11356,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11360 "configure"
+#line 11359 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 70e92efab66ecb35d9a567d9f5034cf5ede99eee..1b540662073676a9ee2383d3270d91aba9e82f03 100755 (executable)
@@ -6864,15 +6864,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6964,22 +6956,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7071,42 +7072,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7198,25 +7183,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12239,7 +12238,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12242 "configure"
+#line 12241 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12345,7 +12344,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12348 "configure"
+#line 12347 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index c0d6c6abe9dde3bb29c14df8bb7d98525b6538f3..7348a403ee3e459d34dd9156bbd36e910f4a449f 100755 (executable)
@@ -5888,15 +5888,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5988,22 +5980,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6095,42 +6096,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6222,25 +6207,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11297,7 +11296,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11300 "configure"
+#line 11299 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11403,7 +11402,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11406 "configure"
+#line 11405 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index d4d987d2acce02dc1ef5e27512dcdacd165b8ad9..eb373d9754ab2fd9fcdd4a35b738c21932034139 100755 (executable)
@@ -7475,15 +7475,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7575,22 +7567,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7682,42 +7683,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7809,25 +7794,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12850,7 +12849,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12853 "configure"
+#line 12852 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12956,7 +12955,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12959 "configure"
+#line 12958 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 72ffc5a35f70239be17c2c59b76738f91825362e..440a6d73958bc69c83ab9b6f1792a7be63df1482 100755 (executable)
@@ -6130,15 +6130,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6230,22 +6222,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6337,42 +6338,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6464,25 +6449,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11539,7 +11538,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11542 "configure"
+#line 11541 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11645,7 +11644,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11648 "configure"
+#line 11647 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 5302780be00a2a69b4afafdaf3c445e09d9cd478..420391e93405ebd41cea44c6bb30263f8c65d283 100755 (executable)
@@ -7118,15 +7118,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7218,22 +7210,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7325,42 +7326,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7452,25 +7437,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12655,7 +12654,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12658 "configure"
+#line 12657 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12761,7 +12760,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12764 "configure"
+#line 12763 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -16423,7 +16422,7 @@ $as_echo "$glibcxx_cv_atomic_word" >&6; }
     # Fake what AC_TRY_COMPILE does.
 
     cat > conftest.$ac_ext << EOF
-#line 16426 "configure"
+#line 16425 "configure"
 #include "${glibcxx_srcdir}/config/$atomic_word_dir/atomic_word.h"
 int main()
 {
@@ -16569,7 +16568,7 @@ $as_echo "mutex" >&6; }
   # unnecessary for this test.
 
     cat > conftest.$ac_ext << EOF
-#line 16572 "configure"
+#line 16571 "configure"
 int main()
 {
   _Decimal32 d1;
@@ -16611,7 +16610,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   # unnecessary for this test.
 
   cat > conftest.$ac_ext << EOF
-#line 16614 "configure"
+#line 16613 "configure"
 template<typename T1, typename T2>
   struct same
   { typedef T2 type; };
@@ -53941,7 +53940,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
     CXXFLAGS='-O0 -S'
 
     cat > conftest.$ac_ext << EOF
-#line 53944 "configure"
+#line 53943 "configure"
 #include <stddef.h>
 int main()
 {
index 1a29d899e3c4bbd6756e01b539210061d8d3a64c..15a9b721189347b30f9f8569539f24b13e3fdb48 100755 (executable)
@@ -7369,15 +7369,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7469,22 +7461,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7576,42 +7577,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7703,25 +7688,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12744,7 +12743,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12747 "configure"
+#line 12746 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12850,7 +12849,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12853 "configure"
+#line 12852 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 96f0a5b8e3353832273bde869935061e2de3eddc..b39dfd429870df8455c08c4b331b3db7e594d56a 100755 (executable)
@@ -7240,15 +7240,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7340,22 +7332,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7447,42 +7448,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -7574,25 +7559,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -12616,7 +12615,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12619 "configure"
+#line 12618 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12722,7 +12721,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12725 "configure"
+#line 12724 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 9aae63551026c1cdd6cd6fdd3a21a52cf07ff747..7452fbddaf47a019c3c82fb79bd3d8d050fa37a9 100755 (executable)
@@ -5690,15 +5690,7 @@ rm -f conftest*
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
 $as_echo "$clang_cv_is_clang" >&6; }
-  plugin_file=
-  if test $clang_cv_is_clang = yes; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
-$as_echo_n "checking for clang plugin file... " >&6; }
-    plugin_names="LLVMgold.so"
-    for plugin in $plugin_names; do
-      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
-      if test x$plugin_file = x$plugin; then
-       if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5790,22 +5782,31 @@ else
   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
 fi
 
-       if test "$?" != 0; then
-         as_fn_error $? "Required tool 'llvm-config' not found on PATH." "$LINENO" 5
-       fi
-       clang_lib_dir=`$LLVM_CONFIG --libdir`
-       if test -f $clang_lib_dir/$plugin; then
-         plugin_file=$clang_lib_dir/$plugin
-       fi
-       if test x$plugin_file != x$plugin; then
+  plugin_file=
+  if test $clang_cv_is_clang = yes; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
+$as_echo_n "checking for clang plugin file... " >&6; }
+    plugin_names="LLVMgold.so"
+    for plugin in $plugin_names; do
+      plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
+      if test "$plugin_file" != "$plugin"; then
+       break;
+      fi
+      if test -n "${LLVM_CONFIG}"; then
+       plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
+       if test -f "$plugin_file"; then
          break;
        fi
       fi
+      plugin_file=
     done
-    if test -z $plugin_file; then
-      as_fn_error $? "Couldn't find clang plugin file for $CC." "$LINENO" 5
-    fi
-        if test -n "$ac_tool_prefix"; then
+    if test -z "$plugin_file"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
+$as_echo "$plugin_file" >&6; }
+            if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -5897,42 +5898,26 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-    if test "${AR}" = "" ; then
-      as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
-    fi
-    plugin_option="--plugin $plugin_file"
-    touch conftest.c
-    ${AR} $plugin_option rc conftest.a conftest.c
-    if test "$?" != 0; then
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+      if test -z "${AR}"; then
+       as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
+      fi
+      plugin_option="--plugin $plugin_file"
+      touch conftest.c
+      ${AR} $plugin_option rc conftest.a conftest.c
+      if test "$?" != 0; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-      plugin_file=
+       plugin_file=
+      fi
+      rm -f conftest.*
     fi
-    rm -f conftest.*
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
-$as_echo "$plugin_file" >&6; }
   fi
   plugin_file="$plugin_file"
 
 if test -n "$plugin_file"; then
   plugin_option="--plugin $plugin_file"
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
-$as_echo_n "checking for -plugin option... " >&6; }
-
-plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
-plugin_option=
-for plugin in $plugin_names; do
-  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
-  if test x$plugin_so = x$plugin; then
-    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
-  fi
-  if test x$plugin_so != x$plugin; then
-    plugin_option="--plugin $plugin_so"
-    break
-  fi
-done
-if test -n "$ac_tool_prefix"; then
+  if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ar; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6024,25 +6009,39 @@ else
   AR="$ac_cv_prog_AR"
 fi
 
-if test "${AR}" = "" ; then
+if test -z "${AR}"; then
   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
 fi
-touch conftest.c
-${AR} $plugin_option rc conftest.a conftest.c
-if test "$?" != 0; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
-$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
-  plugin_option=
-fi
-rm -f conftest.*
-if test -n "$plugin_option"; then
-  plugin_option="$plugin_option"
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
-$as_echo "$plugin_option" >&6; }
-else
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
+$as_echo_n "checking for -plugin option... " >&6; }
+plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
+plugin_option=
+for plugin in $plugin_names; do
+  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
+  if test x$plugin_so = x$plugin; then
+    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
+  fi
+  if test x$plugin_so != x$plugin; then
+    plugin_option="--plugin $plugin_so"
+    break
+  fi
+done
+if test -z "$plugin_option"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
+$as_echo "$plugin_option" >&6; }
+    touch conftest.c
+  ${AR} $plugin_option rc conftest.a conftest.c
+  if test "$?" != 0; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    plugin_option=
+  fi
+  rm -f conftest.*
 fi
+plugin_option="$plugin_option"
 
 fi
 if test -n "$ac_tool_prefix"; then
@@ -11228,7 +11227,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11231 "configure"
+#line 11230 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11334,7 +11333,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11337 "configure"
+#line 11336 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H