Architecture specific header files need special handling.
[openssl.git] / crypto / install.com
index b3f24cca2dcee0033bb368b882ba1366deba3b8e..371767784931698a108f3bce8ce88e0b83f7ff13 100644 (file)
@@ -117,6 +117,10 @@ $  IF D .EQS. "," THEN GOTO LOOP_SDIRS_END
 $      tmp = EXHEADER_'D'
 $      IF D .EQS. ""
 $      THEN
 $      tmp = EXHEADER_'D'
 $      IF D .EQS. ""
 $      THEN
+$        ! If we don't find a file in the source directory, it's most
+$        ! probably generated for each architecture
+$        ! (opensslconf.h, for example)
+$        IF F$SEARCH("''tmp'") .EQS. "" THEN tmp = "[-.''ARCH'.CRYPTO]''tmp'"
 $        COPY 'tmp' WRK_SSLINCLUDE: /LOG
 $      ELSE
 $        COPY [.'D']'tmp' WRK_SSLINCLUDE: /LOG
 $        COPY 'tmp' WRK_SSLINCLUDE: /LOG
 $      ELSE
 $        COPY [.'D']'tmp' WRK_SSLINCLUDE: /LOG